wikitude architect framework - frameworks

Does anyone know how to load the actual architect.js file. In tutorials there is a script tag with the value of source attribute equal to "architect://architect.js". What kind of url is that? Apparentrly a web browser cannot load it.

The architect:// protocol identifier is used only when running in Wikitude World Browser, ARchitect Mobile Viewer or within the SDK. It fails in a desktop browser, which is the expected behavior.
If you want to try/test/debug your ARchitect World in the desktop browser you will have to include the ARchitect Desktop Engine (ADE) which can be found at ADE/ade.js.

Related

Open executable jar from Unity UWP

I'm building a windows app using Unity3d and I want to include an executable .jar file which has to open on button click from the app. Is there any way to develop this? Please help.
Unfortunately I don't think there is a direct way to do this. Pure UWP apps (which are generated by Unity) are sandboxed and compiled using .NET Native. As such they don't allow executing external code/process as that would pose security risk.
If you used an external Desktop Bridge app (which has full permissions) and communicated with it via app service (see this documentation article), you could theoretically achieve this, but it sounds a bit too complex. Another alternative would be to publish your app as a classic Win32 game. It would still be possible to publish it on Microsoft Store, however it would be limited to desktop devices.

Can I write a plugin for google earth desktop application?

It seems the preferred way to use Google Earth in an application is to embed it within a web page then access it via the javascript API.
However, rather than embed it in a web page, is it possible for some code to embed new functionality within the Google Earth desktop application itself? or is writing my own app with an embedded web browser my only option?
is it possible for some code to embed new functionality within the Google Earth desktop application itself
Depends exactly what you want to do. Can do a fair bit (but not everything!) with KML and in particular NetworkLinks.
is writing my own app with an embedded web browser my only option?
Not the only, but probably the most flexible.
Google dropped support for the COM API (ie. the desktop app) some time ago. The COM API was pretty terrible even on the best of days anyway.
What you could do is write an app that uses an embedded web browser -- and that web browser is what is viewing your Google Earth instance. Then you get the full features of the web API, plus the robust features of your language. If you use C#, you can use Google's API (which has a C# binding) and connect that to the javascript events as needed (ie. to figure out when the user clicked stuff in the web page.)
Here's an excellent point where you can get started:
http://code.google.com/p/winforms-geplugin-control-library/
In all seriousness -- having worked with the old COM API for nearly 2 years -- I'm glad it's gone. You really don't want to use it.

Can the browser access to camera (independent of OS) and other applications on the laptop?

we want to create an internet platform, where for registered users the following is done:
1) Tracking of the applications they open during they are "checked in" on the page
2) Tracking of their web surfing
3) In regular periods a picture is automatically taken by the built-in camera of the laptop (not Smartphone) and uploaded to the platform.
I know, sounds like brave new world;)
Is a server-sided framework like Rails with client code in JQuery sufficient for it?
Or is an own client application in e.g. objective-C for MacOS necessary?
Thanks,
R
You can do 2 using almost any of the web application frameworks + javascript.
1 is impossible unless the there is an application running in the desktop or a browser extension that is communicating with your website.
However the 3 sounds very alarming from a privacy standpoint. But if the users are willing and is aware of it then it's not an issue.
As far as I know, JavaScript does not natively support accessing the web camera. But Flash does!
Fortunately for you there is a library which combines both Flash and JavaScript that can take a web cam snapshot. It's called jpegcam. There seems to be another one called jquery web cam plugin. Also read this question - https://stackoverflow.com/questions/3922723/using-a-webcam-with-javascript

Sencha + PhoneGap

I am about to develop an application for iPhone using Sencha Touch + PhoneGap and I have a few very basic questions:
1)I want to read an XML file which is at the location http://abc.om/app/a3/. I used Sencha to read this xml but its giving me the following error:
XMLHttpRequest cannot load the url. Origin is not allowed by
Access-Control-Allow-Origin.
Is this the right method/approach to use Sencha for reading the XML? If yes, then how do I resolve the above issue? Someone said that Sencha is client side, and it cannot read the Xml out of the domain - is this true? What happens in a mobile application? Should I use Phonegap here?
2)As I am developing an app for the iPhone, how should I check the app
- using Chrome? Or using phonegap each time and then check it on an iPhone?
In general, PhoneGap applications do not suffer from cross-domain security restrictions once they are deployed to a mobile device. The reasons for this are different depending on which platform you are developing for, but for iPhone, it is because the your local PhoneGap assets are loaded into the browser on the iPhone using the file:/// URI; this allows you to get around the cross-domain security restriction. If you are creating a regular web site that is being hosted on a server, then you are restricted by this security policy. It is one of the benefits of creating PhoneGap applications.
I am not 100% familiar with Sencha, but you can use whatever framework on top of the basic XMLHttpRequest object to do cross-domain communication in PhoneGap. Be it Sencha, jQuery, xui, MooTools, etc.
For testing PhoneGap applications, I usually use a combination of my desktop browsers and some extra tooling to help me. In your case, if you load your PhoneGap application locally on your computer into a browser like Safari (which allows you to make XHRs off the file:/// URI), you won't see the cross-domain problems. Safari is one of the few browsers that allows you to do this. Alternatively, you can use a proxy on your local computer and have your local web server make the network requests and proxy them back to your application. I tend to use an awesome tool called sleight, which is a node.js web server that will reverse-proxy requests to a target external domain if the server can't find the requested asset locally on your computer. I'll try to lay out an example use of sleight for you:
Let's assume your PhoneGap application assets are located under ~/src/www, with the app being in index.html
Also assuming you want to access the abc.com domain from your PhoneGap app
You would use sleight like this:
$ cd ~/src/www
$ sleight target=abc.com
Now you have a local web server running that serves up all content under your www directory. From your index.html page now you can dispatch XHRs to http://abc.om/app/a3/, and sleight will proxy those back to you. So you can point your browser to http://localhost:8088/index.html and you'll get your PhoneGap app's index.html.
Sleight is an awesome tool for PhoneGap development as it allows you to test your PhoneGap apps on-the-go locally on your computer.
Regarding question #2:
You can use "chrome --disable-web-security" to bypass the same-domain restriction and run your phonegap application.
Edit: As as Chrome version 48, you should also add the flag "--user-data-dir". See this question.
Regarding question #2, Ronenz's answer works.
Also you can find several extensions of Chrome.
For example, I am using this one, easy to enable and disable:
https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi

Webparts in Blackberry

So far I have been creating Web Portal but recently I had a request to convert all the stuff into Mobile Portal.
I have created two webparts, when I place single or multiple webparts of same type it looks fine but when I place two different webparts then its UI gets distracted and it looks bad in Blackberry :(
The UI is fine with IE FireFox and MobileOne(simulator for Iphone), this problem is only with BlackBerry.
Any Idea?? I am using traditional .NET controls and framework to create Mobile Portal.
All three of the browsers you mention have a much fuller set of functionality than the BlackBerry Mobile Browser.
For the best results while targetting the BlackBerry Browser, you need to make sure your WebPart page and the WebParts in it are using very basic HTML Markup. This is one of the situations where you're still better off using tables for layouts rather than CSS.
As long as the rendered HTML is simple, the BlackBerry browsser should be able to handle it fairly well.
You should look that mobile controls are rendering pages in xHTML MP. What are you detecting mobile device? If you are using tradicional browsercaps, then you should up date with mdbf.
Maybe you could use WURFL (Marg.WURFL for .NET) what it replace Mobile Capabilities for WURFL Capabilities.