Tag Archives: Android

Android application using OpenStreet-Tools for Android.

This is an advance tutorial using java, android SDK and OpenStreetMap-Tools for Android.

OpenStreetMap is a free worldwide map, created by people like you.

You need to know java language programming.

You can use this feature to make your android app.

First you need IDE like Eclipse or Netbeans and set this IDE to working with android SDK.

The next step is to download the OpenStreetMap-Tools for Android from here.

Open the default project android in your IDE.

Your project must be use Android level 3 or higher.

All resources you need to be used by osmdroid are included in the jar.

Copy all jar files to libs folder.

Now I will show my app code source.

First change the content of the file AndroidManifest.xml with this:

In the folder /src/com/catafest/map/ make two files named: MainViewActivity.java and MyItemizedOverlay.java.

First file MainViewActivity.java has this source code.

The next source code of the file MyItemizedOverlay.java.

Compile your project and test it with your android device.

The result is show in the next screenshot image. The screenshot app I use don’t make an very good screenshot – see the colors.

android source code app

Posted in Android, Linux, Programming. Tagged with , , , , .

Create first android project using adt-bundle-linux-x86

If you make android aplications then in this tutorial you’ll learn how to create an Android project.

The easy way is to use adt bundle linux.

To use the adt bundle linux you need to install jre and jdk.

You can get from oracle website.

The ADT Bundle includes everything you need to begin developing apps.

You can get it from here.

Unarchive the zip file and go to the folder:

Open the eclipse folder and run the binary.

The first image it’s splash logo, see:

android adt splash logo

The next image show us the eclipse interface.

android adt eclipse 001

To make one project just go to: FileNew Project.

android adt eclipse 002

The wizard ask to select the type project.

This can be: from existing source code , sample project or new android project.

android adt eclipse 003

After you write the source code, just run the project.

The output will be run in android emulator.

Also you need to make settings for this emulator.

android adt emulator

I will come with more tutorials.

Posted in Android, Linux, Programming. Tagged with , , .

Setup the NetBeans IDE and Android SDK .

NetBeans IDE is free and open source IDE (Integrated Development Environment).

I tested the latest version a few days ago and I am very pleased with him.

The main reason is that it integrates very well the android SDK (Software Development Kit).

Let’s try to use this. First we need to download it with JAVA EE from here.

We have all of java : NetBeans Platform SDK, Java SE, Java SE, Java FX, Java FX, Java EE .

If you don’t know what is all of JAVA’s then you must read about JAVA technologies.

After I download it , run the sh script and will find one icon named NetBeans IDE 7.2.

Click it and will start the NetBeans IDE 7.2 and we see the spash of the IDE.

netbeans 2012 tutorial

Next , we will see the first windows of the IDE.

In the next image we see some links to help us.

netbeans 2012 tutorial

Let’s begin to install the android plugin.Go to Tools -> Plugins and click on this.

netbeans 2012 tutorial

In the new window go to Settings tab and the link.

NOTE: the IDE will ask you to restart when he want to make some settings.

netbeans 2012 tutorial

Search android in the Available Plugins. You need to check it and after install or update the android plugin.

netbeans 2012 tutorial

Start a new project using File -> New Project or using the keys : Ctr+Shift+N.

The IDE will give you one dialog to set the project.

Select the type of the project: Android and Android Project and press Next button. See the next image:

netbeans 2012 tutorial

The next step is to set Manage Android SDK. To do this you need to have the Android SDK on your computer.

You can download it from here.

netbeans 2012 tutorial

You need to select the type of Android SDK … this will be used in the project.

netbeans 2012 tutorial

Now you can start to programming your first android project.

Don’t forget to learn first, how android applications work and how to programming in java.

This has to be your main goals.

You can read more about NetBeans IDE 7.2 here.

Posted in Android, Linux. Tagged with , , .