Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Deleting files on an Android device  (Read 357 times)
Richard M.
Posts: 14


« on: October 23, 2024, 12:16:16 pm »


Our application uses ui.Interface.frontCall( "mobile", "takePhoto", [], [path] ) to enable a photo to be taken using the device camera.

path is an 'opaque' location of the photo on the device which is available for use in the current iteration.

An example of the path returned is 'content://media/external_primary/images/media/457?name=JPEG_GMA_20241022_170235.jpg&ext=jpg'

I was hoping to use os.Path.delete() to remove the picture, but the path above looks like a URL and is invalid when used in os.Path.delete().

Any ideas on how to do this?

Thanks
Richard M.
Posts: 14


« Reply #1 on: October 28, 2024, 03:18:34 pm »


The path that seems to work is '/sdcard/Pictures'
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines