Found 1966 Articles for Apps/Applications

How to insert element to arraylist for listview in Android?

karthikeya Boyini
Updated on 29-Jun-2020 15:53:41

2K+ Views

This example demonstrate about How to insert element to arraylist for listview in AndroidStep 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 name as Edit text, when user click on save button it will store the data into arraylist. Click on refresh button to get the changes of listview.Step 3 − Add ... Read More

How to delete element from linked list for listview in Android?

Samual Sam
Updated on 29-Jun-2020 15:52:32

401 Views

This example demonstrate about How to delete element from linked list for listview in AndroidStep 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 name as Edit text, when user click on save button it will store the data into arraylist. Click on delete button to delete the ... Read More

How to delete element from arraylist for listview in Android?

karthikeya Boyini
Updated on 29-Jun-2020 15:51:47

2K+ Views

This example demonstrate about How to delete element from arraylist for listview in AndroidStep 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 name as Edit text, when user click on save button it will store the data into arraylist. Click on delete button to delete the record ... Read More

How to delete all elements from linked list for listview in Android?

Samual Sam
Updated on 29-Jun-2020 15:50:38

80 Views

This example demonstrate about How to delete all elements from linked list for listview in AndroidStep 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 name as Edit text, when user click on save button it will store the data into arraylist. Click on ... Read More

How to delete all elements from arraylist for listview in Android?

karthikeya Boyini
Updated on 29-Jun-2020 15:48:40

1K+ Views

This example demonstrate about How to delete all elements from arraylist for listview in AndroidStep 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 name as Edit text, when user click on save button it will store the data into arraylist. Click on delete ... Read More

How to append data from priority queue to arraylist for listview in Android?

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

121 Views

This example demonstrate about How to append data from priority queue to arraylist for listview in AndroidStep 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 name as Edit text, when user click on save button it will store the data into arraylist. Click on refresh button to get the changes of ... Read More

How to use thread.getName() and thread.setName() in android?

Nishtha Thakur
Updated on 29-Jun-2020 14:58:25

230 Views

Before getting into example, we should know what thread is. A thread is a lightweight sub-process, it going to do back ground operations without interrupt to ui. This example demonstrate about How to use thread.getName() and thread.setName() 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 edit text and text view. When user enter some text into edit text, it ... Read More

How to use set the priority for a thread in android?

Anvi Jain
Updated on 29-Jun-2020 14:57:41

588 Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do background operations without interrupt to ui. This example demonstrate about How to use set the priority for a thread 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 edittext and textview. When user enter some text into edittext, it ... Read More

How to use multiple threads in android?

Smita Kapse
Updated on 29-Jun-2020 14:57:05

3K+ Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do background operations without interrupt to ui. This example demonstrate about How to use multiple threads 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 edittext and textview. When user enter some text into edittext, it going to ... Read More

How to use thread.sleep() in android?

Nishtha Thakur
Updated on 29-Jun-2020 14:56:28

4K+ Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do background operations without interrupt to ui. This example demonstrate about How to use thread.sleep() 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 edittext and textview. When user enter some text into edittext, it going to wait till 5000ms ... Read More

Advertisements