11

Use Case:

I am working on a project which involves a android phone and Raspberry Pi. Raspberry Pi unit would be planted with sensors in the field and once in a while user would walk around with the phone and try to get the readings from the Raspberry Pi. So the app's responsibility is to get the data and plot the graph.

Design:

I was planning to allow user to select the location of the file once the devices are paired. As of now, identification of available devices, programmatic pairing of devices has been done. But I am unable to navigate the Raspberry Pi's file system from android. How do you achieve that?

Any help would be appreciated. In case you pointing to this resource, please explain as well (taken from selected answer here).

Community
  • 1
  • 1
Aman Deep Gautam
  • 8,091
  • 21
  • 74
  • 130
  • So you can connect your Android device over Bluetooth with a Raspberry Pi. And then you have an app you wrote on your Android device which communicates with a program you wrote on the Raspberry Pi?. Please tell a bit how the app and the program communicate. – greenapps Sep 03 '15 at 06:01
  • @greenapps Well, there is a program on Raspberry Pi which writes a file. There is no program on Raspberry Pi, which is communicating with android device. I just need to get that file and plot data with it. – Aman Deep Gautam Sep 03 '15 at 11:37
  • `which is communicating with android device. I`. You mean `which is communicating with an app on a android device. I` – greenapps Sep 03 '15 at 13:37
  • With samba you can expose a directory to the outside world. Then you can browse the directory on the other machine. Don't know if this works with bluetooth. – greenapps Sep 04 '15 at 07:41
  • can you elaborate a little more on how are connecting the two over bluetooth, are you pairing using some application or using stock bluetooth application. – harshitpthk Sep 08 '15 at 19:07

1 Answers1

1

You may deploy a Java application on your Raspberry pi and connect it with your Android app via a bluetooth socket: Send data from android bluetooth to PC with bluecove

From there you can execute File.listRoots() and create your own remote dir browser.

Community
  • 1
  • 1
Ari
  • 1,361
  • 1
  • 15
  • 23