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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:21:18+00:00 2026-05-23T19:21:18+00:00

Basically i want a dialog which has text and 3 buttons || YES ||

  • 0

Basically i want a dialog which has text and 3 buttons

|| YES || NO || NEVER ||

I want it to pop up, only on second run and after that on every run until yes or never is selected.

I am sorry if this is a noobish question but i have no idea how to store data.
Is shared preferences the way to go, if so can any one give me an idea as to which function is to be called and from where.

I am having trouble understanding this part, if i write the data from the activity, it’ll basically be over written every time the app runs.

  • 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-23T19:21:20+00:00Added an answer on May 23, 2026 at 7:21 pm

    What is your real question? If I am not wrong, you asking this question :

    • how to store data
    • how to show 2 button instead 3 button after some point.

    So the answer is, you can store your data on SharedPreferences use it like this

    SharedPreferences sp = act.getSharedPreferences(name, MODE_PRIVATE);
    Editor editor = sp.edit();
    editor.putString(key, value); // put some data
    editor.commit();
    
    String val = sp.getString(key, defaultValue); // get some data, if it not exist, defaultValue will be returned
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display a dialog which contains HTML that is dynamically generated: $.ajax({
I am creating a plugin for TinyMCE, which is basically a form that has
I want to be able to show basically the same list that the Windows
I have a UIViewController that I want to display a second UIViewController as a
I want to create modal dialog but which shouldn't behave in a modal way
I have a WPF program that I'm developing in which I want to catch
Basically I've created a mfc dialog with a button saying load. I just want
I want to start an activity as a dialog, which can be simply done
I basically want to use link_to to link to the index method of a
I basically want to do this: grep 'example.com' www_log > example.com.YYYY-MM-DD-H:i:S.log ...with of course

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.