Vrundesha Joshi has Published 343 Articles

How to Use WiFi Direct on Android?

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

This example demonstrate about How to Use WiFi Direct on 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.     Step 3 − ... Read More

Why C treats array parameters as pointers?

Vrundesha Joshi

Vrundesha Joshi

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

228 Views

C treats array parameter as pointers because it is less time consuming and more efficient. Though if we can pass the address of each element of the array to a function as argument but it will be more time consuming. So it’s better to pass the base address of first ... Read More

Difference between ++*p, *p++ and *++p in c++

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

In this section we will see what are the differences between *ptr++, *++ptr and ++*ptr in C++.Here we will see the precedence of postfix++ and prefix++ in C or C++. The precedence of prefix ++ or -- has higher priority than dereference operator ‘*’ and postfix ++ or -- has ... Read More

C Program to convert a number to a string

Vrundesha Joshi

Vrundesha Joshi

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

13K+ Views

In this section we will see how to convert a number (integer or float or any other numeric type data) to a string.The logic is very simple. Here we will use the sprintf() function. This function is used to print some value or line into a string, but not in ... Read More

How to check if a service is running on Android?

Vrundesha Joshi

Vrundesha Joshi

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

5K+ 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 to check if a service is running on Android.Step 1 − Create a new project ... Read More

How to select or, shift to another database in MySQL using a JDBC API?

Vrundesha Joshi

Vrundesha Joshi

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

352 Views

In general, You can change the current database in MySQL using the USE query.SyntaxUse DatabaseName;To change the current 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: ... Read More

Bisect - Array bisection algorithm in Python

Vrundesha Joshi

Vrundesha Joshi

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

457 Views

Performing sort operations after every insertion on a long list may be expensive in terms of time consumed by processor. The bisect module ensures that the list remains automatically sorted after insertion. For this purpose, it uses bisection algorithm. The module has following functions:bisect_left()This method locates insertion point for a ... Read More

How to find current Bluetooth supports Le2MPy in android?

Vrundesha Joshi

Vrundesha Joshi

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

57 Views

This example demonstrate about How to find current Bluetooth supports Le2MPy 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 clear webview history in android?

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

This example demonstrate about How to clear webview history 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

How to Create Background Service in Android?

Vrundesha Joshi

Vrundesha Joshi

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

7K+ 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 to Create Background Service in Android.Step 1 − Create a new project in Android Studio, ... Read More

Advertisements