Android Question Intent market pulling up alternative app stores and Google Play don't like it

vikingivesterled

Active Member
Licensed User
Longtime User
I just got one of my long standing apps banned by Google Play because they say it points to other stores.
I'm using the:

Dim IntentSell As Intent
IntentSell.Initialize2("market://details?id=PackageName", 0)
StartActivity(IntentSell)

to upsell and that for a long time just went directly to the Google Play store.

But all of a sudden its pulling up an intermittent pop up where it asks
Open with:
and then a list of app stores on my device, wich is:
Huawei App Gallery, Galaxy Store and Google Play Store.
Witch I assume is all possible stores present on the device.

And although the only one that works was the Google Play Store (selecting theGalaxy Store went direct to the Google Play and Huawei store didn't work with the package name), Google just flat out suspended it so it can't be updated and gave me one strike for the noughty step.

Is this a new function of b4a or or the Android OS.
If the former there will be a big problem with recompiled apps being banned, and Google is doing a push for old apps to be updated.
Is there a way to only and directly open Google Play.
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
This https://developer.android.com/distribute/marketing-tools/linking-to-google-play
page suggests that you can connect with the full URL

Summary of URL formats
The table below provides a summary of the URIs currently supported by the Google Play (both on the web and in an Android application), as discussed in the previous sections.


For this resultUse this link
Show the store listing for a specific apphttps://play.google.com/store/apps/details?id=<package_name>
Show the developer page for a specific publisherhttps://play.google.com/store/apps/dev?id=<developer_id>
Show the result of a search queryhttps://play.google.com/store/search?q=<query>
Show an app collectionhttps://play.google.com/store/apps/collection/<collection_name>
Launch a Google Play Instant experiencehttps://play.google.com/store/apps/details?id=<package_name>&launch=true
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User

Example Java code:
Java:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.example.android"));
intent.setPackage("com.android.vending");
startActivity(intent);


B4a code (not tested):
B4X:
Dim gpMarket As Intent
gpMarket.Initialize(gpMarket.ACTION_VIEW, "https://play.google.com/store/apps/details?id=" & Application.PackageName)
gpMarket.SetPackage("com.android.vending")
StartActivity(gpMarket)
 
Last edited:
Upvote 0
Top