Play Google or Internet when update our app

Prosg

Active Member
Licensed User
Longtime User
In this post http://www.b4x.com/forum/basic4android-updates-questions/20586-check-app-version.html

there is a way to alert user when there is an update of our app

but
When i open the app Deezer, he ask me for accept update

After there is choose between internet or playstore

playstore.jpg


How it's possible too open the link with Internet or playstore ?
 
Last edited:

Prosg

Active Member
Licensed User
Longtime User
After some hours ... i make this solution :) i hope it's a good one

B4X:
Sub AcceptUpdate_Click
   If myMsgBox.ButtonSelected = "yes" Then
      Dim UriStr As String = "market://details?id=mangawallpaper.yukie"
      Dim Intent1 As Intent
      Intent1.Initialize(Intent1.ACTION_VIEW,UriStr)
      Try
         StartActivity(Intent1)
      Catch
         Dim p As PhoneIntents
         StartActivity(p.OpenBrowser("https://play.google.com/store/apps/details?id=mangawallpaper.yukie"))
      End Try   
End If      
End Sub
 
Upvote 0
Top