You are browsing the archive for WP7.

WP 7.5 Mango ISETool Gotcha

September 15, 2011 in Silverlight

The Isolated Storage Explorer (ISETool.exe) is a command-line tool that comes with the Windows Phone SDK.  It allows you to copy files and directories from isolated storage on the phone (or emulator) to your PC file system.  One use for this is to take snapshots of your database over different versions in order to test upgrade scenarios.

To copy from the emulator’s isolated storage to your computer’s file system use:

ISETool.exe ts xd 11111111-2222-3333-4444-555555555555 “C:\MyApp\DbVersion1″

Where:

  • ts – take snapshot
  • xd – emulator
  • guid – product GUID from WPAppManifest.xml
  • desktop dir – where to copy the isolated storage files

 

To later copy those files from my desktop directory back to isolated storage on the emulator, use:

ISETool.exe rs xd 11111111-2222-3333-4444-555555555555 “C:\MyApp\DbVersion1\IsolatedStore”

 

In this case rs means restore snapshot.

But the restoring wasn’t working for me.  I would restore the snapshot, run my code and no database would be found so my code would create a new database.  It took me a few times to notice that what I was doing wrong was reusing the take snapshot command line and changing ts to rs.

But the problem with that is that the directory that you specify with ts is different than the one needed for rs.  Notice that rs adds “\IsolatedStore” to the end.

Hopefully this will save you from pulling  a few hairs out.

WordPress for WP7

December 15, 2010 in Uncategorized

Just minutes after downloading the WP7 app, I was able to tap out a post. Why did they not use an InputScope that included the word hints?

Posted from WordPress for Windows Phone

Comparing Microsoft Marketplace and Apple App Store

August 12, 2010 in Windows Phone 7

Developers are starting to create games and applications in preparation for the Windows Phone 7 launch at the end of the year. Some applications that I am creating would appear in an Education category if Marketplace had such a category.  The App Store has an Education category.  So I thought I would do a quick comparison of the categories available in each location.

Marketplace App Store
Games Games
Entertainment Entertainment
News & Weather: News News
News & Weather: Weather Weather
News & Weather: Sports Sports
Productivity: Time Management

Productivity: Money Management

Productivity: Task Management

Productivity

Finance

Social Networks Social Networking
Lifestyle: Health &Fitness

Lifestyle: Recreation

Lifestyle: Photography

Lifestyle: Shopping

Lifestyle: More

Lifestyle

Healthcare & Fitness

Photography

Maps & Search: Maps

Maps & Search: Local Search

Navigation
Travel Travel
Business Center: Inventory

Business Center: Dashboards

Business Center: Services

Business Center: CRM

Business Center: Documents

Business Center: Data Collection

Business Center: Field Service

Business Center: Finance

Business Center: Health Care

Business Center: Manufacturing

Business Center: More

Business Center: Real Estate

Business Center: Time & Expense

Business Center: Unified Comms

Business
Reference Reference
Books Books
Tools: Utilities

Tools: Developer Tools

Utilities
 Communication  
  Education
  Medical

 

At first it appeared that Marketplace was missing four more categories than it was because of its use of nested categories.  It turns out that Marketplace is more fine-grained when it comes to Business and it has a Communication category that App Store doesn’t.  But Marketplace is missing categories for Education and Medical.  I think it is a huge oversight to not have a top-level Education category in Marketplace.

Now let’s compare the Games categories between the two stores:

Marketplace App Store
Action Action
Classic  
Board Board
Card & Casino Card

Casino

Education Educational
Family & Kids Family

Kids

Music Music
Driving Racing
Strategy Strategy
Simulation Simulation
Sports Sports
Word & Puzzle Puzzle

Word

  Adventure
  Arcade
  Dice
  Role Playing
  Trivia

 

It is surprising to see that App Store has 5 more categories than Marketplace with Classic being the only category that Marketplace has that App Store doesn’t.

I suspect that as more applications are developed for (or ported to) the Windows Phone 7 that developers will be asking Microsoft to add categories to Marketplace.

Visual Studio Project Template for Caliburn.Micro WP7

August 10, 2010 in Windows Phone 7

Two days ago, Rob Eisenberg released a sample of Caliburn.Micro for Windows Phone 7.  I spent a few minutes today creating a Windows Phone 7 Caliburn.Micro project template for Visual Studio 2010 from that project.  It should help you get started more quickly on your WP7 projects.

Download and copy the Caliburn.Micro.WP7.zip file to the following directory on your computer: \Documents\Visual Studio 2010\Templates\ProjectTemplates\Silverlight for Windows Phone

Start up Visual Studio and create a new project.  You will see an option for Caliburn.Micro (WP7):

image

After the project is created, you will see the following project structure:

image

Fix the reference to Caliburn.Micro (download from CodePlex), set a breakpoint in the constructor of MainPageViewModel, and run the application.  You will see that when navigation happens to MainPage, that MainPageViewModel is created. 

Continue execution to view the app in the emulator:

image

I like Rob’s idea of doing View-first for pages and ViewModel-first for components on a Page.  I have chosen the following naming: MyPage/MyPageViewModel (pages) and MyView/MyViewModel (user controls).

WP7 UI Pattern: Pivot Views

August 4, 2010 in Windows Phone 7

image

The user is shown multiple views of the same item side by side using the Pivot control. The buttons on the Application Bar remain consistent across Pivot pages.

Example: E-mail (all, unread, urgent, flagged); Appointment (details, attendees)

(video)

WP7 UI Pattern: Layered Panorama

August 4, 2010 in Windows Phone 7

image

The user is presented with a panorama containing multiple pages of content. The first is a list that acts as a menu. Clicking on a list items takes you to another panorama with the specific content. The Application Bar is not used.

Example: AP Mobile

(video)

Summary: UI Design & Interaction Guide for Windows Phone 7

August 2, 2010 in Design, Windows Phone 7

image 

The July 2010 release of the UI Design and Interaction Guide for Windows Phone 7 is a document that all designers and developers of Windows Phone 7 applications need to become thoroughly familiar with.  It is a beautifully laid out 101-page document that discussed the phone’s capabilities, controls, and interactions.  As I read the guide, I took notes that I could refer to quickly as needed.  The result is a 10-page summary of the UI Design & Interaction Guide for Windows Phone 7.  I hope others find it useful.

Summary of Windows Phone 7 Application Certification Requirements

July 28, 2010 in Windows Phone 7

 

image

Updated for Version 1.3 released September 2010.

After going through the Windows Phone 7 Application Certification Requirements document, I created this summary of the main points for quicker reference than the 27 pages of the September 2010, version 1.3 document.

Size:

· Over the air install up to 20MB;

· disclose additional data package if greater than 50MB;

· max XAP size 400MB;

Images:

Description Pixels File Type Required Location
Application Icon 62 x 62 PNG Required XAP
Application Tile Image 173 x 173 PNG Required XAP
Device application icon 99 x 99 small173 x 173 large PNG, 262 dpi Required Marketplace catalog
Desktop application icon 200 x 200 PNG, 262 dpi Required Marketplace catalog
Panoramic background art 1000 x 800 PNG, 262 dpi Optional Marketplace
Screenshot 480 x 800 PNG 1-8 Required Marketplace catalog

Performance:

· First screen render within 5 seconds (use splash screen)

· Responsive to user input within 20 seconds

Prompt User:

· Chat, instant messaging, or other person-to-person communication applications that all creation of accounts via phone device, must verify that user is at least 13 years old

· “Opt-in” consent for publishing personal information to any service or other person

· “Opt-in” consent for push notifications

· User-friendly error message on exception

· Visual progress bar with cancel option for time consuming activities

· Back button in games to present in-game pause menu or main menu with resume option

· Message if Location Service turned off in a location-aware application

· Explicit permission on first use of toast or tile notification

· Explicit permission on first run of application under a locked screen

· Apps that play their own background music must ask before stopping or adjusting music playback from Music + Video Hub

Settings screen:

· Enable/disable toast notification

· Enable/disable tile notification

· Enable/disable application from running under a locked screen

· Use/Override music from Music + Video hub

· Control own background music/adjust hub music (ex: volume)

Restrictions:

· May not require the user to pay outside of Windows Phone Marketplace to activate, unlock, upgrade, or extend usage of the application

· May not sell, link to, or promote mobile plans

· May not consist of, distribute, link to, or incent users to download, or otherwise promote alternate marketplaces for applications and/or games

· Must not jeopardize the security or functionality of phone devices or Marketplace

· Advertising must comply with http://advertising.microsoft.com/creative-specs

· Apps that allow purchase of music content must include Windows Phone music Marketplace as an option.

· For music not purchased through Windows Phone music Marketplace, app must include its own playback

· Content restrictions include: licensed, copyrighted, illegal, obscene, indecent, violent, defamatory, libelous, slanderous, threatening, hate speech, discriminatory, adult-related, promotes illegal activities, excessive alcohol, tobacco, weapons, drugs, violence, profanity

· PInvoke, COM interoperability, debug symbols, reflection were it affects phone capabilities, uncaught exceptions

· Must not include viruses, malware, or malicious software

Windows Phone 7 Presentation at Desert Code Camp 2010

May 17, 2010 in Silverlight, Windows Phone 7

Last Saturday I presented at my second Desert Code Camp.  The presentation PowerPoint and code for “Windows Phone 7 Silverlight MVVM App the Test-Driven Way” is now available.

View more presentations from Mark Tucker.

The code consists of two phone projects.  If you run the first, you will get the application UI. Running the second will bring up the test viewer.

Get the code here.

NOTE:

I told those attending the session that a video of the presentation would be available.  But due to an issue with Camtasia Studio, the video was not recorded.

Thanks again to all those who attended the presentation.  Let me know about the COOL apps you write for WP7.