Tạo một Android Project đầu tiên

Tạo một Android Project đầu tiên

Bước 1:

Mở eclipse, chọn File->New->Android Application Project (trường hợp Android Application Project không hiện ra, ta nhấn vào Other).

Nhấn vào Other hiện ra khung như sau, chọn Android/Android Application Project.

Nhập thông tin Project:

Minimum Required SDK: Phiên bản Android thấp nhất có thể chạy chương trình này.
Target SDK: Phiên bản hiện tại của chương trình.
Compile With: Biên dịch sang phiên bản khác.

Nhấn Next cho đến khi hoàn tất.

Đây là cấu trúc cây thư mục của một Android Project.

Bước 2: Thiết kế giao diện

Double click vào file main.xml (để thiết kế giao diện).

Chú ý vùng bên dưới có 2 tab Graphical và main.xml cho phép ta chuyển đổi qua lại giữa thiết kế giao diện bằng thao tác và bằng lệnh xml

Vào tab xml để thay đổi chữ “Hello world” thành “Nhất Nghệ – lớp lập trình Android”

Nhấn Run As chọn Android Application.

Tip: Nên chạy thiết bị ảo trước khi chạy project, chạy project xong không nên
đóng thiết bị ảo lại, mỗi lần mở lại sẽ rất lâu.

Hoàn tất, đợi chút để chương trình chạy và xem kết quả

Theo khoapham.vn

Bạn thấy bài viết này như thế nào?: 
Average: 10 (1 vote)
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Ý kiến Git và Bash aliases từ Alex Pott đang làm ở Chapter Three

Ý kiến Git và Bash aliases từ Alex Pott đang làm ở Chapter Three

I create a branch for every Drupal core issue that I work on and use the issue’s node id as a branch name. For example:

Tạo mới một node với Node Option Premium.module

Tạo mới một node với Node Option Premium.module

Node Option Premium lets you show a content teaser to the public but show the full content only to people who are logged in and have a certain role. This is typical of the strategy used by many newspapers and magazines with their paywall.

[Phần 2] -Tạo trang Contact Page: Validators, Forms and Emailing

[Phần 2] -Tạo trang Contact Page: Validators, Forms and Emailing

Now we have the basic HTML templates in places, its time to make one of the pages functional. We will begin with one of the simplest pages; The Contact page.

Công ty diệt chuột T&C

 

Diet con trung