Today I will write a simple app for you that utilizes the step counter. This is a sample app same like the pedometer app which will register the sensor events when it starts, and update the UI with the latest step count whenever a new event is detected by the app. The code will specify SensorManager.SENSOR_DELAY_NORMAL as the update […]

Continue reading

Currying can be a difficult concept to grasp. Let’s start with a simple example. That’s easy and straightforward sum function. If we just look at type of function sum, we can see that it has a type of (Int, Int) -> Int. So it takes 2 parameters of the type Int, and returns an Int. […]

Continue reading

Today I will be going to explain how to add search functionality in list view. The android ListView contains many features that make ListView a powerful tool. Let’s see the steps on how to perform search operation on Array and redraw the ListView. Step 1) Create a new project in android IDE. Write the following code […]

Continue reading

This blog post will give you an introduction to Android Application Components and detailed description on one of the component i.e. Activity Basically we have five major components that are used to build a application in android. These components are defined as Objects in Android SDK with some methods which can be used by an […]

Continue reading

This example will explain how to check if Bluetooth is supported in running device and whether its ON or OFF. In the example below we will call startActivityForResult() with Intent of BluetoothAdapter.ACTION_REQUEST_ENABLE, when user click button to enable it. Then we will re-check the status again in onActivityResult() when result returned. Follow the steps below to create […]

Continue reading

Let’s start creating a new project in Xcode. We will start with Single View Application Template. In Xcode go File->New-Project in the menu and choose a Single View Application template.   Fill in Product Name. Then choose where your Xcode project will be stored. Now in ViewController.swift class change base class from UIViewController to UITableViewController. […]

Continue reading

In this tutorial, I will show you how to use the ZXing Library to implement barcode scanning within an Android app. We will use the resources of this open source library in our app, and retrieve and process the results returned by the Library. I you don’t have any barcode scanner app installed on your […]

Continue reading

Enabling the user to access and consume content of the device(such as mobiles or tablets etc) is an essential use of smartphones nowadays. Especially when it comes to “video” it becomes an important and most common usage of the device. Android includes two classes which are responsible for the implementation of video playback on Android devices. These classes […]

Continue reading

Let’s start creating new project in Xcode. We well start with Single View Application Template. In Xcode go File->New-Project in menu and choose Single View Application template. Fill in Product Name. Then choose where your Xcode project will be stored. Now in ViewController.swift class change base class from UIViewController to UITableViewController. In Main.storyboard remove existing […]

Continue reading
1 2 3 64