Skip to content

Commit a851f79

Browse files
committed
Fix RoboGuiceExample sample project
1 parent 94df9a9 commit a851f79

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

‎examples/RoboGuiceExample/.classpath‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<attribute name="optional" value="true"/>
77
</attributes>
88
</classpathentry>
9-
<classpathentry kind="lib" path="lib/guice-2.0-no_aop.jar"/>
10-
<classpathentry kind="lib" path="lib/roboguice-1.1.1.jar"/>
119
<classpathentry kind="src" path="src"/>
1210
<classpathentry kind="src" path="gen"/>
1311
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
1412
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
15-
<classpathentry kind="lib" path="/androidannotations-api/target/androidannotations-api-3.0-SNAPSHOT.jar"/>
13+
<classpathentry exported="true" kind="lib" path="/androidannotations-api/target/androidannotations-api-3.0-SNAPSHOT.jar"/>
14+
<classpathentry exported="true" kind="lib" path="lib/guice-2.0-no_aop.jar"/>
15+
<classpathentry exported="true" kind="lib" path="lib/roboguice-1.1.1.jar"/>
1616
<classpathentry kind="output" path="bin/classes"/>
1717
</classpath>

‎examples/RoboGuiceExample/AndroidManifest.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<category android:name="android.intent.category.LAUNCHER" />
2323
</intent-filter>
2424
</activity>
25+
<activity android:name=".SimpleActivity_" />
2526
</application>
2627

2728
</manifest>

‎examples/RoboGuiceExample/src/com/googlecode/androidannotations/roboguiceexample/AstroApplication.java‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.util.List;
44

55
import roboguice.application.RoboApplication;
6-
import roboguice.config.AbstractAndroidModule;
76

87
import com.google.inject.Module;
98

@@ -14,11 +13,4 @@ protected void addApplicationModules(List<Module> modules) {
1413
modules.add(new AstroModule());
1514
}
1615

17-
static class AstroModule extends AbstractAndroidModule {
18-
@Override
19-
protected void configure() {
20-
bind(GreetingService.class).to(GreetingServiceToastImpl.class);
21-
}
22-
}
23-
2416
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.googlecode.androidannotations.roboguiceexample;
2+
3+
import roboguice.config.AbstractAndroidModule;
4+
5+
public class AstroModule extends AbstractAndroidModule {
6+
@Override
7+
protected void configure() {
8+
bind(GreetingService.class).to(GreetingServiceToastImpl.class);
9+
}
10+
}

0 commit comments

Comments
 (0)