google play services libraries - android dev : reducing the library size? - android

I'm developing an android app with the google games services. I've already integrate the games services API to my app, and it's working fine.
My issue is that the full library of google games services gives a huge size (more than 5 Mo) to the installed app on my terminal, and it's very inconvenient...
I'm developing for android 2.3 with android 4.4.2 platform with the Support libraries v4 and google play services libraries. In the code, I'm only using games achievements part of google play services. I've created a BaseGameActivity which access to all functions I need to unlock reveal or display achievements. I had many problems to integrate BaseGameActivity to my project as a library so I include the 4 .class files "BaseGameActivity", "BaseGameUtils", "GameHelper" and GameHelperUtils". I know it isn't the good way but it works.
I would reduce the size of the google play services libraries, deleting part that I'm not using in my app but I don't know what .class I'm using with the achievements.
Have you some idea ?
thank you

this might be of help to you if you're using gradle for building the app:
https://gist.github.com/dmarcato/d7c91b94214acd936e42
I am not sure which classes are unnecessary for achievements but you can start by stripping all and then you'll find out what is missing when trying to build since it will throw an exceptions for missing code.

Related

Google Play Billing API for Xamarin .NET?

I need to use the Google Play Billing API, in an Android app that I am building with Visual Studio Xamarin.
All the documentation I've found references Android Studio and build.gradle, which I don't have.
I've searched high & low for a Visual Studio answer to this, but I must be missing something because I have found nothing.
Any suggestions would be welcome on how to use the Google Play Billing API, in an Android app.
Thanks

Android application with supporting all platforms except android

I create application in Android Studio, and send it to Google Play Store, after time i add library "littleprxy"(based on netty), and when it came time to send updated application in Google Play Console i see Supported platform : amd64-Linux-gpp, amd64-Windows-gpp, arm-Linux-gpp, i386-Linux-gpp, i386-MacOSX-gpp, x86_64-MacOSX-gpp, x86-Windows-gpp, and ofcourse 0 supported Android devices, but i can install apk manually, and it work fine.
How i can fix it? Maybe some parameters for gradle or manifest...
Sorry for English
LittlePrxy is written atop Netty. Netty is kind of "heavy" for Android. Most of Android devices are resource limit. memory footprint, cpu usage should be carefully treated. This is the reason why Netty doesn't support Android OS. Sure you will be able to use this lib but it is not recommended. This is why GooglePlay reports an error, because Android is not specified in the list of supported OS of this lib.
In short, you should not use LittlePrxy in your app. You should find another library.

Include Google Play Services with Source Code?

My project is open source and implements features from Google Play Services such as location. I'm having trouble in that when I upload my project to GitHub for instance, when the project is downloaded onto another user's machine to be worked on, all the references to Google Play Services become 'cannot be resolved' errors. Even uploading and redownloading the source on my own machine which has the Google Play Services SDK results in errors. Apparently the source code needs to be manually linked to the Google Play Services SDK each time it is imported to a different machine.
Is there a way to include the Google Play Services code in the source without requiring each user that downloads it to manually set up the Google Play Services SDK?
https://github.com/owncloud/android/blob/master/SETUP.md
This is a setup guide of another app. in it you can see setup_env scripts. You can have a solution like this and write a setup guide like this one for users who want to build.

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

Show Admob banner in android 2.1 using google play services library

I am stuck in a strange problem. I a creating an app which has something to do with google plus only when its running on android 2.3 or above. So I use Google Play Services Library for the purpose. The library runs on 2.3 and above.
Now even if I wish to do google plus stuff on 2.3 and above, I want my app to be capable of showing ads from android 2.1 . But this is not sort of possible because admob is now integrated in Google Play Services Library which does not support 2.1 . I cannot even include a separate Jar for admob because using both admob jar and play services library simultaneously gives multiple dex file error at compile time.
Is there any real solution to the problem ? Thanks

Categories

Resources