Category Archives: Android

Android gps application example – part 1.

This is a simple example about gps under Android OS.

I make this tutorial few days ago.

It’s easy and simple to do that. Is like any project under Android OS.

I use Android Studio but you can use Eclipse also…

Anter you open the new project you need to use the next source code.

Using Android Studio can be hard if you don’t know how this IDE link java source code.

So , your project will be named : SimpleLocation and main activity will be like this :

public class LocationActivity extends Activity implements LocationListener

First the LocationActivity.java file:

Also you can make two projects to see the diff and you will understand well how is working this …

…and AndroidManifest.xml :

finally the last file main.xml:

The GPS and A-GPS is something different so read all specification about your hardware device.

Finally the result will be something like this.

Posted in All, Android, Programming, Windows 8. Tagged with , , , , .

Create android application using Codenvy and run it with Manymo – Android emulator.

Today I will show you how to make your android application using cloud and online emulator.

The Codenvy website it’s the most used cloud IDE for developers and corporate teams so this I will use it in this tutorial.

I used Codenvy -Version: 2.8.0 to make this tutorial and Manymo – Android emulator.

Also I used Manymo to run the android application.

First you need to make one account of each website: Codenvy and Manymo.

First login into Codenvy website and follow this steps:

This is the first window you can see it. Type your name project in this window.

codenvy-001

In this window will need to press the Android button to make your android application.

codenvy-002

Select PaaS – platform as a service (in this case is only Manymo) and press Finish button.

Don’t change source code or any files… we will run this as default android appplication.

codenvy-003

The project is make with all files to create one android application.

Login with your Manymo account and go to Account -> Client Applications and will see your authorization token.Will need this token to put into Codenvy cloud IDE settings.

Go to Codenvy IDE website and press Run to run the application.

The Codenvy will ask you the token from Manymo website

codenvy-004

Go to Manymo. If you see this image then all settings is ready to change and create your android application.

codenvy-005

This is default android application make by Codenvy.

Posted in All, Android, Programming, web. Tagged with , , , .

Android Studio – tools and features – part 004

When your Android Studio don’t want to working with JAVA then you can try this :

For example I got this error:

First install or reintsall all the java packages.

Let’s see what compiler is used:

… and Java JDK:

The next command can help you.

Display all java with this command :

Set your java

Try to start the Android Studio .

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

Working with android emulator – part 001.

Today I will show you how to deal with android emulator.

I use in this tutorial the android from Pygame Subset for Android.

You can use any android SDK and also you can read my tutorial about Pygame Subset for Android.

First you need to install mesa development libs.

The next step is to create one avd.

We can see all avd with :

If you got this error …

…you need to export LD_LIBRARY_PATH and then you can start emulator

You can use -no-audio arg to make emulator faster.

… or just use this:

Tne next command will install your aplucation on emulator. Open another terminal and use this:

And now you can tets your application…

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

Using AIDE – interface and settings.

Wikipedia tells us : A vacation or holiday is a specific trip or journey, usually for the purpose of recreation or tourism.

This not really true. If you have your tablet with android OS and one good idea don’t let it pass just use AIDE.
You can find AIDE here.
So the developer come with this: AIDE is an integrated development environment (IDE) for developing real Android Apps directly on Android devices.
Let see some settings and how it’s works.
Star the AIDE. In the next images I make a red line where you need to touch the tablet…
First image come when AIDE is update.
aide-new-update
This is my project with two files . Now press the icon ( see red line from picture) .
aide-001
The next image will show the content of the tree files. Touch the icon again ( browser ).
aide-002
Now the folder tree will be show in the left.
aide-003
The next button (settings) will show you some features. If you press More the will see more features.
aide-004
After you press More button the new settings will show you . Like Export APK to export your application or Refresh Build to refresh your buid application
aide-005
Go with your finger down and you’ll see more settings … The Settings button allow you to set your android compiler and more …
aide-006
If you press on android icon then will see all files. You can close it if you want.
aide-007
If you make two press on the content of the file will be able to write source code.
aide-008
This image show you the content of Setting button from More… I using from some time the AIDE so I need to download the android.jar file.
Maybe is fixed now and you don’t need to do that.
aide-009
Another great features is Dropbox . This allow you to keep your source code on Dropbox server. If don’t have a Premiun AIDE the will need to deal only with 5 files and without Git.   Good luck … See you later.

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