![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
androidStudio
我是小靖仔
这个作者很懒,什么都没留下…
展开
-
AndroidStudio中intent.putExtra()
有些人说intent.putExtra(str,key)(https://zhidao.baidu.com/question/488880449.html)后面看到androidStudio的提示是intent.putExtra(key,str)Intent startTcpServiceIntent=new Intent(this,TcpCommandService.class);star...原创 2019-05-09 14:02:48 · 3160 阅读 · 0 评论 -
AndroidStudio的R.layout.activity_main中的R是红色的
解决办法:菜单栏中的Build菜单项中选择Clean Project,等一会自然好了。原创 2019-05-14 18:48:37 · 10086 阅读 · 1 评论 -
app停止工作的可能原因
Android点击Button按钮切换按钮文字显示本人在使用博客里的程序时出了一点问题:app停止工作,发现原因如下在activity的onCreate之外用findViewById():private Button direct=(Button) findViewById(R.id.dir);public void dir(View v){//单击方向按钮,改变按钮显示的方向(‘F’,‘...原创 2019-05-21 14:44:19 · 976 阅读 · 0 评论 -
树莓派小车手机app控制(2)
本篇文章是对https://blog.csdn.net/wangzhenyang2/article/details/81606700的实际演示。上篇文章把树莓派的bug给解决了,现在我们看看安卓端的bug。首先我们下载程序:https://github.com/RyanWang20180512/Cellphone-control-project-for-Picar.git下载完成后,第一个文件...原创 2019-06-11 10:31:34 · 3909 阅读 · 1 评论 -
树莓派小车手机app控制(3)
本篇文章是对https://blog.csdn.net/wangzhenyang2/article/details/81606700的实际演示。所以建议先看源博客上篇讲完了app要修改的小地方,下面讲得是,两个部分之间建立连接。由树莓派开热点:参考博客查看手机IP地址用手机连接WiFi,之后在树莓派端使用arp -a查看手机的ip地址(这里的IP地址好像是固定的,即你的手机每次连接的ip都...原创 2019-06-10 23:39:37 · 4047 阅读 · 14 评论