[android-developers] Dialog Theme problem when using dev option "Immediatly destroy activities"

2009-03-07 Thread michael.bollm...@googlemail.com
I'm a little lost here... i got some wired behaviour when i enable the above option. I guess the problem is about recreating the dialog especially the activity behind the dialog. I did the following: 1. open an activity with dialog theme (OK) 2. obscuring the dialog activity with a fullscreen chi

[android-developers] [ListPreference] How to get the cursor index from an id

2009-03-06 Thread michael.bollm...@googlemail.com
Let's assume my cursor returns 100 items I want to select the item that got the id 50 I assume that setSingleChoiceItems expects an index based on the cursors result not an id So how do i convert the id to an result index without doing a costly linear search thanks michael --~--~-~--~---

[android-developers] Re: How to get an interface on a service without destroying the service at unbind

2009-03-02 Thread michael.bollm...@googlemail.com
thanks :) works fine now --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email t

[android-developers] How to get an interface on a service without destroying the service at unbind

2009-03-01 Thread michael.bollm...@googlemail.com
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information. So i thought it would be nice to broadcast some kind of state_changed event from my service