Wednesday, 26 September 2012

My first android app

Converter is designed for fast, efficient, and visual work.
Conversions are made quickly and accurately.
Currency conversions are updated every day.
The application can operate without an internet connection
(except for currency conversion, and distance between cities).
You can calculate the distance between cities Fuel last menu tab
Where except the distance,It`s calculated the time and amount of fuel needed to travel that way.
-Receiving the distance between two cities and proper fuel
-Automatically receive currency updates
-Covert the size shoes and clothes in all categories
-Change language

Convert units in the these categories:
-Size shoes
-Size Clothes
And more in next update.
If you have any comments or personal preference please email us
We can do exactly what you want.

Create Menu in Android App

// Here is the java code in Main.java
package com.test.menu;

import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.view.MenuInflater;
import android.view.MenuItem;

public class Main extends Activity {

    public void onCreate(Bundle savedInstanceState) {
    public boolean onCreateOptionsMenu(android.view.Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.activity_main, menu);
        return true;
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle item selection
        switch (item.getItemId()) {
        case R.id.game:
            // code
            NewGame(); // start new activity
            return true;
        case R.id.help:
            // code
            Help(); // start new activity
            return true;
        case R.id.exit:
            // code
            finish(); // exit from the activity
            return true;           
            return super.onOptionsItemSelected(item);


// activity_main.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android" >

    <group android:checkableBehavior="single" >



// string.xml
<?xml version="1.0" encoding="utf-8"?>
    <string name="app_name">Test Menu</string>
    <string name="game">New game</string>
    <string name="help">Help</string>
    <string name="exit">Exit</string>