본문 바로가기
728x90

Programing/Android / Java195

How to fix GC overhead limit exceeded in Eclipse? Eclipse will throw GC overhead limit exceeded error when it runs out of memory, normally while performing memory-consuming operations such as building workspace on big projects.The error would look something like this;An internal error occurred during: "Building workspace". GC overhead limit exceededTo fix this problem, you'll need to allocate more memory to your Eclipse instance. To do this, lo.. 2014. 12. 31.
안드로이드 언어코드와 지역코드 / Android String Resources 언어코드는 ISO-639-1에 정의된 두자리 알파벳이며, 지역코드는 ISO-3166-alpha-2에 정의된 두자리 코드이다.이때, 지역코드는 지역코드 구분을 위해 앞에 r 문자를 붙이며, 언어코드 없이 지역코드만 사용은 불가능하다. 언어 코드 목록지역코드는 보통 지역을 기준으로 구분되어 있기에, 보통 국가별로 구분되어 있고 ~제도처럼 지역 자체로 구분되어있는 경우도 있다. aa Afar ab Abkhazian ae Avestan 아베스타어 af Afrikaans 아프리칸스어 ak Akan am Amharic 암하라어 an Aragonese ar Arabic 아랍어 as Assamese av Avaric ay Aymara 아이마라어 az Azerbaijani ba Bashkir be Belarusian 벨.. 2014. 12. 31.
안드로이드 언어코드와 지역코드 / Android String Resources A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings:StringXML resource that provides a single string.String ArrayXML resource that provides an array of strings.Quantity Strings (Plurals)XML resource that carries different strings for pluralization.All strings are .. 2014. 12. 31.
[Android/안드로이드] How to get system property in Activity? We can use the shell command by using the Runtime Process in Activity. Please refer to the below example code. Example Code Runtime runtime = Runtime.getRuntime(); Process process; List line = new ArrayList(); try { process = runtime.exec("getprop"); BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream())); String tmp = null; while ((tmp = br.readLine()) != null) {.. 2014. 12. 30.
[안드로이드/Android] 시스템 분석을 위한 쉘 명령어 (ADB Shell Commands) 시스템 기본 정보: 하드웨어, 커널 등cat /proc/version : 커널 버전cat /proc/cpuinfo : 프로세서 정보. CPU 타입, 모델, 제조사 등cat /proc/meminfo : 메모리 정보. 실제 메모리 및 가상 메모리cat /proc/devices : 현재 커널에 설정되어 있는 장치 목록mount : 마운트된 모든 장치 정보df : 하드디스크 사용량cat /proc/filesystems : 커널에 설정되어 있는 파일시스템 목록cat /proc/swaps : 스왑 파티션의 크기와 사용량cat /proc/interrupts : 장치가 사용중인 인터럽트(IRQ) 목록 표시cat /proc/ioports : 현재 사용중인 Input/Output 포트cat /proc/loadavg : 시.. 2014. 12. 30.
[안드로이드/Android] 안드로이드 ADB 쉘에서 property 값 수정 및 확인 방법 ADB 쉘을 통해 안드로이드 property 값을 읽거나 수정할 수 있다. property 값을 읽을 때는 # getprop name 필드를 공백으로 두면 모든 프로퍼티 값을 볼 수 있다. property 값을 수정할 때는 # setprop 2014. 12. 30.
[Android/안드로이드] ICON Size 별 자동 생성 http://makeappicon.com/ 그냥 사진 끌어다 놓으면 끝납니다. 가입 할거냐고 물어보면 "No, thanks" 선택!! 2014. 12. 26.
[Android] 안드로이드 단말기 버전 (Android SDK Version) int version = android.os.Build.VERSION.SDK_INT; switch (version) { case 2: Log.d("VERSION", "? 1.1"); break; case 3: Log.d("VERSION", "CUPCAKE 1.5"); break; case 4: Log.d("VERSION", "DONUT 1.6"); break; case 5: Log.d("VERSION", "ECLAIR 2.0"); break; case 6: Log.d("VERSION", "ECLAIR 2.0.1"); break; case 7: Log.d("VERSION", "ECLAIR 2.1"); break; case 8: Log.d("VERSION", "FROYO 2.2"); break; case 9.. 2014. 12. 22.
[안드로이드/Android] SDK, APP 버전 가져오기 (Get SDK/APP versioncode) 1. SDK 버전 가져오기 Build.VERSION.SDK_INT; 2. 어플리케이션 버전코드 가져오기 PackageManager manager = getPackageManager();try { PackageInfo packInfo = manager.getPackageInfo(getPackageName(), 0);int nVersionCode = packInfo.versionCode; } catch (catch (NameNotFoundException e) {e.printStackTrace();} 2014. 12. 22.
[Android/Java] Conversion to Dalvik format failed with error 1 라이브러리 중복 충돌로 인해 발생하는 에러입니다. - Project를 Clean한다. (Project > Clean)- Project Properties > Java Build Path > Libraries에서 Android x.x를 제외하고는 모두 지운다.- 다시 Project를 Clean한다.- 다시 한번 실행해 본다. 2014. 12. 19.
[Android/Java] java.lang.NoClassDefFoundError 해당 에러의 내용은 클래스를 못찾았다는 의미입니다. 1. JAR로 되어 있는 라이브러리의 PATH 설정에 문제가 있는 경우. > 이클립스의 해당 프로젝트의 Properities를 열어서, Java Build Path를 선택 후 정상적인 PATH를 설정 2. Libary import 가 재대로 되지 않아 생기는 문제인 경우. 현재 로그에 보이는 에러메시지가 포함된 Libary를 [Order and Export] 순위를 높혀 주시기 바랍니다. [해당 프로젝트 선택 후] -> [ALT + Enter] -> [Java Build Path] -> [Order and Export] 메뉴에서 해당 Libary 순위를 올려 주시면 됩니다. 3. 안드로이드 버전이 맞지 않아서 해당 Class를 찾지 못하는 경우. 예, .. 2014. 12. 19.
How to save database file to CSV? (DB를 CSV로 저장하기) public class ExportDatabaseCSVTask extends AsyncTask { protected void onPreExecute() { dialog = new ProgressDialog(UsedListsActivity.this); dialog.setMessage("백업 중..."); dialog.show(); } @SuppressLint("SimpleDateFormat") protected Boolean doInBackground(final String... args) { File exportDir = new File(Enviro.. 2014. 11. 7.
728x90