Tag Archives: Android

Android calendar application example – part 1.

This is a simple example about using widget calendar under Andoid OS.
Can be easy to do it if you know the basic of the programming.
First you need to make one application ( I use Android Studio – version 0.5.1).
Let’s see my example:
My application use:
the class is :
public class MainActivity extends ActionBarActivity
the project is set with this :
com.example.calendar.app
the widget is : CalendarView
I make this changes into this source files :

  • MainActivity,java
  • AndroidManifest.xml
  • activity_main.xml
  • main.xml
  • strings.xml

Let’s see the source code for this files:
The result working well. Also you can see in this picture the calendar result …

MainActivity.java



AndroidManifest.xml



activity_main.xml



main.xml



strings.xml



The result working well. Also you can see in this picture the calendar result …


android_calendar_001

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

Android Studio – tools and features – part 005

Most of us have one old project. When we want to import this project into new Android Studio with a new SDK then will got one error.
In the next picture will see the steps to fix your new Android SDK.
android-tips-001
This will allow you to fix your Android SDK with the new one.

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

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 , , .