Using Java Native Interface with libcef.so

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Using Java Native Interface with libcef.so

Postby wrightpt » Wed Jul 20, 2016 10:50 am

Just wondering if calling the main function in CEF will be an issue without the executable? I know it may be ignorant question.


I am building for Android using cmake with gradle. I see in the Cmakelist.txt that there are executables that are made. Would eliminating these and calling the main function from a Java native interface be an issue?
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Using Java Native Interface with libcef.so

Postby magreenblatt » Wed Jul 20, 2016 10:53 am

There are Java wrappers for CEF. See for example https://bitbucket.org/chromiumembedded/java-cef.

You will not be able to build CEF for Android without significant changes to the CEF source code.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Using Java Native Interface with libcef.so

Postby wrightpt » Wed Jul 20, 2016 10:56 am

Can I ask why not if you do not mind? what are the major hurdles?



This post shed some light and he has project on github.
http://www.magpcss.org/ceforum/viewtopi ... =6&t=12892
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Using Java Native Interface with libcef.so

Postby wrightpt » Wed Jul 20, 2016 10:59 am

If I port GTK library to Android, I assume that is not enough
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Using Java Native Interface with libcef.so

Postby magreenblatt » Wed Jul 20, 2016 11:00 am

CEF on Linux has desktop dependencies including X11, etc.

If you're using KitKat or newer you can try the WebView for Android. There are also a Chromium-based Android WebView replacement: https://github.com/pwnall/chromeview
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Using Java Native Interface with libcef.so

Postby wrightpt » Wed Jul 20, 2016 11:02 am

I tried all of these and crosswalk. Nothing lets me set the referrer like CEF though
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Using Java Native Interface with libcef.so

Postby wrightpt » Wed Jul 20, 2016 11:03 am

If i port desktop dependencies, is that the major hurdle? please elaborate?

This a project I really want to exist
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Using Java Native Interface with libcef.so

Postby wrightpt » Wed Jul 20, 2016 11:38 am

Do you think I should stop the project?
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Using Java Native Interface with libcef.so

Postby magreenblatt » Wed Jul 20, 2016 11:44 am

wrightpt wrote:Do you think I should stop the project?

That depends on your skill level and how much time you're willing to spend on it. Someone familiar with Linux and Android can probably implement it in a few weeks/months. However, you will need to figure it out for yourself.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 66 guests

cron