Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update NDK-Samples for BB 10.0.04

  • Loading branch information...
commit c4dd34fe8254d6229d2d66352cf95208c2373782 1 parent add7366
@jhoffmannrim jhoffmannrim authored
Showing with 639 additions and 545 deletions.
  1. +6 −6 Accelerometer/bar-descriptor.xml
  2. +15 −12 Accelerometer/main.c
  3. +2 −2 Accelerometer/manifest.properties
  4. +3 −3 Accelerometer/readme.txt
  5. +6 −6 AudioControl/bar-descriptor.xml
  6. +1 −1  AudioControl/common.mk
  7. +4 −4 AudioControl/main.c
  8. +3 −3 AudioControl/manifest.properties
  9. +3 −3 AudioControl/readme.txt
  10. +3 −3 BelligerentBlocks/README.txt
  11. +6 −6 Channels/bar-descriptor.xml
  12. +3 −3 Channels/main.c
  13. +1 −1  Channels/manifest.properties
  14. +6 −6 Channels/readme.txt
  15. +7 −6 CubeRotate/bar-descriptor.xml
  16. +1 −1  CubeRotate/common.mk
  17. +3 −3 CubeRotate/manifest.properties
  18. +3 −3 CubeRotate/readme.txt
  19. +6 −6 Dialog/bar-descriptor.xml
  20. +4 −4 Dialog/main.c
  21. +2 −2 Dialog/manifest.properties
  22. +3 −3 Dialog/readme.txt
  23. +6 −6 FallingBlocks/bar-descriptor.xml
  24. +2 −2 FallingBlocks/manifest.properties
  25. +3 −3 FallingBlocks/readme.txt
  26. +6 −6 GLES11Template/bar-descriptor.xml
  27. +1 −1  GLES11Template/common.mk
  28. +3 −3 GLES11Template/manifest.properties
  29. +3 −3 GLES11Template/readme.txt
  30. +6 −6 GLES20Template/bar-descriptor.xml
  31. +1 −1  GLES20Template/common.mk
  32. +3 −3 GLES20Template/manifest.properties
  33. +3 −3 GLES20Template/readme.txt
  34. +6 −6 Geolocation/bar-descriptor.xml
  35. +4 −4 Geolocation/main.c
  36. +2 −2 Geolocation/manifest.properties
  37. +4 −4 Geolocation/readme.txt
  38. +6 −6 Gesture/bar-descriptor.xml
  39. +2 −2 Gesture/manifest.properties
  40. +3 −3 Gesture/readme.txt
  41. +6 −6 GoodCitizen/bar-descriptor.xml
  42. +4 −2 GoodCitizen/manifest.properties
  43. +3 −3 GoodCitizen/readme.txt
  44. +6 −6 HelloWorldConsole/bar-descriptor.xml
  45. +2 −2 HelloWorldConsole/manifest.properties
  46. +3 −3 HelloWorldConsole/readme.txt
  47. +6 −6 HelloWorldDisplay/bar-descriptor.xml
  48. +1 −1  HelloWorldDisplay/common.mk
  49. +3 −3 HelloWorldDisplay/manifest.properties
  50. +3 −3 HelloWorldDisplay/readme.txt
  51. +6 −6 HttpProxy/bar-descriptor.xml
  52. +1 −1  HttpProxy/main.c
  53. +2 −2 HttpProxy/manifest.properties
  54. +3 −3 HttpProxy/readme.txt
  55. +6 −6 Keyboard/bar-descriptor.xml
  56. +2 −2 Keyboard/manifest.properties
  57. +3 −3 Keyboard/readme.txt
  58. +6 −6 LocaleSample/bar-descriptor.xml
  59. +1 −1  LocaleSample/common.mk
  60. +5 −5 LocaleSample/main.c
  61. +3 −3 LocaleSample/manifest.properties
  62. +3 −3 LocaleSample/readme.txt
  63. +6 −6 NetworkStatus/bar-descriptor.xml
  64. +1 −1  NetworkStatus/common.mk
  65. +5 −5 NetworkStatus/main.c
  66. +3 −3 NetworkStatus/manifest.properties
  67. +3 −3 NetworkStatus/readme.txt
  68. +6 −6 PaymentService/bar-descriptor.xml
  69. +6 −6 PaymentService/main.c
  70. +2 −2 PaymentService/manifest.properties
  71. +3 −3 PaymentService/readme.txt
  72. +6 −6 PlayAudio/bar-descriptor.xml
  73. +2 −2 PlayAudio/main.c
  74. +2 −2 PlayAudio/manifest.properties
  75. +3 −3 PlayAudio/readme.txt
  76. +6 −6 PlayWav/bar-descriptor.xml
  77. +312 −224 PlayWav/main.c
  78. +2 −2 PlayWav/manifest.properties
  79. +3 −3 PlayWav/readme.txt
  80. +1 −1  README.md
  81. +6 −6 ScreenTemplate/bar-descriptor.xml
  82. +2 −2 ScreenTemplate/manifest.properties
  83. +3 −3 ScreenTemplate/readme.txt
  84. +6 −6 VideoPlayback/bar-descriptor.xml
  85. +2 −2 VideoPlayback/manifest.properties
  86. +3 −3 VideoPlayback/readme.txt
  87. +7 −7 VideoWindow/bar-descriptor.xml
  88. +2 −2 VideoWindow/manifest.properties
  89. +3 −3 VideoWindow/readme.txt
