jQuery UI Tabs back button history

I just ran into this as well. Its really easy with the jquery address plugin here http://www.asual.com/jquery/address/ The demo for tabs seemed a bit over complicated. I just did this: $(‘document’).ready(function() { // For forward and back $.address.change(function(event){ $(“#tabs”).tabs( “select” , window.location.hash ) }) // when the tab is selected update the url with the … Read more

EditText with soft keyboard and “Back” button

You can override when the keyboard disappears using this method: public boolean onKeyPreIme(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) { // Do your thing here return false; } return super.dispatchKeyEvent(event); } Taken from my other answer @ : Android: Error popup on EditText doesn’t move down when keyboard goes … Read more

Android: Cancel Async Task

From SDK: Cancelling a task A task can be cancelled at any time by invoking cancel(boolean). Invoking this method will cause subsequent calls to isCancelled() to return true. After invoking this method, onCancelled(Object), instead of onPostExecute(Object) will be invoked after doInBackground(Object[]) returns. To ensure that a task is cancelled as quickly as possible, you should … Read more

tech