Execute Editor and Android Code Seperately

I want to execute editor code in Unity editor and Android platform code in android devices.
So that I partition my code like this but always getting Android platform code executed in Unity Editor too.

70875-screen-shot-2016-05-27-at-123149-pm.png

My Player Setting is running like this:

70876-screen-shot-2016-05-27-at-124447-pm.png

So I want to execute editor code in Unity Editor and Android code in Android Devices. This is my basic requirement. Please give some help in this.

EDIT: In other words, how can I say that it is actual android device or Unity editor running this??

#if UNITY_ANDROID && !UNITY_EDITOR
//code here
#endif
this will execute code only on android device.
watch this post it could help