java - How to open an app by clicking on different extension attached in gmail? -


i have 2 different extension file (.pti, .pdb), attached in gmail. wanted attached file open specific app. below code trying..

<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:scheme="content" />                 <data android:mimetype="application/*" />                 <data android:pathpattern=".*.pti" >                     <data android:host="*" />                 </data>             </intent-filter>               <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:scheme="content" />                 <data android:mimetype="application/*" />                 <data android:pathpattern=".*.pdb" >                     <data android:host="*" />                 </data>             </intent-filter> 

this working .pti file. when trying open .pdb file same app, saying "no app found open file". how can both .pti .pdb?

your <intent-filter> pdb has <data android:scheme="conten" /> - missing 't'. should be

<data android:scheme="content" /> 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -