Android Open External Storage directory sdcard for storing file

0 votes

want to open external storage directory path for saving file programatically.I tried but not getting sdcard path. How can i do this?is there any solution for this??

private File path = new File(Environment.getExternalStoragePublicDirectory
(Environment.DIRECTORY_PICTURES) + "");
Jun 8, 2022 in Others by polo
• 1,480 points
1,225 views

1 answer to this question.

0 votes

you can't do that.

A workaround is to create a procedure with a parameter and pass its value that way. For example,

create or replace procedure p_disp(par_param in varchar2) is
begin
  dbms_output.put_line(par_param);
end;
/

begin
  p_disp('lf');
end;
/
answered Jun 9, 2022 by nisha
• 2,190 points

Related Questions In Others

0 votes
1 answer

Open file in SDCard on Android

To open a file that is on ...READ MORE

answered Jun 20, 2022 in Others by nisha
• 2,190 points
294 views
0 votes
1 answer

How use File("/sdcard/myfile") without READ_EXTERNAL_STORAGE on android 11?

You first need to use File.exists() and ...READ MORE

answered May 31, 2022 in Others by nisha
• 2,190 points
284 views
0 votes
1 answer
0 votes
1 answer

Android: how to write a file to internal storage

Android offers openFileInput and openFileOutput from the ...READ MORE

answered Nov 4, 2022 in Others by gaurav
• 22,940 points
147 views
0 votes
0 answers

Android Open External Storage directory(sdcard) for storing file

For programmatic file saving, I want to ...READ MORE

Sep 21, 2022 in Android by Edureka
• 12,880 points
193 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
3,075 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,100 points
1,738 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! An example via Matt Cutts via SL4A -- "here’s ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,100 points
522 views
0 votes
1 answer

Android Open External Storage directory for storing file

To get the internal SD card you ...READ MORE

answered Jun 9, 2022 in Others by nisha
• 2,190 points
362 views
0 votes
1 answer

How can i create file at external storage in Android?

We have not had read/write filesystem access ...READ MORE

answered Jun 6, 2022 in Others by nisha
• 2,190 points
1,361 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP