当您需要的活动逻辑比其他活动能够提供的逻辑更复杂时,您可以使用代码片段活动,它允许您将工作委派给您创建的小程序。
When you need more complex logic for an activity than other activities can provide, you can use a snippet activity, which lets you delegate work to a small program that you create.
本篇专栏文章中,我假定已创建了有关数据存储和传输需求的一个小应用程序。
For this installment, I have imagined creating a little application with a data storage and transmission requirement.
尽管为这么小的应用程序创建单元测试似乎有点儿过分了,但是实际上即使对于最小的项目,使用这种方式也是良好的编程习惯。
Although it might seem like overkill to create unit tests for a small application like this, it really does build good programming practices to use this approach for even the smallest of projects.
I've got a little program called Silly.
我创建了一个名为Silly的小程序。
应用推荐