View
12 Accelerometer/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.Accelerometer</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Accelerometer</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The Accelerometer application</description>
@@ -93,6 +92,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
27 Accelerometer/main.c
@@ -54,11 +54,13 @@ display_accelerometer_reading(float x, float y, float z)
}
/**
- * A sample application demonstrates the BlackBerry Native APIs for
- * accelerometer. The sample initializes and reads the accelerometer
- * periodically until a NAVIGATOR_EXIT event is received. The application also
- * listens for window state changes from the navigator so that it can stop
- * reading the accelerometer when the application is no longer visible.
+ * A sample application demonstrates the BlackBerry(R) 10 Native SDK APIs for
+ * accelerometer.
+ *
+ * The sample initializes and reads the accelerometer periodically until a
+ * NAVIGATOR_EXIT event is received. The application also listens for window
+ * state changes from the navigator so that it can stop reading the
+ * accelerometer when the application is no longer visible.
*/
int
main(int argc, char *argv[])
@@ -69,8 +71,8 @@ main(int argc, char *argv[])
float force_x, force_y, force_z;
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
- * services, we need to initialize the BPS infrastructure
+ * Before we can listen for events from the BlackBerry Platform Services, we
+ * need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -81,11 +83,12 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
- * Navigator service manages and delivers application life cycle and
- * visibility events.
- * For this sample, we request Navigator events so we can track when
- * the system is terminating the application (NAVIGATOR_EXIT event). This allows
+ * events from the various BlackBerry Platform Services. The Navigator
+ * service manages and delivers application life cycle and visibility
+ * events.
+ *
+ * For this sample, we request Navigator events so we can track when the
+ * system is terminating the application (NAVIGATOR_EXIT event). This allows
* us to clean up application resources.
*/
navigator_request_events(0);
View
4 Accelerometer/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Accelerometer Project
-template.description: Create a new BlackBerry Tablet OS Example project to work with the accelerometer.
+template.name: BlackBerry® 10 OS Example Accelerometer Project
+template.description: Create a new BlackBerry® 10 OS Example project to work with the accelerometer.
project.name: Accelerometer
View
6 Accelerometer/readme.txt
@@ -16,10 +16,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 AudioControl/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.AudioControl</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>AudioControl</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The AudioControl application</description>
@@ -93,6 +92,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  AudioControl/common.mk
@@ -26,7 +26,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps
+LIBS+=bps screen
include $(MKFILES_ROOT)/qtargets.mk
View
8 AudioControl/main.c
@@ -94,8 +94,8 @@ print_audio_event(bps_event_t *event)
/**
- * A sample application that demonstrates the BlackBerry Native APIs for
- * managing audio control. The sample queries for the current speaker output
+ * A sample application that demonstrates the BlackBerry(R) 10 Native SDK APIs
+ * for managing audio control. The sample queries for the current speaker output
* level, sets the speaker output level and then waits for updates to any audio
* levels.
*/
@@ -103,7 +103,7 @@ int
main(int argc, char *argv[])
{
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -116,7 +116,7 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so that we can track when
View
6 AudioControl/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Audio Control Project
-template.description: Create a new BlackBerry Tablet OS Example project to show how to manage the audio controls.
+template.name: BlackBerry® 10 OS Example Audio Control Project
+template.description: Create a new BlackBerry® 10 OS Example project to show how to manage the audio controls.
project.name: AudioControl
@@ -45,7 +45,7 @@ splashscreen.portrait: sample-splashscreen-portrait.png
open.file: bar-descriptor.xml
-libs: bps
+libs: bps screen
sources: main.c dialogutil.c dialogutil.h
View
6 AudioControl/readme.txt
@@ -18,10 +18,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
6 BelligerentBlocks/README.txt
@@ -19,12 +19,12 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
+ - BlackBerry® 10 device
- Box2D installed or added as a project dependency
========================================================================
-Importing a project into the Native SDK:
+Importing a project into the BlackBerry® 10 Native SDK:
1. From the the Sample apps page, download and extract the sample application.
2. Launch the Native SDK.
View
12 Channels/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.Channels</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Channels</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The Channels application</description>
@@ -94,6 +93,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
6 Channels/main.c
@@ -15,7 +15,7 @@
*/
/**
- * Sample showing how to use BlackBerry Native APIs for channels to
+ * Sample showing how to use BlackBerry(R) 10 Native SDK APIs for channels to
* allow different threads to handle events from different services.
*
* Note that the main purpose of this sample is to show channels working
@@ -222,7 +222,7 @@ main(int argc, char *argv[])
int rc;
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -238,7 +238,7 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
*
View
2  Channels/manifest.properties
@@ -34,7 +34,7 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Channels Project
+template.name: BlackBerry® 10 OS Example Channels Project
template.description: Combine elements of Geolocation and Accelerometer sample application to show how to use Channels.
project.name: Channels
View
12 Channels/readme.txt
@@ -7,13 +7,13 @@ Sample Description:
sending events through channels.
We retrieve and display geolocation specific information, such as the latitude,
- longitude, altitude, and bearing of the tablet from the default channel of the
+ longitude, altitude, and bearing of the device from the default channel of the
main thread. This thread also listens for the navigator's event telling it to
exit. Before joining on the child thread, it sends a custom event to the child
thread's channel letting it know that it should exit.
- We retrieve and display the x, y and z values of the accelerometer device of
- the tablet from the default channel of the child thread.
+ We retrieve and display the x, y and z values of the accelerometer of the
+ device from the default channel of the child thread.
When the application is executed, geolocation data is displayed in a dialog and
accelerometer data is displayed in another.
@@ -25,10 +25,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
13 CubeRotate/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.CubeRotate</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>CubeRotate</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The CubeRotate application</description>
@@ -92,6 +91,8 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  CubeRotate/common.mk
@@ -29,7 +29,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps screen EGL GLESv1_CM freetype png
+LIBS+=bps screen EGL GLESv1_CM freetype png m
include $(MKFILES_ROOT)/qtargets.mk
View
6 CubeRotate/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Rotating Cube Project
-template.description: Create a new BlackBerry Tablet OS Example project that renders a rotating cube using OpenGL ES 1.1.
+template.name: BlackBerry® 10 OS Example Rotating Cube Project
+template.description: Create a new BlackBerry® 10 OS Example project that renders a rotating cube using OpenGL ES 1.1.
project.name: CubeRotate
@@ -45,7 +45,7 @@ splashscreen.portrait: sample-splashscreen-portrait.png
open.file: bar-descriptor.xml
-libs: bps screen EGL GLESv1_CM freetype png
+libs: bps screen EGL GLESv1_CM freetype png m
sources: bbutil.h bbutil.c main.c
View
6 CubeRotate/readme.txt
@@ -17,10 +17,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 Dialog/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.Dialog</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Dialog</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The Dialog application</description>
@@ -91,6 +90,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
8 Dialog/main.c
@@ -169,8 +169,8 @@ handle_dialog_response(bps_event_t *event)
/**
- * A sample application that demonstrates the BlackBerry Native APIs for
- * displaying dialog windows.
+ * A sample application that demonstrates the BlackBerry(R) 10 Native SDK APIs
+ * for displaying dialog windows.
*/
int
main(int argc, char *argv[])
@@ -178,7 +178,7 @@ main(int argc, char *argv[])
int exit_application = 0;
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -194,7 +194,7 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so that we can track when
View
4 Dialog/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Dialog Interaction Project
-template.description: Create a new BlackBerry Tablet OS Example project to show present dialogs.
+template.name: BlackBerry® 10 OS Example Dialog Interaction Project
+template.description: Create a new BlackBerry® 10 OS Example project to show present dialogs.
project.name: Dialog
View
6 Dialog/readme.txt
@@ -24,10 +24,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 FallingBlocks/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.FallingBlocks</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>FallingBlocks</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The FallingBlocks application</description>
@@ -92,6 +91,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
4 FallingBlocks/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Falling Blocks Project
-template.description: Create a new BlackBerry Tablet OS Example project that renders falling blocks using OpenGL ES 1.1.
+template.name: BlackBerry® 10 OS Example Falling Blocks Project
+template.description: Create a new BlackBerry® 10 OS Example project that renders falling blocks using OpenGL ES 1.1.
project.name: FallingBlocks
View
6 FallingBlocks/readme.txt
@@ -19,10 +19,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 GLES11Template/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.GLES11Template</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>GLES11Template</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The GLES11Template application</description>
@@ -87,6 +86,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  GLES11Template/common.mk
@@ -29,7 +29,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps screen EGL GLESv1_CM freetype png
+LIBS+=bps screen EGL GLESv1_CM freetype png m
include $(MKFILES_ROOT)/qtargets.mk
View
6 GLES11Template/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS OpenGL ES 1.1 Application Template Project
-template.description: Create a new BlackBerry Tablet OS OpenGL ES 1.1-based application template project.
+template.name: BlackBerry® 10 OS OpenGL ES 1.1 Application Template Project
+template.description: Create a new BlackBerry® 10 OS OpenGL ES 1.1-based application template project.
project.name: GLES11Template
@@ -46,7 +46,7 @@ project.name: GLES11Template
open.file: bar-descriptor.xml
-libs: bps screen EGL GLESv1_CM freetype png
+libs: bps screen EGL GLESv1_CM freetype png m
sources: bbutil.h bbutil.c main.c
View
6 GLES11Template/readme.txt
@@ -17,10 +17,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 GLES20Template/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.GLES20Template_makefile</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>GLES20Template</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The GLES20Template application</description>
@@ -86,6 +85,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  GLES20Template/common.mk
@@ -29,7 +29,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps screen EGL GLESv2 freetype png
+LIBS+=bps screen EGL GLESv2 freetype png m
include $(MKFILES_ROOT)/qtargets.mk
View
6 GLES20Template/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS OpenGL ES 2.0 Application Template Project
-template.description: Create a new BlackBerry Tablet OS OpenGL ES 2.0-based application template project.
+template.name: BlackBerry® 10 OS OpenGL ES 2.0 Application Template Project
+template.description: Create a new BlackBerry® 10 OS OpenGL ES 2.0-based application template project.
project.name: GLES20Template
@@ -46,7 +46,7 @@ project.name: GLES20Template
open.file: bar-descriptor.xml
-libs: bps screen EGL GLESv2 freetype png
+libs: bps screen EGL GLESv2 freetype png m
sources: bbutil.h bbutil.c main.c
View
6 GLES20Template/readme.txt
@@ -17,10 +17,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 Geolocation/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.Geolocation</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Geolocation</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The Geolocation application</description>
@@ -94,6 +93,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
8 Geolocation/main.c
@@ -186,8 +186,8 @@ handle_geolocation_response(bps_event_t *event)
/**
- * A sample application that demonstrates the BlackBerry Native APIs for
- * geolocation.
+ * A sample application that demonstrates the BlackBerry(R) 10 Native SDK APIs
+ * for geolocation.
*/
int
main(int argc, char *argv[])
@@ -195,7 +195,7 @@ main(int argc, char *argv[])
bool exit_application = false;
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -211,7 +211,7 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
*
View
4 Geolocation/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Geolocation Project
-template.description: Create a new BlackBerry Tablet OS Example project for working with location services.
+template.name: BlackBerry® 10 OS Example Geolocation Project
+template.description: Create a new BlackBerry® 10 OS Example project for working with location services.
project.name: Geolocation
View
8 Geolocation/readme.txt
@@ -5,7 +5,7 @@ Sample Description:
The Geolocation sample is an application that demonstrates how to retrieve
geolocation specific information, such as the latitude, longitude, altitude,
- and bearing of the tablet.
+ and bearing of the device.
When you run the application, geolocation data is displayed in a dialog.
@@ -18,10 +18,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 Gesture/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.Gesture</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Gesture</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The Gesture application</description>
@@ -92,6 +91,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
4 Gesture/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Touch Gestures Project
-template.description: Create a new BlackBerry Tablet OS Example project for working with touch gestures.
+template.name: BlackBerry® 10 OS Example Touch Gestures Project
+template.description: Create a new BlackBerry® 10 OS Example project for working with touch gestures.
project.name: Gesture
View
6 Gesture/readme.txt
@@ -16,10 +16,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 GoodCitizen/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.GoodCitizen</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>GoodCitizen</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The GoodCitizen application</description>
@@ -95,6 +94,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
6 GoodCitizen/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Good Citizen Project
-template.description: Create a new BlackBerry Tablet OS Example project to show how to make a program that performs as a good citizen for the SDK.
+template.name: BlackBerry® 10 OS Example Good Citizen Project
+template.description: Create a new BlackBerry® 10 OS Example project to show how to make a program that performs as a good citizen for the SDK.
project.name: GoodCitizen
@@ -55,4 +55,6 @@ resources: radio_btn_selected.png radio_btn_unselected.png shadow.png LICENSE NO
readmes: readme.txt
+orientation: auto
+
#actions:
View
6 GoodCitizen/readme.txt
@@ -23,10 +23,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 HelloWorldConsole/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.HelloWorldConsole</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>HelloWorldConsole</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The HelloWorldConsole application</description>
@@ -91,6 +90,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
4 HelloWorldConsole/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Hello World (Console) Project
-template.description: Create a new BlackBerry Tablet OS Example project to print Hello World on the console.
+template.name: BlackBerry® 10 OS Example Hello World (Console) Project
+template.description: Create a new BlackBerry® 10 OS Example project to print Hello World on the console.
project.name: HelloWorldConsole
View
6 HelloWorldConsole/readme.txt
@@ -15,10 +15,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 HelloWorldDisplay/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.HelloWorldDisplay</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>HelloWorldDisplay</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The HelloWorldDisplay application</description>
@@ -94,6 +93,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  HelloWorldDisplay/common.mk
@@ -29,7 +29,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps screen EGL GLESv1_CM freetype png
+LIBS+=bps screen EGL GLESv1_CM freetype png m
include $(MKFILES_ROOT)/qtargets.mk
View
6 HelloWorldDisplay/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Hello World (Display) Project
-template.description: Create a new BlackBerry Tablet OS Example project to show Hello World on the display.
+template.name: BlackBerry® 10 OS Example Hello World (Display) Project
+template.description: Create a new BlackBerry® 10 OS Example project to show Hello World on the display.
project.name: HelloWorldDisplay
@@ -45,7 +45,7 @@ splashscreen.portrait: sample-splashscreen-portrait.png
open.file: bar-descriptor.xml
-libs: bps screen EGL GLESv1_CM freetype png
+libs: bps screen EGL GLESv1_CM freetype png m
sources: bbutil.h bbutil.c main.c
View
6 HelloWorldDisplay/readme.txt
@@ -19,10 +19,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 HttpProxy/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.HttpProxy</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>HttpProxy</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The HttpProxy application</description>
@@ -93,6 +92,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  HttpProxy/main.c
@@ -74,7 +74,7 @@ int main(void)
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so we can track when
View
4 HttpProxy/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example HTTP Proxy Project
-template.description: Create a new BlackBerry Tablet OS Example project for working HTTP proxies.
+template.name: BlackBerry� 10 OS Example HTTP Proxy Project
+template.description: Create a new BlackBerry� 10 OS Example project for working HTTP proxies.
project.name: HttpProxy
View
6 HttpProxy/readme.txt
@@ -16,10 +16,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 Keyboard/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.Keyboard</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>Keyboard</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The Keyboard application</description>
@@ -91,6 +90,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
4 Keyboard/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Keyboard Project
-template.description: Create a new BlackBerry Tablet OS Example project for working with the virtual keyboard.
+template.name: BlackBerry� 10 OS Example Keyboard Project
+template.description: Create a new BlackBerry� 10 OS Example project for working with the virtual keyboard.
project.name: Keyboard
View
6 Keyboard/readme.txt
@@ -15,10 +15,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 LocaleSample/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.LocaleSample</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>LocaleSample</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The LocaleSample application</description>
@@ -93,6 +92,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  LocaleSample/common.mk
@@ -26,7 +26,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps
+LIBS+=bps screen
include $(MKFILES_ROOT)/qtargets.mk
View
10 LocaleSample/main.c
@@ -54,15 +54,15 @@ display_locale(const char *language, const char *country)
}
/**
- * A sample application that demonstrates the BlackBerry Native APIs for
- * managing locale. The sample queries for the current locale and then listens
- * for locale update events.
+ * A sample application that demonstrates the BlackBerry(R) 10 Native SDK APIs
+ * for managing locale. The sample queries for the current locale and then
+ * listens for locale update events.
*/
int
main(int argc, char *argv[])
{
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -74,7 +74,7 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so that we can track when
View
6 LocaleSample/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Locale Project
-template.description: Create a new BlackBerry Tablet OS Example project for working with locales.
+template.name: BlackBerry� 10 OS Example Locale Project
+template.description: Create a new BlackBerry� 10 OS Example project for working with locales.
project.name: LocaleSample
@@ -45,7 +45,7 @@ splashscreen.portrait: sample-splashscreen-portrait.png
open.file: bar-descriptor.xml
-libs: bps
+libs: bps screen
sources: main.c dialogutil.c dialogutil.h
View
6 LocaleSample/readme.txt
@@ -16,10 +16,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 NetworkStatus/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.NetworkStatus</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>NetworkStatus</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The NetworkStatus application</description>
@@ -93,6 +92,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
2  NetworkStatus/common.mk
@@ -26,7 +26,7 @@ CCFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 \
LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)
# Basic libraries required by most native applications
-LIBS+=bps
+LIBS+=bps screen
include $(MKFILES_ROOT)/qtargets.mk
View
10 NetworkStatus/main.c
@@ -43,15 +43,15 @@ display_net_status(bool is_available)
}
/**
- * A sample application demonstrates the BlackBerry Native APIs for network status.
- * The sample queries for the current network status and then listens for status
- * update events.
+ * A sample application demonstrates the BlackBerry(R) 10 Native SDK APIs for
+ * network status. The sample queries for the current network status and then
+ * listens for status update events.
*/
int
main(int argc, char *argv[])
{
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -63,7 +63,7 @@ main(int argc, char *argv[])
/*
* once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so that we can track when
View
6 NetworkStatus/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Network Status Project
-template.description: Create a new BlackBerry Tablet OS Example project for interrogating network status.
+template.name: BlackBerry� 10 OS Example Network Status Project
+template.description: Create a new BlackBerry� 10 OS Example project for interrogating network status.
project.name: NetworkStatus
@@ -45,7 +45,7 @@ splashscreen.portrait: sample-splashscreen-portrait.png
open.file: bar-descriptor.xml
-libs: bps
+libs: bps screen
sources: main.c dialogutil.c dialogutil.h
View
6 NetworkStatus/readme.txt
@@ -17,10 +17,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 PaymentService/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.PaymentService</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>PaymentService</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The PaymentService application</description>
@@ -91,6 +90,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
12 PaymentService/main.c
@@ -170,10 +170,10 @@ void onGetExistingPurchasesSuccess(bps_event_t *event)
}
/**
- * A sample application that demonstrates the BlackBerry Native APIs for
- * making in-app purchases. The sample sets the connection mode to local,
- * allows the purchase of a digital good by using the swipe down gesture,
- * and displays any existing purchases.
+ * A sample application that demonstrates the BlackBerry(R) 10 Native SDK APIs
+ * for making in-app purchases. The sample sets the connection mode to local,
+ * allows the purchase of a digital good by using the swipe down gesture, and
+ * displays any existing purchases.
*/
int
main(int argc, char *argv[])
@@ -181,7 +181,7 @@ main(int argc, char *argv[])
int exit_application = 0;
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -197,7 +197,7 @@ main(int argc, char *argv[])
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so that we can track when
View
4 PaymentService/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Payment Service Project
-template.description: Create a new BlackBerry Tablet OS Example project for working with the payment service.
+template.name: BlackBerry� 10 OS Example Payment Service Project
+template.description: Create a new BlackBerry� 10 OS Example project for working with the payment service.
project.name: PaymentService
View
6 PaymentService/readme.txt
@@ -24,10 +24,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 PlayAudio/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.PlayAudio</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>PlayAudio</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The PlayAudio application</description>
@@ -95,6 +94,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
4 PlayAudio/main.c
@@ -90,7 +90,7 @@ int main( int argc, char **argv ) {
mmr_context_t *ctxt = NULL;
/*
- * Before we can listen for events from the BlackBerry Tablet OS platform
+ * Before we can listen for events from the BlackBerry(R) 10 OS platform
* services, we need to initialize the BPS infrastructure
*/
bps_initialize();
@@ -102,7 +102,7 @@ int main( int argc, char **argv ) {
/*
* Once the BPS infrastructure has been initialized we can register for
- * events from the various BlackBerry Tablet OS platform services. The
+ * events from the various BlackBerry(R) 10 OS platform services. The
* Navigator service manages and delivers application life cycle and
* visibility events.
* For this sample, we request Navigator events so we can track when
View
4 PlayAudio/manifest.properties
@@ -34,8 +34,8 @@
# path.other-file.xml: resources/misc/stuff.xml
#
-template.name: BlackBerry Tablet OS Example Play Audio Project
-template.description: Create a new BlackBerry Tablet OS Example project to show how to play audio in MP3 format.
+template.name: BlackBerry� 10 OS Example Play Audio Project
+template.description: Create a new BlackBerry� 10 OS Example project to show how to play audio in MP3 format.
project.name: PlayAudio
View
6 PlayAudio/readme.txt
@@ -19,10 +19,10 @@ Sample Description:
========================================================================
Requirements:
- - BlackBerry Native SDK for Tablet OS 2.0 or later
+ - BlackBerry® 10 Native SDK
- One of the following:
- - BlackBerry PlayBook tablet running BlackBerry Tablet OS 2.0 or later
- - BlackBerry Tablet Simulator 2.0 or later
+ - BlackBerry® 10 device
+ - BlackBerry® 10 simulator
========================================================================
Importing a project into the Native SDK:
View
12 PlayWav/bar-descriptor.xml
@@ -1,17 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
+<!-- BlackBerry® 10 application descriptor file.
+ Specifies parameters for identifying, installing, and launching native applications on BlackBerry® 10 OS.
-->
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
+ <!-- A universally unique application identifier. Must be unique across all BlackBerry® 10 applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
<id>com.example.PlayWav</id>
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
+ <!-- The name that is displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<name>PlayWav</name>
@@ -27,7 +26,7 @@
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
<!-- <versionLabel></versionLabel> -->
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
+ <!-- Description, displayed in the BlackBerry® 10 application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
<description>The PlayWav application</description>
@@ -95,6 +94,7 @@
<!-- <action>post_notification</action> -->
<!-- <action>set_audio_volume</action> -->
<!-- <action>read_device_identifying_information</action> -->
+ <!-- <action>access_led_control</action> -->
<!-- Ensure that shared libraries in the package are found at run-time. -->
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
View
536 PlayWav/main.c
@@ -33,6 +33,7 @@
#include <bps/bps.h>
#include <bps/audiomixer.h>
+#include <bps/audiodevice.h>
#include <bps/dialog.h>
#include <bps/navigator.h>
@@ -46,7 +47,11 @@ static char msg[MSG_SIZE];
const char *riff_id = "RIFF";
const char *wave_id = "WAVE";
-#define WAV_RELATIVE_PATH "/app/native/sample.wav"
+#define WAV_RELATIVE_PATH "app/native/sample.wav"
+
+#define SUCCESS 0
+#define FAILURE -1
+
typedef struct
{
@@ -74,180 +79,115 @@ typedef struct
}
wave_hdr;