Questions tagged [android-file]

Specifically the Android `File` class, but may also refer to the generic concept of files under the Android operating system

Specifically the Android File class, but may also refer to the generic concept of files under the Android operating system.

Use this tag if you have reason to believe your usage of files under Android causes the error your question is referring to.

1038 questions
-1
votes
2 answers

How can i select file on phone not sdcard?

I mean I want to define a file path on phone memory not sdcard. I want to use this : FileOutputStream out3 = new FileOutputStream(Environment.getRootDirectory()+"/a/b.txt"); this gives error. How can i fix this? thanks. error 09-26 19:49:11.050:…
CompEng
  • 7,161
  • 16
  • 68
  • 122
-1
votes
3 answers

How to save image in specific sd card folder with using current time and data format in android?

I want to save a captured image in an SD-card specific folder with current time mills name of the image. How can I do this?
ckpatel
  • 1,926
  • 4
  • 18
  • 34
-1
votes
1 answer

best away to save strings on android

What is the best way to save several strings on android? I thought that the best way was SQLite, but in this case when I close my app the data will be save? When I open the app again the data will be there? Or should I use txt files to save it and…
Lino
  • 295
  • 1
  • 5
  • 19
-2
votes
3 answers

How to delete image file from Android Internal when path is stored in SQLite DB

I Know this is already answered question.But I'm unable to figure it out when using SQLite DB. My app captures some documents and will be stores in phone memory. I'm using SQLite DB in my app which stores the path of the above image. How can i…
Akhila
  • 3,235
  • 1
  • 14
  • 30
-2
votes
1 answer

How to know if a certain file has been accessed/modified by some app?

My app should keep some files under watch. I want to detect any attempt to read/modify these files and which app did it so I can proceed accordingly. Does Android log these types of actions?
McLovin
  • 51
  • 2
  • 6
-2
votes
1 answer

Error occurred when getting file content? Don't know why

I created an output file in my android device, but when I opened it for the second time, I got this Error occurred when getting file content error, I can see this file content under debug env, anyone know what happened to my output file? Any reply…
Ben
  • 541
  • 1
  • 5
  • 15
-2
votes
1 answer

What's the best way to store text data?

I am kinda new to Android development, but I coded a lot of C#(WinF,WPF). I created an quiz app (German words) for app and I'm not quite sure how to store and load dictionaries (a file, where lines contain 2 words). What is the best way to store…
Topna
  • 13
  • 2
-2
votes
3 answers

Android fails to mkdirs()

I know that similar questions has been already asked, but I have already tried to do what I read there. I am writing an app that need to access and create some files, and in my onCreate() method I call the directoryMaker() method: static final…
Davide F.
  • 97
  • 3
-2
votes
2 answers

How to automatically add files to app folder?

I'm trying to add files(images) to the app folder when my app is installed and every time if there is any update, I'd like to add more files to the app folder. How can i achieve this? Thanks a lot. Regards, Dexter
-2
votes
2 answers

from a file into an array of String []

I have a small server that contains the text file which can be that is similar…
-2
votes
3 answers

Android private data files

I've been trying to do some research and learn android. I do not understand what the following code does. public class LogFile extends Activity { private final static String STORETEXT = "storetext.txt"; private TextView write log; public void…
mtorres
  • 197
  • 2
  • 14
-2
votes
2 answers

Read file android

I've created a data.txt using this code : String data = "etc etc etc etc。。" try { FileOutputStream fOut; fOut = openFileOutput("data.txt", MODE_WORLD_READABLE); …
cgpa2.17
  • 309
  • 1
  • 3
  • 12
-3
votes
1 answer

How to view file manually created by android java program

I have created a file using ` try { File myFile = new File("myfile"); if (myFile.exists()) myFile.delete(); outputStream = openFileOutput("myfile", Context.MODE_PRIVATE); …
John
  • 13
  • 5
-3
votes
1 answer

How quiz saves details of answered questions

Hi I'am currently developing an android quiz application.But I need to save the details of the questions that the user answered and want to skip those questions in between(like the logo quiz app that shows a tick mark in the questions…
john shaju
  • 13
  • 5
-3
votes
1 answer

How can I get a picture file from an app I downloaded on my phone?

I downloaded an app onto my phone and the app features some nice images, which I would like to download for my own use (not breaking any copyright issues). Is there any way to access the app's drawable folders and save the images?
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
1 2 3
69
70