Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.testasmack;
- import org.jivesoftware.smack.*;
- import android.app.Activity;
- import android.os.Bundle;
- import android.util.Log;
- public class Main extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- Connection conn1;
- setContentView(R.layout.main);
- conn1 = new XMPPConnection("talk.google.com");
- try {
- Log.w("Main", "fin qui tutto ok :D");
- conn1.connect();
- Log.w("Main", "fin qui tutto ok :D");
- conn1.login("user", "pass");
- } catch (Exception e) {
- Log.w("Main", "oops, something was wrong");
- Log.w("Main", e.getMessage());
- Log.w("Main", e.toString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement