This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE_TAGS := optional | |
LOCAL_SRC_FILES := $(call all-java-files-under, src) \ | |
src/training/gl/android/com/mysytemapp/IMyService.aidl | |
LOCAL_PACKAGE_NAME := ToastApk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App extends Application { | |
@Override | |
public void onTerminate() { | |
super.onTerminate(); | |
} | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
if (BuildConfig.DEBUG) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root level: | |
dependencies { | |
// other classpath definitions here | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' | |
} | |
app level: | |
// add after applying plugin: 'com.android.application' | |
apply plugin: 'com.neenbedankt.android-apt' | |
dependencies { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in onCreate: setRetainInstance(true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories { | |
maven {url "https://clojars.org/repo/"} | |
} | |
dependencies { | |
compile 'frankiesardo:icepick:{{latest-version}}' | |
provided 'frankiesardo:icepick-processor:{{latest-version}}' | |
} | |
//https://github.com/frankiesardo/icepick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
debug { | |
applicationIdSuffix ".debug" | |
} | |
// ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
// TODO(arthurthompson): mavenLocal() being used for preview but will be removed for release. | |
mavenLocal() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.2.2' | |
classpath 'com.google.gms:google-services:3.0.0' | |
classpath "net.rdrei.android.buildtimetracker:gradle-plugin:0.8.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" android:layout_height="match_parent" | |
android:padding="16dp" | |
> | |
<android.support.v7.widget.CardView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/cv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
SIZE_SYSTEM=1024 | |
START_SYSTEM=81937 | |
END_SYSTEM=`echo $START_SYSTEM+$SIZE_SYSTEM*1024 | bc` | |
END_CACHE=`echo $END_SYSTEM+512*1024 | bc` | |
echo SIZE_SYSTEM $SIZE_SYSTEM | |
echo START_SYSTEM $START_SYSTEM | |
echo END_SYSTEM $END_SYSTEM | |
echo END_CACHE $END_CACHE |