Programming/Android

Programming/Android

INSTALL_FAILED_CONFLICTING_PROVIDER

Gradle의 productFlavors를 이용해 컴파일을 하던 중INSTALL_FAILED_CONFLICTING_PROVIDER 오류가 확인되었다. 구글링을 통해 찾아 본 결과로는 AndroidManifest.xml의 android:authorities가 중복되어 수정해야 한다는것 같다. You can solve it by changing the value of android:authorities in your AndroidManifest.xml file. The reason for the error is that another application installed on your device already uses that same value for android:authorities.출처 : htt..

Programming/Android

안드로이드 앱 위젯 셀 크기 구하기 (Android determine the actual pixel size of appwidget)

Display display; display = ((WindowManager) context.getSystemService(context.WINDOW_SERVICE)).getDefaultDisplay(); DisplayMetrics metrics = new DisplayMetrics(); display.getMetrics(metrics); // cell size of a widget in portrait mode int xCellSize = 80; int yCellSize = 100; if (metrics.widthPixels > metrics.heightPixels) { // this means we're in landscape mode, so the cell sizes are adjusted xCel..

Programming/Android

Android Studio: Failed to complete Gradle execution

Problem: Failed to complete Gradle execution Cause: A fatal exception has occurred. Program will exit Solution Go to File -> Settings -> Gradle Input the following in the "Gradle VM options:" box: -XX:MaxHeapSize=256m -Xmx256m Hit apply and Android Studio should build your project successfully.

Programming/Android

안드로이드 매니페스트에서 버전 정보 가져오기

버전 명 String versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName; 버전 코드 int versionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;

Programming/Android

Android Studio Build

보호되어 있는 글입니다.

후유증
'Programming/Android' 카테고리의 글 목록