i use three activity ActiviytA, ActivityB and ActivityC.from ActivityA have onActivtResult function i need result from Activityc in b/w i travel through the activityB
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Thats very easy. You also can implement an onActivityResult inside ActivityB and then just pass it back to activity A:
this is the way I always use my home button implementations.
If I understood well, you open ActivityB from ActivityA, and then ActivityC from ActivityB. You want ActivityA to get values from ActivityC.
Probably the easiest way is to store the values as static, and read them directly from the class.
If you want to use StartActivityForResult (so you can get the results from onActivityResult), you should make ActivityB receive the results from C, and then make ActivityB pass the results to ActivityA:
ActivityA implements ResultsReciever. Then start Activity B, and retrieve the calling activity (ActivityA) with
Declare ActivityA implementing the interface:
On Activity B, at the onStart method:
Then ActivityB starts ActivityC with StartActivityForResult(). In the onActivityResult in ActivityB you can call then: