This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
This Gist shows how to check the presence of connected devices before applying another .gradle file. | |
It has been tested with Android Gradle Plugin from 1.2.0 to 1.5.0. | |
*/ | |
apply plugin: 'com.android.application' | |
android { | |
Your app config... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE_TAGS := optional | |
LOCAL_STATIC_JAVA_LIBRARIES := \ | |
android-common \ | |
LOCAL_SRC_FILES := \ | |
$(call all-java-files-under, src) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package overlaytouch.eyal.fr.overlaytouch; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.graphics.PixelFormat; | |
import android.os.IBinder; | |
import android.util.Log; | |
import android.view.Gravity; | |
import android.view.MotionEvent; |