Posts Tagged ‘BlackBerry’

aaronv

BlackBerry 10 App Dev Training Now Available!

Wednesday, December 19th, 2012

We would like to announce that detailed instructor-led BlackBerry 10 Application Development training is now available from NTG. The training is available for both WebWorks and Native Development Using Cascades and is current to the latest versions of the SDK’s on both development platforms.

For more information on the two courses, click on Developing Applications Using the BlackBerry 10 Native SDK and Cascades or Developing Applications Using the BlackBerry 10 WebWorks SDK.

We have delivered this training already to many students and have received excellent feedback.

The training can be delivered in a public NTG Learning Centre, at a private client site, or even online, whichever is most preferred. The training can also be customized in length to fit a client’s particular needs.

The training is also closely linked to the new BlackBerry 10 Developer Certification program and will provide considerable assistance for people wishing to prepare to write the upcoming App Dev certification exams.

cathyj

Creating a DropDown List for PlayBook Applications

Monday, August 29th, 2011

By Cathy Jin – Consultant

If you’re using Flex 4.5.1 to develop a PlayBook application, you will notice that there is no DropDown list control in the Component View. This is due to the fact that DropDown list is not mobile optimized for Flex. I’ve tried to use it but had little success. There are two possible solutions:

1. You can use a Text Input box and a list popup window. You can refer to this link for an example: http://www.adobe.com/devnet/flex/samples/expense-tracker-application.html.

2. An alternative is to use a QNX component, but you will need to rewrite the code if you want the application to run on different operating systems such as iOS or Android. You can find more infromation on using QNX components at the link: http://corlan.org/2011/02/01/working-with-playbook-qnx-list-components/.

Good luck!

oliverm

PlayBook SDK and Simulator with AIR 2.7

Tuesday, June 28th, 2011

By Oliver Merk – Principal Consultant

An updated version of the BlackBerry® Tablet OS SDK for Adobe® AIR® and the included BlackBerry® PlayBook® Simulator are now available at: http://us.blackberry.com/developers/tablet/adobe.jsp

A couple of things to be aware of when upgrading.

First, make sure you have upgraded to Flash Builder 4.5.1.

Next, backup and delete the blackberry-tablet-sdk-x.x.x folder from {drive}\{Program Files}\Adobe\Adobe Flash Builder 4.5\sdks

Run the installer that you downloaded from the site above: BlackBerryTabletSDK-Air-Installer-1.1.0-2390-Win-201106171136.exe

Unlike the previous version, the SDK now gets installed under {drive}:\{Program Files}\Research In Motion\blackberry-tablet-sdk-1.1.0.

Also, the simulator is now in this new location as well, so update your VMWare® Player to point to the new VM path.

