https://burst.shopify.com/
https://pixabay.com/
How android determines required permissions
If you still wind up with permissions that you do not want, then you will need to determine where the permissions are coming from. There should be a manifest merger report in build/outputs/logs/ of your module.
New AlertDialog library with appCampat v22.1
http://stackoverflow.com/questions/26455919/material-design-not-styling-alert-dialogs
http://developer.android.com/reference/android/support/v7/app/AlertDialog.html
<style name="AppCompatAlertDialogStyle" parent="Theme.AppCompat.Light.Dialog.Alert"> <item name="colorAccent">#5fa3d0</item> <item name="android:textColorPrimary">#000000</item> <item name="android:background">#FFFFFF</item> </style> AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AppCompatAlertDialogStyle); builder.setTitle("Titttle"); builder.setMessage("Yap, Message"); builder.setPositiveButton("OK", null); builder.setNegativeButton("Cancel", null); builder.show();
For this, make sure you have following (v22 or higher) in build.gradle
dependencies { compile 'com.android.support:appcompat-v7:23.2.1' }
How to decode the obfuscated stack trace in proguard
- Go to <Android SDK Dir>\tools\proguard\bin
- Run proguardgui.bat
- Set mapping file – mapping file is located in project/build/output/mapping
- Copy an Paste Obfuscated stack trace in proguard
- Run “ReTrace”
How to setup license verification library
- In Android Studio, Tools-Android-SDK Manager
- In SDK Manager, in the extras section choose Google Play Licensing Library
- Go back to Android Studio, and choose File-New-Import Module
- ADK Manager will have put the downloaded files under your SDK directory, in my case
Desktop/android-sdk-macosx/extras/google/play_licensing/library
- Choose to import this directory as a module, and give it a name. I used ‘lvl’
- Optionally change targetSdkVersion in the
lvl
module’sbuild.gradle
to match your project targetSdkVersion. - Then in your projects build.gradle, add the line
compile project(':lvl')
inside the{dependencies{
section. - Re-sync Gradle and everything should compile correctly.
How to use SyncAdapter
How to use “productFlavors” in gradle
Main documentation
https://developer.android.com/tools/building/configuring-gradle.html
How to run specific buildvariant
http://stackoverflow.com/questions/19234499/how-to-build-product-flavors-from-android-studio
How to create Java root folder in favor folder
How to override string resource