Tag: IntentFilter

특정 확장자의 파일을 Activity와 연동시키기

March 15, 2011
출처 : http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension Here is how I defined my activity in my AndroidManifest.xml to get this to work. [code lang="java"] <activity name="com.keepassdroid.PasswordActivity"> <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="file" /> <data android:mimeType="*" /> <data android:pathPattern=".*\\.kdb" /> <data android:host="*" /> </intent-filter> </activity> [/code] The scheme of "file" indicates that this should happen when a local […]
Read More
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram