2014년 9월 10일 수요일

안드로이드 asset에 있는 DB파일(SQlite) 불러와 활용하기 /File Stream class, AssetManager class

Reference_android developer

public final class

AssetManager

extends Object
java.lang.Object
   ↳android.content.res.AssetManager

Class Overview

Provides access to an application's raw asset files; see Resources for the way most applications will want to retrieve their resource data. This class presents a lower-level API that allows you to open and read raw files that have been bundled with the application as a simple stream of bytes.
asset폴더에 위치한 파일을 찾거나 관리한다.


public class

File

extends Object
implements Serializable Comparable<T>
java.lang.Object
   ↳java.io.File

Class Overview


An "abstract" representation of a file system entity identified by a pathname. The pathname may be absolute (relative to the root directory of the file system) or relative to the current directory in which the program is running.
The actual file referenced by a File may or may not exist. It may also, despite the name File, be a directory or other non-regular file.
This class provides limited functionality for getting/setting file permissions, file type, and last modified time.
On Android strings are converted to UTF-8 byte sequences when sending filenames to the operating system, and byte sequences returned by the operating system (from the various list methods) are converted to strings by decoding them as UTF-8 byte sequences.

댓글 없음:

댓글 쓰기