Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Bài giảng Lập trình cho thiết bị di động: Chương 3 - Trần Duy Thanh
Đang chuẩn bị liên kết để tải về tài liệu:
Bài giảng Lập trình cho thiết bị di động: Chương 3 - Trần Duy Thanh
Hải Anh
110
98
pptx
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Bài giảng Lập trình cho thiết bị di động: Chương 3 trình bày các nội dung sau: Files, XML Parser, shared Preferences, SQLite, content provider,.! | 1 5. Content Provider 4. SQLite 3. Shared Preferences 2. XML Parser 1. Files 1 2 Uses the same file constructions found in a typical Java application Files can be stored in the device’s (small) main memory or in the much larger SD card. Files stored in the device’s memory, stay together with other application’s resources (such as icons, pictures, music, ). We will call this type: Resource Files. Android Files 3 Data storage options Shared Preferences Store private primitive data in key-value pairs. Internal Storage Store private data on the device’s memory. External Storage Store public data on the shared external storage. SQLite Databases Store structured data in a private/public database. Network Connection Store data on the web with your own network server. 4 1. Files 1.1 Internal Storage 1.2 External Storage 1.3 Saving Cache files 5 1.1 Internal Storage Reading Resource File : Everything in the apk will be read only. And it's even better: android doesn't extract the apk when you install a program, so the size consumed is kept to minimal. 6 1.1 Internal Storage Reading Resource File 7 1.1 Internal Storage If you want to Read and Write an internal file: File is stored in the phone’s memory under: /data/data/app/files 8 1.1 Internal Storage Reading an internal File 9 1.1 Internal Storage Writing an internal File 10 1.2 External Storage Reading/Writing to External Device’s SD card. SD card has the obvious advantage of a larger working space. 11 1.2 External Storage Reading 11 12 1.2 External Storage Writing 12 13 1.3 Saving Cache files To speed up your application’s performance and how often it accesses the network create a cache file. Cache files are stored in the following location on the Android file system: /data/data/app/cache Click icon to pull or push file 14 1.3 Saving Cache files If you'd like to cache some data, rather than store it persistently, you should use getCacheDir() to open a File that represents the internal directory where your application . | 1 5. Content Provider 4. SQLite 3. Shared Preferences 2. XML Parser 1. Files 1 2 Uses the same file constructions found in a typical Java application Files can be stored in the device’s (small) main memory or in the much larger SD card. Files stored in the device’s memory, stay together with other application’s resources (such as icons, pictures, music, ). We will call this type: Resource Files. Android Files 3 Data storage options Shared Preferences Store private primitive data in key-value pairs. Internal Storage Store private data on the device’s memory. External Storage Store public data on the shared external storage. SQLite Databases Store structured data in a private/public database. Network Connection Store data on the web with your own network server. 4 1. Files 1.1 Internal Storage 1.2 External Storage 1.3 Saving Cache files 5 1.1 Internal Storage Reading Resource File : Everything in the apk will be read only. And it's even better: android doesn't extract the apk when you .
TÀI LIỆU LIÊN QUAN
Bài giảng Phát triển ứng dụng cho các thiết bị di động: Phần 1
Bài giảng Lập trình cho thiết bị di động: Chương 0 - Trần Duy Thanh
Bài giảng Phát triển ứng dụng cho thiết bị di động - Hồ Thị Thảo Trang
Bài giảng Lập trình cho thiết bị di động: Chương 1 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 2 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 3 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 4 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 5 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 6 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 7 - Trần Duy Thanh
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.