자주 사용하는 기능이라 남긴드아~
// Show toast popup.
public void showToast(final String msg) {
mHandler.post(new Runnable() {
public void run() {
Toast toast = Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT);
toast.show();
}
});
}
dimens.xml 및 소스에 적용하기 (0) | 2014.08.18 |
---|---|
substring, lastIndexOf 활용해 마지막 폴더(디렉토리)명만 가져오기 (0) | 2014.08.12 |
Console 에서 Activity(액티비티) 실행하기 (0) | 2014.08.06 |
TextView의 특정 문자( 색상 설정하기 (0) | 2014.07.22 |
ListView에서 원하는 Position으로 스크롤 이동하기 (0) | 2014.07.17 |