$ 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 が出力される

一度、パッケージを手動でアンインストール

1
2
3
4
5
6
7
8
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();

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
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 );
}

呼び出し

1
Log2.i("x:%d y%d", 100,200 ) ;
1
2
3
4
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 定義

1
2
3
4
5
<string-array name="safe_search_list">
    <item>active</item>
    <item>moderate</item>
    <item>off</item>
</string-array>

Redmine wiki 簡単編集

新規ページ作成 ファイル名がだぶらないように注意

[[Page_1|title]]
メイン
[[Page 1]]
[[Page 2]]

上記でメインを保存して表示する。
リンクをクリックする事で新しいページを編集する事が出来る。

Page 1

h1. Page 1

  
 
Page 1 title

!{width:1024px}upload_file_name.png!

上記の指定で、表示サイズ、表示ファイルを指定

テーブル

|a|b|c|d|e
© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha