Issue
I want to edit the following file so that it suits my needs. Of cause I could do extent the class or something like that. But I like to know If it is safe to do this. E:\Program Files\Android\sdk\sources\android-22\android\view\GestureDetector.java (Because I want to customize GestureDetector class.)
What should I do to after editing this file (like recompile the whole thing etc)? Is this recommended? I'm using Android Studio.
Solution
You cannot change the file GestureDetector.java directly.
If you change the android source code, then you need to compile the source code and make a customized operating system, which is not suitable for your case.
I suggest you to make a class like MyGestureDetector.java which is extend from GestureDetector.java, then you can implement your own logic in MyGestureDetector.java safely.
Answered By - SHICONG CAO
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.