This probably isn't the best way to transfer data between apps.  It's
a way, and not a bad way, but in general you can just use a simple
Intent.  Intents are good for "poking" another app, to implement a
sort of message like protocol.  However, there are also (perhaps more
appropriate ways):  the standard way is to use a Messenger / Handler
pair, or something like this to do the communication for you, on top
of which you can send messages back and forth.  You can also use AIDL
which implements RPC between processes in Android.  (In fact,
messengers are built on top of aidl when you get down to it.)

There is an even larger problem, however.  Typically if you have two
apps that need to communicate, this very likely indicates that you
might as well just have a single app.  Why are you opposed to having
just a single app, rather than splitting up your application logic
between the two and then implementing messenging between them to
communicate (which can be tricky to implement!)

kris

On Sat, Feb 25, 2012 at 2:46 PM, YuviDroid <[email protected]> wrote:
> Hey,
>
> if you want to send simple data between two apps (on the same device) you
> can use BroadcastReceivers with your own intent filter.
>
> You can find more info here:
> http://developer.android.com/guide/topics/intents/intents-filters.html
>
>
> On Sat, Feb 25, 2012 at 12:59 PM, laxman k <[email protected]> wrote:
>>
>> hi...android guys
>>
>>               i am laxman.I am bulid acadamic project in
>> android...that requires the comunications b/w two android
>> applications.that means tranfer simple strings two one android app to
>> anther android app.
>>
>>                 can u help me ..How to approach this
>> concept.....??????
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> YuviDroid
> Check out Launch-X (a widget to quickly access your favorite apps and
> contacts!)
> http://android.yuvalsharon.net
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to