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

Week view with sqlite database #85

Open
Legacy254 opened this issue Apr 6, 2018 · 2 comments
Open

Week view with sqlite database #85

Legacy254 opened this issue Apr 6, 2018 · 2 comments

Comments

@Legacy254
Copy link

How to get events from sqlite database. Please help.

@jhoobergs
Copy link
Member

jhoobergs commented Apr 6, 2018

MonthLoader.MonthChangeListener mMonthChangeListener = new MonthLoader.MonthChangeListener() {
    @Override
    public List<WeekViewEvent> onMonthChange(int newYear, int newMonth) {
        // Populate the week view with some events.
        List<WeekViewEvent> events = getEvents(newYear, newMonth); // getEvents should use the sqlite db
        return events;
    }
};

@Legacy254
Copy link
Author

@jhoobergs thanks for replying, I'm quite new to sqlite, could you please share some code on how you implemented your onMonthChanged listner. I use firebase database a lot. Thanks

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