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
In the app I have the location set to being the removable SD card
I copy the attached course file into /sdcard0/Android/data/org.digitalcampus.mobile.learning/files/download
I open up the app and the course appears to be auto installed
However the course zip file is not removed from the download directory and the folder for the course is not generated on in the modules directory
The course appears on the homepage (so has been loaded into the app db)
But when trying to open, the app crashes (stack trace below)
It seems like this course install process is using a different reference for the location of the course files/xml.
In any case there seem to be a mismatch in the directories used for installing the course depending on whether installed by downloading from the server and into the app, or when installing directly by copying onto the phone (either sdcard or internal) - although the video files are being stored in the sdcard.
05-18 13:29:49.023 26099-26099/org.digitalcampus.mobile.learning E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.digitalcampus.mobile.learning, PID: 26099
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.digitalcampus.oppia.model.Lang.getContent()' on a null object reference
at org.digitalcampus.oppia.activity.CourseIndexActivity.onPrepareOptionsMenu(CourseIndexActivity.java:185)
at android.app.Activity.onPreparePanel(Activity.java:2851)
at android.support.v4.app.FragmentActivity.onPrepareOptionsPanel(FragmentActivity.java:487)
at android.support.v4.app.FragmentActivity.onPreparePanel(FragmentActivity.java:476)
at android.support.v7.view.WindowCallbackWrapper.onPreparePanel(WindowCallbackWrapper.java:90)
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onPreparePanel(AppCompatDelegateImplBase.java:268)
at android.support.v7.app.AppCompatDelegateImplV7.preparePanel(AppCompatDelegateImplV7.java:1300)
at android.support.v7.app.AppCompatDelegateImplV7.doInvalidatePanelMenu(AppCompatDelegateImplV7.java:1553)
at android.support.v7.app.AppCompatDelegateImplV7.access$100(AppCompatDelegateImplV7.java:89)
at android.support.v7.app.AppCompatDelegateImplV7$1.run(AppCompatDelegateImplV7.java:126)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:549)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
The text was updated successfully, but these errors were encountered:
alexlittle
changed the title
App shots down when having installed a course by copying onto the sd card
App shuts down when having installed a course by copying onto the sd card
May 18, 2016
jjoseba
added a commit
to jjoseba/oppia-mobile-android
that referenced
this issue
May 18, 2016
The process I went through:
It seems like this course install process is using a different reference for the location of the course files/xml.
In any case there seem to be a mismatch in the directories used for installing the course depending on whether installed by downloading from the server and into the app, or when installing directly by copying onto the phone (either sdcard or internal) - although the video files are being stored in the sdcard.
05-18 13:29:49.023 26099-26099/org.digitalcampus.mobile.learning E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.digitalcampus.mobile.learning, PID: 26099
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.digitalcampus.oppia.model.Lang.getContent()' on a null object reference
at org.digitalcampus.oppia.activity.CourseIndexActivity.onPrepareOptionsMenu(CourseIndexActivity.java:185)
at android.app.Activity.onPreparePanel(Activity.java:2851)
at android.support.v4.app.FragmentActivity.onPrepareOptionsPanel(FragmentActivity.java:487)
at android.support.v4.app.FragmentActivity.onPreparePanel(FragmentActivity.java:476)
at android.support.v7.view.WindowCallbackWrapper.onPreparePanel(WindowCallbackWrapper.java:90)
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onPreparePanel(AppCompatDelegateImplBase.java:268)
at android.support.v7.app.AppCompatDelegateImplV7.preparePanel(AppCompatDelegateImplV7.java:1300)
at android.support.v7.app.AppCompatDelegateImplV7.doInvalidatePanelMenu(AppCompatDelegateImplV7.java:1553)
at android.support.v7.app.AppCompatDelegateImplV7.access$100(AppCompatDelegateImplV7.java:89)
at android.support.v7.app.AppCompatDelegateImplV7$1.run(AppCompatDelegateImplV7.java:126)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:549)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
The text was updated successfully, but these errors were encountered: