Home » Android » Browse file system of Raspberry Pi from android via bluetooth

Browse file system of Raspberry Pi from android via bluetooth

Posted by: admin May 14, 2020 Leave a comment

Questions:

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).

How to&Answers:

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.