While i was trying to find the developers guide for adding Google Analytics for Android app, i found 2 guids.
with a json configuration file which required to have a Project created with Google Services
The link for this is https://developers.google.com/analytics/devguides/collection/android/v4/app
with global_tracker.xml and without configuration (json) file.
https://developers.google.com/analytics/devguides/collection/android/v4/
Not sure which guide to follow. on other forums i have seen people using the (2) guide. and was wondering if i need the json configuration file at all.
After researching and trying it out, i had to use Option (2) to have it working
https://developers.google.com/analytics/devguides/collection/android/v4/
I don't need the json file. I don't even need the global_tracker unless i want to change the default settings.
Related
This is just a library project that is going to be distributed as an aar file. When an app is made using this library, I want to be able to see the device info and stuff in my Google Analytics Dashboard.
I however don't want the app developer to add anything to his code to provide me these analytics.
I wanna know if such a thing is possible. I could'nt find a solid answer to this question in any website.
I have implemented app indexing in my app, to redirect deeplinks from Google Search results to app and we are using "custom applink" for deeplinking.
I have included all the necessary coding in Android Manifest file, by following the Google Documentation for app indexing, https://developers.google.com/app-indexing/android/app. Also confirmed from server team that all the links are provided access by Googlebot.
I am not using App Indexing API in the code for publishing deeplinks, as the links have access by Googlebot.
Can someone please point to me if am missing out something and guide on the same? Thanks.
You don't need to use the App Indexing API, though it does make some things easier & it's Google's recommendation.
In this case, it does look like something's still not quite set up correctly, so I'd recommend verifying the app in Search Console [https://www.google.com/webmasters/tools/home?hl=en], checking the app crawl errors there, and using Fetch as Google to double-check that Google can see the content appropriately.
If you can't get further with these steps, it would help to have the URI of the app & website.
All Google App Indexing does is convert your website link into a link that will open your app when installed. Once you've added the metatag to your website and Google can scrape it, then you're done!
Here's an example metatag:
<link rel="alternate" href="myapp://path/to/thing"/>
I am following https://developers.google.com/identity/sign-in/android/start-integrating guide to integrate google Sign-in into my android app.
I am working on a project where Its not possible for me to put configuration file into app folder of android project. I want to know is there any alternative for that. Can I put API key in the AndroidManifest.xml as a meta-data tag under application tag instead of putting google-services.json in app directory as allowed with Google map API (reference https://developers.google.com/maps/documentation/android/start#add_the_api_key_to_your_application) ?
I also want to know where the configuration file (google-services.json) is used in android app because its not present in generated apk?
There is no need for putting meta-data tag containing API key for Google plus sign in Android api. Just need to take care that correct SHA-1 key is put in credentials.
There is no need to put configuration file for using Google plus android api. Its not used by android app at all.
I'm working on an Android app where I need to write to a Google Drive spreadsheet. There's a quick start video on "Google Developers Live" that seems to go through most of the required steps, but for the library usage they just say to click some button in Eclipse. I'm not using Eclipse though and would like to make this work with a maven project.
What libraries are required and how can I get them all using maven?
Here's the part of the video I'm talking about: http://youtu.be/Ied1CjJ0iP0?t=9m41s
Also, I've found this SO post and the latest edit says to use the Drive API V2 but a google api client is linked. I'm not exactly sure what's needed or if perhaps something has changed since then.
You should use the Google API Java Client. Downloads for Drive are here: https://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API
Can anyone used Google+ in android app? I searched about the same thing but I found nothing. If anyone have any idea or related code then please post here.
Thanks.
There is no public API yet, but you can sign up for updates here:
https://services.google.com/fb/forms/plusdevelopers/
A basic Java library is available here:
http://code.google.com/p/javaplus/
And a basic PHP library here:
https://github.com/jmstriegel/php.googleplusapi
Here is the link to the Google APIs.
https://developers.google.com/+/mobile/
You can create your application, and add several APIs to it (Youtube, Google+, etc).
There are several samples.
Hope its useful
You can also try http://code.google.com/p/google-plus-java-api/
Integration of Google Plus into your android application requires following prerequisites
Enable Google+ API on Developers Console and create credentials for your application authentication
Configuring Google Play Services in Eclipse
Create Android Application with Google Plus Sign In
You can check detailed step by step tutorail at
http://androidsrc.net/integrating-google-plus-sign-in-into-your-android-application/