I have this instruction
FileChooser.showOpenDialog(".ext,application/json", callback);
in my app, where "ext" is a special extension associated with my app (the
content is json).
1) Is it right ".ext,application/json" as parameter?
2) In the Android version I put the same settings in the manifest as in the
CN version build hints:
<intent-filter><action android:name="android.intent.action.SEND" /><action
android:name="android.intent.action.VIEW" /><action
android:name="android.intent.action.PICK" /><category
android:name="android.intent.category.DEFAULT" /><category
android:name="android.intent.category.BROWSABLE" /><category
android:name="android.intent.category.OPENABLE" /><data
android:scheme="file" /><data android:scheme="content" /><data
android:mimeType="*/*" /></intent-filter>
As you can see there is not my special extension
because this system is broken on Android. In the Android version I simply
let the user choose a file.
I sent the Android build and, testing the CN app on a real Android device,
I see that
the FileChooser appears but no file is selectable, they are all greyed out,
included the ones with the special ext, but it is not in the manfest of
course.
Maybe in iOS this simply works.
But I wonder why no file is selectable at all, being that in the manifest I
put *.* as file type.
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/b641eaa6-11eb-462d-9a94-f102d7b9241bn%40googlegroups.com.