Thursday, July 18, 2013
Tuesday, July 16, 2013
Android Studio Gradle doesnt work after update , Gradle 0.4.0
Project is using an old version of android gradle plug-in. The minimum supported version is 0.5.0
Step 1: Change line in build.gradle
from:
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
to
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
Step 2
: In the<YourProject>.iml
file, delete the entire<component name="FacetManager">[...]</component>
tag.Friday, February 8, 2013
Erratic Touchscreen Solution (Chinese Android Tablets)
Hi
Just wanted to share my experience with Chinese Android tablets with erratic touchscreens. Although the touch screens are erratic but you can handle the erratic touches in your APK. The conclusion of the research is once you "Touchdown" and keep it down there will be number of other erratic touch downs and up's at different locations and then when you finally release your finger you will have a "Touchup" of your original press.
The point is that you need to use the last touchup.. Which you can simply find by the following algorithm
make a counter
int touchCounter=0;
On Touchdown() ---> counter++;
On Touchup()
------> counter--;
------> if (counter==0)
------> doWhatEver();
------> else
-------> return false;
All of this will go in your button press events for touchdown and touchup... dont use Clicks... you need your code to work on touch up....
Let me know if you have any questions or comments...
Regards
Umer
http://www.stickpos.com
Just wanted to share my experience with Chinese Android tablets with erratic touchscreens. Although the touch screens are erratic but you can handle the erratic touches in your APK. The conclusion of the research is once you "Touchdown" and keep it down there will be number of other erratic touch downs and up's at different locations and then when you finally release your finger you will have a "Touchup" of your original press.
The point is that you need to use the last touchup.. Which you can simply find by the following algorithm
make a counter
int touchCounter=0;
On Touchdown() ---> counter++;
On Touchup()
------> counter--;
------> if (counter==0)
------> doWhatEver();
------> else
-------> return false;
All of this will go in your button press events for touchdown and touchup... dont use Clicks... you need your code to work on touch up....
Let me know if you have any questions or comments...
Regards
Umer
http://www.stickpos.com
Subscribe to:
Posts (Atom)