Sub RateMe
If ratemsg = False Then
Dim result As Int
result = Msgbox2("If you like this app and think it is useful then please Rate it to support us.","Like this App?", "Rate", "Cancel", "", LoadBitmap(File.DirAssets , "info.png"))
If result = DialogResponse.POSITIVE Then
ratemsg = True
Dim ran As RandomAccessFile
ran.Initialize(File.DirInternal,"rate.txt",False)
ran.WriteInt(1,ran.CurrentPosition)
ran.Close
ratedone = True
Dim fURI As String
fURI = "market://details?id=lishsoft.android.saynoto0870"
Dim Market As Intent
Market.Initialize(Market.ACTION_VIEW,fURI)
StartActivity (Market)
ToastMessageShow("Thanks for rating this app",True)
Else
Dim ran As RandomAccessFile
ran.Initialize(File.DirInternal,"rate.txt",False)
ran.WriteInt(0,ran.CurrentPosition)
ran.Close
ratedone = True
End If
End If
Return ratedone
End Sub