Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| package com.scarozza; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.RectF; | |
| import android.util.AttributeSet; | |
| import com.github.mikephil.charting.animation.ChartAnimator; |
| public class SingletonClass implements Serializable { | |
| private static volatile SingletonClass sSoleInstance; | |
| //private constructor. | |
| private SingletonClass(){ | |
| //Prevent form the reflection api. | |
| if (sSoleInstance != null){ | |
| throw new RuntimeException("Use getInstance() method to get the single instance of this class."); |
| public class CustomInfoWindowAdapter implements GoogleMap.InfoWindowAdapter { | |
| private Activity context; | |
| public CustomInfoWindowAdapter(Activity context){ | |
| this.context = context; | |
| } | |
| @Override |
| package org.codeandmagic.android.customtheme; | |
| import android.content.Context; | |
| import android.content.res.Resources; | |
| import android.graphics.Color; | |
| import android.util.AttributeSet; | |
| import android.util.Log; | |
| import android.util.TypedValue; | |
| import android.widget.TextView; |
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress