Content Provider generator for Android Studio
Asked Answered
S

1

6

Do you know a Android Studio plugin for generate a Content Provider?

Recently, I switched from Eclipse to Android Studio, and I always used to use mdsd plugin a plugin to generate a Content Provider from your domain model. I was wondering if there is any similar tool available for Android Studio.

I've found a couple of tools but you have to pass a JSON schema, and I prefer to use my model data definition instead of json.

Thanks!

Seducer answered 15/4, 2014 at 14:22 Comment(2)
mdsd plugin seems to be quite old without any updates/new versions, is it still up to that with decent code?Cryptomeria
i tried the mdsd plugin, its easy to use, generates decent code, but it don't seem to support joined table queries, so this is why I'm not recommending itArmistead
S
5

I just found Android ContentProvider Generator, it generates a ContentProvider and all database files given a several json files. It's pretty easy to use, but I would rather prefer the files structure that mdsd plugin generates. In any case this is the best option that I found.

Seducer answered 17/7, 2014 at 8:20 Comment(2)
I second this, I've used the linked content provider generator on several projects. It works well and cuts out a ton of boilerplate that usually puts people off content providers.Indignant
A drawback of the generator mentioned above is the json format that is used to define the datamodel. A modern alternative is the android code generator based on annotations. They also have sqlite schema creation with versioning and it seems to be free for open source projects.Gatlin

© 2022 - 2024 — McMap. All rights reserved.