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

  • SEARCH
  • Home
  • 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 8983733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:54:50+00:00 2026-06-15T20:54:50+00:00

Do you know on how to link an image from current widget and link

  • 0

Do you know on how to link an image from current widget and link it to specified url?

I’ve been searching for the solution in Google, could not found the exact solution.

Im now developing a simple widget.. Its really new for me, Im not really understand on how to use the AppWidgetProvider

My current widget is only displaying image which it will directly link to a website when user click it..

So, my question is, which of these should I use in AppWidgetProvider ?

As we know there are 4 of them..

  • onDeleted(context)
  • onDisabled(context)
  • onUpdated(context)
  • onReceived(context)

can u explain a bit more about it? and the steps for me to make the code for linking the image to website.

thanks friends

  • 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-15T20:54:51+00:00Added an answer on June 15, 2026 at 8:54 pm

    Indeed this won’t work for AppWidgets. You should call setOnClickPendingIntent() on your RemoteViews instance, passing it the ImageView id and the following PendingIntent object:

    Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
    PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0);
    

    Here’s the documentation for the method. Hope this helps.

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

Sidebar

Related Questions

I would like to know how the recycle image link works, it points to
I tried to get the image height and width from a href link image,
So, what I'm actually looking for is this solution: Get/pick an image from Android's
Does anyone know a link to a set of color profiles for Eclipse that
I have written a class using std::tr1::regex, and I don't know how to link
Anyone know a good external link tracking script ? IE. to catch links and
I know how to create a symbolic link in windows in a .bat script:
I know that if you put a link in a textview it will work
I know how <link type=stylesheet href=.. /> and <script type=text/javascript src=.. /> work. But
Does anybody know how to click on a link in the WebBrowser control in

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.