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

How to impliment view Animation in Android

To implement view Animation in Android follow the steps mentioned below:- 1) Start a new project in android studio. 2) Now create a new Android resource Directory under res directory then choose interpolater option in directory type and nam...

Property Animation Android

1) Here I will rotate a View around its vertical axis using the rotationY property. we will create an XML resource file in the /res/animator directory named as flip_on_vertical.xml. <objectAnimator xmlns:android="http://schemas.android.com/...

Dynamically adding ListViewItem to Listview

To dynammically add new elements into listview we need a Edittext(etAddItem) to input the item/element, a Button(btnAdd) for adding item to the list, and a listview which shows elements in a vertical scrolling manner. etAddItem = (Edit...

How to refresh a List in Android?

1)Write activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent...

Freeze TextView text while restore fragment from Backstack/ onOrientationChange

Some time TextView lost text while getting fragment from Back-stack or when screen orientation changed. I also faced that problem. Here is the solution for save state of TextView forcefully. Add Tag android:freezesText="true...

How to make Action Bar in Android?

Here I have created Action Bar in android. In android Action Bar is used to provide navigation and perform some actions. In this blog I have implement a Action Bar in my Android project and perform actions such as switching fragment. Below ex...

How to make SeekBar in android?

Below code will help you to created SeekBar function in android. In android SeekBar is used by the end user, the user can drag the left and right to move the progress of runing file like audio song, video song etc. In the below code example, I h...

How to make Digital clock in android?

Using below code I have created Digital clock app in android. Android digital clock is used to show time in android app. In android, digitalclock is the sub class of TextView class. Here below code example will help you create Digital Clock funct...

Remove duplication from array list

If you want to remove duplicate entries from your array list you can use hash set to make all items unique rather than use of algorithms. Set is a ordered collection of items and contains only unique items. And Hashset creates a collection th...

How to Add items Dynamically in RecyclerView?

RecyclerView is works just like listview but more well organised, felexible to customize and optimize to work and in rendering the view of large data set. So in this tutorial we will see how to add items Dynamically in RecyclerView.   ...

Utc time to Local time conversion

If you are working on meeting schedule functionality in your android app and you are stuck with the timezone then this example can guide you. If you are getting the time, timezone from server and time is in UTC then you should not have to ap...

Show loading when load page on WebView

Here I am writing code to load url on WebView. We need to create WebView client where we get the event of page finished. Then simply showing ProgressDialog and dismiss it on onPageFinished(). WebView myWebView ; myWebView = (WebV...

Strike text of TextView in Android

When we need strike text in android most of the time we do strike text with the help of HTML tag. But Here is simple way to strike TextView's text in android with native code textView.setText("This is Strike text"); textView.setPaintFl...

Date Picker Material Design

I am writing way to add and use date Picker Material design library to our project. First of all we need to add library to our build.gradle file dependencies { compile 'com.wdullaer:materialdatetimepicker:1.5.4' } Then we need to imple...

LibPhoneNumber library implementation - An easy way to fetch phone contacts

Are you Looking for a better library that can fetch all phone contacts easily and that can manage all numbers in common formats. Then LibPhoneNumber library is a better solution because this library is faster then other handmade queries. This lib...

How to make ProgressBar function in android?

Here I have created ProgressBar app in android in which I have used setProgress(), setMessage(), setProgressStyle(),setMax,show() function. Below code example will help you to create RatingBar function in android. Step(1)-activity_main.xm...

Save Image File on Parse.com Android

Here I am getting image path from Native data Here IMAGEPATH is the path of image from Camera. ByteArrayOutputStream stream1 = new ByteArrayOutputStream(); // Compress image to lower quality scale 1 - 100 bitmap1...

Retrieve Image file from parse.com and set on ImageView android

It is very easy to retrieve image file from parse.com. For example the image file name profilePicture is save on User class and I am going to retrieve the image below. ImageView profilePic = (ImageView)findViewById(R.id.image_profile); P...

Transparent Button with Border

Here I am writing code to create transparent button with border. First create xml file transparent_button.xml for selector where I am describing the properties of button like border width, color etc <!--?xml version="1.0" encoding="utf-8...

How to make RatingBar in android ?

Here I have created RatingBar function in android. In android RatingBar can be used to get the rating from the user, it is also used for creating RatingBar. Below code example will described you how to make RatingBar function in Android. Step(...

To create database and insert data in SQLite, in android

If you are looking for the code in android to create database and insert data in SQLite then follow the steps mentioned below:- 1) Create a layout in which the data will be filled that will be inserted into database. activity_signup_form....

How to make CheckBox in android ?

Here I have created Checkbox function in android. In android CheckBox is a type of two state button either checked or unchecked. We can use checkbox to activate/deactivate the specific action. In the below code example, I have described how to ma...

How to pass value from one Activity to Another through Bundle Intent?

1)Suppose need to pass value from MainActivity to SubActivity.We will first make xml of both Activity: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android....

How to get Package information programmatically in Android

In some cases we have to get global information about application environment programmatically. We will get package name, version name, version code, application info and last updated time using the PackageInfo class which contains all of the inf...

How to change backgraund color View on select radio button in android?

Here I have created change backgraund color View app. when we select any radio button then it will change the backgraund color. In the below example i have use four radio button on diffrent colour id. You can use the below code to change backgrau...

How to make Popup function in android?

Here I have created Popup function , Popup function can be used to display menu item list, anchor text and listitem etc. In the below example when we clicked on menu button the popup will be open and if we click outside the popup it will disappea...

