Tag Archives: Eclipse

How to load a spinner with values from SQlite Database in android?

By | November 18, 2012

Here is a simple example showing how to load a database values in a spinner in android. OK we will start. This is the layout for the spinner row. spinner_row.xml This is the layout for the interface. activity_main.xml Now this is the MainActivity.java file that uses the spinner and the database. Join the Forum discussion… Read More »

How to upload an image from Android device to server? – Method 4

By | April 26, 2012

Hello all…. This post is also about uploading an image to server from your android device. Previously I have shown three other methods to upload an image to a server. Check these posts to refer this. 1. Uploading audio, video or image files from Android to server 2. How to Upload Multiple files in one… Read More »

Starting with NDK for Android – A Simple example. OR How to run a C code in android?

By | March 25, 2012

Hello Friends…. Today I am going to talk about how to use ndk in android to run c code. Note : These steps are for Mac and Linux Users not for Windows users. Follow these step exactly to set up and run ndk in android. 1. I think that you are having your eclipse and… Read More »

Working with SQLite databases through command Line in android.

By | January 23, 2012

Hello all, In todays tutorial I will show you how to work with sqlite databases in android through command line. Advantages 1. You can browse any number of databases. 2. You can write any queries and execute. First go through these tutorials to get a glance of how to work with sqlite databases in android.… Read More »

How to avoid OutOfMemory Exception in android?

By | July 23, 2011

Hello all.. The OutofMemory exception is a common exception in android when you select an image from a gallery or load Big Images in android. There are different methods to solve this problem. Today I will show you one of the method to solve this problem. The method I am going to explain here is… Read More »

Android: Conversion to Dalvik format failed: Unable to execute dex: null

By | April 28, 2011

This error often comes when your android project size is large. Try the following steps to remove the error 1. Clean the project Project > Clean 2. Increase the memory allocated in eclipse.ini Open the eclipse.ini file in the the Eclipse folder. Then edit -Xms128m to -Xmx512m or something higher Hope this help you

SQLiteManager plugin for eclipse

By | April 18, 2011

When you are working on an Android application that stores data in a SQLite database.There arise many questions like where does this database file get stored on the filesystem ? How can we access the database? I will give solution to all these problems. I created the SQLite database from my previous post about Using… Read More »

Simulating a call or SMS in your ANDROID Emulator – A simple Method

By | April 14, 2011

Hello all….. I have already covered this in another tutorial (click here for that post), but there I didn’t mention this method of simulating a call or SMS in android emulator. Let’s see how to do this… First start your emulator. Wait until it is Home. Then in Eclipse go to DDMS perspective. Look at… Read More »

How to sign Android project apk

By | April 1, 2011

This is a very tricky part and initially i was also ran in to strange problems . Before uploading to android market you must do the following steps. Create a Certificate Signing your application apk Finally Zip align the signed apk First the application you created should be converted to apk format. For this if… Read More »

“Conversion to Dalvik format failed with error 1” Error in ANDROID / Eclipse.

By | March 30, 2011

This is a normal error when you import some project into eclipse. I will show you how to solve this First try cleaning the project from project->Clean. If this didn’t work, then try these Follow these steps 1. Go to Project » Properties » Java Build Path » Libraries and remove all except the “Android… Read More »

"Conversion to Dalvik format failed with error 1" Error in ANDROID / Eclipse.

By | March 30, 2011

This is a normal error when you import some project into eclipse. I will show you how to solve this First try cleaning the project from project->Clean. If this didn’t work, then try these Follow these steps 1. Go to Project » Properties » Java Build Path » Libraries and remove all except the “Android… Read More »

How to create a new Virtual SD card in emulator in ANDROID? How to start emulator with the created SDCard?

By | March 13, 2011

OK The first question is 1. How to create a new Virtual SD card in emulator in ANDROID? Many times we may have not enough memory for our application to run on the emulator. So what we do? One method is to create new virtual device with more memory. Another method is to extend the… Read More »