自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 错误: java.lang.NullPointerException: Attempt to invoke interface method ‘android.content.SharedPrefer

在getSharedPreferences方法中,name参数表示SharedPreferences的名称,mode参数表示SharedPreferences的访问模式。使用Context类的getSharedPreferences(String name, int mode)方法来获取SharedPreferences对象。使用上述方法获取到的SharedPreferences对象进行后续操作,如读取或写入数据。

2023-09-17 21:03:57 438 2

原创 android 背诵方歌项目

一个简易的Android背诵方歌项目

2023-07-12 00:25:23 105 1

原创 Android方法查询

【代码】Android方法查询。

2023-07-09 21:42:24 80 1

原创 背诵方歌demo

注册为ZiManager的信息接受者。注册为ZiManager的信息接受者。重新显示内容allZiDisplay。注册为ZiManager的信息接受者。管理SwapControl的消息。管理SwapControl的消息。管理SwapControl的消息。update判断全文是否正确。继承者,增加接受消息的功能。用trycatch处理即可。判断有效消息是否等于1条。判断有效消息是否等于1条。判断有效消息是否等于1条。修改字的状态为不可交换。

2023-07-08 23:22:53 84

原创 p74 外部存储空间

data/data下查看。可以使用动态权限获取。

2023-07-08 15:35:24 29

原创 cocos 踩坑记录 02

我一开始以为是场景切换,没有完全加载脚本导致的,一直在这个方向上搜索解决,未果。就仔细看了下报错信息,采用这种方式竟然成功了!开来以后得仔细看报错信息。一开始就在a场景中没有任何问题。用trycatch处理即可。

2023-06-15 17:34:23 119

原创 cocos踩坑之Can not find cc.Component in the script 7ddfe6kjgpBwYHTb27tzuEi.

【代码】cocos踩坑之Can not find cc.Component in the script 7ddfe6kjgpBwYHTb27tzuEi.

2023-06-13 19:29:12 234 1

原创 游戏框架之消息框架梳理

player相当于一个发送信息的类,其内部调用MessageCenter.SendCustomMessage()发送消息。ComponentBase继承cc.Component,并增加接收消息功能,之后每个类都继承ComponentBase。MessageCenter负责管理管理类发送消息, 切所有方法属性均为静态,已实现全局调用。HopControl未接收消息后实在的动作执行者。注册为UIManager的消息接受者。注册为UIManager的消息接受者。发消息给Hpcontol。

2023-06-12 23:07:01 97

原创 mermaid学习笔记之类图

显式使用关键字类,例如定义 Animal 类。通过一次定义两个类及其关系的关系。例如。fill:#333;stroke:1;fill:none;important;important;important;important;important;important;important;important;important;important;important;important;important;important;important;important;

2023-06-12 20:57:02 472

原创 Mermaind学习笔记

1,节点fill:#333;color:#333;color:#333;fill:none;id带文字节点Unicode文本多行文本`Line1Line2line3`

2023-06-11 13:15:26 303

原创 第五十二课 有限状态机

新建脚本flystate,diestate。birdcontroller中。新建状态,状态机脚本。导入之前的打小鸟素材。添加两个button。游戏外挂,状态机示例。

2023-06-10 22:59:03 36

原创 第五十一课 游戏框架

ComponentBase继承cc.Componet,并增加接受消息功能, 之后的每个类都继承ComponentBase。新建脚本 Message, MessageCenter, ComponentBase, ManagerBase。MessgeType 在Message中。为保证初始化 于onload中写。只要是子类掉父类,均应该这样写。新建脚本uimanager。创建Script文件夹。hp下新建label。

2023-06-10 22:58:22 56

原创 spring cloud localhost 拒绝连接

spring cloud localhost 拒绝连接。原因:端口被占用,更换端口即可。

2023-04-13 23:30:04 112

原创 【无标题】There was an unexpected error (type=Internal Server Error, status=500).

漏掉$出错

2023-01-27 18:17:39 388

原创 springboot学习中的错误

【代码】springboot学习中的错误。

2023-01-24 12:39:48 108

原创 springMVC中ajax使用json 对象 出现 状态代码: 415 Unsupported Media Type

【代码】springMVC中ajax使用json 对象 出现 状态代码: 415 Unsupported Media Type。

2023-01-18 16:54:20 286

原创 请求转发 tomcat 404错误

【代码】servlet 请求转发 tomcat 404错误。

2022-09-20 19:55:13 97

原创 服务器输出字符流数据到浏览器 使用println浏览器无显示

服务器输出字符流数据到浏览器 使用println浏览器无显示

2022-09-08 21:57:20 184

原创 java setContentType 为utf-8中文仍为乱码

resp.setHeader("Content-Type","text/html;charset=utf-8");后;中文仍为乱码

2022-09-08 21:38:41 1199

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除