I take that back...
It actually works without any permission as it should...
File f1 = ctx.getDatabasePath("appDatabase.db");
InputStream in = new FileInputStream(f1);
-Jona
On Sep 20, 2:19 pm, Moto <[email protected]> wrote:
> When doing:
>
> //open your existing DB
> InputStream dbStream = mContext.getAssets().open(<yourDBName>);
>
> I'm not able to start reading... Do I need a particular permission
> type? Also, when writing back to that location a new database which
> permission should be set?
>
> Thanks,
> -Moto!
>
> On Sep 8, 12:37 pm, Moto <[email protected]> wrote:
>
> > Perfect!
> > I really appreciate everyone's help!
>
> > -Moto!
>
> > On Sep 8, 1:05 am, mjc147 <[email protected]> wrote:
>
> > > On Sep 7, 3:30 am, Mark Murphy <[email protected]> wrote:
>
> > > > Now, the database path location may change in future Android releases,
> > > > and I am not aware of a place in the API to get the path to a database
> > > > in a more official fashion.
>
> > > You can use the Context.getDatabasePath() method:
>
> > >http://developer.android.com/reference/android/content/Context.html#g...)
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---