NativeWebView ANE from distriqt to use with Starling - android

I would like to use NativeWebView ANE from Distriqt in my iOS/Android App that I am developing in AS3 and Starling. The problem is that I don't find any example to implement it in this way or any guidelines to do it so. The only example provided is with Flash sprite exclusively.
I would appreciate if someone could please give me a hand with this issue.

The WebView is displayed as a native UI component and sits outside the display list and Stage3D content.
Native UI components are placed above the AIR stage and run as a separate component to your AIR content. This means that you cannot layer AIR content over a native component.
You can communicate to the WebView through the ANE using JS, AS3 events, etc.
If you require to animate the WebView and layer AIR content over you can use the 'screenshot' functionality to capture a BitmapData representation of the WebView. The BitmapData you can then use in your AIR content as a way to animate the WebView. Obviously the WebView is not interactive when you are using a screenshot to animate though.
Hope this clears up your issue.

Related

How to take screenshots programmatically in a ReactJS android app?

I'm trying to build an android app that allows -
Automatically scroll page by page.
Take screenshot after each scroll (and ideally merge all screenshots into one image, if possible) and save the resulting image(s) in an album.
For example - the user opens a very long webpage in the browser, then triggers the app which screenshots the entire webpage automatically by scrolling down and taking screenshots until it reaches the bottom.
There seem to be many libraries to do the screenshot part for React Native but I can't seem to find any for ReactJS. Is it even possible with ReactJS or do I need to learn some other android specific technology to make it happen? I'm a ReactJS and mobile app dev newbie, so I might be missing something obvious.
If I understand well, your Android app is just a webview rendering the React app.
If this is the case, you cannot do anything at React layer. you have to code the logic at native layer (in the native android application).
you can use this package to take screenshot from any pages
"use-react-screenshot"
but this package have some problems. it works by react hooks
or in take screenshot, svg codes not exist in image

AirConsole Game develoment - Control with Sprites?

Im working on building my own game for AirConsole. I am using Unity, have imported all relevant assets and have begun my project.
So basically what I want is two different sprites to show up on the users controller depending on if they have not touched the screen, or have swiped up on the screen and are holding. So far all my research has showed very basic controllers with just buttons. Is this even possible?
Yes that's absolutely possible.
The controllers are written in HTML. Javascript and CSS are supported. So anything you can do in a mobile browser can be done in an AirConsole controller.

how to implement a transparent backgound webapp among process

all
I like to implement a webapp for realtime debugging like "android->developer options->show touch data" or "android->developer options->show CPU usage".
But, I can't found any proper method for this with HTML5(and some of hybrid framework)
I also understand this overlay scheme is highly depend on underlying platform(like android, tizen, firefox-os).
is there any way or idea to implement a transparent background webapp among process?
my first target platform is android.
thanks
For firefoxOS it's been done in system so it's not possible.
For android there's Tooleap SDK that allow you to develop float window app, but I have no idea if it support writing in HTML5.

Android - can I create an HTML5 screen in a native Android app?

I am trying to add a podcast and a youtube channel to my native Android app, but it seems it would be much easier if I just use HTML and access that media as it is on the web.
Is it possible to have an activity be HTML5 or a basic web view? If so, how can I do that?
Thanks!
Yes this is possible, have a look into WebView
http://developer.android.com/reference/android/webkit/WebView.html
A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.
You may find some performance/compatability issues but this is the easiest solution and one that I would do as a first step.

Display the AR Browser within a <div>. Is it possible?

I'm currently using Wikitude phonegap extension to develop my app.
Using jquery mobile, I have set up a header, and footer with a central div that provides content information.
I would like to show the AR Browser within the <div> content tag, however, when I execute the loadArchitectWorld() call it brings the full screen AR Browser.
What would be the best practice here?
Use the AR BRowser only for displaying POIs and related info?
Build the whole app over the AR browser?
Switch back and forth between the AR Browser and the rest of the app using .hide() and .show() calls?
Thanks in advance.
Wikitude's PhoneGap plugin is by design fullscreen. Once you call loadArchitectWorld() a fullscreen view is added to phoneGap activity's parent view that handles any "AR."-Components.
Best practice is therefore to define anything to AR inside the "Wikitude SDK html" and use the urlListener-concept (fires event in phonegap when you call "document.location = architectdk://..." in ARchitect World) to pass information between AR and PhoneGap, e.g. to exit AR view.
Please also have a look at the provided Samples in the Wikitude github account.
Kind regards

Categories

Resources