473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Android / Java Code Running Order Question.

Hello,
I'm having an issue with how code is being ran on an app that I'm writing. I have a spinner on a pop up window, and when ever I bring up the pop up window I have code that changes the Spinner to the last selection the user had. Well when I do so it triggers the Spinner Selection Listener which is fine, and actually the wanted behavior. Now my question and where it comes to be an issue is. The Calling Method seems to completly itself before the Spinner's selection Code runs.

I.e.

Expand|Select|Wrap|Line Numbers
  1. Method A. {
  2.    Code 1
  3.    Code 2
  4.    Code 3
  5.    SomeSpinner.setPosition(x);
  6.    Code 4
  7.    Code 5
  8.    Code 6
  9. }
  10.  
  11. SpinnerSelection {
  12.   Code Block A
  13. }
Whats happenins is Code lines 1-6 are running prior to Code Block A, but i thought it should run Lines 1-3, Then Block A, then Lines 4-6, Obivious I'm wrong in my understand, but I was wondering how to understand why it is this way.

Thank You.
Dec 20 '13 #1
0 1234

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Ravi | last post by:
Do we have anything that could convert C++ code to java code? To what extent are such tools reliable? TIA. -- main(){char s="sbwjAeftqbnnfe/dpn!ps!CSbwjACjhgppu/dpn"; int...
0
by: Nick | last post by:
Hi, I'm facing certain issues while trying to compile a java class using the Visual J# compiler into a dot net readable DLL. However, I'm getting stuck at a point where there is a reference to a...
6
by: Jim | last post by:
Can you call exisiting Java classes from C#?
1
by: genc ymeri | last post by:
Hi, I'm coding a C# Win Application. Somehow we need to let the "end-users" of our application to write some Java code in one of our app's winform called : "Coding". What I would like to do is...
5
by: Michael Murphy | last post by:
Hi, could someone help me along with a Java to VB.Net conversion. Here is the java code private sub test1() throws Exception { //code in here }
3
by: Woody Splawn | last post by:
Is there no better way to set the tab order than starting from scratch in each form? That is, I may have 30 fields on a form and if I start at the first and go to the last, invariably, I click the...
2
by: KyleUbenk | last post by:
Hello, I am attempting to compile java code from within my program. Basically I have a file in the directory with Java source code, and I want to be able to compile it from within my program. The...
5
by: abhishekbrave | last post by:
I want to exit from a java code after the execution of the code it contains. When I am trying System.exit() at the end of the program the System.exit() shuting down the complete JVM. I just want to...
1
m6s
by: m6s | last post by:
Good morning. I was looking for building a plugin code, for using it as module for billing policies in a java program. Looking that, I saw many libraries, equinox, jpf, all hard to implement for...
0
by: davidson1 | last post by:
Hi, I have ran the below code in java, but it is throwing an NoSuchField error. Can you please help me to correct this code? I have included all the required Jar files and pointed in Environment...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.