This file contains 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
android { | |
defaultConfig { | |
minSdkVersion 18 // Requires Android 4.3 (API level 18) | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} | |
packagingOptions { | |
exclude 'LICENSE.txt' // Duplicate files copied | |
} | |
} |
This file contains 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
private void disableConnectionReuseIfNecessary() { | |
// HTTP connection reuse which was buggy pre-froyo | |
if (Integer.parseInt(Build.VERSION.SDK) < Build.VERSION_CODES.FROYO) { | |
System.setProperty("http.keepAlive", "false"); | |
} | |
} |
This file contains 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
// Java7 non-Lambda | |
Runnable r = new Runnable() { | |
public void run() { | |
System.out.println("Howdy, world!"); | |
} | |
}; | |
r.run(); | |
// Java8 Lambda | |
Runnable r2 = () -> System.out.println("Howdy, world!"); |
This file contains 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
<uses-permission android:name="android.permission.BLUETOOTH"/> | |
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> |
This file contains 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
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
This file contains 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
dependencies { | |
// ... | |
classpath 'com.deploygate:gradle:0.6.2' | |
} |
This file contains 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
keytool -exportcert -alias androiddebugkey -keystore path-to-debug-or-production-keystore -list -v |
This file contains 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
// UnitTestにはtestCompileキーワードを使用 | |
testCompile 'junit:junit:4.12' | |
// PowerMockのライブラリを指定 | |
testCompile 'org.powermock:powermock-module-junit4:1.6.2' | |
testCompile 'org.powermock:powermock-api-mockito:1.6.2' |
This file contains 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
https://www.google.co.jp/search?q=google+keep+%E5%85%AC%E9%96%8B&oq=google+keep+%E3%81%93%E3%81%86%E3%81%8B%E3%81%84&aqs=chrome.1.69i57j0.11915j0j4&sourceid=chrome-mobile&espv=1&ie=UTF-8 |
This file contains 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
Android Wear 5.1.1へのアップデートが配信中! Wi-Fiサポートなど新機能が複数追加 | |
http://octoba.net/archives/20150520-android-news-wear-5-1-1.html |
OlderNewer