You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keith yau edited this page Dec 3, 2013
·
12 revisions
Since android studio currently not support import modules from UI, we can only do it with gradle settings.
Create a new project
Copy drupalForAndroidSDK module in this SDK to your project directory
at settings.gradle, add ':DrupalForAndroidSDK' -> include ':YourApplicationName', ':DrupalForAndroidSDK'
Click the Sync gradle project button
current Android Studio 0.3.6 will modify your build.gradle file in DrupalForAndroidSDK, so you need to modify it back to the SDK provided one by copy and paste the build.gradle again
Copy and paste demo source code to your Application from drupalForAndroidSDKDemo
Import required library by alt+enter
Add <uses-permission android:name="android.permission.INTERNET"/> to your AndroidManifest.xml
Modify the Android version you are using like below