Para sacar el listado de maquinas virtuales (imagenes) de los emuladores Genymotion creados:
VBoxManage list vms
Ejecutar
| # Made by [email protected] | |
| # Overwrites existing files and directories | |
| # Creates missing directories | |
| node generate strings.json 'android' | |
| # no trailing slash | |
| PROJECT_DIR=~/project/src/main/res | |
| if [ ! -d "$PROJECT_DIR" ]; then | |
| echo "Error: Please define PROJECT_DIR" |
| git checkout develop | |
| git branch --merged | grep -v "*" | grep -v -e "[develop|master]" | xargs -n 1 git branch -d |
| git remote prune origin |
| # Author: @vitovalov | |
| # Description: Resize to a given size and automatically generate all android resource directories | |
| # Usage: sh rescale_for_android.sh <dp size (mdpi)> <source path to original images> <output path for results>(optional) | |
| if [ "$#" -le 1 ]; then | |
| echo "\nUsage: sh rescale_for_android.sh <dp size (mdpi)> <source path to original images> <output path for results>(optional)\n" | |
| exit 1 | |
| fi | |
| mdpisize=$1 | |
| hdpisize=$(echo "$mdpisize * 1.5" | bc -l) |
| # Author: @vitovalov | |
| # Description: pass it a mp4 and you will have a gif | |
| # Dependencies: ffmpeg, gifsicle | |
| if [ "$#" -le 1 ]; then | |
| echo "\nUsage: sh gifit.sh <source path to original mp4> <delay between frames>" | |
| echo "Warning! filenames shouldn't contain the extension\n" | |
| exit 1 | |
| fi | |
| ffmpeg -i $1.mp4 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=$2 > $1.gif |
| long lastLaunchedDateMillis = VITPreferencesUtils.getLongGeneric(PuzzleApp.getInstance(), "first_launch_date", -1); | |
| DateTime current = new DateTime(); | |
| DateTime lastLaunchedDate = new DateTime(lastLaunchedDateMillis); | |
| if (lastLaunchedDateMillis != -1) { | |
| int secsElapsed = Seconds.secondsBetween(lastLaunchedDate, current).getSeconds(); | |
| Log.e("VI PRINT", "HomeActivity.onCreate " + "secsElapsed:" + secsElapsed); | |
| } else { | |
| VITPreferencesUtils.saveLongGeneric(PuzzleApp.getInstance(), "first_launch_date", current.getMillis()); | |
| } |
| # -d is used to target the connected device and not emulator(-e) | |
| # by setting permission 777 you are allowing to everybody r/w access | |
| adb -d shell "run-as com.vitaminlabs.visualization chmod -R 777 /data/data/com.vitaminlabs.visualization/databases/" | |
| adb -d shell "cp /data/data/com.vitaminlabs.visualization/databases/visualization.db /sdcard/visualization.db" | |
| adb -d pull "/sdcard/visualization.db" |
Un ejemplo parecido a lo que has montado: https://github.com/patrykpoborca/MVPDagger2
Esto nos podria servir cuando tengamos rotacion y queramos guardar state. https://github.com/square/mortar
He visto muchissimos posts en reddit de que la gente no entiende como va dagger https://www.reddit.com/r/androiddev/comments/38bcgw/need_a_good_tutorial_on_dagger_2/
| -Xms1280m | |
| -Xmx6050m | |
| -XX:MaxPermSize=3050m | |
| -XX:ReservedCodeCacheSize=98m | |
| -XX:+UserCompressedOoops |