Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75957
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re: how to write file into my android phone? |
| Date | 2014-08-09 18:23 -0400 |
| Organization | news.gmane.org |
| References | <53E660BF.7080401@gmail.com> <CAMw+j7J6_R2pR3PTch3okxqYDs57rOoKHLbssHrq54Q75gGLSw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12801.1407622953.18130.python-list@python.org> (permalink) |
Chris “Kwpolska” Warrick <kwpolska@gmail.com> Wrote in message: > On Sat, Aug 9, 2014 at 7:56 PM, luofeiyu <elearn2014@gmail.com> wrote: >> When i input usb line with my android phone into the pc , there are two >> disks j: and k: (type :removable disk) displayed in win7. >> >> i can get my android phone bluetooth mac address . >> >> import bluetooth >> nearby_devices = bluetooth.discover_devices(lookup_names = True) >> for addr, phoneName in nearby_devices: >> print(addr) >> >> >> it is 6C:8B:2F:CE:5B:59 >> >> Now how can i write a file into the disk j: of my android phone(bluetooth >> mac is 6C:8B:2F:CE:5B:59 )? >> >> -- >> https://mail.python.org/mailman/listinfo/python-list > > You mixed up two very different interfaces. Bluetooth and USB are > completely separate. If you want to write a file to the USB drive, > you can just open a file, using the regular open() function (specify a > path somewhere benath J:\): 1) it's not necessarily j: And not necessarily a single drive. 2) the phone isn't necessarily visible on a pc as a drive at all. For example the Samsung gs4. > -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to write file into my android phone? Dave Angel <davea@davea.name> - 2014-08-09 18:23 -0400
csiph-web