Android Tips
These classes haave been implemented by using Java to work on Android OS (tested
on 2.3).
- Implementation of timer on Android using "Handler"
- fileUpload.java
( 4,017 bytes)
are from "http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/"
with minor modifications. One uploads a file to server and the other
uploads a buffer (array of bytes) to server.
These are some solutions to certain problems.
- On March 2012, my "HttpURLConnection" has the problem on the new
Galaxy Nexus (Android 4.0 ICS). I found from here
that I need to put
"StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().permitAll().build());" in the main thread.