Category

Xamarin

Building Mobile UI Tests using REPL

By | Android, Testing, UITest, Xamarin | No Comments

This is post 4 of 4 in the series “Xamarin Test Cloud” Building Mobile UI Tests using REPL REPL builds a list of methods to automate a mobile app for use in a UI test. The typical workflow starts with the tree command to list elements in the current view. Next, app methods wait for elements, enter text, tap buttons and so on. Then the copy command saves your REPL activity to the clipboard. Finally, you paste REPL commands into your test method. Once you paste the REPL output, you can clean it up and add assertions.

The screenshot shows the Android emulator on the left, and…

Read More
Xamarin UITest Word Cloud

Mobile Testing in the Xamarin Test Cloud

By | Android, Android, C#, iOS, Testing, UITest, Visual Studio, Xamarin, Xamarin Test Cloud | No Comments

Mobile UI testing requires the same power as web UI testing. Certainly we need the basics: identify on-screen elements, automate, and make assertions. But that’s not going to be enough for teams building mobile apps under rapidly changing conditions; not with hundreds of new, evolving technology combinations. So what are the new rules? Here’s what we need, right-out-of-the-box…

Read More
UISegmentedControl Text Color Change

Xamarin Quick Tip – Changing the UISegmentedControl Text Color

By | C#, iOS, Xamarin | No Comments

In iOS, the UISegmentedControl is a popular control. It allows you to present your data in an organized, tabbed fashion. When a segment is selected, the text on the segment is changed to the Background Color of the control, this text can sometimes become lost and difficult to read. To get around this problem, this post will show you how to change the UISegmentedControl Text Color when a segment is selected. UISegmentedControl Color Properties The UISegmentedControl has some direct color properties, I will outline the most important ones here. First we have the Tint Color, which is used as the…

Read More
iPad and iPhone

Xamarin Quick Tip : Identifying if a device is an iPad or an iPhone using UserInterfaceIdiom

By | C#, iOS, Xamarin | No Comments

If you simply need to determine whether the device using your application is an iPad or iPhone in Xamarin.iOS without additional ceremony, look no further. The UserInterfaceIdiom can be used to solve this problem. Identification of the Device Type using UserInterfaceIdiom In order to identify the device type using the application. The following code can be used:

The UserInterfaceIdiom property will return any of the following enum values: CarPlay Pad (iPad) Phone (iPhone) TV Unspecified Alternatives for a more granular Device Identification If you require a more granular approach to device identification, such as distinguishing between the specific models of each…

Read More
a-rise-in-demand-for-xamarin-consultancy

A Rise in Demand for Xamarin Consultancy

By | Xamarin | No Comments

Since the Microsoft Acquisition of Xamarin, Falafel has seen a major uptick in demand for services on Xamarin Technologies and in the last 3 months, 4 major corporations have hired Falafel to architect and implement Xamarin based solutions for over $1,000,000 in services revenues. When we first heard that Microsoft was acquiring Xamarin back in February this year, we at Falafel Software were both excited and curious. The team here has always loved Xamarin and we are all Microsoft Certified Professionals so this partnership made sense as we work with technologies from both companies. The surprising aspect was since the…

Read More

Accessing Android Application Context outside Activity in Xamarin

By | Android, Android, Xamarin | No Comments

In Android world, it’s quite common to have a scenario where you want to access Application Context outside Activity or Fragment. One scenario is that if you are building an application that needs Multiple Language support and you want to access Strings from your ViewModels to show Localized strings for error / success messages. Traditionally in Android, the way to get access to Application Context was to hold a Static reference to it when the app launches and then use it later on. The way to achieve this is to inherit from Application in Android and hold your Static Application…

Read More
Filtering data with the Search Bar

Xamarin Quick Tip – Adding a Search Bar to a UITableView in iOS

By | .NET, C#, iOS, Mobile, Multi-Device, Visual Studio, Xamarin | 2 Comments

A common bit of functionality required in a mobile application is including some type of search functionality in an application. Typically this takes the form of a search bar along with tabular results. In this article, I will walk you  through adding simple search functionality to a UITableView in iOS. Setting up the project Create a new blank iOS universal application with a storyboard. In the storyboard create a new UITableViewController and assign it the class name of FruitTableViewController. Name the table tblFruit. Finally, change the type of table cell to Basic, and assign it the reuse identifier of FruitCellId. If you have trouble setting…

Read More
Swipe Left on Pineapple

Xamarin Quick Tip – Swipe Left To Delete

By | .NET, C#, iOS, Mobile, Multi-Device, Visual Studio, Xamarin | No Comments

In some projects, it may be requested to be able to swipe left to delete an item in a table. In order to implement this, there is a handy component called SwTableViewCell that provides this valuable functionality.  What is missing however, is decent documentation to get it up and running with Xamarin. In this article, I will walk you through adding this component to an already existing table view. Setting up the project The first thing we need to do is to build an application that has a table populated with some items. Create a new C#, Universal iOS application,…

Read More
Component in Solution Explorer showing "Error"

Xamarin Visual Studio: Error adding to project: Cannot get libraries from incompatible component

By | Visual Studio, Xamarin | One Comment

I recently came across a scenario with Xamarin Visual Studio where one developer would add a new Xamarin Component in to the solution and check in the bits and then a different developer would pull down the latest bits and receive a compilation error specific to the class or classes of the newly added component not being found. In the solution explorer the component showed as “[ComponentName] (Error)”. Double-clicking on the component brought up the details and at the top was a little red error message that stated “Error adding to project: Cannot get libraries from incompatible component”. Turns out the trick for resolving…

Read More

Xamarin Android – Launch App From Browser

By | Android, Android, Xamarin | 2 Comments

Often times your mobile application will have an associated website and a typical scenario is to allow the user to open the  mobile app from the site when browsing on their mobile device.  Here is how you can accomplish this in Xamarin Android. First is the activity that will be the entry point for links coming from the browser.  In my case I just want to grab the passed in parameters, which we will talk about later, and then kickoff my main activity and that is all that is going on here.  Because this activity has no associated layout, i.e. we aren’t…

Read More
Creating a new Xamarin iOS Application

Xamarin Quick Tip : Add a Full Color Image to the Navigation Bar

By | .NET, C#, iOS, Visual Studio, Xamarin | No Comments

In iOS the Navigation Bar is not one of the easiest things to stylize. In a recent project, I needed to add a full color image of a logo on the left hand side of the Navigation Bar. Here is how I accomplished this requirement. Setting Up the Project Create a new Xamarin Blank iOS project in Visual Studio. I’ve named mine NavBarFullColorLogo. Creating the Storyboard Once the project has been generated. Add a new Empty Storyboard item to the project, name it Main.storyboard. Open the Info.plist file, and select Main.storyboard as the Main Interface. Open the AppDelegate.cs source file, and…

Read More
Blank iOS Appliation

Xamarin Quick Tip : Setting a UI Table View Background Image

By | .NET, C#, iOS, Visual Studio, Xamarin | No Comments

Full-screen background images are an attractive design feature in many mobile applications. In this article, I will show you how to set an iOS table view background image using C# so you can achieve full screen backgrounds on your Table View Controllers in your application. Creating the Solution Open Visual Studio, and create a new Blank iOS Application. I’ve named mine BackgroundImage. Creating the Storyboard Once the solution has finished generating, add a new Empty Storyboard to the solution, name it Main.storyboard. Next we will need to assign the storyboard to our application launch sequence. To do this open the info.plist file, and under…

Read More
EventBoard

EventBoard with Wings – EventBoard Corporation

By | .NET, Android, AngularJS, Azure, Giving Back, iOS, JavaScript, Windows Phone, Xamarin | No Comments

4.5 years ago, we at Falafel, were determined to enter the Mobile market to prepare ourselves as experts to consult and train on ALL mobile subjects for this huge revolution.
We had to start an internal project at Falafel to build experience and get the team involved in a real mobile project before we could dive into customers’ projects.
We decided at the time that building a Conference app for iPhone, Android and Windows Phone was the right project for us and it would also help run some of the Code Camps and User Groups conferences in the Silicon Valley area.

Read More

Get your Xamarin Android eBook here!

By | Android, Mobile, News, Visual Studio, Xamarin | 2 Comments

Recently Falafel published a series of blogs to help Android developers build awesome apps leveraging Xamarin Android as a technology to build and deploy Android apps. This series takes you all the way from getting everything installed to publishing to the store. To make it easy for you, we followed that up with an eBook that you can download and take with you to get started with Android development on the Xamarin platform. Whether you are just getting started or a pro Android developer, there is something in this eBook for you. Some of the highlights for this eBook are:…

Read More

FalafelCON app now available, built with Xamarin

By | Xamarin | No Comments

I am super excited to announce the availability of the FalafelCON conference mobile app on all 4 mobile platforms  – iOS, Android, WP, and W8.1.  The FalafelCON app is a whitelisted app that is born as a result of us rewriting the larger parent app,  EventBoard mobile,  using the Xamarin Platform which will be available this fall. These two apps are built from the ground up using Xamarin.Forms technology. By using Xamarin.Forms we are able to achieve > 95% code reuse on iOS and Android. We also built native apps for Windows Phone 8.1 and Windows 8.1 using the Universal Windows Apps model…

Read More

