Discussion Forums  >  Uncategorized

Replies: 10    Views: 530

Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
12/21/10 10:35 AM (15 years ago)

Link to a app in android market

Any one have a idea how to link to a app in the market and have it open in Andorid Market form the Buzz touch app? So the URL would like to a market app..
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
12/21/10 10:50 AM (15 years ago)
I created both a custom html and I get a: Web page not available the web at: market://details?id........
 
Gasguzziler
Aspiring developer
Profile
Posts: 53
Reg: Nov 24, 2010
Seattle
530
like
12/21/10 03:05 PM (15 years ago)
Well I know when I create a qr code to scan for the market I would use a url like http://market.android.com/search?q=pname:com.v1_4.B0DE4E0B36026624.com where the com.v1_4.B0DE4E0B36026624.com is the package name of your app.
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
12/21/10 03:11 PM (15 years ago)
It does not seem like it works.. It think it is in a browser or something. I was trying to list all my apps in the market Under Custom URL. That way if a user wanted one of them all they would have to do is click the picture and it would take them to the android market (My apps).
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/22/10 04:59 AM (15 years ago)
The Android Market does not provide URL's to individual apps yet - crazy I know! The best approach would be to go look at GetJar. That site will allow you to create a URL for an app that you could then list like you were talking about.
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
12/22/10 07:22 AM (15 years ago)
I think what we need to do is like you do for youtube videos. Parse out the link market:// then let the phone decide. Is there a way for you to allow me to add a custom url that does not restrict me to Http:// in front of it? (I am not sure if Custom URL goes through the same logic as the youtube stuff.. I was thinking: if(jsonString.contains(market://) or something like this I don't see away to get it to work inside custom HTML because it thinks it is a browser. (This would fall into that entire other area of handling url etc in the browser) Here is a 3 liner page that I was reading: http://stackoverflow.com/questions/1798435/android-how-can-i-link-my-free-app-to-the-pro-version
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
12/22/10 07:56 AM (15 years ago)
David: To test this I did the following: I changed to 0 to force to use custom intent: public void showCustomURL(){ //intent depends on jsonStringOptions content.. int useMyIntent = 0; int bolDone = 0; Then: //let phone decide intent if(bolDone == 0 && useMyIntent == 0){ //let device determine which intent to launch... Intent theIntent = new Intent( Intent.ACTION_VIEW, Uri.parse(market://details?id=com.v1_4.B70B87626DEE6116.com) ); startActivity(theIntent); } Worked perfect!!! So if you can add or allow market:// should work
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/22/10 12:39 PM (15 years ago)
Cool. Zoid-main rocks once again. We have modified the CustomURL screen to allow URL's that begin with market:// - combine this with Zoid's code snippet in your project.
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
12/22/10 01:17 PM (15 years ago)
Go to Act_activityBase.java Add this code under where youtube is specified. //android market code if(jsonString.contains(market) || useUrl.contains(market://)){ useMyIntent = 0; }
 
Swiss-Android
Android Fan
Profile
Posts: 10
Reg: Apr 11, 2011
Switzerland
100
like
09/18/11 11:04 AM (14 years ago)
Hello, how can do this on 1.5 Android? Thanks Regards Roger
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
09/18/11 06:13 PM (14 years ago)
I was looking at the code.. I am going to start a new discussion on this..
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.