http://www.openintents.org/en/node/121

On Jan 1, 10:43 am, Rames <[email protected]> wrote:
> Hi Gnugu,
>
>   Is it possible to launch theGmailapplication from by code in my
> application?
>
> Thanks,
> Rames.P.
>
> On Nov 29 2009, 2:10 am, gnugu <[email protected]> wrote:
>
> > Here is how:
>
> > 1. You need to register a content observer (not broadcast receiver)
> > contentResolver.registerContentObserver(Uri.parse("content://gmail-
> > ls"), true,
> >                                 _gmailObserver);
>
> > _gmailObserver is your own ContentObserver object.
>
> > 2. ContentObserver.onChange is going to be called every time something
> > changes inGmail.
>
> > Here you get all conversations like so:
> > Cursor conversations = _contetResolver.query(
> >                                         
> > Uri.parse("content://gmail-ls/conversations/"
> >                                                         + YourEmailAddress, 
> > null, null, null, null);
>
> > And the actual conversation messages will be:
> > Cursor messages = _contetResolver.query(Uri
> >                                                                 
> > .parse("content://gmail-ls/conversations/"
> >                                                                             
> >     + YourEmailAddress + "/"
> >                                                                             
> >     + String.valueOf(conversationId)
> >                                                                             
> >     + "/messages"), null, null, null, null);
>
> > This is read-only access. Was all I needed at a time.
>
> > HTH.
>
> > On Nov 27, 8:56 am, Olivier <[email protected]> wrote:
>
> > > gnugnu, did you get a solution ?
>
> > > On 8 nov, 20:55, gnugu <[email protected]> wrote:
>
> > > > Thanks moneytoo for your answer.
>
> > > > How does Google themselves put the notification on the status bar
> > > > then?
>
> > > > I'm sure there is something.
> > > > Is there a way to catch the intents flying around? To sniff it out?
>
> > > > On Nov 8, 7:56 am, moneytoo <[email protected]> wrote:
>
> > > > >http://code.google.com/p/android/issues/detail?id=3668
>
> > > > > On Nov 7, 11:06 pm, gnugu <[email protected]> wrote:
>
> > > > > > Hello,
> > > > > > Does anybody know how to setupBroadcastReceiver'saction and intent-
> > > > > > filter so it can be invoked whenGmailis received?
>
> > > > > > I thing CubeWorks does it, so it's not entirely impossible.
>
> > > > > > Any help is welcome.
>
> > > > > > Thank you!

-- 
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