Breaking News
Home / Android / Android Issues

Android Issues

Cannot get a list of Calendar in Android

Issue Getting a exception while trying to get a list of calendar in an Android device. 07-06 13:26:51.969: E/AndroidRuntime(19053): Caused by: java.lang.SecurityException: Permission Denial: reading uri content:// from pid=19053, uid=10206 requires android.permission.READ_CALENDAR, or grantUriPermission() 07-06 13:26:51.969: E/AndroidRuntime(19053):      at android.os.Parcel.readException( Solution The following permissions are required to read and write …

Read More »

android.os.NetworkOnMainThreadException – StrictMode$AndroidBlockGuardPolicy

Usecase Sending a request to invoke a URL/API/Resource over the Internet from the Activity. Exception E/LiveTraxs(29173): HttpApiService:81-Exception : nullE/LiveTraxs(29173): android.os.NetworkOnMainThreadExceptionandroid.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(     at     at     at     at<init>(     at<init>(     at$Address.connect(     at     at     at     at     at     at     at Cause & Solution The …

Read More »

android.view.InflateException: Binary XML file line #50: Error inflating class

Issue The app is trying to use Admob banner in the Actvity.             <                android:id=”@id/adView”                android:layout_width=”wrap_content”                android:layout_height=”wrap_content”                ads:adSize=”BANNER”                ads:adUnitId=”a1s251cdf4s7ec3″                ads:loadAdOnCreate=”true”                ads:testDevices=”TEST_EMULATOR, TEST_DEVICE_ID” />        </LinearLayout> /AndroidRuntime( 2554): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.livrona.apps.gurbani.ringtone/com.livrona.apps.gurbani.ringtone.Main}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.livrona.apps.gurbani.ringtone/com.livrona.apps.gurbani.ringtone.RingtonesActivity}: android.view.InflateException: Binary XML file line #50: Error inflating class E/AndroidRuntime( 2554): …

Read More »

Photo Upload in Android – Out of memory

Issue Use Case Trying to upload an Image from the Android Phone to a remote service by reading the file bytes and converting it into Base64 Encoded String. This generally can happen when the size of image to upload is large say several MB and there is not enough heap …

Read More »

Cannot launch Call Intent – Android Permission Denial Issue

Issue When trying to invoke the Phone Dialer programmatically the following exception occurs. 10-24 11:37:41.127: D/DesiZindagi(1599): AudioPlayerScreen$3:109-in : Button Advert onClick(..)10-24 11:37:41.137: V/DesiZindagi(1599): AudioPlayerScreen$3:117-Phone : 51022545431110-24 11:37:41.137: I/ActivityManager(99): Starting activity: Intent { act=android.intent.action.CALL dat=tel:510225454311 }10-24 11:37:41.137: W/ActivityManager(99): Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:5105454311 } from ProcessRecord{44c03e08} …

Read More »
Advertisment ad adsense adlogger