sardan Khan tnks for your time

Il giorno domenica 12 giugno 2016 17:14:52 UTC+2, Simon Usardi ha scritto:
>
> package com.example.non.inizializzareunaltraactivity;
>
> import android.content.Intent;
>
> import android.support.v7.app.AppCompatActivity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.EditText;
>
> public class MainActivity extends AppCompatActivity {
>     public  final static String messaggioExtra = 
> "com.example.non.inizializzareunaltraactivity.MESSAGE";
>
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.activity_main);
>
>     }
>     public void invia(View view){
>
>         Intent Portale = new Intent(this, PaginaMessaggio.class);
>
>         EditText nascoasto = (EditText)findViewById(R.id.Hint);
>         String y = nascoasto.getText().toString();
>
>         Portale.putExtra(messaggioExtra, y);
>         startActivity(Portale);
>     }
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f12fd1e0-7029-4464-b1ea-e92e585dfe4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to