Vrundesha Joshi has Published 289 Articles

How to get current Wi-Fi BSSID in android?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

2K+ Views

This example demonstrate about How to get current Wi-Fi BSSID 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. ... Read More

How to create a function in a database using JDBC API?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

1K+ Views

Like procedures, you can also create function in a database and store them.SyntaxFollowing is the syntax of creating a function in a(MySQL) database:CREATE FUNCTION Function_Name(input_arguments) RETURNS output_parameter BEGIN declare variables; statements . . . . . . . . . . ... Read More

How to use size() in android LinkedBlockingDeque?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

101 Views

Before getting into the example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to a constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

How to use size() in android ConcurrentLinkedQueue?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

94 Views

Before getting into the example, we should know what ConcurrentLinkedQueue is, it is an unbounded queue based on linked nodes. Multiple threads can access queue elements with safety. Elements travel based on queue strategy as FIFO and elements going to insert from a tail. It does not allow null values.This ... Read More

How to load webview from cache in android?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

1K+ Views

This example demonstrate about How to load webview from cache 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 ... Read More

How to use take() in android ArrayBlockingQueue?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

119 Views

Before getting into the example, we should know what arrayblockingqueue is, it travels FIFO manner and the first element going to live the longest period of time and last element of the queue going to live a short period of the time.This example demonstrates about How to use take() in ... Read More

Android Recyclerview GridLayoutManager column spacing

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

3K+ Views

This example demonstrates about Android Recyclerview GridLayoutManager column spacingStep 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.             ... Read More

How to get the row count in JDBC?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

7K+ Views

The SQL Count() function returns the number of rows in a table. Using this you can get the number of rows in a table.select count(*) from TABLE_NAME;Suppose we have established a connection with MySQL and created a table in the database named mydatabase using Statement object as://Creating the Statement object ... Read More

Difference between Parcelable and Serializable in android

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

4K+ Views

This example demonstrates about Difference between Parcel able and Serializable in androidSerializableSerializable is a markable interface or we can call as an empty interface. It doesn’t have any pre-implemented methods. Serializable is going to convert an object to byte stream. So the user can pass the data between one activity ... Read More

How to get root directory information in android?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

3K+ Views

This example demonstrate about How to get root directory information 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. ... Read More

Advertisements