Android Category Screen using ExpandableRelativeLayout

In this tutorial we are going to show how to create a category screen using ExpandableRelativeLayout. This expandable layout can be used inside ListView as list row item. Let us assume that our application includes a screen which has category selection. Every category will have some items. In this example we have added checkboxes for multiple item […]

Disabling screen shot capture in Android application

In this tutorial we are going to show how to protect your application from screen shot capturing. Some applications might be having sensitive personal data (for example all banking applications), so as a developer we need to disable the option to take screen shot using DDMS console. See following steps : Use WindowManager.LayoutParams.FLAG_SECURE before setContentView() mehtod

How to get all registered email accounts in Android

In this tutorial we are going to show how to get all registered Gmail ids and other email accounts like Skype in Android. All the email ids are provided by the AccountManager class. See flowing Steps : Declare GET_ACCOUNTS permission in Manifest file. Get the email ids using getAccounts or getAccountsByType provided by AccountManager . Note: This will not work […]