Skip to main content

Posts

Showing posts with the label Android Apps

How to Set Up Android App to Support Expansion Files

Google Play currently requires that your APK file be no more than 50MB. For most applications, this is plenty of space for all the application's code and assets. However, some apps need more space for high-fidelity graphics, media files, or other large assets. Previously, if your app exceeded 50MB, you had to host and download the additional resources yourself when the user opens the app. Hosting and serving the extra files can be costly, and the user experience is often less than ideal. To make this process easier for you and more pleasant for users, Google Play allows you to attach two large expansion files that supplement your APK. If you are just looking for implementation details, jump right to Implementation. Overview Each time you upload an APK using the Google Play Developer Console, you have the option to add one or two expansion files to the APK. Each file can be up to 2GB and it can be any format you choose. The main expansion file is the primary expansion file for addi…

Sign In with Google in Your Android Apps Example with Code in Android Studio

1. Prerequisites

Before beginning, check that you have all the necessary pre-requisites. These include: Android StudioAn Android Device that runs Android 4.2.2 or later    -or-   A configured Android Emulator (this is available in Android Studio)The latest version of the Android SDK including the SDK tools component. You can get this from the Android SDK Manager in Android Studio.The Google Play Services SDK. You can get this from the Android SDK Manager in Android Studio.

2. Enabling Sign-In for your App
Before you start coding any of the Android functionality, you need to turn on the Sign-In APIs for your App in the Google Developer’s console. You’ll see how to do that in this section. Create a Project
To create a project, visit the developer’s console at: https://console.developers.google.com/project.
Press the ‘Create Project’ button, and you’ll see a popup like this:

Enter a meaningful name for your project in the ‘Project name’ box. For the project ID, you’ll need to enter something tha…