Quantcast
Channel: android developer Feed
Browsing latest articles
Browse All 35 View Live

Image may be NSFW.
Clik here to view.

Building a TODO List app in Android using SQLite

Storing data locally in Android is very easy. Here are few ways we can do it:Using SharedPreferencesUsing FilesUsing SQL databases.This tutorial will tell you how to save data using SQL databases. For...

View Article


Image may be NSFW.
Clik here to view.

Building Paint like Application in Android

What was the first thing that you did when you logged on to a Computer the first time? For me, it was Microsoft Paint. As a child who never drew a circular-circle in her entire life, it was exciting to...

View Article


Image may be NSFW.
Clik here to view.

Sending SMS using Android

SMS - Short Message Service is very effective and quick way of communication. Your app may have a use case wherein it needs to send SMS to someone. So lets see how it can done, it is relative simple as...

View Article

What is the size of icon for various devices profile in Android?

Depending on the pixel densities for the phones , the icon size of the app should be as follows:Device Type - Icon Size in pixels   * ldpi - 36px x 36px   * mdpi - 48px x 48px   * hdpi - 72px x 72px...

View Article

How to keep screen from dimming or sleeping in Android?

In order for your application screen  need s to keep the screen from dimming or the processor from sleeping,  you must request this permission.<uses-permission...

View Article


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 latest articles
Browse All 35 View Live