f2prateek / dart

Extras binding and intent builders for Android apps.
Apache License 2.0
1.19k stars 88 forks source link

Need proper documentation #155

Closed ckdevrel closed 7 years ago

ckdevrel commented 7 years ago

I am completely stuck up regarding the usage of dart and henson. I have copy-pasted following snippet in my code to navigate to another scren, but now am directionless to fixe the issue

Intent intent = Henson.with(this) .gotoOneMoreActivityActivity() .extra(new ParcelExample()) .build();

Error:

Error:(102, 33) error: cannot find symbol variable Henson

From where i have to import Henson class??

stephanenicolas commented 7 years ago

Did you follow the setup in the readme ? Did you setup the annotation processor ?

2017-04-25 21:08 GMT+02:00 Takeoff Android notifications@github.com:

I am completely stuck up regarding the usage of dart and henson. I have copy-pasted following snippet in my code to navigate to another scren, but now am directionless to fixe the issue

Intent intent = Henson.with(this) .gotoOneMoreActivityActivity() .extra(new ParcelExample()) .build();

Error:

Error:(102, 33) error: cannot find symbol variable Henson

From where i have to import Henson class??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/155, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33eHPhYNN7Y-hsxRLjRZGwozi3LnAks5rzkSngaJpZM4NH7PC .

ckdevrel commented 7 years ago

Yep I did. I followed all the steps :-(

On Apr 26, 2017 1:37 AM, "Stéphane Nicolas" notifications@github.com wrote:

Did you follow the setup in the readme ? Did you setup the annotation processor ?

2017-04-25 21:08 GMT+02:00 Takeoff Android notifications@github.com:

I am completely stuck up regarding the usage of dart and henson. I have copy-pasted following snippet in my code to navigate to another scren, but now am directionless to fixe the issue

Intent intent = Henson.with(this) .gotoOneMoreActivityActivity() .extra(new ParcelExample()) .build();

Error:

Error:(102, 33) error: cannot find symbol variable Henson

From where i have to import Henson class??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/155, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33eHPhYNN7Y- hsxRLjRZGwozi3LnAks5rzkSngaJpZM4NH7PC .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/155#issuecomment-297149487, or mute the thread https://github.com/notifications/unsubscribe-auth/ALORr4q74G99h2KKvqk-gjeMCBQOB0DIks5rzlJ7gaJpZM4NH7PC .

chandruf22 commented 7 years ago

I am trying to start an activity from fragment using Henson.with(getActivity).gotoMyProfileActivity.build(). But its not working. Also I am not getting the usage of @HensonNavigable annotation and packaging concept setup in build.gradle like 'henson.package' something which was mentioned in the readme. Please clarify my queries. Really it is an amazing library, but documentation part is lagging since samples of github project is also not a studio project i guess.

stephanenicolas commented 7 years ago

Yes, the sample project works with Android studio.

Can you show:

2017-04-26 4:14 GMT+02:00 chandruf22 notifications@github.com:

I am trying to star an activity from fragment using Henson.with(getActivity).gotoMyProfileActivity.build(). But its not working. Also I am not getting the usage of @HensonNavigable annotation and packaging concept setup in build.gradle like 'henson.package' something which was mentioned in the readme. Please clarify my queries. Really it is an amazing library, but documentation part is lagging since samples of github project is also not a studio project i guess.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/155#issuecomment-297217697, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33WbYp8WH-LVGRg8cXoB6JwHzxdKNks5rzqhrgaJpZM4NH7PC .

ckdevrel commented 7 years ago

Kudos. It worked after Build - Rebuild Project. Gradle build was the culprit. Before closing this issue, I hope this library will not affect startActivityResult(REQUEST_CODE) behaviour?.

ckdevrel commented 7 years ago

I am planning to popularise this library by creating a blog in my https://takeoffandroid.com. Hope this will reach good number of target users soon. Thanks for creating such a library to reduce boiler plate codes for intent value creation.

stephanenicolas commented 7 years ago

Thanks for trying it and helping to make it more popular.

Btw, @HensonNavigable is used when you want to navigate to an activity that has no @InjectExtra fields. It can then be discovered by Henson and it will allow to navigate to it via the Henson class.

2017-04-26 8:00 GMT+02:00 Takeoff Android notifications@github.com:

I am planning to popularise this library by creating a blog in my https://takeoffandroid.com. Hope this will reach good number of target users soon. Thanks for creating such a library to reduce boiler plate codes for intent value creation.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/f2prateek/dart/issues/155#issuecomment-297246323, or mute the thread https://github.com/notifications/unsubscribe-auth/ABv33XqJXpSlnaYp_7IBi31J-ALn1dLOks5rzt2CgaJpZM4NH7PC .