轉自:http://blog.csdn.net/xuzhuang2008/archive/2011/04/13/6321477.aspx Java代碼 1.Notification n = new Notification(R.drawable.face_1, "Service啟動", System.currentTimeMillis()); 2.PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new
private boolean displayMap(int cellID, int lac) throws Exception { String urlString = "http://www.google.com/glm/mmap"; //---open a connection to Google Maps API--- URL url = new URL(urlString);
今天在debug的時候遇到這樣一個錯誤:Launch error: Failed to connect to remote VM. Connection timed out.網上查了下也沒找到解決辦法,於是自己試了下,發現只要在debug裡面選到你的工程,然後右鍵選擇Terminate and Remove也就是結束和移除選項或者選擇Terminate
匯入Android SDK中Sample下ApiDemos報錯的解決辦法 今天突然想看下Sample下面Google為我們提供的例子是在麼寫的,就選了歌例子匯入,誰知匯入後沒錯,啟動並執行時候出先了下面的錯誤:[2011-09-21 11:01:52 - ApiDemos] Re-installation failed due to different application signatures.[2011-09-21 11:01:52 - ApiDemos] You must
1.當安裝好android後,建立的工程運行時,彈出對話方塊“Your project contains error(s),please fix them before running your application ”,下面出現“Manifest attribute 'minSdkVersion' is set to '***'.Integer is expected.”的錯誤提示? (如)每次看到這個都是生不如死啊!幾乎用盡了一切辦法啊,最後終於找到比較好的解決方案了!最後才知道是
在看Android2.2SDK源碼時,在MemoryFile.java中看到有這麼一段代碼:private final boolean mOwnsRegion;// false if this is a ref to an existing ashmem region 其構造器為: public MemoryFile(String name, int length) throws IOException{ mLength = length; mFD =