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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:39:18+00:00 2026-05-26T05:39:18+00:00

I am able to modify my first spinner but not sure how to do

  • 0

I am able to modify my first spinner but not sure how to do the second one in java. Here is what I am trying, I get no blanent errors but my apk fc’s when I launch the activity. Could someone help me with what java code should like when you overide two things in the same layout and the same acvity? Thanks in advance. (now back to searching for an example)

package com.wbhome.mytrial;

import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

public class m5isoActivity extends m5Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {    
        super.onCreate(savedInstanceState);    
        setContentView(R.layout.scores);

        Spinner localSpinner = (Spinner)findViewById(R.id.iso_pbar_spinner);

        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.iso_pbar_list, R.layout.my_normal_spinner_style);    
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);    

        localSpinner.setAdapter(adapter);
        }

        {   
        Spinner localSpinner = (Spinner)findViewById(R.id.iso_sp_spinner);

        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.iso_sp_list, R.layout.my_normal_spinner_style);    
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);    

        localSpinner.setAdapter(adapter);}

    }
  • 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-26T05:39:19+00:00Added an answer on May 26, 2026 at 5:39 am

    I just did alot of his, hope it helps

    Spinner m1ssspinner = (Spinner)findViewById(R.id.m1_ss_spinner);        
    ArrayAdapter<CharSequence> m1ssadapter = ArrayAdapter.createFromResource(this, R.array.m1_ss_list, R.layout.my_normal_spinner_style);            
    m1ssadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    m1ssspinner.setAdapter(m1ssadapter); 
    
    Spinner m1sqs1spinner = (Spinner)findViewById(R.id.m1_sqs1_spinner);        
    ArrayAdapter<CharSequence> m1sqs1adapter = ArrayAdapter.createFromResource(this, R.array.m1_sqs1_list, R.layout.my_normal_spinner_style);            
    m1sqs1adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);            
    m1sqs1spinner.setAdapter(m1sqs1adapter);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm probably not the first one facing this problem, but I couldn't find a
I love being able to modify the arguments the get sent to a function,
i m not able to modify table in SQL server. i m new to
Application able to record error in OnError, but we are not able to do
I’m a long time listener, but first time caller here… Hoping you can help
I'm not very familiar with FoxPro and I'm running into problems trying to modify
This is my first question on StackOverflow.com and I'm not sure if this is
I need to be able to modify every single link in an HTML document.
I'm able to connect to and read an excel file no problem. But when
i have a table with order details. User is able to modify these details

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.