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. JetBoy Sample Question

Hi there,

I have a question regarding the Jeyboy game that comes with the SDK. I
noticed the game runs in Landscape mode which is cool. I looked at the
code but I can;t find the command that forced the game to be played in
landscape mode.
I wrote a simple code that draws a image but I want it to be always on
Landscape mode.How can I do it?

Hope someone helps me out here.

Thanks,


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

2. how to register in the opencore framework own file container recognizer

Hi all,

I'm trying to develop own opencore wrapper around some file format,
for example MKV... i've created shared library called
my_mkv_recognizer.so, and put it into /system/lib folder.

The following interfaces are present in the library:
==============================================================
1) class CMyMkvSplitterRecognizerFactory : public
PVMFRecognizerPluginFactory;
2) class CMyMkvRecognizerPlugin : public
PVMFRecognizerPluginInterface;
3) class CMyMkvNodesRegistryInterface: public
OsclSharedLibraryInterface,
                                public NodeRegistryPopulatorInterface,
                                public RecognizerPopulatorInterface;

4) OsclSharedLibraryInterface *PVGetInterface( void )
    {
       printf("PVGetInterface()\n");
        return OSCL_NEW(CMyMkvNodesRegistryInterface, ());
    }

    void PVReleaseInterface ( OsclSharedLibraryInterface* aInstance )
    {
        OSCL_DELETE( aInstance );
    }
==============================================================

Then i've created config file: my_plugin.cfg, and put it into /etc
folder, this file contains the following strings:
(0x1d4769f0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
0x66),"libopencoremkvsplitterrecognizer.so"
(0x6d3413a0,0xca0c,0x11dc,0x95,0xff,0x08,0x00,0x20,0x0c,0x9a,
0x66),"libopencoremkvsplitterrecognizer.so"

And now the problem is ;-) .... i can see in the trace log that is my
lib was loaded, but none method has been called. Why?

--
 Best regards,
 Yuri


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

3. Several instance of AsynkTask

4. Crashing compasse

5. onTouch()

6. how to access several xml views in my activity?

7. how to access several xml views in my activity?