Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 21    Views: 68

mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
04/01/12 04:46 AM (13 years ago)

How to link to other android apps?

Hi guys I want have created a more screen and I want to link out to my other android apps for some cross promotion. What would be the best way to do that? I tried creating a HTML screen, I linked a menu item to that screen then in my HTML screen I had links to my other android apps, I used market:// to link out but it doesn't work.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/01/12 05:30 AM (13 years ago)
So the url links to your other apps don't work? You could just do a menu list and each row opens up to the URL of each app
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 11:34 AM (13 years ago)
So for example I use the custom url option to link to my html screen I have created, this screen has a list of apps I already have in the marketplace with titles and description then the user taps the app they are interested in and they are taken to this url for example market://details?id=com.appbuilder.u95841p186604#?t=W251bGwsMSwxLDIxMiwiY29tLmFwcGJ1aWxkZXIudTk1ODQx This link is supposed to open up the zandroid markeplace but instead I get a web page unavailable screen
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 02:02 PM (13 years ago)
For the market: function, don't you also need the intent? Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 02:25 PM (13 years ago)
Hey Fred, What do you mean by intent? Ans how do I add that? I am very new to android code.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 02:36 PM (13 years ago)
You must add an Intent for the Android Market to either launch the app or link to the Market page for the app. You can launch the Google Play application or web site in the following ways: Initiate anIntent from your application that launches the Google Play application on the user device. Provide a link on a web page that opens the Google Play web site (but will also open the Goog Play application if clicked from a device). Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 02:43 PM (13 years ago)
Hey Fred, What do you mean by intent? Ans how do I add that? I am very new to android code.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 02:51 PM (13 years ago)
Open up the manifest in your app and look around. Then http://developer.android.com/reference/android/content/Intent.html Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 02:55 PM (13 years ago)
can it be done using a normal HTML page?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 03:07 PM (13 years ago)
The link? Yes The Intent? Goes in the manifest. Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 03:11 PM (13 years ago)
Yes I put the market:// link in the HTML page. I have no idea what code I should put in the manifest. Sorry I have no clue about android code. Fred would you be able to jump on Skype an help me to get this working, it would be a great help to me and I would be happy to pay you for your time.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 03:49 PM (13 years ago)
Have you looked around the manifest? Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 03:53 PM (13 years ago)
No I haven't, I am out of the office at the moment but as soon as I get back I will. When I look at the manifest will it be obvious why I need to do?
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 03:56 PM (13 years ago)
I had a look at the manifest, I think I understand now. Thanks for you help Fred. do I create an intent for every link that I have on my HTML page?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 04:03 PM (13 years ago)
No, the Intent is Launch Market After the Intent is in the Manifest the app knows what you do with the Market:// url. Fred Edit: you can have multiple urls
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 04:05 PM (13 years ago)
No I haven't, I am out of the office at the moment but as soon as I get back I will. When I look at the manifest will it be obvious why I need to do?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 04:09 PM (13 years ago)
You need to quit using the return button on the device, been there done that, hard habit to break. Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 04:09 PM (13 years ago)
Ok I understand now. Thanks Fred you have been a great help.
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 04:26 PM (13 years ago)
"You need to quit using the return button on the device, been there done that, hard habit to break. Fred" what do you mean?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/01/12 04:56 PM (13 years ago)
That's why you double post. Fred
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/01/12 05:13 PM (13 years ago)
Yeh it took me a while to figure out why it was doing that.
 
mickeyp
I hate code!
Profile
Posts: 17
Reg: Mar 07, 2012
location unknow...
170
like
04/02/12 04:35 AM (13 years ago)
Hey Fred does this code look right to you I found it while googleing on how to add the intent to the manifest to open the android marketplace String appPackageName=getResources().getString(R.string.app_package_name); Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+appPackageName)); marketIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); startActivity(marketIntent); would that work? Also where the hell in the manifest do i put it? It's doing me head in.
 

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.