Internet Protocol is currently in the process of moving from version 4 to version 6. This is necessitated because version 4 doesn’t provide enough addresses to handle the increasing number of devices with direct connections to the internet. An IPv4 address is composed of 32 bits, represented into four eight bit groups called as "octets". This is a "dotted decimal" format where each ei.....
The HTMLParser class defined in this module provides functionality to parse HTML and XHMTL documents. This class contains handler methods that can identify tags, data, comments and other HTML elements. We have to define a new class that inherits HTMLParser class and submit HTML text using feed() method. , We have to override its following methods , HTML tags normally are in pairs of startin.....
Performing sort operations after every insertion on a long list may be expensive in terms of time consumed by processor. The bisect module ensures that the list remains automatically sorted after insertion. For this purpose, it uses bisection algorithm. The module has following functions: This method locates insertion point for a given element in the list to maintain sorted order. If it is .....
This example demonstrate about How to Use WiFi Direct on Android Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , Step 3 − Add the following code to src/WifiDirectBroadcastReceiver , Step 4 − Add the following code to.....
This example demonstrate about How to pass large data between activities in Android Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , Step 3 − Add the following code to src/User.java , Step 4 − Add the following code t.....
This example demonstrate about How to pass data from one activity to another in Android using shared preferences Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , Step 3 − Add the following code to src/MainActivity.java , St.....
This example demonstrate about How to send data from one activity to another in Android using intent. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , Step 3 − Add the following code to src/MainActivity.java , Step 4 &minus.....
This example demonstrate about How to scan wifi networks programmatically. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , Step 3 − Add the following code to src/MainActivity.java , Step 4 − Add the following code to.....
This example demonstrate about sending message through WhatsApp in android Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , In the above code, we have taken text view. Step 3 − Add the following code to src/MainActivity.jav.....
This example demonstrate about How to use context in a fragment Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. , In the above code, we have taken two fragments. Step 3 − Add the following code to src/MainActivity.java , Ste.....
Sign up now to get your own personalized profile!
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more