how to embed android emulator in HTML page - java

i am working on a project that enables a user to have a demo of an application that he is about to download..
something similar to https://www.manymo.com ; but i am struck on how to embed the emulator in the webpage.
Any help regarding this is highly appreciated.

This is just a way on how to approach
Create android emulator and install VNC server
then use a web based vnc client and embeded it in your server .(most solutions need activex/java enabled browsers).
webased VNC clients to look out for
https://novnc.com/info.html
embedding instructions
https://github.com/novnc/noVNC/blob/master/docs/EMBEDDING.md

One approach can be
Create a minimal android emulator image and install the app
Start a server that
starts the android emulator
has Chrome remote desktop
the size of the desktop is exactly the size of the emulator
In the browser, offer a Chrome remote view that connects to the server

Related

How do I use VPN only in one android application?

I need to use the built-in VPN in my Android application. When I open my application, I need to start VPN from app, and disconnect when I quit the app.
The condition is that VPN only works on my application and has no effect on any other app. I need some source code or solution.
Language: JAVA {Android}
Example Apps: OPERA BROWSER
link: https://play.google.com/store/apps/details?id=com.opera.browser&hl=en_IN&gl=US
When I open my application, I need to start VPN from app, and disconnect when I quit the app.
That is not an option.
The condition is that VPN only works on my application and has no effect on any other app
The "built-in VPN" affects the entire device.
Example Apps: OPERA BROWSER
They have their own VPN built into their app. They are not using a device-supplied VPN.

build HTML5 offline web applications with Java

I want to build HTML5 Offline Web Applications but want to code in pure Java. I have seen Sencha GXT 3 but I am unsure as it supports for offline cache HTML5 or not.
If you have any experience with HTML5 Offline Web Applications then please let me know which one is better.
More Detail:
I want to host this HTML5 app to a webserver. User browse this app and it downloads itself into user's mobile. With this app user can fill reports, report GPS coordinates, take snaps and save them in each separate folder in mobile device and when mobile connects to Internet it uploads all the data.
Since this is an HTML5 and deployed on some webserver, User with any mobile phone having a browser should use it. Is this possible ???
GWT Mobile PhoneGap Showcase Android Market
Take a look at mgwt it has an offline linker that works with any GWT project, see: http://code.google.com/p/mgwt/wiki/HTML5Manifest

Mobile to Mobile Remote Access using Android

i am developing an APP in Android which share screen to all android mobile phone connected in a session.
i want to know that android provides any sdk which provides same service like desktop to dektop access as in team View ?
or any Idea, which SDK i have to used?
Thank you.
Smartphones can't directly connect to each others since they are running in different networks. The common way to solve this is an additional server component. All phones need to connect to the server and send their data. The server is pushing this data to other connected clients, probably by using push notifications. In Android Push Notifications are known as C2DM.
Android developers blog:
http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html
Here's another tutorial on the topic:
http://www.zylinc.com/blog-reader/items/c2dm-a-simple-introduction-using-a-java-server.html
I like 2X RDP a lot. It works very well on phone and tablet and connects to the regular Windows RDP server, so don’t have to install anything else on the server machine.

web based remote desktop for connecting to android

Is there any code available (open source) that enables web based remote connection to an android device. ie logmein, pcanywhere type apps. I have seen this on a few apps on the market, but I need to add it to add to a project I am creating.
Just added. I am looking to control the android device, not android controlling remote pc.
Note that a "remote connection to an android device" will require root to work, if you are aiming to support user input. Some will require a complete modded ROM.
You could search for VNC servers for Android, such as Android VNC Server or android-vnc.
Try this with ADB installed and your phone rooted.
http://code.google.com/p/android-vnc/

Controlling a USB device from a web application

I would like to be able to control a USB device from a web application.
I was hoping to use Adobe Flex but I don't think that Flex can support access to USB devices.
Is this possible using Java applets, or a similar approach using .NET?
Thanks.
I don't think any web client platform will allow this. On purpose.
If you find one that does, I will uninstall from all my machines.
With .NET, you could
Create a WinForm control and host it in IE with an object tag. This requires security settings to be set using CASPOL or ActiveDirectory, but you would have full-trust to the machine after this
http://weblogs.asp.net/spano/archive/2007/09/19/hosting-a-windows-form-control-in-a-web-page.aspx
If there is already a COM object on the machine that does what you need, you can access it via Silverlight with elevated permissions.
http://www.silverlightshow.net/items/Silverlight-4-elevated-permissions.aspx
With Applets, you could do it with a trusted applet.
Using a lot of different technologies, you could create ActiveX objects, plugins or browser extensions to do it.
We successfully connected POS devices with a Flex UI... for this we created a bridge application with Merapi which connects Flex (either Air or Web) with Java, and left the connection with the devices to Java... this was for a controlled environment where we where sure that the client had the bridge configured...
Other option is to try Air 2.0 which allows to execute Native code (e.g. Java) to connect to the devices, and you could release your app in Air or develop a bridge this time in Air instead of Java to connect with the browser app
HTH
Gus
Your question is a little unclear because you did not say what computers the web application is running on, what computer the USB device is on, and what computer is yours.
Depending on the details, one possible solution would be to write a Chrome Packaged App and use Chrome USB API. The app would need to be installed on the computer that has the USB device and then it could present a UI to the user or just connect to a remote server and allow the device to be controlled remotely.

Categories