Category «Android-Tutorial»

BigPictureStyle Notification in Android Example

In the previous post we have learnt on how to show notifications in Android, now we shall see how to show Large icon in notification bar. This style of notifications are called as BigPicturestyle Notifications. For example so many apps like, Flipkart, Mobikwik, Paytm etc… they randomly post big picture notifications, the image consists of brief …

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 & …

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 & …

Android Call Log change notification example

Learnt about How to read call logs in Android phone, this tutorial will tell how to listen to Android call log changes in  phone. If any call log entry is added, deleted or updated, then fire a notification event. Here are the simple steps. 1) Create a class to receive the call log change events public class …

Read call Logs in Android example

Read call logs in Android here are the simple steps. 1) Update Manifest file with following permissions. <uses-permission android:name=”android.permission.READ_CALL_LOG”/> <uses-permission android:name=”android.permission.WRITE_CALL_LOG”/> <uses-permission android:name=”android.permission.READ_CONTACTS” /> <uses-permission android:name=”android.permission.WRITE_CONTACTS”/> 2) Use CallLog.Calls.CONTENT_URI to read call logs & traverse the cursor. //Fetches the complete call log in descending order. i.e recent calls appears first. Cursor c = getApplicationContext().getContentResolver().query(CallLog.Calls.CONTENT_URI, projection, null, …

Android custom action bar with different styles example

Android action bar by default comes with dark or Light theme, programmatically  styles can be changed by modifying styles.xml of values folder. Note: We are using v7 appcompat support library, it support action bar in all the devices from API 7 onward. To get Dark action bar in all the version of devices, just go to styles.xml in all folder …