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.
Related
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 last year.
Improve this question
I have an application in Android Studio that functions perfectly well, I want to ask if I can extract its Firebase Realtime Database JSON tree structure so I can implement it on my own Firebase console as well, and change the data accordingly.
Is it possible to extract the JSON of the Firebase Realtime Database?
Technically, it's possible.
According to your last comment:
Yes I was thinking of trying to get the JSON File structure from Java Code.
If you need to get the structure in Java code, you have to go through your entire database and map each node into the corresponding JSON structure and in the end, save it to a file.
However, if you need it fast, you can directly download it from the console. To achieve that, simply open your Firebase Console, choose your project, select your database, click download the JSON file from the right side, using the "Export JSON" option.
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.
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.
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
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 9 years ago.
Improve this question
I need help again.
I have a listView in an activity and i need to populate its items from a database..
Any suggestions or tutorials for the problem?
Thanks in advance.
Waiting for your replies...
These are some links where you get some useful example for Create ListView From SQLite Database in Android Development
Link1,
Link2,
Link3
for a local databse on the phone itself, its handy to use a sqlite-database
for an external Database, you need a WebService (for example: php) to access the MySQL-database. one example is here
this will take some time to figure it out. i would recommend to try a local-database with sqlite for starters