If you have any projects that you’d like to upgrade, do the following:

  • Leave the app.xml namespace at AIR 2.6 (application xmlns=”http://ns.adobe.com/air/application/2.6″). If you try 2.7 like I did, it won’t compile.
  • Remove any hacks such as the monkey-patch swc, compiler additions and extra PlayBook packaging options that you used to get your apps working with the old Simulator.
  • Ensure that the IP address of the new Simulator is updated in your Run/Debug configuration settings.
  • Clean the project and let it rip…

Please let us know if you run into any problems using the new PlayBook® SDK.

Also check out NTG’s courses for developing apps for the PlayBook using WebWorks and Flex/AIR

Chad Upton

BlackBerry PlayBook Tips and Tricks

Wednesday, June 8th, 2011

By Chad Upton – Senior Consultant

I’ve been using the BlackBerry PlayBook for a number of weeks now and I’d like to share some useful actions, most of which are not well known.

 

PlaybookSwipes

Swipes

  • Show/hide the title bar inside an app – swipe along the path of a red arrow
  • Show/hide the keyboard – swipe along the path of the blue arrow
  • Rotate the simulator between landscape and portrait mode (simulator only) – orange arrow

Power

  • Wake up from standby – swipe from bezel to bezel (side/side or top/bottom)
  • Restart or shutdown – tap the power icon in the status bar to reveal a menu that has shutdown/reset options (OS 1.0.5+) or hold the power button for two seconds or tap the power app
  • Power cycle – hold the power button until it begins rebooting

Keyboard

  • Add an ellipse – hold down the letter M to reveal a new character menu
  • Add the copyright symbol – hold down the letter C to reveal a new character menu
  • Add the trademark symbol – hold down the letter T to reveal a new character menu
  • Add the registered symbol – hold down the letter R to reveal a new character menu
  • Add the paragraph symbol – hold down the letter P to reveal a new character menu

Other

  • Mute - Hold the play/pause button for 2 seconds
  • Screenshot - Press the volume down and volume up buttons at the same time, photos appear in the pictures gallery
  • Caps Lock – Hold the shift button on the keyboard for one second
  • Add a period – Double tap the spacebar when typing (doesn’t work in all apps), same as BlackBerry and Android phones and iPhone/iPad
  • Show calendar – Tap the clock in the status bar
  • Keyboard and mouse – pair it with a bluetooth keyboard and/or mouse (right mouse button used for bezel gestures)
andreiv

Deploying AIR Apps for Android on the BlackBerry PlayBook

Monday, May 30th, 2011

By Andrei Vanahel – Consultant

Recently RIM confirmed that Android apps will eventually run on the BlackBerry PlayBook device (last time I checked it should be at some point this summer). But there are currently some extra steps required in order to get AIR apps for Android running on the PlayBook.

I know that your Android app has a nice descriptive name but let’s call it “MyApp.apk”

1. Unzip the MyApp.apk file with any ZIP tool (if .apk extension is not recognized by the tool rename the file to MyApp.zip)

2. After unzipping you will get a structure similar to this one:

  • assets
  • lib
  • META-INF
  • res
  • AndroidManifest.xml

3. “assets” is the folder where the AIR app is located

The second step is to package the AIR application for PlayBook using the blackberry-airpackager utility from BlackBerry SDK.

4. Navigate to the “assets” folder from the command line window and run the following command:

“C:\Program Files\Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-1.0.1\bin\blackberry-airpackager” –package MyApp.bar META-INF/AIR/application.xml MyApp.swf assets/ data/ images/

NOTE: Change the path to the BlackBerry SDK if it’s different from the default. MyApp.swf assets/ data/ images/ are the resources you want to be included in your PlayBook app.

If you want to package and deploy your app on the PlayBook simulator to test it, first run the following command from the same location:

“C:\Program Files\Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-1.0.1\bin\blackberry-airpackager” –package MyApp.bar -installApp -launchApp META-INF/AIR/application.xml MyApp.swf assets/ data/ images/   -device <yourSimulatorIP> -password <yourSimulatorPassword>

The next step is to sign a .bar application in order to run it on a real PlayBook device using the blackberry-signer utility from Blackberry SDK.

NOTE: I am assuming you already have a) Signing Keys from RIM (if not, order them from here: https://www.blackberry.com/SignedKeys/) and b) P12 certificates.

5. Run these two commands to sign your .bar file:

“C:\Program Files\Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-1.0.1\bin\blackberry-signer” -verbose -cskpass <your CSK password> -keystore <your P12 file> -storepass <your P12 file password> <BAR_file.bar> RDK

“C:\Program Files\Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-1.0.1\bin\blackberry-signer” -keystore <your P12 file> -storepass <your p12 file password><BAR_file.bar> author

Finally, install the signed app directly on the PlayBook device using the blackberry-deploy utility from BlackBerry SDK.

6. Run this command:

“C:\Program Files\Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-1.0.1\bin\blackberry-deploy” -installApp -password <yourPlayBookPassword>  <yourPlayBookIP> MyApp.bar

oliverm

BlackBerry PlayBook Developer Links

Sunday, May 29th, 2011

By Oliver Merk – Principal Consultant

General

Developing Adobe AIR Application for PlayBook

QNX Components for AIR apps

WebWorks (for PlayBook)

HTML5

NTG Training Courses

Derek Santos

Hello World with the BlackBerry Mobile Platform

Saturday, May 1st, 2010

By Derek Santos – Consultant

The Mobile Market is extremely competitive these days, and it’s important for customers to deploy their applications across multiple mobile platforms. The BlackBerry platform, like Android, is Java based. This lends itself nicely to existing Java and/or Android developers.  In this article, we’ll take a look at creating a HelloWorld application using the BlackBerry Mobile Platform.

Downloading and installing the necessary tools

First, you will need to download the BlackBerry Eclipse Plug-in here.

It is important to note that versions of the BlackBerry platform 4.x and earlier are considered legacy and use what’s called the “BlackBerry JDE(Java Development Environment)”. Versions 5.0 and later now use the BlackBerry Eclipse Plug-in. This article assumes you have Eclipse 3.5 installed.

Once you’ve downloaded the installer, simply run it and point it to your existing eclipse installation.

Creating your first BlackBerry project

To create your project, go to New -> Project.

Then select BlackBerry Project.
BlackBerry Project Selection

Click “Next”. Give your project a name then click “Finish”.

Configuring your project

You now have a BlackBerry project setup. You should notice that an application descriptor file was created for you. This descriptor file contains the Meta information about your project. It can be found under the root of your project.
BlackBerry Application Descriptor

Open this file and enter in information about your project.

BlackBerry Descriptor Configuration

Creating your main application class

Now that your project is configured, you’ll want to create a new Java class and have it extend UIApplication. The UIApplication class is your main entry point into the application. This class will also have your static main() function.

BlackBerry Descriptor Configuration

Once you’ve created your class, add the code to your static main() method as shown below. The enterEventDispatcher() method indicates that your main application thread will execute any drawing and event-handling code.

public static void main(String[] args) {
    HelloWorld application = new HelloWorld();
    application.enterEventDispatcher();
}

At this point, you will have an empty BlackBerry Application.

Creating your applications main screen

BlackBerry applications draw screens on a stack. To initialize this stack, we need to create a class that extends the “MainScreen” class. Create a new Java class and configure it as seen below.

BlackBerry Descriptor Configuration

After creating the class, create a default constructor and add the following code to it.

public SampleMainScreen() {
    super();
    long options = LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH;

    LabelField title = new LabelField("HelloWorld Sample", options);
    setTitle(title);

    RichTextField richTextField = new RichTextField("Hello World!");
    add(richTextField);
}

Now that you’ve created your main screen, you are ready to add it to your application.

Adding your main screen to the application

To have your application display your main screen, you need to “push” the screen onto the applications stack. To do this, add this line of code to the HelloWorld applications constructor. Also make sure you are calling super().

public HelloWorld() {
    super();
    pushScreen(new SampleMainScreen());
}

Running your application

To run your BlackBerry application, simply click the Run dropdown, go to Run As -> BlackBerry Simulator.

Run As BlackBerry Simulator

The first run will take some time as the Simulator initializes. Once the Simulator is loaded up, you need to navigate to the application. You can do this by click the BlackBerry menu button then going to Downloads -> My First Application.

BlackBerry Downloads Folder

Once you click on “My First Application”, your should see “HelloWorld” printed on the screen.

Conclusion

This concludes creating a simple application using the BlackBerry Mobile Platform. For further reading, please see the BlackBerry Developer Zone.

Thanks for reading!