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 6794741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:15:31+00:00 2026-05-26T18:15:31+00:00

I’m having trouble trying to find any tutorials on how to make a paging

  • 0

I’m having trouble trying to find any tutorials on how to make a paging app widget like the ones found in Facebook, Twitter and FriendCaster.

I could use the new Android 3.0+ tools with an adapter, however that would be difficult to test as I don’t have any devices capable and my computer isn’t either.

  • 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-05-26T18:15:32+00:00Added an answer on May 26, 2026 at 6:15 pm

    This can be done by giving your appwidget a state, which defines the page it currently shows. And assign broadcast to the buttons to change state.

    1. Send broadcast when buttons are clicked using PendingIntent.
    2. Have a receiver listen to broadcast and keep track of state (page)
    3. Update the appwidget depending on the current state

    Here is some incomplete code example:

    RemoteViews remoteViews = new RemoteViews(mContext.getPackageName(), R.layout.widget_weather);
    
    // update appwidget remoteviews depending on state (ie which page to show)
    remoteViews = populateViews(remoteViews, mState);
    
    // set next button
    Intent intent = new Intent(MYBROADCAST_NEXT);
    PendingIntent pendingIntent = PendingIntent.getBroadcast(context, requestCode, intent, flags);
    remoteViews.setOnClickPendingIntent(R.id.appwidget_btn_next, pendingIntent);
    
    // set prev button
    intent = new Intent(MYBROADCAST_PREV);
    pendingIntent = PendingIntent.getBroadcast(context, requestCode, intent, flags);
    remoteView.setOnClickPendingIntent(R.id.appwidget_btn_prev, pendingIntent);
    
    // update the AppWidget ...
    

    Hope this helps to achieve what you want.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I would like to count the length of a string with PHP. The string
I've got a string that has curly quotes in it. I'd like to replace
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.