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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -