D DPH Member Licensed User Longtime User Jul 22, 2013 #1 I have an application that depends on several map images and I need to know how to install these maps with the application.
I have an application that depends on several map images and I need to know how to install these maps with the application.
NJDude Expert Licensed User Longtime User Jul 22, 2013 #2 You have to add those JPG pictures to your project using the IDE (bottom right of the screen you'll see a "Files" tab, click there the click on the "Add Files" button. Upvote 0
You have to add those JPG pictures to your project using the IDE (bottom right of the screen you'll see a "Files" tab, click there the click on the "Add Files" button.
D DPH Member Licensed User Longtime User Jul 23, 2013 #3 Do you have an example of how to access these files in a program? Upvote 0
NJDude Expert Licensed User Longtime User Jul 23, 2013 #4 You have to either read the files in your app or copy them to the device, read more about FILES Upvote 0
D DPH Member Licensed User Longtime User Jul 23, 2013 #5 Is there a way to read how many files are in the DirAssets directory? Also, some examples of using DirAssets would be appreciated. Upvote 0
Is there a way to read how many files are in the DirAssets directory? Also, some examples of using DirAssets would be appreciated.
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2013 #6 You can use File.ListFiles to list the files in the assets folder. Though it is not really needed as you add the files during. There are many examples that use File.DirAssets. Files are explained here: http://www.b4x.com/android/forum/threads/text-files.6690/#post-38928 All you need to do is use File.DirAssets as the folder value. Upvote 0
You can use File.ListFiles to list the files in the assets folder. Though it is not really needed as you add the files during. There are many examples that use File.DirAssets. Files are explained here: http://www.b4x.com/android/forum/threads/text-files.6690/#post-38928 All you need to do is use File.DirAssets as the folder value.