Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to open a custom file extension from Whatsapp ?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
GAI CHEW KAI

Posts: 53
Registered: 7/29/04
How to open a custom file extension from Whatsapp ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 19, 2017 8:21 PM
Embarcadero® C++Builder XE8 Version 22.0.19027.8951
Android 7.0.1
Microsoft Windows 10 x64 Pro [Version 10.0.14393]

Recently Whatsapp allowed to send file of different types, and here I managed to send a file such as
mydoc.docx.mimos

Where .mimos is custom file extension in this case.

However, I cannot open this file directly from the Whatsapp and my app icon is not listed under Whatsapp browser.

Current AndroidManifest.xml is like below.

<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.embarcadero.MBXC"
android:versionCode="1"
android:versionName="1.0.0"
android:installLocation="internalOnly">

<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="11" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-feature android:glEsVersion="0x00020000" android:required="True"/>
<application android:persistent="False"
android:restoreAnyVersion="False"
android:label="MBXC"
android:debuggable="True"
android:largeHeap="False"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!-- Our activity is a subclass of the built-in NativeActivity framework class.
This will take care of integrating with our NDK code. -->
<activity android:name="com.embarcadero.firemonkey.FMXNativeActivity"
android:label="MBXC"
android:configChanges="orientation|keyboard|keyboardHidden"
android:launchMode="singleTask">
<!-- Tell NativeActivity the name of our .so -->
<meta-data android:name="android.app.lib_name"
android:value="MBXC" />

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:mimeType="/" />
<data android:pathPattern=".*
.mimos" />
<data android:pathPattern=".mimos." />
<data android:pathPattern=".*m.mimos." />
<data android:pathPattern=".*m.*m.mimos." />
<data android:pathPattern=".*m.*m.*m.mimos." />
<data android:pathPattern=".*m.*m.*m.*m.mimos." />
<data android:host="*" />
</intent-filter>

</activity>

<receiver android:name="com.embarcadero.firemonkey.notifications.FMXNotificationAlarm" />

</application>
</manifest>
<!-- END_INCLUDE(manifest) -->

Please advise.

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02