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 ArticleUsing 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 Articleandroid.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 ArticleHow 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 ArticleHow 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 ArticleHow 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 Articleandroid.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 ArticleHow 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