Skip to main content

Posts

Showing posts with the label Hướng dẫn lập trình android

Bài 2 - Cài đặt máy ảo Android Genymotion

Phần mềm giả lập máy ảo trên Android [media=youtube]zeA7uhpVplU[/media] Bước 1: Đăng ký tài khoản   https://cloud.genymotion.com/page/customer/login/?next=/page/launchpad/download/ Bước 2: Tải và cài đặt  Oracle VirtualBox  hoặc có thể tải  gói Genymotion  có tích hợp sẵn VirtualBox. Cài đặt Genymotion theo các chỉ dẫn trên màn hình. Cụ thể: You'll need the following: Virtual Box Genymotion app Installation Starting up the app for first time after installation. You'll need to log in to download the virtual device After logging in, select the virtual device or variant you want to try out. Just hit next.  Wait for it to get downloaded. Select the virtual device you just downloaded and hit start/play. Playing around You'll be greeted with this lockscreen. #Just for thread's sake   . Features You can configure battery level. You can even set the coordinates/ configure GPS. It

Bài 1 - Hướng dẫn cài đặt Eclipse

Bước 1/3: Tải  Eclipse đã được cấu hình sẵn: Bước 2/3: Chạy  file  jdk-7u40-windows-x64.exe  trước ( nếu máy bạn 32 bit vui lòng down bản 32bit)   Bước 3/3: Vào thư mục eclipse chạy file  eclipse.exe  để bắt đầu lập trình android. Link  Download :  https://drive.google.com/file/d/0B6aHy9Nd8VFiVWR4MDBiYU0wWVk/edit?usp=sharing Lưu ý: bạn máy 64 bit với 32 bit Video hướng dẫn: 

Bài 5 - Các Layout cơ bản Android

1. Linear Layout 1.1 Giới thiệu Linear Layout LinearLayout là một view group sắp xếp các phần tử trong nó theo một hướng dọc hoặc ngang, được chỉ định thông qua attribute  android:orientation 1.2 Ví dụ giao diện cần tạo 1.3 Code 1.3.1 Code XML <?xml version="1.0" encoding="utf-8"?> <!-- Parent linear layout with vertical orientation --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="25dp" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dip" android:text="Email" /> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dip&qu

Bài 4 - Cấu trúc 1 project Android

1. src   thư mục chứa code xử lý của toàn bộ ứng dụng ( JAVA) 2. gen thư mục tự động sinh của eclipse ( chứa id của các control được ánh xạ tự giao diện -> xử lý ) 3. Android 4.3  phiên bản của ứng dụng 4. Android Private Libraris chứ file thư viện được sử dụng trong ứng dụng 5. asset  thư mục chứa các skin do người dùng định nghĩa ( sẽ được sử dụng để thiết kế giao diện) 6. bin thư mục để buil ứng dụng + chứa file AndroidMainifest.xml: khai báo các đối tượng được sử dụng trong ứng dụng + file .apk: file cài đặt sau khi đã chạy ứng dụng( úp lên app, thả vào thiết bị thật để sử dụng) 7. libs chứa các thư viện được sử dụng trong ứng dụng 8. res chứa tài nguyên của ứng dụng (hình ảnh, âm thanh,...) + layout: chứa các activity + menu: cấu hình menu cho nút menu khi mở ứng dụng Bài viết bản quyền bởi admin StudyCoding