How do I tell device that text files with a .ged extension should be opened by my app?
I tried this and it worked quite happily.How do I tell device that text files with a .ged extension should be opened by my app?
Dim gedfolder As String = "D:\"
Dim gedfilename As String = "test.ged"
Dim lstIn As List = File.ReadList(gedfolder, gedfilename)
For Each xstr As String In lstIn
Log(xstr)
Next
I need to open the file not from the application, but from the device's file managerI tried this and it worked quite happily.
This is exactly what I need, only for AndroidYou can also right click and look at the properties and change the file associated with ged.
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
<data android:pathPattern=".*\\.ged" />
</intent-filter>
)
Unfortunately, my application is not on the list. It is suggested to find the application on Google Play.your app should be on the list of options to use
these manifestentries have nothing to do with the playstore search.It is suggested to find the application on Google Play.
This is the question. What needs to be specified in the application for Android to offer it in the “Open with” list?You may need to add the relevant info to the app description to be found in the search.
The answer is in the link already provided.This is the question
I couldn't find a solution to my question. If possible, please tell me in more detail.Including link to google docs for it
This example?You did not follow the example in the link correctly.
AddActivityText(main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/zip" />
<data android:scheme="http" android:host="*"
android:pathPattern=".*\\.zip" />
<data android:scheme="https" android:host="*"
android:pathPattern=".*\\.zip" />
<data android:scheme="content" android:host="*"
android:pathPattern=".*\\.zip" />
<data android:scheme="file" android:host="*"
android:pathPattern=".*\\.zip" />
</intent-filter>
)
ChangedTry it, it worked for me.
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="text/plain"/>
<data android:pathPattern=".*\\.ged" />
</intent-filter>
)
Replacedchange the mimetype to */*
<data android:mimeType="*/*"/>