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
Related
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
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.
I am pretty new to jQuery.I have heard of building mobile web apps with jquery mobile. I plan to open up a list view in jquery with horizontal navigation to sublists and further to a detailed page , sort of like a menu to submenu to a detailed page with images and text. Is there a way I can acheieve this in jquery? Also planning to add the jquery index.html? file in my android project and call it via webview. I just need some demo apps regarding listview and sublist navigation to detailed pages as reference. Anyone has any idea regarding the same?
Thanks!
Justin.
Well, for a start, you could check the demo API in here. You'll get a pretty demonstration of the listview, different widget you could use in JQM. For Android Webview, I can't help though
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.
I am a newbie to Android development and was using PhoneGap to develop a simple application. Can anyone please answer the below questions?
In all the sample applications found in the internet, they use a single index.html file. How to develop an application in phonegap containing more than one page?
How can we navigate from one page to another?
I want to have the same code to work in iphone also, so if I create more than one activity will the same code work in Iphone?
Sorry, it was a dumb question and since I was new to phonegap development I had no idea what I was doing.
The problem was that at the beginning I considered it like developing an android application. If you consider it like developing a website, you will find that the answer is very simple.
So for example, in my home page I provided two anchor tags which will point to my webpages which will handle the other two functionalities. ie. In my sample application to create and list profiles, the homepage would look like this.
< a href="addProfile.html" style="styling for the anchor to look like a button"/>
< a href="listProfile.html" style="styling for the anchor to look like a button"/>
We use JavaScript to navigate between all of the pages we have in our application, navigating within a frame.
And yes, if it works in PhoneGap, it should work in both Android and iOS.