Dialing a number using DependencyService in Xamarin.Forms

OldPhone.stockAs you can probably tell from my previous posts, I love Xamarin.Forms; principally because of XAML and DataBinding.  It is just easier to create a cross-platform (iOS, Android and Windows Phone) with Xamarin.Forms than any other way.

Sometimes however, you do need to reach down to the native code to accomplish something that just isn’t wrapped in Xamarin.Forms.  One good example is dialing the phone. Let’s build an application that does just that.

Continued here

 

Share
Posted in Xamarin | Tagged , | 1 Comment

Yet Another Podcast – Reboot!

Yet Another Podcast (YAP) had quite a run in its first iteration.  We had (among many others), onair_istock_thumb.jpgScott Guthrie, Miguel de Icazza, Scott Hanselman, Charles Petzold, John Papa, Laurent Bugnion… the list is too long.

Reboot

The last show, however, was last year, show #135 with Miguel de Icazza.  It is time to restart, inviting industry leaders in the Xamarin and .NET world to come back and bring us up to date.  So…  our first new show will be May 13, and we’ll try for at least two shows per month.

I’m working on setting up a mailing list so that you can (optionally) be informed when a new show is available.  At a minimum, we’ll be available through iTunes and Stitcher as well as this site.

More soon….

 

Share
Posted in Essentials | Leave a comment

The $20,000 Xamarin Programmer

If Xamarin programing is going to be how you make your living,  then I highly recommend this list of hardware and software.

iOS, OSX, Android, Windows Phone, Windows

 

ParallelsIf you are going to develop on both Mac and Windows, it is painful to switch back and forth between machines.

Ideally, you’ll run Windows on a Mac, using Parallels or something similar. Parallels is the right thing, but you need hardware that will fully support dual operating systems.

MacPro

MacProBut even a fully tricked out MacBookPro is not quite powerful enough to make this entirely painless.  When compiling in Windows, I find that the Mac slows to a crawl.

The solution is to get serious and buy a MacPro (desktop) with enough memory (32GB) and enough Cores (6) to never experience a slow down.  You’ll also want to get a lot of storage, I recommend at least a Terrabyte of Flash storage.  This configuration will set you back just over $5,000.

 

Continued here

 

 

Share
Posted in Essentials, Opinion, Product Reviews, Xamarin | Tagged , | 2 Comments

Macbook Pro Retina 16GB/512GB For Sale

15.4-inch MacBook Pro 2.3GHz Quad-core Intel i7 with Retina Display

16GB of memory and 512GB Flash drive. mac4sale

It is one year old, in excellent condition and has 2 years left on AppleCare.

Cost me $3200, asking $1600.

Email to jesseliberty@gmail.com or  339-201-6010

 

 

[Reason for sale, acquisition of another MacBook Pro, A Macbook Air and a MacPro. I gotta’ sell this or my wife will kill me. Save a life, call me.]

Share
Posted in Essentials | 2 Comments

Xamarin.Forms: Segmented Control

iOS has a very useful segmented control.   It is, essentially, a set of radio buttons that look more like an array of normal buttons…

SegmentedControl

 

It would be great to have this on iOS and Android, and by the way I’d like it to work in Xamarin.Forms.  So I set out to write it, and I did so the way I do, which is to first see if someone else has already done it(!)  Sure enough, my buddy Venkata pointed me at Chris Pellett’s project on GitHub.  It does, at least to a first approximation, exactly what I want.

 

Read more

Share
Posted in Xamarin | Leave a comment

Instructor’s Motto

My mistakes are part of your learning

MyMistakes(With apologies to Shawn)

 

Share
Posted in Essentials | Leave a comment

Xamarin: Sliding Windows

Sliding Windows

Call it a sliding window, a drawer, a hamburger; it is the latest craze in navigation.  You click on the ubiquitous icon of three lines and the page slides over to reveal… Well whatever you want.  Often it reveals navigation choices.

So the question arises: how do you do this in Xamarin.Forms?  I have looked at a number of sources and samples and have synthesized them into an approach I like.

Start with a Xamarin.Forms Application

The technique I’m going to describe is designed to work with Xamarin.Forms. All of the work is done in the PCL.  Begin by creating a BaseContentPage which derives from ContentPage and adds a NavigationPageName.  This will let pages identify themselves,

Continued here.

Share
Posted in Xamarin | Tagged , , , | Leave a comment

How to send and receive posts safely

By now, all my friends and relatives know that if theyStop right there receive an email, even from someone they know, they should not click on any links. (Danger, Will Robinson).

But I like sending links to important articles or videos.  How can I help my friends and relatives feel safe and yet open the email.

Easy, I send each of my friends and family an email that says:

“Please check this email by writing back and asking if I really sent it, or even better by calling me at 339-201-6010  From now on, when I send you email with a link, I will put the word fadoodle* at the bottom, so that you know it is really from me. Please do the same if you are sending me a link”

*Fadoodle is any made up word and not the one I use

This simple mechanism reassures the recipient that the email really came from you.  You can use any word, but you are best doing what you would do with a password: the longer the better.

There definitely are more secure ways to do this, but this is sufficiently secure for me, and it is painless.

Fadoodle

Share
Posted in Essentials | Leave a comment

10ish Cool New Products

What follows are products I’ve recently discovered, that now I can’t live without.

Back Pack

Let’s start with the best backpack I’ve ever owned

This is the Cocoon, which sells for about $100.

There are two main pockets. TCocoon pockethe larger has a suspended pocket for your Mac (or if you insist, your Lenovo ) and a second one for your iPad (Surface?).

The outer pocket is where the magic happens.  There are criss-crossed strips of expandable nylon that securely hold everything from your USB stick to your power supply, iPhone or anything else you carry.  It makes finding the wire you need right now, a snap.

Run out of room? They also sell rectangular supplements that do the same, but slip into your backpack, for the stuff you use less often.

Continue reading

Share
Posted in Essentials, Opinion, Product Reviews | 2 Comments

Xamarin MVP

What can I say, I’m truly grateful and proud…

MVPBadgeTall

 

Keeping good company

Falafel Logo Small White

 

Special thanks to Lino Tadros and Falafel Software for paying me to have way too much fun with Xamarin.

Share
Posted in Xamarin | Tagged , | 2 Comments

Scroll To in Xamarin.Forms Grouping

In a recent blog-post I showed how to use the new Scroll To feature in Xamarin.Forms.  In this posting I’ll show how to go to a particular entry within a group and also how to go to a particular entry.

We start with the code were using in the previous post.  …. The key difference is that we add another parameter to ScrollTo.  Continued here

 

Share
Posted in Xamarin | Tagged , , | 1 Comment

ScrollTo in Xamarin.Forms ListView

Today we tackle another new feature in 1.3: ScrollTo.

This allows us to scroll to the beginning of a ListView or to the end or to a particular entry.  Let’s return to the grouping code we created here.  We’re going to make some minor changes to illustrate ScrollTo

To illustrate how this works, let’s add a button to the XAML which will trigger the scrolling,

The event handler is identified as GoToLastItem.  We’ll implement that in our code behind,

 

Share
Posted in Xamarin | Tagged , , | Leave a comment