[android-beginners] Re: Crash when trying to add to dictionary within a Dialog

2009-09-21 Thread Horchata Factory
Resolved it by passing in the Activity context instead of Application context to the dialog. On Sep 17, 11:15 am, Horchata Factory horchatafactorysupp...@gmail.com wrote: I have a custom dialog which contains an EditText control in it. If I type something inside it, do a long press, and choose

[android-beginners] Crash when trying to add to dictionary within a Dialog

2009-09-17 Thread Horchata Factory
I have a custom dialog which contains an EditText control in it. If I type something inside it, do a long press, and choose to add the word to the dictionary, it crashes with this exception: 09-17 18:03:35.765: WARN/dalvikvm(994): threadid=3: thread exiting with uncaught exception

[android-beginners] Setting visibility of Preferences in a PreferenceActivity

2009-06-12 Thread Horchata Factory
Hi, I want to be able to set the visibility of the preference list items in a PreferenceActivity, but I can't seem to figure out a way to do it. I've tried the following code, which doesn't do anything: //assume mSomePreference is an existing CheckBoxPreference View preferenceView =

[android-beginners] Problem with using setProgressDrawable() on a horizontal progress bar

2009-06-12 Thread Horchata Factory
I want to be able to have a horizontal progress bar, where I can change the color of the progress bar on the fly. When I use setProgressDrawable() inside of onCreate(), it works fine. When I use setProgressDrawable() anywhere else, the progress bar disappears completely. For reference, this is

[android-beginners] Re: Setting visibility of Preferences in a PreferenceActivity

2009-06-12 Thread Horchata Factory
, Horchata Factory horchatafactorysupp...@gmail.com wrote: Hi, I want to be able to set the visibility of the preference list items in a PreferenceActivity, but I can't seem to figure out a way to do it. I've tried the following code, which doesn't do anything: //assume mSomePreference