Cookbook - PerfectCarl/androidannotations GitHub Wiki
Cookbook
You'll find some AndroidAnnotations recipes here!
You can also check the list of all available annotations.
General recipes
- How AndroidAnnotations works
- How to troubleshoot your AndroidAnnotation project
Annotation recipes
Enhanced components
- How to enhance [Activities](Enhance Activities)
- How to enhance Fragments
- How to enhance [custom classes](Enhance custom classes)
- How to enhance [custom views](Enhance custom views)
- How to enhance your Application class
- How to enhance [Services](Enhance Services)
- How to enhance [BroadcastReceivers](Enhance BroadcastReceivers)
- How to enhance [ContentProviders](Enhance ContentProviders)
Injecting stuff
- How to inject Views
- How to inject your project resources
- How to inject intent extras
- How to inject Android System Services
- How to inject [Html text](Injecting Html) in TextViews
- How to reinject NonConfiguration instances
- Simple HTTPS with HttpClient
- How to inject Fragment arguments
Clear event handling
- Listening to click, touch & long click events
- Listening to AdapterView events
- Listening to SeekBar events
- Listening to text changes
- How to simplify handling of [Options Menu](Handling Options Menu)
Simple threading
- How to stop worrying about threads
- [Fork / Join](Fork Join) for the poor Android dev
- [Publish progress](Publish Progress) made easy
- Background tasks and config changes (such as screen rotations)
3rd party framework integration
- How to combine AndroidAnnotations with RoboGuice
- How to get RoboGuice
@Inject
to work in a@EBean
- How to combine AndroidAnnotations with GreenDroid
- How to combine AndroidAnnotations with ActionBarSherlock
- How to use AndroidAnnotations in Library Projects
- How to use OrmLite daos
- How to use Otto event bus
Other goodies
- Adapters and lists, the AA way
- How to add callbacks to execute code [after injection](After Injection)
- How to save your activity instance state
- How to use the simple [Rest API](Rest API)
- Authenticated Rest Client
- How to trace the execution of your code
- Easily setting your activity to no title / fullscreen
- How to unit test your application
- How to use typesafe SharedPreferences
- How to handle SQLite Transactions
- How to handle Android backward compatibility
- How to handle Activity results
- How to make HierarchyViewer work on any device
Build and IDE Recipes
- How to configure Eclipse for AndroidAnnotations
- How to configure IntelliJ IDEA for AndroidAnnotations
- How to configure Netbeans for AndroidAnnotations
- How to build an AndroidAnnotations project with Maven and Eclipse
- How to build an AndroidAnnotations project with Ant
- How to build an AndroidAnnotations project with Gradle
- How to configure Proguard for AndroidAnnotations