Skip to content

Latest commit

 

History

History
396 lines (277 loc) · 13.1 KB

File metadata and controls

396 lines (277 loc) · 13.1 KB

ANDROID

TABLE OF CONTENTS

TOOLS

GRADLE CLEAN CACHE

C:\Users\pegal.gradle\wrapper\dists

LAST DEV LINKS

android dev :

android new :

experiment store :

zipalign (optimize RAM) :

RESOURCES

COMMON Error activity + toolbar + action bar

COMMON Error share data

COMMON Error data storage

// COMMON Error user activity

COMMON Error application/singleton/context

UTILS: OSS

UTILS: ALL

SCREENSHOT STORE

MOCKUP IMAGES

ENCODING UTF8

SECURITY / HACK / ENCRYPTION / DECOMPILE / REVERSE ENGINEERING

BUILD

buildType + productFlavor + minSDK

IMAGE DRAWABLE FOLDER

DRAFT

PLAY STORE SEELCTION

PLUGIN

ADB IDEA > CTRL + ALT + SHIFT + A
KEY PROMOTER

DEBUG

hugo @debuglog JakeWhaston

CLIENT REST

OKHTTP
RETROFIT
FEIGN

UI

COMMON SDK

TextUtils
ContextCompat
ContextCompat.getColor(context, R.color.your_color);
ContextCompat.getDrawable(context, R.drawable.empty_photo2);

//Sur buton
btnChangeDateIn.setBackgroundResource(R.drawable.shape_corner_orange);
btnChangeDateIn.setBackground(ContextCompat.getDrawable(this, R.drawable.shape_corner_orange));

// Sur imageview
back1.setImageResource(R.drawable.icon_back);

relative.setBackgroundResource(0);
setBackgroundColor(Color.TRANSPARENT)

ADS MEDIATION

DEPRECATED CODE

Analyze -> Inspect Code...
When your project has been inspected click on Code maturity issues and tada, there is a list of all Deprecated API usages :)

INDUSTRIALIZATION / AUTOMATIZATION / CI / AUTOMATIC RELEASE

  1. FROM - https://console.developers.google.com/apis
    Google Play Android Developer API => ENABLE (NAME: Google Play Android Dev API)
    Identifiants => Clés de compte de service (NAME: API-PLAYSTORE)

  2. FROM - https://play.google.com/apps/publish
    Compte developper => Access API : Google Play Android Dev API
    Compte developper => Compte de Service => Utilisateurs API-PLAYSTORE

APP STORE OPTIMIZATION (ASO)

STRING HELPER

<br/>
<b>AAAAAA</b>
<a href=\'- https://www.google.fr\'>TEXT_LINK</a>;

« text »
“ text ”
’ ou \'

SHORTCUT

Copy/paste > CTRL + SHIFT + V
Back > CTRL + ALT + LEFT (<-)
Last Location > CTRL + SHIFT + BACKSPACE
Next Error > F2 / SHIFT + F2
File Structure > F12 + SHIFT
Symbol > CTRL + ALT + HOME
Goto class name > CTRL + N
Goto file name > CTRL + SHIFT + N
Goto symbol name > CTRL + ALT + SHIFT + N
Hide window > SHIFT + CTRL + F12

Multi cursor > ALT + J
Find action > CTRL + SHIFT + A

LIVE TEMPLATES

usage : abrevation + tab

starter
newInstance
Tag (todo)

FIX

for
nn
format

AUTOCOMPLETE

Tab instead of enter

SHOW INTENTION

ALT + enter

GROOVY CONSOLE

allow to test small function
Find action : groovy console
System.out.println(func(test));

decompile apk

android buy in app V3

android buy in app evol

ANDROIDX REFACTOR

ValidationHelper
//import com.google.android.material.textfield.TextInputLayout;
import android.support.design.widget.TextInputLayout;

/*
// refactor (waiting for libs compat)
// - https://developer.android.com/topic/libraries/support-library/refactor
implementation "androidx.legacy:legacy-support-v4:1.0.0"
implementation "androidx.appcompat:appcompat:1.0.0"
implementation "androidx.multidex:multidex:2.0.0"

manifest application> xmlns:tools="- http://schemas.android.com/tools"
tools:replace="android:appComponentFactory"
android:appComponentFactory="@string/action_settings"

*/

inside gradle > android
lintOptions {
checkReleaseBuilds false
abortOnError false
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}