Intent的隐藏跳转原则:Intent中的action和category都有出现在intent-filter中
activity:
Intent intent = new Intent();
intent.setAction("activity_action"); //action
intent.addCategory("activity_category"); //category
intent.setDataAndType(Uri.parse("ftp://www.test.com/xxx"), "image/jpg"); //data , type
startActivity(intent);
AndroidManifest:
<activity android:name=".OtherActivity">
<intent-filter >
<action android:name="activity_action"/>
<category android:name="activity_category"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="ftp" android:host="www.test.com" android:mimeType="image/*"/>
</intent-filter>
</activity>