Just to say passing file name to SQLiteOpenHelper constructor worked
just fine. Thx again for your help.

On 28 sep, 08:31, Pikoh <[email protected]> wrote:
> Thanks for the quick response. I'll try it.
>
> On 28 sep, 00:48, Mark Murphy <[email protected]> wrote:
>
> > On Sat, Sep 25, 2010 at 2:01 PM, Pikoh <[email protected]> wrote:
> > >  First of all, hi everyone.
>
> > > I'm new to android programming and this is my first post in this
> > > group. I've found a lot of problems but i'm slowly getting over them.
>
> > >  Now i'm stuck on this. I want to open a database but in code time i
> > > don't know it's name. I know it's structure, but not it's name. So now
> > > i list all the databases in the local directory of my app and get
> > > which one the user want's to open, but i can´t open it since i don't
> > > know how to create a SQLiteOpenHelper without knowing the file name.
>
> > Get the file name from the user. Pass that to your SQLiteOpenHelper
> > subclass' constructor. Or, do not use SQLiteOpenHelper, and just open
> > the database using SQLiteDatabase's openDatabase() method.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android 2.2 Programming Books:http://commonsware.com/books
>
>

-- 
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