[android-developers] Re: sharing database across applications

2009-08-21 Thread Lukeci
why no accessing contacts.db by ContactsProvider directly? If any changed , using ContentObserver to receive changes. On 8月11日, 下午1時13分, Acchao wrote: > What's the most convenient way to share adatabaseacross > applications? > For example, I want my application's dbadapter to query theandroi

[android-developers] Re: sharing database across applications

2009-08-16 Thread Kenny
How to make a "custom content provider"? Can you give me an example? Now I am trying to extend ContactsProvider, because it can't give me the approach to the last modified contact record. So I wonder if I can create a "custom contact provider". Or anyone knows how to find out the last modified c

[android-developers] Re: sharing database across applications

2009-08-10 Thread Sujay Krishna Suresh
My suggestion'd be to go for the custom content provider. That'd make things much easier for u... But thats me. It depends on ur application & its current architecture. On Tue, Aug 11, 2009 at 10:43 AM, Acchao wrote: > > What's the most convenient way to share a database across > applications? >

[android-developers] Re: sharing database

2009-05-15 Thread Mark Murphy
> but the database has to be in the path of the application package or > can be in another path of the filesystem? Generally speaking, you do not have access to "another path of the filesystem". > for example, can I access to a database created in gears (the path > would be com.android.browser/g

[android-developers] Re: sharing database

2009-05-15 Thread Peterman
but the database has to be in the path of the application package or can be in another path of the filesystem? for example, can I access to a database created in gears (the path would be com.android.browser/gears/...) thanks a lot On May 15, 2:46 pm, "Mark Murphy" wrote: > > Anybody knows

[android-developers] Re: sharing database

2009-05-15 Thread Mark Murphy
> Anybody knows if we can share databases between applications? How can > I access to a database from an A application to another B application? > > It is possible? What uri I would have to put? The preferred way to do this is by creating a ContentProvider to make data in one project available to