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

How to change checkbox icon

In certain cases, according to the application we need to change the mark or the drawable of the checkbox. Step 1:- Create selector in the  drawable, say checkbox_selector.xml :- <?xml version="1.0" encoding="utf-8"?> <sele...

Sending parameters using GET request RETROFIT

Sending the parameters in GET request is quite different you can't append dynamic query to the URL . Another way of using it. http://testserver.com/api/login?api=login&value=test Using retrofit as follows: Map<String...

Create a Radar view in android

Hello All, Looking to create a view like radar in android. Step 1:- Find the java file along this blog and add it to your project. Step 2: In your xml use this class to create view. <com.example.RadarView android:id="@+i...

How to create Contextual action mode over toolbar using recycler view in android?

While creating list on a recycler view we need more functionality like delete, copy and more. Like our popular apps what's app, gmail and hike we found toolbar in action mode if we long press list items on that, same UI with functionality we ...

How to open hyperlink text in webview/browser in a android app

Suppose in out text/paragraph of textview, some words are clickable or hyperlinked. In case you have a task to open those hyperlinked text in a webview of any browser you have to use SpannableStringBuilder. Below code with details will help you t...

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 l...

Customise Progress Bar

To make the layout interactive and to look good, we need to modify the default of certain widgets. Here is the simple customisation of the progress bar:- Step 1:- Create a drawable xml say customised_progress.xml <?xml version="1.0" e...

Gridview Inside the GridView as its item

There are certain conditions when you need to use nested gridview or gridview as an item of parent gridview.   Step 1:- Create an xml file. A) xml that contain the parent_gridview_item.xml <GridView android:id="@+i...

justify text in android using webview

Android does not support justification of text,but we can achieve this using loading the text in WebView. String youtContentStr = String.valueOf(Html .fromHtml("<![CDATA[<body style=\"text-align:justify;color:#222222; \">" ...

Android Pie chart example using MpAndroidChart Library

Step1: Adding MpAndroidChart android library into project dependencies { compile 'com.github.PhilJay:MPAndroidChart:v2.1.6' } repositories { maven { url "https://jitpack.io" } } Step2: Pie Chart layout in your xml...

Debugging local databases and Preferences.

When you need to debug database  and shared prefrences in an android application, it is difficult to debug it. Android Debug makes it easy to debug the databases Add this to app’s build.gradle- debugCompi...

How to update/refresh device gallery after adding new images

In some of the devices while uploading/adding new image into media are not shown to the custom gallery view. However this does not seem to update until the device reboots. To update your custom gallery with new images, below few lines of code wil...

Http request to search Image using Vuforia Rest api

In our previous blog we know that how to generate signature to perform valid api request. Now we ll see how to get target image id from vuforia database. We know that how to find the path of an image after taking it from camera or gallery so w...

How to set MD5 and SHA1 encryption for image recognition using Vuforia rest Api ?

In our previous tutorial we learn how to configure vuforia for Cloud recognition, in this tutorial we will learn about how to set encryption technique while hitting rest apis of Vuforia and in our next tutorial we will share the basic http reques...

How to scan image from cloud database using Vuforia ?

Using Vuforia we can scan any label and image from cloud database of Vuforia. You need to create free developer account there and then you can create your own application. Then you can create your database in develop tab where you  hav...

How to configure vuforia for android ?

Vuforia is basically used for image recognization or object recognization, you can scan from local images or from cloud database. In this tutorial, we will learn how to use vuforia service to recognize images from cloud database. 1. First o...

How to show orders history from shopify store ?

This is our last blog on shopify where we will show listing of orders history of particular customer. With this api you can track all orders in your webview by passing only order number. 1. Fetch orders in your main activity like this : ...

How to checkout using credit card using shopify ?

In our previous tutorial we learn about checkout and shipping address process, now we ll learn about payment process. Basically Shopify provides paypal, credit card shopify payments, web checkout etc you can check all the payments options on shop...

How to add shipping address for checkout using shopify?

Before proceeding cart checkout user have to enter shipping address and shipping address contains shipping rate and tax rates that you can set from your shopify admin panel. here are the procedure : 1. Layout for shipping address file : ...

how to add a product into cart shopify ?

In our previous blog we read about categories and their products now we ll look how to add each product into cart for checkout. Each product has a unique id and product varients that we ll add into cart. This is the basic method we uses to ...

How to show list of product available in each category shopify ?

We know that how to fetch categories from shopify store there we get each category id that we ll used further to get products. 1. Main activity class to get product list : public class ProductsListActivity extends AppCompatActivity implem...

How to fetch Collections or Categories list from shopify ?

Shopify sdk provides interface to get the saved categories of store on shopify and you can get that in your android app. you can show lots of information in list view like image of product, name, date, price etc. 1. Activity class to show cate...

Data structure when to use what ?

We have different types of data structures like array, linked list, tree etc but which one is better so this is basic question that comes in mind every time when we have large data set. In this post we can find out the best data structure type...

Save image taken from device memory to a specific folder in Android

Step1: Permssion needed to save image. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Step2: Saving image to the particular directory with new name as given by the user. This will make a seperate direct...

How to seamlessly enable location/gps without redirected to the location service window

Most of the apps requires the user to manually enable the gps setting which causes confusion with the user as they are redirected to the location services window outside the app. The below code will help you to seamlessly enable location/gps with...

Using handlers in android.

Brief Introduction In Android apps there are scenario  where we need to communicate the thread with our UI .Like downloading image from server and communicating to UI thread that downloading is completed or it is interrupted. Hand...

Location Setting API Android

This blog is about how to show Popup for enable Location setting. 1. Add below dependency to app gradle file. compile 'com.google.android.gms:play-services:9.6.1' 2. Implement GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConn...

How to avoid adding emoticons in android edittext

If you don't want to allow users to add emoji in edittext then below few lines will be helpfull for you. This method will return blank string while typing any similies/emoji in your editext. public static InputFilter EMOJI_FILTER = new I...

How to play Youtube video in your android app

In previous posts we discussed about how to generate  youtube video thumb and video_id. Now we are going to implement how to play videos in your android app by going through below easy steps. Step1: First adding YouTubeAndroidPlayerApi li...

How to generate video id from youtube video url in android

If you are using YouTubePlayer in your android app and wants to play youtube video on that, so first we need a youtube video url. From that url we can get a video id(11 alphanumeric character set). In below example we are going to generate a vide...

How to add CirclePageIndicator with ViewPager in android

CircularPagerIndicator is usually a kind of indicator that used to know how many images or tabs are left in our view. It is like a dot at the bottom of a view, more you can get by implementing below few lines in your project. Step1: permission...

How to create youtube video thumbnail in android

In order to create youtube video thumbnail in android we have to first initialize its view i.e. YouTubeThumbnailView in our xml file. On initializing YoutubeThumbnailView we have to add developer key and its InitializationSuccess listener with tw...

Implement FCM from Android Studio GUI

This blog is about how to implement FCM(Firebase Cloud messaging) from Android Studio. Android studio gives you tools to implement  Firebase tools in very easy way. 1. Open Android Studio. (Make sure Android Studio is up to date) 2....

Broadcast Receivers

Broadcast Receivers are used to respond to the broadcast messages that are generated from application or from system. The messages/ broadcasts that  are caught or responded by our Broadcast receivers are sometimes called intents or events...

Services in Android

A service is a component that runs in the background without user interaction and with no user interface. Services performs long running tasks without being visible like, playing music, triggering notifications etc. Services has two forms:- ...

How to create verticle bargraph in android

Step1: Add dependency MPAndroidChart and jitpack maven repository in your build.gradle repositories { maven { url "https://jitpack.io" } } dependencies{ compile 'com.github.PhilJay:MPAndroidChart:v2.1.6' } S...

What's new in latest Android studio version 2.2?

New studio version 2.2 has many features that provide developers vast range of functionality.   1. Layout Editor  Drag and drop from widget palette ,new blue print of your layout,tools like auto correction. Properties panel ...

opening activitiy with transition

In certain cases it is required to open the activity with transition like from left-to-right or top-to bottom or vice-versa. For this we have to create xml file that must be kept in "anim" folder. Regarding xml, we have 4 differen...

Parcelable Android Example

Parcelable is mechanism for passing data between Activities. Parcelable works same like serialization but It is faster then serialization. Here are the points to make class parcelable. 1. Create simple model class like below I created with ...

Parse Json Object with dynamic keys using Gson

Gson is a java library which converts Json to Java object and vice versa. This blog is about how we can parse Json data to Java Object where keys are dynamic created. 1. Json Sample text is:- { "data": { "status_code": "101", "...

Auto-Reply to Texts Messages on Android device When Youre Busy

In certain cases, we are busy with some work and we don't have free time to reply our device incoming text messages. In that case, you will send an auto-reply message to all the incoming messages about your situation which goes something like...

How to register a new user using Shopify mobile buy sdk ?

In previous blog we learn how to login in shopify from android app, now we already have sample application class to maintain buy client session so in this blog we learn how to create a new user account in your shop. xml layout file for registr...

Login with Shopify sdk

This is login tutorial using shopify sdk. Shopify authenticate any customer based n email id and password and returns customer details if customer already exists in shopify or shop. Mobile buy sdk is used to access all the methods of shopif...

What is Shopify and how to configure shopify sdk in android studio ?

Shopify is basically used to store and sell varieties of products so this is a platform to sell products of your shop. Shopify can also be implement in your Android applicaiton. Following are the steps to create shop and products and then c...

Monkey Testing with ADB command.

This blog is about how to use MonkeyRunner tool with ADB. MonkeyRunner Tool to test app UI and functionality. pseudo-random streams of user events and system events is generated by MonkeyRunner. MonkeyRunner controls the workstation by sending...

How to retrieve contacts from your android device

Step1: permission needed to read contacts <uses-permission android:name="android.permission.READ_CONTACTS"/> Step2: ContentResolver provides access to the content provider. Its main work is to read the user's query and redirecti...

How to get Image from URL using glide library

The below example code will helps you to get Image from URL by using glide library and to wait for image until it loaded.  For this in below example I have added glide library in  build.gradle file then I am using Glide with MainActivit...

How to implement ViewPager with tabs in android?

To switch easily from one page to another using slide either from left-to-right or right-to-left becomes easy using ViewPager. The below example is to make view pager with TabLayout, tabs may be used to display headings, we can also move easily f...

How to get GCM registration token in Android

GCM(Google Cloud Messaging) registration token is a kind of id given by the GCM connection server to user/client that allow user to receive messages. To get registration token first we have to generate a unique number, it can be created while con...

How to Mute/Unmute device sound programmatically in android?

In some of the cases in our application, we have to set our devices in Mute/Unmute mode. To get this functionality we have to add few lines of code. I have added two buttons one is for Mute and another one is for Unmute our device described below...
1 3 21
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: