Skip to content

Instantly share code, notes, and snippets.

View eugene-krivobokov's full-sized avatar
🙃

Eugene Krivobokov eugene-krivobokov

🙃
View GitHub Profile
@eugene-krivobokov
eugene-krivobokov / Activity
Created September 22, 2014 20:30
Parcelable inheritance
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout....);
if (savedInstanceState != null) {
mBaseEntity = savedInstanceState.getParcelable(KEY_BASE_ENTITY);
mChildEntity = savedInstanceState.getParcelable(KEY_CHILD_ENTITY);
Log.i(TAG, "restore from state: " + mBaseEntity);
Log.i(TAG, "restore from state: " + mChildEntity);
@eugene-krivobokov
eugene-krivobokov / Android studio tips.md
Last active December 17, 2021 12:35
Android Studio recipes

Как убедиться что стало лучше?

Используй Performance testing plugin.

Опиши сценарий и проверяй на нем.

Проверь версию AS

Android Studio | Check for updates

@eugene-krivobokov
eugene-krivobokov / clean.py
Last active August 28, 2019 13:37
Android project cleaner
#! /usr/bin/env python3
#
# THIS IS AN EXAMPLE. USE IT ON YOUR OWN RISK !
#
import argparse
import glob
import os
import shutil