Android: Some Common Intents

//Email Intent allow you launch android email program to send an email Intent i = new Intent(Intent.ACTION_SEND); //i.setType("text/plain"); //use this line for testing in the emulator i.setType("message/rfc822") ; // use from live device i.putExtra(Intent.EXTRA_EMAIL, new String[]{"test@gmail.com"}); i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here"); i.putExtra(Intent.EXTRA_TEXT,"body goes here"); startActivity(Intent.createChooser(i, "Select email application."));

C#: Internet & Networking

The following short pieces of code show you how to: – Ping an IP address – Send an email in .NET with authenticated user (not anonymous email host) – How to do a simple HTTP request using .NET Ping IP //requires .NET framework 2.0 public static string PingIP(string commandStr) { string output = "";   […]