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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:35:14+00:00 2026-06-18T02:35:14+00:00

Im new to android.. Im facing a problem in Nextbutton while displaying the next

  • 0

Im new to android..

Im facing a problem in Nextbutton while displaying the next four option answers for question…

In my first time set text im getting the correct question and matched four option answers. What i needed is..

I have a nextbutton for displaying the next question and answers..When click on next button i can get the next question..

And at the same i need to get next four options from the arraylist….
How to implement this?
Any help would be appreciated…Thanks a lot in advance..

protected void onPostExecute(String file_url) {
    pDialog.dismiss();
      ques1=new ArrayList<String>(new ArrayList<String>(ques1));
            //  j=0;
            TextView txtque = (TextView) findViewById(R.id.que_txt); 
            txtque.setText(ques1.get(j));
            answ1=new ArrayList<String>(new ArrayList<String>(answ1));
            btn_practice1.setText(answ1.get(0));
            btn_practice2.setText(answ1.get(1));
            btn_practice3.setText(answ1.get(2));
            btn_practice4.setText(answ1.get(3));
        Button nextBtn = (Button) findViewById(R.id.nxt_btn);

        nextBtn.setOnClickListener(new Button.OnClickListener(){
        @Override
        public void onClick(View v){  

          j++;
          TextView txtque = (TextView) findViewById(R.id.que_txt); 
          txtque.setText(ques1.get(j));         
         }
       });
}

How can i implement the radiobutton text in onClick event of Nextbutton?

  • 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-18T02:35:15+00:00Added an answer on June 18, 2026 at 2:35 am
        nextbtn.setOnClickListener(new OnLongClickListener() {
    
            @Override
            public boolean onLongClick(View v) {
    
                j++;// j is your ques1 Array index number
                txtque.setText(ques1.get(j));
                                k++;  // k is your answ1 Array index number
                btn_practice1.setText(answ1.get((k*4)+0));
                btn_practice2.setText(answ1.get((k*4)+1));
                btn_practice3.setText(answ1.get((k*4)+2));
                btn_practice4.setText(answ1.get((k*4)+3));
    
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im new to android.. Im facing a problem in Nextbutton while displaying the next
I am new to Android development and facing a problem while using AndEngine. I
im new to android gaming and started andengine and facing problem while using createTiledFromAsset
I am first time asking question,please solve my problem. I am developing small Music
I am new to Android development and am facing a slight issue. My first
I am new in android development. Currently, I facing problem to choose a proper
Hi iam new in Android and I am facing a problem in creating new
hello geeks as i'm new to android i'm facing a critical problem as i
Hi I'm new to Android and am facing the problem: how do I get
I am new to android here i am facing problem when i try to

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.