看板 AndroidDev 關於我們 聯絡資訊
我原本在eclipse上都正常 搬到android studio就爛掉了 我在Androidmanifest.xml裡面定義了某個activity並做了這樣的設定 <intent-filter> <action android:name="xxx.xxx.xxx" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> 在程式碼裡面呼叫的時候是這樣: startActivityForResult(new Intent("xxx.xxx.xxx"), 123); 在eclipse時被叫的activity成功被叫起來而且抓到的action確實是xxx.xxx.xxx 而用android studio時 那個activity也有叫起來,但抓到的action卻是android.intent.action.MAIN 我一直搞不懂為啥會這樣 求神人幫解答 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.216.74.180 ※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1471579207.A.6FD.html
ssccg: 按button不會讓edittext失去focus啊 08/19 20:25
ssccg: 推錯 08/19 20:26
cakeboy: 有更詳細的code嗎? 08/19 23:32