我想爲Android編寫一個短信接收器。但我有問題。我發現這裏的例子:http://www.apriorit.com/our-company/dev-blog/227-handle-sms-on-android問題與@string和爲Android開發
Eclipse中都強調線: 機器人:文本= 「更新短信列表」/>
所以我把它改爲:
<Button android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_margin="2dip"
android:text="@string/UpdateList"
android:id="@+id/UpdateList"/>
,並加入到這個的strings.xml:
<string name="UpdateList">Update SMS List</string>
現在的問題是與線:
android:text="@string/UpdateList"
這是錯誤消息:
[2013年3月14日16時37分07秒 - FindMyPhone] ActivityManager:警告:活動尚未開始,目前的任務已經放到了前面
有沒有人看到這個問題是什麼?或者有一個如何解決它的想法?
從手機打開活動時顯示該問題,請始終從IDE前關閉應用程序 – rkmax 2013-03-15 15:33:52
您有什麼樣的問題? – Gyonder 2013-03-15 15:34:13
字符串替換和「錯誤」消息(這是一個警告)是完全無關的。 – 2013-03-15 15:34:40