I wrote a AppWidget, and it needs to listen to the event of media
scanner finished.

I add action for this AppWidget like this:
---------------------------------------------------------------------------------------------------------------------------------------------------
<receiver android:name="TestWidget">
                <intent-filter>
                        <action
android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
                        <action
android:name="android.intent.action.MEDIA_SCANNER_FINISHED"/>
                        <data android:scheme="file"/>
                </intent-filter>
                <meta-data android:name="android.appwidget.provider"
                        android:resource="@xml/test_widget4_info"/>
</receiver>
------------------------------------------------------------------------------------------------------------------------------------------------------

Here question is:
if I add "<data android:scheme="file"/>", it will be gone when I want
to add a TestWidget, which means when I go to "Add to Home screen" ->
"Widgets", I can't find TestWidget.
if I don't add "<data android:scheme="file"/>", I can find TestWidget,
but it can't catch the broadcast of
"android.intent.action.MEDIA_SCANNER_FINISHED", what should I do?

Any answer will be appreciate!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to