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. LVL security, are you sure that is secure, I'm a doubt in...?

Actually it doesn't matter whether they have a rooted phone.  This is one of
the big reasons for moving to this over forward locking -- forward locking
requires trusting the device and its operating system to protect the app.
 With the new licensing model, the app does not need to have any trust in
the device it is running on or the market client app.  This gets rid of all
of the issues that forward locking has with apps not showing up on devices
that were not whitelisted/trusted.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


2. Inner ListView not respecting layout gravity or width

I have a ListView that contains several elements, one of which is
another ListView.
All elements of the outer ListView except for the inner ListView
respect their layout params.

The inner ListView respects margin left/right, but toally ignores
layout_gravity and layout_width.
Ie consumes the entire row sans the margins and is left justified.

I'd really like to have the inner ListView of the right hand side of
th screen.
I suspect its something obvious I am doing, but after several hours I
can't see it.
Any one got any ideas?

Here is the lauout for the inner ListView

    <ListView android:id="@+id/rawContactsList"

Here is the config for the
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="

    <TextView android:id="@+id/contactId"

    <TextView android:id="@+id/rawContactId"



3. how to self-close an Activity

4. Contract Opportunity::::: iPhone Quality Assurance Tester | Kirkland, WA

5. Urgent Position For ::: Blackberry Mobile Developer | Kirkland, WA

6. Text blinking effect TextView

7. Placing a MapView inside a LinearLayout