Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add blinking light in order to look more feature #6

Open
karthik2342323 opened this issue Nov 1, 2019 · 0 comments
Open

add blinking light in order to look more feature #6

karthik2342323 opened this issue Nov 1, 2019 · 0 comments

Comments

@karthik2342323
Copy link

add this with UI in order to add blinking light . I am beginner so I don't know about mobile developement
public void toggle(View view)
{
Button button = (Button) view;
// mine coding for disco light
if(button.getText().equals("Switch On") )
{
int i=1000;
while (i>3)
{
if(i%80!=0)
{
//button.setText(R.string.switch_on_text);
torchToggle("off");
}
if(i%80==0)
{
// button.setText(R.string.switch_off_text);
torchToggle("on");
}
if (i==10000)
{
button.setText(R.string.switch_off_text);
torchToggle("off");
break;
}
i++;
}
}
// mine coding

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant