AA's Temperature Converter

This is a discussion on AA's Temperature Converter within the LG Ally Hacking / Development forums, part of the LG Ally category; This is my second attempt at a tutorial. The first attempt was based on another tutorial that can be found here: Android Development with Eclipse ...

Results 1 to 10 of 10

Thread: AA's Temperature Converter

  1. #1
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    This is my second attempt at a tutorial. The first attempt was based on another tutorial that can be found here: Android Development with Eclipse This second tutorial expands on that and adds a lot more functionality to the application.



    In order to use this tutorial, you must have setup your computer to develop Android Apps. Please see my previous thread: Getting Setup To Develop Android Apps.



    Prerequisites



    This tutorial does not cover setting up your computer to develop Android Apps. You must have installed JDK (Version 5 or 6), Android SDK, Eclipse (Version 3.5 or greater), and the Android Eclipse Plug-in. You must also be familiar with Java and using Eclipse.



    A New Project



    The first thing we want to do is to create a new project.

    • Open Eclipse.
    • Click on the File menu.
    • Select New -> Project.
    • In the New Project dialog box, select Android -> Android Project.
    • Click on the Next button.
    • Enter the project information:
      • Project Name: converter
        • The project name will be used to create the folder that Eclipse will store all of the project's files in.
      • Build Target: Android 2.1
        • The build target is the version of Android that you want to use for the application.
        • Any device that uses an earlier version of Android may not be able to run the application.
      • Application Name: AA\'s Converter
        • The application name is what will appear in the application's title and is what the user will see.
      • Package Name: com.allyandroid.converter
      • Create Activity: Convert
        • The activity is the main activity that is ran when the application is opened.
      • Min SDK Version: 7
        • The min SDK is used to prevent older version of Android from being able to run the application.
        • If blank, any device can install the application even if they have an older version of Android.
    The Layout



    Next, we want to design the layout of the application. We want to add the following objects to the main layout:

    • Background Color - #4f81bc (I call this color Ally Blue)
    • Textbox - This is what the user will use to input data.
    • Group of Radio Buttons.
      • Fahrenheit to Celsius - 32⁰ Fahrenheit = 0⁰ Celsius
      • Celsius to Fahrenheit - 0⁰ Celsius = 32⁰ Fahrenheit
      • Inches to Centimeter - 1 Inch = 2.54 Centimeters
      • Centimeter to Inches - 2.54 Centimeters = 1 Inch
      • Gallon to Liter - 1 Gallon = 3.7854118 Liters
      • Liter to Gallon - 3.7854118 Liters = 1 Gallon
    • Calculate Button - The button the user touches to make the calculation.
    • Clear Button - The button the user touches to clear the textbox.
    In order to add these objects, we need to work with two separate files: strings.xml and main.xml.

    • Open the strings.xml file.
      • The strings.xml file is located in this folder: /res/values/.
      • Change the code in the file to the following:
          • // This string contains the name of the application you entered when you created the project.
            • AA\'s Converter
          • // This string contains the background color Ally Blue.
            • #4f81bc
          • // These strings contain the text used for the radio buttons.
            • Fahrenheit to Celsius
            • Celsius to Fahrenheit
            • Inches to Centimeter
            • Centimeter to Inches
            • Gallon to Liter
            • Liter to Gallon
          • // This string contains the text used for the Calculate button.
            • Calculate
          • // This string contains the text used for the Clear button.
            • Clear
          • // The following strings are the handlers for the buttons and radio buttons. A handler is what the application will use to know what activity to perform when the button is touched.
            • celsiusHandler
            • fahrenheitHandler
            • centimeterHandler
            • inchesHandler
            • literHandler
            • gallonHandler
            • calculateHandler
            • clearHandler
      • Save the file.
    • Open the main.xml file.
      • The main.xml file is located in this folder: /res/layout/.
      • Change the code in the file to:
          • // The is used to allow the application to contain more objects in the layout than are visible on the screen. A user would scroll (slide finger) the screen to view the hidden objects.
          • // A can only contain one child. In this case, the child is a .
                • // This is the code for the textbox. The inputType="numberSigned|numberDecimal" prevents the user but being able to enter anything other than a number in the text box.
                • // This is the code for the Radio Group.
                • // The following is the code for the Radio Buttons. Notice that each one has a androidnClick which is associated with the handler created in the strings.xml file and a andriod:text which is associated with the text strings created in the strings.xml file.
                • // This is the code for the Calculate button.
                • // This is the code for the Clear button.
      • Save the file.
    The Menu



    We want to add a menu file that contains Exit and About. A menu is what pops up when the user pushes the menu button. The menu file is not automatically created by Eclipse so we will need to create it.

    • Create the menu.xml file.
      • Create a new menu folder.
        • Right click on the res folder.
        • Select New -> Folder.
        • Enter menu for the folder name.
        • Click on the Finish button.
      • Create a new file called menu.xml.
        • Right click on the menu folder.
        • Select New -> File.
        • Enter menu.xml for the file name.
        • Click on the Finish button.
      • Open menu.xml.
        • Add the following code to the file:
      • Save the file.
    The Activity



    Now comes the fun part of programming the activities that will perform the calculations when a user enters a value, selects a radio button, and then clicks on the Calculate button. We will also create the handler activities and menu activities.

    • Open Convert.java file.
      • The Convert.java file is located in this folder: /src/com.allyandroid.converter/
      • package com.allyandroid.converter;
      • // Add the following imports, if they are not already listed:
        • import android.app.Activity;
        • import android.os.Bundle;
        • import android.view.Menu;
        • import android.view.MenuInflater;
        • import android.view.MenuItem;
        • import android.view.View;
        • import android.widget.EditText;
        • import android.widget.RadioButton;
        • import android.widget.Toast;
      • // This is the main class that was created when you created the project.
        • public class Convert extends Activity {
          • private EditText userValue;
          • @Override
          • public void onCreate(Bundle savedInstanceState) {
            • super.onCreate(savedInstanceState);
            • setContentView(R.layout.main);
            • userValue = (EditText) findViewById(R.id.EditText01);
          • }
          • // This activity handles the menu when the menu button is pushed.
            • public boolean onCreateOptionsMenu(Menu menu) {
              • MenuInflater inflater = getMenuInflater();
              • inflater.inflate(R.menu.menu, menu);
              • return true;
            • }
          • // This activity handles the Exit or About menu when touched.
            • @Override
            • public boolean onOptionsItemSelected(MenuItem item) {
              • switch (item.getItemId()) {
                • case R.id.exit:
                  • finish();
                  • return true;
                • case R.id.about:
                  • Toast.makeText(this, "Ally Android's Converter (www.allyandroid.com)",
                  • Toast.LENGTH_LONG).show();
              • }
              • return true;
            • }
          • // This activity handles the calculate button when pressed.
            • public void calculateHandler(View view) {
              • switch (view.getId()) {
              • case R.id.Button01:
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • if (userValue.getText().length() == 0) {
              • Toast.makeText(this, "Please enter a valid number",
              • Toast.LENGTH_LONG).show();
              • return true;
              • }
              • float inputValue = Float.parseFloat(userValue.getText().toString());
              • if (celsiusButton.isChecked()) {
                • userValue.setText(String
                • .valueOf(convertFahrenheitToCelcius(inputValue)));
              • } else if (fahrenheitButton.isChecked()) {
                • userValue.setText(String
                • .valueOf(convertCelciusToFahrenheit(inputValue)));
              • } else if (centimeterButton.isChecked()) {
                • userValue.setText(String
                • .valueOf(convertInchesToCentimeter(inputValue)));
              • } else if (inchesButton.isChecked()) {
                • userValue.setText(String
                • .valueOf(convertCentimeterToInches(inputValue)));
              • } else if (literButton.isChecked()) {
                • userValue.setText(String
                • .valueOf(convertGallonToLiter(inputValue)));
              • } else if (gallonButton.isChecked()) {
                • userValue.setText(String
                • .valueOf(convertLiterToGallon(inputValue)));
              • }
              • break;
              • }
            • }
          • // This activity handles the clear button when touched.
            • public void clearHandler(View view) {
              • userValue.setText("");
            • }
          • // This activity converts Celsius to Fahrenheit.
            • private float convertCelciusToFahrenheit(float inputValue) {
              • return ((inputValue * 9) / 5) + 32;
            • }
          • // This activity converts Fahrenheit to Celsius.
            • private float convertFahrenheitToCelcius(float inputValue) {
              • return ((inputValue - 32) * 5 / 9);
            • }
          • // This activity converts inches to centimeters.
            • private float convertInchesToCentimeter(float inputValue) {
              • return (float) (inputValue * 2.54);
            • }
          • // This activity converts centimeters to inches.
            • private float convertCentimeterToInches(float inputValue) {
              • return (float) (inputValue * 0.393700787);
            • }
          • // This activity converts liters to gallons.
            • private float convertLiterToGallon(float inputValue) {
              • return (float) (inputValue * 0.264172052);
            • }
          • // This activity converts gallons to liters.
            • private float convertGallonToLiter(float inputValue) {
              • return (float) (inputValue * 3.78541178);
            • }
          • // The following handler activities are all the same, only each one makes sure that only the radio button
          • // selected is the one that is checked.
            • public void celsiusHandler(View view) {
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • celsiusButton.setChecked(true);
              • fahrenheitButton.setChecked(false);
              • centimeterButton.setChecked(false);
              • inchesButton.setChecked(false);
              • literButton.setChecked(false);
              • gallonButton.setChecked(false);
            • }
            • public void fahrenheitHandler(View view) {
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • celsiusButton.setChecked(false);
              • fahrenheitButton.setChecked(true);
              • centimeterButton.setChecked(false);
              • inchesButton.setChecked(false);
              • literButton.setChecked(false);
              • gallonButton.setChecked(false);
            • }
            • public void centimeterHandler(View view) {
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • celsiusButton.setChecked(false);
              • fahrenheitButton.setChecked(false);
              • centimeterButton.setChecked(true);
              • inchesButton.setChecked(false);
              • literButton.setChecked(false);
              • gallonButton.setChecked(false);
            • }
            • public void inchesHandler(View view) {
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • celsiusButton.setChecked(false);
              • fahrenheitButton.setChecked(false);
              • centimeterButton.setChecked(false);
              • inchesButton.setChecked(true);
              • literButton.setChecked(false);
              • gallonButton.setChecked(false);
            • }
            • public void literHandler(View view) {
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • celsiusButton.setChecked(false);
              • fahrenheitButton.setChecked(false);
              • centimeterButton.setChecked(false);
              • inchesButton.setChecked(false);
              • literButton.setChecked(true);
              • gallonButton.setChecked(false);
            • }
            • public void gallonHandler(View view) {
              • RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);
              • RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);
              • RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);
              • RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);
              • RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);
              • RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);
              • celsiusButton.setChecked(false);
              • fahrenheitButton.setChecked(false);
              • centimeterButton.setChecked(false);
              • inchesButton.setChecked(false);
              • literButton.setChecked(false);
              • gallonButton.setChecked(true);
            • }
        • }
    Motorola Droid 4

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    The strings.xml file should look like this:



    AA\'s Converter
    #4f81bc
    Fahrenheit to Celsius
    Celsius to Fahrenheit
    Inches to Centimeter
    Centimeter to Inches
    Gallon to Liter
    Liter to Gallon
    Calculate
    Clear
    celsiusHandler
    fahrenheitHandler
    centimeterHandler
    inchesHandler
    literHandler
    gallonHandler
    calculateHandler
    clearHandler


    Motorola Droid 4

  4. #3
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    The main.xml file should look similar to this:



    Motorola Droid 4

  5. #4
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    The Convert.java file should look similar to this:



    package com.allyandroid.converter;



    import android.app.Activity;

    import android.os.Bundle;

    import android.view.Menu;

    import android.view.MenuInflater;

    import android.view.MenuItem;

    import android.view.View;

    import android.widget.EditText;

    import android.widget.RadioButton;

    import android.widget.Toast;



    public class Convert extends Activity {

    private EditText userValue;



    @Override

    public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);

    userValue = (EditText) findViewById(R.id.EditText01);

    }



    public boolean onCreateOptionsMenu(Menu menu) {

    MenuInflater inflater = getMenuInflater();

    inflater.inflate(R.menu.menu, menu);

    return true;

    }



    @Override

    public boolean onOptionsItemSelected(MenuItem item) {

    switch (item.getItemId()) {

    case R.id.exit:

    finish();

    return true;

    case R.id.about:

    Toast.makeText(this, "Ally Android's Converter (www.allyandroid.com)",

    Toast.LENGTH_LONG).show();

    }

    return true;

    }



    public void calculateHandler(View view) {

    switch (view.getId()) {

    case R.id.Button01:

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    if (userValue.getText().length() == 0) {

    Toast.makeText(this, "Please enter a valid number",

    Toast.LENGTH_LONG).show();

    return;

    }

    float inputValue = Float.parseFloat(userValue.getText().toString());

    if (celsiusButton.isChecked()) {

    userValue.setText(String

    .valueOf(convertFahrenheitToCelcius(inputValue)));

    } else if (fahrenheitButton.isChecked()) {

    userValue.setText(String

    .valueOf(convertCelciusToFahrenheit(inputValue)));

    } else if (centimeterButton.isChecked()) {

    userValue.setText(String

    .valueOf(convertInchesToCentimeter(inputValue)));

    } else if (inchesButton.isChecked()) {

    userValue.setText(String

    .valueOf(convertCentimeterToInches(inputValue)));

    } else if (literButton.isChecked()) {

    userValue.setText(String

    .valueOf(convertGallonToLiter(inputValue)));

    } else if (gallonButton.isChecked()) {

    userValue.setText(String

    .valueOf(convertLiterToGallon(inputValue)));

    }

    break;

    }

    }



    public void clearHandler(View view) {

    userValue.setText("");

    }



    private float convertCelciusToFahrenheit(float inputValue) {

    return ((inputValue * 9) / 5) + 32;

    }



    private float convertFahrenheitToCelcius(float inputValue) {

    return ((inputValue - 32) * 5 / 9);

    }



    private float convertInchesToCentimeter(float inputValue) {

    return (float) (inputValue * 2.54);

    }



    private float convertCentimeterToInches(float inputValue) {

    return (float) (inputValue * 0.393700787);

    }



    private float convertLiterToGallon(float inputValue) {

    return (float) (inputValue * 0.264172052);

    }



    private float convertGallonToLiter(float inputValue) {

    return (float) (inputValue * 3.78541178);

    }



    public void celsiusHandler(View view) {

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    celsiusButton.setChecked(true);

    fahrenheitButton.setChecked(false);

    centimeterButton.setChecked(false);

    inchesButton.setChecked(false);

    literButton.setChecked(false);

    gallonButton.setChecked(false);

    }



    public void fahrenheitHandler(View view) {

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    celsiusButton.setChecked(false);

    fahrenheitButton.setChecked(true);

    centimeterButton.setChecked(false);

    inchesButton.setChecked(false);

    literButton.setChecked(false);

    gallonButton.setChecked(false);

    }



    public void centimeterHandler(View view) {

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    celsiusButton.setChecked(false);

    fahrenheitButton.setChecked(false);

    centimeterButton.setChecked(true);

    inchesButton.setChecked(false);

    literButton.setChecked(false);

    gallonButton.setChecked(false);

    }



    public void inchesHandler(View view) {

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    celsiusButton.setChecked(false);

    fahrenheitButton.setChecked(false);

    centimeterButton.setChecked(false);

    inchesButton.setChecked(true);

    literButton.setChecked(false);

    gallonButton.setChecked(false);

    }



    public void literHandler(View view) {

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    celsiusButton.setChecked(false);

    fahrenheitButton.setChecked(false);

    centimeterButton.setChecked(false);

    inchesButton.setChecked(false);

    literButton.setChecked(true);

    gallonButton.setChecked(false);

    }



    public void gallonHandler(View view) {

    RadioButton celsiusButton = (RadioButton) findViewById(R.id.RadioButton01);

    RadioButton fahrenheitButton = (RadioButton) findViewById(R.id.RadioButton02);

    RadioButton centimeterButton = (RadioButton) findViewById(R.id.RadioButton03);

    RadioButton inchesButton = (RadioButton) findViewById(R.id.RadioButton04);

    RadioButton literButton = (RadioButton) findViewById(R.id.RadioButton05);

    RadioButton gallonButton = (RadioButton) findViewById(R.id.RadioButton06);



    celsiusButton.setChecked(false);

    fahrenheitButton.setChecked(false);

    centimeterButton.setChecked(false);

    inchesButton.setChecked(false);

    literButton.setChecked(false);

    gallonButton.setChecked(true);

    }

    }
    Motorola Droid 4

  6. #5
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    The menu.xml file should look like this:



    Motorola Droid 4

  7. #6
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    The ConverterManifest.xml file should look similar to this:



    Motorola Droid 4

  8. #7
    Android Enthusiast gtr1000rider's Avatar
    Join Date
    Jul 2010
    Posts
    277
    Thanked
    1 times
    Seems like a lot of work for a simple conversion formula. Pretty sweet though.

  9. #8
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    Here is the APK file if anyone wants to test it: converter.apk



    It may be awhile before I load this app to the Market. I just found out that it costs $25 to create an account to be able to upload apps to the Market.



    Screenshots:



    Motorola Droid 4

  10. #9
    Android Enthusiast gtr1000rider's Avatar
    Join Date
    Jul 2010
    Posts
    277
    Thanked
    1 times
    I installed it. The first thing I did was test if -40•F = -40•C and it did. Also 32•F = 0•C. So I can confidently say your formula works. Awesome possum!

  11. #10
    Android Junkie allyAndroid's Avatar
    Join Date
    Jun 2010
    Location
    Ohio
    Posts
    1,413
    Quote Originally Posted by Valkerie View Post
    I installed it. The first thing I did was test if -40•F = -40•C and it did. Also 32•F = 0•C. So I can confidently say your formula works. Awesome possum!


    Thanks for testing, I discovered that I had the calculations backwards and had to fix it plus I added couple of other conversions.
    Motorola Droid 4

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

aa temperature converter

,
android development temperature converter ??
,
android temperature converter code eclipse
,

android temperature converter example

,

android temperature converter tutorial

,
creating a temperature converter using android sdk
,

distance converter in android using eclipse

,

formula celsius to fehrenheit in eclipse

,

how to convert temperature on java eclipse sdk

,

how to create android app that converts fahrenheit to celsius in eclipse

,
java eclipse code for fahrenheit converter
,
java program eclipse converting
,
temperature conversion app in android eclipse
,
temperature converter android code eclipse
,
temperature converter in eclipse android
Click on a term to search our sites for related topics.
Android Forum