Nitya Raut has Published 272 Articles

How to make a txt file in external storage with runtime permission in android?

Nitya Raut

Nitya Raut

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

898 Views

This example demonstrates How to make a txt file in external storage with runtime permission 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 comparator interface for Listview in Android?

Nitya Raut

Nitya Raut

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

228 Views

This example demonstrate about How to use comparator interface 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.       ... Read More

How to use now in timestamp in Android sqlite?

Nitya Raut

Nitya Raut

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

628 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source 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 ... Read More

How to create a dynamic 2D array inside a class in C++

Nitya Raut

Nitya Raut

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

707 Views

Here it is a simple C++ program to create a dynamic 2D array inside a class to print the elements of the array.AlgorithmBegin Create a class Arr and declare size of array. Inside the class, initialize all the elements by using for loop. ... Read More

How to send data from one activity to another in Android using bundle?

Nitya Raut

Nitya Raut

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

2K+ Views

This example demonstrate about How to send data from one activity to another in Android using bundle.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 read an image file in internal storage in android?

Nitya Raut

Nitya Raut

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

3K+ Views

This example demonstrates How to read an image file in internal storage 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 fill() for Listview in Android?

Nitya Raut

Nitya Raut

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

318 Views

This example demonstrate about How to use fill() 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.         ... Read More

How to use std::sort to sort an array in C++

Nitya Raut

Nitya Raut

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

8K+ Views

In programming language, sorting is a basic function which is applied to data to arrange these data is ascending or descending data. In C++ program, there is a function std::sort() for sorting the array.sort(start address, end address)Here, Start address => The first address of the element. Last address => The ... Read More

How to use shared preference in Android between activities?

Nitya Raut

Nitya Raut

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

196 Views

This example demonstrate about How to use shared preference in Android between activities.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 send data to previous activity in Android?

Nitya Raut

Nitya Raut

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

2K+ Views

This example demonstrate about How to send data to previous activity in AndroidStep 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

Advertisements