Search code examples
androidandroid-widgetandroid-buttonandroid-appwidgetremoteview

Android Clickable AppWidget Disable Sound on Click


I have an AppWidget (part of my app). I want there to be no sound when the user clicks a button in the widget. How do I do this?


Solution

  • CommonsWare answered it: This is not a method on RemoteViews, and setSoundEffectsEnabled() is not a RemotableViewMethod, so the literal answer is incorrect. However, android:soundEffectsEnabled="false" in the layout file may work.

    setting android:soundEffectsEnabled="false" in the xml layout file does indeed work!