Skip to first unread message
Assigned to jeffrey....@gmail.com by steve....@gmail.com

Jon Key

unread,
Feb 10, 2015, 12:28:28 PM2/10/15
to mitappinv...@googlegroups.com
Hey guys (taifun) lol

My app has been working perfectly for a while now but recently after using the activity starter to open the phones web browser to a specific web page, when I press the phones back button the app is closing. This was not the case before, it used to close the Web page and go back to my app's screen. Also after the app has closed, when I reopen the app it goes straight to the Web page. The only way around it at the moment is to force close the app and reopen it.

Please help!

Jon Key

unread,
Feb 10, 2015, 2:55:24 PM2/10/15
to mitappinv...@googlegroups.com
The action I'm am performing goes like this:

When button click,
ActivityStarter.datauri "web address"
ActivityStarter.Action "android.Intent.action.VIEW"
ActivityStarter StartActivity

After viewing the Web page I use the phones back button but app minimises instead of going back into the app. Also when the app is selected on the phone it opens the Web browser to the last page the Web browser was on.

SteveJG

unread,
Feb 10, 2015, 3:30:46 PM2/10/15
to mitappinv...@googlegroups.com
This might work for you.   Place this control on your Screen1:



Do not put any code in the event handler.   This should prevent pressing the Android BackButton from terminating your app and using it should return you to Screen1.   (ignore the red triangle..I just happened to have another instance of BackPressed on my Project).


Does you app behave now?

Regards,
Steve

Jon Key

unread,
Feb 11, 2015, 7:50:31 AM2/11/15
to mitappinv...@googlegroups.com
I already have this block with a notifier to ask if user wants to leave the app. Without the user selecting "yes" the app should not close. This only seems to have been a problem since android 5.0, could this be an android problem?

Jon Key

unread,
Feb 11, 2015, 8:15:02 AM2/11/15
to mitappinv...@googlegroups.com
Ok so I've just installed my app on an old device running android 4.3 when i press the back button it returns to my app, this seems to be a problem between android 5.0 and the activity starter: action.intent.android.VIEW or something alone those lines.

I have no idea how we get around this! Please help!

SteveJG

unread,
Feb 11, 2015, 8:30:23 AM2/11/15
to mitappinv...@googlegroups.com
MIT is addressing issues that  appeared with Android 5.0 on some devices.   A week ago, they said they hoped for a fix in two weeks or so...what happens depends on how severely Android 5.0 broke the AI2 model.

Thanks for you report on the issue and the results of testing several devices.  The technical staff appreciates this kind of heads-up.   They do not know about many issues when Google issues a new OS unless users let them know.   Thanks.... the team will see this thread.

Regards,
Steve

Jon Key

unread,
Feb 11, 2015, 8:34:55 AM2/11/15
to mitappinv...@googlegroups.com
Thanks for the reply Steve, I have found something else interesting, if I open the Web page with chrome instead of the usual android Internet browser when back is pressed it returns to the app. So the problem is most certainly with the Android browser on 5.0

Thanks again

Jon

SteveJG

unread,
Feb 11, 2015, 8:44:59 AM2/11/15
to mitappinv...@googlegroups.com
Oh, so you get this response in live development with WIFI?  ..and it happens when you do not use Chrome?   What browser are you using when the AS back fails?   What happens when you compile and load the apk on the Android phone?    


-- Steve

Jon Key

unread,
Feb 11, 2015, 8:57:18 AM2/11/15
to mitappinv...@googlegroups.com
Sorry, this is a finished app and installed on the phone, not using wifi as companion, I may have posted in wrong thread section.

The app works fine when chrome is the selected browser for the activity starter to open, it fails when using the normal Internet browser.

You can test it for for yourself, my app is on Google play called "unicrow" by "key brothers"

The app is for users of a game server.

In the app there are links to our forum, server etc... This is where I used the activity starter, try opening the forum link with normal browser and once the page loads press back on device. Then try with chrome. If you are running 5.0 the normal browser will fail and close the app. I am using a Samsung galaxy s5 if that makes a difference, im not sure if it will act differently on different devices.

SteveJG

unread,
Feb 11, 2015, 9:02:00 AM2/11/15
to mitappinv...@googlegroups.com
"normal" Internet browser  ...for the technical guys, what is it?     The browser may be the issue causing havoc?    Your interim fix seems to be is to request your users to use Chrome as the default browser on their device?     Is that it?

SteveJG

unread,
Feb 11, 2015, 9:30:37 AM2/11/15
to mitappinv...@googlegroups.com
Please keep the conversation in the forum Jon...so that the tech guys can follow all of it>

by email, you said 

The one just called "internet"

and    

By normal Internet browser I mean the browser that comes built-in with android or default browser. Yes I have requested my users to use chrome but obviously it would be nice for it to work on any browser.


and posted this image







 OK ... thanks.       On my Kyocera phone I have a flaky generic browser too.   I disabled it and always use Chrome as the default.  I had all kinds of issues on my 4.0 with the generic browser--none with Chrome...not part of the issue, thought you would like to know you are not only Android user that has problems with the 'stock' browsers set as default by either the phone company or the manufacturer.   

Knowing the generic browser on Android 5.0   on a Samsung S5 (?..did I get that correct?)   causes an issue with ActivityStarter is important.  My guess this is a problem with the browser and AI is doing what it is supposed to do.   The guys and gals at MIT will probably look.

--Steve



Jon Key

unread,
Feb 11, 2015, 9:49:54 AM2/11/15
to mitappinv...@googlegroups.com
Yes a galaxy s5 on 5.0, I think that AI is doing what it is supposed to and the fault lies with 5.0 and "internet". Hopefully there will be a way to fix the issue, for now chrome is the way forward.
Reply all
Reply to author
Forward
0 new messages