문제

I am basically developing an Applicatin which requires the App to Vibrate just before it closes down.

Now when I call the vibrator.vibrate() function and then call the finish() function, the Vibration is stopped and the app is exited, before the Vibration completes.

I want the app to wait until the vibration gets over and then exit!

Thanks in Advance!

도움이 되었습니까?

해결책

I think you need set a duration for vibration for this purpose given links can help you Can you increase vibrator strength on android devices?. http://techblogon.com/vibrate-android-phone-programmatically/

After setting duration you need set a timer before exiting that equals to the vibration milliseconds :) so your application will exit after vibration period completed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top