Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 7
Registered: ‎04-26-2010
My Device: 9800
My Carrier: Rogers

Follow-up to questions from Webcast: Integrating your Super App with native applications

Can I only make the camera record in some other format than 3GP?

When your application records to an to an OutputStream, the Player records in a proprietary streaming video format in memory, which can be persisted as an SBV file. This proprietary container format is documented here- http://docs.blackberry.com/en/developers/deliverables/11942/RIM_proprietary_video_format_1001586_11....


We are having an issue with FB connect on the browser....You cannot accept the FB permissions on the browser?

It sounds like the Facebook Connect javascript might not be fully functional in our current browser. You can debug the Javascript with the BlackBerry Plug-in for Visual Studio and spot a specific line of the Facebook Connect Javascript libraries causing issues. If there is a browser-specific JS function that doesn't work as expected, please report it to the Developer Issue Tracker (http://na.blackberry.com/eng/developers/resources/issuetracker/).


Can I get the file/photo file details programmaticaly....say its time of creation, size, MIME type etc?

You can obtain file information from various sources - 
Last modified and file size can be obtained using FileConnection interface
MIME type can be obtained using the static methods in MIMETypeAssociations class


i would like get an example of browserField that runs in the blackberry device... the example that the plugin [contains] doesnt  run on the device... i have signed the app!! but the device cant bring the informacion from the internet.

You need to ensure that the CommonLib project is also compiled and included in the BrowserFieldDemo project'sbuild path as a required project. The test device / simulator needs to be loaded with both COD files - CommonLib and BrowserFieldDemo - in order to work properly. 


Is there a known problem with the PatternRepositiory [API]?String received returns part of an email address rather than the full address.

The ActiveTextFieldsDemo is a good example of using StringPatternRepository. You can replace the existing pattern in the ActiveTextFieldsDemo with the regular expression (e.g. "^[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*\\.[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*$")  for email to pass the entire email address from the context.. 


How can we invoke handset's default the photo viewer application..in grid view or carousal view?

Check out the KB article on image selection that also contains a Photo Picker sample - http://supportforums.blackberry.com/t5/Java-Development/Display-Thumbnails-and-create-a-Photo-Picker...


What SDK version this code applies to? 4.2+, 5.0?

You can use this API to be used in models such as the curve8320?

We spoke about APIs that apply to range of OS versions (4.2 - 6.0) and explicitly called out the versions when applicable. Most of the APIs discussed are available in 5.0, but I recommend looking at the BlackBerry javadocs for the version information.

The 8320 runs on OS version 4.2 or 4.5. Any API marked 4.5 or below will run on the 8320 devices.


How do we set the default notifications? The defaults always seem to be silent?

The default profile notifications are set by the OS based on the type of profile. E.g. Loud sets the ringer to max, silent sets ringer to silent, etc. Applications cannot change the system level notifications, but can have their own notification alert sounds and LED sequences using the Consequence.startNotification method (see NotificationsDemo)


is there anything a super app must do to work well with devices that have content protection enabled?

Content protection has a default behavior to close every app by invoking the Screen.onClose() on the active screen, in order to reduce the amount of plaintext data in flash memory. First, you can ensure that your data is saved to a persistent store in order to protect your content. When a device is locked, you can only read the persisted application data by obtaining a ticket. You should only hold the PersistentStore ticket as long as your application requires decoding and reading PersistentContent data. The user gets notified when the device is fully secured by content protection, when all tickets are released. 


How exactly will the barcode scanning work?

There will be blog posts and developer resource centre articles coming online with the release of BlackBerry 6 tools. Stay tuned.


Is there Support for LWUIT in Blackberry?
Which Version Of blackberry Supports the LWUIT API ?

LWUIT is a UI framework that runs on top of the existing MIDP framework (which is supported on all BlackBerry devices). However, you will have to ensure that the MIDP APIs required by LWUIT are available on the BlackBerry platform. For advanced UI APIs, II is recommend you refer to the KB article on Rich User Interfaces - http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-manage...


