Android time server - Android Apps and Games

I running an app which synchronizes with a remote server (for more details, it´s called: “Notepad”).
But there is a difference between the app-server time, and my phone time. And this difference is > 1 minute, so I am getting a synchronization warning from the app.
¿How does my phone know what time is it?
¿Does it uses a time server from Google on the Internet or it uses the mobile network?
¿Which server is that (in order to query by NTP)?

It uses your mobile network, but only if your network supports it and network sync is enabled in the settings.
The built-in clock of your phone "drifts" quite a lot (seconds per day). If the system time is important to you it might be a good idea to sync it with a time server regularly.
ClockSync can do it for you. You can choose the time server yourself. Your phone needs to be rooted to make it work, because for some reason Google is very anal retentive about the time settings.

Related

activesync, google

Saw someone post this on Slashdot. Is this guy right about ActiveSync, in that it does not leave the radio open but somehow doesn't close the connection to whichever server it's connected to and therefore saves more power than, say, keeping an IMAP-Idle connection open? Or is this different for the iPhone and does some Blackberry-like method?
Running an active TCP session for an IM client constantly would light up much more of the iPhone's hardware, and drain the battery that much faster.
​Well, not exactly....
An active TCP session is EXACTLY what Apple's Push Notification Service [apple.com] uses.
Its an extended version of ActivSync [microsoft.com], Licensed from Microsoft.
It works like this:
You open a TCP connection with an Apple Notification server, and shutdown the radio, leaving the connection open, by never explicitly closing it. With the radio down, the phone is Saving power.
Periodically, you wake up the radio, check if the TCP socket is readable. If so, you read it, and notify the user, and optionally launch that application that the notification was destined for.
If the socket failed, (timed out, network dropped, etc) you reestablish the socket.
Since TCP timeout is usually on the order of 12 minutes or longer, this happens only about 5 times an hour.
Checking socket readability takes just a tiny bit of power for a very very short time. So your radio is on for a few seconds every hour. (Which it is anyway, listening for incoming calls).
Apple's push notification leverages this single socket connection to an unlimited number of applications in the iPhone, by having a single daemon watching the socket, signaling the target app, and notifying the user.
It operates similar to InetD [about.com] in Linux, other than instead of waiting for new connections, it is watching existing ones. In fact, there is some discussion as to whether ActiveSync is even patentable because it is so obvious.
And to be perfectly pedantic, Antennas do not consume any power when receiving.
Click to expand...
Click to collapse
Also I found this article written yesterday claiming, I think, that Google has updated Google Sync to include Gmail support for activesync-using devices. I think it's implying that the addition of push-email is free. Can someone confirm that? If so with a regular Gmail account, if you have added another email account to use as a from address, could you use the same from address over ActiveSync or is that a web-only thing?
Finally, any phone-side registry-like tweaks to get your phone to chill and not care that your server doesn't have a certificate, self-signed/generated or otherwise, with ActiveSync over SSL?
Thanks.
Doug
Google active sync
Hello,
I read the article too, and ofcourse I tried it out, it works perfectly.
just use m.google.com as the exchange server, and use your full google username+gmail.com, leave the domain field blank.
I use it now for more than a week and found no problems.
Previously I used www.nuevasync.com
grz..

Connection at specific time/frequency

I'm looking for an app which can, as happens on nokia phones or on iphone, enable internet connection with the specified and desired frequency.
I'd like to download mails and get apps synced using the internet connection which should turn ON only, for example, 1 time each hour...
Internet Connection should be kept OFF during time other than when sync is needed also to preserve unuseful battery consumption.
Any ideas?
By Android settings I can see only "keep internet connection always on".
Look for Timeriffic in the Market
Really unuseful app for my request... sorry but removed.
Sent from my HTC Desire using XDA App
Did I make a so strange question??
Is there a so stupid answer or solution or it's impossible to do what I ask?
Tasker can set Auto Sync or Mobile Data entirely on/off on any kind of schedule you want. Mobile Data manipulation relies on APNDroid, which might have caveats or requirements, not sure.
Tasker can do a zillion other things too.
Honestly, however, with all of the things I have running on my Nexus One, including K9 Mail syncing two IMAP mailboxes, weather, some periodic GPS stuff going on in Tasker I have set up, I still see 2-2.5%/hr battery usage. I charge nightly, so this is plenty of battery life for me.

Start/Stop internet connection automatically

