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.
Related
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
I need to connect my application to different servers on my network using openvpn protocol.
All works using OpenVPN Connect or OpenVPN for Android apps (link).
Now I would like to integrate OpenVPN app with mine so that everything gets automated.
(i.e)The user doesn't have to install an additional app and user doesn't have to configure it all by himself.
Is it possible ?
Any help on app integration will be appreciated !
It sound a lot like you want to build your own VPN provider app. That is certainly possible.
You can control OpenVPN for Android via an API or build an app on top of it. Just make sure you respect the license of ics-openvpn (see README for details). If in doubt contact the author of the app.
This link says whenever we run our app on development server in runs in Development mode. Is there any way to run app in Production mode without deploying to Google app engine.
No. But if the only thing you want is remote clients to use your server application, run your dev_appserver with the --address=IPADDR command-line argument to override its 127.0.0.1 (localhost) default. Replace IPADDR with the IP address of your development computer.
No. Well... you could deploy to JBoss using Cape Dwarf, but that may not be what you had in mind.
What effect are you trying to achieve?
I found my answer as NO. Development server has its own limitations. To check whether your app is running on Google App engine or not, use below code
if (SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Production) {
// The app is running on App Engine...
}
This is taken from this link, which is mentioned in my question.
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/
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.