1. Android Central Question's Avatar
    I have two number pickers Numberpicker1 and Numberpicker2
    Numberpicker 1 => numberpicker1.setminvalue(1) and numberpicker1.setmaxvalue(7)
    Numberpicker 2 => numberpicker2.setminvalue(0) and numberpicker2.setmaxvalue(12)

    The output is not showing displaying unfortunately stopped app gets crashed
    pls help out.And even my onclick button code is not working error i am unable to rectify.i dont have much knowledge about coding pls correct my code and send here

    public class MainActivity extends AppCompatActivity {
    NumberPicker pick1,pick2;
    Button btnsubmit;

    @override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    pick1 = (NumberPicker)findViewById(R.id.picker1);
    pick2 = (NumberPicker)findViewById(R.id.picker2);

    pick1.setMinValue(1);
    pick1.setMaxValue(7);
    pick2.setMinValue(0);
    pick2.setMaxValue(12);

    btnsubmit.setOnClickListener(new View.OnClickListener() {
    @override
    public void onClick(View v)
    {
    try
    {

    }
    catch (Exception e)
    {
    e.getMessage();
    }
    }
    });

    }
    }
    09-01-2018 03:15 AM
  2. belodion's Avatar
    Would you like this to be moved to our Developers Lounge forum?
    ManiacJoe likes this.
    09-01-2018 05:17 AM

Similar Threads

  1. Apps are running in the background notification
    By d4005 in forum Samsung Galaxy S8 & S8+
    Replies: 1
    Last Post: 09-10-2018, 03:15 PM
  2. Replies: 1
    Last Post: 09-02-2018, 02:47 AM
  3. Where to buy the Galaxy Note9
    By LOT Mobiles in forum Samsung Galaxy Note 9
    Replies: 1
    Last Post: 09-01-2018, 06:27 AM
  4. Replies: 0
    Last Post: 09-01-2018, 12:45 AM
  5. How can i remove unwanted language?
    By Android Central Question in forum Ask a Question
    Replies: 0
    Last Post: 08-31-2018, 11:12 PM
LINK TO POST COPIED TO CLIPBOARD