I used an iphone for some days. I've ever used nokia phones. Each day I use a blackberry. All devices seems to use internet connection better than Android, using that only when needed and starting/stopping it automatically.
What I don't like about Android is that you can't set device to enable internet connection only when needed. What I understood is that if you like to sync mails every 5 minutes, for example, you have to take internet connection always on.
I don't like this because mainly it's battery consuming.
Is there any way to set Android (I've a Desire but I think it could be the same for each device) to automatically turns on internet connection just before syncing an app and turns off just when finished?
i agree... any hints and helps here? my experience in winmo is much better as it connects only on need.
especially now my Galaxy S battery life is so short
this app might help.
mensa07 said:
this app might help.
Click to expand...
Click to collapse
Yes, thank you.
I already tried it but if I configured it right it manages only sync operations and no internet connection. So internet connection must be taken ON (on the screen you continue to see arrows) and it stop only sync traffic.
Right?
I mean to stop internet connection at all and enable it only at a specific frequency (so on the screen arrows should appear and disappear when needed). Is it possible?

[Q] What is your average daily data usage?

Just converted to winpho, and I love all the integration and fluidity as everyone says. But I feel like it takes up way too much data.
tl;dr. data usage hitting 10+mb daily, <3mb on android. wtf?
I find myself hitting 10mb+ daily, when i was below 3mb on android. WiFi continuously on (it wasn't on android either). I browsed wiki (one page) and used bing once, and found myself at 10mb halfway through the day. The only running app with data usage (that i know off) is 2 gmail account (probably 20 emails total, all text), with 30min interval and metrotalk (google voice client).
Looking at tmobile data spreadsheet, my phone seems to randomly access about 5+mb (up to like 13mb) daily in one section of time, and everything else below 1mb. I stream no music or video.
Not a new toy syndrome either, I used the phone for half a month already and found this trend.
Data Usage spreadsheet from t-mobile. http://bit.ly/JVQk0C
This is frankly, ridiculous. That would be like downloading a giant app a day. what could possibly my phone be doing?
phone: nokia 710
edit: i did the math, wp7 avg. at 15mb/day while android at 4mb/day wtf? (same usage for the most part)
Moved to Q&A for you mate, should get you a few more opinions
I actually found WP7 much easier on my data allowance than Android. Don't forget that your live tiles etc. will use data to refresh, and having your Google voice client open all the time may not be doing you any favours, either. It's entirely possible that the Voice client on Android hibernates one way, and the client you're using on WP7 does it another way
You could always turn off the xbox live synchronisation with your games and the zune account for the music. I believe they will take up some of your data. You should also check any of your applications that might use the internet a lot! By the way, why don't you use push notifications for your google accounts? Those might use your data too!
There are number of services that can use data in the background. A few suggestions of things to check:
Make sure the feedback info is either turned off or set to only send over WiFi.
Un-pin the Me tile, or accept that WP7 will need to ping Facebook to see what your contacts are saying about you (may also apply to the People tile).
Marketplace tile probably uses a little data, checking for updates, but it should be minimal.
Games hub definitely uses som data, if it's synching with the Xbox Live servers (not sure how much).
A small bit of Marketplace configuration data is downloaded nightly, but it should be only a few KB.
Tip: Leave the phone plugged in all night, even if it doesn't need it. WiFi turns off when the screen is locked, unless the phone is plugged in. No, that behavior is not (yet) configurable.
I note this too after NoDo update. At the begining, my phone uses a little of data every day (some Kb, never goes far than a Mb). I use data to sync my hotmail account, gmail account, rss channels, some webpages. After NoDo update, my phones starts to consume a lot of data (more than 10Mb every day with the same uses). Then mango goes out and i think maybe they fix this situation. Today my phone have 8107 and the data usage is over the clouds. I switch on data connection manually and my data usage is more "normal". I know my phone has a lot of new services over the cloud but i can't maintain its appetite of data.

WP7 is always data connected

Hello my friend,
I have recently migrate to WP7.5(Tango) and i have some little questions.
My data is always connected, but, i don't have activate the pushmail.
So, why my data are always on ?
Does Windows Phone has an autodisconnect feature ?
If no, is there a way in order to install an application in order to autodisconnect data after X seconds of innactivity.
Thanks a lot for your help,
Nixeus
What phone you are using?
Does your cellular provider charge by the minute, or something like that? All the rates for data that I've seen are either by the month or by the megabyte. I don't think I've heard of auto-disconnect as a desired feature since the days of literal modems (the kind that sent sudio tones over the telephone connection instead of using a communication protocol actually intended for data).
The only way I know of to turn off the data connection is manually, in the Settings hub. Be aware that a lot of the features of WP7 use data connectivity in the background, not just email sync. For example, syncing your Facebook (and Twitter and LinkedIn) account, syncing your contacts and calendar from the server, checking the Marketplace for updates to installed apps, and so on. These use very little data, but they connect fairly often.
In theory, I'm sure there's a way to programmatically turn the data connection on or off. It might even be possible to tell when it's not in use, and hasn't been for some time. This is not going to be easy, though, and as far as I know nobody else has figured it out.
Thanks for the answers,
So, i will coding an apps in order to turn OFF the DATA connection during a period.
( the night for me)

Categories

Resources