Iam doing one application.In that i want to run the my application in the background.So how to write the code for that.Please tell me because iam very new for this technology.
See Question&Answers more detail:osIam doing one application.In that i want to run the my application in the background.So how to write the code for that.Please tell me because iam very new for this technology.
See Question&Answers more detail:osThe general answer is, you can not run your application while in background, except certain cases.
Doc says,
Most applications that enter the background state are moved to the suspended state shortly thereafter. While in this state, the application does not execute any code and may be removed from memory at any time. Applications that provide specific services to the user can request background execution time in order to provide those services.
So only some specific services like audio, location and voip services can execute in background. Read this Executing Code in the Background
doc for more detail regarding the background services.