I'm new to Android development so bear with me. In part of the app I am developing, the user should be able to enter notes, stories, journal entries, etc. and view old ones (purely in text form at this point). To do this I need a way to save and access these user provided entries.
我是Android开发的新手,所以请耐心等待。在我正在开发的应用程序的一部分中,用户应该能够输入笔记,故事,日记条目等,并查看旧的(此时纯粹以文本形式)。为此,我需要一种方法来保存和访问这些用户提供的条目。
What is the best way to do this? (in general terms, I don't need specific code although it would be awesome as an example) Do I use a database? The device's internal storage? Remember, the user must be able to view these at leisure, but doesn't necessarily need to be able to share them with others.
做这个的最好方式是什么? (一般来说,我不需要特定的代码,虽然它作为一个例子很棒)我是否使用数据库?设备的内部存储?请记住,用户必须能够在闲暇时查看这些内容,但不一定需要能够与他人共享。
If you could link to a tutorial for the appropriate method of storage then I would be very grateful
如果您可以链接到适当的存储方法的教程,那么我将非常感激
Thanks!
2 个解决方案
#1
0
I would take a look at this page it should give you all the information you will need to store information in applications. Read through this and determine what will be best depending on your goals and needs of your application.
我会看看这个页面,它应该为您提供在应用程序中存储信息所需的所有信息。仔细阅读并根据您的目标和应用需求确定最佳选择。
#2
0
For your app it would be best to use the DB. You can refer to the Notepad tutorial for sample code.
对于您的应用程序,最好使用数据库。您可以参考记事本教程以获取示例代码。
The user will not have direct access to it , your app will be used to show the entries.
用户无法直接访问它,您的应用将用于显示条目。
#1
0
I would take a look at this page it should give you all the information you will need to store information in applications. Read through this and determine what will be best depending on your goals and needs of your application.
我会看看这个页面,它应该为您提供在应用程序中存储信息所需的所有信息。仔细阅读并根据您的目标和应用需求确定最佳选择。
#2
0
For your app it would be best to use the DB. You can refer to the Notepad tutorial for sample code.
对于您的应用程序,最好使用数据库。您可以参考记事本教程以获取示例代码。
The user will not have direct access to it , your app will be used to show the entries.
用户无法直接访问它,您的应用将用于显示条目。