Quantcast
Channel: android developer Feed
Browsing all 35 articles
Browse latest View live

Cannot make phone call from Android.

Issue03-23 23:18:41.381: E/DesiZindagi(767): AudioPlayerScreen$2:104-Failed to invoke call03-23 23:18:41.381: E/DesiZindagi(767): java.lang.SecurityException: Permission Denial: starting Intent {...

View Article



How to get button text on click in Android?

The following code shows how to associated the OnClickListener with the button and later on when its clicked and that handler is invoked how to get the title to the button.

View Article

How do you convert CharSequence to String in Android?

AnswerThe CharacterSequence is an interface as defined below// Compiled from CharSequence.java (version 1.5 : 49.0, no super bit)public abstract interface java.lang.CharSequence {    // Method...

View Article

What is Google project codenamed : Bouncer?

Google is taking new steps to identify and eliminate malware in the Android Market. Codenamed "Bouncer," Google will now scan every new and existing app in the Market against known malware, permissions...

View Article

How to set the screen orientation to Portrait for an Android Activity?

By default an Activity support both Portrait and Landscape mode. On changing the orientation of the device, view rotates accordingly. However in certain apps we may want to limit the orientation to...

View Article


Image may be NSFW.
Clik here to view.

Guess the Number - Game in Python

Mini ProjectPractice Exercise in Python for Beginners.Create a Guess the Number game where in the computer One of the simplest two-player games is "Guess the number". The first player thinks of a...

View Article

Cannot launch Call Intent - Android Permission Denial Issue

IssueWhen trying to invoke the Phone Dialer programmatically the following exception occurs.10-24 11:37:41.127: D/DesiZindagi(1599): AudioPlayerScreen$3:109-in : Button Advert onClick(..)10-24...

View Article

Photo Upload in Android - Out of memory

IssueUse CaseTrying to upload an Image from the Android Phone to a remote service by reading the file bytes and converting it into Base64 Encoded String. This generally can happen when the size of...

View Article


How to load an remote image as a Drawable in Android?

Loading an remote image from a online server accessible via a URL as Drawable is very straightforward.// Utililty Methodpublic static Drawable loadImageAsDrawable(String url) {    try {        // open...

View Article


How to allow multiple line text in EditText view in Android?

The EditText widget by default is single line. In order to allow mutiple lines modify and customize the widget definition in the layout file as below:<EditText    android:singleLine="false"<!--...

View Article

Image may be NSFW.
Clik here to view.

Android Cookbook

Looking for easy solution to get something done in Android. Android Cookbook is the way. Just search for you topic and follow the recipe. 

View Article

Android Developer Guide

Android Developer Guide.

View Article

Android Tutotrials

A collection of Android Tutorials.

View Article


How to find out the URL for your publish Android App?

ScenarioYou just created a new app and uploaded ( apk) it to the Android Market (Google Play) with all screenshots, details etc. Generally it takes a couple of hours or more for it to be available on...

View Article

Image may be NSFW.
Clik here to view.

Building Live Stock Quotes App in Android

Web Services and Service Oriented Computing has revolutionized the internet in the past decade. It is quite true that without web services most Apps in the App Store will not be that...

View Article


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
Browsing all 35 articles
Browse latest View live




Latest Images