Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8603297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:17:27+00:00 2026-06-12T02:17:27+00:00

Detect OnTouch on AppWidget. If is it possible? Hello! I’m trying to create my

  • 0

Detect OnTouch on AppWidget. If is it possible?
Hello! I’m trying to create my first AppWidget for Android 2.1 in which a client may have a chance to select an item on my custom view. I’m going to create a custom view and a slider for it and client may select by pulling slider over the custom view. For this purpose I want to detect onTouch for AppWidget (to determine X-, Y- coordinates), is there way to do this?

I saw a list of valid widgets which can be used in AppWidget:

  • AnalogClock
  • Button
  • Chronometer
  • ImageButton
  • ImageView
  • ProgressBar
  • TextView
  • ViewFlipper
  • ListView
  • GridView
  • StackView
  • AdapterViewFlipper

However they do not fit my needs. I have Googled this but find nothing which could help me.
IS there any way to detect OnTouch within an AppWidget? Perhaps this would require me to have a newer API version.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:17:28+00:00Added an answer on June 12, 2026 at 2:17 am

    It seems that there is no way to detect touch on AppWidget.RemoteViews have no method to detect it(we can not register a touch listener for them).

    Mark Murphy(CommonsWare) in detect onTouch for widget says:

    You don’t detect “on touch” for app widgets. You can, however, detect
    clicks, via setOnClickPendingIntent() on RemoteViews. AFAIK, this
    works for all View classes supported by RemoteViews.

    Also,you can not use StackView in AppWidgets in Android2.1 (see simulate stack view in Android2(API 5)?).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Detect multitouch with Ontouch listener Android I have a question about detecting
I am trying to detect groups which contain the difference between first age and
Possible Duplicate: How to detect true Windows version I have an application which uses
For detect undefined variable which have been declared in javascript there at least two
I am trying to detect if one or more variables contain numbers. I have
Possible Duplicate: Detect element content changes with jQuery I have a wrapper div say
Possible Duplicate: Detect inside Android Browser or WebView i want to detect whether the
I am trying to detect if an element has been scrolled out and have
I'm trying to detect and remove those fields that after a sync are still
I am trying to detect when the laptop lid opens and closes, should be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.