Example #1
0
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.party);

    mPartyName = (TextView) findViewById(R.id.party_name);

    Button button = (Button) findViewById(R.id.join_party_button);
    button.setOnClickListener(
        new OnClickListener() {
          public void onClick(View v) {
            scanURL();
          }
        });

    button = (Button) findViewById(R.id.join_default_button);
    button.setOnClickListener(
        new OnClickListener() {
          public void onClick(View v) {
            JunctionApp app = (JunctionApp) getApplication();
            app.connectToSession(null);
          }
        });

    button = (Button) findViewById(R.id.update_profile_button);
    button.setOnClickListener(
        new OnClickListener() {
          public void onClick(View v) {
            updateProfile();
          }
        });

    listenForAnyPropChange();
    refresh();
  }
Example #2
0
 public void onDestroy() {
   super.onDestroy();
 }