How to get Exact path of a photo saved in Mobile Gallery?

1)Suppose we have a Button and a TextView in XML: activity_main.xml <Button android:id="@+id/btnGet" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="GET IMAGES" /> <TextVi...

get Added accounts email from device Android

Blow code get list of Emails account from AccountManager. AccountManager manager = (AccountManager) mActivity.getSystemService(mActivity.ACCOUNT&#95;SERVICE); Account[] list = manager.getAccounts(); if (list.length &g...

Date Picker Dialog and Time Picker Dialog in Android

Android provides Date and Time Picker dialog, user can select appropriate date and time as per his need. With DatePickerDialog we can select date, month and year using Calendar class. setMaxDate(long maxDate) and setMinDate(long minDate) meth...

Customize seekbar in android

If you want to customize seekbar in Android then follow the steps mentioned below:- 1) To customize seekbar background create a new xml file in your project's drawable folder . seekbar_background.xml <?xml version="1.0" encoding="utf-...

How to make Toast with AlertDialog in android?

Here I have created Toast with alertDialog code function, according to below code both function runs in same time and display same time when we clicked listview item. In the below code I have explain how to make toast with AlertDialog function in...

Android Expandable ListView

Expandable listview is used to categorise data in some specific type. Expandable list can have a two level scrolling list. Using ChildDivider feature we divide list items with drawables or colors, and ChildIndicator & GroupIndicator is for st...

How to Search in a List using Search Button in ToolBar?

1)In your XML,make a ListView: <ListView android:id="@+id/mylist" android:layout_width="match_parent" android:layout_height="match_parent"></ListView> 2)Go to menu.xml and add a Search Button: <item an...

How to make Toast in android ?

Here I have created Toast function in android. Toast function can be used to display information or message for the very short period of time. In the below code I have explain how to make Toast function. lvList.setOnItemClickListener(new Adap...

Add items to RecyclerView at runtime

To add data to RecyclerView at runtime follow the steps mentioned below:- 1) Start a new project and add support library dependency <compile 'com.android.support:recyclerview-v7'>. 2) Declare layout for your activity(MainActiv...

How to get Latitude and Longitude On a button click using GPS?

1)Firstly in your XML,Make a Button and TextView : <Button android:id="@+id/btnMyLocation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/mylocation"/> <TextView ...

How to make AlertDialog in android ?

Here I have created AlertDialog function in android. We can use alertdialog for choice to continue or discontinue. AlertDialog can be used to display the dialog message with OK and Cancel buttons. Android AlertDialog is the subclass of Dialog cla...

How to make Spinner in android ?

Here I have created spinner function in android. Spinner can be used to display the multiple options to the user in which only one item can be selected by the user. Android spinner works like dropdown menu. In dropdown menu there will be multiple...

How to add and remove items to RecyclerView in android ?

Here I have created a RecyclerView app in android. In this app we have added item in RecyclerView and when we click on the item in RecyclerView the item will be removed. In this recycler view I have used notifyItem Inserted() and notifyItemRemove...

How to create Registration form in android ?

Here I have created a registration form in android. In my registration form i have used validation function to check inputs like email ,name,age etc. And I have also used check box , radio button and spinner function. Therefor below example will ...

How to make Fragment app in android ?

Below I have created fragment app in android. In Fragment class we can insert a fragment into our activity layout by declaring the fragment in the activity's layout file. Fragment Features- 1. Fragment has its own layout and its own behavior w...

Retrieving Objects parse.com android

Hi, After saving object Saving Object parse.com Android Now I am writing here how to retrieve object using some key here using objectId. If you have objectId then it is very easy to retrieve object value. parseObject use ParseQuery to han...

Saving Object parse.com Android

Hi, Here I am writing way to save object to the parse cloud. Parse provides ParseObject to handle to saving object. ParseObject has saveInBackground() method that need to invoke to save. Let's consider you have to save EmployeeInfo. ...

Android Parse.com Simple SignIn

Hi, Here I am writing simple way to login after creating user in parse. Tutorial for Sign Up ParseUser handles all sign in and sign up functionality. We login through logInInBackground() method of ParseUser. We need to pass username and...

How to Save Data in Android

In below example I have created a save data app code in android. In this save data we can save our data and then load the back-up. In this I have also described how to make save data. public class MainActivity extends Activity { EditTex...

How to read sms from a particular date in Android

You can create a method readSMS() as shown below where you can pass date and time to read the sms from that particular date. private void readSMS(String date, String time) { // Now create a SimpleDateFormat object. SimpleDate...

Device Art Generator

To show your screenshots of device more attractive and you want to wrap the screenshots in a particular device artwork so it is very easy. Visit here submit png screenshot. and drag your screenshot png image in the device which you want t...

Android Parse.com Simple Signup

After set up and integrate parse.com on your project the important thing is to sign up or can say create users. Parse provides facility to their users to access their information in a secure manner. ParseUser is the class that handles muc...

Clipboard Android

Android gives us the facility to copy and paste the data by providing clipboard. We can copy text, binary stream, images or other data. Android provides ClipboardManager to handle all this. We have to instantiate the object of ClipboardMana...

How to generate debug SHA1 in android

Here I write command by which we can get debug SHA1 that is use to generate debug SHA1 in android. This SHA1 further use for Google Map V2. Below is the command keytool -list -v -keystore ~/.android/debug.keystore -alias androidde...
1 11 13 14
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: