Native? Or Cascades?
Hello
I am porting my apps playbook on to bb10.
They were built in the AIR, but I want to add some new arrivals whose AIR is just too slow for. I had the intention to rebuild native, but im confused, what is the difference between the native approach and the cascades.
Which should I use?
Okay, to be clear - Cascades * is * native. You just start using elements of graphical interface provided by waterfalls (add a few new libraries) and changes the structure of your app (using different event-handling logic etc.). But all that is available for native is available for app stunts. You don't need stunts if your app for example uses its own photos/text rendering, menus, buttons etc in place Let's say using OpenGL.
You can probably define "Native" in your own words? What thing confuses you here?
Tags: BlackBerry Developers
Similar Questions
-
What is the difference betwwen development C/C++ native development & C++ QT Cascades.
I assume you're referring to Kits SDKS listed on this page:
https://developer.BlackBerry.com/DevZone/platforms/BB10
C/C++ native Development Kit is everything you need to encode a native C/C++ application to run on the BlackBerry PlayBook and the next BlackBerry 10 devices. The API described should give you everything you need to develop all the components of your application, from the ground up. If you have an existing application, you can probably start here. This SDK is ideal for access to the low-level API.
However, it does not come with a user interface toolkit. You have literally everything code yourself, or help existing libraries to the port for you. You probably don't want to do. Instead, you can watch the C + c++ / Qt Cascades Development kit. This SDK provides you with everything you need to develop an application for BlackBerry 10 devices to come. You can still access all the low-level APIs, if you need it, but because Qt adds so much and is so powerful, almost everything you need is probably already there.
Basically, Qt will provide you with the API call and use in your application. These libraries are open source which have been reviewed for many years and will probably accomplish everything you need. Go further, Cascades is the toolkit of user interface of choice in the native development, as it offers UIS amazing, fluid and easy implementation in your application.
Note that I never mentioned the PlayBook by discussing the C + c++ / Cascades of Qt kit. The PlayBook is not supported with native support for this mode of development, but it will come with 10 BlackBerry is released later this year.
Basically, the native C/C++ SDK provides you with the nuts and bolts, you must develop an application from scratch. But why would you, when C + c++ / Qt Cascades Development kit includes many libraries for things you probably want to do.
Unless you develop a game, a porting library, or the need to develop for the PlayBook today, using C + c++ / Qt Cascades development kit.
-
How to implement QtSoap in native development of cascade?
Hello
I want to ask you something QtSoap implementation. I use QtSoap to parse the Web services *.asmx files. I include qtsoap.h and qtsoap.cpp from external sources, but I can't find the libraries.
Can you help me solve this problem and how to implement QtSoap in native waterfall?
Thanks before.
I got this error message:
Build configuration Debug-Simulator for BB10BinusmayaMobile project *.
make - j2 Simulator-Debug
do .//translations - C f Makefile update
make [1]: Entering directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
D:, bbndk, host_10_1_0_132, win32 / x 86/usr/bin/lupdate BB10BinusmayaMobile.pro
Update 'BB10BinusmayaMobile.ts '...
Found 6 source text (s) (0 new and 6 already existing)
make [1]: leaving directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
do .//translations f - C release of Makefile
make [1]: Entering directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
D:, bbndk, host_10_1_0_132, win32 / x 86/usr/bin/lrelease BB10BinusmayaMobile.pro
Update: / Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations/BB10BinusmayaMobile.qm'...
Generated translation (s) 0 (0 finished and unfinished 0)
Ignored for 6 text (s) of the untranslated source
make [1]: leaving directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
make - c / f - 86 Makefile debugging x
"make [1]: Entering directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
d:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/qmake.exe-spec... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86 - QCC CONFIG += debug_and_release += o Makefile... simulator config BB10BinusmayaMobile.Pro
"make [1]: leaving directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
"make [1]: Entering directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
do f Makefile.Debug
"make [2]: Entering directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/applicationui.o o I... /SRC/applicationui.cpp
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/main.o o I... /src/main.cpp
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/qtsoap.o o I... /SRC/qtsoap.cpp
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/webservices.o o I... /SRC/WebServices.cpp
D:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/MOC.exe-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-I.-D__QNXNTO__... / SRC/applicationui. HPP o o-g/.moc/moc_applicationui.cpp
D:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/MOC.exe-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-I.-D__QNXNTO__... /SRC/qtsoap.h o o-g/.moc/moc_qtsoap.cpp
D:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/MOC.exe-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-I.-D__QNXNTO__... /SRC/WebServices.h o o-g/.moc/moc_webservices.cpp
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-i o o-g/.obj/moc_applicationui.o o-g/.moc/moc_applicationui.cpp
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-i o o-g/.obj/moc_qtsoap.o o-g/.moc/moc_qtsoap.cpp
CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-i o o-g/.obj/moc_webservices.o o-g/.moc/moc_webservices.cpp
CQS-Vgcc_ntox86-lang-c ++ - Wl, - rpath - link, d, bbndk, target_10_1_0_1020, qnx6 / x 86/lib - Wl, - rpath - link, d, bbndk, target_10_1_0_1020, qnx6 / x 86/usr/lib - Wl, - rpath - link, d, bbndk, target_10_1_0_1020, qnx6 / x 86/usr/lib/qt4/lib - o o-g/BB10BinusmayaMobile o-g/.obj/applicationui.o o-g/.obj/main.o o-g/.obj/qtsoap.o o-g/.obj/test.o o-g/.obj/webservices.o o-g/.obj/moc_applicationui.o o-g/.obj/moc_qtsoap.o o-g/.obj/moc_test.o o-g/.obj/moc_webservices.o - LD : / bbndk / target_10_1_0_1020/qnx6 / x 86/lib - LD: / bbndk/target_10_1_0_1020/qnx6 / x 86/usr/lib - LD: / bbndk/target_10_1_0_1020/qnx6 / x 86/usr/lib/qt4/lib - LD: / bbndk/target_10_1_0_1020/qnx6 / / usr/lib/qt4/lib - lbbcascades - lQtDeclarative - lQtScript - lQtSvg - lQtSql-lsqlite3 - lz - lQtXmlPatterns - lQtGui - lQtNetwork - lsocket - lQtCore - lm - lbps
D:\bbndk\host_10_1_0_132\win32\x86\usr\bin\ntox86-ld: o-g/.obj/qtsoap.o: reference to undefined symbol '_ZN12QDomDocument15createElementNSERK7QStringS2_'
D:\bbndk\host_10_1_0_132\win32\x86\usr\bin\ntox86-ld: Notes: '_ZN12QDomDocument15createElementNSERK7QStringS2_' is defined in DSO D:/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib/qt4/lib/libQtXml.so.4 try so add to the linker command line
D:/bbndk/target_10_1_0_1020/QNX6/x86/usr/lib/Qt4/lib/libQtXml.so.4: could not read symbols: invalid operation
CC: D:/bbndk/host_10_1_0_132/win32 / x 86/usr/bin/ntox86-ld caught signal 1
make [2]: * [o-g/BB10BinusmayaMobile] error 1
make [1]: * [debug] error 2
"make [2]: leaving directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
"make [1]: leaving directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
make: * [Simulator-Debug] error 2Build completed *.
QDomDocument part QtXml, if you check in the documentation of the API
https://developer.BlackBerry.com/native/reference/Cascades/QtXml.html
you see that:
To connect the module, add this line to your qmake .pro file:
QT += xmltry this.
-
BB::Cascades:KeyLayout and TextArea
Hello
I need help on how to edit TextArea and KeyLayout in alphanumeric mode.
It is the property of entry (bb::cascades:TextInputProperties), but it doesn't have the property of KeyLayout. I tried to change to C++ and Qml, but this property seems to be hidden.
BB::Cascades:KeyLayout
https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__textinputproperties.html
Yes only since 10.3.0 version.
-
Streaming audio BlackBerry Cascades
Hello
I tried a few codes example on streaming:
- https://developer.BlackBerry.com/native/reference/Cascades/bb__multimedia__mediaplayer.html (it works with a local as file: asset:///musica/musica.mp3)
- http://BlackBerry.github.IO/Cascades-samples/nowplaying.HTML#UI (It works with local files, but not with streaming.) I see no error messages in the console)
Well, unfortunately, none of them work for me. This is the code that I put in place of the first link:
import bb.cascades 1.0 import bb.multimedia 1.0 // ... Page { Container { // ... attachedObjects: [ MediaPlayer { id: player sourceUrl: "http://198.50.238.203:7014" // Set these properties for video videoOutput: VideoOutput.PrimaryDisplay windowId: fwcVideoSurface.windowId onMediaStateChanged: { switch (player.mediaState) { case MediaState.Unprepared: break; case MediaState.Prepared: break; } } } ] ForeignWindowControl { id: fwcVideoSurface windowId: "myVideoSurface" visible: boundToWindow updatedProperties: WindowProperty.Size | WindowProperty.Position | WindowProperty.Visible } // ... Button { id: btnPlay text: "Play" onClicked: { if (player.play() != MediaError.None) { // Your error handling code here. } } } Button { id: btnStop text: "Stop" onClicked: { player.stop(); } } Button { id: btnReset text: "Reset" onClicked: { player.reset(); } } } }
I opened the file pls (http://198.50.238.203:7014 / 8400/listen.pls). So I get this url: http://198.50.238.203:7014 /
When I pressed the button to play from the first example, I got this message (I can't listen to music) in the console of QNX Momentics IDE:START 1 MediaPlayer::play START 1 MediaPlayer::prepare START 1 MediaPlayerPrivate::generateAudioOutputUrl MediaPlayerPrivate::generateAudioOutputUrl: audioOutput=Default => END 1 ( 1 ms): START 1 MediaPlayerPrivate::generateVideoOutputUrl MediaPlayerPrivate::generateVideoOutputUrl: videoOutput=PrimaryDisplay MediaPlayerPrivate::generateVideoOutputUrl: windowId="myVideoSurface" MediaPlayerPrivate::generateVideoOutputUrl: windowGroupId="mainWindow-174317799-36F3F97AA7224633-0" => END 1 ( 2 ms): START 1 MediaPlayerPrivate::updateAudioOutputParams => END 1 ( 1 ms): START 1 MediaPlayerPrivate::attachInput MediaPlayerPrivate::attachInput: url=QUrl("http://198.50.238.203:7014") UIToolkitSupport: Unrecognized scheme "http" MediaPlayerPrivate::attachInput: Attempting to attach input. url="http://198.50.238.203:7014", type="playlist" START 1 MediaPlayerPrivate::lastError => END 1 ( 0 ms): MediaPlayerPrivate::attachInput: Attempting to attach input. url="http://198.50.238.203:7014", type="autolist" START 1 MediaPlayerPrivate::lastError => END 1 ( 0 ms): MediaPlayerPrivate::attachInput: Unable to attach source input. url="http://198.50.238.203:7014", e=UnsupportedMediaType => END 1 ( 503 ms): MediaPlayer::prepare: Error attaching input source, error=UnsupportedMediaType => END 1 ( 508 ms): MediaPlayer::play: Unable to prepare the player. error=UnsupportedMediaType => END 1 ( 508 ms): START 1 MmrContextNotifier::onReadyRead MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x4) , QMap() ) ) ) START 1 MmrContextNotifier::onPpsPlayQueueChanged => END 1 ( 0 ms): => END 1 ( 1 ms): START 1 MmrContextNotifier::onReadyRead MmrContextNotifier::onReadyRead: QMap(("@play-queue", PpsAttribute(Object, QFlags(0x2) , QMap() ) ) ) START 1 MmrContextNotifier::onPpsPlayQueueChanged => END 1 ( 0 ms): => END 1 ( 0 ms):
The same problem has been resolved here http://supportforums.blackberry.com/t5/Native-Development/MediaPlayer-or-Media-Player-invoke-to-play...
-
question about developing native applications
Hey there,
is it mandatory to develop a native app - c ++ stuff is essential to work with qml or can we develop the whole project only with qml coding... ??
. Svery probably the button calls a method from a class c ++, in the samples probably from applicationui.cpp.
check if the called method exists and is marked as q_invokable.read
https://developer.BlackBerry.com/native/documentation/Cascades/dev/integrating_cpp_qml/
to know the basics. -
Hi all
I want to just draw a circle color and restores the perception of the image on this circle.
nothing complicated.
Is it possible, that I pass the nut foroum found nothing concrete.
Help, please!
Concerning
Your OP said you did...
Charuta_Rajopadhye wrote:
I want to just draw a circle color and restores the perception the image on this circle.
nothing complicated.
You can draw a circle using the graphics libraries and a ForeignWindow...
-
Cascades bb10 take screenshot with level API 10.0
Hey everybody,
Is there another way to take the screenshot by code?
I read this post http://stackoverflow.com/questions/13123438/how-to-programatically-take-a-screenshot-on-blackberry-1...
and I read this too https://developer.blackberry.com/native/reference/cascades/bb__system__screenshot.htmlBut I need to take the screenshot with 10.0 minimum API level.
is there another way to do this?Thank you
Less the required permissions the less chance that someone won't use it had to 'trust' of the questions.
I've attached an example of this you can check it out, she mainly only takes full-screen screenshots.
-
Incorporation of a control "web view" in a native application
Something I wanted to say to ask the NDK experts this week but I forgot: it is now possible to integrate a web browser in a native application, similar to how this can be done via a web control in Adobe AIR applications?
Cascades is currently provided as part of the SDK BB10. The plan announced publicly, is that BB10 will be available on the PlayBook sometime after that BB10 phones are released later this year. I can't speculate on dates.
And can't I speculate on the question of if the waterfalls will appear publicly in a version of the pre-BB10 PlayBook software. We know only what is known
I asked webview native non-Cascades and I was told that is not available today.
See you soon,.
Sean
-
How to get a list of files using BB10 native waterfall?
Hello
Please help me how to get the list of all the files in the root directory of the memory card. I try to use QDir::entryInfoList and then repeatedly use QFileInfo::isFile or isDir to search all files in the memory card. But I can't find the files or the directory of the path root only like that, I found., /, /, /, /. Can someone help me please?
Thanks for any help.
Victor.
Take a look at https://developer.blackberry.com/native/reference/cascades/qdiriterator.html
-
Can we get an example of application in CORE NATIVE and WATERFALLS in blackberry-10?
Good day to all,
It's too late to ask this question.
(NOTE: I asked this question in native development Forum also, because I don't know where I have to ask myself this question.)
I need a sample application (such as 'Hello World') for the CASCADES and CORE NATIVE, to know how to start the NATIVE application. Because when I create a sample app by choosing
FILE > NEW > BLACKBERRY PROJECT > APPLICATION (application type) > screen/empty (I chose the language in C++), but it provides 'main.c' not the "main.cpp" and I have not a clue of how to grow a single screen according to I have to start the implementation.
I think you all understand my problem.
Hi all
I get the solution here (dishooom replyed on the same question that I posted in the Native Development Forum):
sample-application-in-CORE-NATIVE-and-CASCADES
Thanks to dishooom.
-
How to use the property PivotX and PivotY in cascades
Hello
My goal is to rotate the line on my angle.
1 I received two points: A(x1; y1) and B(x2; y2).
2. I calculated the size of the vector AB and angle of point A:
AB = Math.sqrt (Math.pow ((x2-x 1), 2) + Math.pow ((y2-y1), 2));
Alicia = 44 *.3 I put in place the line on the terms of coordination (width = AB, height = 3px):
myLine.layoutProperties.positionX = x 1;
myLine.layoutProperties.positionY = y1;4 I turn the line on the angle that was found.
The starting point of the line must be the point A, endpoint - point B. But I have no =)
I try to use the rotationZ, but I do not know how to work with his propertyes PivotX and PivotY.
Default 0 PivotX and PivotY = 0. When I try to set up PivotX = x 1 and y1 = PivotY I get the incorrect result.With PivotX = 0 and PivotY = 0 I get it (myLine.rotationZ = 44):
Please, help me =)
That could happen, because the pivotX and pivotY zero definition makes the rotation around the center of the element. In the case of this image, which is equal to its center point (300, 1.5), but no, it is top left. Try to set the pivotX to-(image.width/2), which will be:-300; pivotY to the-(image.height/2), which is - 1.5; and then turn again.
Please see the details on this subject here:
http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__visualnode.html
-
work with libraries of fragile Cascades
just found out HowTo create a library project and how to use it
See this thread: http://supportforums.blackberry.com/t5/Native-Development/Cascades-Library-lost-in-space/td-p/270240...
But in the meantime I don't know if it's really a good idea to use library projects because they seem to be fragile.
Problem: Moving location of the library project
After completing the work of the library, I created a GitHub project,
This cloned on my drive
copied the existing content of the Eclipse project inside the workspace
committed/pushed to GitHub
then I did what I always do:
closed the existing project into workspace
deleted project
to be sure of the restarted Momentics
Project to import (Github) in the workspace (without copying)
and to return the library project by using the same name as before
only difference now: the project is not stored inside the workspace.
its location is now outside the workspace
Library project compiles fine, but... Application compiles more, get errors like
make -f Makefile.Debug make[2]: *** No rule to make target `/daten/bb_workspaces/cascades-api-10-1/baastestApp/../baasKinveyLibrary/arm/so.le-v7-g', needed by `o.le-v7-g/baastestApp'. Stop.
Tried to create a new project, added to the library, added assets as described in the other thread, I mentioned above. WORK
Back to the other project. tried to add the library again. There is no update option, no option to delete.
Then I noticed that he was inside the .pri entered INCLUDEPATH for two library sites.
Discovered that in general C/C++ project properties | Paths and symbols in Assembly and GNU - C there are now two includes. removed a wrong pointing it at the old location inside the workspace.
Clean up / re - index / build does not help
INCLUDEPATH and DEPENDPATH now both are ok in .pri, but under the LIBS and PRE_TARGETDEPS, yet there are two entrances. I don't know what I have to change to get them far. Remove .pri does not help because .pri is generated
any idea? "
problem: bar - active descriptor.xml by configuration
While comparing projects that I noticed that the files added to device-Debug, device-release assets, etc., pointing to the library project are not ok.
If I understand right, they should always point to the corresponding configuration.
e.g. for debugging the device, tap on... arm/so.le-v7-g/... and so on
Seems that the add-on-Library Assistant added that randomly. I fixed that. Now I'm knowing: after adding a library to check if the assets are added correctly for each configuration.
BTW: In the thread above I asked get HowTo of the project of library built for all configurations. It's actually easy: Build Configurations | Build all... on the library project
---
Hope someone can tell me how to replace the reference to a project of library if the situation has changed. Or how to remove a library, and then add it again.
THX
do some tests it is how I now use libraries of stunts.
the goal:
develop the library and one or more projects of cascades project using the loibrary in your workspace
the library may not contain C++ QML as well as other assets such as images
There are two steps:
- Create the library project
- use the library of another project of cascades
Library project
as a library template I import the project provided by Isaac Gordezky on Github
https://github.com/BlackBerry/Cascades-community-samples/tree/master/Cascades-library-template
Please only impiort the "MyLibrary" project in your workspace
then prepare the template for this library project. in my case, my library project is named baasKinveyLibrary
- Rename the project in baasKinveyLibrary
Edit the Makefile file: QMAKE_TARGET = baasKinveyLibrary - Edit mylibrary.prf: baaskinveylibrary {... LIBTARGET = baasKinveyLibrary...}
- Rename MyLibrary.pro to baasKinveyLibrary.pro
Rename mylibrary.prf to baaskinveylibrary.prf - / SRC
- / include
- liabilities
- copy your .cpp/SRC
- Copy your all in / include
- Copy your assets into liabilities
- If you need other libraries, edit baasKinveyLibrary.pro. (I did: LIBS +=-lbbdata - lbb - lbbdevice)
- bar - descriptor.xml: remove Active reference library - active and all the configurations of the reference to the library
- Project properties: delete the reference to the library project
- Project properties: remove includes your general C/C++ library | Paths and symbols in Assembly and GNU - C for all configurations, also references uncheck the library for all configurations project
- Narrow Momentics, .cproject open, look for "baasKinveyLibrary" and remove all the
-
Detect if stunts or native on the compilation or execution
Is there a way to detect if the app is built (or built) in native or cascades? I want just the size of the screen like this: http://supportforums.blackberry.com/t5/Native-Development/how-to-get-resolution/td-p/2649643
But to select the corresponding function if its native or cascades automatically.
Or is - this one works on cascades also native?
Thank you
Cascades relies only on the native stuff. All the native stuff is still available in a Cascades app thinking that it is a superset of the available API.
In any case, this post was not a 'no', he was one of the many different 'yes' that apply. I tried to keep it simple because I do not understand half of what you ask... you do not mention a loadable library initially, looks '(windows)' sort of place given the context here. A that the use of 'windows' related to the operating system of Microsoft, or something else?
-
Hey all,.
I would be grateful for the help implementation of a DatePicker using C++, y at - it is a native component on the central part of the SDK as DateTimePicker for the stunts?
Regards and thanks in advance
I think that you are yourself, then you will have to create your own using either Qt functions such as QDateTime for example...
http://developer.BlackBerry.com/native/reference/Cascades/QDateTime.html
or the standard library of C/C++ functions.
-
Change notifications / ringer VOLUME by programming?
Hi guys,.
Does anyone know a way to change the volume of notifications to the active profile? I don't mean to change to a different profile, I need to change the level of the level of the master volume of the current profile, i.e. the value of the volume slider programmatically you can see at the moment where you go to settings / Notifications screen (it's the main notification volume level used for all sounds unless the user overrides it to specific applications or specific types of notification) or that the user can change volume up/down buttons if they are defined in volume rather than multimedia volume change notifications.
I checked the Panel Manager, audio mixer audio libraries etc. and I find how to change the volume of all EXCEPT notifications...
Your help will be greatly appreciated!
The bb setVolume method: platform: NotificationGlobalSettings class, that's probably what you're looking for.
Here is a link to the documentation:
Hope that helps.
Delete the content of
Copy your content in the library project
Library project should now compile
Waterfalls of the project using the library
It's easy:
Configure | Add the library | Library in the workspace project
Select your library project
If you have included assets:
Change bar - descriptor.xmp | Assets | All the Configuration
Add a folder, and then select Workspace the active folder of your library
you will get an entry like this:
${workspace_loc: / baasKinveyLibrary/assets}
You can now use your library
Problem: remove the library
Unfortunately there is no wizard to remove a library, so in case you want to remove it, here are the steps:
now to create the project, open the .pri file - there should be no reference to your library
I'll blog on with screenshots in a few days. ... and open a topic in order to provide a Wizard 'Delete Library' ;-)
Maybe you are looking for
-
This is what it looks like after the removal of all but the swapfile53... (I deleted swapfile1-52) each 1.1 GB
-
Why my youtube downloader doesn't work? (Add-on)
Well, I recently downloaded this add on called 1 click YouTube Download. and it worked perfectly fine for about a month or two and I tried to download another video yesterday and just now and it won't work. on the pop up box of downloads, it just tel
-
How can I keep the pirates of default restore on my "credential auto log on screen.
Someone keeps adding their user name and password in my "credintal auto connect" screen in the vault of storage of credentials of the control panel. How can I prevent someone to take virtual control of my HP Desktop?
-
HPE-150ff: HPE-150ff replace before USB 2.0 to 3.0
Hello I was just wondering, if I replace the USB ports before 2, which are 2.0, with the latest USB 3.0? Who sells this material and how easy / difficult is it to replace the ports? Thanks in advance!
-
How can I turn off the screen of my D2G.608 lock? The central part of my phone does not work, I just want to use my phone only to send SMS. Thank you