Lab

Laboratory For Innovators

Rss

Java Collection API (About List,Set and Map)

Java Collection API (About List,Set and Map) This document will only focus on List Set and Map difference and Tree and Map difference. Difference between List and Set (Both are interface): There is only two main difference between list and set 1) List does accept duplicate value (Data), Set does not accept duplicate value (Data). […]

Share

Android Enable Disable HotSpot Programmatically

This is an example of how to enable disable Hotspot programmatically. NOTE: Before enable hotspot you need to turn off Wifi. Check How to enable disable wifi in android Following method will enable disable hotspot. Following permission require : android.permission.ACCESS_WIFI_STATE android.permission.CHANGE_WIFI_STATE android.permission.ACCESS_NETWORK_STATE But to run this method you need WifiApControl.java WifiApControl.java

Share

Android Network Utility

This is custom utility. It is very helpful to handle enable disable things for hardware like Bluetooth,Wifi and Hotspot. You can also identify how many number of device connected with your HotSpot. This utility have following most important methods : 1) Check Is phone connected to internet public static boolean isConnectedToNetwork(Context context); 2) Check Is […]

Share

Android Enable Disable Bluetooth Programmatically

This is a example of how to turn on off Bluetooth programmatically. Require following permission : android.permission.BLUETOOTH android.permission.BLUETOOTH_ADMIN

Share

Android Enable Disable Wifi Programmatically

To turn on off wifi programmatically you need to add following permissions. android.permission.INTERNET android.permission.ACCESS_NETWORK_STATE android.permission.ACCESS_WIFI_STATE android.permission.CHANGE_WIFI_STATE

Share

Android check network connection available using wifi

This is small example to check whether or not android device connected with internet using Wifi. Following permissions require : android.permission.INTERNET android.permission.ACCESS_NETWORK_STATE Following code will check whether or not device connected with internet using wifi :

Share

Android check internet connection

This is small example to check whether or not android device connected with internet. Following permissions require : android.permission.INTERNET android.permission.ACCESS_NETWORK_STATE Following code will check internet connection :

Share

Socket programming in java

This is example of Java Socket. Here I created small chat application to explain Socket programming in java Find below class work as Server Find below class work as Client Here in both example we are using Two threads : 1. ReaderThread : To read value from InputStream 2. WriterThread : To write value to […]

Share

MenuBar not working for eclipse in Ubuntu

MenuBar not working for eclipse in Ubuntu I upgrade my ubuntu from 13.04 to 13.10 but in 13.10 eclipse menubar is not working properly. In Unity there is one flag : UBUNTU_MENUPROXY, This is environment variable in ubuntu. Default value of this flag is 1. Check default value in your PC by typing below command […]

Share

, ,

requireJs tutorial

require.js It loads your all JavaScript files. Download require.js from ( https://github.com/jrburke/requirejs ). Find project structure for this example : Code in myapi.js Code in myutil.js Code in app.js Code in main.js Code in index.html Here index.html contains script tag with attribute data-main It contains name of js file that load by require.js Note: Here […]

Share

Previous Posts