Iaxia
I hate code!
Profile
Posts: 108
Reg: Feb 04, 2012
Toronto
7,080
12/29/12 03:13 PM (13 years ago)

Blackberry playbook: Invalid file path

Just wondering if anyone has found the solution to the problem I describe and also mentioned in the forum link below. I've converted the Android version of my app to the playbook... and everything looks great, except that I cannot open any PDFs or play videos. When I try and open a PDF file I am returned the error "the file path is not valid." I have tried opening video files via streaming through my dropbox folder and by including a video file in Eclipse/Project folders prior to compiling. In both cases the playbook just freezes up. I wonder... should the generic '/sdcard/' path associated with PDF viewer and video player be changed to something else. Any ideas? The logcat for both the failed PDF and video launches are below http://www.buzztouch.com/forum/thread.php?tid=1FE4A14B089C001E08C0908&currentPage=1 ///////// Failed PDF launch logcat //////// 12-29 17:02:50.598: I/Instrumentation(51376290): invoking onCreate() for Activity com.whichstatistic.BT_screen_pdfDoc 12-29 17:02:50.598: W/ZZ(51376290): BT_activity_base:onCreate (BASE CLASS) 12-29 17:02:50.612: W/ZZ(51376290): BT_screen_pdfDoc:onCreate 12-29 17:02:50.616: W/ZZ(51376290): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Box plot (examples)" 12-29 17:02:50.617: W/ZZ(51376290): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#FFFFFF" 12-29 17:02:50.624: W/ZZ(51376290): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Box plot (examples)" 12-29 17:02:50.624: W/ZZ(51376290): BT_screen_pdfDoc:backgroundWorkerThread this screen does not use a background image 12-29 17:02:50.643: W/ResourceType(51376290): No package identifier when getting value for resource number 0x00000000 12-29 17:02:50.651: W/ZZ(51376290): BT_fileManager:getDrawableFromResourcesByName An exception occurred trying to get the drawable named: bt_bg_title.png ///// Video launch using the video plugin (streaming) ////////// 12-29 17:05:57.923: W/ZZ(51376290): BT_act_controller:loadScreenObject for screen with itemId: "DCCE312943E6D826D40725D" and itemNickname: "Histogram (video)" and itemType: "At53_video_player" 12-29 17:05:57.929: I/ActivityManager(13701266): Starting: Intent { cmp=appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player (has extras) } from pid 51376290 12-29 17:05:57.953: W/ZZ(51376290): WB_screen_menuImage:onPause (BASE CLASS) 12-29 17:05:57.957: V/WindowManager(13701266): Set focused app to: AppWindowToken{7b2e6070 token=HistoryRecord{7b2cefb0 appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player}} 12-29 17:05:57.962: I/Instrumentation(51376290): invoking onCreate() for Activity com.whichstatistic.At53_video_player 12-29 17:05:57.963: W/ZZ(51376290): BT_activity_base:onCreate (BASE CLASS) 12-29 17:05:57.971: W/ZZ(51376290): At53_video_player:onCreate 12-29 17:05:57.971: W/ZZ(51376290): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Histogram (video)" 12-29 17:05:57.971: W/ZZ(51376290): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#000000" 12-29 17:05:57.972: W/ZZ(51376290): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Histogram (video)" 12-29 17:05:57.972: W/ZZ(51376290): At53_video_player:backgroundWorkerThread this screen does not use a background image 12-29 17:05:57.976: W/ResourceType(51376290): No package identifier when getting value for resource number 0x00000000 12-29 17:05:57.977: W/ZZ(51376290): BT_fileManager:getDrawableFromResourcesByName An exception occurred trying to get the drawable named: bt_bg_title.png 12-29 17:05:57.977: W/ZZ(51376290): BT_viewUtilities:getNavBarForScreen Hiding nav. bar for screen with nickname: "Histogram (video)" 12-29 17:05:58.043: D/dalvikvm(51376290): GC_EXTERNAL_ALLOC freed 357K, 43% free 4109K/7175K, external 4343K/4460K, paused 48ms 12-29 17:05:58.068: W/ZZ(51376290): At53_video_player:onStart (BASE CLASS) 12-29 17:05:58.068: W/ZZ(51376290): At53_video_player: start GPS is set to NO in the applications configuration data, not starting GPS 12-29 17:05:58.068: W/ZZ(51376290): At53_video_player:onResume (BASE CLASS) 12-29 17:05:58.074: D/Binder(13619342): Generated cookie 694607e6 for dup message of fd 164, to pid 13701266 chid 1 12-29 17:05:58.074: D/Binder(13619342): Generated cookie 694607e7 for dup message of fd 165, to pid 13701266 chid 1 12-29 17:05:58.075: D/Binder(13619342): Generated cookie 694607e8 for dup message of fd 168, to pid 13701266 chid 1 12-29 17:05:58.084: D/WindowManager(13701266): Enabled close button: Window{7b295040 appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player paused=false} 12-29 17:05:58.111: D/WindowManager(13701266): Enabled close button: Window{7b295040 appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player paused=false} 12-29 17:05:58.115: D/Binder(13619342): Generated cookie 694607e9 for dup message of fd 158, to pid 13701266 chid 1 12-29 17:05:58.315: I/ActivityManager(13701266): Displayed appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player: +361ms 12-29 17:05:58.317: W/ZZ(51376290): WB_screen_menuImage:onStop (BASE CLASS) 12-29 17:05:58.860: W/ZZ(51376290): At53_video_player:playVideo 12-29 17:05:58.888: D/Binder(13619342): Generated cookie 694607ea for dup message of fd 170, to pid 13701266 chid 1 12-29 17:05:58.888: D/Binder(13619342): Generated cookie 694607eb for dup message of fd 171, to pid 13701266 chid 1 12-29 17:05:58.888: D/Binder(13619342): Generated cookie 694607ec for dup message of fd 172, to pid 13701266 chid 1 12-29 17:05:58.891: W/ZZ(51376290): At53_video_player:playVideo loading from: http://dl.dropbox.com/u/56830064/Histogram.mp4 12-29 17:05:58.960: D/WindowManager(13701266): Enabled close button: Window{7b295040 appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player paused=false} 12-29 17:05:58.967: D/Binder(13619342): Generated cookie 694607ed for dup message of fd 145, to pid 13701266 chid 1 12-29 17:05:58.998: D/MediaPlayer(51376290): Couldn't open file on client side, trying server side 12-29 17:06:05.089: D/dalvikvm(47702177): GC_EXPLICIT freed 3K, 52% free 2633K/5379K, external 716K/1038K, paused 77ms 12-29 17:07:34.335: I/QNXNavigatorClient(13701266): onActive: cid=30116147359 false 12-29 17:07:34.338: I/QNXNavigatorClient(13701266): onWindowState: cid=30116147359 state=invisible 12-29 17:07:34.342: W/Lowmemorykiller(13586548): android_monitor_thread: window state changed to 0 12-29 17:07:34.841: I/QNXNavigatorClient(13701266): leaveGroup: 0 12-29 17:07:34.843: D/qnx.Launcher(13701266): launching uri android://com.qnx.android.app.launcher/?activity-name=com.qnx.android.app.launcher.LaunchActivity 12-29 17:07:34.847: I/ActivityManager(13701266): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.qnx.android.app.launcher/.LaunchActivity (has extras) } from pid 13701266 12-29 17:07:34.877: D/wifi(13701266): status: wifi-state=7 12-29 17:07:35.358: W/ActivityManager(13701266): Activity pause timeout for HistoryRecord{7b2cefb0 appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player} 12-29 17:07:35.385: V/WindowManager(13701266): Set focused app to: AppWindowToken{7b1d78b0 token=HistoryRecord{7b1d6b38 com.qnx.android.app.launcher/.LaunchActivity}} 12-29 17:07:35.399: D/WindowManager(13701266): Enabled close button: Window{7b2ad850 com.qnx.android.app.launcher/com.qnx.android.app.launcher.LaunchActivity paused=false} 12-29 17:07:35.418: D/Binder(13619342): Generated cookie 69a707ee for dup message of fd 158, to pid 13701266 chid 1 ///// Video launch using the video plugin (playing from device) ////////// 12-29 17:10:20.125: W/ZZ(51450015): At53_video_player:playVideo 12-29 17:10:20.157: D/Binder(13619342): Generated cookie 6a4c0810 for dup message of fd 155, to pid 13701266 chid 1 12-29 17:10:20.157: D/Binder(13619342): Generated cookie 6a4c0811 for dup message of fd 156, to pid 13701266 chid 1 12-29 17:10:20.157: D/Binder(13619342): Generated cookie 6a4c0812 for dup message of fd 159, to pid 13701266 chid 1 12-29 17:10:20.175: W/ZZ(51450015): At53_video_player:playVideo EXCEPTION copying video to /sdcard 12-29 17:10:20.175: W/ZZ(51450015): At53_video_player:playVideo no videoFileName or videoURL provided? 12-29 17:10:20.211: D/WindowManager(13701266): Enabled close button: Window{7b304a88 appinventor.ai_RInstructor.R2/com.whichstatistic.At53_video_player paused=false} 12-29 17:10:20.240: D/Binder(13619342): Generated cookie 6a4c0813 for dup message of fd 138, to pid 13701266 chid 1 12-29 17:10:20.358: D/Binder(13619342): Generated cookie 6a4c0814 for dup message of fd 160, to pid 13701266 chid 1 12-29 17:11:55.516: I/QNXNavigatorClient(13701266): onActive: cid=30116221086 false 12-29 17:11:55.519: I/QNXNavigatorClient(13701266): onWindowState: cid=30116221086 state=invisible 12-29 17:11:55.523: W/Lowmemorykiller(13586548): android_monitor_thread: window state changed to 0 12-29 17:11:56.021: I/QNXNavigatorClient(13701266): leaveGroup: 0 12-29 17:11:56.022: D/qnx.Launcher(13701266): launching uri android://com.qnx.android.app.launcher/?activity-name=com.qnx.android.app.launcher.LaunchActivity 12-29 17:11:56.025: I/ActivityManager(13701266): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.qnx.android.app.launcher/.LaunchActivity (has extras) } from pid 13701266 12-29 17:11:56.031: W/ZZ(51450015): At53_video_player:onPause (BASE CLASS) 12-29 17:11:56.040: D/wifi(13701266): status: wifi-state=7 12-29 17:11:56.056: V/WindowManager(13701266): Set focused app to: AppWindowToken{7b1d78b0 token=HistoryRecord{7b1d6b38 com.qnx.android.app.launcher/.LaunchActivity}} 12-29 17:11:56.063: D/WindowManager(13701266): Enabled close button: Window{7b2ad850 com.qnx.android.app.launcher/com.qnx.android.app.launcher.LaunchActivity paused=false} 12-29 17:11:56.078: D/Binder(13619342): Generated cookie 6aac0815 for dup message of fd 155, to pid 13701266 chid 1 12-29 17:11:56.120: W/ZZ(51450015): At53_video_player:onStop (BASE CLASS) 12-29 17:12:05.103: D/dalvikvm(51450015): GC_EXPLICIT freed 341K, 47% free 3804K/7111K, external 5885K/6822K, paused 90ms
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/12/13 04:50 PM (13 years ago)
Frankly, I'm clueless. Did you get this going? I did find this, but as I haven't tried blackberry yet, I'm just tossing out options... http://docs.blackberry.com/en/developers/deliverables/11938/File_systems_and_paths_812501_11.jsp Cheers! -- Smug
 
Iaxia
I hate code!
Profile
Posts: 108
Reg: Feb 04, 2012
Toronto
7,080
like
01/14/13 05:36 AM (13 years ago)
Thanks for the link. I believe I've already tried this and it didn't work. I've done a lot of research into the problem and spoke to someone who develops a lot for the playbook... and I've come to the solution that the platform doesn't support .pdf files yet. Weird, I know.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.