Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to use Gallery for scrolling images with page indicator in android

First of all you need to use a custom class in place of Gallery :- package com.pakagename; import android.content.Context; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.MotionEvent; import android.wid...

How to change the Image orientation in Android

To change the orientation of an image write the following code: BitmapFactory.Options o2 = new BitmapFactory.Options(); o2.inSampleSize = 2; // Get the original bitmap from the filepath to which you want to change orientation // fileName i...

Play YouTube videos and other Webview videos in Android.

In android playing videos from web-view is such a mess but now just using a small trick you can play all web videos of the YouTube, Daily-motions, etc. You just have to add this method in your web-view Activity. Here is the trick-: ...

How to make your Android Applications better by applying the Drag and drop functionality

Drag and Drop functionality provides user a facility to move a data (or object) from one view to another. This tutorial will help you with the development of the Drag and Drop functionality in your android application. For this you require API l...

Giving Android Dialog a custom layout.

We see situations while developing an app that we need to put certain things inside the Android Dialog box. Here is how we can achieve the same: First, create the layout that you want to give to the Dialog. Below is a sample layout: custom_...

Get Facebook messages in Android

Note- Facebook provides 25 latest message conversation. To get Facebook chat messages in Android, following steps are used: Define the 'read_mailbox' property as below: private static final List PERMISSIONS = Arrays.asList("read_mailbo...

Custom Search in ListView

In OnCreate() Method add addTextChangedListener(new TextWatcher() to an EditText View example: searchEditText.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int ...

Playing with date format in Android

We can change date format of a date as below: Here, I have defined different date formats: String FACEBOOK_DATE_FROMAT = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"; String MESSAGE_DATE_FORMAT = "MM/dd/yyyy hh:mm a"; String MESSAGE_DATE_TIME_FORMAT = "M...

Getting MMS from an Android Device programmatically

To get MMS conversation from an Android device, use the following code: ContentResolver contentResolver = getActivity().getContentResolver(); Uri uri = Uri.parse("content://mms"); Cursor cursor = contentResolver.query(uri, null, "thread_id ...

Download and Install Android paid app for free

Do you want to install paid application present in Google market without wasting your money? If "YES" then you can follow these steps. Step 1: Open the Google Play in your android device. Step 2: Search your desired app in search bar. St...

Launch application after phone boot or screen unlock in Android using BroadcastReceiver

We have BroadcastReceiver to listen to the system events. There are receivers like BOOT_COMPLETED, SCREEN_ON, USER_PRESENT which we can register to perform any specific task when phone boots or screen unlocks. The same we are using here to Launc...

How to generate MD5 and SHA-1 fingerprints for an android application

By following these steps you can be able to generate MD5 and SHA1 fingerprint for your android application using command prompt.(It will surely work in windows7) First of all you need to get the paths for keytool and keystore. keytool you...

How to get SMS from an Android Device programatically

To get SMS conversation from an Android device we will use following code: ContentResolver contentResolver = getActivity().getContentResolver(); Uri uri = Uri.parse("content://sms/conversations/"); Cursor cursor = con...

Associate your actionbar popup menu with the hardware menu button in Android.

Google Kills Android Menu Button, Replaces It with Action Bar But still so many devices have hardware menu button so now we can combine hardware menu button along with action bar option popup menu by just doinig a small trick. When you clicks...

Steps to download a file in android using Asynctask

Five Steps for downloading a file using AsyncTask in android Declare the reference of ProgressDialog class in your Activity globally. Ex:- ProgressDialog mProgressDialog; Instantiate the above reference in onCreate() method of activity...

Dynamicaly load more items to the ListView

To dynamically load more items to the ListView when you scroll at the bottom, we implement onScroll() method in which we can find out the which item is visible when we will reach at bottom it will load more items. Following steps are used fo...
1 18 20 next
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: