Are you putting the browser into fullscreen mode from your JS code? That seems to be missing in the snippet you posted.
https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API On Tue, May 12, 2020, 20:24 Bob Achgill <bobachg...@hotmail.com> wrote: > Would you like a copy of the html that I run when I get the get the back > button anomaly? > > Or I can make a video of the debug and send to you? > > Basically the anomaly happens when JS in the html stored in my app assets > is pro-grammatically playing a video and the phone back button is pressed > while the video is playing. > > Thanks! > Bob Achgill > > ------------------------------ > *From:* Bob Achgill <bobachg...@hotmail.com> > *Sent:* Monday, May 11, 2020 6:08 PM > *To:* Sebastian Kaspari <skasp...@mozilla.com> > *Cc:* Agi Sferro <asfe...@mozilla.com>; mobile-firefox-dev@mozilla.org < > mobile-firefox-dev@mozilla.org>; android-components-team < > android-components-t...@mozilla.com>; Bob Achgill <bobachg...@hotmail.com> > *Subject:* Re: GeckoView to help kids continue to learn at home in > lockdown in developing countries > > I did some testing on the unmodified Reference Browser code running my > local html and was able to recreate what appears to be a back button > anomaly. > > When my html starts a video using a href tag ... no problem... the back > button will kill the video and revert to the last seen place in the html. > > But when my html/JS starts a video using ... > vid_new = > document.getElementById("video_player"); > vid_new.src = "video/" + current_video_name + > ".mp4" > vid_new.style.display = "block" > vid_new.style.visibility = "visible"; > vid_new.load(); > ... pressing the back button reverts the screen back to the phone > desktop... but I still here the video playing. When I press the show all > running apps button on the phone I see the Reference Browser in the list of > running apps ... but when I try to select it I get a message that it can't > open it... and it goes away from the list of open apps. > > So essentially that is the same functional error I am seeing. It seems > like Reference Browser is not aware that the html js is running a video and > needs to add it to the back stack? > > Or is that the expected result? > > Thanks, > Bob Achgill > > > > ------------------------------ > *From:* Sebastian Kaspari <skasp...@mozilla.com> > *Sent:* Monday, May 11, 2020 6:45 AM > *To:* Bob Achgill <bobachg...@hotmail.com> > *Cc:* Agi Sferro <asfe...@mozilla.com>; mobile-firefox-dev@mozilla.org < > mobile-firefox-dev@mozilla.org>; android-components-team < > android-components-t...@mozilla.com> > *Subject:* Re: GeckoView to help kids continue to learn at home in > lockdown in developing countries > > Your code looks okay and the expected behavior is that we only leave > fullscreen. Once you press "back" again you'll leave the activity. > > This handled here: > > https://github.com/mozilla-mobile/reference-browser/blob/master/app/src/main/java/org/mozilla/reference/browser/BrowserActivity.kt#L79-L89 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser%2Fblob%2Fmaster%2Fapp%2Fsrc%2Fmain%2Fjava%2Forg%2Fmozilla%2Freference%2Fbrowser%2FBrowserActivity.kt%23L79-L89&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203198542&sdata=H7k4yX7De2Si58tOttywrXdJcu7kfDzrqHCWI9O5xsM%3D&reserved=0> > > When in full screen the BrowserFragment should handle the back press in > this case and we return early and never call super.onBackPressed() to leave > the activity. Testing with Reference Browser this seems to be the case (at > least on YouTube). Not sure what is going wrong in your case, but maybe > that helps you debug. If you can reproduce this with an unmodified > Reference Browser and a specific fullscreen site then please let us know > and we can try to debug it on our side. > > Best, > Sebastian > > > > On Sun, May 10, 2020 at 7:43 AM Bob Achgill <bobachg...@hotmail.com> > wrote: > > Thanks Sebastian! > > Sweet! Your examples rock! They were easy to follow... and I'm sure > there are many who will want to follow the same path as you have laid out > for me. Especially now that Google has added Asset Delivery for local > assets up to 1GB+. That will open the door for garage app developers like > myself to distribute their multi-media html teaching curriculum laden with > video clips via the Play Store. Now that GeckoView enables good full > screen video play within an app webview its a game changer. > > One more thing... when I integrate the reference-browser screens with my > screen I made my main menu with button to start the BrowserActivity. ALL > works well until I press the back button after playing an html video in the > browser... pressing back once takes me out of the video but also back out > of the browser to my main menu with that one click. > > *Here is what I have in my app main menu that starts the BrowserActivity...* > > override fun onCreate(savedInstanceState: Bundle?) { > super.onCreate(savedInstanceState) > setContentView(R.layout.activity_main_menu) > > > btnStartBrowserActivity.setOnClickListener { > val intent = Intent(this, BrowserActivity::class.java) > // start your next activity > startActivity(intent) > } > > > *Here is the change i made to the manifest to make my main menu be the > launcher activity instead of the browser activity.* > > <activity android:name=".MainMenuActivity"> > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > > <category android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > <activity > android:name=".BrowserActivity" > > android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|locale|layoutDirection|smallestScreenSize|screenLayout" > android:launchMode="singleTask" > android:resizeableActivity="true" > android:supportsPictureInPicture="true" > android:windowSoftInputMode="adjustResize"> > <intent-filter> > <category android:name="android.intent.category.DEFAULT" /> > </intent-filter> > </activity> <!-- This needed for some tooling to launch mozilla-based > browsers like web-ext. --> > <activity-alias > android:name="${applicationId}.App" > android:targetActivity=".BrowserActivity"> > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > > <!-- <category android:name="android.intent.category.LAUNCHER" /> > --> > </intent-filter> > </activity-alias> > > Did i make the proper changes... if so ... is that the expected result > from pressing the back button once while playing a video within the browser > activity? > > One suggestion... It may be helpful for those who are transitioning from > using webview to mention that Geckoview accesses local asset resources a > little differently... > > resource://android/assets/www/Start.html > > instead of ... > > *file:///android_asset/www/Start.html* > > I learned this tip from here... > https://github.com/mozilla-mobile/android-components/issues/5968 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Fandroid-components%2Fissues%2F5968&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203198542&sdata=x6zMIx%2BWgzLqx7lRqPJ%2BcTVK9QRIVXiqhh7NLfMxIHE%3D&reserved=0> > > Thanks so much! > > Bob Achgill > > ------------------------------ > *From:* Sebastian Kaspari <skasp...@mozilla.com> > *Sent:* Friday, May 8, 2020 12:44 PM > *To:* Agi Sferro <asfe...@mozilla.com> > *Cc:* Bob Achgill <bobachg...@hotmail.com>; mobile-firefox-dev@mozilla.org > <mobile-firefox-dev@mozilla.org>; android-components-team < > android-components-t...@mozilla.com> > *Subject:* Re: GeckoView to help kids continue to learn at home in > lockdown in developing countries > > Hey Bob, > > here are some patches that may help you: > > 1. Open a tab on startup (if there is none from the last time): > > https://github.com/mozilla-mobile/reference-browser/commit/723809fb55c771a833a5a565e0d1ecb83901fd23 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser%2Fcommit%2F723809fb55c771a833a5a565e0d1ecb83901fd23&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203208537&sdata=c0X%2FPzFLlEXpkdhkgkdlVmMDBCY9leXEFD70C8W8qVc%3D&reserved=0> > > 2. Open a tab if the last tab was closed: > > https://github.com/mozilla-mobile/reference-browser/commit/895bb01d2c85b41d41ac15500db37d4511c29485 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser%2Fcommit%2F895bb01d2c85b41d41ac15500db37d4511c29485&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203208537&sdata=YPeVWLYq%2BwP4XWpSMhcjADXLuo8lJZg8NHJ8owAQP%2FI%3D&reserved=0> > > 3. Changing start URL of new tabs: > > https://github.com/mozilla-mobile/reference-browser/commit/2c11d07bdf7084e8eb9c2a0d8f06d3f79d3e6961 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser%2Fcommit%2F2c11d07bdf7084e8eb9c2a0d8f06d3f79d3e6961&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203218531&sdata=q8qDsWvOBYv8ZbBp3N%2BaYjeGEEI9KDrmVdO7KcdXlPI%3D&reserved=0> > > 4. Hiding menu button: > > https://github.com/mozilla-mobile/reference-browser/commit/6a34c619228f3b1558ea83581d167b2d5f2c0cb7 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser%2Fcommit%2F6a34c619228f3b1558ea83581d167b2d5f2c0cb7&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203218531&sdata=NmEQrn7Ntb1mr55gSFWC9Be6nXnQZ0VXoQujT2A6MH8%3D&reserved=0> > > Best, > Sebastian > > > > On Fri, May 8, 2020 at 7:15 PM Agi Sferro <asfe...@mozilla.com> wrote: > > + Android Componets team who work on the Reference Browser. > > On Fri, May 8, 2020 at 12:22 AM Bob Achgill <bobachg...@hotmail.com> > wrote: > > Agi, > > The [1]: https://github.com/mozilla-mobile/reference-browser > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203228524&sdata=lzBAfXq8vP%2FxEtu8ZvsLL56UGzpOrDkHq07jzrI9Yps%3D&reserved=0> > works great! It does tabs, Full screen video. It saves the tabs on > reopening. > > 1) Can you point me to where I can put in my start html local path when > the first tab and subsequent tabs are initiated? > > And... > > 2) How can I hide the triple vertical dot menu from being seen by the user? > > I know that sounds crude but it serves my near term need of getting our > html video intensive curriculum out to students out of school due to > Covid-19 school closure. The good news for Mozilla is that in short order > you will get a lot of testing done across a large number of devices across > the developing world for the mainline part of your reference-browser. The > fact that I will not touch the inner workings of your code base of the > reference-browser will mean that when I pass back an issue that a student > mentions you can be more sure of how your code is responding on other lower > versions of Android. > > Thanks! > > Bob Achgill > www.HisHandsReader.org > <https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hishandsreader.org%2F&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203228524&sdata=ouGa9GgdSfbh5DVen25Gq7J1uAoFvaJwBj5tQJDQqrk%3D&reserved=0> > > ------------------------------ > *From:* Agi Sferro <asfe...@mozilla.com> > *Sent:* Wednesday, May 6, 2020 3:33 PM > *To:* Bob Achgill <bobachg...@hotmail.com> > *Cc:* mobile-firefox-dev@mozilla.org <mobile-firefox-dev@mozilla.org> > *Subject:* Re: GeckoView to help kids continue to learn at home in > lockdown in developing countries > > Hey Bob. > > I agree, getting an example to compile is a good first step. Unfortunately > we don't provide a version on github, but maybe we should. > > We have an example project on github that uses Android Components which > provides many reusable components on top of GeckoView [1] > > If you still want to build GeckoViewExample what you need to do is add a > root build.gradle file like this one that specifies topobjdir: [2] > change this line to refer to a released version of GeckoView: [3] > e.g. "org.mozilla.geckoview:geckoview-nightly:78.0.20200505094621" and > remove this line [4]. > > feel free to chat with us at > https://chat.mozilla.org/#/room/#geckoview:mozilla.org > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fchat.mozilla.org%2F%23%2Froom%2F%23geckoview%3Amozilla.org&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203238520&sdata=0elwUxE%2F7S3mEV%2FIGcWMHptUkr1%2Fm584miKH7GSkzu8%3D&reserved=0> > > Cheers, > > [1]: https://github.com/mozilla-mobile/reference-browser > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Freference-browser&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203238520&sdata=DMAgjqp3uPjSKmMB8ayAYp0iP7N1pBfTlX0Kw07f5Xk%3D&reserved=0> > [2]: > https://github.com/mozilla-mobile/gradle-apilint/blob/master/build.gradle > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Fgradle-apilint%2Fblob%2Fmaster%2Fbuild.gradle&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203248514&sdata=j6aa3UdvahGncnRIZJsJQlRgfuKXogQJizN4foXhEK8%3D&reserved=0> > [3]: > https://searchfox.org/mozilla-central/rev/dc4560dcaafd79375b9411fdbbaaebb0a59a93ac/mobile/android/geckoview_example/build.gradle#56 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Frev%2Fdc4560dcaafd79375b9411fdbbaaebb0a59a93ac%2Fmobile%2Fandroid%2Fgeckoview_example%2Fbuild.gradle%2356&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203248514&sdata=spqBzUJ6r9GaRWR0qDcynJtPQj%2BXf0OZL6Pwabh9uow%3D&reserved=0> > [4]: > https://searchfox.org/mozilla-central/rev/dc4560dcaafd79375b9411fdbbaaebb0a59a93ac/mobile/android/geckoview_example/build.gradle#5 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Frev%2Fdc4560dcaafd79375b9411fdbbaaebb0a59a93ac%2Fmobile%2Fandroid%2Fgeckoview_example%2Fbuild.gradle%235&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203258508&sdata=xvMWC4OAF9B9Ho1eGP8qrJhAIxnXDafeGA87ZjqMXH8%3D&reserved=0> > > On Wed, May 6, 2020 at 12:30 PM Bob Achgill <bobachg...@hotmail.com> > wrote: > > Thanks Agi! > > I will look through the Example. > > It would be good if i could get the Example to compile so i can see how > each feature looks. I could not find a GitHub version of the Example to > download... so i tried copying each activity, manifest, layout, and gradle > and recreating a AS project Example. But when I run it i get an error. > Doing all that by hand I probably missed something. > > If there is no better way to get a copy of the Example... can you suggest > what i may have missed by looking at the error? > > Caused by: groovy.lang.MissingPropertyException: Could not get unknown > property 'topobjdir' for project ':app' of type org.gradle.api.Project. > > Thanks! > Bob Achgill > > ------------------------------ > *From:* Agi Sferro <asfe...@mozilla.com> > *Sent:* Tuesday, May 5, 2020 12:09 PM > *To:* Bob Achgill <bobachg...@hotmail.com> > *Cc:* mobile-firefox-dev@mozilla.org <mobile-firefox-dev@mozilla.org> > *Subject:* Re: GeckoView to help kids continue to learn at home in > lockdown in developing countries > > > you're trying to create a GeckoRuntime > > This should read: you're trying to re-create a GeckoRuntime, in essence > you can only create the runtime in a given process once. When rotating > Android re-uses the process of your app and re-runs the initialization > code, causing the runtime to be created a second time. > > On Tue, May 5, 2020 at 10:07 AM Agi Sferro <asfe...@mozilla.com> wrote: > > Hi Bob, that's pretty cool! > > GeckoView should support Android 4.1 (API level 16) for all versions, > however we don't test on that version, so you might encounter bugs. > > The crash on rotation is probably due to the fact that you're trying to > create a GeckoRuntime in the same process, you can deal with this using a > static variable for the runtime, see [1]. > > GeckoViewExample (code linked above) supports tabs, you can get an idea > how to implement that from reading the code. In essence you would create a > `GeckoSession` for each tab and then call `geckoView.setSession(session)`, > see also [2]. > > [1]: > https://searchfox.org/mozilla-central/rev/7908ce29657cfd623993046bd8e38664e1c0b28e/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#377 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Frev%2F7908ce29657cfd623993046bd8e38664e1c0b28e%2Fmobile%2Fandroid%2Fgeckoview_example%2Fsrc%2Fmain%2Fjava%2Forg%2Fmozilla%2Fgeckoview_example%2FGeckoViewActivity.java%23377&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203258508&sdata=HU%2FTgtoHdJXskPDkpDGMbXRwr87S0up9NMSABbX7rF8%3D&reserved=0> > [2]: > https://searchfox.org/mozilla-central/rev/7908ce29657cfd623993046bd8e38664e1c0b28e/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#1030-1041 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsearchfox.org%2Fmozilla-central%2Frev%2F7908ce29657cfd623993046bd8e38664e1c0b28e%2Fmobile%2Fandroid%2Fgeckoview_example%2Fsrc%2Fmain%2Fjava%2Forg%2Fmozilla%2Fgeckoview_example%2FGeckoViewActivity.java%231030-1041&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203268501&sdata=koEhaIAzqsAVCfJMa5hzzPweyYMvV%2FYrtLU%2BBSnjB%2FQ%3D&reserved=0> > > On Tue, May 5, 2020 at 7:06 AM Bob Achgill <bobachg...@hotmail.com> wrote: > > Hello GeckoView developers/users, > > I am new to Java and GeckoView and have a few questions. My use case is > ... > There are presently 1.5 billion children out of school due to C19. > I am making a quick Geckoview app that they can use to continue to learn > from home on their family smart phone. Think Jelly Bean on up. > I already 1.8 GB mother tongue html video curriculums that we have been > using firefox for them to locally browse the curriculum. > Here is where GeckoView comes in... it will be much easier for families to > use an app integrated with the html viewing built in. > > Here are my hurdles to getting GV going in my app > 1) On both 70.0.20190712095934 and 77.0.20200421094220 my S7 GV crashes > when turning the phone between portrait and landscape. That seems like I > must be doing something really wrong with setting up the GV session? (see > my activity below) > > 2) I have some clients on 4.1. Is there a way of knowing which builds of > GV support which min SDKs? Is there a way to tweak GV to get down to > support 4.1? > > 3) What is the code I add to support tabs? Siblings in the same home then > can use their own tab view after brother does his homework with no > complaints. > > > Thanks so much! > Bob Achgill > > PS You can see from my code that I commented out lines in trying to set > up the settings. There is not much in the way of examples to follow that I > just didn't get AS giving me complaints on so i had to // them out. So > please feel free to add to my humble attempts! Your inputs will help kids > around the world start getting productive this week. :) > ~~~ > > package org.hishandsreader.mygeckoview; > > import androidx.appcompat.app.AppCompatActivity; > > import android.os.Bundle; > import android.view.View; > import android.view.WindowManager; > > // GeckoView > https://mozilla.github.io/geckoview/consumer/docs/geckoview-quick-start.html > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmozilla.github.io%2Fgeckoview%2Fconsumer%2Fdocs%2Fgeckoview-quick-start.html&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203268501&sdata=bV0%2BcX0HGvTyhYwoyxKIruG2JHh5YcCdYkNrrHEKsKs%3D&reserved=0> > import org.mozilla.geckoview.GeckoRuntime; > import org.mozilla.geckoview.GeckoRuntimeSettings; > import org.mozilla.geckoview.GeckoSession; > import org.mozilla.geckoview.GeckoSessionSettings; > import org.mozilla.geckoview.GeckoView; > > > > > > public class MainActivity extends AppCompatActivity { > > private GeckoView geckoview; > private GeckoSession geckoSession; > private GeckoRuntime geckoRuntime; > // test > private boolean mCanGoBack; > > @Override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.activity_main); > > // GeckoView > https://mozilla.github.io/geckoview/consumer/docs/geckoview-quick-start.html > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmozilla.github.io%2Fgeckoview%2Fconsumer%2Fdocs%2Fgeckoview-quick-start.html&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203278497&sdata=cLrqflHHbdmL3bzhkOGykNUmQ1%2FKkdZnI8t5ytcaaDk%3D&reserved=0> > GeckoView view = findViewById(R.id.geckoview); > > geckoSession = new GeckoSession(); > > //geckoSession.getSettings().setBoolean(GeckoSessionSetttings.USE_MULTIPROCESS, > true); > > //geckoSession.getSettings().setBoolean(GeckoSessionSetttings.USE_DESKTOP_MODE, > false); > > GeckoRuntimeSettings.Builder builder = new > GeckoRuntimeSettings.Builder() > .javaScriptEnabled(true) > //// .nativeCrashReportingEnabled(true) > .consoleOutput(true); > > geckoRuntime = GeckoRuntime.create(MainActivity.this, > builder.build()); > > ////geckoview.setSession(geckoSession geckoRuntime); > > geckoSession.open(geckoRuntime); > view.setSession(geckoSession); > > > //geckoSession.loadUri( "https://exploitrme.wordpress.com/ > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexploitrme.wordpress.com%2F&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203278497&sdata=wZMMiZ2PlrlwzteowgwYpJkleOIfCbQBl85H7gorx1s%3D&reserved=0> > "); > > //https://github.com/mozilla-mobile/android-components/issues/5968 > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmozilla-mobile%2Fandroid-components%2Fissues%2F5968&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203278497&sdata=tY3IJYgRTPCLdjPeo3Y57gj8Ry1RianDfWkYy5OhPXQ%3D&reserved=0> > > geckoSession.loadUri("resource://android/assets/www/HHR-Learn2Read.html"); > //TODO Pixel api 19 never online > //TODO Pixl 29 shows app but no html > //TODO Bobs S7 works!! Backbutton works! > //TODO get help try to understand this to sper backbutton? > https://qiita.com/YusukeIwaki/items/3c25f7b73650c87180ba > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fqiita.com%2FYusukeIwaki%2Fitems%2F3c25f7b73650c87180ba&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203288491&sdata=YbR70MOi9FYrKWYWLdbmHsj52KQpfrF3LalC9DVB%2Fss%3D&reserved=0> > > // In Japanese > https://qiita.com/YusukeIwaki/items/3c25f7b73650c87180ba > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fqiita.com%2FYusukeIwaki%2Fitems%2F3c25f7b73650c87180ba&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203288491&sdata=YbR70MOi9FYrKWYWLdbmHsj52KQpfrF3LalC9DVB%2Fss%3D&reserved=0> > // @Override > //public void onBackPressed() > //{ > // session.goBack(); > //} > > > } > > @Override > public void onBackPressed() { > //if (geckoSession.canGoBack()) { > geckoSession.goBack(); > //} else { > // super.onBackPressed(); > //} > } > > > > // Does not appear to be doing anything. > public void onFullScreen(GeckoSession geckoSession, boolean > fullScreen) { > if (fullScreen) { > > getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); > > getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE > | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION > | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN > | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION > | View.SYSTEM_UI_FLAG_FULLSCREEN > | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); > } else { > > getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); > > getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE > | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); > geckoSession.exitFullScreen(); > } > } > } > > > _______________________________________________ > mobile-firefox-dev mailing list > mobile-firefox-dev@mozilla.org > https://mail.mozilla.org/listinfo/mobile-firefox-dev > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.mozilla.org%2Flistinfo%2Fmobile-firefox-dev&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203298485&sdata=TbhEBmvgO%2Ba2gcYnf4ZGl4z4Ayz5cEZoRH%2FYxUIgSo8%3D&reserved=0> > > -- > You received this message because you are subscribed to the Google Groups > "android-components-team" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-components-team+unsubscr...@mozilla.com. > To view this discussion on the web visit > https://groups.google.com/a/mozilla.com/d/msgid/android-components-team/CAKSVnnhp-b7_%2BHbCaZZt8n_Qav0DadwWRVk2EUbL3mk%3DKoryzw%40mail.gmail.com > <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fa%2Fmozilla.com%2Fd%2Fmsgid%2Fandroid-components-team%2FCAKSVnnhp-b7_%252BHbCaZZt8n_Qav0DadwWRVk2EUbL3mk%253DKoryzw%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7C%7C0d49893a54c0488c7c6008d7f6003dcd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248353203298485&sdata=HO4o4LLSFqC%2B8k4fCXYGoIEod2oNhiNtgiNKVy%2B8wVg%3D&reserved=0> > . > >
_______________________________________________ mobile-firefox-dev mailing list mobile-firefox-dev@mozilla.org https://mail.mozilla.org/listinfo/mobile-firefox-dev