English 中文(简体)
是否有任何人知道如何在家庭屏幕上处理“Long Click”的植被?
原标题:Does anyone know how to handle widget s "Long Click" event on home screen?

I want to implement long click ON one widget on home screen which leads to display a menu . Is there any way in Android where we can handle the click events on Widgets present in Home screen of android device.
Any help regarding this issue is appreciated.

问题回答

I m almost positive that this is impossible because a long click on a widget triggers the ability to move or resize it on the home screen.

I was looking for the an answer for the same question (I want a short click to update my widget and a long click to open an activity)

类似情况确实不可能:





相关问题
Definition of DEVELOPER_MODE for StrictMode

I m anxiously awaiting the open source release of StrictMode for continuation of our platform development. The sample in the Android blog entry suggests surrounding the StrictMode calls with if (...

Android onChange() method only returns false

I have a ContentObserver onChange() declared as a subclasse in my activity. But it always returns false. Can anyone tell me why? (Update) This code must call the fillList if the CallLog content ...

DDMS throwing ADB error since SDK API 9 upgrade

I upgraded to Gingerbreak 2.3 SDK today and started receiving this error when I try to run DDMS: Failed to get adb version: Cannot run program "adb": CreateProcess error=2, The system cannot find ...

Intellij IDEA 10 with Android 2.3

I am using IntelliJ IDEA 10 preview and have updated the android SDK to look at 2.3 which appears to have broken IntelliJ s support of android (no devices in the target device dialogue). I m aware ...

Trying to update to Android SDK 2.3 on Eclipse causes adb loss

Today, i tried to update the Android tools i use on Eclipse to version 8.0 and the Android SDK to version 2.3. This caused a loss of adb from tools directory. I managed to retrieve it again and put it ...

Could not find adb.exe - after upgrade to Android SDK 2.3

I have upgraded my Android SDK to version 2.3 and Android Development Tools 8.0.0. Now in Eclipse, I get an error message: Could not find C:Program Files (x86)Androidandroid-sdk-windowsplatform-...

Upgraded to SDK2.3, now maps won t display

My fault for being impatient but I ve just installed Gingerbread SDK and the new ADT plugin for Eclipse on Eclipse 3.5 Now when I run an existing Google maps project which has worked fine on 2.2, I ...

热门标签