roboguice
onViewCreated with compatibility library
In an Android application I have a fragment implemented that overrides onViewCreated to set up some OnClickListeners once the view is there.[详细]
2023-04-11 07:25 分类:问答using roboguice without extending Activity
Is there a way to use roboguice without extending Activity class with RoboActivi开发者_如何转开发ty.Yes.It\'s easier with the 1.2-SNAPSHOT which isn\'t yet in beta.To use 1.2, just add the following t[详细]
2023-04-09 18:38 分类:问答Roboguice (1.1 and 1.2 Snapshot) injecting the wrong context in onActivityResult
onActivityResult() is a standard Android function that is called after a child Activity closes. However, it doesn\'t seem to close all the way.[详细]
2023-04-04 17:52 分类:问答How to inject context using RoboGuice in Android?
I would like to inject my context to my Utility classes, I have seen examples using 开发者_如何学运维Static fields, Are there any ways to do it with out static fields?I tend to use a Provider to injec[详细]
2023-04-02 14:58 分类:问答Roboguice/Guice ComputationException when injector first initialized in background thread
The exception does not occur when the injector is created in the UI thread.I\'m using RoboSplashActivity.[详细]
2023-04-01 07:18 分类:问答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 Inject[详细]
2023-03-29 06:06 分类:问答Roboguice @Inject service confusion
private Service service; @Inject public ClassName(fi开发者_JAVA百科nal Service service) { this.service = service;[详细]
2023-03-16 03:20 分类:问答How to make simple android app with roboguice that injects a textView?
I\'m a beginner in dependency injection and roboguice. I just want to be able to inject views and resources in my app. The problem is, I get a ClassNotFoundException when I extend my class with RoboAc[详细]
2023-03-11 08:31 分类:问答Using Dependency Injection with Roboguice?
I\'m working on an Android project and I would like to know any recommendations about what\'s a good architecture to build an android application.[详细]
2023-03-10 19:22 分类:问答Testing an activity and pass an extra?
I am writing a test for my activity MyActivity activity = new MyActivity(); activity.onCreate(null); my activity expects and extra parameter开发者_StackOverflow社区s to be passed, so when I call on[详细]
2023-03-08 12:29 分类:问答