Hi All, I have a same kind of problem..
I have an activity in the another process, Say it is running as a back ground. I want to tell that activity to start something.. how do i do that?? Regards, Manjunatha On Mar 23, 4:13 am, me tun <[email protected]> wrote: > Yeah, I got my example above to work across processes with intents. I > actually managed to send the soft keyboard character sequence and > cursor position to another text edit view via a bundle in > intent.PutExtra()... So basically, I can type in one application and > have it appear in another one which I needed to do for something I'm > working on. Thanks for all your help. > > On Mar 21, 5:11 am, David Turner <[email protected]> wrote: > > > > > On Fri, Mar 20, 2009 at 10:46 AM, Kenny <[email protected]> wrote: > > > > I wonder if intents are sent across Linux processes too. Very anxious > > > to know the answer. > > > Of course, they are transparently send across processes when necessary, or > > sent locally if the receiver is in the same process. > > This magic is the exact purpose of the Android "Binder". > > > > Kenny > > > > On Mar 19, 1:05 pm, me tun <[email protected]> wrote: > > > > Thanks Dianne, a colleague was telling me basically this too. Does it > > > > matter that the activities are running on different processes? > > > > > On Mar 19, 3:50 pm, Dianne Hackborn <[email protected]> wrote: > > > > > > If you are communicating between activities, you wouldn't use > > > interfaces at > > > > > all -- all of the communication with be by sending Intents between > > > > > them > > > in > > > > > various ways, and you can use Intent.putExtra() to put strings and > > > other > > > > > data in them. > > > > > > If you are communicating via a Service, you can use Messenger as the > > > > > interface returned by onBind(), and you can stuff fairly arbitrary > > > > > data > > > in > > > > > the Message with message.setData(). > > > > > > On Wed, Mar 18, 2009 at 9:22 PM, me tun <[email protected]> wrote: > > > > > > > Just say I have two applications, each with one activity running on > > > > > > separate processes and I want to send a simple string between them. > > > > > > For the purposes of this example, let us say I have a button that > > > > > > sends whatever is typed into an EditText view to the other > > > application > > > > > > where it is then displayed. > > > > > > > Do I have to expose a remote interface via a service that co-resides > > > > > > between the two applications? > > > > > > > Or can I do something simpler (is there a way to pass data between > > > > > > processes without defining your interface using AIDL)? > > > > > > > Thanks for clearing this up for me, as I seem to be struggling with > > > > > > performing IPC at the moment. I'm pretty sure I have to use the > > > > > > Android IPC path and generate a remote interface using AIDL. I'm > > > just > > > > > > not sure about the binding to service part. > > > > > > > Cheers! > > > > > > -- > > > > > Dianne Hackborn > > > > > Android framework engineer > > > > > [email protected] > > > > > > Note: please don't send private questions to me, as I don't have time > > > to > > > > > provide private support. All such questions should be posted on > > > > > public > > > > > forums, where I and others can see and answer them.- Hide quoted text > > > > > - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

