Jennifer Nicholas has Published 291 Articles

How to get programmatically android device broad name?

Jennifer Nicholas

Jennifer Nicholas

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

296 Views

This example demonstrates How to get programmatically android device broad 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

How to do reverse of string in Android?

Jennifer Nicholas

Jennifer Nicholas

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

1K+ Views

This example demonstrates How to do reverse of string 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

How to use cardview in recyclerview?

Jennifer Nicholas

Jennifer Nicholas

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

471 Views

This example demonstrates about How to use cardview in recyclerviewStep 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 findViewById in Fragment?

Jennifer Nicholas

Jennifer Nicholas

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

5K+ Views

This example demonstrate about How to use findViewById in FragmentStep 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 Android Media Player Singleton?

Jennifer Nicholas

Jennifer Nicholas

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

470 Views

Before getting into an example, we should know what singleton design pattern is.  A singleton is a design pattern that restricts the instantiation of a class to only one instance. Notable uses include controlling concurrency and creating a central point of access for an application to access its data store.This ... Read More

Detection of a specific color(blue here) using OpenCV with Python?

Jennifer Nicholas

Jennifer Nicholas

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

2K+ Views

For many people, image processing may seem like a scary and daunting task but it is not as hard as many people thought it is. In this tutorial we’ll be doing basic color detection in openCv with python.How does color work on a computer?We represent colors on a computers by ... Read More

How to add action icon in android?

Jennifer Nicholas

Jennifer Nicholas

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

443 Views

This example demonstrates how to add an action icon 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 use handler in android?

Jennifer Nicholas

Jennifer Nicholas

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

919 Views

This example demonstrate about How to use handler 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.     In the above code, ... Read More

Timeit in Python with Examples?

Jennifer Nicholas

Jennifer Nicholas

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

416 Views

Python provides many ways to measure the time of execution for a piece of python code. One way is to use the python inbuilt time module and save the time before and after the execution of the program?Python timeitWhen some program is running, many processes also run in the background ... Read More

Any & All in Python?

Jennifer Nicholas

Jennifer Nicholas

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

986 Views

Python provides two built-ins functions for “AND” and “OR” operations are All and Any functions.Python any() functionThe any() function returns True if any item in an iterable are true, otherwise it returns False. However, if the iterable object is empty, the any () function will return False.Syntaxany(iterable)The iterable object can ... Read More

Advertisements