How to run a class in background

by subrat kumar panda » Fri, 23 Apr 2010 16:57:42 GMT


Sponsored Links
 Hello all,
i am working in a Gps app.
the Gps is working fine, but i don't know
when i am doing other operations in device
the Gps is keep tracking or not.

so, how to run the specified Gps class in
background,so that what ever i do with my device or
nothing the Gps should always keep running(keep tracking).

anyboby knows the solution to the above
problem please help me.

Thanks in advance,

Best Regards,
Subrat Kumar Panda.
India.

--



How to run a class in background

by XC He » Fri, 23 Apr 2010 17:07:57 GMT


 Service
 http://developer.android.com/reference/android/app/Service.html 

Write a service

2010/4/23 subrat kumar panda <evergreen.sub...@gmail.com>:
>


Sponsored Links


How to run a class in background

by subrat kumar panda » Fri, 23 Apr 2010 17:38:51 GMT


 This is ok, but i am not able to implement it.
would you please give me an example .
means, how to run a "Hello world" program in background.

in my app there are multiple packages & in one package there
are multiple classes.so, i am little bit confused.
nevermind but i have tried before to do it ,
but i get failed.

Thanks in advance,

Best Regards
Subrat Kumar Panda
India









>>



Other Threads

1. The "-http-proxy" option does not work for emulator within 1.5r1 sdk

The "-http-proxy" option works fine for emulator within 1.1r1 sdk, but
not
for emulator within 1.5r1 sdk(neither 1.1 nor 1.5 emulator). I use
those emulators on the same
development computer. Can anyone help me solving this problem? thanks!

The following is debug info when using the "-debug-proxy" option:



D:\Downloads>emulator -avd avd15addon -sdcard d:\sd.iso -http-proxy
127.0.0.1:5865 -debug-proxy

proxy_http_setup: creating http proxy service connecting to:
127.0.0.1:5865
server name '127.0.0.1' resolved to 127.0.0.1:5865
proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
'
'
http_service_connect: trying to connect to 64.233.189.104:80
http_service_connect: using HTTP rewriter
tcp:64.233.189.104:80(1480): cannot connect to proxy: <unknown error>
http_service_connect: trying to connect to 64.233.189.104:80
http_service_connect: using HTTP rewriter
tcp:64.233.189.104:80(1480): cannot connect to proxy: <unknown error>
http_service_connect: trying to connect to 64.233.189.104:80
http_service_connect: using HTTP rewriter
tcp:64.233.189.104:80(1480): cannot connect to proxy: <unknown error>
http_service_connect: trying to connect to 64.233.189.104:80
http_service_connect: using HTTP rewriter
tcp:64.233.189.104:80(1480): cannot connect to proxy: <unknown error>
http_service_connect: trying to connect to 64.233.189.104:80
http_service_connect: using HTTP rewriter
tcp:64.233.189.104:80(1480): cannot connect to proxy: <unknown error>
http_service_connect: trying to connect to 64.233.189.104:80
http_service_connect: using HTTP rewriter
tcp:64.233.189.104:80(1480): cannot connect to proxy: <unknown error>

--~--~---------~--~----~------------~-------~--~----~

2. Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted

You have to create an AVD. Please check:

http://developer.android.com/guide/developing/eclipse-adt.html






--~--~---------~--~----~------------~-------~--~----~

3. Activity, I got CalledFromWrongThreadException

4. slow drawLine

5. -http-proxy option can't work in emulator with 1.5 sdk

6. Button in Custom View

7. Fwd: Hello World Tutorial Error Message