Back to project page acs-android-sdk.
The source code is released under:
Apache License
If you think the Android project acs-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.appcelerator.cloud.pushdemo; /* w w w . ja v a 2 s .com*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class ArrivalActivity extends Activity { private String message; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.arrival); Intent intent = getIntent(); message = intent.getExtras().getString("payload"); ((TextView) findViewById(R.id.message_text)).setText(message); final Button gobackButton = ((Button) findViewById(R.id.goback_button)); gobackButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { startActivity(new Intent(getBaseContext(), PushActivity.class)); } }); } @Override protected void onResume() { super.onResume(); } }