Skip to main content

Posts

Showing posts with the label blackberry native

Blackberry 10 cascades - client side socket programming

Blackberry 10 has full support for BSD Sockets API . All the routines one can expect from BSD Sockets are available in Blackberry 10. But cascades make socket programming much easier. In this post we will discuss client side socket programming in Blackberry 10 using cascades . You can study about BSD Sockets API support in Blackberry 10 here . Before starting to use Cascades socket API you have to add this line to your .pro file QT+= network Cascades API provide a high level class QTcpSocket  which makes writing client side socket code very easy. Include following files in your cpp file #include <QtNetwork/QAbstractSocket> #include <QtNetwork/QTcpSocket> Any client side socket app performs following operations 1) Connect to server 2) Send / Receive data 3) Close connection Connecting to server QTcpSocket provides a function connectToHost which takes IP Address/Hostname (QString) , port (quint16) and OpenMode (default value is ReadWrite) as paramet...

Blackberry 10 Application Deployment failed

When you  try to deploy Blackberry 10 application on your simulator or device, you may get these type of errors many times before application is deployed successfully. Deployment Failed: Info: Failed to obtain QConn connection, sync disabled Info: Sync not enabled, packaging full bar required for installation Info: Sending request: INSTALL_AND_LAUNCH Info: Action: Install and Launch Info: Debug native: on Info: File size: 304312 Info: Installing com.example.BB10TrackerSample.testDev_ackerSamplea7864132... Info: Processing 304312 bytes OR Deployment Failed: Info: Attempt to use sync failed: Connection reset Info: Sync not enabled, packaging full bar required for installation Info: Sending request: INSTALL_AND_LAUNCH Info: Action: Install and Launch Info: Debug native: on Info: File size: 304312 Info: Installing com.example.BB10TrackerSample.testDev_ackerSamplea7864132... Info: Processing 304312 bytes This issue is resolved in Blackberry 10.2 SDK. But for those who have not ...