Questions tagged [fileoutputstream]

FileOutputStream is a Java class used to write bytes directly to a File or to a FileDescriptor.

FileOutputStream is a Java class used to write bytes directly to a File or to a FileDescriptor.

Whether or not a file is available or may be created depends upon the underlying platform. Some platforms, in particular, allow a file to be opened for writing by only one FileOutputStream (or other file-writing object) at a time. In such situations the constructors in this class will fail if the file involved is already open.

FileOutputStream is meant for writing streams of raw bytes such as image data. For writing streams of characters, consider using FileWriter.

1128 questions
-4
votes
2 answers

Could not save image in external directory

I could not save Image in external directory in my android app. I practices myself and searched for the same problem but nothing could help me. All i want to do is display a dialog with that image, and give user a option to save it and if saved view…
-4
votes
1 answer

Does child class serialize parent class' members that aren't serializable?

If class B extends class A, class B implements Serializable, and class A has a public static initialized variable that is not serializable... trying to write a class' B object with writeObject() method of FileOutputStream, will serialize the…
-4
votes
2 answers

Saving an ArrayList doesnt work

Today I started my first Android App-Project and - of course - I'm stuck with a problem. I want to make a really simple app do get into the the whole programming thing, and I'm in my holidays right now so I thought it would be interesting to save…
1 2 3
75
76