This article applies to the following:
- BlackBerry® Tablet OS
- BlackBerry® Native SDK
- BlackBerry® WebWorks™ SDK for Tablets
- BlackBerry® SDK for Android™ Apps
BlackBerry Tablet applications run in sandboxes, with each one with having its own private area to store files that is accessible only to that application. This area can be used to store any type of file such as a database, image or log file. Each application also has its own log file created by default that can be used to record data for the purposes of testing and debugging. For example, native applications standard out and standard error streams are recorded in the log file.
Unless you code a way to display these files in your application, there is no way to see them on the device. However, you can extract them to view them on your PC.
Note: Before you begin, ensure that you have installed a debug version of your application. This process will not work on a release build of an application. The device will also need to be put into Developer Mode.
The BlackBerry Native SDK provides a graphical user interface to copy files to and from a BlackBerry Tablet. Use the following steps to copy a file.
The BlackBerry Native SDK, BlackBerry® Tablet OS SDK for Adobe® AIR®, BlackBerry WebWorks SDK for Tablets and BlackBerry SDK for Android Apps all include a command line application that can be used to copy files from a BlackBerry Tablet. The following command shows an example of copying the application log file. This command requires a copy of the BAR file installed on the device to be available on the computer executing the command.
blackberry-deploy -getfile logs/log logFileOnPC.txt -device 169.254.0.1 -password YOUR_PASSWORD YOUR_BAR_FILE.bar
You can also use the -putfile command to upload files to a BlackBerry Tablet.