Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

HowItWorks and OnActivityResult Document Improvement #1580

@Francis0121

Description

@Francis0121

Hi~~
When I used startForResult method, I didn't know that exist OnActivityResult Annotation. So I implemented all override method.

I think that HowItWorks page will give this annotation info, many people will use this.

So I change documentation HowItWorks page like this link.

https://github.com/JuranoSaurus/androidannotations/wiki/HowItWorks#starting-an-annotated-activity
Before
image

After
image


Also OnActivityResult page gave example like this.

@OnActivityResult(REQUEST_CODE)
void onResult(int resultCode, Intent data, @Extra String value) {
}

extra noo applicable to parameter

But it didn't work. So I change this @Extra -> @OnActivityResult.Extra

@OnActivityResult(REQUEST_CODE)
void onResult(int resultCode, Intent data, @OnActivityResult.Extra String value) {
}

https://github.com/JuranoSaurus/androidannotations/wiki/OnActivityResult

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions