home

2011년 12월 30일 금요일

오늘 일지..

may not response to method
warning때문에 한참을 헤맸다...

원인은... 불필요한 .h의 delegate선언...과...
custom tabbar를 사용함에도 UITabbarcontroller를 선언해서 써먹고 있었다..


2011년 12월 14일 수요일

[ios/iphone] UIImageView aligning to Full-screen.

 imageView.frame = [[UIScreen mainScreen] applicationFrame];

[ios/iphone] How to fix warning ' ' may not respond to ' '

b_fuction() {
     //b_fuction() must be before a_fuction.
}

a_fuction() {
    [self b_fuction];
}

2011년 8월 24일 수요일

layout setVisibility(View.VISIBLE) is not working.

If doesn't show after setVisibility(View.VISIBLE), try this.

==================================================

mId = (View) findViewById(R.id.myID);
new Thread(new Runnable() {
    public void run() {
        mId.post(new Runnable() {
            public void run() {
                mId.setVisibility(View.VISIBLE);
            }
        });
    }
}).start();

2011년 2월 15일 화요일

[android] Monkey tool script

1. make a txt file.

<pre>
   type= raw data
   count=10
   speed= 250
   start data >>



# Start Setting app
    LaunchActivity(com.android.settings,com.android.settings.Settings)
    UserWait(2000)

# touch
    DispatchPointer(0, 0, 0, 210, 300, 0,0,0,0,0,0,0)  //touch 0, x 210, y 300
    DispatchPointer(0, 0, 1, 210, 300, 0,0,0,0,0,0,0)  //release 1. x 210, y 300
    UserWait(2000)  // wait.

# Home key
    captureDispatchKey(0,0,0,3,0,0,0,0)  //push 0, home 3
    captureDispatchKey(0,0,1,3,0,0,0,0)  //release 1, home 3

* key info
http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK

2. adb push script file
> adb push script.txt /where

3. go~ 10 times.
> adb shell monkey  -f /where/script.txt 10