What are these numbers on the right side of my Windows Phone Silverlight app?

That’s the frame rate counter for the emulator / phone that is on by default whenever you debug. To turn it off, go to App.xaml.cs and comment this line out: Application.Current.Host.Settings.EnableFrameRateCounter = true; For more information on what the numbers mean (they can be pretty helpful for tracking app performance), see Jeff Wilcox’s post on … Read more

How to wrap a website in a phone app?

If you would like to wrap a website in Android you may do so with this code, from Roskvist package com.webview; import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.webkit.WebView; public class WebViewTest extends Activity { WebView browserView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Removes the … Read more

Check if daylight savings is in effect?

Think you need convert this xml to DateTime and then use TimeZoneInfo class. If Denmark your local time: DateTime thisTime = DateTime.Now; bool isDaylight = TimeZoneInfo.Local.IsDaylightSavingTime(thisTime); Else you need to get Denmark TimeZone: DateTime thisTime = DateTime.Now; // get Denmark Standard Time zone – not sure about that TimeZoneInfo tst = TimeZoneInfo.FindSystemTimeZoneById(“Denmark Standard Time”); bool … Read more

Anyone have experience with architecture for cross platform WP7 Android iOS mobile development (monotouch, monodroid, C#)

You might want to look into the MonoCross project which is designed to help you reuse C# code with multiple presentation layers: http://code.google.com/p/monocross/ The authors of MonoCross (ITR Mobility) have created multiple mobile cross platform solutions for a variety of customers and have written two books on the subject one is “iPad in the Enterprise” … Read more

Deserializing JSON array into strongly typed .NET object

Afer looking at the source, for WP7 Hammock doesn’t actually use Json.Net for JSON parsing. Instead it uses it’s own parser which doesn’t cope with custom types very well. If using Json.Net directly it is possible to deserialize to a strongly typed collection inside a wrapper object. var response = @” { “”data””: [ { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)