Apps/Applications Articles

Page 119 of 148

How to use synchronizedSet in Android?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 272 Views

This example demonstrate about How to use synchronizedSet 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 name and record number 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 ...

Read More

How to use unmodifiableSet in Android?

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 240 Views

This example demonstrate about How to use unmodifiableSet 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 name and record number 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 ...

Read More

How to use vector class in Android listview?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 365 Views

This example demonstrate about How to use vector class in Android listviewStep 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 the name and record number as Edit text, when user clicks on save button it will store the data into ArrayList. Click on ...

Read More

How to add header item for Listview in Android?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 3K+ Views

This example demonstrates How to add header item for Listview 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 the name and record number as Edit text, when the user clicks on the save button it will store the data into ArrayList. Click on ...

Read More

How to add multiple copies in arrylist for Listview in Android?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 256 Views

This example demonstrates How to add multiple copies in arrylist for Listview 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 name and record number as Edit text, when user click on save button it will store the data into arraylist. Click on ...

Read More

How to add string and other data types for Listview in Android?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 821 Views

This example demonstrates How to add string and other data types for Listview 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 name and record number as Edit text, when user click on save button it will store the data into arraylist. Click on refresh ...

Read More

How to binarySearch in android listview?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 443 Views

This example demonstrates How to binarySearch in android listview.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 name and record number as Edit text, when user click on save button it will store the data into arraylist. Click on refresh button to get ...

Read More

How to check arraylist is empty for Listview in Android?

Nitya Raut
Nitya Raut
Updated on 30-Jul-2019 491 Views

This example demonstrates How to check arraylist is empty for Listview 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 name and record number as Edit text, when user click on save button it will store the data into ...

Read More

How to convert array to arraylist in android?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 978 Views

This example demonstrates How to convert array to arraylist 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 name and record number as Edit text, when user click on save button it will store the data into arraylist. Click on refresh button ...

Read More

How to Count Occurrences of Each Character in String in Android?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 669 Views

This example demonstrates How to Count Occurrences of Each Character in String 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 name when user click on button, it will check occurrence of letter in string and gives result in textview.Step 3 − Add the following code to ...

Read More
Showing 1181–1190 of 1,475 articles
« Prev 1 117 118 119 120 121 148 Next »
Advertisements