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.


How to run a class in background

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


Write a service

2010/4/23 subrat kumar panda <>:

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, 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


Other Threads

1. written file not found

I've written an file with the following comands:

String ausgabe;
try{ fos = (new    new
        openFileOutput("testfile.txt", MODE_APPEND ))));
        if (ausgabe.length() != 0){

catch (FileNotFoundException f){
   System.out.println("Not found");

Everything works and on the emulator i've got no problem.
The written file "testfile.txt" can be found in /data/data/mypackage/
But on my G1 the folder "/data" is empty, no folder /data/packages can
be found with
"Astro File Manager" or LindaFileManager.

Anyone any idea where to find the files of my applications?
Why do i have only the folders /data, /sdcard and /system on the
emulator but
on the device there are much more?

Thanks for an answer.


2. emulator - ADB install - user request for permission dangerous protectio

If you post your apk to a web server and download it using Android browser
in the emulator, then you should see the permission requests that you're
referring to.  adb bypasses the PackageInstallerActivity which contains the
UI that prompts the user.
You could also invoke the PackageInstallerActivity directly through intents.
 Checkout packages/apps/PackageInstaller/AndroidManifest.xml.


On Fri, Mar 27, 2009 at 5:58 AM, guillaume leterrier (Teleca Germany) <


3. StartActivity in a LinearLayout object

4. When save image, how to specify image name?

5.$ConnectivityBroadcastReceiver @4337ce70

6. How to run the 'AllTests' of ApiDemos in the android sdk sample

7. What's the correct way to switch off the emulator?