Hello,
I was just trying to use vibration in my J2ME app. But it doesn't want to work. This is the code I wrote, I think it's correct, but it doesn't want to:
The void is called when pointerPressed is called. The SDK shows me "not-static method vibrate(int) cannot be referenced from a static content".Code:public void checkPress (int px, int py) { if (((xneu < px) && (px < (xneu+wneu))) && ((yneu < py) && (py < (yneu+hneu)))) { pressed = true; Display.vibrate(10); } }
I also searched with google and here in the forum but didn't found any solution.
Please help![]()

Reply With Quote

