开发者

How are Android-Binding and Roboguice?

As a beginner for Android development, code samples I am learning from look somewhat disorganized and are hard to test or even to understand. So I followed this post suggested: Using Dependency Injection with Roboguice? and am trying to use Android-binding and Roboguice. But I am now worrying about how good they really are.

  1. Are they good e开发者_StackOverflow中文版nough for all Android projects including ones with a couple of views?
  2. After building an app with these tools, how is the app's performance in comparison without the tools? Any problem with using these tools?
  3. Is there any other tool that can help me for Agile/TDD?


I've only used Roboguice and this is my opinion of it.

Roboguice is derived from Guice. So it's not really a dependency injection framework built from the grounds up for mobile environment. That being said, it can cause quite some overhead to your app.

On the other hand, I haven't seen any mobile app that reached a complexity that really needs dependency injection. I had an app the used Roboguice, but soon I realized that it's making my app more complex than it needs to be. So I stripped it out. I guess this depends a lot on the scale of your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