Je veux ajouter un bouton dans mon jeu qui ouvrira une URL vers mon application dans le Play Store. Voici ce que j'ai obtenu jusqu'à présent, mais lorsque je clique sur le bouton de taux, l'URL correspondante ne s'ouvre pas.
Mon code tarifaire est :
if(Gdx.input.justTouched()){
guiCam.unproject(touchPoint.set(Gdx.input.getX(),Gdx.input.getY(), 0));
if(OverlapTester.pointInRectangle(rateButtonBound, touchPoint.x, touchPoint.y)){
try {
Process p = Runtime.getRuntime().exec("cmd /c start https://play.google.com/store/apps/details?id=com.shagunstudios.racinggame");
}
catch (IOException e1) {
System.out.println(e1);
}
if(Settings.soundEnabled)
Assets.click_sound.play(1.0f);
return;
}
}