views:

59

answers:

2

Please can anyone give me links or code or concept for Running an activity in hidden mode.. That is, it has to run in background without disturbing the user.. It should not display any window or layout.

+3  A: 

An Activity is always something that is show to the user. If an activity is not shown to the user it is not executing code but will be paused by the system.

You should look into services if you want to have a running process that is not visible to the user.

Janusz
does this service class has the properties and functionality of Activity? can we use all the resources and write all the java code and methods in the service? im new to android..Thanks for fast reply..
manidhar mulaparthi
of course you can...
ravi
+2  A: 

Use a service instead of an activity ...That will be better to implement a running process not visible to the user and do perform the work...

ravi