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 in Others by polo
• 1,500 points
30 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 by nisha
• 2,160 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 in Others by nisha
• 2,160 points
7 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 in Others by nisha
• 2,160 points
20 views
0 votes
1 answer
0 votes
1 answer

Get files in my own file format for its own dynamic icon

Regarding MAC support, "The Mac and Windows ...READ MORE

answered Jan 8, 2019 in Others by DataKing99
• 8,240 points
552 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
2,953 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,080 points
1,510 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,080 points
388 views
0 votes
1 answer

How can we get the current location in Android?

First you need to define a LocationListener to handle ...READ MORE

answered Sep 25, 2018 in Java by Parth
• 4,630 points
367 views
0 votes
1 answer
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 in Others by nisha
• 2,160 points
22 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP