7. Okocim Palone
Apparently, Okocim is a polish brewery, and Palone is produced in India by Carlsberg under license from Okocim. Palone is not available freely everywhere, but you can pick up one at "Madhuloka". Particularly strong beer with caramel flavor, taste brings back wonderful memories of Sam Adams.
Ram's verdict: YES!!!
Friday, November 19, 2010
Opening browser through intent Android 2.1
If you're trying to open the Android browser through intent like this:
It's most definitely going to crash. When starting browser through intent, you've got to set the scheme for the url (such as http). If your url does not contain a scheme, like the example above, make use of the Uri class to build a Uri using the scheme before starting the browser, like this (a very crude code snippet, feel free to add any refinements in your comments):
siteURL = Uri.parse("google.com");
Intent browserIntent = new Intent(Intent.ACTION_VIEW, siteURL);
mContext.startActivity(browserIntent);
It's most definitely going to crash. When starting browser through intent, you've got to set the scheme for the url (such as http). If your url does not contain a scheme, like the example above, make use of the Uri class to build a Uri using the scheme before starting the browser, like this (a very crude code snippet, feel free to add any refinements in your comments):
siteURL = Uri.parse("google.com");
Uri.Builder builder = new Uri.Builder();
builder.scheme("http");
ssP = finalURL.getSchemeSpecificPart();
if(!ssP.startsWith("//"))
ssP = "//" + ssP;
Uri.encode(ssP, "/");
builder.encodedAuthority(finalURL.getSchemeSpecificPart());
Subscribe to:
Posts (Atom)