반응형
If you want to pass data from the preference activity to your main activity use this code: In your main activity class (launch):
In your preference activity class (set the result):
In your main activity class (get the result):
You can put as many extras as you want and not only strings but all standard data types. |
Intent intent = new Intent(getApplicationContext(), com.jivepia.jiverun.AS_JiveRun_20170702_diary.history.HistoryDetailOfListForWorkout.class);
intent.putExtra("_id", workoutList.get(position)._id);
startActivityForResult(intent,REQUEST_CODE);
반응형
'모바일개발(Mobile Dev) > 안드로이드개발(Android)' 카테고리의 다른 글
each toolbar different navigation drawer (0) | 2017.07.15 |
---|---|
when using imageView in camera (0) | 2017.07.08 |
how to use option menu icon each Toolbar in Fragment (0) | 2017.07.01 |
how to stop a back button in android (0) | 2017.04.14 |
how to make a swiped multi tabed view in android (0) | 2017.04.14 |