Day 31: Distributing your Android App and Wrap-up

By | Android, Xamarin | 5 Comments

This is post 32 of 32 in the series “31 Days of Xamarin.Android” Before we wrap up this series, let’s take a quick look at how we can distribute a Xamarin.Android Application. The most common way to distribute your android application is using the Google Play Store. To distribute an app on the Google Play Store, we need to create an “APK” file. Let’s take a look at how we can do that from Xamarin Studio – In Xamarin Studio, make sure you switch your Configuration to “Release” mode. After that, click on “Build” menu option and then click on…

Read More

Day 30: Monitoring your Xamarin.Android applications using Xamarin Insights

By | Android, Xamarin | No Comments

This is post 31 of 32 in the series “31 Days of Xamarin.Android” Monitoring how well your app is doing is an absolute necessary thing now a days. Even the small company / indie developers are actually competing for app usage time with big companies like Facebook, Twitter, etc. So if your app crashes and you wait for your users to tell your about it, chances are your users will never ever come back to your app. Xamarin provides a wonderful tool called Xamarin Insights for monitoring your mobile applications (be it be Android or iOS). In today’s post we…

Read More

Day 29: Plugins for Xamarin.Android

By | Android, Xamarin | No Comments

This is post 30 of 32 in the series “31 Days of Xamarin.Android” Any Xamarin series will not be complete without talking about the awesome Plugin ecosystem that Xamarin has. Xamarin’s Github Repository has the whole list of Plugins for Xamarin that are developed by folks at Xamarin and also community Xamarin developers. A Plugin for Xamarin is just DLLs which are often distributed using Nuget or Xamarin Component store. The plugins abstract hard to do functionality over a simple and common API. Today, we are looking at Plugins for Xamarin.Android but a majority Xamarin plugins are, and become powerful,…

Read More

Day 28: Using SQLite.Net with Xamarin.Android

By | Android, Xamarin | 3 Comments

This is post 29 of 32 in the series “31 Days of Xamarin.Android” Today, we will explore on how to use SQLite.Net with Xamarin.Android. SQLite.Net is a open source library for SQLite written in .NET to allow light-weight mobile applications (or others) save data in a local SQLite database.   SQLite.Net implemented is written by Frank A Krueger, and the source of the project is all up on Github. To use SQLite.Net in your Xamarin.Android application, you need to add a Nuget package called “SQLite-net PCL”

Note: There are a lot of SQLite Nuget packages, make sure you pick…

Read More

Day 27: Using HttpClient with Xamarin.Android

By | Android, Xamarin | 9 Comments

This is post 28 of 32 in the series “31 Days of Xamarin.Android” Today, we will look at how we can use HttpClient to read data from a remote API and display it in a List (RecyclerView). We are looking at HttpClient in today’s example, but you can use any library like WebClient, RestSharp or any other library of your choice. Keeping to the theme of showing Star Wars data in this series, today, we will consume the Star Wars API https://swapi.co/documentation. To use HttpClient in your Xamarin.Android Application, you should first install the HttpClient Nuget Package –

 …

Read More

Day 26: Remote Notifications with Parse

By | Android, Xamarin | 3 Comments

This is post 27 of 32 in the series “31 Days of Xamarin.Android” Today, we will explore how to create Remote Notifications in Xamarin.Android. To do remote notifications in any Android Application, we need to work with Google Cloud Messaging (GCM). This process of working with GCM is a bit complicated and there are number of providers out there that take care of this complicated procedure for you and expose simple APIs for you to hook into. For this sample, we will take a look at how to use Facebook’s Parse but you can use any Push Notification Provider there…

Read More

Day 25: Local Notifications

By | Android, Xamarin | 4 Comments

This is post 26 of 32 in the series “31 Days of Xamarin.Android” Today, we will explore how to create Local Notifications in Xamarin.Android. Notifications in Android are use two types of layouts – Base Layout Expanded Layout Base Layout Notification Base Layout Notification is the simplest form of Android Notifications. The Base Layout Notifications consist of the following – A Notification Icon. This is a simple Android Drawable Resource Image that indicates either the originating app icon or type of the notification shown. A title for the notification. Additional text for the notification. Timestamp at which the notification is…

Read More

Day 24: Toasts and Snackbars

By | Android, Xamarin | One Comment

This is post 25 of 32 in the series “31 Days of Xamarin.Android” Today, we will explore common ways to show feedback to users in Android. The most common way in Android being Toasts and Snackbars is the new way of showing alerts to users that can be acted upon. Snackbars require the Design Support Library. Toasts Toast provides a simple way to show feedback to users after an operation is complete. Toast appears on the bottom of the screen, only taking up the same that is required for filling the message. Let’s see how a simple Toast looks like…

Read More