Tuesday, February 21, 2012
Thursday, February 9, 2012
Http Client
There are several ways we might accomplish an HTTP file upload on Android. The way
that gives us the most flexibility is to involve importing and using libraries from Apache’s HTTP Components that were not fully included with Android.
MultipartEntity allows for the
making of multipart/form-data style posts to servers. This is the same mechanism used
by browsers to do uploads from forms that allow the user to select a file.
http://hc.apache.org/httpclient-3.x/tutorial.html
Or the latest one can be downloaded from the below link
http://hc.apache.org/downloads.cgi
that gives us the most flexibility is to involve importing and using libraries from Apache’s HTTP Components that were not fully included with Android.
MultipartEntity allows for the
making of multipart/form-data style posts to servers. This is the same mechanism used
by browsers to do uploads from forms that allow the user to select a file.
http://hc.apache.org/httpclient-3.x/tutorial.html
Or the latest one can be downloaded from the below link
http://hc.apache.org/downloads.cgi
Android Repackaging
Jar Jar Links is a utility that makes it easy to repackage Java libraries and embed them into your own distribution. This is useful for two reasons:
You can easily ship a single jar file with no external dependencies.
You can avoid problems where your library depends on a specific version of a library, which may conflict with the dependencies of another library.
How does it work?
Jar Jar Links includes an Ant task that extends the built-in jar task. The normal zipfileset element is used to embed jar files. A new rule element is added which uses wildcards patterns to rename the embedded class files. Bytecode transformation (via ASM) is used to change references to the renamed classes, and special handling is provided for moving resource files and transforming string literals.
http://code.google.com/p/jarjar/
You can easily ship a single jar file with no external dependencies.
You can avoid problems where your library depends on a specific version of a library, which may conflict with the dependencies of another library.
How does it work?
Jar Jar Links includes an Ant task that extends the built-in jar task. The normal zipfileset element is used to embed jar files. A new rule element is added which uses wildcards patterns to rename the embedded class files. Bytecode transformation (via ASM) is used to change references to the renamed classes, and special handling is provided for moving resource files and transforming string literals.
http://code.google.com/p/jarjar/
Android phone Numbers
Google's common Java, C++ and Javascript library for parsing, formatting, storing and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0 (Ice Cream Sandwich).
http://code.google.com/p/libphonenumber/
http://code.google.com/p/libphonenumber/
Sunday, February 5, 2012
HTML 5
This URL can be used to find all tags and features of HTML 5 supported by your browser.
findmebyip.com: This site will show you, for the browser you're using to load the page, support for HTML5 and CSS3 features in a great table format. It also includes some of the newest JavaScript features.
html5test.com: Another site that shows you HTML5 support for the browser you use to load the page. This site assigns points based on the amount of support your browser has so you can easily compare it with other browsers.
caniuse.com: This site is a great one for comparing feature support across multiple browsers. It uses an easy-to-read table format that shows support of both HTML5 and CSS3 features for current, near future and up to 3 versions back of all the major browsers on both desktop and mobile.
theexpressiveweb.com/: This Adobe site has examples of a variety of HTML5 and CSS3 features, resources, browser support, and even code snippets that show how to detect a feature and fallback if the feature is not supported.
Source - http://wickedlysmart.com/hfhtml5/browsersupport.html
findmebyip.com: This site will show you, for the browser you're using to load the page, support for HTML5 and CSS3 features in a great table format. It also includes some of the newest JavaScript features.
html5test.com: Another site that shows you HTML5 support for the browser you use to load the page. This site assigns points based on the amount of support your browser has so you can easily compare it with other browsers.
caniuse.com: This site is a great one for comparing feature support across multiple browsers. It uses an easy-to-read table format that shows support of both HTML5 and CSS3 features for current, near future and up to 3 versions back of all the major browsers on both desktop and mobile.
theexpressiveweb.com/: This Adobe site has examples of a variety of HTML5 and CSS3 features, resources, browser support, and even code snippets that show how to detect a feature and fallback if the feature is not supported.
Source - http://wickedlysmart.com/hfhtml5/browsersupport.html
Subscribe to:
Posts (Atom)