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

Running Native .NET Core Apps on Raspberry Pi (ARM)
Easy
  • 2,546
  • 28

Protip

Finally you can run your .NET Core apps on ARM versions of Ubuntu 16.04, 14.04 and Windows 10 IoT. We'll be making a Pi calculation app.

PlatformIO for Visual Studio Code
Easy
  • 731
  • 6

Protip

PlatformIO is an open source ecosystem for IoT development. And now, PlatformIO for Visual Studio Code is coming!

Windows 98 Wrist Watch
Easy
  • 3,782
  • 24

Full instructions

Everyone's favourite Operating System. On your wrist!

The Factory at Exhibition - 4.0 and beyond - [Part 1]
Easy
  • 424
  • 5

Work in progress

Control and Supervision of a true 4.0 Working Factory that will be visible in a public Exhibition using Raspberry Pi, PowerBerry, Win10Iot

Windows 10 IoT Temperature SMT172
Easy
  • 1,526
  • 6

Protip

Read temperature from sensor (SMT172) with Windows 10 IOT, Raspberry Pi and C# UWP.

Detect Faces Using a LattePanda!
Easy
  • 266
  • 3

Full instructions

Want to make a face recognition application? Using existing APIs, it is a relatively simple process!

Add projectSign up / Login
Respect project