SQLite database to data class [closed] - java

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 want to create an application.
My app is a book and I created a SQLite database for my data as "mybook.db" that is 3.5 MB in size.
I tested my app and all activity works good!
Now I want to publish it on the Play store.
I used In App Billing for selling my content to premium users, but I realized that my database is available on "./data/data/myapp/database"
and also in the asset folder of apk package, and anyone can copy and use it! :(
Now what I can do to save my data?
is it possible to convert sqlite to android class?
is it possible to encode data?
How I can save relation between may data?
Please help me...
----------- Edit ------------
i don't want use SQLCipher !
is there any way to use another data structure for saving data?

You could encrypt the data before saving to database and then decrypt when reading it back in. Here is a SO question/answer on how to do it.

Related

Creating different user profiles [closed]

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 1 year ago.
Improve this question
I am creating a game app where you need the ability to be able to create profiles for other players and store them on your phone. I have been looking around for help, but I can't seem to find any tutorial or help for this. Does anyone know which aspect of java I need to research and learn about? I have seen that it might be to do with App-specific files but I'm not sure if that is the right thing.
You can store user information in files (XML / JSON format). You can use the database too - Android supports SQLite (SQLlite database is stored as single file). Android creates files in private folder, other applications cannot access them.
More informations about files:
https://developer.android.com/training/data-storage
Example of usage of SQLite:
https://developer.android.com/training/data-storage/sqlite
Remember not to store user sensitive data in plaintext.

android studio retrieve data from firebase database on button click [closed]

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 2 years ago.
Improve this question
Can you please help to do this, I want to save some text in firebase, and display those text on button click. I don't want to put those text on my app, because I will make some change over time, and I don't want to send update every time. I have been look for a guide for a week now and tried a lot of code but no success.
There are two storage options in Firebase.
1.Firebase Data Base
2.Firebase Storage
If you want to save data only, you can go with Firebase real time database.
If you want to store files like images..etc,you can go with Firebase Storage.
Both of them are real time database only.
since you mentioned that you want to store data
To read and write from Firebase database data this will help you.

Storing data from android app [closed]

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 am working on an app the required data to be saved each time the user enters in some information. The information needs to be saved and then accessed again when the users returns to the app. My question is what is the best way to store this information. I have used text files in the past on regular java programs to store and retrieve data but I'm wondering if this would be the best solution for an android app. Any help is greatly appreciated.
You can use SQLite database to store data.
http://hmkcode.com/android-simple-sqlite-database-tutorial/
http://www.tutorialspoint.com/android/android_sqlite_database.htm
or use SharedPreferences
There are many different ways of storing data depending on what you are doing.
But SharedPreferences should probably suffice for what you need.
http://developer.android.com/reference/android/content/SharedPreferences.html

Building a database [closed]

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 am attempting to build a database that will allow a user to upload their music to be accessed by someone else/third party. How would I create it so that the music can be uploaded to a database but providing a path for it to be accessed from where it is stored?
As in A Band upload “Song” and it is then streamed by A Fan.
If it can't upload to a database I need to upload it to a server.
We are building the back end in Java and the front end in HTML.
We are also using Glassfish and Netbeans for writing the code.
You can store files in a BLOB field in a database for example. Another possibility would be to store them directly on the file system, but it has its problems (such as the lack of metadata).
Then you'll need to figure how you want to map each file, for example http://myserver.com/Artist/Album/Songname or http://myserver.com/listen?uniqueid=743.
File upload servlets are available all over the web, so that shouldn't be a problem. The rest is up to your programming skills (this might be too big of a project for you).
Then you'll just need to connect those things together, and that's the part where you start to program (or hit the Google hard).

Make Backup of Data(Ms Access database) from Java Desktop Application [closed]

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
I am making an inventory system. I need to make backup of database file which is ms access database file. I need to make backup frequently so that data could be preserved. Please give me some information on how will I make backup and also guide me to where to store it as backup file.
Thanks in anticipation.
Backing up an Access databse is just making a copy of its .mdb file (and I suggest you store more than one copy - for example 10 last copies). Usual filesystem functions should work. As to where store the backups... it's up to you. How would we know?
Click Microsoft office button -> Manage-> Back Up Database -> Enter backup database name in File Dialog -> Save
http://databases.about.com/od/tutorials/ht/backup_access.htm

Categories

Resources