请帮我看看 Android 记事本教程
我已经尝试解决一个问题几个小时了,但似乎无法在档案中找到解决方案。我希望一些慷慨的编码员能帮助这里的菜鸟。
我一直在遵循记事本教程中概述的步骤,特别是位于此 URL 的“Notepadv1”: http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html
即使在使用解决方案文件的代码确认我的代码后,我仍然看到这些错误。
请帮助我找出我做错了什么,以便我可以继续下一步 训练。
我正在使用 Eclipse。
I've been trying to resolve an issue for a couple hours now, and can't seem to find a solution in the archives. I'm hoping some generous coder will help out a noob here.
I've been following the steps outlined in the Notepad tutorial, specifically "Notepadv1" located at this URL: http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html
Even after confirming my code with that of the solution files, I am still seeing these errors.
Please help me figure out what I've done wrong so I can move to the next step in the training.
I'm working with Eclipse.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您遇到的问题是您的指南,不太清楚。它说:
他们在这里的意思是只定义一个不执行任何操作的方法,并且稍后将填充主体(见下文)。您可以按如下方式定义它:
要实际填充它,请参阅指南中的步骤 12 :
定义 fillData() 方法,该方法应如下所示:
The problem you are having is that Step 8, part 6 of your guide, is not really clear. It says:
What they mean here, is to just define a method that does nothing, and they will fill-in the body later (see below). You can define it as follows:
To actually populate it see step 12 in your guide:
Define the fillData() method, which should look like:
显然您的活动中没有
fillData()
方法。obviously you don't have a
fillData()
method in your activity.