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. 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
hack...@android.com

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"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="5px"
              android:layout_marginRight="3px"
              android:layout_gravity="right"
    />

Here is the config for the
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:id="@+id/test_raw_contact_entry"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="right"
        >

    <TextView android:id="@+id/contactId"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            />

    <TextView android:id="@+id/rawContactId"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

</LinearLayout>

-- 

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