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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:05:35+00:00 2026-06-08T19:05:35+00:00

I need help with following situation. I have widget with configure activity. In the

  • 0

I need help with following situation. I have widget with configure activity. In the activity is spinner with some values, which should affect widget look (only text in one TextView). At this time, I set AlarmManager to widget update (service) and modify TextView in Configure activity. This works fine, but when I restart phone, alarm isn’t set anymore and I should set It again. I can’t do it, because settings from Configure activity is lost.

There is solution – save AppWidgetID with widget settings to database, but I think, it’s not the best solution. A problem is, that onUpdate method of AppWidgetProvider is called before onCreate method of ConfigureActivity.

In brief, I need get some settings from Configure Activity, pass it to AppWidgetProvider and update widget.

Thanks in advance

  • 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-08T19:05:36+00:00Added an answer on June 8, 2026 at 7:05 pm

    Sounds like a job for SharedPreferences. Use your configure activity to set preference values and read them from your widget. Use PreferenceManager.getDefaultSharedPreferences(Context) to access the shared preferences.

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

Sidebar

Related Questions

I have the following strange situation here I need some help with: I am
I need some help writing a regex. I have the following strings, xxx.yyy.wwwwwaaa_IN_123 xxx.rrrttttt_IN_12355
I need some help with something... say I have the following form... <form name=
I need help with C programming. I have the following situation: struct Product {
Need help with following situation: Users can generate their own data structures which are
I need help for some command for handle the following situation. I search on
I need some help with the following situation: Very simplified table users_log +-----------------+-------------------+ |
I need help with the following design. Basically I have a Main form which
I'm fixing bugs for some application, and I need help understanding the following lines
I need some help extracting the following bits of information using regular expressions. Here

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.