[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-22 Thread Alex Corbi
So, for those interessted on the issue. joebowbeer's suggestion does not seem to work, the Broadcast receiver is never activated with that Intent. The solution was to register a ContentObserver that listens to the Gmail content provider (content://gmail-ls/) , each time the data set is being

[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-19 Thread Alex Corbi
Anybody had some experience with this? On 19 Feb., 08:35, Alex Corbi a.co...@gmail.com wrote: Ok Thanks Dianne, What interest me is detecting when new GMail is being received. Wich is the uri of the Gmail content provider? content://gmail-ls ??? is there any documentation somewhere about

Re: [android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-19 Thread Mark Murphy
Alex Corbi wrote: Ok Thanks Dianne, What interest me is detecting when new GMail is being received. Wich is the uri of the Gmail content provider? content://gmail-ls ??? is there any documentation somewhere about how the information is being stored in this Content-Provider. GMail is

[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-19 Thread Alex Corbi
Sure, i know... you mean there is no possibility of knowing when new emails (from gmail) are being received? What about other Emails from accounts registered on the Email app? But there are ways to read the new emails in Gmail (I currently use a port for Android of the javaMail library to access

Re: [android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-19 Thread Mark Murphy
Alex Corbi wrote: Sure, i know... you mean there is no possibility of knowing when new emails (from gmail) are being received? What about other Emails from accounts registered on the Email app? None of those are part of the SDK. Generally speaking, the SDK is mostly for the operating system,

[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-19 Thread joebowbeer
On Feb 18, 11:35 pm, Alex Corbi a.co...@gmail.com wrote: What interest me is detecting when new GMail is being received. Intent.ACTION_PROVIDER_CHANGED doc says GmailProvider sends this notification when the set of unread mail in the inbox changes. (Though I haven't used this so you'll need

[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-19 Thread Alex Corbi
Thanks joe i will try that out, is that info reliable Mark??? Thank you guys. On Feb 19, 7:56 pm, joebowbeer joe.bowb...@gmail.com wrote: On Feb 18, 11:35 pm, Alex Corbi a.co...@gmail.com wrote: What interest me is detecting when new GMail is being received.

[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-18 Thread Alex Corbi
HI, is there a way for an app to know when a data sync happens? It would be just great to be able to Register a BroadcastReceiver and handle that action, in my case instead of fire a data synchronization i would like to detect when it happens. is it possible? On Jan 25, 6:59 pm, Dianne

Re: [android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-18 Thread Dianne Hackborn
There is really no such thing as a global data sync. You can write a SyncAdapter to take care of syncing with a particular content provider, and decide when to sync. You can register a ContentObserver to see when the data inside of a content provider changes. A global concept of sync isn't

[android-developers] Re: Intent.ACTION_SYNC no docs or resolveInfo

2010-02-18 Thread Alex Corbi
Ok Thanks Dianne, What interest me is detecting when new GMail is being received. Wich is the uri of the Gmail content provider? content://gmail-ls ??? is there any documentation somewhere about how the information is being stored in this Content-Provider. On Feb 19, 4:03 am, Dianne Hackborn