When I first started dabbling with Android, it took me a while to understand the framework, and how data is passed between screens (which are known as 'Activities' in Android).
Eclipse Version: Indigo Service Release 2
android-sdk_r18-linux
Ubuntu 12.04
Problem
import android.support.v4.app.Fragment;
there is no file android-support-v4.jar
Solution
right-click on the project > Android Tools > Add Support Library...
Ref: http://code.google.com/p/android/issues/detail?id=21488
As some of you maybe have read I made a little one-size-fits-all Mobile Web App template site using jQuery Mobile a little while ago. I put up a demo on my new little virtual test-server (thank you, Everweb).
Instead, follow the (widely available) instructions for importing the third-party library, then adding it using Build Path (which makes it known to Eclipse for compilation purposes). Here is the step-by-step:
The most convenient way to do a factory reset is via the phone settings.
1. Press HOME > MENU, and then tap Settings > SD card & phone storage > Factory data reset.
2. On the Factory data reset screen, tap Reset phone, and then tap Erase everything. Your phone will erase all personal data and restart. It may take a few minutes for the process to complete.
Performing a factory reset using phone buttons
ก่อนอื่นต้องติดตั้งโปรแกรม AppInstaller จาก Market place ก่อน
จากนั้นไปหาไฟล์ .apk มาทำการติดตั้ง อาจจะหาจาก https://slideme.org หรือ http://www.4shared.com
ที่มา thaiandroidclub.com/, zayyes.com/
1) ตรวจสอบว่าได้ทำการติดตั้ง AVD แล้วหรือยัง
2) Set a target for your project (i.e.: Google APIs 1.6) โดยคลิกขวา ที่โปรเจ็กส์ของเรา แล้วเลือก Properties -> Android -> Project Build Target ให้เลือกเป็น Google APIs
แก้ไข ให้เป็น English
จากนั้นไปที่ "C:\Documents and Settings\<user>\.android" หรือ "C:\Documents and Settings\<user>\Local Settings\Application Data\Android" แล้วทำการลบไฟล์ debug.keystore
เสร็จแล้วให้ rebuild โปรเจ็กส์ใหม่ โดยไปที่เมนู Project>Clean ... จากนั้นก็รันตามปกติ
ก่อนอื่น ทำการดาวน์โหลดและติดตั้ง Eclipse เวอร์ชั่น 3.4 หรือใหม่กว่า
http://www.eclipse.org/downloads/
ดาวน์โหลด SDK (SDK download page)
เซ็ต path ของ Windows ไปที่ tools/
directory
ติดตั้ง ADT Plugin
เปิด Eclipse แล้วเลือกเมนู Help > Install New Software.