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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:49:47+00:00 2026-06-07T01:49:47+00:00

This is for a game i am trying. First(1st activity) to Fith level(5th activity)

  • 0

This is for a game i am trying. First(1st activity) to Fith level(5th activity) have questions with multiple choice. The user is taken to the next level irrespective of what his answer is. At the end of the fifth level, he is told that 1) You have cleared all OR IF ONE OR MORE ARE WRONG 2) You have made a mistake.

i.e he is notified of his result at the end of five levels.(he is not told which question is incorrect just that he has made a mistake)

Can somebody help me with the codes?

  • 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-07T01:49:49+00:00Added an answer on June 7, 2026 at 1:49 am

    Here is the code to get you started with SharedPreferences

    This is how you store in SharedPref, you can use it in each level to store the result:

    public static final String GAME_PREFERENCES = "GamePrefs";
    sharedPreferences settings = getSharedPreferences(GAME_PREFERENCES, MODE_PRIVATE);
    sharedPreferences.Editor prefEditor = settings.edit();         
    prefeditor.putBoolean("level1",YOUR_BOOL_VALUE);          
    prefeditor.commit();
    

    Similarly you use getBoolean to retrieve the values which you have stored (in the last activity)!

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

Sidebar

Related Questions

I'm making this game where I'm trying to pair people. So I have this
All, I am trying to code a Connect4 game. For this, I have created
I'm trying to make this 2-player web game application using Spring MVC. I have
I am new at this. Trying to make my first game. I need to
I am trying to create my first game for android. I currently have a
I'm trying to make my first game, a console tetris. I have a class
I am currently trying to make a game in Android. I have this piece
I'm trying to make my first android game and to do this I made
First off, this isn't homework ;). I'm trying to create a wordsearch game from
This is my first post at this section (XNA and game development). I'm trying

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.