Questions tagged [roboguice]

Roboguice brings the power and testability of using the Google Guice dependency injection framework to Android application development.

RoboGuice is a framework that brings the simplicity and ease of Dependency Injection to Android, using Google's own Guice library.

Useful links

329 questions
0
votes
1 answer

How can I use Roboguice dependency injection in adapter android

What i have done: I am aware of using dependency injection of Roboguice in activity like below @InjectView(R.id.listView) ListView listView; Question: How to use this in a CODE From activity I am calling adapter like below:: AdptOrderListHome…
Devrath
  • 42,072
  • 54
  • 195
  • 297
0
votes
2 answers

Injected view null with roboguice 3 when minifiedEnabled = true

I am using RoboGuice 3 in my application and when minifiedEnabled is set to false in debug mode everything is working fine. If I however, set minifiedEnabled to true the injected views seem to be null: NullPointerException: Attempt to invoke…
ReneWeb
  • 206
  • 3
  • 10
0
votes
1 answer

Guice Extensions MultiBindings not working with RoboActivity

I cannot make Guice Multibindings work with RoboGuice. When my activity extends android Activity, multibindings work just fine. When my activity extends RoboActivity, multibindings do not work, and the following exception is…
diego
  • 1
  • 2
0
votes
2 answers

Unexpected lifecycle causing Fatal Exception?

I'm an iOS dev, with absolutely no experience with android, so forgive me if I have difficulty expressing my question: I'm getting a Fatal Exception in an android app I'm tasked with maintaining. Fatal Exception: java.lang.RuntimeException Unable to…
Kelly Bennett
  • 725
  • 5
  • 27
0
votes
1 answer

Roboblender annotation processing not working

I try to make Roboblender work with Roboguice but the compile time processing doesn't seem to do anything, the AnnotationDatabaseImpl class is not generated. (Project builds without error.) I even created a sample project, please see below. What do…
levavare
  • 494
  • 1
  • 4
  • 13
0
votes
1 answer

Android Roboguice not working with Proguard

this is my proguard-project.txt: -keep class com.google.inject.** { *; } -keep class javax.inject.** { *; } -keep class javax.annotation.** { *; } -keep class roboguice.** { *; } -keepattributes Signature -keepattributes *Annotation* -keep class…
JY2k
  • 2,879
  • 1
  • 31
  • 60
0
votes
1 answer

Roboguice is not injecting dependencies

I'm using Roboguice to inject my dependencies but it's not workink. I have a class that extends RoboActivity and my attribute still null. public class SplashActivity extends RoboActivity { @Inject private PropertyReader propertyReader; …
user866364
0
votes
2 answers

Is there an Android library like RoboGuice for Dagger?

I'm in the process of switching my app over from RoboGuice to Dagger. RoboGuice has this nice feature where you can inject native components (@Inject Context mContext gives you a Context object). I was wondering if anyone knew of an extension to…
dlucci
  • 729
  • 4
  • 9
  • 24
0
votes
1 answer

InjectView doesn't work in Unit Testing

tl;dr: In Unit Testing, @Inject successfully injects the fields required but @InjectView leaves them as null, causing errors. @InjectView works in normal application running. I have an Android application that utilises RoboGuice that I'm trying to…
Jamesking56
  • 3,683
  • 5
  • 30
  • 61
0
votes
0 answers

How to inject Layout to LayoutInflater in RoboGuice?

I have layout R.layout.alarm_clock_setting_view And i want to Inject him into LayoutInflater. Now i do next : @InjectView(R.layout.alarm_clock_setting_view) private RelativeLayout alarmClockSettingView; ... //in OnCreate mSettingAlarmClockView =…
Sergey Shustikov
  • 15,377
  • 12
  • 67
  • 119
0
votes
1 answer

how to include roboguice library in eclipse

I have no idea about how to install roboguice 3.0 in my eclipse,I searched a lot but none of the links didn't give me a clear desc about this..any help would be appreciated.
Riju Thomas
  • 49
  • 1
  • 5
0
votes
1 answer

Android RoboGuice with custom view not working

I have a custom view, and I want to use RoboGuice to get views references. I used this example:https://github.com/roboguice/roboguice/wiki/Your-First-Injection-into-a-Custom-View-class I tried both options (v3, v3.1), but it does not seem to work…
dors
  • 5,802
  • 8
  • 45
  • 71
0
votes
1 answer

Roboguice Inject into POJO

In my application I use RoboGuice for Dependency Injection. In my RoboActivities the injection works fine. If I want to inject something in a POJO like: public class EventController { @Inject UserController userController; @Inject …
Deutro
  • 3,113
  • 4
  • 18
  • 26
0
votes
1 answer

java.lang.NoClassDefFoundError: roboguice.activity.SherlockAccountAuthenticatorActivity with ActiveAndroid in android 5.0

I am getting this error - java.lang.NoClassDefFoundError: roboguice.activity.SherlockAccountAuthenticatorActivity at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:308) at…
Mikelis Kaneps
  • 4,576
  • 2
  • 34
  • 48
0
votes
1 answer

RoboFragment is not applicable to method FragmentTransaction.add(int,Fragment)

I have public class ItemDetailFragment extends RoboFragment and I try to create it from another activity: public class ItemDetailActivity extends RoboFragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { …
Elad Benda
  • 35,076
  • 87
  • 265
  • 471