Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dumpsys activity | grep My.App.Name
- public class MyIntentService extends IntentService
- {
- public MyIntentService()
- {
- super("MyIntentService");
- }
- @Override
- protected void onHandleIntent(Intent intent)
- {
- t1.start();
- }
- Thread t1 = new Thread()
- {
- public void run()
- {
- ......................
- }
- }
- }
- <service
- android:name=".MyIntentService"
- android:enabled="true"
- android:launchMode="singleTask">
- <intent-filter>
- <action android:name="android.intent.action.RUN" />
- <action android:name="android.intent.action.MAIN" />
- </intent-filter>
- </service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement