반응형 전체 글134 What is the defference between Integer.parseInt and Integer.valueOf parseIntpublic static int parseInt(String s) throws NumberFormatExceptionParses the string argument as a signed decimal integer. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ('\u002D') to indicate a negative value. The resulting integer value is returned, exactly as if the argument and the radix 10 were given as arguments.. 2013. 5. 1. 안드로이드 아이콘 count badge를 달아보자! 삼섬 런처에서만 된다는 소리가 있어 사용시 확인이 필요하다~! int badgeCount = 0; Intent intent = new Intent(“android.intent.action.BADGE_COUNT_UPDATE”); intent.putExtra(“badge_count”, badgeCount); // 메인 메뉴에 나타나는 어플의 패키지 명 intent.putExtra(“badge_count_package_name”, getComponentName().getPackageName()); // 메인메뉴에 나타나는 어플의 클래스 명 intent.putExtra(“badge_count_class_name”, getComponentName().getClassName()); sendBroadcast(inte.. 2013. 4. 3. 이전 1 ··· 31 32 33 34 다음 반응형