wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Android intent filter for MIME type/file extension - AppArg always empty on cold start #1381

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With android.xintent_filter =
<intent-filter>                      
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />                      
    <data android:mimeType="application/myfile" />
    <data android:host="*" />
    <data android:pathPattern=".*\\.myfile" />
</intent-filter>

on Android and opening a file attached to an email with a MIME type of 
"application/myfile" and the app not running the start() method is called and 
Display.getInstance().getProperty("AppArg", null) delivers nothing.
That is just with a cold start. If the app is running 
Display.getInstance().getProperty("AppArg", null) delivers a file path.

Original issue reported on code.google.com by Stefan.A...@gmail.com on 1 Mar 2015 at 1:04

GoogleCodeExporter commented 9 years ago
is this still an issue for you, I wasn't able to reproduce this with android 5.1
please verify again an provide more details if this still an issue

Original comment by cf27...@gmail.com on 7 Apr 2015 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by cf27...@gmail.com on 7 Apr 2015 at 5:36