Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Android JNI in C++


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Ricardo Trevisan

Posts: 6
Registered: 5/2/12
Android JNI in C++  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 19, 2016 8:09 AM
Please, let me know how to create and initialize a Web Browser and then show it in FMX form for Android.

If it is possible in C++ XE8 , if not Delphi is OK. I will try to understand and convert from Delphi.

I assumed could't use FMX.WebBrowser.TWebBrowser because I need to access setAllowFileAccessFromFileURLs() and setAllowUniversalAccessFromFileURLs() in order to get working HTML5 <input type="file" accept="image/*" capture="camera">.

I tried to construct a Web Browser using Android API & JNI but I was unable to construct (create and initialize) a web browser Object and then show it in a FMX form with another components of my app.

The main problem is use HTML5 <input type="file" accept="image/*" capture="camera"> from web site into Android app, without leave the app. In another words I can not use Intent or Chrome Tabs because it will carry user away from app.

Thank you.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02