IBM MobileFirst 7.1 - Windows Phone Hybird App and invoking Java Adapter from native code - silverlight

We are using MobileFirst 7.1 and deploying a Hybrid Application for Windows Phone.
In our Hybrid Windows Phone application (which is Silverlight application) we want to invoke a MobileFirst Java Adapter.
As we see in the link http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.dev.doc/devref/c_adapters_endpoint.html we need to use WLResourceRequest for Java Adapters, but we try to use it in our Silverlight App, we cannot find WLResourceRequest. Does this class exist only for Universal Windows Phone Apps?
In our case we need to invoke a Java adapter from our Silverlight Application. It’s not very clear how to do that.
When we check another page in the documentation: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/server-side-development/invoking-adapter-procedures-native-windows-phone-8-applications/, we read see in the introduction about WLResourceRequest, but later in the same page it's not used, and we have only Javascript adapter invocation sample code, not Java Adapter.
My question is: How to invoke Mobile First Java from my MF Hybrid (Silverlight) App (from native code) ?

The statement in the tutorial regarding WLResourceRequest in Silverlight apps is an error. Silverlight apps only support WL.Client.invokeProcedure. The tutorial will be corrected.
As such, Java adapters are not supported in Silverlight apps.
What you could do is invoke a JavaScript adapter that uses Java code: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/server-side-development/javascript-adapters/using-java-adapters/

Related

Is it possible that windows form application create app package?

I use rassberry pi 2 with Windows 10 Iot Core.Remote machine of Visual Studio didn't work when I run the my universal windows project with İot Extention(it s say that deploy failed) so I send app package of my project from device portal and it run but I have windows form application and it dont create app package for sending to device portal.
What can I do ? Is it possible that windows form application create app package? or what is any other possible way?
Windows Forms applications are the old or classic applications. Windows 10 iot is compatible with UWP(Universal Windows Applications) apps only.
You can't create an appx for Windows Forms applications, because this kind of package is for UWP apps.
Update: Now you can use Desktop conversion for UWP( Project Centennial)
https://developer.microsoft.com/en-us/windows/bridges/desktop

Want to create apps for google glass.

I want to create a new app from the beginning in eclipse using java.
I have android sdk, Google app engine, maven with my eclipse.
Then how I start?
Google quick start tutorial is little bit clumsy.
I just want to make a timeline card and want to pass value "Hello World".
Then want to view from my Google glass.
Update: GDK Preview 11/19/13
https://developers.google.com/glass/develop/gdk/index
And Finally: here is how to hello world in Glass..
Create a basic hello world apk.
Install the apk on glass by following this link.
The official GoogleGlassDevelopment kit is not yet available for all developers. But developers are developing in the following ways:
Google Mirror Api:
Can be developed using java, .net, php, ruby, python and google go. The developers can access the mirror API, and google servers will talk to the Glass.
This way, we cannot access the hardware features of the Glass. Mirror API is mainly to website kind of info.
Android SDK:
Developers can develop with android sdk version 15.(ICS) and run the app directly using the same tools(eclipse/ android studio). link
The hardware available:
All the above hardware can be used with the same api available in ICS and above, Except touchpad and the transparent display. For those API, we must wait till GDK releases.

Silverlight: How to deploy a Silverlight app?

I've just written a Silverlight app and want to deploy it. This app is NOT to be hosted at a website. It is supposed to be a standalone app, just like a standalone WPF app for Windows, but (if I understand Silverlight correctly) it can run on both Windows and Mac.
I've created a .xap file. What do I do with this file to get the app installed? Thanks.
You do need to install it from a website as it still requires the Silverlight environment provided by the browser plugin.
It is the browser plugin that provides the OOB (Out Of Browser) mode.
I gather Adobe Air has the same requirements for apps.
In addition to what #HiTech Magic stated, you can also create a standalone installer for silverlight OOB apps using SLLauncher.exe.

Does JavaFX 2.0 run on Google App Engine?

As I just read about the release of JavaFX 2.0 beta and the NetBeans 7.0 plugin in the article JavaFX: The Resurrection (Java FX 2.0 Released), is there information available if it runs on Google App Engine for Java?
Client technologies that require GUI (Swing, JavaFX or even JS+HTML/DOM) don't run on servers, because, well, servers don't have screens to display GUI.
JavaFX is a client technology: e.g. it runs as a desktop app or as an applet inside your browser.
Server support is limited to talking to servers via some kind of RPC and, in case of applet, being hosted on a server for users to download. GAE can do both (depends on type of RPC).
GAE deals with the server and according to its spec it only supports Python, Java, Go as a server side technology.
Technologies like JavaFX, Flex, JavaScript etc. are client side technologies. It does not matter what you use in client side its gonna work anyway. As long as GAE is there you have to deal with only Python, Java and Go in order to run on App Engine.

How to communicate between Windows Form app and Web Site?

We developped an C# .Net 2.0 Windows Form application for Windows XP embedded that controls the underlying hardware/device. Now, we need to add a c# .NET 2.0 Web Site (hosting by IIS inside the same device) that can send commands to the Windows Form application (example: Start measuring) and receive data.
What is the best way to do it?
We thought about Web Service, but how the Windows Form application can know when the Web Service will receive a command from the Web Site.
Thank you.
Note: Forbidden to install on the device a Framework .NET 3.x or 4
Given this restriction on .Net 2.0, .net remoting is the way to go in this situation.
http://en.wikipedia.org/wiki/.NET_Remoting
Winform app can expose objects via remoting. Web app can send request to these objects. request would have commands.

Resources