Reference page
http://developer.android.com/reference/java/net/URLEncoder.html
Input (Bundle):
Bundle parameters;
Output (Encoded path):
String result = null;
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String key : parameters.keySet()) {
if (first) {
first = false;
}
else {
sb.append("&");
}
sb.append(URLEncoder.encode(key) + "=" +
URLEncoder.encode(parameters.getString(key)));
}
result = sb.toString();
Tuesday, July 12, 2011
Thursday, July 7, 2011
android-protips-location & A Deep Dive into Location
These articles are full tips and experience. Read this to improve you Android technic.
android-protips-location
http://code.google.com/p/android-protips-location/
A Deep Dive Into Location
http://android-developers.blogspot.com/2011/06/deep-dive-into-location.html
http://blog.radioactiveyak.com/2011/06/deep-dive-into-location-part-2-being.html
android-protips-location
http://code.google.com/p/android-protips-location/
A Deep Dive Into Location
http://android-developers.blogspot.com/2011/06/deep-dive-into-location.html
http://blog.radioactiveyak.com/2011/06/deep-dive-into-location-part-2-being.html
Monday, July 4, 2011
Uri schemes for Android
Android provides 3 types of Uri for pointing a content.
SCHEME_ANDROID_RESOURCE
SCHEME_CONTENT
SCHEME_FILE
Developer has to deal with these schemes to point a content out when transferring via an Uri.
SCHEME_ANDROID_RESOURCE
SCHEME_CONTENT
SCHEME_FILE
Developer has to deal with these schemes to point a content out when transferring via an Uri.
Subscribe to:
Posts (Atom)