There's no reason to use a content provider to work with databases. A
content provider provides a common, abstract mechanism for offering
data to other applications. Its power is in handling all the small
details of connecting an application to a data source in another
process. The content provider framework has a few useful methods for
dealing with databases, but that is *not* its main focus. Don't get
hung up on content providers to provide data, especially if the only
use of the data is in your own application.

If you run into an error you can't figure out, or you need help with a
specific design decision, then this forum will work for you. If you
just say "Here's what I want to do, how do I do it?" we *can't* help
you effectively. We are bound to leave out some important detail that
you know. We can't substitute for experience and training.

To answer the OP:

You say that you need to create an SQLite DB to check if the user is
valid. That is fairly easy to do in Android, and it's documented in
the Dev Guide. However, you go on to say that the purpose of this DB
is to verify that the user is registered. You also note that the check
needs to be done on a website, not local to the device. If the user is
new, then he or she has to register on the website.

I can't see why you need a local database. All the information is on
your website. It seems to me that you want the user to go to the
website to login, and then proceed locally. This is tricky to do, but
not impossible. However, I don't see that you have to keep *any*
database data on your device, unless you're using it as a "cache" of
users.

As far as the ways that you've used "hardly never worked fine", you
will have to post a specific method you used, and what happened.

On Mar 11, 9:34 pm, Chambras <[email protected]> wrote:
> I think that the best way to work with DBs is using content providers you
> can read the documentation about them 
> here:http://developer.android.com/guide/topics/providers/content-providers...
>
> also I would read the samples in the resources sections they have everything
> you need in order to start developing in android, sample code, tutorials,
> articles, everything
>
> http://developer.android.com/resources/index.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to