<HorizontalScrollView android:id="@+id/horizontalScrollView1" android:fadingEdgeLength="0dp" android:layout_width="wrap_content" android:layout_height="wrap_content" >
android:fadingEdgeLength=”0dp” 追加
<HorizontalScrollView android:id="@+id/horizontalScrollView1" android:fadingEdgeLength="0dp" android:layout_width="wrap_content" android:layout_height="wrap_content" >
android:fadingEdgeLength=”0dp” 追加
$ adb shell
adb server is out of date. killing…
CreateProcess failure, error 2
* failed to start daemon *
error:
原因不明 (-_-;)
とりあえず、
adb.exe のフォルダーへ移動
cd \adt-bundle-windows-x86_64\sdk\platform-tools
C:\adt-bundle-windows-x86_64\sdk\platform-tools>adb shell
$ ls
ls
mr.log
config
cache
sdcard
acct
mnt
つながったよ
間違いなく正しい Activity_ を指定しているのに ClassNotFoundException が出力される
一度、パッケージを手動でアンインストール
mGridView.setOnItemLongClickListener( new OnItemLongClickListener() {
@Override
public boolean onItemLongClick(AdapterView<?> parent, View v, int pos, long id) {
mPosition = pos;
parent.showContextMenu();
return true;
}
});
Control+shift+r
知らなかった、これ便利
android keystore のパスワードを完全にわすれる!
まぁ、よくある事…
でも使用するパスワードはたかがしれてる時にどうぞ?
おもいつく限りのワスワードを wordlist.txt に登録。
http://code.google.com/p/android-keystore-password-recover/downloads/detail?name=AndroidKeystoreBrute.jar&can=4&q=
AndroidKeystoreBrute.jar ダウンロード後、以下実行
java -jar AndroidKeystoreBrute.jar -m 3 -k key.txt -d “wordlist.txt”
だめなら、あたらしくアップする。
android:scrollingCache=”false” を設定
ImageView imageView = (ImageView)findViewBy ( R.id.image1 ) ;
Bitmap bmp = ((BitmapDrawable)imageView.getDrawable()).getBitmap();
static public void i( String message, Object ... obj) {
String methodName ="";
try {
methodName = Thread.currentThread().getStackTrace()[3].getMethodName();
} catch( Exception e ){
Log.e("Debug", e.getMessage());
}
if( DEBUG_WRITE == true ) {
Log.i(methodName, String.format( message, obj) );
}
put( message );
}
呼び出し
Log2.i("x:%d y%d", 100,200 ) ;
String[] words = {"cat", "dog", "man"};
List<String> wordList = Arrays.asList(words);
final ArrayList<String> rows = new ArrayList<String>(Arrays.asList(getResources().getStringArray(R.array.safe_search_list)));
resource 定義
<string-array name="safe_search_list">
<item>active</item>
<item>moderate</item>
<item>off</item>
</string-array>