Time of Update: 2018-12-04
其實這是蠻久之前寫的, 從網易部落格拷過來的,嘿嘿,自己寫了東西,總喜歡多多分享~ 話說,很久之前,我寫了一個小教程,可以順利地在android裡使用lua~但是,有個問題,就是,如果用LdoFile函數來讀取lua指令碼,就會一直找不到路徑。目前,我找到了一個可解燃眉之急的辦法,當然喇,網上已經有這種方法了,我稍微整理一下。首先,請確認你已經能夠成功地在android上使用lua指令碼,否則,你可以看看這篇文章:[小教程]解決android中加入Lua指令碼後安裝APK報錯的問題。
Time of Update: 2018-12-04
文章目錄 基於事件驅動的處理模式按照應用程式開發的流程,簡要介紹下SAX的使用方法總結說明
Time of Update: 2018-12-04
開啟Android工程我們開啟Eclipse環境來,在左上方的菜單上,選擇[File->New->Project],會彈出[New Project]對話方塊.Eclipse是通用的剪輯環境,可根據你所安裝的不同的外掛程式而支援許多種類的工程的建立.點擊[Android]資料夾下的[Android Project]對話方塊,點選"Browse.."按鈕以選擇[開啟已經存在的工程](Create project from existing
Time of Update: 2018-12-04
1.Android SDK應該從什麼地方下載?為什麼(http://developer.Android.com/)經常上不上去? 答:Google官網的(http://developer.Android.com/)這個被和諧了,經常上不去,中國的網路大家都是 知道的呵呵~
Time of Update: 2018-12-04
在Android系統啟動時,核心引導參數上一般都會設定 “init=/init”,這樣的話,如果核心成功掛載了這個檔案系統之後,首先啟動並執行就是這個根目錄下的init程式 。這個程式所了什麼呢? 我們只有RFSC(Readthe Fucking Source code)!!init程式源碼在Android官方 源碼的system/core/init中,main在init.c裡。我們的分析就從main開始。init:(1)安裝SIGCHLD訊號
Time of Update: 2018-12-04
[First written by Steve Guo, please keep the mark if forwarding.]As current music and media player only play files on /sdcard, if you don't have a real SD card, you can use the following hacked method to enable playing without SD card.First, of
Time of Update: 2018-12-04
轉載自http://dai-lm.iteye.com/blog/1264850http://bbs.dospy.com/thread-9991523-1-354-1.html1. 下載apkTool.jar2. cd 到apkTool目錄3. 運行APKTool的時候如果用原帖裡的方法無法運行,試試用"java -jar apkTool.jar d xxxxxx.apk"原帖寫的很好,很詳細我就偷懶,不重複寫了這裡主要分流一下漢化工具注意1.
Time of Update: 2018-12-04
在android 的google map中實現compass mode的2種實現:1.在map over lay上添加指南針: private MyLocationOverlay mlo; // create myLocationOverlay mlo = new MyLocationOverlay(this, map); mlo.enableMyLocation();
Time of Update: 2018-12-04
[代碼] 刪除儲存於手機上的緩衝.view sourceprint?01// clear the cache before time numDays 02private intclearCacheFolder(File dir, longnumDays) { 03 intdeletedFiles = 0; 04 if(dir!= null && dir.isDirectory()) { 05
Time of Update: 2018-12-04
{".3gp", "video/3gpp"}, {".apk", "application/vnd.android.package-archive"}, {".asf", "video/x-ms-asf"}, {".avi", "video/x-msvideo"}, {".bin", "application/octet-stream"}, {".bmp", "image/bmp"}, {".c", "text/plain"}, {".class", "application/o
Time of Update: 2018-12-04
android 擷取手機資訊(device ip,os version etc.)好久沒有寫東西了,今天在做pv log記錄,需要記錄機器的os version, 機器的wifi IP address, 目前時間等等。 調查了一下,分享分享:package com.osip;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Date;import android.app.Activity;
Time of Update: 2018-12-04
package com.gps;import android.app.Activity;import android.location.Location;import android.location.LocationListener;import android.location.LocationManager;import android.os.Bundle;import android.util.Log;import android.view.View;import
Time of Update: 2018-12-04
一般來說開發Android程式都會選擇採用Eclispe,不過Eclispe在建立Android相關project時,並不會同時產生Ant所需要的build.xml,因此再放到Hudson上之前,我們必須要先自己產生相對應的build.xml。當然Google一向都很佛心來的,不會讓我們必須自己做寫build.xml如此痛苦又困難的事情,方法其實很簡單,那就是自己下command產生project時,同時也會產生我們所需要的build.xml,指令可以參考一般專案建立、測試專案建立範例:andr
Time of Update: 2018-12-04
1 Android Add-ons是Android中的可選API。Google和Sun相同,把部分高端應用作為可選API供手機生產商定製不同的硬體支援模組。在JME中Sun是以JSR方式公布而Google採用了Add-ons API。從1.5開始,Google release出的android版本會將Google的一些特色服務分出來,整合到Add-ons中,編譯的庫在add-ons\google_apis-3\libs目錄的map.
Time of Update: 2018-12-04
目的是為了不依賴第三方的jar包進行網路請求(如:commons-httpclient.jar)1. 建立一個串連配置類Java代碼
Time of Update: 2018-12-04
手把手教你做android widget最近要在項目中把Barcode
Time of Update: 2018-12-04
older:In order open api demo in your eclipse File>new>Android ProjectFrom that 'New Android Project' window, you select Create Project from existing sampleWhen you select your target, you can select 'Api-demo' from thesamples listThis will
Time of Update: 2018-12-04
一、什麼是Surface 簡單的說Surface對應了一塊螢幕緩衝區,每個window對應一個Surface,任何View都要畫在Surface的Canvas上(後面有原因解釋)。傳統的view共用一塊螢幕緩衝區,所有的繪製必須在UI線程中進行。 在SDK的文檔中,對Surface的描述是這樣的:“Handle onto a raw buffer that is being managed by the screen
Time of Update: 2018-12-04
http://blog.csdn.net/zqchn/article/details/8770913這幾天在做的項目網盤。上傳時需要用到調用系統內建的檔案管理工具來選擇檔案,後來就在考慮怎麼調用,網上也搜了很久,沒有很好的解決方案,後來在一瞬間發現了一篇不錯的文章,借鑒了一下代碼。/** 調用檔案選擇軟體來選擇檔案 **/private void showFileChooser() {intent = new
Time of Update: 2018-12-04
http://www.cnblogs.com/mainroadlee/archive/2011/01/11/Android_Network_State_Checking_And_Setting.html擷取網路連接狀態隨著3G和Wifi的推廣,越來越多的Android應用程式需要調用網路資源,檢測網路連接狀態也就成為網路應用程式所必備的功能。Android平台提供了ConnectivityManager