Android Open Source - quick_messenger Display Message Activity






From Project

Back to project page quick_messenger.

License

The source code is released under:

GNU General Public License

If you think the Android project quick_messenger 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.davecoss.android.QuickMessenger;
//w ww .j  ava 2  s  .  com
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.widget.TextView;

public class DisplayMessageActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);

        // Get the message from the intent
        Intent intent = getIntent();
        String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);

        // Create the text view
        TextView textView = new TextView(this);
        textView.setTextSize(40);
        textView.setText(message);

        // Set the text view as the activity layout
        setContentView(textView);
    }



}




Java Source Code List

com.davecoss.android.QuickMessenger.DisplayMessageActivity.java
com.davecoss.android.QuickMessenger.EditMessages.java
com.davecoss.android.QuickMessenger.MainActivity.java
com.davecoss.android.QuickMessenger.MessageDB.java