I know that one can integrate recaptcha in an app, but I want to know If I could use it in a library that would be used by hundreds of apps for example and not require to add the package names individually for each app that uses my library?
Each app would still need to setup their own recaptcha account to get an API key etc.
But you could make the recaptcha library a dependency of your library in gradle so for any app using your library the recaptcha library is also installed.
Related
I'm building a simple android app that uses Google maps api to display map and navigation. As you may know Google maps need Play services Library to run on client android phone. i want my app to run in much older android OS's(14,15,..)
Problems:
1- Clients need to install or activate Play services app.
2- then Clients have to update play services app to the latest version to use my app with google maps.
3- how to make app to run in older androids? just by specifying min sdk ?
so in order to solve first and third problem i've no idea but for the second one :
building project with older Play service dependencies may help but i dont know how to do this or even it helps or not.
it'll appreciate if guys offer any solutions !
Thank you all.
What are the recommended practices for maintaining the widest backwards compatibility of an Android app while depending on Google Play Services?
Here are the pointers I was able to aggregate concerning backwards compatibility, including those that use Google Play Services.
The Google Maps Android API uses OpenGL ES version 2 to render the map. The least Android API version that has support for this is API 8 or Android 2.2 .
Compile against the oldest version of Google Play Services that contains the APIs that you need. As further discussed in this thread, refrain from using wildcards like 5.+ because that updates to the latest play services. Instead use a widely used version like com.google.android.gms:play-services:5.0.89.
Use the V4 support library to verify and request permissions.
com.android.support:support-v4:23.0.1
You might also check some additional insight from this SO thread.
I have a library which makes use of Google Maps. When I give out this library how do I handle the api key scenario and registration of the client app on my google dashboard for the maps to be loaded on the android app?
Is there a way that I don't manage the maps and the client using my library just does it?
So, the solution was pretty easy.
What needs to be done is remove the mention of the API key in the manifest of the library. And ask the one implementing the library to put an API key the application module's manifest.
This is a very good solution as this takes away all the headache of management of the API key from the library and gives the handle directly to the user of the library.
Many thanks to Christophe Beyls for the solution.
Is it possible to run the google maps native app inside of my app, or does it have to be launched separately? I want to give the appearance of only one app running, mine. If the first answer is yes, what sort of control or method could I look up and use?
You cannot embed the Google Maps app into your app. You can embed native Google Maps into your app via the Play Services SDK.
You need to integrate the Google Maps SDK into your app. Here's a link to that SDK:
https://developers.google.com/maps/documentation/ios-sdk/start
I would recommend installing via CocoaPods. Here's a tutorial on how to get started with CocoaPods:
http://www.raywenderlich.com/97014/use-cocoapods-with-swift
Once you've installed the Google Maps SDK via CocoaPods, you'll need to get an API key and integrate it into your app:
To use the Google Maps SDK for iOS, you must register your app project on the Google Developers Console and get a Google API key which you can add to your app. Note: There are various types of API keys. You need an iOS key, not a browser key.
If you're using the standard API, you need an iOS key set up in a project of your choice.
Here's more information on that:
https://developers.google.com/maps/documentation/ios-sdk/get-api-key
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
I need to report some events from my android app to GA, but main requirement is not to use API lib in dependencies - all analytics-related code should be encapsulated in my app package (actually it is not an app, but SDK). So I'm looking for some pieces of code for constructing Google Analytics API queries. Can anyone advice something?
See Manually sending data to Google Analytics
A Java library (designed for desktops, but it should probably work in Android) can be found here: http://code.google.com/p/jgoogleanalytics/