Originally Posted by GermainZ
Changing DURATION directly will have no effect. This is because the compiler replaces final static variables with their values (so "10" will be directly used instead of "DURATION").
What you could do is replace the init(Context context, boolean enabled) method entirely. Check out the development tutorial
(and other wiki pages) for some hints on where to get started.
Thank you for your answer. But I did not see it till now. That's why my respond is so late.
I had one experience with replacing entire method. But it was just a boolean method. I used this example http://forum.xda-developers.com/show...60&postcount=4
And also I've tried to replace whole init method but I have a problem with that string:
mVibrator = new SystemVibrator(context);
but this "android.os.SystemVibrator;" is highlighted with red in eclipse
It says "The import android.os.SystemVibrator cannot be resolved" but the file exists...
I have a code but because of that error I can't test it
Check out my Moto CheckBox xposed module for Moto G!