I need to break my loop from a handler in that loop, but there is a problem :

```
break cannot be used outside of a loop or a switch

```

This is my Code :

```
        Handler mHandler = new Handler();
        for (int i = 0; i < 10; i++) {
            mHandler.post(new Runnable() {

                @Override
                public void run() {
                    if (Break)
                        break;
                }
            });
        }

```

I can't use label break also, like this link : [Difference between Return and Break statements](https://stackoverflow.com/questions/6620949/difference-between-return-and-break-statements)