Sajmon

StartingIntentServiceWithResultReceiver

Feb 13th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.17 KB | None | 0 0
  1. Intent i = new Intent(this, DownloadService.class);
  2. i.putExtra("url", "http://www.example.com");
  3. i.putExtra("receiver", new DownloadReceiver(new Handler()));
  4. startService(i);
Advertisement
Add Comment
Please, Sign In to add comment