Complex JSON String parsing in ANDROID
Hello all….. In the previous post I have shown you how to parse a Simple JSON String in ANDROID. In today’s tutorial I will show you how to parse a complex JSON String. Take a look at the example Here...
View ArticleGet All Details from Contacts in ANDROID.
Hi all.. In today’s post I will show you how to get all information from the ANDROID Contacts programatically. Just copy and paste this code to your mail java file and check the Logcat for output....
View ArticleHow to read Logcat contents programmatically in Android?
This is an example to read Logcat contents programmatically in Android. Normal developers won’t need this, but still it is a good thing to know how to do it. package pack.coderzheaven; import...
View ArticleHow to get the current progress on your SeekBar in android?
I have already shown how to use seekBar in android. This simple snippet helps you to get the current progress in the seekbar. It’s same code from this post, only thing is I added the getProgress...
View ArticleHow to create a MD5 hash of a word in android?
This is one of the most useful things in android. We can use the MD5 algorithm to create a hash of any string we want. Here is the code for doing that. Check the LogCat for output. package...
View ArticleHow to encrypt a string in Android Using Base64?
package com.coderzheaven.encryptstring; import android.annotation.SuppressLint; import android.app.Activity; import android.content.SharedPreferences; import android.os.Bundle; import...
View ArticleHow to Sort a String array in Android.
Hello all…. This is a simple example showing how to sort a string array which is a arraylist in android. we sort the array using the “Collections” class in android. Here is a simple example package...
View ArticleJSON IN ANDROID.
Complex JSON String parsing in ANDROID http://www.coderzheaven.com/2011/06/10/complex-json-string-parsing-in-android/ Parsing JSON Object in ANDROID....
View ArticleHow to read a serialized object from a file in the raw folder in android?
In my previous post I showed how to serialize an object and save it in sdcard in a file and retrieve it. Pull out the file from the sdcard and then create a folder named “raw” inside the “res” folder...
View ArticleHow to get all email addresses associated with an android device?
This is a simple code. Check out this. Pattern emailPattern = Patterns.EMAIL_ADDRESS; // API level 8+ Account[] accounts = AccountManager.get(context).getAccounts(); for (Account account : accounts) {...
View Article
More Pages to Explore .....