Jennifer Nicholas has Published 291 Articles

How to update listview after insert values in Android sqlite?

Jennifer Nicholas

Jennifer Nicholas

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

891 Views

Before getting into an example, we should know what SQLite database in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built-in SQLite database implementation. SQLite supports all the relational database features. In order to access this ... Read More

How to find device is in airplane mode or not in android?

Jennifer Nicholas

Jennifer Nicholas

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

202 Views

This example demonstrates How to find the device is in airplane mode or not 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 use removeAll() in android CopyOnWriteArraySet?

Jennifer Nicholas

Jennifer Nicholas

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

126 Views

Before getting into an example, we should know what CopyOnWriteArraySet is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array.This example demonstrates about How to use removeAll() in android CopyOnWriteArraySetStep 1 − Create a new project ... Read More

How to find device power is connected in android?

Jennifer Nicholas

Jennifer Nicholas

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

413 Views

This example demonstrates How to find device power is connected 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 is Android background music service?

Jennifer Nicholas

Jennifer Nicholas

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

2K+ Views

What is Android background music service?Before getting into an example, we should know what service is in android. Service is going to do background operation without interacting with UI and it works even after activity destroy.This example demonstrates what is Android background music service.Step 1 − Create a new project ... Read More

Binary Search functions in C++ STL

Jennifer Nicholas

Jennifer Nicholas

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

1K+ Views

Binary search is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the sorted array. The time complexity of binary search is O(1). This is a C++ program in which we implement various. ... Read More

How to use UNIQUE constraints in Android sqlite?

Jennifer Nicholas

Jennifer Nicholas

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

655 Views

Before getting into an example, we should know what SQLite database in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built-in SQLite database implementation. SQLite supports all the relational database features. In order to access this ... Read More

How to get Wi-Fi connected state in android?

Jennifer Nicholas

Jennifer Nicholas

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

590 Views

This example demonstrates How to get Wi-Fi connected state 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 ... Read More

Database Connectivity using C/C++

Jennifer Nicholas

Jennifer Nicholas

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

4K+ Views

In this section, you will learn how to use SQLite in C/C++ programs.InstallationBefore you start using SQLite in our C/C++ programs, you need to make sure that you have SQLite library set up on the machine. You can check the SQLite Installation chapter to understand the installation process.C/C++ Interface APIsFollowing ... Read More

How to use removeFirstOccurrence() in android ConcurrentLinkedDeque?

Jennifer Nicholas

Jennifer Nicholas

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

105 Views

Before getting into an example, we should know what ConcurrentLinkedDeque is, it is unbounded deque based on linked nodes. Multiple threads can access deque elements with safety.This example demonstrates about How to use removeFirstOccurrence () in android ConcurrentLinkedDequeStep 1 − Create a new project in Android Studio, go to File ... Read More

Advertisements