Check Valid Username and Password Example For Beginners

Posted by Unknown Kamis, 05 Desember 2013 0 komentar
Using Intent Change One Activity to another Activity and also pass Main Activity Username to sub activity and display in Sub Activity
Program no 2

a)  Create Sample Application With login module. (Check Username and Password)
b)  On Successful Login , go to next Screen , And on Failing login , alert user using Toast. Also Pass Username to next Screen.

Below android program will ask you to enter username and password and a button to submit the text to next screen.

when you press the submit button the username you have entered in the edittext view will be passed to the sub activity.

to create such application you need to use startActivity and pass the intent object which will start sub activity. and add the putExtra method to Pass value along with the activity

from the sub activity page you need to use getintent() to get the last intent which will return the intent refrence.

from the specified intent reference you call the appropriate get method to access the value in sub activity page

Download Activity and Sub Activity Example

Your Comment are most Welcome. if you find any difficulty in this you can  comment us
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Check Valid Username and Password Example For Beginners
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidqvga4.blogspot.com/2013/12/check-valid-username-and-password.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android qvga.