Tutorial: Places

This tutorial shows you how to create an application that lets the user view the properties of a place (such as the name, postal address, or phone number) that is selected from an address book, recent history, or an online search.

You will learn to:

Screen showing the Place picker sample.

Before you begin

You should have the following things ready:

  • The BlackBerry 10 Native SDK
  • A device or simulator running BlackBerry 10

If this is your first app, you can download the tools that you need and learn how to create, build, and run your first Cascades project.

Downloading the full source code

This tutorial uses a step-by-step approach to build an app that uses the Places framework. If you want to look at the complete source code for the app, you can download the complete project and import it into the Momentics IDE for BlackBerry. To learn how, see Import an existing project.

Set up your project

Before we start creating our application, create an empty project in the Momentics IDE using the Standard empty project template. To make it easier to follow along, this tutorial assumes that you name your project PlacePicker. We need to import the following image:

background.png  - An image for the background of the UI

To import the image into your project:

  1. Download the assets.zip file.
  2. Extract the images folder into the assets folder of your project.
A screen showing the background of the Cascades PlacePicker sample app.

Last modified: 2013-12-21



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus