forked from androidannotations/androidannotations
-
Notifications
You must be signed in to change notification settings - Fork 0
Extras
pyricau edited this page Jan 14, 2012
·
3 revisions
Since AndroidAnnotations 1.0
The @Extra annotation indicates that an activity field should be injected with the corresponding Extra from the Intent that was used to start the activity.
The extra key must be set in the annotation parameter, ie @Extra("someExtraKey").
The field must not be private. The extra can be of any type.
Usage example:
@EActivity
public class MyActivity extends Activity {
@Extra("my_string_extra")
String myMessage;
@Extra("my_date_extra")
Date myDateExtraWithDefaultValue = new Date();
}03/30/2012 The 2.5.1 release is out
- Get started!
- Cookbook, full of recipes
- Examples
- Read the FAQ
- Join the Mailing list
- Create an issue