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:

  1. write file
  2. 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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -