Professional Documents
Culture Documents
Document 33 Intent
Document 33 Intent
Bi
32
Intent
Lp trnh Android
Ni dung bi hc
Lp trnh Android
Lp trnh Android
Lp trnh Android
Khai bo:
Intent intent = new Intent(this, <Component>);
V d: khi ng Activity c tn SecondActivity t MainActivity
Intent intent = new Intent(MainActivty.this, SecondActivity.class);
startActivity(intent);
Lp trnh Android
Khai bo:
Intent intent = new Intent(<Action>);
V d: khi ng Activity c th thc hin ACTION_VIEW.
Intent intent = new Intent(Intent.ACTION_VIEW);
startActivity(intent);
Lp trnh Android
Lp trnh Android
Lp trnh Android
Lp trnh Android
END
Ths. Trn Duy Thanh duythanhcse@gmail.com 0987773061 http://duythanhcse.wordpress.com