I am building a small robot that I can drive around outside of bluetooth range -- so I want to send signals via the internet. The eyes and ears are an old Droid phone (running android 2.2.3). I can get the phone to talk to a bluetooth module to control the robot (tap the left button, it sends the letter L to the bluetooth, which turns the robot etc etc). I have got Skype or Tango to both give me video and sound to a pc, so that problem is sorted. The thing I cannot solve is how to send e.g. the letter L over the internet and for the phone to know what I sent. I wrote an app that checks the contents of a WebDB every second (it works), but that app stops running when I power up the video chat application. So the question is...how can I get my old Android phone to know that someone via the internet has sent the letter L via Skype or some other way, and for that to happen while I'm also running a video chat application? PS...my phone has no number, no carrier, and can't receive sms messages or calls.
You wrote:
I wrote an app that checks the contents of a WebDB every second (it works), but that app stops running when I power up the video chat application.
So the answer is simple. Write an Android Service that runs on the background and polling the internet. Read about android service, and you can see a real example in the ApiDemos. Good luck!
Related
I am trying to develop a companion app for a project of mine.
I want this app to relay incoming notifications on my phone to a device connected via BLE. This device will then display the text data on a screen, similar to a heads up display so that I can use it in my car and not have to go through my phone while driving (also illegal of course).
I want to know what is required for my app to be able to get notifications, and send it via BLE to the already connected device. I'd also really like to know if this can be done for an iOS app since I would prefer to end up with the final app being built for iOS. If not, android is fine for now.
This device is an ESP32 and will run its own code to execute actions when text is received.
Thank you
I'm completely new to the arduino controlling and programming.
I want to get signal my android smartphone , When a call receive to smartphone I want to acknowledge my Arduino uno board by blinking a LED.
Then if I want to take a call using a physical button I have to answer the call or reject it.
Simply I want to send digital signals from my smartphone to Arduino board and I want to receive the analog button press as response to the phone call(Whether answer/ignore)
I connect phone and Arduino via Bluetooth
This is the Where I have struggling right now.
I need some help on this please!!
It just so happens that I wrote an answer that fits this question a couple of days ago here, this is an edited version of it:
You'll have to buy a module to allow the Arduio to communicate via bluetooth. An example of such a module is the HTC-06, wich can be bought online for less then $10 and for which there is an exellent tutorial over at instructables.
The phone side of the story is explained here, in the official Android documentation. It is sometimes convenient to test with a terminal on your phone, I used this one.
I have some code laying around that can send some data between the Arduino and my phone, I can post it later today if you'd like that.
Alternatively, if you don't want to write everyting yourself, you can use an app like Tinkernut does is one of his videos.
I've been trying to build an app for several weeks already, but it's taking me nowhere and I feel that I'm wasting my time so I come here to ask for your help.
The application should do this:
Connect Phone A to Phone B using bluetooth
The 2 phones should be able to send messages to each other
If not within range, save the message and hold it until the other phone is within range.
I've read a lot about this subject and I think I'm going to use the BluetoothChat sample and modify it so it can do what I want.
I wonder if such an app is possible and how can I approach it using the BluetoothChat sample code?
I want to develop an android application for LAN calling.My app resembles apps like whatsapp, viber etc, so I googled for the same. What I got from different answer is:
Whenever we install whatsapp, the whatsapp server register our number and contact list. The app continuously pings the server and update its status on server.
When we open the app, it gets the data from server, and if a number is found in contact list, it displays the status of the number and other things.
Whenever we message some one, the message goes to server and stays there until delivered successfully.
For my app the two steps are:
Find all the devices which has my app, their IP and mac address.
When devices are found,allow calling between them.
For step 1, I have two options:
As whatsapp, I can have a server. It registers the info of the mobile phone, whenever the app is installed. The app pings the server and shows its status.
I can use my own network device discovery code. This code scans the network and find the devices.
This step is costly, whole network is flooded with the packets. And also it is quite difficult to write network device discovery code.
For step two, I want to implement client-socket programming and simply connect the microphone of one device to the speaker of another phone. I think it is challenging, but it is possible.
Please help me with network discovery code or the server setup. I am quite familiar with android development, but very novice to networking.
Also how calling is done between these devices?
I have searched for the answer and found the following links: Peer-to-peer SIP call with Android SIP Stack?
how to implement voip in android
VOIP on Android libraries or sample code
I also put a question on quora:
https://www.quora.com/How-can-I-develop-an-app-having-feature-like-whatsapp-calling-in-android
But, still I am stuck at the beginning. Please help me with it.
Not a complete answer yet, but here are the things to look for:
Assuming Java is your language, use Multicast Network discovery in Java using multicasting and https://en.wikipedia.org/wiki/IP_multicast
Calling needs more description. Does the call starts immediately (as soon as the peers detect one-another) ? How does one know the identity information - a number or a username etc. ?
I am trying to determine if it is possible to use an incoming call to trigger an Android enabled phone to record video for a particular number of seconds and then send the resulting video file to an e-mail address. Sort of like having remote control camera functionality that is activated by an incoming call. (No particular model of phone or version of Android. I'm first just trying to determine if this is even possible.)
Here is a scenario to help understand how I am trying to apply this:
Two phones are involved, Phone A & Phone B.
Phone A is secured to pole with the camera viewfinder facing it's subject in New York.
Phone B is 3,000 miles away in Portland, Oregon.
Phone B calls phone A.
On receiving the phone call (or any phone call), Phone A automatically begins recording 10 seconds of video, then sends the resulting video file to an outside e-mail address.
All of this is done using the regular telephone cellular network, not wi-Fi
I hope I am clear eneough. You don't have to answer in great length. At this point I'm mainly interested in simply knowing if this is possible, and if so, what level of difficulty and possible limitations might exist depending on things like type of Android phone.
I really appreciate your feedback.
I don't see why it wouldn't work. I think you can have a broadcast receiver for incoming calls and then it's a matter to start video recording and then send the video to your email.
All this can be done, it's a matter of putting it together ;)