Hi,
I am trying to detach at custom file format "lps" from mail, and open it with my own app and save the file
I have followed this links:
stackoverflow.com
stackoverflow.com
But It is a mess for me. I can not se the logic here.
I have got this to work: https://www.b4x.com/android/forum/threads/open-external-files-with-your-app.50525/#content
The file I try to setup with my app is a text file like a windows ini file
It is used to setup a device.
I would like to email a customer this lps file, and he can open it with email, and get it over to my app and then program the device.
But I am stucked!!
Has any one got this thing with custom file types to work.
I have added this to my app
Mogens
I am trying to detach at custom file format "lps" from mail, and open it with my own app and save the file
I have followed this links:

How do I register a custom filetype in iOS
I am currently creating a app in which i want to let the user backup their files (plist + m4a). I zip the files and change the extension to a custom one (specifically for my app, say "*.MyBackup")....

How do I associate file types with an iPhone application?
On the subject of associating your iPhone app with file types. In this informative question I learned that apps could be associated with custom URL protocols. That was almost one year ago and si...
But It is a mess for me. I can not se the logic here.
I have got this to work: https://www.b4x.com/android/forum/threads/open-external-files-with-your-app.50525/#content
The file I try to setup with my app is a text file like a windows ini file
It is used to setup a device.
I would like to email a customer this lps file, and he can open it with email, and get it over to my app and then program the device.
But I am stucked!!
Has any one got this thing with custom file types to work.
I have added this to my app
B4X:
#PlistExtra:<key>CFBundleDocumentTypes</key>
#PlistExtra:<Array><dict><key>CFBundleTypeIconFiles</key>
#PlistExtra:<Array>
#PlistExtra:<string>Icon-iPad-doc320.png</string>
#PlistExtra:<string>Icon-iPad-doc.png</string>
#PlistExtra:</Array>
#PlistExtra:<key>CFBundleTypeName</key>
#PlistExtra:<string>LPS File</string>
#PlistExtra:<key>CFBundleTypeRole</key>
#PlistExtra:<string>Viewer</string>
#PlistExtra:<key>LSHandlerRank</key>
#PlistExtra:<string>Owner</string>
#PlistExtra:<key>LSItemContentTypes</key>
#PlistExtra:<Array><string>com.lp.imail.lps</string>
#PlistExtra:<string>Public.comma-separated-values-text</string>
#PlistExtra:</Array></dict></Array>
#PlistExtra:<key>UTExportedTypeDeclarations</key>
#PlistExtra:<Array><dict><key>UTTypeConformsTo</key><Array><string>Public.data</string></Array>
#PlistExtra:<key>UTTypeDescription</key><string>LPS File</string><key>UTTypeIdentifier</key><string>com.lp.imail.lps</string>
#PlistExtra:<key>UTTypeTagSpecification</key><dict><key>Public.filename-extension</key><string>lps</string>
#PlistExtra:<key>Public.mime-Type</key><string>application/octet-stream</string>
#PlistExtra:</dict></dict></Array>