After pairing with a phone via bluetooth, is it possible to access the sd card contents (like music or images)?
Are there any tutorials or sample code for this?
i see an application named "Bluetooth File Transfer" and want to make another like that i read about bluetooth, bluetooth socket but not found any thing useful how to perform that operation i am researching more if i found i will post here the solution if anyone found soon then please post here.... Thanks
Sure it is possible. But you need to know:
Which Bluetooth protocol you want to use? Some of them are here:
Bluetooth protocols
How big data you are willing to share between, because if you have big
data then you need to use some other connection.
You need to know
how to secure data, Bluetooth is very vulnerable.
And you can tell us what you want to do? You are programmer or just asking? If so use link as suggested in your comments.
EDIT:
Here is for example some examples in QT programming language, which I use for developing apps for Android: http://www.developer.nokia.com/Community/Wiki/QBluetooth_-_A_Qt_bluetooth_library
There was a way in early 2000s with Ericsson and Siemens phones with OBEX protocol, and a user file system.
In windows XP with Toshiba stack you had to assign a virtual COM port to a bluetooth device, and install the original phone software, with its RS232 interface IO drivers.
After that you could browse your phone using OBEX tools, or as a disk device, it there was a driver.
If you want to open sd-card and phone storage of any phone using android, then you can follow the following method:
Open your android settings.
Now open bluetooth settings.
Activate your bluetooth.
Search for devices.
Pair the bluetooth device.
Now you will be able to see a setting sign on right side of name of bluetooth device.
Touch that sign. You will now see a file transfer box then ftp client will open and you can open the other phone's storage.
Related
First of all, I want to understand if is possible plug an external micro USB WiFi antenna like this to an android phone and drive it through application to communicate with another android device that have same antenna plugged.
I'm able to detect plugged external antenna in my application using USB Host API of android as specified here and establish an USB connection with it.
In this page there is also a sample that explains how to send commands to an external usb device sending data via connection like "1" "turn left", "2" "turn right".
How can I know what commands (methods/interface/api or data byte stream) I have to send to use device features?
I understand that there is the possibility that I'm saying a lot of stupid things !!! but be patient please!
I also read about this but i cant figure if it is the right way!
I have seen on youtube a Drone driven by an android phone with same antenna plugged through Andropilot application! see video here
There is some guide or tutorial to point me to the right way?
For something like the drone radio you probably saw, you would use the Android Open Accessory protocol to talk to devices over USB. You can prototype and experiment using boards like the Android ADK or the IOIO. Here's a page comparing those boards that has more information: http://forum.xda-developers.com/showthread.php?t=1371750
And here's a simple tutorial showing how to use the ADK to control LEDs via USB: http://www.instructables.com/id/Arduino-ADK-LED-Lighting/
Im currently developing an app for a handheld device, running Android OS and with a built-in termal printer. The app will be used for selling and ticketing. Now, boss ordered a few POS for testing (from China) and, well, shipping takes forever to get here so im doing some research in terms on how the "printing" part works. As of right now, what im doing is storing the tickets inside the sdcard and then i download the file to my pc and print it using my TSP700 desktop printer. My question is.. when it comes to printing on the built-in printer, is it possible to send the file that's supposed to be printed right to the printing queue without having to store a copy of it in the sdcard? Anyone with experience on this kind of situation?
In a word, yes. There isn't any reason for the SD card to be involved at all. I've used receipt printers that are connected via Bluetooth. Since yours is built in, it's likely to be USB. Hopefully the manufacturer publishes a well-documented SDK for the printer, but don't count on it. I had to write my own frame-based serial protocols and receipt formatters. There's probably not a printing queue unless you write one.
How your app can communicate with the built-in printer depends on the manufacturer’s implementation. I would start by finding out from the manufacturer what interface is available to your app and any SDK or samples they offer to integrate printing into your app.
I am currently trying to write an android App that is connected to a application running on a pc (even though windows is preferred linux would be ok, too) via either USB or Bluetooth. Right now I'm not really sure how far this is possible. As far as I understand the USB Android API, I can not really use USB to talk to another application. Only raw file exchange seems to be possible. The Bluetooth idea seems a lot more feasible as I see it. I'd write a bluetooth server for the PC and connect to it via a Bluetooth client written via Android API. Point is, is that possible with windows? Has anyone seen any examples for what I am looking for? All I can find for USB is teethering which is not what I want.
There are android applications which allow you to use your mobile's touchscreen act like a touch pad which can be used to control your pc or laptop via bluetooth or wifi connection just like you are using your laptop's touch pad. PremoteDroid, RemoteDroid, Gmote etc.. to name a few (or only these are available i guess!).
But to do so you also need to develop a server application which will run on the device you wish to control and help u make connection between your mobile and the device. I have used PremoteDroid and RemoteDroid and they both work well on my laptop which runs windows 7. You can even add keyboard functionality.
PremoteDroid is openly available here: http://code.google.com/p/premotedroid/
I have a Bluetooth server application on my Mac that I use to test an Android app I'm writing. The app will eventually be used to communicate with a device with a microcontroller and bluetooth modem, but I needed a way to test the app in the absence of that device. The server app is written in Java, so I think it should work on a PC (and almost certainly in Linux).
I'm happy to share the code with you--I found it somewhere on the Internet (though I can't seem to figure out where now) and modified it as I needed to. It uses the BlueCove library, and is only about 60 lines, including several imports (and the code I commented out but didn't bother deleting :). I also have a Bluetooth client program on my Mac, since my app also has server functionality.
I have never tried to do anything like this using USB.
What I want to achieve, is to make a usb device accessible remotely. Next the device will be connected to an android phone which will contact the server through wireless. I would like to avoid writing a complete handler for the transactions. My approach would like to be a bit abstract and as simple as possible I want the usb to be mapped on the network interface, in a way like the phone will actually work as a proxy for the availability of the usb.
And what is your question exactly ?
What kind of devices do you want to connect ?
Ive heart that only android 3.0 can act as usb host ( not sure on this one)
If you can use a industrial device they os supports it http://www.ozdroid.com/#!PRODUCTS
May be some mods can also act as usb hosts
is this the architecture you are trying to achieve ?
[COMPUTER]->(internet/wlan)->[Android]->[USB Keyboard]
There is no abstract/easy way to do this as far as I know the android api does not support anything like that.
May be there are some solutions for this using linux take a look on the android/debian installer ( needs root)
Something like that will probably need at least some native code if not directly a kernel module ...
IF you crate a proxy for a concrete device (for example a keyboard) you could send the keyboard events to a java ( or other) application on the computer but you need usb host support on the device.
I am creating app in which I had to send data to phone via embedded device.
Is it possible to send file via embedded device to Android phone with Bluetooth?
I don't find any of example of it and I think I need another embedded device like dongle for implementing obex protocol.
You need to read in the bytes of the file that is being submitted by your device. Sample code that connects the android to a separate device can be found in this SO post. There is also a robust documentation of the API as well as a specific sample application. Be aware that many people are finding issues when using the sample application to try and connect the android to a separate device. The issue is explained in this SO post (see the accepted answer), but essentially the connectivity problem is caused by calling listenUsingRfcommWithServiceRecord.
I myself ran into problems with Bluetooth, but using the above resources have been able to quite successfully connect my android with an embedded device. Hopefully this aggregate of information will be of use to you.
You can use the very common UUID for SPP devices: ("00001101-0000-1000-8000-00805F9B34FB");