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

Contact

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

Getting Started with BBC Micro:Bit
Easy
  • 290
  • 8

Full instructions

This tutorial will show you the basics to get started with BBC micro bit.

Windows 10 IoT Core - Reading Heart Rate Pulses
Easy
  • 852
  • 8

Full instructions

In this short blog post, I will show you how to connect a Heart Rate Pulse Sensor to you Raspberry Pi running Windows 10 IoT Core.

A LoRaWAN "The Things Network" Gateway for Windows IoT Core
Easy
  • 2,055
  • 14

Full instructions

Build your own LoRaWAN "The Things Network" packet-forwarding gateway on Windows 10 IoT Core in native .NET code.

Communicating with OBD-2 (On-Board Diagnostics) Systems
Easy
  • 573
  • 6

Protip

Monitoring Vehicle Speed and Engine RPM using ELM327 USB Car Diagnostic Tool and DragonBoard (or Raspberry Pi).

Data visualization in Power BI with BME280 + Raspberry Pi
Easy
  • 701
  • 11

Full instructions

You learn how to visualize real-time sensor data (BME280 + Pi) that your Azure IoT hub receives by Power BI.

Using WiFi Communication (UDP Protocol) - Example 1
Easy
  • 447
  • 5

Protip

Illustrating the use of WiFi communication (UDP protocol) through examples with DragonBoard and Raspberry Pi 3.

Add projectSign up / Login