I am making a calculator app in Android that is doing a lot calculation in the onClick method causing it to skip frames:
I/Choreographer﹕ Skipped 206 frames! The application may be doing too much work on its main thread.
The method looks like this:
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnZero:
//do some stuff
break; ...
}
My question is: Can I make this run faster in any way - maybe by some threads or anything else?