So let's get started!
Step 1 - create new Android Project
For those who are not familiar with Android Studio IDE we recommend to go through Google tutorial - Getting Started With Android Studio.- To create new project please select File -> New Project. The
New Project wizards pop up. Fill up fields according to your liking or
do it the way we did:
- Press next. Check "Blank Activity" and next button again.
- Name your first activity
BoxListActivity
and the layoutactivity_box_list
. - Press finish.
Step 2 - add GreenDao Generator module to project tree
We assume you have already downloaded our module. If not please go to our Git and do it now. Add MyDaoGenerator module to your project tree as additional package.settings.gradle
so it contains both ':DaoExample'
and ':MyDaoGenerator'
:include ':DaoExample', ':MyDaoGenerator'
After doing it, please click "Sync Project with Gradle Files" button.
Your directory should look like a module now in project tree.Step 3 - connect GreenDao Generator to DaoExample (main module)
So, MyDaoGenerator is currently recognized as a module. Now we have to configure it, so we can get database files from it. The only necessary thing to be changed isoutputDir
parameter in build.gradle
file of MyDaoGenerator module.Sign up here with your email
Conversion Conversion Emoticon Emoticon