roboguice Questions

2

Solved

I'm working on a fairly large project that has a lot of injections. We're currently using a class that implements Provider for each injection that needs one, and they mostly have one line get metho...
Hawaiian asked 28/1, 2015 at 21:36

1

I'm struggling to get this rare combination works, but I haven't got luck. My project uses JUnit + Mockito + Robolectric for testing and Roboguice for injection, when I added PowerMock to the equat...
Dravidian asked 22/3, 2016 at 14:26

2

Solved

I have a bunch of classes that use e.g. an @Singleton annotation like so @Singleton public class ImageCache that I would like to keep. How can I configure a proguard -keep statement so it applie...
Squirrel asked 23/7, 2012 at 23:52

2

I can't seem to compile without warnings. This is the warning: Warning:roboguice.activity.RoboMapActivity: can't find superclass or interface com.google.android.maps.MapActivity Warning:roboguice....
Fiery asked 29/3, 2015 at 16:42

2

This is not always seen but seen on particular API 14 and 19. Below is the stacktrace java.lang.NoClassDefFoundError: roboguice.inject.ContextScopedRoboInjector at roboguice.RoboGuice.getInjecto...
Anta asked 13/1, 2016 at 4:43

0

I am developing some JUnit test for ma app. I need to use Robolectric + Roboguice libraries. What I am trying to do now is only simple test which checks if activity is not null. Here is my code:...
Sherd asked 23/9, 2015 at 12:48

1

I try to build my android project and I get: Information:Gradle: Executing tasks: [clean, :app:compileDebugSources] Information:1/10/15, 11:13 AM - Compilation completed successfully in 5 sec I ...
Magocsi asked 10/1, 2015 at 9:16

5

For some reason the RoboBlender does not generate the annotation database. My build.gradle has the following dependencies: dependencies { provided 'org.roboguice:roboblender:3.0' compile fileTre...
Neologism asked 30/10, 2014 at 19:20

3

I've just upgraded our project to use Roboguice 3 and all of a sudden all the injected objects became null, that includes POJO, Providers, Views, Resources etc. And I'm struggling to figure out why...
Dissonant asked 8/12, 2014 at 21:43

2

I would like to use RoboActivity with my activity, but I don't know how to do that coz my current activity extends already ActionBarActivity: public class MainActivity extends ActionBarActivity ...
Nealneala asked 23/3, 2014 at 14:47

6

I'm using Robolectric to test Android. I'm running my tests via maven, e.g. mvn -Dtest=LogTest test If I have code that writes to the logs, such as Log.d("TAG", "blah"); or using Roboguice's ...
Extravasate asked 19/4, 2012 at 0:11

3

Solved

I'm developing and android countdown app. In the app you can add or delete as many countdowns as you want. All the Countdowns are saved in an ArrayList. I can't just save them in an database or i...
Kain asked 23/5, 2013 at 15:31

1

Solved

I some time testing some things with Dagger, after overseeing the series of articles here: http://antonioleiva.com/dependency-injection-android-dagger-part-1/, went back for more information, I saw...
Variole asked 16/7, 2014 at 14:57

2

Solved

I'm trying to migrate an old IntelliJ project to use gradle. However, assembleDebug fails during the dx step: java.lang.IllegalArgumentException: already added: Lcom/google/inject/AbstractModule; ...
Gand asked 5/6, 2013 at 5:20

4

Solved

I'm debating using guice in an android project that is quite complex and has a lot of business logic. Guice seems like a good fit, but whenever I start reading deeper into it, it starts to look mor...
Deluca asked 18/10, 2011 at 19:56

2

Solved

example using roboguice. This code get ClassCastException. public class MainActivity extends RoboActivity{ @InjectView(R.id.text) TextView name; @InjectView(R.id.imageView1) ImageView imageVi...
Contretemps asked 25/9, 2013 at 10:50

1

Solved

What are the specific benefits or advantages of using a dependency injection framework for Android, like Dagger, Transfuse or RoboGuice? For example, what kind of apps would benefit the most from ...

2

I have a GameStateManager singleton that I want to have available to all of my activities. In particular I want it to listen for Events fired off with the EventManager using the Application Context...
Rancourt asked 18/12, 2012 at 22:6

3

Solved

Just starting my way with Roboguice for android. Tried implementing this simple context injection but getting this exception. I googled it and ran into quite a few posts but non solved my issue. Th...
Inhale asked 12/2, 2012 at 18:23

2

Solved

I want to create a singleton object using RoboGuice but I get null exception. I don't know what is wrong with my codes. @Singleton public class SessionService { private static Session session...
Bathelda asked 12/6, 2013 at 9:59

1

Solved

hi i am currently using roboguice as we know, we can use annotation to get class injected such as @InjectView(R.id.list)ListView x the @inject notation works, because i extend from RoboActivity,...
Osteotome asked 23/6, 2013 at 4:0

2

I have a problem with using RoboGuice and AndroidMock frameworks in unit testing. I've created a simple project to show my problem. Here I create a mocked instance and register it in the RoboGuice....
Stockman asked 23/5, 2011 at 18:29

1

In the past few days I started playing around with roboguice, robolectric and mockito. I have a small Android-application with a login-screen containing an AutoCompleteTextView for faster entering ...
Diseased asked 10/4, 2013 at 22:16

2

Solved

I'm having some problems with proguard when optimizing my android app. It seems that there is something done to an annotation class (@com.google.inject.Inject) which Dalvik/Harmony is not happy wit...
Newkirk asked 7/4, 2011 at 14:3

1

Solved

I've been trying to use RoboGuice and fragments with no luck. I have a fragment that extends RoboFragment, and an activity that extends RoboActivity, but it seems that within the RoboActivity, the ...
Linsk asked 17/2, 2013 at 16:14

© 2022 - 2024 — McMap. All rights reserved.