How To Generate a Perfect ContentProvider
Pure Android Magic
Install Eclipse and the plugins
Install Eclipse and the plugins
Install Eclipse and the plugins
Create a new project
Create a new model
Open the model.ecorediag file
Edit the model.ecorediag file
Edit your new table
Set the attribute types for each attribute
Set the attribute types for each attribute
Set the attribute types for each attribute
Change the package name for your model
Save your model
Generate Your Model - the fun part
Add Your New ContentProvider to your Android Manifest
Add Your New ContentProvider to your Android Manifest
Finished!
You are now free to move about the cabin. If you need to make a change to the model at any time, just go make the change in the visual editor, save your model, and regenerate the ContentProvider. It's that easy!