Vincent Tsao's Library tagged → View Popular, Search in Google
-
So the basic idea is: launch an AsyncTask making your service call, show a nifty progress dialog while the task thread is running, and have the task’s result be posted back to your activity once it completes. Cool, but what if the user decides to rotate the screen while your task is running? Or a phone call comes in, interrupting your app, and Android decides to kill it? Both these actions will effectively terminateyour activity, and recreate it when resuming (yes, a screen rotation kills your activity, very clever, isn’t it?). Unfortunately, any AsyncTask that was still running now holds a stale reference to your activity, because the restarted activity will be an entirely different object in memory (and it will go through onCreate(), as if the activity had started for the first time). I’m not entirely sure whether AsyncTask will actually post back the data to the old activity object (if it was a weak reference, it may already have been garbage collected), but in any case, your “new” activity will never see it, because it’s a different instance.
-
- application life-cycle helpers
- support classes for handling Intents and diagnostics
- better support for background tasks
- super-easy and robust HTTP messaging
- powerful caching of Objects, HTTP responses, and remote images
- custom adapters and views
Droid-Fu offers both support classes meant to be used alongside existing Android code, as well as self-contained, ready-to-be-used components like new adapters and widgets.
The areas tackled by Droid-Fu include:
I suggest you read this introductory article, and anything that follows.
-
This projects aims to provide a reusable action bar widget. The action bar replaces the default title and is therefor located at the top of the screen. The action bar highlights important actions. The action bar pattern is well documented over at Android Patterns.
The action bar widget is an Library Project. This means that there's no need to copy-paste resources into your own project, simply add the action bar widget as a reference to your existing project.
-
-
- Custom Progress Bar - A customized Progress Bar for android with your own animation
- Drag and Drop widgets on Android
- Ongoing notifications on Android
- HTML with images in a Text View
- Custom Expandable List Views on Android
- Custom List View - Phonebook Example
- Custom Title Bar
- Android WebView, Javascrip and CSS
- Unzip files on Android
A bunch of sample apps for Android. Simple workarounds and examples for doing things on Android.
-
Adds multi-touch zoom to; ImageViews, WebViews, and MapViews. Simply use the corresponding object in place of the default, and the "pinch" functionality will be usable. Also includes misc. Views which can be useful for development.
Selected Tags
Related Tags
Top Contributors
Groups interested in opensource
-
Open source hardware project
Good stuff for people who ar...
Items: 4 | Visits: 182
Created by: Joel Liu
-
The "must have" list of free applications
The best free applications t...
Items: 32 | Visits: 3535
Created by: Joel Bennett
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
