[Q] Root Access to Gmail Data - Android Software Development

I am making a gmail widget and was wanting to add an option for root users to have the widget access the gmail data that is already on the phone. i understand there is no api access to access the emails within the gmail app. to do this i would have to access the users gmail account using imap. could a user with root access not have to use the wireless radio to access the data already on their phone?

Related

Problems with gmail through ActiveSync rather than standalone gmail app

I spent way too much time trying to get this working last night, so I'm here to ask if anyone knows how I can get my gmail account setup through ActiveSync, rather than the normal gmail app.
My reasoning for this is because I want to have my mail viewable through the Mail widget - but it will only let me choose an ActiveSync account
To setup the ActiveSync account on my HTC Touch Pro I just followed Google's guide here: http://www.google.com/support/mobile/bin/answer.py?answer=138636&topic=14299
I used the same details to setup an ActiveSync account on my Hero, and it seems to successfully connect and tell me it's synced - but none of my emails are appearing?
Any ideas anyone? Or is there perhaps a way to select my gmail account in the HTC Mail widget?
You won't get email through ActiveSync with gmail - it's for Contacts and Calendar only.
You could use IMAP or POP3 access to your gmail account, via the HTC mail app...
First, make sure you have IMAP access enabled to your gmail account: http://mail.google.com/support/bin/answer.py?answer=77695
Then, make sure you use the "manual setup" option in the HTC Mail app, and use the info provided on this page to proceed: https://mail.google.com/support/bin/answer.py?answer=114408

Offline Gmail

Had my Iconia for 2 weeks now, and finding new uses for it all the time.
It is a wifi only version, and I have a job that has me outdoors, and away from wifi for most of the day.
I want to cache all of my gmail messages (including attachments) so that I can view and use them offline.
Is there a setting for this, or is there an app?
Running Honeycomb.
Thanks.
I look for this also.
- another solution is
tether your phone with your tablet, and you will access online via phone... backup plan but still usefull sometimes.
You just need to setup gmail in the regular email app. Go to settings, accounts and sync, add account. Use the exchange (corporate) account type. User name is your full gmail email address. Server is m.google.com
It works.
beaups said:
You just need to setup gmail in the regular email app. Go to settings, accounts and sync, add account. Use the exchange (corporate) account type. User name is your full gmail email address. Server is m.google.com
It works.
Click to expand...
Click to collapse
Wow. Thanks for the tip. This is my first time hearing about this.
Should I setup my main account as Google, Exchange, or both?
Sent from my GT-P7510 using Tapatalk
^Not sure. GMAIL gets setup in the native app due to setting up your google account (for market, etc.). Not sure if you can remove it from the GMAIL app. Only drawback is double notifications for emails coming in to your gmail address. I suppose you could turn off notifications for the gmail app if it bothers you.
ja_vander said:
I want to cache all of my gmail messages (including attachments) so that I can view and use them offline.
Is there a setting for this, or is there an app?
Click to expand...
Click to collapse
Do you need _all_ of them? Or just a subset? If you apply an "offline" label in gmail, then you can go into the gmail app and under label options, tell it to sync all of the "offline" label, rather than the default (4 days).
If you do actually need all of them, then I guess you could just apply the "offline" label to everything...
Thanks for all the help.
Still having some problems. When I set up the new account to sync in the regulat email app, it wants to set it up as imap, not as an exchange account type. Maybe I am doing this incorrectly?
I only need to sync one folder, and I figured out how to get the GMail program to sync all those messages, but each one has an attachment which is what I really need, and the attachments do not sync.
Getting close, but not quite what I need yet.
That's odd. The attachments sync fine for me for synced messages in the gmail app?
ja_vander said:
Thanks for all the help.
Still having some problems. When I set up the new account to sync in the regulat email app, it wants to set it up as imap, not as an exchange account type. Maybe I am doing this incorrectly?
Click to expand...
Click to collapse
That's correct, you should add a "Corporate" account via Settings.
It seems now that the GMail app set to sync all mail (not just 4 days) is syncing the attachments for offline use. I am happy!! Thanks for the help everyone.

Gmail Widget

Will someone post the download to the Gmail Widget. I miss it so much. I don't know why they didn't fix it in the new update that just came out. Hope they fix it in Android 3.2
It's apart of the Gmail app....?
uhh.. yea be more specific.
but you talking about this ?
https://market.android.com/details?id=identity.android.GMailWidget
A lot of people lost their Gmail widgets in one of the OTA updates.
it seems the only reliable way to restore it without reformatting is by grabbing the gmail apk from your /system/app, backing it up somewhere, deleting it, restarting, then move your backup to the original place, and install it.
Sent from my Transformer TF101 using Tapatalk
finalhit said:
it seems the only reliable way to restore it without reformatting is by grabbing the gmail apk from your /system/app, backing it up somewhere, deleting it, restarting, then move your backup to the original place, and install it.
Click to expand...
Click to collapse
Is there a way to do this without rooting?
amaddux said:
Is there a way to do this without rooting?
Click to expand...
Click to collapse
No you cannot make modifications to /system/ without root access.
Sent from my Transformer TF101 using XDA Premium App
This is a pretty annoying/glaring issue and I wish there was some way to get visibility on this issue so that Asus could provide us with a fix in the next update.
I understand that rooting it would be fairly simple and an easy way to fix the issue but I (and many others) aren't so keen on rooting our devices at this point. Many app manufacturers are now restricting their apps to tablets/phones without root and this vcould be a problem going forward.
The easiest way to fix this is to do a factory reset. Updates are retained but you will get your gmail widget back. Worked for me.
For those of you who lost their GMail widget, my workaround below may help (and even enhance your email widget experience):
First - Note that the whole basis for the below instructions is that you can setup a GMail account as an activesync/exchange account in the EMail client, instead of in the GMail client, and using push email via activesync as follows:
Go to Account/Sync and add an account, select the type as "EMail"
In the Email address/password box, type in your GMail email address and password and then click on "Manual Setup"
Select the account type as "Exchange"
Now in the DOMAIN\Username field, modify it so it looks like google\[email protected]
For the password, it is your gmail password
For the Server it is m.google.com
Check SSL and Check Accept all SSL Certs
click through the final prompts and you should be done
Final steps - In Accounts & Sync, for the new acct, uncheck the Sync Calendar and Sync Contacts, and then in Accounts & Sync for your old/prior/existing GMail entry, uncheck the Sync GMail box.
What this does as an end result ->
Preserves your existing contacts/calendar setup so you don't end up with duplicate contacts/calendar items from the 2 acct syncs.
Sets up GMail email as push via activesync instead of as a standard Gmail acct, and so it shows up in the Exchange mail client as another mailbox.
Now in the Exchange widget you can tap on the icon in the title bar area and have it show GMail, your other work/exchange activesync account if you have that setup, or a unified inbox.
Also your emails are color coded with a bar, so if you have multiple activesync accounts i.e. the new GMail acct just added via above instructions, plus the existing work account, each should be designated with a color.
So, then all you need is one email widget and have a unified inbox - or if you like having GMail and work activesync email accts scrollable in different widgets, just add the widget twice and tap the title area so one filters on GMail and one on work mail.
rilot said:
The easiest way to fix this is to do a factory reset. Updates are retained but you will get your gmail widget back. Worked for me.
Click to expand...
Click to collapse
I've read both of these solutions on many of the threads. So yeah, there are ways to get it back, but it does seem Asus should be able to include a way of restoring the widget with one of their firmware updates, for users that don't want to reset their device or do not want to root them.
Maybe it will get fixed when google updates the gmail app for Honeycomb.

Need help setting up email - New Android user

Hello,
I am very new to Android. I just received my Note 10.1 today. I am trying to configure my gmail and other mails on it. I want to use the mail app for all my emails instead of GMAIL app. How do I do that? When I initially booted the device, I used my gmail account and it automatically configured my gmail on the GMAIL app. I configured gmail on the native mail app as well. Now I have my gmail on both places, I want to use only the native mail app. Removing email sync under settings > accounts> is causing a sync error icon and it also cause the GMAIL app to crash.
Like I said I am very new to Android, this is my first android device. Can someone help me configure this? Hope I posted this on the right forum.
TIA
kumki said:
Hello,
I am very new to Android. I just received my Note 10.1 today. I am trying to configure my gmail and other mails on it. I want to use the mail app for all my emails instead of GMAIL app. How do I do that? When I initially booted the device, I used my gmail account and it automatically configured my gmail on the GMAIL app. I configured gmail on the native mail app as well. Now I have my gmail on both places, I want to use only the native mail app. Removing email sync under settings > accounts> is causing a sync error icon and it also cause the GMAIL app to crash.
Like I said I am very new to Android, this is my first android device. Can someone help me configure this? Hope I posted this on the right forum.
TIA
Click to expand...
Click to collapse
Use another gmail account for your main android account. And then add your current gmail acount to email app..
Sent from my GT-N8000 using Tapatalk 2
emilfr said:
Use another gmail account for your main android account. And then add your current gmail acount to email app..
Sent from my GT-N8000 using Tapatalk 2
Click to expand...
Click to collapse
Hi, Thanks for reply. So you want me to use this new id to download apps etc on the play store, but use my main id for emails?
I don't use the Gmail app either. I use the Samsung stock e-mail client so my Exchange and other e-mail accounts are all in a unified inbox. Samsung's e-mail client can be set up on Gmail to receive "push" e-mail via Activesync. In the stock e-mail client set up a new e-mail account using your Gmail address and passord. On the first set-up page you'll see a "manual setup" option, select it.
Use these settings...
Under domain\user name enter...
google\"your e-mail address"@gmail.com
Under Exchange server enter...
m.google.com
Now you'll receive e-mails as they arrive in you Gmail inbox. This method is also less hard on the battery. Go in to Settings>Application manager and swipe three times to the left until "all" applications are showing. Scroll down to find the Gmail app. Open it and press "disable." Now all your Gmail will be routed through the stock e-mail client without being duplicated in Gmail.
P.S. - Gmail via Activesync is being discontinued to new users (legacy user's are protected) effective February 1, 2013.
BarryH_GEG said:
I don't use the Gmail app either. I use the Samsung stock e-mail client so my Exchange and other e-mail accounts are all in a unified inbox. Samsung's e-mail client can be set up on Gmail to receive "push" e-mail via Activesync. In the stock e-mail client set up a new e-mail account using your Gmail address and passord. On the first set-up page you'll see a "manual setup" option, select it.
Use these settings...
Under domain\user name enter...
google\"your e-mail address"@gmail.com
Under Exchange server enter...
m.google.com
Now you'll receive e-mails as they arrive in you Gmail inbox. This method is also less hard on the battery. Go in to Settings>Application manager and swipe three times to the left until "all" applications are showing. Scroll down to find the Gmail app. Open it and press "disable." Now all your Gmail will be routed through the stock e-mail client without being duplicated in Gmail.
P.S. - Gmail via Activesync is being discontinued to new users (legacy user's are protected) effective February 1, 2013.
Click to expand...
Click to collapse
***
Thanks for your reply. I have done the first part and it seems to be working. I see mails coming to the native mail app.
But I don't see an option to disable GMAIL app under app manager. All I have is force stop, uninstall updates, clear data, clear cache. NO other options. Am I missing something.
kumki said:
uninstall updates, clear data, clear cache.
Click to expand...
Click to collapse
Oops. To disable an app you always have to uninstall any updates to it first. Once you do that you'll see the "disable" option.
BarryH_GEG said:
Oops. To disable an app you always have to uninstall any updates to it first. Once you do that you'll see the "disable" option.
Click to expand...
Click to collapse
Ok, I did it. It removed the gmail app. I guess I am good now. Thanks.

Sending Email from My Email address

I am a beginner to Android development. I just started making an Android app in which there multiple EditText fields where user would fill in some data and then click a button. On button click I need to send an email using my email address which is GMail (NOT THE END USER'S). So, I searched on internet for this, found a way by using "JavaMail" API. But I had to "Enable access to insecure apps", in Google settings of my GMail address for it to work. I don't want my end users to grant access to their email accounts.
I searched for OAuth2 implementations but all were there for using the end user's account to send email.
Help me to find a way to send email from my own GMail account without enabling insecure apps for my GMail.
If you need any more information let me know.

Categories

Resources