How to add Google Maps library on Android Things? - android

I'm developing an app for Raspberry Ppi 3 using Android things.
And in the project...
My app's androidmanifest.xml contains
uses-library android:name="com.google.android.maps" /
but it couldn't run this app.
I get this message when I run it. (Google Maps installed.)
Installation failed with message INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.example.androidthings.myproject-1: Package com.example.androidthings.myproject requires unavailable shared library com.google.android.maps; failing!.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
How can I solve this problem?

Maps API isn't available in Android Things.
You can check the the list of supported and unavailable APIs here.

Anyway, You can use MapBox on Android Things instead of Google Maps API.
UPDATE:
At least from Developer Preview 5 Android Things supports Google Maps (from Official Overview):
Android Things supports a subset of the Google APIs for Android. The
following table breaks down API support in Android Things:
Supported APIs:
Awareness
Cast
Google Analytics for Firebase
Firebase Cloud Messaging (FCM)
Firebase Crash Reporting
Firebase Realtime Database
Firebase Remote Config
Firebase Storage
Fit
Instance ID
Location
Maps
Nearby
Places
Mobile Vision
SafetyNet

Related

how to fix safety net api warning in android studio

I am developing kotlin project, when i upload release bundle in google console, following warning arised. How to fix this warning?
1 MESSAGE FOR VERSION CODE 49
Warning
The developer of play-services-safetynet (com.google.android.gms:play-services-safetynet) added the following note to SDK version 17.0.1:
The SafetyNet Attestation API is being discontinued and replaced by the new Play Integrity API. Begin migration as soon as possible to avoid user disruption. The Play Integrity API includes all the integrity signals that SafetyNet Attestation offers and more, like Google Play licensing and better error messaging. Learn more and start migrating at https://developer.android.com/training/safetynet/deprecation-timeline
Learn more about the SDKs that you're using and make informed SDK choices with Google Play SDK Index.
As warning says some part of Android API used by your project is deprecated, you are softly pushed to migrate to the new API.
To fix this issue you have to do this migration. Docs you have shared contains migration guide.

Migrate from a Google API Project to Firebase (Android or iOs)

I read the article about migrating a google api project to firebase:
doc
Has the migration of an Google API project to firebase an effect on the functionality of the current productive version of an App in Google Play or iOS? Will the defined API Keys (Oauth2 client ids, Google Places API keys, server keys...) still work after firebase migration?
Thanks!
Smilingm
I found a possible duplicate Question which was answered here:
Migration of Google Project to Firebase Console
I will try to migrate soon and check if problems occur. Update follows...

Is it possible to have google leaderboard working without having the play-services app on the phone?

I have an andengine game project where I am using Google leaderboard. Previously I was using Eclipse and older version Google-play-services. Now I have migrated to Android studio and using the latest version of play-services. But whenever i run the app on different different devices these are the results I get...
Case 1) If the device doesn't have the game-play-services app
App won't run unless you have play-services installed (get
play-services option)
Case 2) If the device have older version of play-services
App won't run unless you update the play-services (update
play-services option)
So my app totally become dependent on play-sevices app which I definitely don't like and many of my users hate it. Is there a way to basically integrate Google leaderboard without having these strings attached?
Thanks.
No. Google Play Services allows your app to connect to given Google APIs (incl. leaderboard). Officially, there's no other access on Android than thru Google Play Services.

Google Play Service library in Android

Hello I am trying to use google-play-services_lib in my android project. As you know in android phone there is Google Play Service APK which provide a some features to you such as location fetching etc.
So I have confusion that Suppose user have Google Play Service APK version is 4.3 and I am using Google Play Services library version is 4.0.30 in android project to build the app.
Do we require same version on both side like build with same latest Google play service library and Google Play Services installed APK to make as like Push Notification, Location fetching work in this case or there is no link between them ?
Thanks in advance
They don't have to match.
The development of the library and the application is not completely dependant, that's why thier version number is different. As far as I know, each release of the services apk defines a maximum version of the library that is supported. So the only conflict could happen when the services apk is outdated (on the target device), and your application's library is a newer one.
The best you can do is to update the library, and the services application on your device.
It should work that way.
I dont think so that there is link between APK and supported libraries in that because the APK silently gets updated about libraries

Is there a google analytics library with reporting functionality for android?

I am looking for a way to access Google Analytics reporting functionality on Android device.
An far as I can see, there is just tracking libriary for Google Analytics and Andoid. So my question is: What is the way to get Google Analytics reports on the Android device?
I was trying to use Java6 Google Analytics API installed by Google plugin for Eclipse, but was failed because of multiple errors, that seems to be related to different jars content for Java6 and its Android implementation.
What you're looking for is the Google Analytics Core Reporting API. There's a Java client library available which works on Android.

Categories

Resources