I need to send some string data from my one application activity to my other application activity in android and not between the activities within the same application. How to do that? What intent filters my other application need to declare? Please try to elaborate with example.....
相关问题
- 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
Here is the tutorial for sending and receiving content between applications. check it once
As far as I could understand from your answer you're looking for intents:
On the manifest of App A - Activity Alpha you declare a intent filter with Category DEFAULT and Action =
com.your_app_package_name.your_app_name.ActivtiyAlpha
The on App B, Activity Beta you put the code to launch A and pass the data:
Then back on App A - Activity Alpha you put the code:
Use Shared Preferences. Set Mode to MODE_WORLD_READABLE
If you're concerned with only a small amount of data, Android provides a SharedPreferences class to share preferences between applications. Most notably, you can add OnSharedPreferenceChangeListener to each application so they can be notified when the other changes the value.
Most importantly, you can't ensure that both applications are running
You can find more information on http://developer.android.com/guide/topics/data/data-storage.html