Wednesday, November 12, 2014

Install JAVA manually in UBUNTU

Installing Oracle JDK

First download the tar file of java version u required. Follow I downloaded 1.7

You will need sudo privileges to perform this task:


        sudo su



Monday, November 10, 2014

Android Overlay Chat Head



Following source will give you a movable overlay. (Like Chat head service provided by Facebook).

But in here there's no any other activities append to this and if some one need to do something like that please comment I'll provide the source for that.

For beginning create a service and include following code. So this will run as a service in you application.


Wednesday, November 5, 2014

Android Listen to Network State Change


Instagram This will help you to detect network changing states in android phone. For get an idea abut the API use for this read Followings.

Following Steps will do it. After setup the code and run the app just change your network status to flight mode and then again revert.


First we need to add required permission to read the changes of network connectivity. Insert following line in you AndroidManifest.xml file to do that.



       <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
       <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
Now you good to go with the creating of your service.
Following is the code for the service that will detect the changes of network. (You can start  this even as BroadcastReceiver) 

Get an idea about Services Vs BroadcastReceivers in android.