Discussion Forums  >  Uncategorized

Replies: 12    Views: 268

Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
04/25/11 12:54 PM (14 years ago)

Custom URL feature not working in v1.4

I've added a custom url page on my app and it does not take me anywhere on the android emulator. It gives me a blank grey screen. Any suggestions? Thanks Anthony
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/25/11 11:46 PM (14 years ago)
Hi Doc... this is troubling. Any other clues? Blank gray screens normally mean the device 'tried' to load the page but could not. Post the URL and we'll get a look. Still NOT happy that I havn't made that other calculator - wink.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/26/11 01:44 AM (14 years ago)
http://soundcloud.com/groovey-tunes http://soundcloud.com/groovey-tunes-hot-tracks The URL's work fine outside the android environment. Tested the custom URL feature with a generic webpage like itunes and it populated perfectly on the emulator. For some reason these links bring me a grey page all the time.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/26/11 10:20 AM (14 years ago)
OK, I did some extensive testing on these URL's. They are serving-up some VERY complicated HTML with all sorts of 'magic' happening to play the tunes. And, they don't work in any device I can find. I've tested on several different devices with three different Android Operating Systems. Could it be that soundcloud provides a different URL for the same content in a mobile format? If you use the Android native browser, you are redirected to http://m.soundcloud.com/groovey-tunes and it works. This means it's working in Android but not in the built-in browser in your app. Not sure why. I've updated the download server with a work-around, feel free to re-fetch the project. Or, you can add one simple line to your existing project: /src/Activity_ActBase.java, you see on about line 165 where the code is checking the URL for a YouTube video. We also want to check it for soundcloud. If the URL contains 'soundcloud.com' then don't use the built in browser and instead use the native browser: //url contains soundcloud if(jsonString.contains(''soundcloud.com'')){ useMyIntent = 0; } Copy/paste that right under the YouTube block...double quotes around 'soundcloud.com' (forum removes double quotes). This will force the phone to use the native browser for soundcloud files.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/27/11 07:00 AM (14 years ago)
Re-fetched and installed. Tested on emulator and getting same grey screen. So confused.Still not working.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/27/11 09:08 AM (14 years ago)
Open up the Activity_ActBase.java in your latest download...does it show the //if url contains soundcloud.com addition? If it does, do these URL's open in the Native Browser or are they still opening in the built-in browser in your app. If you're seeing the gray screen it sounds like they are still opening in the native browser. We need to get them to open in the Native Browser. SEe if that code addition is in that file. If it is...something's not adding up
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/27/11 09:31 AM (14 years ago)
// url contains soundcloud is there.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/27/11 09:33 AM (14 years ago)
Looks like native browser is trying to open. I get the status bar that is why i am assumming its native. Then it goes grey after download completes.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/27/11 09:37 AM (14 years ago)
OK, good, this is what we want. So, if the native browser isn't opening it...you may have a funky simulator setup. I have a few sims here that DO open it in the native browser and a few that don't. Three testing devices here ALL open the file on the actual device. Can you install on a device. What type of device?
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/27/11 09:53 AM (14 years ago)
let me try to download it from the marketplace and see what happens. maybe my simulator. will advise shortly
 
Annonymous
Profile
04/27/11 11:05 AM (14 years ago)
Downloaded it on a samsung galaxy epic from the android marketplace and the hot tracks has a white screen and mixes has a grey screen. Both screens do not populate website
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
04/27/11 11:07 AM (14 years ago)
Downloaded app from the android marketplace to see if it worked in a live environment and it does not. Same grey screens populate on both menus. The device was a samsung galaxy epic.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/27/11 11:41 AM (14 years ago)
Can this Galaxy load the same URL when you type the address in the address bar of it's Native Browser? You app is launching that URL to that URL. If it doesn't work, I'm not sure how else to advise? There are countless things soundcloud 'could' be doing to cause this..it's their HTML and their client side Javascript detection or whatever. See if it loads in the native browser.
 

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.