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 com.android.providers.calendar.HtcCalendarProvider uri content://com.android.calendar/calendars 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(Parcel.java:1430) 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(StrictMode.java:1208)E/LiveTraxs(29173):     at java.net.InetAddress.lookupHostByName(InetAddress.java:388)E/LiveTraxs(29173):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:239)E/LiveTraxs(29173):     at java.net.InetAddress.getAllByName(InetAddress.java:214)E/LiveTraxs(29173):     at libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)E/LiveTraxs(29173):     at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)E/LiveTraxs(29173):     at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)E/LiveTraxs(29173):     at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)E/LiveTraxs(29173):     at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)E/LiveTraxs(29173):     at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)E/LiveTraxs(29173):     at libcore.net.http.HttpEngine.connect(HttpEngine.java:310)E/LiveTraxs(29173):     at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)E/LiveTraxs(29173):     at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)E/LiveTraxs(29173):     at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188) Cause & Solution The …

Read More »

android.view.InflateException: Binary XML file line #50: Error inflating class com.google.ads.AdView

Issue The app is trying to use Admob banner in the Actvity.             <com.google.ads.AdView                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 com.google.ads.AdView 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 cmp=com.android.phone/.OutgoingCallBroadcaster }10-24 11:37:41.137: W/ActivityManager(99): Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:5105454311 cmp=com.android.phone/.OutgoingCallBroadcaster } from ProcessRecord{44c03e08 1599:com.livrona.apps.radio/10080} …

Read More »
Advertisment ad adsense adlogger