Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity not found exception #19

Open
rsd96 opened this issue May 1, 2018 · 2 comments
Open

Activity not found exception #19

rsd96 opened this issue May 1, 2018 · 2 comments

Comments

@rsd96
Copy link

rsd96 commented May 1, 2018

val intent = newIntent(
this,
TimeZone.getDefault(),
DateTime.now().millis,
DateTime.now().plusDays(2).millis
)
this.startActivityForResult(intent, RQC_PICK_DATE_TIME_RANGE)

above code gave me actvity not found error :

android.content.ActivityNotFoundException: Unable to find explicit activity class {/skedgo.datetimerangepicker.DateTimeRangePickerActivity}; have you declared this activity in your AndroidManifest.xml?

@kyaw-san-oo
Copy link

kyaw-san-oo commented May 2, 2018

Use companion intent in your call to day picker and not forget to add DayRangePickerActivity.kt within in the mainifest of the DayRangePicker library.
In the calling Activity,
intent = TestDayRangePickerActivity.Companion.newIntent(YourCallActivity.this,
TimeZone.getDefault(),
DateTime.now().millis,
DateTime.now().plusDays(2).millis);
startActivityForResult(intent, RQC_PICK_DATE_TIME_RANGE);
In the Mainifest.xml in DayPicker Module, add the code.
android:name=".DayRangePickerActivity" with activity tag within the application tag.

@rsd96
Copy link
Author

rsd96 commented May 2, 2018

thanks for the reply. I am not able to add DayRangePickerActivity as an activity in the manifest... i did try calling the intent with Companion but that didn't help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants