Quantcast
Browsing all 35 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

A Simple Quiz Game in Andriod

In this post, I am bringing you a simple trivia quiz. The subject of questions is computer science in this app but I think it is obvious that you can keep it any way you like. The app in this tutorial...

View Article


Image may be NSFW.
Clik here to view.

Using Location Services in Android

Need help with directions? Or want to know where you are? Google Maps is one of the great service that Google provides to the masses free of cost. Using Maps in your android application is easy as long...

View Article


How do you hide an ImageButton in Android?

In order to hide the button, call the setVisible method with either one of two argumentsimageButton.setVisible(View.INVISIBLE)OR imageButton.setVisible(View.GONE);

View Article

How to build simple Hashmap cache in Android?

The following snippet shows how to build a simple Bitmap Cache in Android:import java.util.HashMap;import android.graphics.Bitmap;// TODO: Auto-generated Javadoc/** * The Class ImageMemoryCache....

View Article

How to check if a file is an Image in Android using FileFilters?

In order to check if file is an Image, one can check for the file extension (jpg, png, etc.) using FileFilter as shown below:packagecom.livrona.apps.sikh.wallpapers;...

View Article


How do you center an Image to display in a Splash Page in Android?

Generally the splash page displays an image of the App on launch of the app. Most of time its just an single image that is intended to be displayed.Depending of the size of image and device it runs, it...

View Article

Image may be NSFW.
Clik here to view.

android.view.InflateException: Binary XML file line #50: Error inflating...

IssueThe app is trying to use Admob banner in the Actvity.            <com.google.ads.AdView                android:id="@id/adView"                android:layout_width="wrap_content"...

View Article

How do you define Colors Resources in Android?

AnswerCreate an xml file in the res/values directory called as colors.xml<?xml version="1.0" encoding="utf-8"?><resources>    <color name="White">#FFF</color>    <color...

View Article


How do you configure Google Analytics v2 lib in Android?

AnswerCreate an xml file in the res/values directory called as analytics.xml<?xml version="1.0" encoding="utf-8" ?><resources xmlns:tools="http://schemas.android.com/tools"...

View Article


How do you uninstall an Android App using ADB?

In order to uninstall/delete an existing App on the device you can either Uninstall from the Device it self as any other regular app. This way of uninstalling requires more steps,  developers can do it...

View Article

android.os.NetworkOnMainThreadException - StrictMode$AndroidBlockGuardPolicy

UsecaseSending a request to invoke a URL/API/Resource over the Internet from the Activity.ExceptionE/LiveTraxs(29173): HttpApiService:81-Exception : nullE/LiveTraxs(29173):...

View Article

Android App Recipes

View Article

Android Google Play Recipes

View Article


Email Validator in Android

The snippet shows an Email Validator using RegEx.

View Article

How to download and store file contents from Remote location on the SD Card?

The following functions fetches the file contents from a remote location, stores it in a given directory with a given file name on the SDCard of the device

View Article

Browsing all 35 articles
Browse latest View live