Coding Thoughts

  • Archive
  • RSS
So I threw the question out earlier today… Dark or Light theme? Initial responses were, well, not so much black and white, more black…. So I set about changing the splash screen to something not so white.
There were a few people who also said they use the Light theme, so I’d be interested on their take on this too.
So… potential new splashscreen? Thoughts? Hit me up on Twitter :) 
Pop-upView Separately

So I threw the question out earlier today… Dark or Light theme? Initial responses were, well, not so much black and white, more black…. So I set about changing the splash screen to something not so white.

There were a few people who also said they use the Light theme, so I’d be interested on their take on this too.

So… potential new splashscreen? Thoughts? Hit me up on Twitter :) 

  • 1 year ago
  • 1
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Here’s a video of Mehdoh 2.0 in action… Obviously doesn’t cover much of it, but just gives an overview of how twitter lists and facebook integrate in with the main view.

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Pop-up View Separately
Pop-up View Separately
Pop-up View Separately
Pop-up View Separately
PreviousNext

A few random images from recent builds of Mehdoh. Have been a bit busy with real world stuff lately but hoping to get back on track over the coming weeks.

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Version numbers in Mehdoh

Want to know how the version numbers work in Mehdoh? 

They break down like this…. A.B.C

A and B are simply incrementing numbers per release, tied in to Microsoft’s version numbers on the App Hub. Originally it went 1.0 to 1.9 and then to 2.0, but they’ve changed that now to extend more numbers… However, I’ll be sticking to the original 1.9 then 2.0 version number system.

C is the revision in my source control system (I use Subversion). Every time I build the app, it fetches the latest revision number from Subversion and inserts it into the app.

And that, is the number you see on the About screen in settings.

As an aside, the App hub completely ignores any version numbers in the app itself, and relies solely on what the publisher/developer specifies when uploading a new version of the app.

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Pop-up View Separately
Pop-up View Separately
PreviousNext

A few new bits on the “New Tweet” page…

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Something to watch for with DatabaseSchemaUpdater

Local databases on Windows Phone 7.5 are a wonderful thing. They allow you to write beautiful code that takes full advantage of LINQ, and who doesn’t like LINQ right?!? (answer: crazy people). But, using databases doesn’t come without it’s headaches, and a common one is how you update it. 

Fortunately several clever people have already come up with a way of updating your database schema that involve using the DatabaseSchemaUpdater. In a nutshell that process involves something like this:

if (dbSchemaUpdater.DatabaseSchemaVersion < 1) {
     dbSchemaUpdater.AddColumn<MyTable1>(“NewColumn1”)
}
if (dbSchemaUpdater.DatabaseSchemaVersion < 2) { 
     dbSchemaUpdater.AddColumn<MyTable1>(“NewColumn2”)
}

dbSchemaUpdater.DatabaseSchemaVersion = 2;
dbSchemaUpdater.Execute();  

This works really well for most circumstances. However, there is a circumstance where by you can trip up as a developer. Consider that we release our app and it has a DatabaseSchemaVersion of 2. It’s great, everyone loves it, so we start work on an update with extra awesome in it. We need a new table so we add the following:

if (dbSchemaUpdater.DatabaseSchemaVersion < 3) {
     dbSchemaUpdater.AddTable<NewFeaturesTable>();
}

dbSchemaUpdater.DatabaseSchemaVersion = 3;
dbSchemaUpdater.Execute(); 

We run the app, it works. We’re in business, and off we start coding! Now all of a sudden we want to add a new column on that table so we revisit our database updating code and we add the following:

if (dbSchemaUpdater.DatabaseSchemaVersion < 4) {
     dbSchemaUpdater.AddColumn<NewFeaturesTable>(“MoreStuff”);
}

dbSchemaUpdater.DatabaseSchemaVersion = 4;
dbSchemaUpdater.Execute();  

We run it again on our test environment, GREAT! Still working. We even delete our app and reinstall it, still working. This is awesome! So we code our features up and we release it to the marketplace…. BUT it’s crashing for the user!!! WHY DOES IT CRASH! Well, this stumped me for a while, but lets take a look at what the code above is doing.

First of all, the user is coming in at schema version 2. Then, the db updater executes the following code:

1. It adds a NewFeaturesTable
2. It adds the column MoreStuff to the NewFeaturesTable

But that’s what we wanted wasn’t it? I mean, it worked fine in development so why isn’t it working now? Well, not quite… When we added the NewFeaturesTable to our schema originally it didnt have the MoreStuff column, so it didn’t exist, and therefore adding the column was fine.

However now, when the code executes on the user’s device, the NewFeaturesTable table that gets created will already have the MoreStuff column on it, and therefore when your code tries to add the column again, it will fail!

If anyone remembers the disaster that was Mehdoh 1.5 upgrade, then that was the cause. It’s REALLY easy to get carried away with just updating the DB Schema. You might add a new table, add another, update a few other tables, and then add another column to your first new table - it’s easily done.

You should always keep track of what the user will have and test their upgrade scenarios (not just yours!). Honestly, I can’t recommend enough that you do the following to help you avoid the above:

1. Keep copies of the XAP files you submit to the App Store.
2. Before you release any updates, install the previously submitted XAP onto your device and test your upgrade process.  
3. If you’ve got time, test a few other versions too! 

Hopefully someone can learn from my mistake here.

    • #windows phone
    • #wp7
    • #wp7dev
    • #mehdoh
    • #DatabaseSchemaUpdater
  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
HTML me up! Code reuse is going well.  (Taken with instagram)
Pop-upView Separately

HTML me up! Code reuse is going well. (Taken with instagram)

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Mehdoh downloads.

Mehdoh download chart.

Presented “as is”… Download chart, WITH NUMBERS… (yeah they usually have numbers up the side in case you’ve seen these kinds of charts before… ;-)). This is for the last month, prior to it being removed off the marketplace.

Bare in mind that these are trials, full versions, and upgrades… Any kind of download is registered on that chart.

Anyway, feel free to draw your own conclusions.

Mehdoh download charts

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Working some the lists and customisable home screen.  (Taken with instagram)
Pop-upView Separately

Working some the lists and customisable home screen. (Taken with instagram)

  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Mehdoh Certification update

Well, that was quick… Mehdoh has moved through the certification process and … Failed.

When you submit an application to the App Hub you have to enter a few details, description, version number etc… and also choose the price and availability of the app. The availability being what countries are allowed to download the app. I had selected all of them. As it happens Microsoft have added a few more countries recently and these countries don’t like the sort of content that Twitter apps potentially expose to their citizens. 

The countries that Microsoft highlighted were China, Malaysia, and Indonesia. So, I have resubmitted the app but without availability in those countries. Sorry about that, but those are the rules. Let’s see how it goes this time :)

    • #mehdoh
    • #twitter
    • #windows phone
    • #app hub
    • #wp7dev
  • 1 year ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 2
← Newer • Older →

About

Christopher Field
England

Software Developer

Gamer

Twitter: @mrcfield
  • RSS
  • Random
  • Archive
  • Mobile
Effector Theme by Pixel Union