blackberry-playbook

How to solve “Native methods are not allowed in loaded code” error

北城以北 提交于 2019-12-24 10:47:54
问题 I want to let my app to run sound while the playbook in standby mode, I put this statement in the start up QNXSystem.system.inactivePowerMode = QNXSystemPowerMode.THROTTLED; Now when I debug the app on the simulator (not desktop debugger) I got this error VerifyError: Error #1079: Native methods are not allowed in loaded code. And this error I got also when using AlertDialog. Note: I am using Flash builder, and I have put the qnx SWC in the libraries path. .... so to solve these problems? 回答1

Draw a Hand Signature in Flex 4

我的未来我决定 提交于 2019-12-24 08:22:12
问题 I am creating an application that requires a user to draw their hand signature on a tablet. Does anyone the best way to do this on Flex mobile 4.5? What do I draw on to, a Sprite, canvas? Also, I would need to save the signature as a .jpg, could this be done? 回答1: Have a look on the following: http://www.jamesward.com/2010/03/22/flex-paint-updated-to-flex-4/ It may give you some hints. 回答2: The BlackBerry-provided sample signature capture app ought to be a good starting point. 来源: https:/

How to debug playbook simulator?

你。 提交于 2019-12-24 00:31:20
问题 I've converted my Android app to a playbook bar; it works (with a lot of graphical bugs); however I'd like to know if it is possible to debug the software while it's running. Of course, I don't ask for the "luxury" of an adb equivalent, but at the very least, I'd like to get some printf. 回答1: You can use the standard Log.d("Tag", "Message text"); logging methods and watch the info in LogCat, as well as set a breakpoint and start debugging in Eclipse. I just verified it, the breakpoint was hit

Album art of music file

泄露秘密 提交于 2019-12-23 05:39:27
问题 Is There any way by which we can have album art of any music file , i am able to extract file detail like album name , length , author , genre , track info. But i am intresred in to showing album art image. Please help 回答1: Apparently someone on this page managed to write some code to extract the image's data as a ByteArray, then finally load it through a Loader object. Here's the code they came up with: var binaryData:ByteArray; var file:URLLoader = new URLLoader(new URLRequest("test.mp3"));

ItemRenderer Switching URLLoader Images

℡╲_俬逩灬. 提交于 2019-12-23 04:42:14
问题 I don't even know how to explain this behavior but I'll try. I am loading images from an external url that requires basic auth so I am using URLLoader to load the image from a unique ID. The ID gets passed to the itemrenderer which then proceeds to load the image. But the images switch around on their own when I scroll. If I load more than 7 images or so it starts repeating images.... Youtube video of error: http://www.youtube.com/watch?v=ZYoqlS14gWQ Relevant code: <s:ItemRenderer name=

How do i configure SDL to work with the Blackberry Playbook Native SDK / NDK?

南笙酒味 提交于 2019-12-13 04:25:35
问题 I've got the NDK set up and managed to compile and run the hello native sdk project on my playbook. I downloaded the blackberry sdl port from github. However I've been unable to compile even a hello world project using it. Also it seems to be lacking a "lib" folder which I'm used to needing for the compiler settings. EDIT: I have managed to get the sdl to open in the native sdk, it seems the download was designed to act as a project template of sorts. At first the compiler complained that i

PhoneGap with Blackberry OS 10

你。 提交于 2019-12-12 14:21:33
问题 I would like to know whether PhoneGap sdk supports Blackberry OS 10 build? I think it is .bar file, am I correct? 回答1: ** Update ** At the time of this original answer, PhoneGap did NOT support BB10, however a lot has changed at you can now successfully build PhoneGap apps targeting BlackBerry 10. I've re-written the PhoneGap Getting Started Guide (http://docs.phonegap.com/en/2.6.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20BlackBerry) And a Knowledge Base

Android - Display Ads in ported BB Playbook App?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:56:10
问题 I wanted to port my Android App to BB PB but then I noticed that none of my AdMob Ads where displaying. So I thought this might be because most of the AdMob Ads refere to Android Apps on the Playstore. Therefore these can't be displayed because the PB hasn't got a Play Store. My Question: How can I display Ads in my Android-PB App? Is there a solution for AdMob Ads or should I use an other service? 回答1: You can't display any Admob ads in Playbook currently, the current workaround I use it to

BlackBerry Resolution

空扰寡人 提交于 2019-12-09 01:47:58
问题 Is there any simulator with Resolution 680x800 in BlackBerry? I have searched a lot..But I could not get specific Result.. Site from which I download Simulaors does not provide Resolution information.. http://swdownloads.blackberry.com/Downloads/contactFormPreload.do?code=060AD92489947D410D897474079C1477&dl=7A51789FDE2B3B44C6ED1BA5D80D53CB&check1=A Please Help me... Thanks in Advance 回答1: I do not believe that there is a BlackBerry device with that resolution. Here is a list of some legacy BB

Switch between Flex Tabbed ViewNavigators

别来无恙 提交于 2019-12-07 18:26:36
问题 I am working on a Flex TabbedViewNavigatorApplication with three tabs (ViewNavigator elements). I would like to switch from one ViewNavigator to another based upon a user action (via ActionScript code). I know that switching between Views uses pushView and popView , but I'm working with ViewNavigators, and my searching revealed nothing useful. I'm trying to switch from Tab2 to Tab1 when an event occurs. In this case, Tab2 contains a list, and when the user makes a selection, I want to jump