How to share cookie between HttpWebRequest and WebView

This is post is about another hybrid application scenario. I had to implement this in one of our projects, the problem was like this, unlike other hybrid applications, this project had a native login screen, which will authenticate the user against a REST API service and once the authentication is...


How to convert JSON to XML and vice versa in C#

Json.NET supports converting JSON to XML and vice versa using the XmlNodeConverter. The JsonConvert has two helper methods for converting between JSON and XML. The first is SerializeXmlNode(). This method takes an XmlNode and serializes it to JSON text. string xml = @"<catalog><book id=""bk101"">" + "<author>Gambardella, Matthew</author>" + "<title>XML Developer's...


How to detect IPhone / IPad through JavaScript

Here is code snippet which helps to identity IPhone or IPad through JavaScript. if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i))) { //IPhone or IPad } And here is the C# snippet for user agent checking. if (Request.UserAgent.IndexOf("iPhone", StringComparison.CurrentCultureIgnoreCase) >= 0 || Request.UserAgent.IndexOf("iPad", StringComparison.CurrentCultureIgnoreCase) >= 0) { //IPhone / IPad } Happy Programming :)...


How to invoke C# from Javascript in Android

This post about to invoke C# from Javascript in Xamarin for Android. My last post related to building hybrid applications with C# and Xamarin, I got few comments like in hybrid application development, host language interface with javascript is an important topic, so I thought of writing a blog post....


How to detect hyperlink click in a webview android with C#

This post is about detecting hyperlink click in a Android webview with C#. This can be useful in two scenarios. You need to open an activity when user clicks on some hyperlink You need to do something when user clicks on some hyper link. You can achieve this by overriding...


Building Hybrid application for Android using C# and Xamarin studio

This post is about creating a Hybrid mobile application for Android using C# and Xamarin studio. Hybrid apps are part native apps, part web apps. Like native apps, they live in an app store and can take advantage of the many device features available. Like web apps, they rely on...


User Group Meeting and Xamarin Workshop - 23rd November 2013 (Saturday) - Kochi

Kerala Microsoft User Group (K-MUG) is conducting monthly UG meeting and Xamarin Workshop on 23rd November at Infopark, Kochi. Venue Orion India Systems Pvt Ltd, 103, 2nd floor, Tejomaya, Info park SEZ, Kakkanad, Kochin-682030 Agenda 09:30 - 09:40 Community updates 09:40 - 10:40 Cross Platform Mobile Development in C# &...