Android Session Management Using SharedPreferences

Here you will get an example of android session management using SharedPreferences. If you don’t know about SharedPreferences then read my previous tutorial: Android SharedPreferences Example In this tutorial you will learn how to manage login session of user. The whole process works like this: When user enters correct username and password then the login details… Read More »

Perfect Number in C

Here you will get program for perfect number in C. Perfect number is a positive number which is equal to the sum of all its divisors excluding itself. For example: 28 is a perfect number as 1 + 2 + 4 + 7 + 14 = 28. 15 is not perfect number as 1 +… Read More »

AJAX with JSP Using jQuery Example

Here you will get an example of AJAX with JSP using jQuery. AJAX is used for sending and receiving data from server without reloading the page. We can implement AJAX easily using jQuery. It provides various methods for AJAX functionality. I have created this example using Eclipse IDE. Below I have shared detailed steps for… Read More »

Save and Retrieve Image from MySql Database Using Java

Here you will get an example for save and retrieve image from MySql database using Java. In development we generally use folders for managing images. But we can store images directly in database using BLOB (Binary Large Object) data type. MySql has following blob types: TINYBLOB: 255 bytes BLOB: 64 KB MEDIUMBLOB: 16 MB LONGBLOB:… Read More »

Android Simple ListView with Search Functionality Example

Here you will get android simple listview with search functionality example. Adding search functionality in listview helps users to find information in easy way. When user writes something in the textbox, the items in the list is filtered and an updated list of items is displayed. Below example shows you how to implement this.  … Read More »

Android SharedPreferences Example

Here you will get android SharedPreferences example. SharedPreferences in android is used to save data which is available across entire application and the data persists even after the application is closed. It is widely used for session management in android applications. SharedPreferences uses key-value pair to save and retrieve data.   Save Data First of… Read More »

Strong Number in C

Here you will get program for strong number in C. What is Strong Number? A number in which the sum of factorial of individual digits is equal to the number is called strong number. For example, 145 is a strong number because 145=(!1)+(!4)+(!5)=1+24+120=145 The below C program will check whether a given number in strong… Read More »

Android Check Internet Connection Tutorial

This is android check internet connection tutorial. When we perform any network related operation like making HTTP request, then it is good to check internet or network connectivity. A device can have different types of networks like Wi-Fi or mobile network. In android we can check internet connectivity using ConnectivityManager class. First we need to… Read More »