Re: [PhoneGap] inAppBrowser with _system target on Android

1,234 views
Skip to first unread message

Kerri Shotts

unread,
Jun 5, 2013, 3:53:54 PM6/5/13
to phon...@googlegroups.com
Where's _system being used? Is it from code in the regular web view (that is, not in the IAB), or is it being called from code within the IAB's web view?


___________________________________
Kerri Shotts
photoKandy Studios, LLC


Social Media:
          Twitter: @photokandy, http://twitter.com/photokandy
          Tumblr: http://photokandy.tumblr.com/
          Github: https://github.com/kerrishotts
                        https://github.com/organizations/photokandyStudios
          CoderWall: https://coderwall.com/kerrishotts

Apps on the Apple Store:

Books:

On Wednesday, June 5, 2013 at 5:44 AM, Morphy Clément wrote:

Hi,

is the '_system' target supposed to work with inAppBrowser on Android ?

I am trying to use this target, but an error appears in the logcat :

06-05 12:27:40.956: D/InAppBrowser(16134): target = _system
06-05 12:27:40.956: D/InAppBrowser(16134): in system
06-05 12:27:40.976: D/InAppBrowser(16134): InAppBrowser: Error loading url file:///android_asset/www/popup.html:android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///android_asset/www/popup.html }

'_blank' is working correctly.

I am testing this on Android 4.1.1 with Cordova 2.7.0

Any idea ?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Simon MacDonald

unread,
Jun 5, 2013, 7:21:08 PM6/5/13
to phonegap
What are you running this on? It seems odd that there isn't a default
program setup to view HTML.

Simon Mac Donald
http://hi.im/simonmacdonald

Kerri Shotts

unread,
Jun 6, 2013, 1:08:28 PM6/6/13
to phon...@googlegroups.com
I'll echo Simon's question: what in the world could you be running this on that doesn't have some sort of way to view HTML? The default browser should at least be able to handle it…!?


___________________________________
Kerri Shotts
photoKandy Studios, LLC


Social Media:
          Twitter: @photokandy, http://twitter.com/photokandy
          Tumblr: http://photokandy.tumblr.com/
          Github: https://github.com/kerrishotts
                        https://github.com/organizations/photokandyStudios
          CoderWall: https://coderwall.com/kerrishotts

Apps on the Apple Store:

Books:

On Wednesday, June 5, 2013 at 4:24 PM, Morphy Clément wrote:

I am trying to use '_system' from the regular webview, the one that is created by Cordova, not from an inAppBrowser view.


Le mercredi 5 juin 2013 21:53:54 UTC+2, Kerri Shotts a écrit :
Where's _system being used? Is it from code in the regular web view (that is, not in the IAB), or is it being called from code within the IAB's web view?

--

Morphy Clément

unread,
Jun 6, 2013, 6:02:52 PM6/6/13
to phon...@googlegroups.com
I am running the app on an Acer Iconia Tab A700, with Android 4.1.1.
There are 2 browsers installed : native Android browser and Google Chrome.

Kerri Shotts

unread,
Jun 7, 2013, 3:07:38 PM6/7/13
to phon...@googlegroups.com

Huh. Something's off then: I would expect you to be able to load the page using the local browser.


Is there any chance you've got some screwed up settings that are preventing the browser from handling the intent? Or has Acer done something nutty… (not unheard of)?


___________________________________
Kerri Shotts
photoKandy Studios, LLC


Social Media:
          Twitter: @photokandy, http://twitter.com/photokandy
          Tumblr: http://photokandy.tumblr.com/
          Github: https://github.com/kerrishotts
                        https://github.com/organizations/photokandyStudios
          CoderWall: https://coderwall.com/kerrishotts

Apps on the Apple Store:

Books:

Thabo Letsoalo

unread,
Jun 7, 2013, 4:50:09 PM6/7/13
to phon...@googlegroups.com
Oh, another interesting fact: It all works fine if I use a remote address (http) for both html and pdf. It fails with file:/// protocol

Simon MacDonald

unread,
Jun 9, 2013, 4:04:17 PM6/9/13
to phonegap
I was too busy last week to read the original problem properly. The
"_system" version of the IAB will start whatever your default web
browser is for your platform and it will read http protocol files just
fine. However, it is unable to read file://android_asset files as it
cannot get access to those files as they are contained within your
.apk and not accessible to other programs.

You'll have to use "_self" or "_blank" to open files in the Android
assets folder.

Simon Mac Donald
http://hi.im/simonmacdonald


Thabo Letsoalo

unread,
Jun 10, 2013, 1:03:17 AM6/10/13
to phon...@googlegroups.com
Thank you for your reply Simon. The pdf  files are on the sdcard , I have tried different folders. We also obviously can't use blank for pdfs on android. I think I'm just going to download the file and then tell the user where it is for now.
>>>> > email to phonegap+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com
> ---
> You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/pgBYjpSmHU4/unsubscribe?hl=en-US.
> To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages