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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:18:17+00:00 2026-05-22T00:18:17+00:00

Sorry I had to rephrase my question, I have a list preference with some

  • 0

Sorry I had to rephrase my question, I have a list preference with some option

enter image description here

I want to change the value of a variable depending on the option selected. I have no idea how to get the selected index or where to start from.

  • 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-22T00:18:17+00:00Added an answer on May 22, 2026 at 12:18 am

    First, start by throwing out that code you posted. 🙂 You don’t want to use a thread for scheduled updates, you want to use the AlarmManager.

    The reason for this is that Android might kill your running app at any time. When an alarm fires it will wake up your app as needed, starting it from scratch if necessary so that it can run.

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

Sidebar

Related Questions

Sorry if I repeat my question but I have still had no clues of
Sorry i'm new to spring and have a question about the httpinvokerserviceexporter. I had
Sorry I have had to submit this question again because I have had hardly
Sorry, I had some trouble writing a short title for this! I want my
Sorry guys, not being lazy, I know others have had the same error message
I'm sorry for opening a new question, I had to - as I wrote
Sorry if this question isn't clear. The short story is that we had someone
im sorry if this has already been covered, i have had a look but
Sorry if the question isn't that clear in the title but I had a
Sorry if I ask silly question, but so far had no luck in figuring

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.