Android Open Source - Android-App-Project___Partner-Finder Selection Activity






From Project

Back to project page Android-App-Project___Partner-Finder.

License

The source code is released under:

Apache License

If you think the Android project Android-App-Project___Partner-Finder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.google.cloud.backend.ui;
/*  w  w w .ja  v  a2 s. c om*/
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.google.cloud.backend.R;
import com.google.cloud.backend.sample.guestbook.GuestbookActivity;
/**
 * Selection activity to select option from three
 */
public class SelectionActivity extends Activity implements OnClickListener{

  //Variable declaration
  private Button _chatButton;
  private Button _findPartnerButton;
  private Button _createEvent;


  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.selection);

    //Initializing UI components
    _chatButton = (Button) findViewById(R.id.button1);
    _chatButton.setOnClickListener(this);
    _createEvent = (Button) findViewById(R.id.button2);
    _createEvent.setOnClickListener(this);

    _findPartnerButton = (Button) findViewById(R.id.button3);
    _findPartnerButton.setOnClickListener(this);
  }

  @Override
  public void onClick(View v) {

    switch (v.getId()) {
    //Switch to Chat activity
    case R.id.button1:
      Intent intent = new Intent(SelectionActivity.this, GuestbookActivity.class);
      startActivity(intent);
      break;

      //Switch to create event screen
    case R.id.button2 :
      Intent intent1 = new Intent(SelectionActivity.this ,CreateEventActivity.class);
      startActivity(intent1);

      break;

      //Switch to Events list activity
    case R.id.button3 :

      Intent intent2 = new Intent(SelectionActivity.this ,EventListActivity.class);
      startActivity(intent2);

    default:
      break;
    }
  }
}




Java Source Code List

com.google.cloud.backend.GCMBroadcastReceiver.java
com.google.cloud.backend.GCMIntentService.java
com.google.cloud.backend.android.mobilebackend.MobilebackendRequestInitializer.java
com.google.cloud.backend.android.mobilebackend.MobilebackendRequest.java
com.google.cloud.backend.android.mobilebackend.Mobilebackend.java
com.google.cloud.backend.android.mobilebackend.model.BlobAccess.java
com.google.cloud.backend.android.mobilebackend.model.EntityDto.java
com.google.cloud.backend.android.mobilebackend.model.EntityListDto.java
com.google.cloud.backend.android.mobilebackend.model.FilterDto.java
com.google.cloud.backend.android.mobilebackend.model.Filter.java
com.google.cloud.backend.android.mobilebackend.model.QueryDto.java
com.google.cloud.backend.core.CloudBackendAsync.java
com.google.cloud.backend.core.CloudBackendFragment.java
com.google.cloud.backend.core.CloudBackendMessaging.java
com.google.cloud.backend.core.CloudBackend.java
com.google.cloud.backend.core.CloudCallbackHandler.java
com.google.cloud.backend.core.CloudEndpointUtils.java
com.google.cloud.backend.core.CloudEntity.java
com.google.cloud.backend.core.CloudQuery.java
com.google.cloud.backend.core.Consts.java
com.google.cloud.backend.core.Filter.java
com.google.cloud.backend.sample.guestbook.GuestbookActivity.java
com.google.cloud.backend.sample.guestbook.IntroFirstFragment.java
com.google.cloud.backend.sample.guestbook.IntroSecondFragment.java
com.google.cloud.backend.sample.guestbook.IntroThirdFragment.java
com.google.cloud.backend.sample.guestbook.IntroductionActivity.java
com.google.cloud.backend.sample.guestbook.OnIntroNavListener.java
com.google.cloud.backend.sample.guestbook.PostAdapter.java
com.google.cloud.backend.sample.guestbook.SplashFragment.java
com.google.cloud.backend.ui.CreateEventActivity.java
com.google.cloud.backend.ui.EventListActivity.java
com.google.cloud.backend.ui.EventListAdaptor.java
com.google.cloud.backend.ui.MainActivity.java
com.google.cloud.backend.ui.SelectionActivity.java
com.google.cloud.backend.ui.ShowEventActivity.java