1.5 Example GLSurfaceViewActivity.java fails after stop/resume

by SChaser » Sun, 13 Sep 2009 06:09:45 GMT


Sponsored Links
 I am having trouble with the example for use of GLSurfaceView (see
 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/GLSurfaceViewActivity.html 
).

I created a normal Android project in the Eclipse IDE, added the
GLSurfaceViewActivity class and related from the sample directory, set
the activity to GLSurfaceViewActivity, and ran it on the emulator.

It worked. Then I hit the home button, launched another app, hit home
again, and launched my test app again. This time, I got a blank screen
(with now exceptions thrown in logcat);.

Any ideas?

I was motivated to try this example because if have been having the
same trouble with my own app - discussed
iat



1.5 Example GLSurfaceViewActivity.java fails after stop/resume

by SChaser » Sun, 13 Sep 2009 06:24:59 GMT


 I take it back! Now it works (but my app doesn't - it has a big
difference - see the discussion at


Sponsored Links


Other Threads

1. Genre filtering for music application

I am implementing an music application with browser function.

In original music application, it support to browse through Artist-
However, I would like to add one more level, Genre. Such that Genre-
The Genre information is storing at Media level.
Could I do anything so that I can join the table or add the genre
information into the artist table?

Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~

2. How to Enable Hardware Audio Codecs in android OMAP zoom2

Hi,

I am working on android for omap zoom2 target.
omapkernel - 2.6.27
android    - RLS25.6

When try to do Audio play back from Android UI on zoom2 board,
WAV & AMR-NB - default PV software codecs are selected and playback is
fine.
MP3          - Hardware codec has been chosen by PV player, player
does not come up and playback is not happening.

Enabled PV & OMX logs and collected logs while playing MP3 clip.

Can someone help me in enabling Hardware Codecs.

Below are the logs collected while playing MP3,

E/PV      (  779): PVLOG:TID
(0x1375e8):Time=205:PVMFOMXAudioDecNode::DoPrepare(): There are 2
components of role audio_decoder.mp3
E/OMX_MP3 (  779): Entering OMX_ComponentInit
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=208:PVMFOMXAudioDecNode::DoPrepare(): Got Component
OMX.TI.MP3.decode handle
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=209:PVMFOMXAudioDecNode::NegotiateComponentParameters
() In
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=209:PVMFOMXAudioDecNode::NegotiateComponentParameters
() Calling audio config parser - TrackConfig = 0x11b448,
TrackConfigSize = 8, mimetype = audio/MPEG
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=209:PVMFOMXAudioDecNode::NegotiateComponentParameters
() Found Input port index 0
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=209:PVMFOMXAudioDecNode::NegotiateComponentParameters
() Found Output port index 1
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=209:PVMFOMXAudioDecNode::NegotiateComponentParameters
() Inport buffers 4,size 8000
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=209:PVMFOMXAudioDecNode::NegotiateComponentParameters
() Outport buffers 4,size 81920
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=210:PVMFOMXAudioDecNode::DoPrepare(): Changing
Component state Loaded -> Idle
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateInputMemPool() start
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateInputMemPool()
allocating buffer header pointers and shared media data ptrs
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateInputMemPool() done
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::ProvideBuffersToComponent()
enter
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::ProvideBuffersToComponent()
done
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateOutMemPool() start
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateOutMemPool() Allocating
output buffer header pointers
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateOutMemPool() Allocating
output buffers of size 81920 as well
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::CreateOutMemPool() done
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=213:PVMFOMXAudioDecNode::ProvideBuffersToComponent()
enter
E/OMX_MP3 (  779): 768 :: Error : InitMMCodec failed...>>>>>>
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=217:PVMFOMXAudioDecNode::ProvideBuffersToComponent()
done
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=217:PVMediaOutputNode::RequestCompleted: Cmd ID=5
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=217:PVMediaOutputNode:CommandComplete Id 8 Cmd 5
Status 1 Context 0 EVData 0 EVCode 0
E/PV      (  779): PVLOG:TID
(0x1375e8):Time=217:PVMediaOutputNode:SetState 3

Thanks,
Suneetha

--~--~---------~--~----~------------~-------~--~----~

3. XML Parser

4. XML Digital Signatures API in Android

5. listview scroll position

6. Memory Leak in layout with an image file statically linked as background

7. Anybody can tell me how the /dev/ folder under linux is mounted into android