Re: Menggunakan getIntent() dalam fragment

14 views
Skip to first unread message

Andrian Kurniady

unread,
Dec 2, 2014, 10:55:14 PM12/2/14
to codeand...@googlegroups.com

On Wed, Dec 3, 2014 at 2:53 PM, Zepri Hasiholan <hasihol...@gmail.com> wrote:
Gan, mohon bantuannya, saya pemula

Kalau di activity biasa menggunakan getIntent(), yang digunakan untuk meng-assignt variabel dari activity sebelumnya begini

Intent intent = getIntent();
        nama = intent.getStringExtra("nama");
        alamat = intent.getStringExtra("alamat");
        lblNama.setText("Nama Kamu : " + nama);
        lblAlamat.setText("Alamat Kamu : " + alamat);

--
You received this message because you are subscribed to the Google Groups "Code Android Indonesia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codeandroid-i...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages