Start / End mobile network for mail sync - Android Software/Hacking General [Developers Only]

Is there a way to do this? I'd like to prevent battery drain and start mobile network only to download mails sometimes during the day... but I don't want to start it manually... just as happens on iphone, blackberry and nokia devices.
Do you know how?
Sent from my HTC Desire using XDA App

I use a "Toggle Data" widget to turn data on and off.
Then under Settings->Accounts & Sync->{account name} you press the menu key to show the "Sync now" option.
If you are using an email client, there is probably a way to do a "Send/Receive" under the menu key there as well.
ByteWrencher
HTC Diamond DIM500-Alltel
ASOP Android

Maybe I didn't explain well what I mean...
I'm looking for an app which let me download mails for my accounts each hour (or better whenever I prefer). I'm able to do this in android mail account settings BUT this works only if data connection has been turned ON before... so to get it working I need to set mobile connection always on.
I need an app which, as happens on nokia, each hour does:
- start connection
- sync mail
- close connection
Sent from my HTC Desire using XDA App

any suggestion?
All of you take internet connection always on to get mail synced frequently??
Sent from my HTC Desire using XDA App

I use Setting Profiles
It's like Locale. I have a profile set up called Sync. For me it is set up to turn on Active Sync for 1 minute at specific times throughout the day. Or you can schedule it for a number of minutes every hour.
I use it to sync up Facebook and my Exchange contacts and Calendars (using Touchdown for email). It will work for GMail too.

palmierip said:
It's like Locale. I have a profile set up called Sync. For me it is set up to turn on Active Sync for 1 minute at specific times throughout the day. Or you can schedule it for a number of minutes every hour.
I use it to sync up Facebook and my Exchange contacts and Calendars (using Touchdown for email). It will work for GMail too.
Click to expand...
Click to collapse
Do you mean "Locale" as the app available (not free) on the market?
I didn't understand what's your proposal, sorry... but it seems you've centered the problem

Related

[APP][2.2+] Autosync Account Activator

Application configures account authorities autosync status on configured conditions
mobile data connection
particular wifi connection
exposes sync period for which there is no screen in Android by default, exposes push sync authorities - so it is possible to disable push sync.
Android Market link
Main motivation of this application was to be able to have autosync for Exchange only on particular wifi nets (at work) and not at home and to not to have Google autosync on work wifi.
Second motivation is to be able to disable push sync if one has multiple devices it may cause dificulties to have push sync enabled on all. Third motivation was to enable periodic sync of my selection (it is possible to select from many values) of any account - as supplement to my other app.
Do you mind elaborating what is
"Sync type" on third tab, after I click on specific account type. It has three different values - always on, always off and auto.
And yes, if it works as promised even for Gmail sync then it would be the coolest discovery on xda for a while for me.
Sent from my PG86100 using XDA Premium App
Third tab 3 values mean
Auto - autosync will be calculated according to networks settings (enabled only on selected networks)
Always on - autosync will be always on
Always off - autosync will be always off
I added this option to be able to disable some autosync always, e.g contacts for one of several google accounts, for twitter contacts, etc.
I found this app is extreme useful in concept.
How do I use this though -
I have set 15 minute time interval for my exchange account through your app with background data turned off and autosync also turned off.
I have set autosync always on through your app for my exchange and gmail account.
But after doing this, I don't receive any emails. I have also tried this with gmail but I believe syncing is not happening.
Am I doing something wrong?
Do I need to have background data on or off and how about autosync through Android settings menu....?
thanks.
Sent from my PG86100 using XDA Premium App
If you turn off background data or autosync then sync will not happen. What you wanna achieve?
OndrejP said:
If you turn off background data or autosync then sync will not happen. What you wanna achieve?
Click to expand...
Click to collapse
Ok it looks like I need to have background data and autosync turned on in order for app to work...
I have created my own profile with tasker which turns on and off the autosync and force myexchange account to sync. I have not been to force gmail to sync with this. Remember I have been able to do this without turning on background data and autosync thus saving lot of battery.
Anyways, I will keep an eye on development of this app. Good luck for this.
There is probably misunderstanding what application does and what you think it should do and gmail is using push sync.
For Gmail - with this application it is possible to disable push sync - it is important if you have phone, tablet, ... and you want to have push only on one device. Then if disabled (both push and gmail) gmail receives new email only if you refresh manually.
Hello
is this app working in ICS Roms? I cannot make it work in my SGS2 with a ICS Rom.
My settings are, for example for Google Contacts:
* In this app: Google accounts active for Cellular Data, Periodic Sync for Contacts: 5 hours, Sync type: auto
* In android Account and sync settings: Google account syncronization active for Contacs
With this configuratoin, contacts are syncing more often that 5 hours. I suppose that they should sync every 5 hours.
Is this configuration and assumption correct?
thanks
Regards
Raúl
So this app enable and disable sync in auto? I can choose sync afert 5hours for example?
It disables data background too?
Sorry for question
Inviato dal mio GT-I9100 usando Tapatalk
It doesn't work..I don't know why..if I select data connection and if I active the syncro every 2hours it stays always on anyway..
Inviato dal mio GT-I9100 usando Tapatalk
Application should work on Android 4, however your assumptions are incorrect. Google synchronization adapters are using push sync style and periodic sync does not work for them (we could say that those synchronization adapters are not correctly implemented). Application is useful when one wants to disable push sync (in case of Google) in definedd networks (for privacy reasons) = application can disable push sync for Google data authorities (authority is thing in Account like contacts, calendar, etc.).
Other applications, that are correctly implemented (not many) will sync according to settings. I.e. if periodic sync is 5 hours for given authority it will sync each 5 hours.
Application does not disable background data, if you disable background data synchronization framework is deactivated and correctly implemented applications will not (cannot) then transfer any data.
If you set sync each 2 hours then indeed authority stays on, periodic sync means that synchronization is invoked each 2 hours, but it does not mean that it will uncheck sync for given authority in the account.
Synchronization is also started automatically when data is changed in Android for that authority.
OndrejP said:
Application should work on Android 4, however your assumptions are incorrect. Google synchronization adapters are using push sync style and periodic sync does not work for them (we could say that those synchronization adapters are not correctly implemented). Application is useful when one wants to disable push sync (in case of Google) in definedd networks (for privacy reasons) = application can disable push sync for Google data authorities (authority is thing in Account like contacts, calendar, etc.).
Other applications, that are correctly implemented (not many) will sync according to settings. I.e. if periodic sync is 5 hours for given authority it will sync each 5 hours.
Application does not disable background data, if you disable background data synchronization framework is deactivated and correctly implemented applications will not (cannot) then transfer any data.
If you set sync each 2 hours then indeed authority stays on, periodic sync means that synchronization is invoked each 2 hours, but it does not mean that it will uncheck sync for given authority in the account.
Synchronization is also started automatically when data is changed in Android for that authority.
Click to expand...
Click to collapse
In phone do I leave background data and auto sync checked?
Thanks...
Depending on apps you have and what you want to achieve yes or no, but normal usage should be that you keep background data and master autosync on and my app will enable/disable things according to settings.
Many applications are incorrectly created and do not have settings (or ignore settings) in accounts - i.e. if you open account there are no items and have own implementation of synchronization instead using one that is present in Android.
Then there are apps that are using push, e.g. google, there you must enable expert mode.
Dear OndrejP
I discovered your app and installed on my N9005. I read your page http://www.psencik.cz/articles/autosync-account-activator-explained
but I'm a little confused.
Can you please guide me as per my expectation.
I have 5-6 gmail accounts. I want only gmail and calendar items to be synched. I don't want anything else to be synched.
And I want my gmail to synch once for each 1 hour.
I don't want to get any email as it arrives to my gmail inbox.
What shall be the state of mobile data?
What shall be the state of android autosynch?
What shall be my settings at your application tabs, for my gmail accounts?
Thanks in advance.
Regards

Email/Gmail Push Issues - My Solution or Temporary Fix

We all know by now that the phone has been weird with emails. Sometimes the push email works and sometimes it doesn't. My main issue was my Gmail. I have 3x Gmail and 2x Work.
This is what I did. So far, it's working 100%.
Please know, this will only work if you DON'T use the Gmail app.
1. Factory wiped the phone. Once started up, do not add your Google account yet.
2. Go into Settings and Apps and disable all your bloatware while you're here and make sure you disable the Gmail app. When you get out of it, it'll reload Sense. After this, go ahead and reboot your phone to be safe.
3. Now go ahead and go to Settings and Accounts and add your Google account. With Gmail disabled, it will not sync your email. Your choice if you want to sync Contacts.
4. Next, setup your Gmail via Microsoft Exchange via server method. Email and Username is your full email address. Leave Domain blank. The server address is m.google.com
5. When finished, set it up Push Email and not Smart Sync. If you did not sync your Contacts via Google, you can do it here also. Same with Calendar and Tasks.
Done!
Click to expand...
Click to collapse
With this method, I haven't had any issues...YET
Please comment if this works well for you.
Maybe we can see if it's just Gmail accounts in general or any Microsoft Exchange accounts too.
Please NO iOS vs Android statements
Or you can do what I did and go into your advanced wifi settings and enable Best Wifi Performance. Since I enabled this my push notifications have been coming instantly.
NextNexus said:
Or you can do what I did and go into your advanced wifi settings and enable Best Wifi Performance. Since I enabled this my push notifications have been coming instantly.
Click to expand...
Click to collapse
I had the issue regardless on WiFi, 4G, or LTE.
I am on LTE 100% so I prefer my faster connection
I know that this thread is about not using the Gmail app but I saw on the other thread about the email issues that some people complained about the Gmail app being slow too with getting push notifications.
I am a first time Android user and I have noticed that it usually takes several minutes for my phone to notify me in the GMail app. Is this normal across Android phones or does this push notification bug also affect the GMail app too?
nephipower said:
I know that this thread is about not using the Gmail app but I saw on the other thread about the email issues that some people complained about the Gmail app being slow too with getting push notifications.
I am a first time Android user and I have noticed that it usually takes several minutes for my phone to notify me in the GMail app. Is this normal across Android phones or does this push notification bug also affect the GMail app too?
Click to expand...
Click to collapse
This is NOT normal. The native gmail app should receive emails within 5-10 seconds (max) of when they would show up in your account if you were using a computer.
Sent from my HTC One X using XDA
What worked for me was extremely simple. After I setup the accounts, I went back into "Accounts & Sync" and under each account, I simply toggled "Sync Mail" off, then back on. After I did that to each account, push was enabled and working on all accounts.
Eric Weber
SightMax.com
chrikenn said:
This is NOT normal. The native gmail app should receive emails within 5-10 seconds (max) of when they would show up in your account if you were using a computer.
Sent from my HTC One X using XDA
Click to expand...
Click to collapse
So does anyone know of any solution to fix the issue for the Gmail app?
Sent from my HTC One X using XDA
My Gmail app doesn't push all my mail. When I check my gmail on my laptop, there is still unread mail in my inbox???

[Q] schedule mail sync on Galaxy S III

I've just swapped my HTC DESIRE Z for SAMSUNG GALALXY S III and first thing I have noticed is that there is no option in sync options or email account configuration to set the frequency of mail sync during the peak hours and non peak. There is only one global setting for mail notification.
I want to configure my phone to check for new mail every hour. But at night not to check at all.
Is there any way to accomplish this?
When you set up the email from the email app it should ask you for the frequency you want mail to be checked. if not just go into mail and go into the settings of each email and set it up. For not checking mail at night just turn off wifi or get JuiceDefender and it will periodically check for the times you set assigned.
Hi,
Thanks for the answer. Turning wifi off won't change the mail sync - my phone is configured to use data connections instead.
Juice defender is what I was looking for. However, is there an options to configure it without that program or are there any other programs only scheduling the sync time?
There is this app called tasker in the market which would probably let you do that wit no problem
Sent from my SAMSUNG-SGH-I727 using xda premium

Email sync eating battery

I have two email accounts set up on my phone ..my gmail and an exchange account. For the exchange account I only sync email. For gmail I sync everything. If I check my battery stats, email is using over 50% after about hours. If I check under accounts and sync my exchange account hallways show the any icon as if it never stops syncing (I have it set to push) does anyone have any clue as to why this might happen?perhaps there is some setting in my outlook email that needs to be changed Idk but its irritating because my battery life is pretty short as it is. Thanks
Sent from my SCH-S720C using xda app-developers app
I think most apps in android that stay on "Always connected" use a lot of battery.. When I got my phone , i had go chat , facebook watsapp and e-mail sync turned on... my battery would drain within 1 day with minimal usage... After turning off e-mail sync and go chat , the phone lasts 2 days with decent usage... so i guess u should set to sync every hour or something like that..
Just go to settings > account settings >turn off auto sync on gmail
This helps me improve my phone's battery life. Don't worry not getting your emails because once you open your gmail that's the only time that it will sync. The only downside of this is there won't be any email notifications if you have a new email. To check if there is mail you always need to open gmail and check.

Manual email sync

I have three email accounts using the stock email app, and a gmail account using the gmail app. The three accounts using the stock app are all set to sync manually, and the peak schedule set to off. The stock app still syncs throughout the day, does anyone know how to set it so it will only sync when the app is opened up?
I had the same problem. Only way I could keep it from syncing was to turn sync completely off in the email app's settings. Then turn it back on when I wanted to manually sync.
Same problem with manaul sync of email
Bought my S7 today and have discovered the same thing. Setting sync schedule to manual does not seem to have any effect. If Sync account is on, I get mail; it's if off, I don't. I'd like to set Sync account to on, then request mail when I want it. The pdf manual reads 'To manually retrieve emails, swipe downwards on the screen.' But if Sync account is off, swiping down doesn't retrieve emails, and if Sync account is on, the emails are downloaded before you swipe.
Bug?
Sir_Eagle said:
I have three email accounts using the stock email app, and a gmail account using the gmail app. The three accounts using the stock app are all set to sync manually, and the peak schedule set to off. The stock app still syncs throughout the day, does anyone know how to set it so it will only sync when the app is opened up?
Click to expand...
Click to collapse
Move your Gmail account to the stock email app and you can set it however you need. It would be easier to have all accounts in one place anyway.
Sir_Eagle said:
I have three email accounts using the stock email app, and a gmail account using the gmail app. The three accounts using the stock app are all set to sync manually, and the peak schedule set to off. The stock app still syncs throughout the day, does anyone know how to set it so it will only sync when the app is opened up?
Click to expand...
Click to collapse
Have you tried through Settings > Accounts long press on Google and turn off Automatic Sync in there for G-Mail and any other Google services you don't want to sync automatically.
Then when you open the G-Mail app just pull the screen down to update your messages which will sync manually.
pixel_junkie said:
Move your Gmail account to the stock email app and you can set it however you need. It would be easier to have all accounts in one place anyway.
Click to expand...
Click to collapse
I have recently added Gmail to the stock email app.
ag4751 said:
Have you tried through Settings > Accounts long press on Google and turn off Automatic Sync in there for G-Mail and any other Google services you don't want to sync automatically.
Then when you open the G-Mail app just pull the screen down to update your messages which will sync manually.
Click to expand...
Click to collapse
If you turn auto sync off, it will nor sync by pulling screen down.
Sir_Eagle said:
If you turn auto sync off, it will nor sync by pulling screen down.
Click to expand...
Click to collapse
If you turn it off then when you open your gmail app and slide the screen down you will see the circle icon rotating and any new emails will be loaded into you inbox, I know it works because I use it, if you have no new emails nothing will change.
Sir_Eagle said:
I have three email accounts using the stock email app, and a gmail account using the gmail app. The three accounts using the stock app are all set to sync manually, and the peak schedule set to off. The stock app still syncs throughout the day, does anyone know how to set it so it will only sync when the app is opened up?
Click to expand...
Click to collapse
Same here. For the gmail account I use the gmail app. For the other two accounts (one is yahoo one is work POP account) i use the S7 stock email app. The stock email is better for me as it allows me to sort by unread and select all. All set on manual but keeps synchronizing. Very annoying...
ratacit said:
Very annoying...
Click to expand...
Click to collapse
Yes it is. And there doesn't seem to be a way to fix it.
LGLemay said:
Bought my S7 today and have discovered the same thing. Setting sync schedule to manual does not seem to have any effect. If Sync account is on, I get mail; it's if off, I don't. I'd like to set Sync account to on, then request mail when I want it. The pdf manual reads 'To manually retrieve emails, swipe downwards on the screen.' But if Sync account is off, swiping down doesn't retrieve emails, and if Sync account is on, the emails are downloaded before you swipe.
Bug?
Click to expand...
Click to collapse
I have the exact same problem.
I want manual sync (no automatic sync) for my work email after 17:00, but I want to be able to open the app and browse emails offline (WITHOUT the app instantly triggering a sync). This worked in my S5 but has now changed in S7.
Agree that it is a bug!
Simon
Any suggestions??? More bugs - bought S7 -just set up my business email as POP3 (yahoo small business with email on Yahoo server) thru email that comes with S7. Want all my emails from my email acount on phone - several years of them that amount to under 2GB (sometimes need see all conversations from past with client while not hear laptop in home office) and then want to sync every 15 min and have new emails sent to phone - (on laptop use microsoft outlook set up as pop3 to leave on server when download). Also since I am starting new bus but want to see emails from old bus only way to do on phone is Pop3 (if stop paying Yahoo yearly fee will delete emails from its server for that email account). My old Blackberry did this perfectly - downloaded all , then every 15 minutes just downloaded new when synched and could just flick thru them. In prior Samsung S (did not own one) used to have setting in synch to "period of time" to sync - in S7 now asks "how many emails to load"- even if set on TOTAL does not seem to be willing to download all my emails. to the phone. Only loaded three months then went back while phone still on, and only one month shows. Whole purpose of Pop3 is to download ALL emails in an email account. Then when delete an email deletes from phone and server. Any fix for this anyone knows? If this just a limit in the native email app in phone or in Android OS so in all phones? If just this app anyone know an email app for non-exchange and exchange servers that will permit you to download ALL emails in email account set as pop3?
Yes - this sucks - I have used a note3, note4 and the manual sync rmail works great - I tried a note5 and it would sync automatically (even though I set it to only manual sync) I KNOW how to so this (since I did it with the note 3&4. ---- the note 7 also has this problem - WHY didn't samsung fix it? It's ANNOYING to be woken up with email alerts, and it's annoying to have to turn sync on and off. We paid a lot of money for this phone - it should work.... come on Samsung......

Categories

Resources