accessing emails through content provider - Android Software Development

Hi all,
i want to show the last recent emails of a selected folder in a homescreen widget. access to internal content provider content://com.android.email.provider is locked by protectionLevel=3, so only system apps can access this provider.
is there a chance to do this with root access?
are there other possible solutions to get access to the emails stored on the phone?
regards,
foo

Related

Few Questions

is it possible to do the following:
Move the paths to certain folders such as my docs and my pics to storage card ie. change windows so that it looks for ringtones on storage card instead of windows directory?
access the internet via bluetooth connection instead of USB?
use a program to chat via bluetooth with other people?
change the contact book so that you can add several mobile numbers per user ie. like in Nokia where you can add a note to each number eg. t-mobile, vodafone number etc.?
thank you

How to retrieve data from my broken device ?

Hi all,
I've just broke the screen of my spv c500 (orange) and I can't see anything.
How can I retrieve data from it ? most important is the address book.
I pluged it via usb and I could retrieve the photos and some messaging data here:
\Windows\Messaging (files are in *.mpb format and I cannot view them, but whatever, this is not so important..)
but where is the ADDRESS BOOK on this device ?
I just need a path or a method to read it ...
Note: I never used Active Sync
Thanks a lot for your help,
Cheers,
pj
If you've got access to Visual Studio/EVC, you can use Remote Zoomin to view the screen over activesync. Then, you can install a remote control app and control your device like that temporarily.
Your best bet is to download a trial of a backup app like Sprite, do a full system backup, and work from there.
It would be wise for you to use ActiveSync ASAP, it'll backup automatically.
Address book will be saved in a database file, hopefully cemail.vol and pim.vol etc in your root.
V

[Q] [APP/Q] location based email fetching

with my SGS and android 2.2.1 i am happy in general but what i am missing is
a scheduling mechanism that can interpret if it has to fetch mail based on time and location (cell. not GPS).
let's say you don't want the phone to fetch mail when you are at home/work or otherwise you don't want it to do when you are not within a specific cell.
for the accounts that can be received from AccountManager this is no problem, but i can't get access to that ones that are stored in the emailer (POP/IMAP). (unfortunately what i am using most is POP and IMAP...)
also i'd love to have a "refresh all" button that can fetch mails from all the accounts immediately.
first of all:
does this kind of app/service already exist?
if not:
is it possible to get access to the accounts from the emailer via the API?
and if not:
where and how does the emailer store its data? is it readable anyhow?
edit: yes it is readable
providers are stored here: /data/data/com.android.email/databases/EmailProvider.db
passwords are stored in plain text!
edit: one way for accessing via AccountManager would be to implement Sync-Adapters for POP/IMAP
http://developer.android.com/resources/samples/SampleSyncAdapter/index.html
bennson

[Q] Content Provider for Settings/Call Settings/Internet Call Settings/Accounts

Hey folks, I'm new to Android development and the last piece of real code I touched was over 10 years ago.
I went thru the google documentation on the settings content provider, but it seems only some of the settings are exposed. I'm struggling to find a way to get access to the Call Settings, in particular I want to get the list of SIP accounts from Settings/Call Settings/Internet Call Settings/Accounts.
I'm hoping to monitor the registration status of these accounts from my app.
Any help would be appreciated.
If its not in the documentation then it would probably have to be accessed through a content Uri. The exact path for that Uri, however, is not known to me.
Actually a uri might just be able to link straight to that page in the settings. Im not sure if it could manage the accounts directly. Might want to see if there is a database associated with them
From something awesome
Dude, all content providers are accessible by URI. And if you don't have any solid information to contribute, why post at all?
stangri said:
Dude, all content providers are accessible by URI. And if you don't have any solid information to contribute, why post at all?
Click to expand...
Click to collapse
alright, durr.
i did look through settings.db and other account and call databases and found one reference to sip. it was in settings.db and it was sip_call_options of which the value was SIP_ASK_ME_EACH_TIME
also in looking at the SIP docs and the SipManager and SipProfile classes they look to be made for creating sip apps that do not use anything from the Internet call Settings. There is also a good SIP demo app here http://developer.android.com/resources/samples/SipDemo/index.html but again it is a stand alone sip client that gathers the sip account info at runtime.
i dont have the answer you are looking for, just trying to help. i still think the most likely spot to gather this info will be from a database somewhere on the phone. just like how there is no api for accessing gmail but it can be reached by querying the local gmail database directly.

[Q] After sync with Skydrive, will the content stay on phone?

After loading all sorts of files onto Skydrive, I performed a sync with my WP7 phone. While the phone is connected to net or wifi, I can refresh the content and view the content. But it seems that every file is downloaded from Skydrive everytime I open the file. Why don't the files synced to the phone and stay with the phone so that I can view even if I don't have net or wifi access?
On slow connections and try to open a large file, if I have to download it from Skydrive, it will kills my monthly data plan I think.
Can any expert shed some light on how to keep the files synced AND stay with the phone?
Thanks.

Categories

Resources