mfinkle / geckobrowser Goto Github PK
View Code? Open in Web Editor NEWVery basic Android browser application that uses the GeckoView widget
License: Mozilla Public License 2.0
Very basic Android browser application that uses the GeckoView widget
License: Mozilla Public License 2.0
Hi , can you provide new link for the library and assets Geckoview??
Im implementing in our project GeckoView. But i have a problem with clear cookies.
Can somebody say, what class clear cookies in geckoview? Urgent! Best Regards
I made list of open-source android browsers and I want to include information what is license (public doman/MIT/GPL/MPL/whatever you choose) of code in this repository. Could you fix this and add this information to repo? Thanks.
How do i install geckobrowser
I did all the instructions but nothing happened?
pls any videos Explain the installation process
I will pay you
just i want geckobrowser
There is no effect of transparent background. I tried to add "@android:color/transparent" in xml file but it didn't work. From code geckoView.setBackgroundColor(0x00000000) also doesn't work. Even if I load a html with transparent background in GeckoView, it shows darker color but not transparent.
Interesting is that when I add the following attribute in xml it's always bring the other view (below in framelayout) to top, doesn't matter what is the hierarchy.
android:background="@android:color/transparent"
android:layerType="software"
Hello,:-)
Thank you very much for what you doing.
The onAlert( GeckoView view , Browser browser , String message , GeckoView.PromptResult result ) seem to be not working.
Good luck.
Same problem as onAlert.
Okay am completely new to Eclipse here am from Android Studio.
So I tried Doing the File import like u recommended but I ended up getting two projects instead of one. How do I import them into one project?
03-19 14:59:41.163: E/GeckoAppShell(1375): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 2731 ("Gecko")
03-19 14:59:41.163: E/GeckoAppShell(1375): java.lang.NullPointerException
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.GeckoNetworkManager.getNetworkType(GeckoNetworkManager.java:221)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.GeckoNetworkManager.updateNetworkType(GeckoNetworkManager.java:180)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.GeckoNetworkManager.enableNotifications(GeckoNetworkManager.java:204)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.GeckoAppShell.enableNetworkNotifications(GeckoAppShell.java:2466)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.GeckoAppShell.runGecko(GeckoAppShell.java:347)
03-19 14:59:41.163: E/GeckoAppShell(1375): at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:178)
03-19 14:59:41.163: E/GeckoAppShell(1375): Main thread stack:
03-19 14:59:41.168: E/GeckoAppShell(1375): android.os.MessageQueue.nativePollOnce(Native Method)
03-19 14:59:41.168: E/GeckoAppShell(1375): android.os.MessageQueue.next(MessageQueue.java:125)
03-19 14:59:41.168: E/GeckoAppShell(1375): android.os.Looper.loop(Looper.java:124)
03-19 14:59:41.168: E/GeckoAppShell(1375): android.app.ActivityThread.main(ActivityThread.java:4921)
03-19 14:59:41.168: E/GeckoAppShell(1375): java.lang.reflect.Method.invokeNative(Native Method)
03-19 14:59:41.168: E/GeckoAppShell(1375): java.lang.reflect.Method.invoke(Method.java:511)
03-19 14:59:41.168: E/GeckoAppShell(1375): com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
03-19 14:59:41.168: E/GeckoAppShell(1375): com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
03-19 14:59:41.168: E/GeckoAppShell(1375): dalvik.system.NativeStart.main(Native Method)
03-19 14:59:41.168: E/Gecko(1375): mozalloc_abort: Redirecting call to abort() to mozalloc_abort
I also use https://ci.mozilla.org/job/mozilla-central-geckoview/mozilla-central_Maven_Repository to download the geckoview library' aar, but there is some issues to use the library, I could not any project about the geckoview library
Fails during android install on Mac OS X Lion 10.7.5
01-04 04:57:49.979: E/AndroidRuntime(8309): FATAL EXCEPTION: main
01-04 04:57:49.979: E/AndroidRuntime(8309): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.starkravingfinkle.geckobrowser/com.starkravingfinkle.geckobrowser.MainActivity}: android.view.InflateException: Binary XML file line #29: Error inflating class org.mozilla.gecko.GeckoView
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2194)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.access$600(ActivityThread.java:139)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.os.Handler.dispatchMessage(Handler.java:99)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.os.Looper.loop(Looper.java:154)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.main(ActivityThread.java:4945)
01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.reflect.Method.invokeNative(Native Method)
01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.reflect.Method.invoke(Method.java:511)
01-04 04:57:49.979: E/AndroidRuntime(8309): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-04 04:57:49.979: E/AndroidRuntime(8309): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-04 04:57:49.979: E/AndroidRuntime(8309): at dalvik.system.NativeStart.main(Native Method)
01-04 04:57:49.979: E/AndroidRuntime(8309): Caused by: android.view.InflateException: Binary XML file line #29: Error inflating class org.mozilla.gecko.GeckoView
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-04 04:57:49.979: E/AndroidRuntime(8309): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:269)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.Activity.setContentView(Activity.java:1885)
01-04 04:57:49.979: E/AndroidRuntime(8309): at com.starkravingfinkle.geckobrowser.MainActivity.onCreate(MainActivity.java:32)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.Activity.performCreate(Activity.java:4531)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1071)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2150)
01-04 04:57:49.979: E/AndroidRuntime(8309): ... 11 more
01-04 04:57:49.979: E/AndroidRuntime(8309): Caused by: java.lang.ClassNotFoundException: org.mozilla.gecko.GeckoView
01-04 04:57:49.979: E/AndroidRuntime(8309): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.createView(LayoutInflater.java:552)
01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
01-04 04:57:49.979: E/AndroidRuntime(8309): ... 21 more
I noticed that you set up remote debugging, but when I follow the instructions on [1]. I never see the "Connect..." menu in Tools->Web Developer. I manually entered the URL from the instructions [2], and set up tcp forwarding via ADB as suggested, adb forward tcp:6000 tcp:6000
, but I get connection timeouts.
I'm running geckobrowser in a Google API ARM emulator running 4.4.2.
[1] https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android
[2] chrome://browser/content/devtools/connect.xhtml
Hi!
While Firefox for Android has WebGL support, this does not seem the case of geckobrowser. I don't know if this is a limitation in GeckoView or something to enable in geckobrowser.
Is http://people.mozilla.org/~mfinkle/geckoview/docs/ up-to-date with the API?
I try to replace WebView with GeckoView for multiple reasons but also to mitigate the problem that Android 4.4 won't call openFileChooser anymore to handle file uploads.
Unfortunately, I couldn't find out how I can handle file uploads in GeckoView. When I tap on a button that would trigger it, nothing happens and none of the callbacks I tried implementing work.
Any suggestions?
Hello, thank you for this sample!
The app works as well. But I want load not a online website, I want to load a local HTML site. It looks like it's not possible?
My code:
{code}
mGeckoView.addBrowser("file:///android_assets/www/index.html");
{/code}
If I run the app, the GeckoView can not find the file, but it's on the right place.
Any ideas?
I want to play Adobe Flash with Geckoview,and it's working.But before loading the swf,I got this message,"tap here to active plugin".
So,how can I remove this message and play Flash directly?
Please tell me,Thank you!
As of 2014-07-01, all versions of the nightlies crash on launch (I've opened a bug about this [1]). Please link to the latest working version in your README so that someone doesn't suffer my fate of sifting through almost 30 versions before finding one that worked.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1032965
[2] http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2014-06-09-03-02-02-mozilla-central-android/
I'll embed geckoview in my webapp.
I think it would be much better if you support a function like shouldInterceptRequest to load static resources from local.
Ex) jQuery, Bootstrap
Hi Mark,
thx for the good work on GeckoView and for this sample application. I tried your sample .apk from here but the app is crashing quite well on any tested URL I'm trying.
What about HTML5 APIs for usermedia or peerconnection? Any chance to get it working using a GeckoView some time in the future? Any plans on this out there?
Regards.
The link in the README only links to the arm shared library. Provide links to the other shared library platforms. I didn't realize that mozilla built shared libraries for all platforms.
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-x86/
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-armv6/
http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-r7/
I link to this bug https://bugzilla.mozilla.org/show_bug.cgi?id=988192
Hi
I just followed the instructions then ran the project from the eclipse. everything's fine except that when app runs in android virtual machine i have no internet access to browse websites. Surely the default browser could access the internet but the geckobrowser does not.
So how could i fix this? i'm not very familiar with java/android programming.
Thanks.
Hi,
Sorry if this question is related more to geckoview then to this example, but I am curious how hard is to extend geckoview for hybrid API in similar way cordova works. (means I want to be able to call javascript code from android app and native code from js inside geckoview)
Thank you,
Michael
I tried to run but geckobrowser already when I import in eclipse geckoview library I have error in the layout with the latest version that point and by "here"
why?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.