title: Display SCORM content in Android
body: <p>I have an native Android <strong>Moodle</strong> based application wherein I have to display the courses which are in <strong>SCORM</strong> format in the application.<br>
  Can someone please help me how to go about this...<br>
  The courses are uploaded to my Moodle based website in SCORM format.<br>
  The <code>get_course_contents</code> web service gives me a url pointing to the course files, as specified here<br>
  <a href="https://github.com/dongsheng/moodle/wiki/WebService:get_course_contents" rel="nofollow noreferrer">https://github.com/dongsheng/moodle/wiki/WebService:get_course_contents</a></p>
  
  <p>How do I display these SCORM files in my native Android application?<br>
  Do I need to parse the <code>imsmanifest.xml</code> file and get details of SCORM package and display the HTML5 contents?   Or is there another/better way??   </p>
  
  <p>**</p>
  
  <hr>
  
  <p>**<br>
  <strong>Update:</strong><br>
  I have now tried to display the SCORM package contents in a <code>WebView</code>.<br>
  My SCORM package is like:<br>
  <img src="https://i.stack.imgur.com/PIpfR.png" alt="enter image description here"><br>
  I have copied this package in the <code>Assets</code> folder of my POC project.<br>
  My <code>WebView</code> settings are:   </p>
  
  <pre><code>settings.setJavaScriptEnabled(true);
  settings.setPluginsEnabled(true);
  PluginState state = PluginState.ON;
  settings.setPluginState(state);
  settings.setAllowFileAccess(true);
  settings.setJavaScriptCanOpenWindowsAutomatically(true);
  settings.setDatabaseEnabled(true);
  
  String databasePath = this.getApplicationContext()
          .getDir("database", Context.MODE_PRIVATE).getPath();
  settings.setDatabasePath(databasePath);
  webview.loadUrl("file:///android_asset/ttttt.html");
  </code></pre>
  
  <p>And my manifest is:   </p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.html5test"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="9"
          android:targetSdkVersion="17" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name="com.example.html5test.MainActivity"
              android:hardwareAccelerated="true"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>But I'm not getting required results and cannot view my SWF....   </p>
  
  <p><img src="https://i.stack.imgur.com/ngthP.png" alt="enter image description here"></p>
  
  <p>Also, when I copied the SCORM package onto the sdcard of the device and tried to open the html file, it opened up in HTMLViewer app and showed a blank white screen...     </p>
  
  <p><img src="https://i.stack.imgur.com/8YF5P.png" alt="enter image description here"></p>
  
  <p>Can someone please help me out with this....<br>
  Thanks in advance...</p>