How To Create And Read Files In Internal Storage In Android Sdk


show more Creating and reading files in internal storage provides you with in-depth training on Developer. Taught by David Gassner as part of the Android SDK: Local Data Storage show less
please wait ...

Creating and reading files in internal storage

The Android SDK includes all of the tools you need to create and read files. You can create binary or text files. And for text files, you can use your own arbitrary format, or you can use common structured data formats, such as JSON and XML. The files can be placed in either internal or external storage. This refers to whether the file is local to the application or shared with other applications. I'll start with internal files. I'm working in a version of the project called Internal Storage.

This project has an Edit Text control in the layout and then two buttons at the bottom labeled Create file and Read file. And there's also a TextView object at the bottom that I'll use to output information. I'll go to the MainActivity class. I'll expand to full screen, and I'll start in the onCreate method, after the existing code. In order to work with internal files, the first step is to create an instance of the file class. This is the same file class that's used in a...

Creating and reading files in internal storage
Video duration: 10m 18s 3h 41m Intermediate

Viewers:

Creating and reading files in internal storage provides you with in-depth training on Developer. Taught by David Gassner as part of the Android SDK: Local Data Storage

Subject:
Developer
Software:
Android Java
Author:
please wait ...