I'm attempting to get a user's current location on Glass.
Calling mLocationClient.connect() fails without any resolution. Then I checked if Google Play Services was available on the device with:
GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
This returns ConnectionResult.SERVICE_INVALID, which according to the documentation means that "The version of the Google Play services installed on this device is not authentic."
The Setup Google Play Services SDK guide does not describe that scenario.
Does this appear to be a bug on Glass itself? If so, I'll file a bug report.
Google Play Services is not available on Glass at this time. You may have unpredictable results if you attempt to use it, or related features.
If this is something you care about, please let Google know. File an issue in the Glass platform issue tracker and, if possible, describe a use case you're working on that requires it. This helps the Glass team prioritize features.
Related
I am new to the development. At the moment I am working on Android app that is supposed to allow navigating offline. I am using MapBox SDK for this app.
Currently I am searching for how to download an offline region during app installation. As of now I have found solely examples on how to download a region while you are online. But is there a way to provide a chosen region from the start, so that a user isn't obliged to have internet connection to start using the app? And where are downloaded regions stored on the device?
Also Offline plugin seems a bit obscure - https://docs.mapbox.com/android/plugins/overview/offline/
I could not find many examples of its implementation.
I have already followed exemples from official documentation - https://docs.mapbox.com/android/maps/overview/offline/ But this doesn't solve my problem. As it shows downloading a region while being online.
Ideally I would love at the app launch to check connection and if offline, provide user with preloaded app (downloaded during app installation). If online update all resources at the background.
The type of implementation you’re referring to is called “offline sideloading.” It is definitely possible as long as you’re building with one of the more recent versions of the Maps SDK. This section of the documentation goes into greater detail on this process: https://docs.mapbox.com/android/maps/overview/offline/#offline-sideloading
⚠️ Disclaimer: I currently work for Mapbox ⚠️
I have implemented a MusicPlayerService by following the official guide from the Android Developers site. At multiple places, I have found the information that this should be enough to make my app ready for Android Auto.
But if I open that (just the phone interface because I don't have a compatible car at the moment), the list of music providers just contains Google Music and the already installed VLC media player. To verify I also downloaded, compiled and installed the Universal Music Player example, which isn't showing up either.
Do I have to enable something or even upload the app to Google Play first?
EDIT: I now tested it with the Desktop Head Unit and it works. Afterwards the service is also visible on the phone interface. But this is not the expected behavior, right?
Only apps installed through Google Play will be shown in Android Auto. If you want to test your app with the phone interface, you'll need to enable developer mode and the 'unknown sources' option in the developer settings.
https://developer.android.com/training/auto/testing/index.html#phone
I am trying to make an application which uses speech to text for command input. I am making this for Android 6.0.1 and 5.1.1. I started by trying the examples with Google services, but none of them seem to work on my devices. Most of the time there is no clear error or a crash. I have gotten the no network error while using wifi and mobile internet. For the record, I did try to use the Google app speech recognition directly, but this gave no error nor answer. After that I have tried other examples which seem to not use Google services. I would also prefer for the example to work offline, but this is more of a preference than a requirement. I am looking for an example for android speech recognition which does not use any of the google services.
Some of the examples that I have tried:
Did not work on a device without Google -
https://github.com/gotev/android-speech
I got a ERROR_INSUFFICIENT_PERMISSIONS error (RECORD_AUDIO and INTERNET were allowed) -
http://www.truiton.com/2014/06/android-speech-recognition-without-dialog-custom-activity/
My main question is if such thing is at all possible and if yes then how (an example please)?
edit 1:
Fixed the insufficient permissions error using the example from:
https://inducesmile.com/android/android-6-marshmallow-runtime-permissions-request-example/
Now I am getting ERROR_CLIENT error (I have no idea what it means).
edit 2:
the project
logcat output
Android devices ship with Google Mobile Services and some platform level functionality, such as an implementation of a RecognitionService which is used by SpeechRecognizer. The built-in service has support for offline functionality (and you can actually specify via option you prefer offline use). When not using offline support, it will need INTERNET permission.
However, your issue is most likely with the RECORD_AUDIO permission, particularly on Android 6+. Starting with Android 6 (Marshmallow, API 23) you have to use the runtime permissions model to gain access to any dangerous permission (which RECORD_AUDIO is.)
I'm working on a small app, trying to support android 4 and higher. I also want to keep statistics about the user activity. My initial choice for this was Firebase, yet i see a major problem with event tracking through it: if user has an outdated Google Play Services installed on a device, i can't fire an event because of SERVICE_VERSION_UPDATE_REQUIRED error. This means i have no way of tracking users with outdated Google Services app, and i can't even count how many users I'm ignoring. Am i missing something? Is there a way around it? Why would firebase SDK need to rely on external dependency for a simple thing like event tracking?..
Thanks.
Does anyone know if PushLink can do silent updates? That is, download the app and install it without any interaction from the user?
The PushLink website is quite sparse on documentation regarding features available so I can't be sure.
Or does anyone know if it's possible to have a silent installer for android? I basically have android devices that will not do any user interaction and I need to be able to update my apps running on them.
Yes, it is possible since version 3.1.0 released at 2012.04.23.
Take a look at NINJA strategy
NINJA (Only for rooted devices) The application is just re-launched in
a new version. There isn't notification. BETA!
There's no official way to install anything on Android device without user interaction. Which is a good thing, because it prevents a lot of possible malware and exploits from working.