Advertisement
Guest User

Untitled

a guest
Jun 17th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @Override
  2. protected void onHandleIntent(Intent intent) {
  3. try {
  4. try {
  5. String host = intent.getStringExtra("host");
  6. String username = intent.getStringExtra("username");
  7. String password = intent.getStringExtra("password");
  8.  
  9. ApiConnection con = ApiConnection.connect(host);
  10. con.login(username, password);
  11.  
  12. // Connected
  13.  
  14. } catch (Exception e) {
  15. // Exception
  16. }
  17. } catch (Exception e) {
  18. // Exception
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement