轉自: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
轉帖:http://zouyuefu.wordpress.com/2011/04/02/android%E5%BC%80%E5%8F%91%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3/ 1.IllegalArgumentException: View not attached to window manager
在AndroidNDK中的samples\hello-gl2下的執行個體,在Android的模擬器下運行,如果不該任何代碼,會出現錯誤:ERROR/AndroidRuntime(258): java.lang.IllegalArgumentException: No configs match configSpec代碼錯誤行數在:chooseConfig方法的如下行:if (numConfigs <= 0) { throw new IllegalArgumentException("
1.當安裝好android後,建立的工程運行時,彈出對話方塊“Your project contains error(s),please fix them before running your application ”,下面出現“Manifest attribute 'minSdkVersion' is set to '***'.Integer is expected.”的錯誤提示? (如)每次看到這個都是生不如死啊!幾乎用盡了一切辦法啊,最後終於找到比較好的解決方案了!最後才知道是
這個是我今年參加Google安卓大賽的作品,結果連我的名字都沒有,傷心啊。不過我已經決定在Android上狠下功夫的,這可是個好東西。先看我的截屏吧。還有個城市選擇介面:下面是代碼了,除了計算公式是找來的外,其他全部都是原創,那可是我的十一八天長假的勞動成果啊。package lineter.works.sunangle;import java.util.Calendar;public class city {private double weidu, jingdu;private
問題1. 運行Activity的時候出現Your content must have a TabHost whose id attribute is 'android.R.id.tabhost'添加Layout的時候,xml跟元素選擇TabHost, 但是ADT沒有添加id屬性, 啟動並執行時候,會提示Your content must have a TabHost whose id attribute is 'android.R.id.tabhost'錯誤, 需要添加android:id="@