link to google play

Monkey Forums/Monkey Programming/link to google play

dave.h(Posted 2013) [#1]
sorry if this has been asked but is there a command that if i press a button that ive created i can get it to link to either a game on google play or another website.If so is there an example anywhere.


Raz(Posted 2013) [#2]
OpenURL? From docs

Import mojo

Class MyApp Extends App

	Method OnCreate()
	
		SetUpdateRate 60

	End
	
	Method OnUpdate()
	
		If MouseHit(0)
			If MouseY()<DeviceHeight/2
				OpenUrl "http://www.monkeycoder.co.nz"
			Else
				OpenUrl "mailto:blitzmuntergmail.com"
			Endif
		Endif
	End
	
	Method OnRender()
	
		Cls
		DrawText "Click above to visit Monkeycoder, below to email Mark!",DeviceWidth/2,DeviceHeight/2,.5,.5
	End
	

End

Function Main()

	New MyApp

End


And if the link to a google play store entry (e.g. https://play.google.com/store/apps/details?id=com.colourfy.yaty&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5jb2xvdXJmeS55YXR5Il0. ) it will ask if you want to open it in the play store


dave.h(Posted 2013) [#3]
Thank you,exacly what i needed.I did try and look for this but for some reason just couldnt find it.