Found 1631 Articles for Android

How to use Android sequence layout?

George John
Updated on 30-Jul-2019 22:30:24

386 Views

Before getting into android sequence layout, we should know what is sequence layout in android. Sequence layout contains a sequence of steps with the progress bar. According to sequence, it follows an animated progress bar.This example demonstrates How to use Android sequence layout.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 − Open build.gradle(app) and add design support library dependency.apply plugin: 'com.android.application' android {    compileSdkVersion 28    defaultConfig {       applicationId "com.example.andy.myapplication"       minSdkVersion 19     ... Read More

How to check edit text's text is email address or not in Android?

Chandu yadav
Updated on 30-Jul-2019 22:30:24

192 Views

Before getting into an example, we should know the test scenario. In the login page, usually, we take email id and password from edit text. While taking email id from edit text. we should know, it is the valid format or not.This example demonstrates how to check the edit text's text is an email address or not.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 layout, we ... Read More

How do I use tabHost for Android?

Arjun Thakur
Updated on 30-Jul-2019 22:30:24

458 Views

Before getting into example we should know what is tab host in android. Tab host holds set of tabs. Each tab contains either fragment or activity as per project specification. The user can scroll tabs from left to right or right to left.This example demonstrates how to use tab host 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

What are intent-filters in Android?

George John
Updated on 30-Jun-2020 05:29:17

4K+ Views

An intent filter is an instance of the IntentFilter class. Intent filters are helpful while using implicit intents, It is not going to handle in java code, we have to set it up in AndroidManifest.xml. Android must know what kind of intent it is launching so intent filters give the information to android about intent and actions.Before launching intent, android going to do action test, category test and data test. This example demonstrate about how to use intent filters in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required ... Read More

How to set Adapter to Auto Complete Text view?

Ankith Reddy
Updated on 30-Jul-2019 22:30:24

1K+ Views

 Before getting into an example, we should know what is autocomplete textview in android. Autocomplete textview is just like an edit text and it is a subclass of editext, but it is going to show suggestion from a list as a dropdown list. We have to set up Threshold value to auto-complete text view. for example, we have set it up Threshold as 1 so if user enters one letter is going to give suggestion according to Threshold letter.This example demonstrates about how to set up an adapter to auto-complete Textview.Step 1 − Create a new project in Android Studio, ... Read More

How to convert ArrayList to String using GSON?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:24

2K+ Views

GSON is java library, It is used to convert OBJECT to JSON and JSON to Object. Internally it going to work based on serialization and de- serialization.This example demonstrate about how to convert ArrayList to string using GSON library.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 in build.gradle.apply plugin: 'com.android.application' android {    compileSdkVersion 28    defaultConfig {       applicationId "com.example.andy.myapplication"       minSdkVersion 15       targetSdkVersion 28       ... Read More

What are the specifications of one plus 5?

Shanmukh Pasumarthy
Updated on 26-Jun-2020 10:19:10

65 Views

OnePlus started in 2013 with its first phone OnePlus 1. It was founded by Pete Lau (CEO) and Carl Pei. It was a hit and the brand has become popular with the release of its next phone OnePlus 2. Later came the OnePlus 3 and 3T which shook the market with their 6 GB RAM.It has some unique and enhanced features due to which it has become an instant hit.CameraPicture Mode − Double camera innovation gives you a chance to concentrate regarding your matter, dynamically blurring the background for a delicate, yet a powerful effect.Keen Capture − Its insightful software ... Read More

What are the specifications of one plus 3T phone?

Shanmukh Pasumarthy
Updated on 26-Jun-2020 10:21:02

53 Views

OnePlus started in 2013 with its first phone is OnePlus 1. It was founded by Pete Lau (CEO) and Carl Pei. It was a hit and the brand has become popular with the release of its next phone OnePlus 2. Later came the OnePlus 3 and 3T which shook the market with their 6 GB RAM.It has some unique and enhanced features due to which it has become an instant hit.DesignStyle Built to Last − The OnePlus 3T challenges present-day cell phones style with its all-metal form and strong Gunmetal shading. Carefully built utilizing a superior space-review aluminium compound, the ... Read More

How to save ArrayList to SharedPreferences on Android?

Nancy Den
Updated on 27-Jun-2020 13:43:48

4K+ Views

Before getting into shared preference to store arraylist example , we should know what is shared preferences in android. Using share preference, we can store or retrieve values as key and value pair. There are five different methods are available in share preference as shown below −Edit() − It going to edit shared preference valuescommit() − it going to commit shared preference values in xml fileapply() − It going to commit back changes from editor to shared preference.remove(String key) − It going to remove key and vales from shared preference use key.Put() − It going to put key and values ... Read More

How to explain Android Shared preferences with example?

Nishtha Thakur
Updated on 27-Jun-2020 07:31:58

277 Views

Using share preference, we can store or retrieve values as key and value pair. There are five different methods are available in share preference as shown below −Edit() − It going to edit shared preference valuescommit() − it going to commit shared preference values in xml fileapply() − It going to commit back changes from editor to shared preference.remove(String key) − It going to remove key and vales from shared preference use key.Put() − It going to put key and values to shared preference xml.A sample example syntax of shared preference as shown below −final SharedPreferences sharedPreferences = getSharedPreferences("USER", MODE_PRIVATE);In ... Read More

Advertisements