Discussion Forums  >  Uncategorized

Replies: 5    Views: 486

eJucomm
Aspiring developer
Profile
Posts: 73
Reg: Nov 22, 2010
McAllen
730
09/28/11 11:32 AM (14 years ago)

David help! Website opens up on simulator and device browser but not through app because of pop-up

I've tried everything! Website and secondary popup works on the simulator, website, and browser on my galaxy tab and phone but not through the app. Can't understand what is wrong? Thanks
 
eJucomm
Aspiring developer
Profile
Posts: 73
Reg: Nov 22, 2010
McAllen
730
like
09/28/11 12:19 PM (14 years ago)
This initial website in custom url is a log-in screen and the second that pop up is a grading system used for schools. Not sure if that makes a difference?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
09/28/11 12:40 PM (14 years ago)
There can be some issues with custom urls. Try creating a tiny url using tinyurl.com and placing that in your custom url spot. I had to do that with a couple of urls I was using and now they work fine.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
09/28/11 04:05 PM (14 years ago)
The app browser doesn't handle pop-ups. Not the fault of BT, it's the basic dev browser. A sloppy workaround is to open your site in the phone's browser. To do this, in Act_ActivityBase.java you'll see some code looking a bit like below. Modify it for your website: //url contains mywebsite if(jsonString.contains('mywebsite') || useUrl.contains('mywebsite.com')){ useMyIntent = 0; } As always, replace single quotes with double quotes. Now, when the custom url is clicked in the app, it should open in the native phone browser and you'll be able to deal with the pop-up.
 
eJucomm
Aspiring developer
Profile
Posts: 73
Reg: Nov 22, 2010
McAllen
730
like
09/28/11 08:38 PM (14 years ago)
Is this what you are talking about? I am still stuck. Should I just copy/paste what you placed at the top and then modify it with my site or should I modify what is below. //showCustomUrl public void showCustomURL(){ //intent depends on jsonStringOptions content.. int useMyIntent = 0; int bolDone = 0; String useUrl = ; String useScreenGuid = ;
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
09/29/11 03:29 AM (14 years ago)
No. Just a few lines below the code you posted you'll see code looking similar to the code in my above post, the first code block starts ''//url contains youtube''. Just insert another code block in for your website, like I posted above.
 

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.