Here is initiative that you will be helping by answering my questions. www.HisHandsReader.org<http://www.HisHandsReader.org> [http://www.hishandsreader.org/uploads/2/0/4/6/20464738/__993621.jpg]<http://www.hishandsreader.org/> His Hands Reader Dictionaries and reading Primers<http://www.hishandsreader.org/> The His Hands Reader (HHR) site is collecting and distributing video dictionary and reading primers for every language of the world to help deaf persons learn to read using their native hand signs. The videos will also help hearing family members learn hand signs and or learn to read English, their local business language or even their native ... www.hishandsreader.org
Thanks! Bob Achgill ________________________________ From: Bob Achgill <bobachg...@hotmail.com> Sent: Tuesday, May 5, 2020 9:06 AM To: mobile-firefox-dev@mozilla.org <mobile-firefox-dev@mozilla.org> Cc: Bob Achgill <bobachg...@hotmail.com> Subject: GeckoView to help kids continue to learn at home in lockdown in developing countries 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 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 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://github.com/mozilla-mobile/android-components/issues/5968 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 // In Japanese https://qiita.com/YusukeIwaki/items/3c25f7b73650c87180ba // @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