(轉自)http://makingmoneywithandroid.com/forum/showthread.php?tid=298[HOW TO] Get the Number of CPU Cores in an Android Device/** * Gets the number of cores available in this device, across all processors. * Requires: Ability to peruse the filesystem
public class CreateFile extends Activity { private BufferedReader reader; private TextView tvFileReader; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {
he following are the porting steps.0. Setting Compiler- Environment variables for ARM compiler- export ARCH=arm- export CROSS_COMPLIE=arm-eabi-- export PATH=$PATH:(Android Source Directory)/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin1. Kernel
簽名的方法1:開啟Eclipse->選擇你要簽名的項目->右擊->android tools->Export signed Application package 彈出如下視窗2:選中你要簽名的項目,然後next,因為我們是第一次簽名,還沒有簽署憑證,所以先create new keystore,以後就不用再建立了,直接選擇已存在的認證。選擇認證儲存的位置,填入密碼,然後next,3: 填寫簽證的資訊,包括:別名,密碼,有效期間,姓名,組織,組織名稱,所在城市,所在省份,
修改main.java,調用前面的類,從intentert擷取rss列表並顯示在ui上:public final String RSS_URL = "http://blog.sina.com.cn/rss/1267454277.xml";//從網路擷取RSS地址public final String tag = "RSSReader";private RSSFeed feed = null;/** Called when the activity is first created. */