Things used in this project

Software apps and online services:
Vs2015logo
Microsoft Visual Studio 2015
Ide xamarin studio
Xamarin

Code

Code Behind FileC#
Main function from code behind
 using Android.App;
 using Android.Widget;
 using Android.OS;
 using System;
 
 namespace TipCalculator
 {
     [Activity(Label = "Tip Calculator", MainLauncher = true, Icon = "@mipmap/icon")]
     public class MainActivity : Activity
     {
         EditText inputBill;
         Button cmdCalculate;
         TextView outputTip;
 
         protected override void OnCreate(Bundle savedInstanceState)
         {
             base.OnCreate(savedInstanceState);
 
             // Set our view from the "main" layout resource
             SetContentView(Resource.Layout.Main);
 
             inputBill = FindViewById<EditText>(Resource.Id.edittext1);
             cmdCalculate = FindViewById<Button>(Resource.Id.button1);
             outputTip = FindViewById<TextView>(Resource.Id.textView3);
 
             cmdCalculate.Click += onCalculateClick;
         }
 
         void onCalculateClick(object sender, EventArgs e)
         {
             var bill = double.Parse(inputBill.Text);
             outputTip.Text = (bill * 0.05).ToString();
         }
     }
 } 
Deployment ErrorPlain text
Deploying package to 'emulator-5554'

The package does not support the device architecture (x86). You can change the supported architectures in the Android Build section of the Project Options.

Deployment failed. Architecture not supported.

Credits

418553
Achindra Bhatnagar

Windows Kernel Hacker, IoT Hobbyist, Enthusiast, Developer and Dreamer

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Winforms+Lattepanda=Control Everything With Your Mouse!
Easy
  • 1,673
  • 11

Protip

If you use other things instead of the LED, then you can use your mouse to control everything!!

Sorting Hat: Circuit Playground Express Starter Project
Easy
  • 403
  • 5

Protip

Which Hogwarts House do you belong in? A quick first project for this beginner-friendly board from Adafruit.

Getting Started - Cortana Skills, Bot Framework, RaspberryPi
Easy
  • 1,619
  • 10

Protip

Gentle introduction to Cortana Skills and Bot Framework connecting to Raspberry Pi, using Cortana Skills to Echo sent message.

Connect Raspberry pi and PC with TCP/IP using Csharp
Easy
  • 391
  • 1

Connect a Raspberry Pi Model 2|3 B (Windows IoT core) and PC (Wiindows 7,8,10) with TCP/IP protocol using Csharp Network Classes

Awesome Azure IoT
Easy
  • 344
  • 1

A curated list of awesome Azure Internet of Things projects and resources.

Microsoft Workshop Setup Guide
Easy
  • 1,471
  • 12

Protip

A collection of screencasts for setting up your laptop for the Hackster/Microsoft IoT Roadshow events.

Add projectSign up / Login