Categories
Windows Phone

From Isolated Storage to LocalFolder – Getting Folder Size

If you want to determine the space used for a particular folder in Isolated Storage you have to work recursively through the files in the folder (and sub-folders) and determine their sizes. In the Windows API the StorageFolder gives the indication that you can get the BasicProperties for a folder and use this to get […]

Categories
Windows Phone

Build Windows Phone Apps Without Any Code

Microsoft have today announced Windows Phone App Studio Beta (https://apps.windowsstore.com/default.htm). This is a web based tool which allows you to build your own app by putting together data sources and customising the look and feel. The instructions list just four basic steps and there is a library of templates to start from. This might not […]

Categories
Windows Phone

Charming ApplicationModel

My previous couple of posts have been related to the Sharing functionality provided by the Charming libraries. This one looks at a smaller (but no less exciting) component. For Windows Phone development if you want to retrieve the app information at runtime you have to read the WMAppManifest.xml file included in the package. In Windows […]

Categories
Windows Phone

A Trip Around Charming Share

The Charming libraries for Windows Phone are a set of (currently) six components for Windows Phone development with the mission of providing more code consistency with Windows 8. Following on from the NFC component, this post will cover its cousin the Share component. Windows Phone provides a number of classes in the Windows.ApplicationModel.DataTransfer namespace but […]

Categories
NFC

Introducing Charming NFC Share

In my talk this week I demonstrated a simple library for sharing a single Uri over NFC. I’ve now completed packaging it up and it is available on NuGet – https://www.nuget.org/packages/InTheHand.Phone.Nfc/ This is a very simple component to use in your app requiring just three lines of code to call. It requires the Windows Phone […]

Categories
Bluetooth NFC

Resources from Bluetooth and NFC for Windows Phone and Beyond

As promised here are the resources from yesterday’s session on Bluetooth and NFC. I’ve begun uploading the slides and code to this SkyDrive folder:- http://sdrv.ms/143OZD7 I have a few finishing touches to put on the sharing library for NFC – it will be up on NuGet and CodePlex shortly.  

Categories
Windows Phone

Page Header Styles

The page header is the small text you see across the top of most apps, often in all uppercase. When you create a new Windows Phone app from the default templates you’ll get something like this created in your MainPage.xaml <TextBlock Text=”MY APPLICATION” Style=”{StaticResource PhoneTextNormalStyle}” Margin=”12,0″/> The annoying thing about this is this is not […]

Categories
Bluetooth

Update to 32feet.NET for Windows Phone

Version 8.1 of 32feet.NET for Windows Phone is now available via NuGet. This package adds some helper functionality for Bluetooth development. In particular this version includes the RfCommServiceId (designed to match the Windows 8.1 API) to provide information about various standard RfComm profiles. You can use this when connecting a StreamSocket or to filter devices […]

Categories
Windows Phone

Sending an Email with an Attachment on Windows Phone (Sort of)

From it’s initial release Windows Phone has had a method to programmatically send an email from code. In keeping with the mantra that the user is in control it has always been a method to populate the email but allow the user to decide to modify, send or cancel. Despite much demand the ability to […]

Categories
Windows Phone

Deployment Parts in a Windows Phone App

My apologies in advance as this is a little bit of an obscure scenario but I thought I’d share this information in case others found it useful. Imagine if you will the following scenario. You have a dll project which can make use of other “provider” libraries. These are optional and the main dll should […]