10 2012 档案
摘要:UI调度:public class Dispatcher : Handler { public override void HandleMessage(Message msg) { var ai = msg.Obj as ActionItem; if (ai != null) { try { ai.Result = ai.d.DynamicInvoke(ai.args); } catch (TargetInvocationException e) { ai.Error = e.InnerException; } catch (Exception e) { ai.Error = e; } if.
阅读全文
摘要:public class Option { public string OptionName { get; set; } public string URL { get; set; } public string Username { get; set; } public string Password { get; set; } } public class CCTVConfig { static ISharedPreferences preference = null; public static void Save(Activity a, List<Option> optio
阅读全文
摘要:简洁弹出方式:Toast.MakeText(mContext,"Hello", ToastLength.Short).Show(); 使用.net开发安卓,以下是 AlertDialog与ProgressDialog的使用#region AlertDialog public static void AlertDialog(Context ctx, string title, string msg) { AlertDialog.Builder ad = new AlertDialog.Builder(ctx); ad.SetTitle(title); //ad.SetTitl
阅读全文
摘要:Microsoft.Phone.Tasks.WebBrowserTask task = new Microsoft.Phone.Tasks.WebBrowserTask(); task.Uri = new Uri("http://www.windowsphone.com/s?appid=bb62cb87-2015-4c0c-adf7-fe79c74ad3ac", UriKind.Absolute); task.Show();
阅读全文

浙公网安备 33010602011771号