Cookbook - WonderCsabo/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
- How to enhance Fragments
- How to enhance custom classes
- How to enhance custom views
- How to enhance your Application class
- How to enhance Services
- How to enhance IntentServices
- How to enhance BroadcastReceivers
- How to 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 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 key events
- Listening to page change events
Simple threading
- How to stop worrying about threads
- Fork / Join for the poor Android dev
- 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 use AndroidAnnotations in Library Projects
- How to use Data Binding with AndroidAnnotations
- How to use OrmLite daos
- How to use Otto event bus
- How to use AndroidAnnotations with Dagger
- How to use AndroidAnnotations with Parceler
- How to use AndroidAnnotations with Kotlin
Other goodies
- Adapters and lists, the AA way
- How to add callbacks to execute code [after injection]](/WonderCsabo/androidannotations/wiki/After-Injection)
- How to save your activity instance state
- How to use the simple Rest API
- Authenticated Rest Client
- How to trace the execution of your code
- Easily setting your activity window features
- How to unit test your application
- How to use typesafe SharedPreferences
- How to use
PreferenceActivity
,PreferenceFragment
andPreference
s - 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 build an AndroidAnnotations project with Gradle and Android Studio/IntelliJ
- How to configure Proguard for AndroidAnnotations