Will there be support for reading and writing to the messages folders such as SMS?

I assume you are refering to the SMS Inbox / Outbox folders in the Messages application. The SMS application is the exclusive owner of the SMS folder. Third party apps can programatically send and receive SMS messages using the Connector API, but cannot interact with the messages stored on the device or SIM.


When is the 6.0 rollout ETA & will current units on 5.0 update automatically?

Our 6.0 coverage is ongoing in the blogs - http://blogs.blackberry.com/tag/blackberry-6/. Stay tuned!


Can i restrict user to upgrade the OS? i.e. user A has OS v5.0, now i want to restrict him/her not to upgrade the later versions over OSv5.0.

Carriers can push handheld OS software upgrades over-the-air for devices 5.0 and up. Blocking of these over-the-air upgrades is possible on BES-enabled devices only, through the use of BES IT policies. Users can also upgrade using blackberry.com/upgrade, which is blocked for all BES-enabled devices.


Can the native HTTPURLConnection object and Browser field use the same cookies when working with same domain? today we have to manually set these cookies on native HTTP connections from BrowserField.

BrowserField 2 API (BrowserField class in the net.rim.device.api.browser.field2 package) manages cookies on its own now (if BrowserFieldConfig.ENABLE_COOKIES is set to true). Developers can access and set the cookies through new 5.0 API class named BrowserFieldCookieManager, using the website URL as the key to get or set cookies. You can share a BrowserField object's cookies with a HttpConnection by using the BrowserFieldCookieManager.addCookieToRequest(url, HttpConnection) and passing in the HTTPConnection object, where you need the cookie header property set.


Shortcut icon to a view of screen in app is available in 5.0?

Available in 6.0


Currently i have an application on .NET and the installer is a .CAB file... but i can't install on the BB... what do i need to configure on the BB or on the .CAB file to install it?

BlackBerry apps are compiled into proprietary COD format, which run on BlackBerry-specific version of the JVM. You can download the latest version ofthe BlackBerry Web Plug-in for Microsoft Visual Studio and create widget applications that export COD files as part of the installation package.


Invoking application from multiple entry points creates mulitple instances of the application, how do we take care that only one instance is running at a time?

Great question. For a detailed answer, please refer to the recent blog post on creating background applications for Super Apps - parts 1, 2 and 3.


How i can use web services?

In order to get started with consuming web services, I would highly recommend perusing the video available here - http://www.blackberry.com/DevMediaLibrary/view.do?name=UsingWebServicesWidgets. If you are looking for Java libraries, the BlackBerry APIs support standard JSR-172 APIs for JAXRPC implementations. Also commonly used are third-party libraries like the KSOAP2 library - http://ksoap2.sourceforge.net/

In 6.0, we do have some additional APIs to generate and parse JSON and SOAP documents much easily when working with web services.


is there a way to get basic system theme information like focus color or unfocus color or recommended color lists according to system theme?

An innovative way to obtain system theme focus and unfocus colors Smiley Happy - http://stackoverflow.com/questions/1452906/how-do-i-get-the-highlight-color-of-the-current-blackberr...


Can i modify the native applications? like SMS, MMS, Email Contacts etc?

Native applications like Messaging, Calendar, Contacts are considered Core applications within the device OS software. These applications cannot be modified or replaced by third-party developers, but can be extended through the use of various techniques covered under this webcast. E.g. Application menu items, Application custom messages and banner indicators, etc.


What's the URL for this webcasts' series recorded sessions?

The recorded presentation can be accessed by registering through the webinar link available in the blog post for the webcast - http://devblog.blackberry.com/2010/06/super-apps-developer-webcast-june-15th/.


In country INDIA on my pearl device I am unable to play rtsp H263 stream over EDGE ...but able to play it over WiFi connected to internet ....can I assume that carrier had blocked it?

I recommend using the Network Diagnostic Tool (http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...) to determine if RTSP is blocked by the carrier. You should receive a gateway or 404 error if it is blocked usually.