Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to communication between an Activity and Fragments in android

In the below example I have created a commuication between an activity and fragments classes. In the below example user enters name in SendFragment part and click submit button then in second fragment on displayFragment show user name input result.

How to convert a hexadecimal file into a readable file in android.

Below is the code to change hexadecimal file to readable format :- 1) Read the Hexadecimal file. 2) Convert the Hexadecimal code to asciii value. 3) Convert the asciii value to readable char format. int size=15; char[] mChangedFileCharArray = ne

Dynamic DataBinding In Android

This Blog simply illustrate how to use dynamic data binding in android Tired of writing same code again and again for finding views and setting data into it ? here is a simple solution which will now reduce the developer's effort for doing same

How to request permissions in Android marshmallow at run-time ?

Android Marshmallow i.e. API level 23 divided the permissions into two type :- Normal permissions those permissions which do not risk user privacy . If your app lists a normal permission in its manifest, the system grants the permission automatical

Count Steps in Android

We can count steps in Android by using two sensors i.e. TYPE_STEP_COUNTER and TYPE_STEP_DETECTOR. These two sensors were introduced in API level 19. TYPE_STEP_COUNTER:- This sensor returns number of steps taken by the user since last rebo

How to write a test case using Robotium in android

Today we are going to learn something about J-Unit testing in android. We will be implementing an automation library known as Robotium, for genreating the test cases for testing the various functionalities in our app. First of all you need to add the

How to create change location page in android

In the below example code I have created change location page. Here I have first created select_location.xml layout. In select_location layout I have added ScollView , TextView and imageView and In Selectlocation.Activity I have intializeUI value and

How to make pdf viewer function in android

Using the below code I have created pdf viewer function. Here I have created pdf Viewer Activity and used string download_token,publication_heading,download_info and pdf data fetch data in DatabaseHelper. I have also used DownloadManger fuction. Bel

How to create the animation splash screen in android

In the below example I have created an animation splash screen. Here I have first created animate.xml and traslate.xml layout in anim folder and in activity_main.xml layout I have added ImageView. I have used AnimationUtil.loadAnimation method in Mai

Read Data From Raw Resource in Android

How to read raw data from raw resource in android. In this tutorial i am using a text file as a raw resource in res/raw/wordslist.txt .This text file is read by the activity and you can use the data whatever way you like. for eg You can displa

1 17 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: