Android Apps to asynchronously read some kind of buffer -
i assigned task research , implement 2 apps following:
- app writes content buffer/register of sort
- app terminates
- app b starts , reads buffer
the apps not supposed run @ same time.
first of don't know possibilities have. came following:
- write file
- write shared memory range
are 2 options possible , have grant app b right access file or memory range?
furthermore supposed check network sockets usage "buffer". know go against supposed done expected! trying use datagramsocket because can open kind of socket, send packets on it, close socket , terminate app. thought there system buffer holding packets until calls receive on datagramsocket same port. possible or system throw packets away when nobody receiving them immediately?
there class in android api created allow sharing data between different applications - contentprovider
.
you should create contentprovider
in charge of data (i recommend using sqlite database store data), , both apps can use same contentprovider
access and/or modify data.
it not matter in of apps contentprovider
resides, best in app since 1 creating , modifying data.
see great guide on how create contentprovider
:
http://developer.android.com/guide/topics/providers/content-providers.html
Comments
Post a Comment