Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
78 additions
and
71 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,71 +1,78 @@ | |||
Live SDK for Android | Live SDK for Android | ||
|
==================== | ||
version 5.0 |
|
||
|
version 5.0 | ||
1. Introduction |
|
||
|
1. Introduction | ||
The Live SDK for Android library is intended to help developers to easily | --------------- | ||
integrate SkyDrive and Hotmail contacts and calendars into their Android apps. |
|
||
|
The Live SDK for Android library is intended to help developers to easily | ||
2. Reference the API | integrate SkyDrive and Hotmail contacts and calendars into their Android apps. | ||
|
|
||
After you download the Android API source code, you must compile it. You need | 2. Reference the API | ||
to do this only once. After you compile the Android API source code on your | -------------------- | ||
computer, you can reference it from multiple Eclipse Android projects on that |
|
||
same computer. | After you download the Android API source code, you must compile it. You need | ||
|
to do this only once. After you compile the Android API source code on your | ||
To compile the Android API source code | computer, you can reference it from multiple Eclipse Android projects on that | ||
1. Start Eclipse, if it is not already running. | same computer. | ||
2. Click File > Import. |
|
||
3. Expand General, click Existing Projects into Workspace, and then click Next. | To compile the Android API source code | ||
4. With the Select root directory option selected, click Browse. | * Start Eclipse, if it is not already running. | ||
5. Go to and select the src folder within the downloaded Live SDK for Android, and then click OK. | * Click File > Import. | ||
6. In the Projects box, select the LiveSdk check box. | * Expand General, click Existing Projects into Workspace, and then click Next. | ||
7. With the Copy projects into workspace check box selected, click Finish. | * With the Select root directory option selected, click Browse. | ||
Eclipse adds the LiveSdk project to the Package Explorer pane and then | * Go to and select the src folder within the downloaded Live SDK for Android, and then click OK. | ||
compiles the Android API source code in the background. | * In the Projects box, select the LiveSdk check box. | ||
8. You can now reference the compiled Android API source code from your Eclipse | * With the Copy projects into workspace check box selected, click Finish. | ||
Android projects. | Eclipse adds the LiveSdk project to the Package Explorer pane and then | ||
|
compiles the Android API source code in the background. | ||
|
* You can now reference the compiled Android API source code from your Eclipse | ||
To reference the compiled Android API source code in an Eclipse Android | Android projects. | ||
project |
|
||
1. In Eclipse, display the Package Explorer pane, if it is not already visible. |
|
||
2. Right-click your project's name, and then click Properties. | To reference the compiled Android API source code in an Eclipse Android | ||
3. In the list of project properties, click Android. | project | ||
4. In the Library area, click Add. | * In Eclipse, display the Package Explorer pane, if it is not already visible. | ||
5. Click LiveSdk and then click OK. | * Right-click your project's name, and then click Properties. | ||
6. Click OK. Eclipse sets a reference to the compiled Android API source code | * In the list of project properties, click Android. | ||
project, and you can now call the Live Connect Android API from your own | * In the Library area, click Add. | ||
Android project. | * Click LiveSdk and then click OK. | ||
|
* Click OK. Eclipse sets a reference to the compiled Android API source code | ||
Note: Before you run your project, you must add the Internet permission to your | project, and you can now call the Live Connect Android API from your own | ||
project's manifest, as shown in the following steps. If you don't add the | Android project. | ||
Internet permission, your app may have problems accessing Live Connect |
|
||
web services later. | Note: Before you run your project, you must add the Internet permission to your | ||
1. With your project open, in the Package Explorer pane, open the AndroidManifest.xml file. | project's manifest, as shown in the following steps. If you don't add the | ||
2. In the editor, click the Permissions tab. | Internet permission, your app may have problems accessing Live Connect | ||
3. Click Add. | web services later. | ||
4. Click Uses Permission, and then click OK. | * With your project open, in the Package Explorer pane, open the AndroidManifest.xml file. | ||
5. the Name list, click android.permission.INTERNET. | * In the editor, click the Permissions tab. | ||
6. Save the AndroidManifest.xml file. | * Click Add. | ||
|
* Click Uses Permission, and then click OK. | ||
Notes: | * the Name list, click android.permission.INTERNET. | ||
The Java Compiler must be version 1.6 or higher. | * Save the AndroidManifest.xml file. | ||
|
|
||
3. Documentation | Notes: | ||
|
The Java Compiler must be version 1.6 or higher. | ||
Visit: http://dev.live.com and click the "Documentation" link. |
|
||
|
3. Documentation | ||
4. Sample project | ---------------- | ||
There is a sample project located in the sample directory. Using eclipse this project can be added |
|
||
using the File > Import > General > Existing Projects into Workspace wizard. Before the project can be | Visit: http://dev.live.com and click the "Documentation" link. | ||
properly used, the static variable com.microsoft.live.sample.Config.CLIENT_ID (see Config.java) must |
|
||
be changed to your own client ID. For help on obtaining a client ID, please see | 4. Sample project | ||
http://go.microsoft.com/fwlink/?LinkId=220871 | ----------------- | ||
|
|
||
5. Known issues: | There is a sample project located in the sample directory. Using eclipse this project can be added | ||
|
using the File > Import > General > Existing Projects into Workspace wizard. Before the project can be | ||
1) Login dialog is destroyed on screen rotation if the Activity is not set to | properly used, the static variable com.microsoft.live.sample.Config.CLIENT_ID (see Config.java) must | ||
ignore orientation changes in AndroidManifest.xml. | be changed to your own client ID. For help on obtaining a client ID, please see | ||
|
http://go.microsoft.com/fwlink/?LinkId=220871 | ||
|
|||
5. Known issues: | |||
---------------- | |||
|
|||
1) Login dialog is destroyed on screen rotation if the Activity is not set to | |||
ignore orientation changes in AndroidManifest.xml. | |||
|