Things used in this project

Software apps and online services:
Vs2015logo
Microsoft Visual Studio 2015
Microsoft Xamarin
Logo things yummo7uv2y
Google Developers Android Things

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

Are you in tune?
Easy
  • 182
  • 3

Work in progress

There are many ways/apps/tools to tune an ukulele. Now there is one more,

Test Alexa Skills Offline (Python)
Easy
  • 757
  • 7

Protip

One of the most annoying parts of working on an Alexa skill is constantly having to upload deployment packages and have internet to work.

SerialPorts - Microframework & STM32F4
Easy
  • 148
  • 2

A lab to start using serial ports on STM32F4 from Microframework.

Read/Write Data from/to USB Thumb Drive on Windows IoT Core
Easy
  • 1,946
  • 17

Protip

Work around universal apps that block you from reading/writing data files.

Windows Remote Arduino
Easy
  • 127,198
  • 301

Full instructions

Turn an LED on and off using Windows Remote Arduino.

Hands-on-lab IoT Weather Station using Windows 10
Easy
  • 178,431
  • 272

Full instructions

This example demonstrates how to leverage the power of Windows 10 IoT Core, and create a weather station using the Sparkfun weather shield.

Add projectSign up / Login
Respect project