I like to integrate Box.Net for cloud access in my android application. I found source code for box-java-sdk-v2 and box-android-sdk-v2 in https://github.com/box. But I would like to have jars for easy integration. Where can i get these jars?
Asked
Active
Viewed 507 times
2 Answers
0
Download box-android-sdk, build it, & then add jars to your app.

Vishal Pawale
- 3,416
- 3
- 28
- 32
-
Thanks. I have added both projects in my eclipse and took the boxandroidlibraryv2.jar. But I am unable to use OAuthActivity.BOX_CLIENT which is in box-java-sdk-v2. – vignesh Sep 15 '13 at 16:50
-
The problem is because it `OAuthActivity` is not a regular class, its an activity(https://github.com/box/box-android-sdk-v2/blob/master/BoxAndroidLibraryV2/src/com/box/boxandroidlibv2/activities/OAuthActivity.java) , and jar file can not include resources, so you need to set box-android-sdk as library project for your app. – Vishal Pawale Sep 15 '13 at 16:54
-
So you want me to include both box-android-sdk-v2 and box-java-sdk-v2 to make it work? – vignesh Sep 16 '13 at 07:22
-
No, just use jar of java sdk, add it to box-android-sdk & then set only box-android-sdk as a library for your project. – Vishal Pawale Sep 16 '13 at 12:07
-
But from where i can get the jar of java sdk? – vignesh Sep 16 '13 at 14:51
-
I followed above mentioned steps.But I am getting following error. com.box.boxandroidlibv2.activities.OAuthActivity} : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.box.boxandroidlibv2.views.OAuthWebView.setAllowShowingRedirectPage(boolean)' on a null object reference – BABU K Jul 24 '15 at 06:07
-
I created new question with detailed here. http://stackoverflow.com/questions/31589703/box-com-integration-with-an-android-app-oauthactivity-nullpointerexception – BABU K Jul 24 '15 at 06:09
0
If you want to integrate Box in android (eclipse) then just follow these steps.
- Download box-android-sdk
- Download box-java-sdk
- Now import the two projects in your eclipse
- Set the box-java-sdk as build path in your box-android-sdk
- Now set the box-android-sdk as library in your android project

Pir Fahim Shah
- 10,505
- 1
- 82
- 81