- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2041 Articles for Mobile Development
2K+ Views
This example demonstrates how to create a WebView in an Android App using Kotlin.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.Example Step 3 − Add the following dependency to build.gradle(Module:app)implementation 'com.squareup.picasso:picasso:2.5.2'Step 4 − Add the following code to src/MainActivity.ktExampleimport android.os.Bundle import android.widget.ImageView import androidx.appcompat.app.AppCompatActivity import com.squareup.picasso.Picasso class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) ... Read More
1K+ Views
This example demonstrates how to create a WebView in an Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Example Step 3 − Add the following code to src/MainActivity.ktExampleimport android.os.Bundle import android.webkit.WebView import android.webkit.WebViewClient import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { private val webView: WebView? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) title = "KotlinApp" val webView = findViewById(R.id.webView) ... Read More
1K+ Views
This example demonstrates how to Create a listView with a checkBox in Kotlin.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.Example Step 3 − Add the following code to src/MainActivity.ktExampleimport android.view.View import android.widget.AdapterView.OnItemClickListener import android.widget.ListView import androidx.appcompat.app.AppCompatActivity import java.util.* class MainActivity : AppCompatActivity() { private var dataModel: ArrayList? = null private lateinit var listView: ListView private lateinit var adapter: CustomAdapter override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ... Read More
3K+ Views
This example demonstrates how to Add and Remove Views in Android Dynamically in Kotlin.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.Example Step 3 − Add the following code to src/MainActivity.ktExampleimport android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.widget.LinearLayout import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { private var parentLinearLayout: LinearLayout? = null ... Read More
1K+ Views
This example demonstrates how to set the Android wallpaper image programmatically in Kotlin.Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Example Step 3 − Add the following code to src/MainActivity.ktExampleimport android.graphics.Bitmap import android.graphics.BitmapFactory import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.Toast class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) title = "KotlinApp" } fun setWallpaper(view: View) { val bitmap: Bitmap ... Read More
6K+ Views
Bluetooth is a network technology that connects mobile devices wirelessly over a short-range to form a personal area network (PAN). They use short-wavelength, ultra-high frequency (UHF) radio waves within the range 2.400 to 2.485 GHz, instead of RS-232 data cables of wired PANs.Features of BluetoothBluetooth technology was released in 1999 as Bluetooth 1.0, by Special Interest Group (SIG) who continues to manage it.It was initially standardized as IEEE 802.15.1.Mobile computing devices and accessories are connected wirelessly by Bluetooth using short-range, low-power, inexpensive radios.UHF radio waves within the range of 2.400 to 2.485 GHz are using for data communications.A PAN or ... Read More
6K+ Views
A piconet is a small Bluetooth network that connects mobile devices wirelessly over a short range of 10m radius, using ultra-high frequency (UHF) radio waves, to form a personal area network (PAN).A piconet can be formed by at most 8 stations, one of which is the master node and the rest slave nodes. Thus, it can accommodate a maximum of 7 slaves. The master node is the primary station that manages the small network. The slave stations are secondary stations that are synchronized with the primary station.Communication can take place between a master node and a slave node in either ... Read More
4K+ Views
A scatternet is a type of Bluetooth network that is formed by the interconnection between two or more individual Bluetooth networks, called piconets. The devices in the scattered should be Bluetooth enabled so that they can communicate wirelessly over a short range of within 10m radius using ultra-high frequency (UHF) radio waves.In a scatternet, there must be at least two piconets. The nodes in a scatternet may be of three types −Master Node − It is the primary station in each piconet that controls the communication within that piconet.Slave Node − A slave is a secondary station in a piconet ... Read More
40K+ Views
Bluetooth is a network technology that connects mobile devices wirelessly over a short range to form a personal area network (PAN). They use short-wavelength, ultra-high frequency (UHF) radio waves within the range 2.400 to 2.485 GHz, instead of RS-232 data cables of wired PANs.There are two types of Bluetooth networks −PiconetsScatternetsPiconetsPiconets are small Bluetooth networks, formed by at most 8 stations, one of which is the master node and the rest slave nodes (maximum of 7 slaves). Master node is the primary station that manages the small network. The slave stations are secondary stations that are synchronized with the primary ... Read More
4K+ Views
This example demonstrates how to use ArrayAdapter in android to create a simple listview in Kotlin.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 MainActivity.ktimport android.os.Bundle import android.widget.ArrayAdapter import android.widget.ListView import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) title = "KotlinApp" val arrayAdapter: ArrayAdapter ... Read More