Wednesday, 15 February 2012

android - Application not being displayed in the list of default apps on device -



android - Application not being displayed in the list of default apps on device -

i trying write photo viewer application , have set below in manifest file

<activity android:name="com.example.testimageintent.mainactivity" android:label="@string/app_name" > <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:mimetype="image/*"/> </category> </action> </intent-filter> </activity>

the thought list app in list of available applications when user tries open image file browser. somehow app never listed in list. can still see gallery , other apps in list app never appears. pointers might doing wrong?

i think missing

<action android:name="android.intent.action.send" />

in <intent-filter>

define this:

<intent-filter> <action android:name="android.intent.action.send" /> <category android:name="android.intent.category.default" /> <data android:mimetype="image/*"/> </intent-filter>

android intentfilter

No comments:

Post a Comment