Get count of email messages in Email app

by klavin » Thu, 07 Oct 2010 07:28:09 GMT


Sponsored Links
 I'd like to get access to the data stored in the default Email app.
I'd like to find out what accounts are associated with the App, and
for each account, what folders are associated with the account, and
for each folder how many emails are in that folder. I need this
information on 2.1 and 1.5.
I see the AccountManager in 2.1 can give me some of the accounts
configured, but in the Email app you can also add accounts which don't
show up in the AccountManager. How do you get access to the accounts
configured in the Email app.
I'd like to be able to programmatically deleted emails in the users
folders. Are the emails stored in a content Provider? If so whats the
URI.
Any help would be much appreciated.

--



Get count of email messages in Email app

by klavin » Thu, 07 Oct 2010 07:30:35 GMT


 I'd like to get access to the data stored in the default Email app.
I'd like to find out what accounts are associated with the App, and
for each account, what folders are associated with the account, and
for each folder how many emails are in that folder. I need this
information on 2.1 and 1.5.
I see the AccountManager in 2.1 can give me some of the accounts
configured, but in the Email app you can also add accounts which don't
show up in the AccountManager. How do you get access to the accounts
configured in the Email app.
I'd like to be able to programmatically deleted emails in the users
folders. Are the emails stored in a content Provider? If so whats the
URI.
Any help would be much appreciated.

--


Sponsored Links


Get count of email messages in Email app

by Kumar Bibek » Thu, 07 Oct 2010 13:34:57 GMT


 You cannot do all of these yet. the content provider for the mail app
doesn't publish or give permissions for other apps to access it's data,
well, not all of it's data....

Deleting mails is not possible.
Getting unread counts is also not possible.




>



Get count of email messages in Email app

by Kumar Bibek » Thu, 07 Oct 2010 13:43:24 GMT


 Not possible.




>



Other Threads

1. killpg implementation missing in bionic signal.h

On Apr 7, 3:44pm, Kaushik Prajapati <kaushikprajap...@gmail.com>



A future version of bionic libc will provide killpg().

You may want to provide a substitute to ease porting.  From the Linux
man page:

  On  Linux, killpg() is implemented as a library function that makes
the
  call kill(-pgrp, sig).

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. MOD: WTA: Ingin ikut Xperia X10 Launch, Tapi tidak terdaftar di List

Dari dulu gathering  id-android menganut kekeluargaan dan kebersamaan, jika
nama tidak ada di list masih tetap diperbolehkan datang, dengan konsekwensi
misalnya: tidak mendapat snack,tidak mendapat tempat duduk dll. Saya percaya
*tujuan utama kita ikut gathering ingin berbagi ilmu, kenalan untuk lebih
akrab*,

 bukan untuk* snack gratis, minum gratis dll*.

-- 
Salam Android,


Agus Hamonangan

3. Do Services *really* run in the Background?

4. Dalvik test cases failure

5. MOD: WTA: Ingin ikut Xperia X10 Launch, Tapi tidak terdaftar di List

6. Calling close() on a Cursor that's backing a ListView

7. How do you change values in another activity from a activity?