LocalServiceBinding.java

by qlimax » Thu, 17 Dec 2009 21:04:04 GMT


Sponsored Links
 Hi guys.

I'm writing an application that use a service to play an audio file

I'm watching the LocalService.java and LocalServiceBinding.java
from the API DEMO

In the api demo, the LocalService.java make a notification in the
status bar, in my case it plays mp3 and make a notification. But that
doesn't matter.


My problem is that when the user press the "Back Button" the service
must stay active.
I want have the same behaviour as  when i press the "Home Button"...


Any help is welcome :D

ps:sorry for my eng

--



LocalServiceBinding.java

by qlimax » Thu, 17 Dec 2009 22:15:55 GMT


 sorry... maybe solved without binding
but using startService/stopService

----maybe... requires tests :::)))----
bye




--


Sponsored Links


LocalServiceBinding.java

by G » Thu, 17 Dec 2009 23:03:08 GMT


 Hey I ran into this problem a while back and was pulling my hair out.
The fix is easy (and you're on the right track)

You can still call bindService, you just have to call startService
first. If the service is started via bindService, then it will live
and die with the activity that called it, but if you start it with
startService and THEN bind it with bindService, it should stay alive
indefinitely.





--



LocalServiceBinding.java

by qlimax » Fri, 18 Dec 2009 00:16:43 GMT


 Hi G,
thanks a lot for the explanation.
(souch thigs should be better documented...)

bye.






--



Other Threads

1. RUT problem help!

Dear RR,

Software RUT saya tidak mendeteksi phone lagi. Coba update driver jg tidak 
membantu. Setiap phone di konek ke PC selalu auto install driver. "Modem over 
android C001"

Saat sebelum driver crash RUT berjalan normal bahkan sudah suntik 5 journey ke 
CML.1.3. Sekarang RUT "ngambek" 

Saat nomal harusnya driver terinstall "smartphone2009". Help mohon bantuan agar 
driver bisa terintall kembali.

TIA
Dj
Sent from my BlackBerry smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-- 
===============
"

2. few question about adb

hi all,

the adb tool shows "offline" somtimes, so I want to review the
relative code about adb.

1. where is the adb relative driver code in the kernel tree?
2. is any updated log about adb tool?
3. is any updated log about adb tool when android sdk updated?

some questions, please give me some suggestion,

thanks!!

-- 

3. Gmail Contacts Groups and Android Contact Groups

4. MDPI Android 2.3.1

5. Change Texture

6. Status of Android CTS (Compatibility Test Suite) on froyo-x86 and gingerbread?

7. How can I achieve this menu in android?