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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:58:41+00:00 2026-05-28T05:58:41+00:00

I want to realize app which will have few slides. How to do it

  • 0

I want to realize app which will have few slides. How to do it I’ve understood. Now On first page I have created two buttons.

First button means that next slide by clicking flipper forward will play mp3 file with MAN’s voice.
Second button means that next slide by clicking flipper forward will play mp3 file with WOMAN’s voice…

myOption1 = (RadioButton)findViewById(R.id.option1);
        myOption2 = (RadioButton)findViewById(R.id.option2);

    myOption1.setOnClickListener(myOptionOnClickListener);
    myOption2.setOnClickListener(myOptionOnClickListener);


    myOption1.setChecked(true);
    myOption2.setChecked(false);

…

RadioButton.OnClickListener myOptionOnClickListener =
            new RadioButton.OnClickListener(){

            @Override
            public void onClick(View vmw) {
                // TODO Auto-generated method stub
                if (myOption2.isChecked()== true){
                    myOption1.setChecked(false);
                    myOption1.isClickable();
                    Toast.makeText(Main.this,
                            "Option 1 : " + myOption1.isChecked() + "\n"+
                            "Option 2 : " + myOption2.isChecked(),

                            Toast.LENGTH_LONG).show();
                }else {
                    myOption1.setChecked(true);
                    myOption2.setChecked(false);
                    Toast.makeText(Main.this,
                            "Option 1 : " + myOption1.isChecked() + "\n"+
                            "Option 2 : " + myOption2.isChecked(),

                            Toast.LENGTH_LONG).show();
                }
                return;
  1. OnclickListener changes bool when click second button, but when press ferst button for man’s voice – nothing changes!!! Option2 becomes true, but it must become false if I check first button…((((

2.How can I get result of this choice on the next

  • 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-28T05:58:41+00:00Added an answer on May 28, 2026 at 5:58 am

    In onClick(View vmw) use the vmw(view) to get myOptions(RadioButton) like :

    RadioButton myOption = (RadioButton)vmw;
    

    then check the conditions. Please try this and reply.

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

Sidebar

Related Questions

What I want to realize is the following: In a JSP x I have
want to have a Hyperlink-Button in a gridView in which I can display a
We have a Rails app which communicates with a PhoneGap-based iPhone app. We are
I have a Rails 2.3.5 app which is serving a card game. I've been
I've got a VB.NET WinForms app in which I have the need to refer
In a translation-testing app (in Python) I want a regular expression that will accept
i want to realize a construct in MS SQL that would look like this
I'll be using a datePicker several places in my app. I don't want to
I'm writing an app that stores the location of the places you have been
I have a task which I need to run in the background in my

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.