I'm going to create a mobile phone charger, that is accessible in public (like in bars or restaurants). Now I'm looking for a method to show to my "clients" an information about the device (about the sponsor).
Is it possible to trigger opening a webpage, after connecting the mobile phone to a USB port? Or ask the user to install an app? The port can be in a PC (not a charge-only port). I've read about "universal accessories", which can do a lot, but it looks quite complicated to create a charging "accessory" only to display a web-page.
Has anyone an better idea? Any other actions (other than opening a web page / asking to install an app) are possible?
Open it on a PC? Probably. On Android not without installing an app to do that or using Tasker.
Read up on Intents and specifically how to listen for Intent.ACTION_BATTERY_CHANGED if you want to have people install an app in order to use the charger.
Related
our agency has an own Open Device Lab with me as admin :-)
We have about 50 different smart phones.
The problem is, that I have to launch the browser and choose the url out of the favorites.
Now my question is:
Is there a way to start the browser remotely via wifi (every phone is in the same wifi)
Constraint:
No phone has a installed sim card
Is there a app or something similar which can provide these feature?
Yes, on Android you can use a Broadcast Receiver, so whenever it will detect WIFI, you can start a service to open browser using a particular URL or you can integrate a webview in your app to Open that custom URL.
Target:
Sending a file to connected peers. The connected peers should recieve the File without a preinstalled app.
Situation - Question:
I'm writing an app that opens WiFi-direct or a WiFi-Hotspot for other devices. The other devices connect to the device (Main-Device) where the App is installed on. Now the Main-Device should broadcast a file and every device connected to the Main-Device should get a notification, that it could receive a file. But, the other devices should not need an App to receive the file!
Is this possible? Cause all I found till now describes how you can send something from one to an other device if both installed the same app. Using sockets and one device becomes server and the other client.
Reason:
I try to create a game, which just is installed on a Main-Device. Other devices can join the game by connecting over WiFi, then they'll receive a HTML5-file from the Main-Device which they can open in their browser. As soon as they have the HTML5-file they'll be able to interact with the game on the Main-Device.
But I don't want to force everybody who likes to join the game to download the app. Another Point is, if this is possible, I don't need to rewrite the app for other systems. Cause every Smartphone/Tablet has a Browser.
But, the other devices should not need an App to receive the file! Is this possible?
No, it isn't.
I try to create a game, which just is installed on a Main-Device. Other devices can join the game by connecting over WiFi
That, is possible. What you need to do is build a captive portal.
Basically, all DNS names resolve to your server's IP address, and all traffic that would be routed elsewhere is not routed to the internet. How you do this depends on your network setup. There is a lot of software available. I've used Untangle before with decent results: https://www.untangle.com/store/captive-portal.html
I'm not sure how to phrase the title of the question.
But the question is pretty simple, there is an app called openVpn for android (which allows a user to connect to vpn server).
I don't want the user to open the app when he want's to access my service, i want it to be seamless, meaning : when some app tries to access my service IP address, i want to catch that event, load openvpn and only then allow the user to access my service.
I wrote few android apps, but never something like this, where do i start ?
Is it possible to monitor where other apps are going (to which IP address) without rooting the device ?
Maybe some kind of driver ?
I searched around the web, and couldn't find anything helpful.
Thanks,
In a unrooted device, you shouldn't be able to monitor the connections made by other apps and in fact, you can't.
As an workaround, I guess you can just launch OpenVPN from you app (if OpenVPN registers itself for any Intent). So, the user doesn't have to remember about it.
Else, you have no more choice than integrating OpenVPN inside your app (the source code, I mean) or just telling your users that they have to launch it.
It seems there is an initiative from Google to directly send the map directions from Chrome to Android device. I was wondering is there a way browser can communicate with directly an Android application, where the Android device is connected to the system by Cable. This will be helpful in some scenarios where the user does not have access to Wifi, and he wants to download the data to the mobile phone.
You use the Android Intent invocation that is available in the Android browser and demonstrated in here.
The problem that you will face is that not every app supports the ability to be opened from the Web Browser. This also relies on the fact that you are on the same machine and doesn't solve your "cabled" issue. You will also have to know how to exactly integrate with these Android apps, and that is not something that they often expose.
For a few reasons there is often no direct access to local files/devices from inside a browser. When cabled, you can forward a tcp port of the android system to local system, using Android Debugging Bridge(adb).
So you can send some commands/data to the device by setting up an application in android who listens to particular tcp port, and forward the port to local system. Then all access to the local port is forwarded to this application. Then with such techniques like jsonp, your browser can communicate with your device.
anyone know if its posible to make an application to simulate a touchscreen mouse or trackpad by bluetooth??
How can I make that the PC (or MAC) knows me as a mouse device?
Regards,
Juan
You should have a look at the Bluetooth HID specification. It may be possible, depending on the stack of the device that you are using to emulate a mouse/trackpad. I'm not familiar with the stack on Android (assuming that's the platform you're using from the tag on your question) so I don't know if it's possible from there.
Essentially, you create a HID service on the L2CAP protocol. The service record specifies the HID descriptors which describe the data being sent from emulating device. The HID driver on the host computer should be able to interpret that data.
It might be useful to try to connect to another Bluetooth mouse/trackpad from the desktop (Bluecove on a stack other than Microsoft is a good way to hack around in Bluetooth). Have a look at the service record for the HID service on the mouse/trackpad. Also, look at the data coming from the mouse/trackpad for an idea of what needs to be sent and when.
Alternatively, you could write a server application on your computer that communicates via another Bluetooth protocol (e.g., RFCOMM/SPP) to the input-device emulator app running on your phone. The server application would simulate the input device (e.g., move the mouse pointer around on the screen, etc).
Instead of creating your own project why dont you contribute to the remotedroid project?
I'm assuming you know your bluetooth api's well. Remote droid uses Wifi and OSC messaging to communicate with the PC.
Yes you may use GlovePie with the wiimote connected to BlueSoeil, It will alow you to do anything with you computer with the wiimote. It also has a Language it uses
I think you want this:
Serverless Bluetooth Keyboard & Mouse for PC/Phone
It's even open-source!
Unfortunately it is not open source, it just has a GitHub readme for some reason.
But still the app is quite good!