如果要在手機發開時在PK內放置HTML檔案,程式再藉由WEBVIEW讀取的話。並須把所需檔案放在asset資料夾內。

而在設置路徑時的字串如下
file:///android_asset/mobileWeb/index.html

戮克 發表在 痞客邦 留言(0) 人氣()


 1
2
3
4
5
6
7
8
9

戮克 發表在 痞客邦 留言(0) 人氣()

winform禁止視窗的放大縮小功能

禁止放大:
把Form裡的MaximuzeBox屬性改成false
禁止縮小:
把Form裡的MinimizeBox屬性改成false

戮克 發表在 痞客邦 留言(0) 人氣()

當你程式碼判斷某個條件要直接跳出函式的時候請勿使用break;會錯誤
如果是沒有回傳值void
直接在要跳出的地方加上
reture;
若是有任何回傳值
reture   回傳值;

戮克 發表在 痞客邦 留言(0) 人氣()

IMEI(International Mobile Equipment Identity)
要查詢自己手機的IMEI碼最快方式
在打電話輸入*#06#

戮克 發表在 痞客邦 留言(0) 人氣()

想要設定ANDROID程式在安裝時要安裝於手機或著額外的SD卡上要去AndroidManifest.xml檔案manifest屬性設定android:installLocation。

android:installLocation

 android:installLocation=["auto" | "internalOnly" | "preferExternal"] 
官方說明






Value Description
"internalOnly" The application must be installed on the internal device storage only. If this is set, the application will never be installed on the external storage. If the internal storage is full, then the system will not install the application. This is also the default behavior if you do not define android:installLocation.
"auto" The application may be installed on the external storage, but the system will install the application on the internal storage by default. If the internal storage is full, then the system will install it on the external storage. Once installed, the user can move the application to either internal or external storage through the system settings.
"preferExternal" The application prefers to be installed on the external storage (SD card). There is no guarantee that the system will honor this request. The application might be installed on internal storage if the external media is unavailable or full. Once installed, the user can move the application to either internal or external storage through the system settings.

戮克 發表在 痞客邦 留言(0) 人氣()