author profile image

Matt Reid

Solo Entrepreneur | Lead Software Architect

I spent a while looking for a solid example of futuretask use in java for my latest android app (more posts on that soon I hope) but I found a great one here Here is the code: {.js name="code"} public void startMyApplication() { ExecutorService executor = Executors.newFixedThreadPool(2); FuturTask futureOne =...

Anyone using the nbandroid plugin for netbeans to develop android apps may have come accross the same problem I did. R.java doesn’t seem to get updated. In order to fix this, add the following lines to the AnroidManifest.xml and ‘build’ the project again. ``` {.js name=”code”} Generating R.java / Manifest.java...

While overhauling a customer information system I found myself needing to display a map of a customers postcode without forcing the user to leave the page. Here is the solution I came up with. ``` {.js name=”code”} var map; var geocoder; function init() { geocoder = new google.maps.Geocoder(); } function...

I was recently using 2 date pickers to allow the user to select a date range and was in need of a dynamic date-restriction function. Here it is: ``` {.js name=”code”} $(‘.datePicker’).datepicker({ dateFormat:”dd-mm-yy”, showAnim:”show”, beforeShow: customRange }); <%-- the toDate can only select dates after the fromDate (and vice-versa) --%>...

A word of warning to anyone with an android phone. If your account is set up as …@gmail.com rather than @googlemail.com then you could have problems downloading from the android marketplace. Luckily some fine fellow has posted a set of simple instructions to fix this: click here