Android Navigationview Drawerlayout Support Library Example

With help of Android Design Library its easy to add Sliding Navigationview, this is supported from Android 2.1 onward and gets Material design look. Example code demonstrates on how to add Navigation view to your apps. 1) Add support lib to build.gradle file, dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile ‘com.android.support:appcompat-v7:22.2.0’ compile ‘com.android.support:design:22.2.0’ } 1) Create a ‘android.support.v4.widget.DrawerLayout‘ …

Android Toolbar Material design Example

Android Actionbar is now officially deprecated, from Lollipop onward use Toolbar as standard in designing the apps & Google has provided the support to previous versions of using V7 appcompat library. The advantages of Toolbar are flexible, easy to add & highly customizable. below example is implemented using appcompat lib 1) Create a layout using …

Android Studio SVN configuration

if we try add new dependency jar file in Gradle file, it was not getting synced properly. After observing the log file we found an exception and its related to Android studio SVN. java.io.IOException: Cannot run program “svn”: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:261) at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:248) at org.jetbrains.idea.svn.commandLine.CommandExecutor.createProcess(CommandExecutor.java:197) at …

Android PreferenceFragment settings screen implementation

Here a basic example on how to create, store and retrieve the values from Android preferences fragment. Minimum SDK version 11 is required for some controls,  for few like SwitchPreference requires API level 14 or above. Android settings Preferences will be in XML  layout file & each attribute consists of a Key associate with it. its required to store & …

Android Studio Emulator not working Solution

Android dropped the complete support of Eclipse and ADT, going forward use Android Studio for apps development purpose. Get Android studio for development purpose now. Installation of Android studio is simple, it comes with a simple exe & just takes while to complete the installation. SDK manager is available with it, so that new version of Android, …

Transfer Android Apps to new Google account

Transferring Android application from one Google account to Another google account is very simple & straight forward process. 1) Go to Google Transfer app transfer page. 2) Fill up all the fields with accurate details. 3) To get the google wallet transaction id visit https://wallet.google.com and the ID will be present on the right hand side of the payment …

How to fix GALAXY Specials error in Samsung seller office

Recently Samsung seller office has done some changes, simply upload APK like Google play store it will throw error,“The registered binaries do not meet the category conditions for GALAXY Specials. The GALAXY Specials category can be selected only if at least one binary supports GALAXY Specials. You can go to ‘Binary>Advanced Mode>Binary Details’ to check …

android push notifications tutorial

Android push notifications are very simple to implement. they are useful for showing events, alerts etc… Working code for android push notifications. public void ShowNotification() { int mNotificationID = 10; //Make sure this number is unique, we use this to update or cancel notification. CharSequence mNotificationTitle = “This the Title”; CharSequence mNotificationDescription = “This is …

Detect Incoming call in Android programmatically

To detect incoming call and number in Android programmatically just follow below steps. 1) Add these permission in Manifest file. <uses-permission android:name=”android.permission.READ_PHONE_STATE”/> <uses-permission android:name=”android.permission.PROCESS_OUTGOING_CALLS”/> 2) Create a receiver class to handle incoming call & update it in manifest file <receiver android:name=”com.example.calllogreaderexample.TelephonyReceiver”> <intent-filter> <action android:name=”android.intent.action.PHONE_STATE” /> <action android:name=”android.intent.action.NEW_OUTGOING_CALL”/> </intent-filter> </receiver> 3) Code to check incoming call, ringing number & …