Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added method to set dependencies from application subclass. fixed whi…
…tespace.
- Loading branch information
1 parent
0ed0ce3
commit ee8d0f0
Showing
5 changed files
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.springframework.android.di.sample" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<uses-sdk android:minSdkVersion="7" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
package="org.springframework.android.di.sample" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<uses-sdk android:minSdkVersion="7" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:name=".MainApplication" | ||
android:icon="@drawable/icon" | ||
android:label="@string/app_name"> | ||
<activity | ||
android:name=".MainActivity" | ||
<application | ||
android:name=".MainApplication" | ||
android:icon="@drawable/icon" | ||
android:label="@string/app_name"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
</application> | ||
</application> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/org/springframework/android/di/sample/MainApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
package org.springframework.android.di.sample; | ||
|
||
import org.springframework.android.di.SpringApplication; | ||
import org.springframework.web.client.RestTemplate; | ||
|
||
public class MainApplication extends SpringApplication { | ||
|
||
@Override | ||
public void onCreate () { | ||
super.onCreate(); | ||
|
||
this.addDependency(RestTemplate.class, new RestTemplate()); | ||
} | ||
} |