- Link from one app to another in Google Play description
- 6 Answers 6
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- how to properly open google play links on html page in android webview with setWebViewClient?
- Html google play store logo code example
- How make Google Play Store like view in HTML?
- How to get the applications icon from the Google play dynamically
- Open a play store app with a href
- Create App Store buttons in Bootstrap
Link from one app to another in Google Play description
I have two apps in the google play store. Is it possible to create an http link from one to another in the description of the first?
6 Answers 6
Google Play descriptions do not support links.
That not true. You can add links to other application in google play with tag.
For example, link to my app:
You can look at my description app how i do it:
ROS Sensors
We can provide links in play store description using two methods.
Note :
The below code will not make any link in play store app
How do you make the link for a different app, such as «Click here for DiffVersionOfApp» with a Google Play Store url? I don’t want to actually show the url if possible, just the text? Is that doable? I saw this: but am not sure how to get it work with the text I want: thetool.io/2017/how-to-use-html-emoji-googleplay
Google Play descriptions do not support links. You can tell the reader the name of the app, nothing more.
Plus, in any case, your app will come under the «Related Apps» and «More from developer» headings in most cases.
If you put full url address in app description (with https protocol, not only www) it will be visible as a link in browser.
Of course google play links to apps aren’t nice so you can use some url converters.
Linking to a store listing
Use the format below to deep-link directly to an app’s Store listing page, where users can see the app description, screenshots, reviews and more, and then install it.
To create the link, you need to know the app’s fully qualified package name, which is declared in the app’s manifest file. The package name is also visible in the Google Play Console.
http://play.google.com/store/apps/details?id=
http://play.google.com/store/apps/details?id=com.google.android.apps.maps
A URL of the following form will be converted to a clickable link and will redirect to the address specified in YOUR_URL.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.27.43548
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
how to properly open google play links on html page in android webview with setWebViewClient?
Basically My question is
HOW CAN I POSSIBLY PUT THESE TWO CODES TOGETHER TO FUNCTION PROPERLY.
this is killing my trying to figure it out so i’ll explain in deep detail.
Any help would be much appreciated.
i have a webpage at http://s-ka-paidbeats.com/app_tree/ourotherapps
it lists a bunch of apps i have made in google play.
in the webpage html i have them listed with standard links like — https://play.google.com/store/apps/details?id=com.yesorno.app.yesorno
i’ve created a tab in ALL the android applaications that i’ve made called «My Other Apps»
this tab is a webview window that shows the same html page i was talking about above
— http://s-ka-paidbeats.com/app_tree/ourotherapps
the problem is when a user visits the webview window in any of my android applications and clicks on any of the apps i have listed on the html webpage (https://play.google.com/store/apps/details?id=) it takes them to google play in the webview window and asks them to login to google play in the webview window (even if they are already logged in to google play on their device).
this is extremely ugly and annoying for users to face.
i want to make it so when a user visits the «my other apps» tab in any of my applications, and clicks on one of the apps in the webview window it opens the actual google play application (if google play is installed) or opens in the default browser installed on the device (if google play is not installed) i have tried to change all the (https://play.google.com/store/apps/details?id=) links to (market://details?id=) links on the html page and then visited the webview window again in my app however this time when i click on any of the apps listed i just get a page error «page does not exist» window
i have looked into setWebViewClient and i am sure that there is someway to do this using something like the code posted below
webView.setWebViewClient(new WebViewClient() < @Override public boolean shouldOverrideUrlLoading(WebView view, String url) < if (Uri.parse(url).getScheme().equals("market")) < try < Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url)); Activity host = (Activity) view.getContext(); host.startActivity(intent); return true; >catch (ActivityNotFoundException e) < // Google Play app is not installed, you may want to open the app store link Uri uri = Uri.parse(url); view.loadUrl("http://play.google.com/store/apps/" + uri.getHost() + "?" + uri.getQuery()); return false; >> return false; > >);
I tried adding the code above to my current code but now my loading dialog box wont close when the webview is loading. it just stays loading forever. so i took the code snippet above out of my code again because i dont think i am placing it in the right place or that i am integrating the two codes together properly.
i noticed my current code already has a setWebViewClient defined so im not sure if im allowed to have two in the same code or if i am suppose to try and combine it with the current one. I HAVE NO CLUE where to begin and i have been reading for hours.
Here is my current code
package com.yesorno.app.yesorno; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.ActivityNotFoundException; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Html; import android.text.method.LinkMovementMethod; import android.view.Gravity; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.GridView; import android.widget.ImageView; import android.widget.TextView; import android.support.v7.widget.Toolbar; import android.widget.Toast; import com.yesorno.app.yesorno.NetorkConnection; @SuppressLint("SetJavaScriptEnabled") public class OtherApps extends AppCompatActivity < private WebView webView; NetorkConnection ntwrk_con = new NetorkConnection(this); ProgressDialog dialog; public void onCreate(Bundle savedInstanceState) < super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TextView toolsresources5 = (TextView)findViewById(R.id.feedbacktextview); toolsresources5.setVisibility(View.INVISIBLE); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); webView = (WebView) findViewById(R.id.activity_main_webview); dialog = new ProgressDialog(OtherApps.this); if (ntwrk_con.isConnectingToInternet()) < webView(); >else < dialog_box_for_internet(); >> public void dialog_box_for_internet() < if (ntwrk_con.isConnectingToInternet()) < webView(); >else < // dismis_dialog_box_for_internet = true; AlertDialog.Builder builder = new AlertDialog.Builder( OtherApps.this); LayoutInflater inflater = getLayoutInflater(); View view = inflater.inflate(R.layout.dialog_custom_titile, null); TextView title = (TextView) view.findViewById(R.id.myTitle); title.setText("Unable To Connect"); builder.setCustomTitle(view); builder.setMessage("No Internet Connection") .setCancelable(false) .setPositiveButton("Retry", new DialogInterface.OnClickListener() < public void onClick(DialogInterface dialog, int id) < if (ntwrk_con.isConnectingToInternet()) < webView(); >else < new Thread_for_internet().execute(); >// dialog.cancel(); > >) .setNegativeButton("Okay", new DialogInterface.OnClickListener() < public void onClick(DialogInterface dialog, int id) < finish(); // Gridview.super.onBackPressed(); >>); AlertDialog alert = builder.create(); alert.show(); > > class Thread_for_internet extends AsyncTask < @Override protected void onPreExecute() < super.onPreExecute(); dialog.setMessage("Loading..Please wait."); dialog.setCanceledOnTouchOutside(false); dialog.show(); >@Override protected Boolean doInBackground(String. args) < try < Thread.sleep(2000); >catch (Exception e) < e.printStackTrace(); >return null; > protected void onPostExecute(Boolean result) < dialog.dismiss(); dialog_box_for_internet(); >> public void webView() < webView.setWebViewClient(new WebViewClient() < @Override public void onPageFinished(WebView view, String url) < if (dialog.isShowing()) < dialog.dismiss(); >> >); dialog.setMessage("Loading All Our Apps. \nPlease wait. "); dialog.setCanceledOnTouchOutside(false); dialog.show(); webView.loadUrl("http://s-ka-paidbeats.com/app_tree/ourotherapps.html"); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); > @Override public boolean onKeyDown(int keyCode, KeyEvent event) < if (event.getAction() == KeyEvent.ACTION_DOWN) < switch (keyCode) < case KeyEvent.KEYCODE_BACK: if (webView.canGoBack()) < webView.goBack(); >else < finish(); >return true; > > return super.onKeyDown(keyCode, event); > @Override public boolean onCreateOptionsMenu(Menu menu) < // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; >@Override public boolean onOptionsItemSelected(MenuItem item) < boolean bRet=false;//set true is menu selection handled switch (item.getItemId()) < case R.id.action_settings_3: Toast.makeText(this, Html.fromHtml("Develeped By S-Ka-Paid
© 2016 S-Ka-Paid"), Toast.LENGTH_LONG).show(); bRet=true; break; case R.id.action_settings_4: Intent intent2 = new Intent(Intent.ACTION_VIEW); //Try Google play intent2.setData(Uri.parse("market://details?id=com.yesorno.app.yesorno")); startActivity(intent2); bRet=true; break; default: bRet=super.onOptionsItemSelected(item); > return bRet; > >
Basically My question is
HOW CAN I POSSIBLY PUT THESE TWO CODES TOGETHER TO FUNCTION PROPERLY.
this is killing my trying to figure it out
Any help would be much appreciated.
Html google play store logo code example
Then in my php code i used simpledomparser to load the url, locate the icon and spit out it’s url, like so: resulting in something like Just one thing to bear in mind about this approach: Google could change the way everything is presented and laid out at any time so prepare to update your app when this happens 🙂 Solution 2: I modified the code by roarster to get working with new web page of the play store and i simplified it: Now you load for example: and you get the result 😉 Solution 3: The problem Google keep changing the structure of the page, so far I couldn’t find any resource in how to handle this in an official way similar to Apple Store. PS: in my code, once I manage to get the icon URL I cache it in my database so I don’t have to look it up again in google play store Solution 1: You can open the Play Store with following anchor:- Solution 2:
How make Google Play Store like view in HTML?
.box .box img .box .content .box p .box .title .box .price .box .author .box .desc
Demo here https://jsfiddle.net/tsebautr/
How to get the applications icon from the Google play dynamically
I had to tackle this problem myself recently in updating my portfolio website, so i even have some code for you 🙂 What i did was in php but i’m not sure what you want to use. First i checked the source of the page with my app on it using view->developer->developer tools (on chrome). Then using that i could traverse the DOM looking for something i could use to identify the app icon. I found this:
what this showed is that the app icon was held inside a div with class «doc-banner-icon» — I couldn’t find this class anywhere else, so i take it for granted that it is the only div with that class. Then in my php code i used simpledomparser to load the url, locate the icon and spit out it’s url, like so:
find('.doc-banner-icon'); //the class we found before $img = $bannerImage[0]->find('img'); //find the img tag inside the div $imgUrl = $img[0]->src; //get its src url $arr = array(); //in my own example I filled this array with other things like the title an screenshots $arr['imgUrl'] = $imgUrl; echo json_encode($arr); //output it in an easy to read format ?>
Just one thing to bear in mind about this approach: Google could change the way everything is presented and laid out at any time so prepare to update your app when this happens 🙂
I modified the code by roarster to get working with new web page of the play store and i simplified it:
find('div.cover-container'); //the class we found before $img = $bannerImage[0]->find('img'); //find the img tag inside the div $imgUrl = $img[0]->src; //get its src url $arr = array(); //in my own example I filled this array with other things like the title an screenshots $arr['imgUrl'] = $imgUrl; echo json_encode($arr); //output it in an easy to read format ?>
Now you load for example: yourwebpage.com/script.php?playlink=https://play.google.com/store/apps/details?id=com.igg.android.im
The problem Google keep changing the structure of the page, so far I couldn’t find any resource in how to handle this in an official way similar to Apple Store.
Anyway, below is the php code that I use as of today (June 2019)
PS: in my code, once I manage to get the icon URL I cache it in my database so I don’t have to look it up again in google play store
try< $lookupData = @file_get_contents('https://play.google.com/store/apps/details?id=com.google.android.gm&hl=en'); // Not valid any more $pregString = '//'; //June 2019 $pregString = '//'; preg_match($pregString, $lookupData, $output); > catch (\Throwable $e) < $error = $e->getMessage(); if (strpos($error, '404 Not Found') === false) < //unknown error >else < //Package not found, use default icon or something >> if(isset($output[1]))< //Store $output[1]; >else < //icon not found, use default icon or something >
Open a play store app with a href
You can open the Play Store with following anchor:-
Only works in mobile app..
Google play .png logo Code Example, “google play .png logo” Code Answer google play logo png whatever by abdullah on Jan 10 2021
Create App Store buttons in Bootstrap
You should check the marketing guidelines for the respective stores. They will provide the images to use and you should not alter/create them yourself.
Not with just bootstrap. You’ll need to write custom css for this in order to have the logos appear. http://fontawesome.io/icons/ has some of the icons.
Android — a href tag opens google play store link in, However this code does open play store but in a browser not the default google play store app. How do i get this feature working ? android html cordova Share Follow asked Mar 30, 2014 at 10:52 dev_marshell08 1,007