Vrundesha Joshi has Published 343 Articles

How to use remove() in android PriorityBlockingQueue?

Vrundesha Joshi

Vrundesha Joshi

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

62 Views

Before getting into example, we should know what PriorityBlockingQueue is. It is an unbounded queue and follows same order as priority queue. The main usage of priority blocking queue is, it going to handle out of memory error.This example demonstrate about How to use remove() in android PriorityBlockingQueueStep 1 − ... Read More

How to use NOT NULL constraints in Android sqlite?

Vrundesha Joshi

Vrundesha Joshi

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

213 Views

Before getting into 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

Android stop specified IntentService?

Vrundesha Joshi

Vrundesha Joshi

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

478 Views

Before getting into the example, we should know what Intent service is in android. Intent Service is going to do background operation asynchronously. When user call startService() from activity, it doesn’t create the instance for each request and it going to stop service after done some action in service class ... Read More

fork() in C

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

In this section we will see what is the fork system call in C. This fork system call is used to create a new process. This newly created process is known as child process. The current process which is creating another child process is called the parent process.A child process ... Read More

How to use removeFirst() in android ConcurrentLinkedDeque?

Vrundesha Joshi

Vrundesha Joshi

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

77 Views

Before getting into the 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 removeFirst() in android ConcurrentLinkedDequeStep 1 − Create a new project in Android Studio, go to File ⇒ ... Read More

How to enable webview database of url in android?

Vrundesha Joshi

Vrundesha Joshi

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

413 Views

This example demonstrate about How to enable webview database of url 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

Case-insensitive string comparison in C++

Vrundesha Joshi

Vrundesha Joshi

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

7K+ Views

In C++ we have strings in standard library. In this program we will see how to check whether two strings are identical or not. In this case we will ignore the case.Here the logic is simple. We will convert the whole string into lowercase or uppercase strings, then compare them, ... Read More

C++ Program to Implement Deque in STL

Vrundesha Joshi

Vrundesha Joshi

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

333 Views

Double Ended Queue is a Queue data structure in which the insertion and deletion operations are performed at both the ends (front and rear). Data can be inserted at both front and rear positions and can be deleted from both front and rear positions.AlgorithmBegin Declare deque vector ... Read More

How to execute zombie and orphan process in a single C program?

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

In this section we will see how to execute zombie process and orphan process in a single program in C/C++. Before going to the main discussion, let us see what are the zombie process and orphan process.Zombie ProcessesA zombie process is a process whose execution is completed but it still ... Read More

C++ Program to Implement Forward_List in STL

Vrundesha Joshi

Vrundesha Joshi

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

168 Views

Forward list in STL implements singly linked list. List is different by forward_list that list keeps track to both next and previous elements.While forward list keeps track of location of only next elements, thus increasing the storage space required to store each element. The disadvantage of forward_list is that is ... Read More

Advertisements