Page 1189 - 3-3
P. 1189

DimmerLevel.setText("" + count3);
                            break;
                        case R.id.led_door:
                            ImageButton LD = (ImageButton) findViewById(R.id.led_door);


                            if (flag3 == false) {
                                LD.setBackgroundResource(R.drawable.drled_cl);
                                flag3= true;
                            } else


                            {
                                LD.setBackgroundResource(R.drawable.drled_op);
                                flag3= false;
                            }   //use flag to change image
                            break;
                        case R.id.otpbtn:
                            TextView tv1=(TextView)findViewById(R.id.sta);
                            TextView mTextResult1=(TextView)findViewById(R.id.one);
                            TextView mTextResult2=(TextView)findViewById(R.id.two);
                            TextView mTextResult3=(TextView)findViewById(R.id.three);
                            TextView mTextResult4=(TextView)findViewById(R.id.four);
                            TextView mTextResult5=(TextView)findViewById(R.id.five);
                            TextView mTextResult6=(TextView)findViewById(R.id.six);
                            if(count4==0) {
                                count4 = 1;
                                Resources res = getResources();
                                Drawable drawable = res.getDrawable(R.drawable.circular);
                        final ProgressBar mProgress = (ProgressBar) findViewById(R.id.circularProgressbar);
                                mProgress.setProgress(0);    // Main Progress
                                mProgress.setSecondaryProgress(100); // Secondary Progress
                                mProgress.setMax(100); // Maximum Progress
                                mProgress.setProgressDrawable(drawable);
                        ObjectAnimator animation = ObjectAnimator.ofInt(mProgress, "progress", 0, 100);
                                animation.setDuration(57000);
                                animation.setInterpolator(new DecelerateInterpolator());
                                animation.start();
                                mRand1=new Random();
                                mRand2=new Random();
                                mRand3=new Random();
                                mRand4=new Random();
                                mRand5=new Random();
                                mRand6=new Random();
                                number1 = mRand1.nextInt(9);
                                number2 = mRand2.nextInt(9);
                                number3 = mRand3.nextInt(9);


                                                         - 1189 -
   1184   1185   1186   1187   1188   1189   1190   1191   1192   1193   1194