qt中将数据保存到数据库
If you read my previous article on accessing sensor data in your Android app, your also probably curious about how you can analyze that data outside of the app. Perhaps you want to look for patterns in the data or track historical changes in a third party app. Whatever your reason is, its clear that you’ll need to save your sensor data off and access it in a tool like Excel.
如果您阅读了我以前的有关在Android应用程序中访问传感器数据的文章,您可能还对如何在应用程序外部分析数据感到好奇。 也许您想在数据中寻找模式或跟踪第三方应用程序中的历史变化。 无论您是出于什么原因,很明显,您都需要保存传感器数据并使用Excel之类的工具来访问它们。
The built in storage on an Android device is divided into two categories. Internal storage consists of app-specific directories that are commonly encrypted to prevent unwanted access by other apps. In other words, the internal storage is read-write accessible to only the owning app. External storage, on the other hand, consists of directories used to save files that may be used by all apps (think photos, videos, and other media). Due to this functional difference, the space allocated for an app’s internal storage is typically much smaller than the space allocated for external storage.
Android设备上的内置存储分为两类。 内部存储由特定于应用程序的目录组成,这些目录通常经过加密,以防止其他应用程序进行不必要的访问。 换句话说,内部存储只能由拥有的应用程序读写访问。 另一方面,外部存储器由用于保存所有应用程序(例如照片,视频和其他媒体)可能使用的文件的目录组成。 由于此功能差异,分配给应用程序内部存储的空间通常比分配给外部存储的空间小得多。
In this article, I’ll walk you through saving this data to the internal storage on your phone.
在本文中,我将指导您将这些数据保存到手机的内部存储中。
它在哪里? (Where is it?)
Despite the summary above, the Android docs never actually define the term “internal storage”. Perhaps worse is the fact that they don’t clearly state where the internal storage is in the file explorer. Fear not. Intern