Linking to Google Play | Android Developers

文章推薦指數: 80 %
投票人數:10人

Learn how to build links that take users to your published apps in Google ... Use the format below to deep-link directly to an app's Store ... Platform AndroidStudio GooglePlay Jetpack Kotlin Docs Games Language English BahasaIndonesia Español–AméricaLatina Português–Brasil TiếngViệt 中文–简体 中文–繁體 日本語 한국어 Signin GooglePlay Overview PlayConsole PlayBilling PlayPolicies Resources Platform AndroidStudio GooglePlay Overview PlayConsole PlayBilling PlayPolicies Resources Jetpack Kotlin Docs Games Overview GooglePlayicondesignspecifications Brandguidelines Deviceartgenerator LinkingtoGooglePlay Alternativedistribution GooglePlay Resources LinkingtoGooglePlay GooglePlayprovidesseverallinkformatsthatletyoubringuserstoyour productsinthewayyouwant,fromAndroidapps,webpages,ads,reviews, articles,socialmediaposts,andmore. TolinktoyourappwiththeGooglePlaybadge,visitthe badgegenerator. Thelinkformatsletyoulinktothefollowing: Anapp'sstorelisting. Adeveloper'spage. Asearchresultofyourchoice. Acollection. AGooglePlayInstantexperience. Linkingtoastorelisting Usetheformatbelowtodeep-linkdirectlytoanapp'sStorelistingpage,where userscanseetheappdescription,screenshots,reviewsandmore,andthen installit. Tocreatethelink,youneedtoknowtheapp'sfullyqualifiedpackagename, whichisdeclaredintheapp'smanifest file.Thepackagenameis alsovisibleintheGooglePlayConsole. http://play.google.com/store/apps/details?id= Here'sanexample: http://play.google.com/store/apps/details?id=com.google.android.apps.maps FordetailsonhowtosendthelinkinanAndroidapp,seeLinkingfroman AndroidApp. Linkingtoadeveloperpage Usetheformatbelowtolinkuserstoyour developerpage.Onthispageyoucanprovidemoredetailsaboutyourbrand, featureanapp,andprovidealistofotherappsyou'vepublished. Tocreatethelink,youneedtoknowyourpublishername,whichisavailable fromthePlayConsole. http://play.google.com/store/apps/dev?id= Here'sanexample: https://play.google.com/store/apps/dev?id=5700313618786177705 FordetailsonhowtosendthelinkinanAndroidapp,seeLinkingfroman AndroidApp. Linkingtoasearchresult UsetheformatbelowtolinkuserstoasearchqueryresultonGooglePlay.The searchresultpageshowsalistofapps(andoptionallyothercontent)that matchthequery,withratings,badges,andaninstallbuttonforeach. Tocreatethelink,youjustneedasearchquerystring.Ifyouwantthequery tosearchbeyondtheGooglePlayapplistings,removethe&c=appspartofthe linkURL. http://play.google.com/store/search?q=&c=apps Here'sanexample: http://play.google.com/store/search?q=maps&c=apps FordetailsonhowtosendthelinkinanAndroidapp,seeLinkingfroman AndroidApp. Linkingtoacollection IfyourappisfeaturedorappearsinoneoftheGooglePlaytopchartsor collections,youcanusetheformatbelowtolinkusersdirectlytothe collection.Thecollectionshowsarankedlistofappsinthecollection,with ratings,shortdescriptions,andaninstallbutton. http://play.google.com/store/apps/collection/ Here'sanexample: http://play.google.com/store/apps/collection/topselling_free FordetailsonhowtosendthelinkinanAndroidapp,seeLinkingfroman AndroidApp. Table1.CollectionsonGooglePlay. Collection collection_name StaffPicks(Featured) featured TopPaid topselling_paid TopFree topselling_free TopNewFree topselling_new_free TopNewPaid topselling_new_paid TopGrossing topgrossing Trending movers_shakers LinkingtoEditors'ChoicePages IfyourappisfeaturedorappearsinarticlesinEditors'Choice,youcanuse theformatbelowtolinkusersdirectlytotheEditors’Choicepage. TheURLforthemainEditors'Choicepageis: https://play.google.com/store/apps/topic?id=editors_choice Andyoucanfindeachpage'sURLfromtheEditors'Choicepage. Herearesomeexamples: GetMotivatedWithThese5FitnessApps https://play.google.com/store/apps/topic?id=editorial_fitness_apps_us MapItOut:NavigateAnywhereWithThese5Apps https://play.google.com/store/apps/topic?id=editorial_navigation_apps_us WinningSportsGamestoEnjoyAnySeason https://play.google.com/store/apps/topic?id=editorial_sports_games_us LinkingfromanAndroidApp IfyouwanttolinktoyourproductsfromanAndroidapp,createan IntentthatopensaURL.Asyou configurethisintent,pass"com.android.vending"intoIntent.setPackage() sothatusersseeyourapp'sdetailsintheGooglePlayStoreappinsteadofa chooser. Thefollowingexampledirectsuserstoviewingtheappcontainingthepackage namecom.example.androidinGooglePlay: Kotlin valintent=Intent(Intent.ACTION_VIEW).apply{ data=Uri.parse( "https://play.google.com/store/apps/details?id=com.example.android") setPackage("com.android.vending") } startActivity(intent) Java Intentintent=newIntent(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); LaunchingaGooglePlayInstantexperience Ifyouhavepublishedaninstantappusing GooglePlayInstant,youcan launchtheappasfollows: Kotlin valuriBuilder=Uri.parse("https://play.google.com/store/apps/details") .buildUpon() .appendQueryParameter("id","com.example.android") .appendQueryParameter("launch","true") //Optionalparameters,suchasreferrer,arepassedontothelaunched //instantapp.YoucanretrievetheseparametersusingActivity.intent.data. uriBuilder.appendQueryParameter("referrer","exampleCampaignId") valintent=Intent(Intent.ACTION_VIEW).apply{ data=uriBuilder.build() setPackage("com.android.vending") } startActivity(intent) Java Intentintent=newIntent(Intent.ACTION_VIEW); Uri.BuilderuriBuilder=Uri.parse("market://launch") .buildUpon() .appendQueryParameter("id","com.example.android"); //Optionalparameters,suchasreferrer,arepassedontothelaunched //instantapp.Youcanretrievetheseparametersusing //Activity.getIntent().getData(). uriBuilder.appendQueryParameter("referrer","exampleCampaignId"); intent.setData(uriBuilder.build()); intent.setPackage("com.android.vending"); startActivity(intent); Note:IfGooglePlayInstantisn'tenabledonthedevice,thestore listingisshown. SummaryofURLformats ThetablebelowprovidesasummaryoftheURIscurrentlysupportedbytheGoogle Play(bothonthewebandinanAndroidapplication),asdiscussedinthe previoussections. Forthisresult Usethislink Showthestorelistingforaspecificapp https://play.google.com/store/apps/details?id= Showthedeveloperpageforaspecificpublisher https://play.google.com/store/apps/dev?id= Showtheresultofasearchquery https://play.google.com/store/search?q= Showanappcollection https://play.google.com/store/apps/collection/ LaunchaGooglePlayInstantexperience market://launch?id= ContentandcodesamplesonthispagearesubjecttothelicensesdescribedintheContentLicense.JavaandOpenJDKaretrademarksorregisteredtrademarksofOracleand/oritsaffiliates. Lastupdated2022-03-30UTC. [{ "type":"thumb-down", "id":"missingTheInformationINeed", "label":"MissingtheinformationIneed" },{ "type":"thumb-down", "id":"tooComplicatedTooManySteps", "label":"Toocomplicated/toomanysteps" },{ "type":"thumb-down", "id":"outOfDate", "label":"Outofdate" },{ "type":"thumb-down", "id":"samplesCodeIssue", "label":"Samples/codeissue" },{ "type":"thumb-down", "id":"otherDown", "label":"Other" }] [{ "type":"thumb-up", "id":"easyToUnderstand", "label":"Easytounderstand" },{ "type":"thumb-up", "id":"solvedMyProblem", "label":"Solvedmyproblem" },{ "type":"thumb-up", "id":"otherUp", "label":"Other" }] Twitter Follow@GooglePlayBizfornewsandsupport Medium ReadarticlesandindustrythoughtsfromthePlayteam LinkedIn ConnectwithGooglePlaybusinesscommunity Messenger Message@GooglePlayDevfordevelopersupport MoreAndroid Android AndroidforEnterprise Security Source News Blog Podcasts Discover Gaming MachineLearning Privacy 5G AndroidDevices Largescreens WearOS AndroidTV Androidforcars AndroidThings ChromeOSdevices Releases Android11 Android10 Pie Oreo Nougat Marshmallow Lollipop KitKat DocumentationandDownloads AndroidStudioguide Developersguides APIreference DownloadStudio AndroidNDK Support Reportplatformbug Reportdocumentationbug GooglePlaysupport Joinresearchstudies Android Chrome Firebase GoogleCloudPlatform Allproducts Privacy License Brandguidelines Getnewsandtipsbyemail Subscribe Language English BahasaIndonesia Español–AméricaLatina Português–Brasil TiếngViệt 中文–简体 中文–繁體 日本語 한국어



請為這篇文章評分?