碼上歡樂
首頁
榜單
標簽
關於
搜索
相關內容
簡體
繁體
Toast那行提示錯誤:The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (Class
, String, int)
本文轉載自
查看原文
2012-08-17 09:02
15891
把Toast.makeText(activity06.class,"female",Toast.LENGTH_SHORT).show(); 這行里面的activity.class改為activity.this makeText方法的第一個參數指的是上下文的對象,你這里上下文的對象是這個activity本身,所以寫成activity.this代表本身
×
免責聲明!
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。
猜您在找
The method setClass(Context, Class ) in the type Intent is not applicable for the arguments (GameV
The method format(String, Object[]) in the type String is not applicable for the arguments
jar包問題The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)
Android——Toast.makeText()
JAVA錯誤提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.
The method setCharacterEncoding(String) is undefined for the type HttpServletResponse
011_用eclipse打開hadoop1.2.1源碼出現The method getSplits(JobConf, int) is undefined for the type Object錯誤
attempted to return null from a method with a primitive return type (int)
用IDEA時,類/方法提示"class/method **** is never used"
Gradle sync failed: Could not find method android() for arguments 錯誤的解決辦法
粵ICP備18138465號
© 2018-2025 CODEPRJ.COM