Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. dumpsys activity | grep My.App.Name
  2.  
  3. public class MyIntentService extends IntentService
  4. {
  5. public MyIntentService()
  6. {
  7. super("MyIntentService");
  8. }
  9.  
  10. @Override
  11. protected void onHandleIntent(Intent intent)
  12. {
  13. t1.start();
  14. }
  15.  
  16.  
  17. Thread t1 = new Thread()
  18. {
  19.  
  20. public void run()
  21. {
  22. ......................
  23. }
  24. }
  25. }
  26.  
  27. <service
  28. android:name=".MyIntentService"
  29. android:enabled="true"
  30. android:launchMode="singleTask">
  31. <intent-filter>
  32. <action android:name="android.intent.action.RUN" />
  33. <action android:name="android.intent.action.MAIN" />
  34. </intent-filter>
  35. </service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement