in this line am getting NullPointerException can any one help me to fix this
Button up[];
up[0] = (Button) findViewById(R.id.adultup1);
up[0].setOnClickListener(new View.OnClickListener() {
public void onClick(View v开发者_Go百科iew) {}
You need to allocate the Button array, e.g.
up = new Button[10];
精彩评论