Android Open Source - Android-App-Project___Partner-Finder Show Event 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;
/*from   ww w.j a v  a 2s. c o m*/
import java.util.HashMap;
import java.util.Properties;

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 android.widget.EditText;

import com.google.cloud.backend.R;
import com.google.cloud.backend.core.CloudBackend;
import com.google.cloud.backend.core.CloudEntity;

/**
 * Activity to show details of an Event
 */
public class ShowEventActivity extends Activity implements OnClickListener{

  //Variable declaration
  private EditText _nameEditText;
  private EditText _detailsEditText;
  private EditText _placeEditText;
  private EditText _dateEditText;
  private EditText _timeEditText;
  private EditText _noOfFrndsEditText;

  private Button _joinButton;
  private Button _cancelButton;

  private ProgressDialog progressDialog;

  protected String timeString;
  protected String dateString;
  protected String noOfFriends;
  private CloudBackend cloudBackend;

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

    //Get intent and data from EventListAdaptor 
    Intent intent = getIntent();
    Bundle bundle = intent.getExtras();

    //Get properties from bundle/serialized object
    @SuppressWarnings("unchecked")
    HashMap<String, Object> properties = (HashMap<String, Object>) bundle.getSerializable("eventInfo");

    //Getting data according to keys
    String name = (String) properties.get("name");
    String details = (String) properties.get("details");
    String place = (String) properties.get("place");
    String date = (String) properties.get("date");
    String time = (String) properties.get("time");
    String noOfFriends = (String) properties.get("nooffrnds");
    String propertyName = (String) properties.get("propertyName");



    //Initializing the UI components
    _nameEditText = (EditText) findViewById(R.id.nameEditText);
    _detailsEditText = (EditText) findViewById(R.id.detailsEditText);
    _placeEditText = (EditText) findViewById(R.id.placeEditText);
    _dateEditText = (EditText) findViewById(R.id.dateEditText);
    _timeEditText = (EditText) findViewById(R.id.timeEditText);
    _noOfFrndsEditText= (EditText) findViewById(R.id.nofFrndsEditText);


    //Initializing buttons
    _joinButton = (Button) findViewById(R.id.joinButton);
    _joinButton.setOnClickListener(this);

    _cancelButton = (Button) findViewById(R.id.cancelButton);
    _cancelButton.setOnClickListener(this);


    //Setting the values to UI components
    _nameEditText.setText(name);
    _detailsEditText.setText(details);
    _placeEditText.setText(place);
    _dateEditText.setText(date);
    _timeEditText.setText(time);
    _noOfFrndsEditText.setText(noOfFriends);

  }

  @Override
  public void onClick(View v) {

    switch (v.getId()) {
    case R.id.createButton:

      break;

    case R.id.cancelButton:

      finish();
      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