Time not correct Issue - android

I am using Google Play Services in my app to get the current location.
I have also put a check to identify if Google Play Services is present or not or it needs to be updated.
When I run this code on a Tablet with Wifi, it works fine.
However when I use 3g, It show me this error "The date on the device appears to be incorrect. Please check the date on the device.". I wonder why
The app is inbuild in the device, once the device is switched on, the app will automatically start and 3g or Wifi will be connected.
The code to check for Google Play Services is from isGooglePlayServicesAvailable()
Any help?

Related

Auto-Update of a running app doesn't work

I have an Android app which runs unattended on a tablet running Android 6.
I've uploaded an alpha version to Google Play and install it on an Android tablet.
I've remain logged-in to the Google Play on the tablet and auto-update is turned on.
Yet, my app is running now for 2 days since I've pushed an update to the app and the app still did not update.
If I open Google Play on the tablet I see the new version.
Is there anything else I need to do to have the app update automatically without use open Google Play and press Update?
Apps restart when they get updated. Because of this, Google Play tries to avoid auto-upating apps when they are running in the foreground as this is a bad user experience, the app restarting while the user is using it. This is one possible reason.
Another reason is Google Play by default only updates apps when the device is plugged into power and connected to wi-fi, to avoid draining the battery and using up the user's mobile data. This could be another reason.
However, if the app is not in the foreground and the tablet is plugged into power and on wi-fi, and autoupdate is turned on it should update within 24 hours. If it doesn't this is probably a bug. You should take a bug report and contact Google Developer support using the Google Play console.

Cast V3 not showing Android TV device on network

I have a Nexus Player on my network.
I am updating my Android App to use Google Cast V3. I have published a receiver. When I launch my app and attempt to connect to a Cast device, I only see my Chromecast devices on the network. The Nexus Player does not show up in the dialog as an option to select.
It would appear that the Receiver in the Cast Developer Console is still only seeing the test Chromecast devices, even though the Receiver is published.
Is there further configuration, possibly in the Android Manifest, that needs to be performed to allow connecting to via Google Cast to an Android TV?
It looks like I was impatient. I didn't give the Nexus Player enough time between testing my app and the publishing completed.

What kind of app should I write to gain control of a lost Nexus ... that I see in my Google Device Manager?

I have (had) a Nexus device and lost it while backpacking in Europe. One year later, I've been able to see it online at the Google Device Manager, near southern Italy.
Despite me trying (and failing) to contact the owners of the Hostel, I've been unable to get the device erased or returned to me. For the past several months the device has been powered on and active.
My goal is to write an application, deploy it to the app store, and use my Google Play account (connected to the device) to download the app as I could do in the screen below.
I want the app to either
Erases the device
Locks the screen with a "Reward" message
An audio message
Something else?
.. the issue is that the user might not "permit" certain supervision activity if the OS requires it. (Device Administrator for example)
Question
What can I do on a 4.x Nexus, not requiring additional interactive permissions, after I send an app from the app store, to accomplish the goal of notifying the user (in Italian) or erasing sensitive material?

Google Maps only loading over wifi but doesn't load on 3G

So the title pretty much says it all. I am trying to load a Google Map V2 which only loads when Wi-Fi is present on my device and doesn't load when I'm on 3G. However when I run it first on Wi-Fi then run it for a second time on 3G WIHOUT clearing the data or uninstalling the application it works. So my question is how can I make my new installed application loads the map over 3G from the FIRST time?
Okay I solved the problem. Turned out I chose to restrict background data of Google Play services. Once I unchecked it, it worked correctly.
Check if your device allows location services only when wifi is connected

Android Marketplace - Installing apps remotely show as Installed even if phone is off?

Someone stole my phone last night in a matter of a few minutes. A friend mentioned the Android app "Plan B" which can be remotely installed from the Google website. My question is regarding the actual state of being installed.
After clicking 'Install', it reports the app as 'Installed', but I'm assuming this is not a true state of things as it took only a page load to report it as installed. The question is:
After clicking install on the Google Play website, if the phone is off or otherwise unavailable, will it still report the app as installed?
Also, going in to 'My Orders' from the cogwheel in the top-right corner, it shows the app install status as 'Complete'. Again, I don't know if these are real or assumed statuses.
The easy way to answer these questions is to turn off your phone, install any app from the Google Play website, and check to see if the app is marked as both "installed" and "complete" under the order area.
I just tested this situation with my Nexus 4. I placed my Nexus 4 into the airplane mode (which has zero connectivity) and when to the playstore websited and install a random app. It said "Installed".
I then turned airplane mode off and then the new app instantly started installing as soon as my device connected to wifi.
Most android phones keep a very tight connection to the playstore. So as soon as the phone is turn on and connected to the Internet, it should auto-install right away. The only issue I can think of is that if your change your playstore settings to not autoupdate. Do you know if you enable that setting?
tldr;
Yes it lies to you. But As soon as the device is online and has internet connection it technically should install.

Categories

Resources