Create a new Android project in the eclipse workspace. Add library resources to the project and set other application properties.
Set up the Android SDK in the ADT Plugin.
To use the applications offline, AndroidManifest.xml should have permission for accessing network state along with registered broadcast receiver.
:<! -- adding Permission to access network state --> <uses-permission android:name="android.permission.INTERNET"></uses-permission> <! -- adding Permission to access network state --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" ></uses-permission> (Optional) For Offline-Capability <application . . . . > <receiver android:name="com.sap.mobile.lib.request.NetworkStateListener" android:label="NetworkStateListener"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> </intent-filter> </receiver> <activity ..... </activity> . . . </application>
This procedure includes a Dalvik-converted JAR in your Android project and makes Java definitions available to Eclipse in order to find the third-party classes when compiling your project's source code.