Things used in this project

Software apps and online services:
Vs2015logo
Microsoft Visual Studio 2015
Logo things yummo7uv2y
Google Android Things
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

Replications

Did you replicate this project? Share it!

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

Give feedback

Comments

Similar projects you might like

HAL, The Link With The Outside World
Easy
  • 117
  • 3

Full instructions

The HAL (Hardware Abstraction Layer) communicate with sensors and actuators in the most easy way.

Read the signal of the AB quadrature encoder with Theremino.
Easy
  • 224
  • 3

Full instructions

The simplest way to read A B quadrature encoder using Theremino Master.

Theremino SlotViewer, the simplest way to manage slots.
Easy
  • 134
  • 4

Full instructions

Theremino SlotViewer is the very simple way to manage the slots, read the value and modify in real time the value of each slot.

Eddystone beacons with the micro:bit
Easy
  • 161
  • 2

Protip

Experiment with the Physical Web by turning your micro:bit into an Eddystone beacon.

Simple Light LED using Theremino Master
Easy
  • 296
  • 4

The simplest way to switch on a LED or dimming it.

Uploading PiCamera Images to Azure
Easy
  • 916
  • 10

Protip

Use PiCamera to take pictures and upload them to Microsoft Azure.

Add projectSign up / Login
Respect project