InfernoRed Blog

Going Native: Using Android Views In Xamarin.Forms

Posted by Ed Buhain on May 30, 2017 11:05:39 AM

 

We previously walked through how to get started with a cross-platform Xamarin.Forms project, but what if we started with an Android app built in Android Studio? Here's a way to re-use a lot of our Android code and layouts with Xamarin.

Read More

Topics: Android, Xamarin

Xamarin.Forms: A Fire TV Quick Start

Posted by Ed Buhain on Apr 28, 2017 10:13:11 AM

 

How hard is it for a .NET developer to build a Fire TV app with C#? With the right tools, it's pretty easy; a Fire TV app is just an Android app optimized for viewing on a TV.

Since .NET's inception, my language of choice has been C#. For the C# developer, Xamarin is a useful tool for deployment to more than one platform, such as Windows, Android, iOS, or in our case, Fire TV. With Xamarin, we can build one set of back-end tests and code in C# and share the same code among all of those platforms.

Xamarin.Forms provides even more shared functionality: with Xamarin.Forms, we can even build our views using a set of controls common to all of our target platforms.

Read More

Topics: Android, Fire TV, Xamarin

Customizing the UI for Fire TV (and Android TV)

Posted by Pamela Vong on Apr 20, 2017 3:01:10 PM

Why would you want to build apps for Fire TV? Well, Roku may be the current leader in the market for streaming TV boxes, but Amazon Fire TV's share of the market isn't too far behind at 2nd place based on data collected from comScore as of December 2016.[1] And like other Amazon Fire OS devices, Fire TV is built on top of Android, so we can leverage most of the existing Android libraries and tools to build our TV apps, making them useable on both Fire TV and Android TV devices!

If you've used a lot of Fire TV apps before, you may have noticed many of them have a very similar look-and-feel. This is because many (if not all) of them have built their apps on top of the Android Leanback support library, so they usually end up looking similar to this out-of-the-box design:

Read More

Topics: Android, Fire TV, Android TV, Leanback, UI, Java

Obfuscating Shared Preferences in Fire TV Apps

Posted by Ed Buhain on Apr 11, 2017 9:58:48 AM

 

What's the best way to keep secure data in our local Android or Fire TV shared preferences? Well, don't do it. If someone's curious enough, it's not too hard to dig into the Android file system to look at a particular app's preferences.

What could we do to keep curious users from breaking our app by tampering with the settings? Perhaps we could make it a little less convenient to inspect or modify the settings.

Read More

Topics: Android, Fire TV

Kill AXML - Programmatic ListViews in Xamarin Android

Posted by Lee Richardson on Mar 16, 2017 2:26:38 PM

Displaying list data in Android using a custom layout is traditionally accomplished by inflating an AXML file for each row of data.  However, in my article introducing EasyLayout.Droid I made the case that AXML files slow development speed and decrease cross platform re-usability.

Read More

Topics: Android, Xamarin

Cross-Platform UI Testing with Specflow, Xamarin, and CodedUI: Part 3

Posted by Matt Wilhelm on May 19, 2016 11:20:10 AM

Welcome to Part 3 of my blog series on cross-platform UI testing.  For those who are just joining us, in Part 1 we discussed the high-level strategy for cross-platform UI testing using Xamarin.UITest and CodedUI, and introduced SpecFlow as the glue that holds everything together.  I also identified a couple of external resources that helped me put this together including Rob Gibbens' article about BDD Tests with Xamarin.UITest and SpecFlow; and finally we created initial cross-platform .  In Part 2 of this series, we took a big step towards implementing Xamarin.UITest patterns on windows by implementing Xamarin's IApp interface and defining a startup process so we could control the application's lifecycle.  In this post we will complete our journey by defining screens, creating CodedUI UIMaps, setting up our Xamarin project and ultimately creating our first tests using SpecFlow and Gherkin.

Read More

Topics: Xamarin, Xamarin.UITest, Android, UWP, Windows 10, CodedUI, MVVMCross, TDD, iOS

Cross-Platform UI Testing with Specflow, Xamarin, and CodedUI: Part 2

Posted by Matt Wilhelm on May 11, 2016 11:13:25 AM
Welcome to my blog series on cross-platform UI testing.  In Part 1 of this series, I discussed my strategy for corss-platform testing and identified a few key gotcha's to look out for along the way.  I also provided a link to the completed source code, should you like to follow along or find something specific.  Today we will go over implementing the initial project boiler plate.  Windows requires the most work, so lets get going!
Read More

Topics: Xamarin, Xamarin.UITest, Android, UWP, CodedUI, MVVMCross, TDD, iOS

Cross-Platform UI Testing with Specflow, Xamarin, and CodedUI: Part 1

Posted by Matt Wilhelm on Apr 22, 2016 1:40:13 PM

Just about every developer is familiar with the benefits and costs of Test-Driven Development.  Regardless of your personal stance on the topic, it is hard to argue against the evidence that automated testing often pays huge dividends in improved quality, reliability, and efficiency.  In fact, on most well-managed projects these days unit testing is a first class citizen. 

Read More

Topics: Xamarin, Xamarin.UITest, Android, UWP, Windows 10, CodedUI, MVVMCross, TDD, iOS

About Us

InfernoRed was founded in 2012 with the mission to be a software development company for and by developers. The InfernoRed team has a passion for building cutting-edge software. Our culture is a reflection of the incredible talent that we have assembled since starting in 2012.

Subscribe to Email Updates

Recent Posts