Category Archives: Bugs, warnings, errors

Bugs and errors in IDE Eclipse or Android ADT emulator

1,074 views

Unchecked call to add(E) as a member of raw type java.util.List

// warnning private List list = new ArrayList();   // ok /put type of added object private List<String> list = new ArrayList<String>();

Posted in Bugs, warnings, errors | Tagged , | Comments Off on Unchecked call to add(E) as a member of raw type java.util.List
4,895 views

Android 4.4 Lenovo A6000 black screen

Try reboot device. Start device with start button on side of phone. Screen will go to light black color. Long press Start button for menu: Power off Reboot Airplane mode Reboot item is in same level like Start button. Click … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged , | Comments Off on Android 4.4 Lenovo A6000 black screen
5,153 views

Expected resource of type raw drawable

Try insert + before R.drawable.xxxx // error InputStream is = context.getResources().openRawResource(R.drawable.app_sample_code);   // ok InputStream is = context.getResources().openRawResource(+R.drawable.app_sample_code);

Posted in Android Examples Code, Bitmap, drawing, Bugs, warnings, errors | Comments Off on Expected resource of type raw drawable
6,615 views

Call requires permission which may be rejected by user

Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with `checkPermission`) or explicitly handle a potential `SecurityException`   try { // your code for example: // LocationManager locationManager = (LocationManager) … Continue reading

Posted in Android Examples Code, Bugs, warnings, errors | Tagged | Comments Off on Call requires permission which may be rejected by user
6,340 views

Error type 3 Activity class does not exist

Try some solution – each individually or all Check AndroidManifest.xml activity declaration <activity android:name=".EnableProfileActivity" android:label="@string/app_name" /> Delete BUILD folder in module tree and Clean / Rebuild project Restart Android Studio

Posted in Bugs, warnings, errors | Tagged , | Comments Off on Error type 3 Activity class does not exist
5,557 views

EditText.setOnKeyListener not working on maxLines EditText

Check this in XML file if use singleLine singleLine change to maxLines (1 if singleLine) declare inputType android:maxLines="1" android:inputType="text"

Posted in Android Examples Code, Bugs, warnings, errors | Tagged , , | Comments Off on EditText.setOnKeyListener not working on maxLines EditText
5,451 views

EditText hint not show

Try this solution – into xml file add row to EditText tag: android:textColorHint="@color/grey"

Posted in Android Examples Code, Bugs, warnings, errors | Tagged , , | Comments Off on EditText hint not show
5,538 views

All com.android.support libraries must use the exact same version specification

For example: If You using compileSdkVersion 25 buildToolsVersion “25.0.0” You have to using latest version of support libraries with number 25. Also check the library project!   apply plugin: ‘com.android.application’   android { compileSdkVersion 25 buildToolsVersion "25.0.0"   defaultConfig { … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on All com.android.support libraries must use the exact same version specification
2,342 views

InterstitialAd Admob not visible

// on bottom of onCreate add listener mInterstitialAd .setAdListener(new AdListener(){ public void onAdLoaded(){ interstitial.show(); } });   } // end onCreate   public void displayInterstitial (){ if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } }

Posted in Android Studio, Bugs, warnings, errors | Tagged | Comments Off on InterstitialAd Admob not visible
1,949 views

Android Studio emulator errors warnings issue

– check errors, warnings in build.gradle and other files – Sync project – Clean project – Rebuild project – restart Android Studio – restart ADB – update Tools, libraries, etc. Speed Up Gradle Build In Android Studio -a android.intent.action.MAIN -c … Continue reading

Posted in Android Studio, Bugs, warnings, errors | Tagged , | Comments Off on Android Studio emulator errors warnings issue