Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onHandleIntent(Intent intent) {
- try {
- try {
- String host = intent.getStringExtra("host");
- String username = intent.getStringExtra("username");
- String password = intent.getStringExtra("password");
- ApiConnection con = ApiConnection.connect(host);
- con.login(username, password);
- // Connected
- } catch (Exception e) {
- // Exception
- }
- } catch (Exception e) {
- // Exception
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement