This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Android and the fly likes Application nor run in the background Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Application nor run in the background" Watch "Application nor run in the background" New topic
Author

Application nor run in the background

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

I am developing one application in that when user dial '000' then some data (latutude,longitude) are sent to the server. But my application is not runing in the background. here is my code.

MyReceiver class contains code as



PressingCameraKey class contains



and MyService class contains




But when I press 000 then application is not run in the background. But it hit the URL. But when I add line moveTaskToBack(true); in my PressingCameraKey class then application is run in the background but many times it will not hit the specified URL.

Then please tell me what should I have to do that application is run in the background and it hit the URL

Thanks in advance



Life is easy because we write the source code.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application nor run in the background
 
Similar Threads
how to add a google search option
shows me blank with blinking arrow
Problem in Obtaining Location using GPS
Post the data to Server
how to use distanceBetween built in methog