Breaking News
Home / Android (page 2)


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 »

Email Validator in Android

The snippet shows an Email Validator using RegEx. package;   import java.util.regex.Matcher; import java.util.regex.Pattern;   public class EmailValidator {           private Pattern pattern;         private Matcher matcher;           private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-+]+(.[_A-Za-z0-9-]+)*@"       …

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 »

How do you uninstall an Android App using ADB?

In order to uninstall/delete an existing App on the device you can either Uninstall from the Device it self as any other regular app. This way of uninstalling requires more steps,  developers can do it faster via the ADB  tool using the following command: adb shell am start -a android.intent.action.DELETE …

Read More »
Advertisment ad adsense adlogger