One thing to note is that the emulator does not support bluetooth feature. On Thu, Mar 27, 2008 at 6:07 PM, CaptainFanatic <[EMAIL PROTECTED]> wrote:
> > Thanks for your replies. > Looking at the rfcomm link above it looks like the easiest way to send > data is by writing a byte array to an OutputStream on the > RfcommSocket. > So it looks like it will just be a case of forming an xml string from > a query on my content provider, converting it into a byte array and > sending it. > Sounds easy! > > > On Mar 28, 8:38 am, Diego Pino <[EMAIL PROTECTED]> wrote: > > Never used the bluetooth API, although regarding your other question > > you can write down data to a file. Files are stored under folder > > files/ in your application home directory (usually, data/data/<package- > > name>/ > > > > If you are going to use a ContenProvider (most likely a sqlite > > database) I would skip the XML serialize step. Maybe you could read > > your data from your ContentProvider and componse XML output on-the- > > fly, then send it to your peer. For parsing XML I used SAX and works > > fine, I did not try any DOM API, do not even know if there is any > > delivered together with Android. > > > > br > > > > On Mar 27, 7:56 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > It is possible to send data via bluetooth using the RFCOMM class. > Please > > > check out the documentation at: > > > > > http://code.google.com/android/reference/org/bluez/RfcommSocket.html > > > > > Thanks, > > > Megha > > > > > On Wed, Mar 26, 2008 at 10:36 PM, CaptainFanatic < > [EMAIL PROTECTED]> > > > wrote: > > > > > > I want to share data between two android phones, preferably by > sending > > > > XML files, and I'm hoping for some feedback on what is the best way > to > > > > do this. The reason I want to use XML is to keep things loosely > > > > coupled - this data could then be shared with apps on other > platforms > > > > etc. > > > > > > One method I'm considering is (assuming there will be a standard > > > > bluetooth application for sharing files) to dump data from the SQL > > > > backend of my application into an XML file, that can then be sent in > > > > the same manner as any other file over bluetooth to another phone. I > > > > see that android has methods to write to a file, but where will this > > > > file live and will I be able to access it from a bluetooth app to > then > > > > send it? > > > > > > I look forward to hearing any thoughts on this- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

