码上欢乐
首页
榜单
标签
关于
搜索
相关内容
简体
繁体
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