|
15 | 15 | */ |
16 | 16 | package org.androidannotations.annotations; |
17 | 17 |
|
18 | | -import android.content.Intent; |
19 | | - |
20 | 18 | import java.lang.annotation.ElementType; |
21 | 19 | import java.lang.annotation.Retention; |
22 | 20 | import java.lang.annotation.RetentionPolicy; |
|
26 | 24 | * <p> |
27 | 25 | * This annotation is intended to be used on methods to receive results from a |
28 | 26 | * previously started activity using |
29 | | - * {@link android.app.Activity#startActivityForResult(Intent, int)} or the |
30 | | - * generated <code>IntentBuilder.startActivityForResult()</code> method of the |
31 | | - * activity. |
| 27 | + * {@link android.app.Activity#startActivityForResult(android.content.Intent, int) |
| 28 | + * Activity#startActivityForResult(Intent, int)} or the generated |
| 29 | + * <code>IntentBuilder.startActivityForResult()</code> method of the activity. |
32 | 30 | * </p> |
33 | 31 | * <p> |
34 | 32 | * The annotation value must be an integer constant that represents the |
|
38 | 36 | * The method may have multiple parameter : |
39 | 37 | * </p> |
40 | 38 | * <ul> |
41 | | - * <li>A {@link android.content.Intent} that contains data</li> |
42 | | - * <li>An <code>int</code> or an {@link java.lang.Integer} to get the resultCode</li> |
43 | | - * <li>Any native, {@link android.os.Parcelable} or {@link java.io.Serializable} parameter |
44 | | - * annotated with {@link org.androidannotations.annotations.OnActivityResult.Extra} to get an object put in the extras of the intent.</li> |
| 39 | + * <li>A {@link android.content.Intent Intent} that contains data</li> |
| 40 | + * <li>An <code>int</code> or an {@link java.lang.Integer Integer} to get the |
| 41 | + * resultCode</li> |
| 42 | + * <li>Any native, {@link android.os.Parcelable Parcelable} or |
| 43 | + * {@link java.io.Serializable Serializable} parameter annotated with |
| 44 | + * {@link org.androidannotations.annotations.OnActivityResult.Extra |
| 45 | + * OnActivityResult.Extra} to get an object put in the extras of the intent.</li> |
45 | 46 | * </ul> |
46 | 47 | * |
47 | 48 | * <blockquote> |
|
69 | 70 | * </blockquote> |
70 | 71 | * |
71 | 72 | * @see EActivity |
72 | | - * @see android.app.Activity#startActivityForResult(Intent, int) |
73 | | - * @see android.app.Activity#onActivityResult(int, int, Intent) |
| 73 | + * @see android.app.Activity#startActivityForResult(android.content.Intent, int) |
| 74 | + * @see android.app.Activity#onActivityResult(int, int, android.content.Intent) |
74 | 75 | */ |
75 | 76 |
|
76 | 77 | @Retention(RetentionPolicy.CLASS) |
|
81 | 82 |
|
82 | 83 | /** |
83 | 84 | * <p> |
84 | | - * Use on any native, {@link android.os.Parcelable} or {@link java.io.Serializable} parameter of an |
85 | | - * {@link OnActivityResult} annotated method to bind it with the value from the Intent. |
| 85 | + * Use on any native, {@link android.os.Parcelable} or |
| 86 | + * {@link java.io.Serializable} parameter of an {@link OnActivityResult} |
| 87 | + * annotated method to bind it with the value from the Intent. |
86 | 88 | * </p> |
87 | 89 | * <p> |
88 | | - * The annotation value is the key used for the result data. If not set, the field name |
89 | | - * will be used as the key. |
| 90 | + * The annotation value is the key used for the result data. If not set, the |
| 91 | + * field name will be used as the key. |
90 | 92 | * </p> |
91 | 93 | * |
92 | 94 | * <blockquote> |
|
97 | 99 | * @OnActivityResult(REQUEST_CODE) |
98 | 100 | * void onResult(int resultCode, Intent data, <b>@Extra String value</b>) { |
99 | 101 | * } |
100 | | - * |
| 102 | + * |
101 | 103 | * @OnActivityResult(REQUEST_CODE) |
102 | 104 | * void onResult(int resultCode, <b>@Extra(value = "key") String value</b>) { |
103 | 105 | * } |
104 | | - * |
| 106 | + * |
105 | 107 | * @OnActivityResult(REQUEST_CODE) |
106 | 108 | * void onResult(<b>@Extra String strVal</b>, <b>@Extra int intVal</b>) { |
107 | 109 | * } |
108 | 110 | * </pre> |
109 | 111 | * |
110 | 112 | * </blockquote> |
111 | 113 | * |
112 | | - * @see android.app.Activity#onActivityResult(int, int, Intent) |
| 114 | + * @see android.app.Activity#onActivityResult(int, int, |
| 115 | + * android.content.Intent) |
113 | 116 | * @see OnActivityResult |
114 | 117 | */ |
115 | 118 |
|
|
0 commit comments