Android Studio reload application inside application -
i've got application crashes when resumed. application can go pause phase fine, once resumed, application crashes.
i want make application able restart when resumed. don't want full application reset data purged, application closed, , relaunched, want causes application "create" again.
my idea have this:
@override protected void onresume() { application.restart(); }
i'm not sure how this, , haven't found online.
thanks!
nathan
found issue was. had invoked playsound.release();
inside of onpause() { ... }
therefore causing mediaplayer have running shut down. had make mediaplayer have correct file put inside of onresume() { ... }
method.
thanks rami pointing me @ stack again. time, managed find problem in mediaplayer. took @ mediaplayer properties , found issue was.
thanks!
Comments
Post a Comment