Is there a way to communicate between chrome and android app - android

I want to share information from browser using bluetooth but chrome extensions does not have a bluetooth api.So is there a way to send the information from the extension or from the browser itself to the app and use the android apis for bluetooth?

If you are not insistent on using Bluetooth, why don't you try maintaining a service + DB somewhere and make calls there, that way all of your clients can access the data, they just need to hit the right endpoints?
If you are insistent on using Bluetooth, I know firefox has Bluetooth APIs that let browsers use Bluetooth to connect with devices.

Related

Restrict applications from using VPN programatically on Android

I have created a VPN Profile on my Android device. Now, I would like to create an Android application to manage (restrict and allow) which applications can access this VPN Profile.
So far, I've looked at Android's VPN Service which allows us to manage which applications can access the VPN Service but I am unable to correlate how this solution fits in with an already created VPN Profile.
There is no relation betweeen the VpnService API and VPN connections you create in Android's built-in VPN client. When using the VpnService API you'll have to implement a VPN protocol yourself and tunnel data read from the TUN device, which is created via the API, and back again (or use a library that implements a VPN protocol that does this for you), only then can you restrict apps from using the VPN using VpnService.Builder's addDisallowedApplication() method.
You can also look for VPN apps in the app store that already use this API and support excluding (or including) apps that may use the VPN.
you can find many free vpn or proxy servers. I use nord vpn and his efficiency I check on whats my ip service. You can also use it. Its free. VPN is important where you need to get access to blocked sites or social media like twitter or Facebook. During my trip to China I used vpn and whats my ip service.

Android Wear without google play services?

I'm not a very big fan of Google play services. I don't know what they do under the hood and they are not open source.
I would still like to connect my app with Android Wear to have a basic communication without the google lib. Is it possible?
Your phone has bluetooth, your wear device has bluetooth, you can connect them using the standard bluetooth api. Or, as both devices have wifi, you can make them connect through a server. You have to write your own server for that, i.e. your own "Play".

how can i locate an android device with a website and communicate with an application installed on it

android is able to locate devices and then communicate and update these device. That is the basis behind what i want to achieve. I have created a Content Management System which is a webpage that requires login details. This CMS will contain a record of all my android devices, the users of these devices and all the applications available for these devices. The CMS was constructed using html and it also uses javascript, php and mysql. each android device will have one of my applications installed on it and will be a wifi only enabled device(so that is how it will communicate with the world).
the scenario is, a device stored on my cms will be used by a user in london and they will be able to access the internet via wifi.I want to send a notification to the device using the cms and my location is . I am logged on to my cms in Scotland.
1, What sort of code or software or technique can i implement into my cms(html code, php code, javascript code) and my android devices and or android applications(java code) that will allow me to send a notification from my cms webpage to my application?
2, how can i make sure it is sent to the right device and the right application on that devices? (i.e if i want to contact someone who has a mobile phone i use their phone number, in this case device does not have a sim card and can only connect to wifi.)
please provide me with a clear answer with links on how to achieve this and excuse my ignorance if the answer is straight forward i am new to this.
again just to make it clear i want to send notifications from my cms webpage to a specific application that i have made in android using eclipse and java on a specific android device whos only connection to the internet is via wifi.
thank you
I think Google Cloud Messaging is appropriate for your problem.
Here is the link: http://developer.android.com/google/gcm/index.html

Manage Android Device through web browser from a laptop using WiFI

Requirement: I want to control my android phone through my laptop using WI-Fi. For this I need to run a web server and a "customized" web app that runs on the android phone over a particular port and the wifi adapter's ip address. For example , I can connect to the web application running on my phone through the browser in my laptop using : http://(ip address of the phone):port
Things I have tried: I evaluated a few webservers for android that lets me run java based servlets like (ijetty). There are others like TWJS , KWS , PAW etc. So far, I am able to run them on the phone and access the web server through my laptop.
My Question: Of all the resources and materials pertaining to developing apps for Android , I'm having a real hard time finding any useful and clear information on what web technology should I create a web application that can use the android APIs and effectively communicate with the phone just as any native Android application.
i-Jetty claims to support Web Applications that can use the android apis , but lacks any sincere documentation on how to build to such web application/servlets that uses Android APIs.
While,my requirement is similar to what to an existing application for Android does namely AirDroid, it is not open source and neither it discusses anything related to its implementation architecture. So, I am open to any suggestions that can help me create a web application for the managing the android phone wirelessly.
Giving a look at the i-jetty example application you can see that it's possible to retrieve the Context and ContentResolver objects:
android.content.ContentResolver resolver = (android.content.ContentResolver)config.getServletContext().getAttribute("org.mortbay.ijetty.contentResolver");;
android.content.Context androidContext = (android.content.Context)config.getServletContext().getAttribute("org.mortbay.ijetty.context");
through which you can access system services, read and write preferences, execute queries to retrieve contacts etc. as if it was a normal android application.

How to communicate between Firefox addon and android process?

I want to write an Firefox mobile addon, which needs to communicate or invoke some android program with some data. I want to know what is the best way to communicate between an Firefox addon and android process. One way I can think of is to write data on Clipboard from addon, and continuously poll for clipboard from the android process, but that is not the efficient way. So any other ideas, please.
Unfortunately, there isn't a public way to communicate between Firefox and Android. We have been discussing how to expose such a mechanism.
In the meantime, I have been able to communicate with other applications using sockets. For example, the Android Scripting Layer (http://code.google.com/p/android-scripting/) can act as a RPC server. I have been able to open a socket to the server and communicate that way.
The FoxToPhone allows to send data from the browser to android device. Could be a good example to follow.
In the meantime, the cloud to device allows to send data from the cloud to a phone.
Maybe a combination of both services could do the trick?
You could use WebSockets in your FF extension and Sockets in your android app.
Or another solution is to include a servlet (appengine) between the extension and the app.

Categories

Resources