File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Application not run in the background Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Application not run in the background" Watch "Application not run in the background" New topic
Author

Application not run in the background

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Hello everybody, In my application I want to send sms, but the application must have to run in the background. It send the sms but it is not run in the background. I have following code.

//Background.java


My Service class look like this

//MyService.java


//AndroidManifest.xml



But when I run it It is not running in the background.

Thanks


Life is easy because we write the source code.....
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Hello anybody is there?
Srinivas Vurrinkala
Greenhorn

Joined: Feb 15, 2009
Posts: 5
Hi Pramod,
Why don't you write broadcast receiver class as inner-class rather than anonymous class?
I feel code wise ok may be just some debugging needed like check in adb whether the events are recieved or not.


SCJP 5.0 Completed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application not run in the background