I developed a small test app to illustrate the problem that appeared with the VideoRecordApp on my Nexus 7 after it upgraded to Android 4.3. Recording a video no longer worked. Initially I thought it was not entering the _RecordComplete event but that's not the case. It enters this subroutine but the Success flag is set to false. At this time I had been using the now older version of the Audio library, version 1.34.
Erel updated the library to 1.51. Using this library version on the Android 4.3 Nexus, it works sometimes, although about every third or fourth attempt I get the error "Unfortunately, Gallery has stopped working".
I also need to support earlier versions of Android. The test devices I am using include the Nexus 7 (Android 4.3), an HTC Amaze (Android version 4.0.3) and an LG Optimus One (Android version 2.2.1). The audio library version 1.51 did not work with the HTC amaze, but it did work with the LG Optimus.
I have attached my test application. I have also included results of testing my test app, compiled with the two versions of the Audio library, on my three test devices.
In summary:
Compiled with the Audio library version 1.51, the test app works unreliably on the Nexus, not at all on the Amaze, and seems to work correctly and reliably on the Optimus.
Compiled with the Audio library version 1.34, the test app does not work on the Nexus, but works reliably on both the Amaze and Optimus.
The 4.3 Android update seems to have introduced some kind of problem. I have read Google posts indicating others are having trouble with 4.3. Does anyone know what the root cause of the trouble is? In addition to this VideoRecordApp stuff I have encountered other little glitches when using 4.3. I think earlier in this thread someone mentioned a problem with pressing the Back button – I have encountered this also.
Thanks,
Barry.
==============
I ran the test app on my Nexus 7 which has the android 4.3 upgrade.
For this series of tests I am using the updated Audio Library version 1.51 dated July 28, 2013.
The B4A compiler is version 2.71.
The first time I ran it I got the "Unfortunately, Gallery has stopped" android error.
Nexus 7, Android 4.3, Audio lib 1.51 (7/28), ' Unfortunately, Gallery has stopped - note 3. success = false
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
3. **> Vid Rec Comp, Success = false,
** Activity (main) Resume **
** Service (contentsrv) Destroy **
Service Destroy
The next few times it succeeded on my Nexus. Every so often it would fail with the "Unfortunately" error.
It definitely does not work reliably.
Nexus 7, Android 4.3, Audio lib 1.51 (7/28), ' Note 3. success = true
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///storage/emulated/0/Android/data/b4a.example.vrtst/files/1375574337815.mp4
** Service (contentsrv) Destroy **
Service Destroy
I also tried the same test app on my LG Optimus One (android 2.2.1), and my HTC Amaze (android 4.0.3).
The updated Audio library, 1.5.1, is being used.
On my HTC Amaze running the test several times, I never encountered the "Unfortunately" problem.
Every time I save the video it does enter the _RecordComplete event, but the success flag is false.
HTC Amaze, Android 4.0.3, Audio lib 1.51 (7/28), ' Note 3. success = false
Installing file.
PackageAdded: package:b4a.example.vrtsthim him
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = false,
** Service (contentsrv) Destroy **
Service Destroy
On my LG Optimius One, I ran the test several times. I also never encountered the "Unfortunately" problem.
This seems to work. The _RecordComplete event is entered with success = true.
I ran this test several times, always successfully, on the LG Optimius One.
LG Optimius One, Android 2.2.1, Audio lib 1.51 (7/28), ' Note 3. success = true
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///mnt/sdcard/Android/data/b4a.example.vrtst/files/1375576406783.mp4
** Service (contentsrv) Destroy **
Service Destroy
=========================
For the next series of tests I am using the older Audio Library version 1.34. On my development system it's dated June 25, 2013.
I am using the same test app. The B4A compiler is version 2.71.
Testing on the Nexus when I press the "Video Record" button, the video recorder opens as if getting ready to record but then immediately closes and returns to my test app. The _RecordComplete event runs with success = false.
Running this test several times produced the same result each time.
Nexus 7, Android 4.3, Audio lib 1.34 (6/25), ' Note 3. success = false
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
3. **> Vid Rec Comp, Success = false,
** Activity (main) Resume **
** Service (contentsrv) Destroy **
Service Destroy
I ran the test app on my HTC Amaze compiling with the old Audio library, 1.34. This worked reliably each time.
HTC Amaze, Android 4.0.3, Audio lib 1.34 (6/25), ' Note 3. success = true
Installing file.
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///mnt/sdcard/Android/data/b4a.example.vrtst/files/1375578245066.mp4
** Service (contentsrv) Destroy **
Service Destroy
Finally I repeated the test using the old Audio library on my LG Optimus One. This succeeded reliably.
LG Optimius One, Android 2.2.1, Audio lib 1.34 (6/25), ' Note 3. success = true
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.example.vrtst
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
1. **> btnVR_Click()
2. **> VideoRec.Record()
** Service (contentsrv) Create **
Service Create
** Service (contentsrv) Start **
Service Start
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **
3. **> Vid Rec Comp, Success = true, file:///mnt/sdcard/Android/data/b4a.example.vrtst/files/1375578677637.mp4
** Service (contentsrv) Destroy **
Service Destroy