Android: what is the best way to store JSON data offline for the app in android?

前端 未结 3 843
心在旅途
心在旅途 2021-02-05 18:42

I want to implement an app, that will show the route number, the rider has boarded in google map. So to find the route number I need some information about the routes, which are

3条回答
  •  你的背包
    2021-02-05 18:48

    Basically, there are two places where raw stuff may be stored: assets/ and res/raw/ (raw resources). These have been discussed a lot, for example, see the links:

    The reason for Assets and Raw Resources in Android

    http://thedevelopersinfo.com/2009/11/27/using-files-as-raw-resources-in-android/

    http://www.41post.com/3985/programming/android-loading-files-from-the-assets-and-raw-folders

提交回复
热议问题