12-13-2010 03:24 PM
Hi,
I am currently designing a application which will open a few specific kind of files. I have two question regarding this decision:
1. How can I tell the Playbook OS that I can handle those files?
2. How can I open/upload those files onto the emulator for testing purposes?
Thanks in advance.
Solved! Go to Solution.
12-13-2010 03:44 PM
You can install files that are under your /src file. Those files will be in the folder defined by the class File.applicationDirectory. Other files could be grabbed from the Internet and saved to the File.applicationStorageDirectory or File.documentsDirectory.
AIR allows you to register certain file types that a certain application can manage. That is defined in the -app.xml file.
06-25-2011 01:36 PM
Hi,
I am also facing a similar problem, the difference is this I am trying on a real device. Let me explain..
We are developing an application which would allow opening files in some proprietary formats, for this we have to register our application for those file types. We have already tried setting up file types in AIR XML configuration file. What's interesting is that after those changes corresponding AIR application running on a MAC OSX Desktop gets registered for the file types but the playbook variant doesn't work.
This leads me to conclude that there is some more configuration required for the playbook variant. As of now we are stuck with no clue to move forward. Any help would be highly appreciated.
XML Snippet for AIR XML Configuration File
<fileTypes>
<fileType>
<name>FILE-NAME</name>
<extension>xxx</extension>
<description>File Description we would like to support</description>
<contentType>application/octet-stream</contentType
<icon>
<image16x16>assets/icon-16x16.png</image16x16>
<image32x32>assets/icon-32x32.png</image32x32>
<image48x48>assets/icon-48x48.png</image48x48>
<image128x128>assets/icon-128x128.png</image128x12
</icon>
</fileType>
</fileTypes>
More Information
Development IDE : Flash Builder 4.5
Operating System : Mac OSX 10.6.6
BlackBerry SDK : 1.1.0
Thanks
06-25-2011 02:00 PM
06-27-2011 01:53 AM
Thanks John for your Reply !
I would be eagerly waiting for a word from RIM as this would be holding us on releasing some stuff which we intend to develop for RIM platform !
Thanks