Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application not run in the background

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello anybody is there?
 
Srinivas Vurrinkala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic