原创 修改Applet classID掛起小程序

修改Applet classID掛起小程序好像重啓就可以了

原创 Access violation reading location 0x00000000

Access violation reading location 0x00000000   首先解釋一下這種錯誤,意思是:違反規則訪問地址爲0x00000000的內存,並且你沒有處理這個異常。    一般來說,這種錯誤產生的原因是:你使

原创 differs in levels of indirection from 'void

>./src/txtreader_app.c(2014) : warning C4047: '=' : 'int' differs in levels of indirection from 'void *'1>./src/txtread

原创 error

Microsoft (R) Visual Studio Version 8.0.50727.42.Copyright (C) Microsoft Corp 1984-2005. All rights reserved.1>------ B

原创 error C2143

1>./src/txtreader_app.c(1028) : error C2143: syntax error : missing ';' before 'type'   在大括號內變量的定義必須在使用其他操作之前 點贊

原创 編譯中的error和warnning

error LNK2019: unresolved external symbol        是因爲編譯器找不到包含我們使用的函數的某一個庫(xxx.lib)或頭文件  error C2231: '.pfnOnFinish' : l

原创 error 2

 warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file

原创 android AppWidget

 什麼是AppWidget?AppWidget就是我們平常在桌面上見到的那種一個個的小窗口,利用這個小窗口可以給用戶提供一些方便快捷的操作。本篇打算從以下幾個點來介紹AppWidget:      1.如何

原创 android content providers相關

content providers 用於儲存和接收數據同時把數據用於所有的應用。 這是應用之間共享數據的唯一方式。android中沒有公共的數據區讓應用可以使用、 android爲一些常見的數據類型(audio,video,perso

原创 android線程 message和runnable

 程序需要相應用戶的操作,最要能在200ms(0.2s)之內,如果超過5秒沒有反應,ActivityManager會沒有提示就kill了 activity。然而,activity可能真的需要時間來進行處理,

原创 WeakReference與SoftReference

  如果你想寫一個 Java 程序,觀察某對象什麼時候會被垃圾收集的執行緒清除,你必須要用一個 reference 記住此對象,以便隨時觀察,但是卻因此造成此對象的 reference 數目一直無法爲零,

原创 android 掃描SD卡與系統文件

 當手機或模擬器開機時,會調用android的MediaScanner,掃描sd卡和內存裏的文件。以下是log信息。 112-13 15:39:11.062: VERBOSE/MediaPlayerServ

原创 ListActivity簡介

 public class ListActivityextends Activityjava.lang.Object   ↳android.content.Context    ↳android.conte

原创 android 進程與線程 相關

默認條件下,一個應用中的所有組件都運行在相同的進程和線程(主線程)。   如果你需要控制一個特定組件屬於哪個進程,可以在manifest 文件中定義 manifest 文件中的每一種元素類型都有一個android:process 屬性可以

原创 android intent相關

intent 在android中就像activity之間包括不同class中的activity交互的膠水,把他們聯繫起來。   intent主要有以下幾個重要組成部件 action ACTION_VIEW, ACTION_DIAL等 標準