I want to open a local file from my appliaction.
I don't want to open the file directly in my application, I just want to make the command to open the specific file I have the path for.
The path to the file looks like this
/var/mobile/Containers/Data/Application/.../filename.pdf
Is is possible to open a path like this with an external application like the "Files" application?
Thanks
Related
I understand how to create an iOS application that is either a viewer or an editor of a document type. There are several good questions on how to do this:
How do I associate file types with an iPhone application?
How do I register a custom filetype in iOS
My Question is this: Once the "editor" application has received the file and made modifications to it, how does the file get back to the original application that requested the file be opened?
Restated: If application 'A' has a file that is edited by application 'Editor', then 'A' can use the UIDocumentInteractionController to open the file in 'Editor'. If I understand correctly, this causes the file to be copied into the "Documents" directory in the sandbox of the application 'Editor'. The application 'Editor' can then make modifications to that file. Once the 'Editor' is done making changes to the file, how then does application 'A' see those changes?
You could register your application as a document handler for any known file types. Then the user would 'Open in (your application)' from within the 'Editor' application once they were done making changes.
It's not ideal but it's the best I've come up with so far. I hope there's a better way.
I have a one script file in my current application.. The path for same look like this.
D:\myproj\Example\www\abc.js
while running my application in device it will download one file into my SDcard dynamically.
I need to parse my downloaded application and need to set this "abc.js" file path in this.
I can able to set path if my file is in SDCard , but dont know how to refer path which is in my current application..
If you have that file on SDCard, then the full path to it will be as follows:
file:///SDCard/myproj/Example/www/abc.js
ADDITIONAL INFO:
If your file is located in cod file, then there is a way, but it is not documented and it is not guaranteed that it will work on all devices and RIM OS versions.
Code below shows document.htm encapsulated in modulename.cod in BlackBerry browser.
BrowserSession session = Browser.getDefaultSession();
session.displayPage("cod://modulename/document.htm" );
Try to use cod://modulename/abc.js to specify path to your js file.
To reference an application embedded file (in this case an image file stored in images directory):
"file:///local/images/embedded_img.png"
I need to open iphone folder like photos/videos.
I need to show content of that folder to user and when user selects a file from that I need to copy that particular file from that folder to my application folder.
Let me know what APIs I need to use for that.
Also let me know whether this is feasible or not using Marmalade.
have you tried looking at the s3eImagePicker example? under examples\s3e\s3eImagePicker
I have multiple *.fm files. if I open some file in notepad, in the header I can see "rmkf"
I only want open this file.
I tried to connect with the jdbc driver but it says HXTT need the file data structure (FD) have also tested with an application developed in Delphy that extracts some data but not all
I do not know what else to investigate
thanks!
Looking at the extension, is this a framemaker file?
http://www.fileinfo.com/extension/fm
I have four files (config.xml, index.html, scripts.js, and styles.css). The html has a canvas and a form for users input. I want to run on blackberry simulator (Torch version 6...). I create a zip file of all those files. Then create a bin folder. Now when I run the simulator and load the application, I have either blanc screen, either the following error: Resource does not exist.
Here is the config file code:
BlackberryTest
I had the same problem. You need to use local:/// prefix before the name of the local resource to access it.