
cocos2d-android - issue #31
How to add VideoView or TextView or android native component
Hi,
I am trying to add a EditText and a VideoView with the GLSurfaceView as a new Scene. Please let me know how to do it? I have tried to add it through getting activity from surfaceview added in my activity and then create a view and add on that activity but earlier I was getting Bad Token exceptions but some how I fixed it. But then I could able to add Videoview only once and then on again coming back to the same videoview scene I could not able to see the video, but I am able to here sound from that video. I have also tried to use bringToFront method but doesn't work.
For adding EditText, same happend as above, and also I was not able to set its position, it was always set at 0,0 location.
May be I am following wrong steps, please let me know the correct procedure for it.
Thank you, Regards, Aparna Bhure
Comment #1
Posted on Jul 10, 2013 by Happy WombatI have also to implement video view in cocos2d android , can u help how to implement.
Comment #2
Posted on Jul 12, 2013 by Massive LionPlease see the attachment. There would be another way, let me also know if you found.
Thank you, Regards, Aparna Bhure
- AddingNativeComponents.txt 1.15KB
Status: New
Labels:
Type-Defect
Priority-Medium