본문 바로가기

# 02/Android

[Android] intent put, get

반응형
Intent go_order = new Intent(getApplication().getApplicationContext(), OrderActivity.class);
go_order.putExtra("productNum", productNum);
startActivity(go_order);


Intent go_live_play = new Intent(context.getApplicationContext(), ViewerActivity.class);
go_live_play.putExtra("productNum", item.getProduct_num());
context.startActivity(go_live_play.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));


productNum = getIntent().getStringExtra("productNum");


반응형

'# 02 > Android' 카테고리의 다른 글

[Android] AlertDialog  (0) 2019.09.23
[Android] 스피너  (0) 2019.09.19
[Android] android:scaleType  (0) 2019.09.16
[Android] SharedPreference  (0) 2019.08.30
[Android] TextView Shadow 그림자 넣기  (0) 2019.08.27