碼上快樂
1秒登錄
首頁
榜單
標簽
關於
搜索
相關內容
簡體
繁體
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 load(Class, Serializable) in the type HibernateTemplate is not applicable for the arguments (Class, int)
錯誤:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, MyFragment)
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
The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
Android——Toast.makeText()
jar包問題The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)
[log4j]Error:The method getLogger(String) in the type Logger is not applicable for the arguments
android中Toast,makeText()的用法
Toast.makeText()各個參數都是干嘛的
粵ICP備18138465號
© 2018-2025 CODEPRJ.COM