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. hosting app file on own site

i've got an app (.apk) file that i want to host on
my site.

whenever i click on page link to the .apk file,
i get the binary code listed as ascii.

- the app does not download.

i added

AddType application/apk .apk

to the .htaccess file - tomcat server

help.

-- 

2. IRC ngebawel yuk...

Pake andchat om?
Itu yang titik titik diisi apaan yah?
Gagal konek terus nih :(

|SuperPhone from Google



Lagi bosen, sekalian kasih tau member baru...

Mari ngebawel di IRC...

-- 
"Indonesian Android Community [id-android]"

3. Bluetooth Serial Port Programming.

4. Imageadapter problems

5. Android developers in Central Florida?

6. Android market and customers email...

7. Building Android Library Projects from the Command Line