Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to make a database with 2 columns: name and age. Should I use a Content Provider for this?
"You don't need to develop your own provider if you don't intend to share your data with other applications."
Otherwise, I'd use SQLite directly with SQLiteOpenHelper.
Only if you want other apps to access this data. That's the purpose of a ContentProvider. If you want to use it internally, just access the database.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Can anyone help me how to retrieve data from firebase and save it on a local android database, so that I can search data offline.
Firebase is meant to be used a a replacement for any local SQLite databases. It can be searched while offline, as well. If you're using the Realtime Database, check these docs. If you're using Firestore, check these docs instead.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
There is lot of stuff available on the internet on how to use singleton pattern for sqlite in android, my question is why use singleton pattern to communicate with sqlite database
Using a singleton class to manage access to your database can help developers avoid the mistake of leaking database instances (i.e. opening but not closing database instances).
This approach, and the problem is solves, is described nicely in this post: https://www.androiddesignpatterns.com/2012/05/correctly-managing-your-sqlite-database.html.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have two different applications in android and I want to connect them with one sqlite database.
Is it possible?
How can I do that?
You can share data! for security if you want to share between just your app, you should sign with same keys.
Secondly, you need to use Content Provider to share data. Some tutorial about Content Provider on CodePath
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i developed an app in android wich use a database to save and load data at start. My question is: was it encrypt by default? if not, how can i encrypt my database file in order to make it more secure?
was it encrypt by default?
No.
how can i encrypt my database file in order to make it more secure?
Use SQLCipher for Android and a user-supplied passphrase.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
There are two app
1) database app
2) contact app
I want to use database of database app in contact app.how will it be done.
I would suggest to use a content provider. Take a look here:
http://developer.android.com/guide/topics/providers/content-providers.html