[android-developers] sendBroadcast vs ContentProvider
Hi ,
I have a scenario where data needs to be continously exchanged between
two applications or rather, one application acts as the data provider
and the other simply uses it.
I am thinking of two possible solutions,
1. Use the sendBroadcast() - broadcast a app-directed intent with the
specific data
2. Make the data provider application as a content provider, where all
the data is written to sqlite data base, and the first application
queries for the data after every x seconds.
Here the data is mostly String, but can be a very long String.
The frequency of updates is very frequent.
The two applications cannot be combined.. :(
I am not sure of the implications of either approach, fast vs
performance vs preferred..
What should be the suggested approach?
Thanks in advance..
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home