Chủ Nhật, 5 tháng 12, 2010

Hướng dẫn cách cài đặt và tích hợp Android Plugin vào Eclipse

 Hướng dẫn chi tiết cho các bạn cách cài đặt hay đúng hơn là tích hợp Android Plugin vào Eclipse để giúp chúng ta dễ dàng tạo và quản lí Android Project.

Để thực hành thì trước tiên chúng ta cần phải làm những bước cơ bản sau:

1. Tải Eclipse 3.5 (GALILEO) tại địa chỉ sau: http://www.eclipse.org/downloads/dow...-3.5-win32.zip

hoặc http://d2u376ub0heus3.cloudfront.net...-3.5-win32.zip

2. Giải nén tệp vừa cài đặt vào thư mục mà bạn muốn đặt Eclipse, ví dụ: C:\Eclipse3.5 (nếu bạn dùng nhiều phiên bản eclipse khác nhau thì nên đặt tên theo kiểu này) hoặc C:\Eclipses (nếu bạn chỉ dùng duy nhất 1 phiên bản eclipse) - Ổ đĩa không bắt buộc là ổ C.

***Sau khi đã hoàn tất 2 bước trên chúng ta sẽ tiến hành cài đặt Android plugin theo các bước sau:
Bước 1: Khởi động Eclipse


Bước 2: Chọn Help/Install New Update


Bước 3: Chọn nút Add trên hộp thoại để hiện của sổ Add site
Bạn hãy làm theo những gì trên hình dưới đây
Lưu ý: hộp Name có thể đặt tên theo ý của bạn còn hộp Localtion thì bắt buộc phải là https://dl-ssl.google.com/android/eclipse/

[Bạn hãy chọn OK để để tiếp tục quá trình cài đặt]

Bước 4: Đợi eclipse lấy thông số plugin từ địa chỉ trên


Bước 5: Bạn check vào Developer Tools sau đó chọn Next để tiếp tục


và đợi eclipse gom các yêu cầu hệ thống và các thư viện liên quan sau đó sẽ tải chúng về nếu máy của bạn chưa có sẵn


Bước 6: Chọn Next theo hình sau


Bước 7: chấp nhận thỏa thuận sử dụng sau đó chọn Finish


Bước 8: Ngồi đợi quá trình cài đặt tự động 


Bước cuối cùng là Restart lại Eclipse hoặc chọn Apply để Eclipse cập nhật những thông số cho Android.
Lưu ý: bạn nên restart lại.


Phù! vậy là chúng ta đã hoàn thành việc tích hợp Android vào Eclipse

Lập trình với: Google Android Mobile

Lập trình với: Google Android Mobile

Đã từ lâu bạn mê mẩn với các ứng dụng tiện ích thông minh của Google. Từ hệ thống email siêu tưởng 7GB (Google Mail), hệ thống chia sẻ văn bản dành cho văn phòng (Google Docs) cho đến các hệ thống định toàn cầu của Google Map, Google Earth. Tất cả chúng đều mang một phong cách riêng của Google, phong cách của sự sáng tạo.
Đầu năm 2009, Google tung ra thị trường hệ điều hành đầu tiên của mình dưới cái tên Google Android. Phiên bản đầu tiên của Android chạy trên các thiết bị Mobile. Cũng giống như các phần mềm khác của Google, Android hỗ trợ rất tốt cho các ứng dụng viết bằng ngôn ngữ Java.
Và tuyệt với hơn nữa, Google cung cấp riêng một SDK giúp các lập trình viên dễ dàng hơn trong việc viết nên các ứng dụng chạy trên Android. Google hứa hẹn sẽ tung ra phiên bản Android cho máy PC vào đầu năm 2010 và đánh chiếm một phần thị trường hệ điều hành rất tiềm năng này. Lúc ấy, các lập trình viên Java chắc chắn sẽ có nhiều đất để dụng võ.
Vậy bạn có sẵn sàng để trở thành một lập trình viên? Hãy thử một lần xem sao nhé:
Bước 1: Chuẩn bị các công cụ cần thiết
1. Download Google Android SDK tại địa chỉ
http://code.google.com/android/download.html
Giải nén và đặt vào thư mục C:\tools\android
2. Download công cụ build Ant tại địa chỉ
http://ant.apache.org/bindownload.cgi
Giải nén và đặt vào thư mục C:\tools\ant
3. Nếu bạn chưa có JDK hãy download tại địa chỉ
http://java.sun.com/javase/downloads/index.jsp
Cài đặt JDK vào thư mục C:\tools\java
4. Nếu muốn phát triển các ứng dụng có giao diện đồ hoạ trên Android, bạn hãy download thêm framework DroidDraw tại địa chỉ
http://code.google.com/p/droiddraw/
Sau đó cũng giải nén vào thư mục C:\tools\droiddraw
5. Đừng quên đặt các biến môi trường ANT_HOME và JAVA_HOME với giá trị tương ứng là C:\tools\ant và C:\tools\java. Sau đó thêm vào biến CLASSPATH đường dẫn tới thư mục bin của Ant và Java (C:\tools\ant\bin  C:\tools\java\bin). (để thiết lập biến môi trường: click chuột phải vào My Computer -> Properties -> Advanced -> Environment Variables)
Bước 2: Triển khai ứng dụng HelloWorld trên Android
Khi chạy ứng dụng này, rất đơn giản, sẽ có dòng chữ “Hello, World” xuất hiện trên màn hình điện thoại.
1. Khởi động trình mô phỏng (Emulator) bằng cách chạy C:\tools\android\tools\ emulator.exe. Nếu mọi việc tốt đẹp, trình mô phỏng máy điện thoại Google Phone thế hệ 1 chạy Google Android sẽ xuất hiện trên màn hình
2. Sau khi emulator khởi động xong, ta vào chế độ dòng lệnh, chuyển sang thư mục C:\tools\android\tools
3. Thực thi lệnh sau đây để tạo ứng dụng đầu tiên lên điện thoại
C:\tools\android\tools>activitycreator.bat --out tipcalc com.android.tipcalc
4. Sau khi chạy xong, ta thấy xuất hiện thư mục tipcalc. Thực thi tiếp lệnh:
C:\tools\android\tools>cd tipcalc
C:\tools\android\tools\tipcalc>ant
5. Cuối cùng thực hiện lệnh sau để cài đặt ứng dụng lên điện thoại
C:\tools\android\tools\tipcalc>..\adb install bin\tipcalc-debug.apk
6. Bây giờ ta vào menu chính của điện thoại, icon của ứng dụng tipCalc sẽ xuất hiện:
7. Nhấn đúp chuột vào icon trên màn hình để chạy ứng dụng tipCalc
Tip *** Nếu bạn muốn phát triển một ứng dụng có giao diện đồ hoạ, thật đơn giản, khởi động framework DroidDraw bằng cách chạyC:\tools\droiddraw\droiddraw.exe.
Trả lời với trích dẫn

Thứ Bảy, 4 tháng 12, 2010

How to root Liquid E

REQUIREMENTS:
OS: Windows/Mac
Other: USB cable
Unlocks bootloader: Yes (You can install custom ROMs)
Steps:
1. Enable "USB Debugging" on the phone under Settings->Applications->Development->USB debugging
2. Download and extract the latest Android SDK 
3. Download and install fastboot drivers
4. Open up a command prompt (Windows) or terminal (Mac), and browse to where you just extracted the SDK and browse to the "tools" folder under command prompt (if extracted to c:\tools and you are in c:, type 'cd c:\tools")
5. Download the latest malezrecovery custom recovery disk image and put it into the "tools" folder.
6. Connect your phone to your computer.
7. In the command prompt, type "adb devices" (NO QUOTES). You should see if your device is detected by your computer. If there's nothing showing under 'List", you don't have the drivers installed (Go back to step 3 and install the drivers)
8. Now we will install the custom recovery. Still in command prompt, type:
(replace NAME.img with the filename of the malezrecovery custom recovery disk image you just downloaded)
Code:
adb reboot bootloader
fastboot -i 0x0502 flash recovery NAME.img 
fastboot -i 0x0502 reboot
When you are done, it will say something like this on your computer: sending 'recovery' (4876 KB)... OKAY writing 'recovery'... OKAY
This will reboot your phone back into the normal firmware.
9. Now you need to get into the custom recovery by typing "adb reboot recovery" (NO QUOTES) into command prompt. At this point your phone will reboot.

How to Root the Acer Liquid A1

Guide to Root the Acer Liquid a1:

Step 1: Download and install the Acer Liquid drivers for your windows version.
Step 2: Download the Acer Liquid 2.1 Firmware and save it on your desktop.
Step 3: Download the Acer Flashing Tool and run it. Browse to the .bin file from Step 2 and select it.
Step 4: Connect the smartphone to the PC using an USB cable and click Start into the flashing tool.
Step 5: Download Superboot and extract the .zip file.
Step 6: Double-click on the Superboot.bat file and wait for the reboot.
Rooting is a process that grants the user full access to his phone. That means system files modifications, the installing of forbidden applications, changing the icons and so on.
You can basically do whatever you want with it. You can even unlock the phone and use it on any carrier or take advantage of its tethering abilities.
Acer users can now rejoice on the thought that you can root the Acer Liquid a1. The lines bellow will guide you towards the routing process and also, it will upgrade the phone to Android 2.1.
The Acer Liquid A1
The Acer Liquid A1
Before you get started, you need to know that if you choose to root, you will lose the warranty and could end up with a bricked phone, if you do not follow our steps carefully.

How to root Liquid E to 2.1


I. Before You Begin


This will give you root access and upgrade you to Android 2.1


II. Download and install the Liquid Drivers

1. Download the drivers

Acer Liquid Drivers

(x86 for 32bit Windows, x64 for 64bit Windows)

2. Click Acer Liquid Tool Setup and follow the steps to install the drivers.

III. Flash the Firmware with the Acer Flashing Tool

1. Download the Acer Liquid 2.1 Firmware

2. Save the .bin file somewhere on your computer that you can find it easily later.

3. Download the Acer Flashing Tool

4. Run the Acer Download Tool and click Browse. Then look for the .bin file we downloaded earlier and click that.

5. Connect your phone to the computer via usb and then click Start in the Download Tool.

*I ran into an issue where it said Not Connected while Starting AMSS. Wait a good 5 minutes and if it is still stuck, remove the usb cable and put it back in, this fixed it for me.

6. Once it reboots, goto Menu > Settings > Applications > Development > Check ON USB Debugging.

IV. Install Superboot and Custom Recovery Image

1. Download Superboot2.zip

Superboot.zip

(updated 6/23/10)

2. Unzip the superboot.zip file.

3. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

4. Then double click the install-superboot-windows.bat file and wait for it to finish. The phone will reboot.

5. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

6. Then double click the install-recovery-windows.bat file and wait for it to finish.

7. Once it reboots, you are all set! You have root access, Android 2.1, and a custom recovery image to flash ROMs with!

NOW, you can load custom ROMs! Head over to our How To Load a Custom ROM on the Acer Liquid

procedure for how to get started.

Liquid E - root access and upgrade to Android 2.1

I. Before You Begin

1. This will give you root access and upgrade you to Android 2.1

II. Download and install the Liquid Drivers

1. Download the drivers

Acer Liquid Drivers (x86 for 32bit Windows, x64 for 64bit Windows)

2. Click Acer Liquid Tool Setup and follow the steps to install the drivers.

III. Flash the Firmware with the Acer Flashing Tool

1. Download the Acer Liquid 2.1 Firmware

Acer Liquid Rooted Firmware

2. Save the .bin file somewhere on your computer that you can find it easily later.

3. Download the Acer Flashing Tool

Acer Flashing Tool

4. Run the Acer Download Tool and click Browse. Then look for the .bin file we downloaded earlier and click that.

5. Connect your phone to the computer via usb and then click Start in the Download Tool.

*I ran into an issue where it said Not Connected while Starting AMSS. Wait a good 5 minutes and if it is still stuck, remove the usb cable and put it back in, this fixed it for me.

6. Once it reboots, goto Menu > Settings > Applications > Development > Check ON USB Debugging.

IV. Install Superboot and Custom Recovery Image

1. Download Superboot2.zip

Superboot.zip (updated 6/23/10)

2. Unzip the superboot.zip file.

3. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

4. Then double click the install-superboot-windows.bat file and wait for it to finish. The phone will reboot.

5. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

6. Then double click the install-recovery-windows.bat file and wait for it to finish.

7. Once it reboots, you are all set! You have root access, Android 2.1, and a custom recovery image to flash ROMs with!

NOW, you can load custom ROMs! Head over to our How To Load a Custom ROM on the Acer Liquid procedure for how to get started.

How to root Liquid E to 2.1


II. Download and install the Liquid Drivers

1. Download the drivers

Acer Liquid Drivers

(x86 for 32bit Windows, x64 for 64bit Windows)

2. Click Acer Liquid Tool Setup and follow the steps to install the drivers.

III. Flash the Firmware with the Acer Flashing Tool

1. Download the Acer Liquid 2.1 Firmware

2. Save the .bin file somewhere on your computer that you can find it easily later.

3. Download the Acer Flashing Tool

4. Run the Acer Download Tool and click Browse. Then look for the .bin file we downloaded earlier and click that.

5. Connect your phone to the computer via usb and then click Start in the Download Tool.

*I ran into an issue where it said Not Connected while Starting AMSS. Wait a good 5 minutes and if it is still stuck, remove the usb cable and put it back in, this fixed it for me.

6. Once it reboots, goto Menu > Settings > Applications > Development > Check ON USB Debugging.

IV. Install Superboot and Custom Recovery Image

1. Download Superboot2.zip

Superboot.zip

(updated 6/23/10)

2. Unzip the superboot.zip file.

3. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

4. Then double click the install-superboot-windows.bat file and wait for it to finish. The phone will reboot.

5. Double click on the reboot-bootloader-windows.bat file and wait for the phone to boot into bootloader mode.

6. Then double click the install-recovery-windows.bat file and wait for it to finish.

7. Once it reboots, you are all set! You have root access, Android 2.1, and a custom recovery image to flash ROMs with!

NOW, you can load custom ROMs! Head over to our How To Load a Custom ROM on the Acer Liquid

procedure for how to get started.