[android-beginners] Changing button image based on user input.

2010-05-10 Thread Tollas
I've searched high and low for a way to do this, but have come up with nothing. I want to have a button on my main screen (button1). When button1 is pressed, it takes me to a 2nd screen with multiple buttons. (this part is done). When a user presses a button on that screen, it goes back to the

[android-beginners] Re: Changing button image based on user input.

2010-05-11 Thread Tollas
treking...@gmail.com wrote: On Mon, May 10, 2010 at 8:49 AM, Tollas tolla...@gmail.com wrote: I've searched high and low for a way to do this, but have come up with nothing. Search for startActivityForResut(), setResult() and onActivityResult

[android-beginners] Missing/Hidden/Dissappearing Button problem

2010-05-28 Thread Tollas
Button android:id=@+id/attack_ability_button android:layout_width=52dp android:layout_height=52dp android:layout_x=10dp android:layout_y=70dp/ final Button attack_ability_button = (Button)findViewById(R.id.attack_ability_button);

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-05-28 Thread Tollas
screen sizes. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, May 28, 2010 at 11:43 AM, Tollas tolla

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-05-28 Thread Tollas
? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, May 28, 2010 at 12:22 PM, Tollas tolla...@gmail.com wrote: The button is there. I can click

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-05-29 Thread Tollas
references, and basically will disappear. -niko On May 28, 3:07 pm, Tollas tolla...@gmail.com wrote: Yes. (getResources().getDrawable(R.drawable.attack_any) != null) returns true. On May 28, 1:41 pm, Justin Anderson janderson@gmail.com wrote: Have you verified that getResources

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-06-05 Thread Tollas
in the world... Those who know binary and those who don't. -- On Sat, May 29, 2010 at 8:14 PM, Tollas tolla...@gmail.com wrote: No. I have a single AbosoluteLayout nested in a single ScrollView. ScrollView        android:id

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-06-05 Thread Tollas
. -- On Sat, Jun 5, 2010 at 12:50 AM, Tollas tolla...@gmail.com wrote: Ok. Tried switching to RelativeLayout and I'm still having the same problem. On May 30, 2:31 am, Justin Anderson janderson@gmail.com wrote: Why are you using AbsoluteLayout

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-06-05 Thread Tollas
the drawable at runtime? (dynamic drawable) On May 28, 1:43 pm, Tollas tolla...@gmail.com wrote: Button    android:id=@+id/attack_ability_button    android:layout_width=52dp    android:layout_height=52dp    android:layout_x=10dp    android:layout_y=70dp/ final Button

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-06-06 Thread Tollas
) that begin with a that work just fine. I guess since as a user the file name doesn't matter, it's not that big of a deal, but it would be nice to know why! On Jun 5, 5:55 pm, Tollas tolla...@gmail.com wrote: Yes, I have tried that. Same result. I've also tried making it an ImageButton and ImageView

[android-beginners] Re: Missing/Hidden/Dissappearing Button problem

2010-06-06 Thread Tollas
And this also broke another image. Fixing that one by changing the name broke a 3rd image. Fixing that broke a 4th. Changed all 4 image names and now all work properly. On Jun 6, 8:11 pm, Tollas tolla...@gmail.com wrote: I have no idea why, but changing the file name to anything that doesn't

[android-beginners] Writing a loop to set multiple TextView properties

2010-06-11 Thread Tollas
I have 12 TextView fields named textView1 - textView12. Each TextView will have 2 attributes set: SetText SetBackgroundDrawable which are read from an array (textValue[] and textBackground[]). What I would like to do is write a for (or similar loop) statement to draw them in a loop rather than

[android-beginners] Comparing data retrieved from SQL query

2010-06-18 Thread Tollas
I am retrieving data from a SQL query. The data retrieves fine. If I place the data in a TextView field, I see the text. When I try to compare it in an IF statement, however, the statement sees the data as false, even if it should be true. If I set the variable to a good value (not getting data

[android-beginners] Re: Comparing data retrieved from SQL query

2010-06-18 Thread Tollas
-- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Jun 18, 2010 at 9:57 AM, Tollas tolla...@gmail.com wrote: I am retrieving data from a SQL query. The data retrieves fine. If I

[android-beginners] closing multiple activities

2010-07-02 Thread Tollas
I have 3 activities, activityA, activityB activityC. I want to add a menu button NEW SEARCH that will destroy/finish all 3 and start a new activityA. I do not want to finish the activities as they process as I want the user to be able to navigate between the 3 unless the NEW SEARCH menu option is

[android-beginners] Re: closing multiple activities

2010-07-02 Thread Tollas
and those who don't. -- On Fri, Jul 2, 2010 at 1:06 PM, Tollas tolla...@gmail.com wrote: I have 3 activities, activityA, activityB activityC. I want to add a menu button NEW SEARCH that will destroy/finish all 3 and start a new

[android-beginners] Re: Clicking in an AppWidget

2010-07-02 Thread Tollas
You can set any view to be focusable and add an OnClickListener. ScrollView view = (ScrollView)findViewById(R.id.my_scroll_view); view.setFocusable(true); view.setOnClickListener(new OnClickListener(){ public void onClick(View v) {