Jennifer Nicholas has Published 329 Articles

Sending and Receiving Data with Sockets in android

Jennifer Nicholas

Jennifer Nicholas

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

18K+ Views

This example demonstrate about Sending and Receiving Data with Sockets in androidNeed Server and Client ProjectServerStep 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 get top activity name in activity stack?

Jennifer Nicholas

Jennifer Nicholas

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

2K+ Views

This example demonstrate about How to get top activity name in activity stack.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 can I create an android service that dalvik will not kill?

Jennifer Nicholas

Jennifer Nicholas

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

301 Views

Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroy.This example demonstrate about How can I create an android service that dalvik will not kill.Step 1 − Create a ... Read More

Short hand array notation in C/C++

Jennifer Nicholas

Jennifer Nicholas

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

337 Views

If there are repeated values are present in C then we use shorthand array notation to define that array.Here is an example:Example Code#include int main() { int array[10] = {[0 ... 3]7, [4 ... 5]6, [6 ... 9]2}; for (int i = 0; ... Read More

C++ Program to Check the Connectivity of Undirected Graph Using DFS

Jennifer Nicholas

Jennifer Nicholas

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

3K+ Views

To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected.For the undirected graph, we will select one node and traverse from it.In this case ... Read More

How to disable Bluetooth in android?

Jennifer Nicholas

Jennifer Nicholas

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

470 Views

This example demonstrates How to disable Bluetooth 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 the above ... Read More

How to create a database in MySQL using a JDBC API?

Jennifer Nicholas

Jennifer Nicholas

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

2K+ Views

A. In general, you can create a database using the CREATE DATABASE query.SyntaxCREATE DATABASE DatabaseName;To create a Database using JDBC API you need to:Register the driver: Register the driver class using the registerDriver() method of the DriverManager class. Pass the driver class name to it, as parameter.Establish a connection: Connect ... Read More

Array — Efficient arrays of numeric values in Python

Jennifer Nicholas

Jennifer Nicholas

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

209 Views

Array is a very popular data structure in C/C++, Java etc. In these languages array is defined as a collection of more than one elements of similar data type. Python doesn't have any built-in equivalent of array. It's List as well as Tuple is a collection of elements but they ... Read More

How to enable Bluetooth in android?

Jennifer Nicholas

Jennifer Nicholas

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

352 Views

This example demonstrates How to enable Bluetooth 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 the above ... Read More

How to get android application version name?

Jennifer Nicholas

Jennifer Nicholas

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

3K+ Views

This example demonstrate about How to get android application version name.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

Advertisements