how can i api control this? : **how can i API control this?**
i want use `ble` 
problem is that in api lower than 21 i should use `startlescan()` and in API 21 i should use `startscan()` and its scan callback that is not for API less than 21.
how can i separate those code to have both in my app?
[this is error][1]


  [1]: http://i.stack.imgur.com/r29WD.jpg

i want something like this:

    if(api < 21) startlescan();
    if(api >= 21) startscan();

