Saturday, June 26, 2010

[android-developers] How to avoid the user being offered the option to "Open" a widget after installation from Android Market

Hi,
I am experiencing that after downloading and installing my widget from
Android Market the user is displayed two buttons in the market app:
"Open" and "Uninstall". If the user presses "Open" he is presented
with a "Launch error" note.
It does not make sense to open the widget from the market app just
after download and installation, since the user has not selected where
it should be placed on the home screen. Therefore the "Open" button
should be grayed out. The app does not have a
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>

, which probably is why the problem arises.

The problem has been reported on HTC phones (Magic, Hero, Legend) but
not on Sony Ericsson X10 Mini which grays out the "Open" button. There
are numerous widgets in Android Market with the same problem..
Does anyone know if the this is a HTC bug only? and if there is a way
of indicating in the Manifest that the app cannot be launched?
Br
Mark

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

No comments:

Post a Comment