Skip to content

Instantly share code, notes, and snippets.

View AbeHaruhiko's full-sized avatar

Abe Haruhiko AbeHaruhiko

View GitHub Profile
<manifest>
<!-- 下記以外は省略しています -->
<instrumentation
android:name="com.uphyca.testing.JUnit4InstrumentationTestRunner"
android:targetPackage="your.app.package" />
</manifest>
@AbeHaruhiko
AbeHaruhiko / AndroidManifest.xml
Created April 10, 2014 14:55
AndroidでJUnit4とJUnit3.8やEspressoを併用する方法 ref: http://qiita.com/AbeHaruhiko/items/5416120c8a933f0b8147
<manifest>
<!-- 下記以外は省略しています -->
<instrumentation
android:name="com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
android:targetPackage="your.app.package" />
</manifest>
@AbeHaruhiko
AbeHaruhiko / build.gradle
Created April 12, 2014 03:34
AndroidStudioでGradleのバージョンが古い( unsupported version of Gradle)と言われた時の対処法 ref: http://qiita.com/AbeHaruhiko/items/fd9a01ad6fc84309e857
buildscript {
dependencies {
// バージョンを上げる。
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
@AbeHaruhiko
AbeHaruhiko / file0.txt
Created April 17, 2014 07:15
GenymotionでUnable to connect to your virtual device!と言われた時の対処方法 ref: http://qiita.com/AbeHaruhiko/items/8fc28923997bb17e8b7f
Unable to connect to your virtual device! Genymotion will now stop. Check your VirtualBox network configuration.
For more information refer to: https://cloud.genymotion.com/page/faq/#collapse-nostart
@AbeHaruhiko
AbeHaruhiko / file1.txt
Created April 19, 2014 10:26
QiitaのMarkDownでリストの順番を簡単に並べ替える方法 ref: http://qiita.com/AbeHaruhiko/items/3fa7ee972db4bd06ed5d
1. はじめに
1. そのつぎ
1. つぎのつぎ
1. まだ続く
または
1. はじめに
* そのつぎ
* つぎのつぎ
@AbeHaruhiko
AbeHaruhiko / CachedTypefaces.java
Last active August 29, 2015 14:00
Androidで画像を使わずにオシャレなアイコンを簡単に表示する方法(Font Awesome) ref: http://qiita.com/AbeHaruhiko/items/a7437027231a373acf2a
import android.content.Context;
import android.graphics.Typeface;
import android.util.Log;
import java.util.Hashtable;
public class CachedTypefaces {
private static final String TAG = "CachedTypefaces";
(ここより上は省略)
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
@AbeHaruhiko
AbeHaruhiko / file0.java
Created April 30, 2014 15:34
[Parse.com]オフラインでもクラウドにデータを保存できる!データ操作系メソッド | Android ref: http://qiita.com/AbeHaruhiko/items/4d83ffc0c6bc211c3a74
ParseObject gameScore = new ParseObject("GameScore");
gameScore.put("score", 1337);
gameScore.put("playerName", "Sean Plott");
gameScore.saveInBackground();
@AbeHaruhiko
AbeHaruhiko / file0.txt
Last active August 29, 2015 14:00
Parse.comのホスティングを利用する ref: http://qiita.com/AbeHaruhiko/items/34e289e675043207482b
$ curl -s https://www.parse.com/downloads/cloud_code/installer.sh | sudo /bin/bash
@AbeHaruhiko
AbeHaruhiko / file0.java
Last active August 29, 2015 14:02
[Android] OSのバージョンごとに処理や表示を分ける方法 ref: http://qiita.com/AbeHaruhiko/items/d3255fb6abb48fd8761a
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
// ここはGINGERBREAD(Android 2.3)以降で実行される。
}