[android-developers] Problem with playing sound
Hi all, I am playing a sound in my application.Most of the time it plays succesfully without any pause.It is a short duration type sound file which lasts for 1 sec(a tick -tock sound of clock) which I am repeatedly playing infinitely and most of the times there are no issues.But rarely it happens that the sound suddenly stops playing and will show the log as below: TimedEventQueue :Event no:x was not found in the queue , already cancelled And once it is stopped, it never restarts. Could anyone please help me to find a solution for this? Thanks in advance, Regards, Tina Lincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with playing sound
Anyone have an idea about this?If, so, pls do help... On Nov 22, 5:11 pm, tina lincon tina.theresalin...@wipro.com wrote: Hi all, I am playing a sound in my application.Most of the time it plays succesfully without any pause.It is a short duration type sound file which lasts for 1 sec(a tick -tock sound of clock) which I am repeatedly playing infinitely and most of the times there are no issues.But rarely it happens that the sound suddenly stops playing and will show the log as below: TimedEventQueue :Event no:x was not found in the queue , already cancelled And once it is stopped, it never restarts. Could anyone please help me to find a solution for this? Thanks in advance, Regards, Tina Lincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding Scale Animation in 2d graphics
Hi all, I am currently working on a cuckoo clock widgethave made d necessary framework changes and playing with animation on widget...Here I'm controlling the entire animation through xml and just passing the xml id to the object of the remote view in the code..In this I need my cuckoo popping out each time, to an extent I'm successfuly able to bring out dat effect with scaling animation using xml.But the problem here is I have to make the cuckoo disappear once it goes back to the orginal position .I was thinking of bringing that invisible effect by making the android:toXScale=0 in xml but what is happening here is that the cuckoo instead of becoming invisible turns upside down if the value goes less than 1 for the destination X Scale..PLease do help me to find a solution...Thanks in advance, Regards, Tina Lincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with mediaplayer to play live streaming audio
I'm also facing this same problem. On Nov 9, 11:15 am, Manuel Garcia alexgarci...@gmail.com wrote: A log might encourage people to respond and help you. On Nov 8, 9:25 pm, gvenugopal gvenugopal...@gmail.com wrote: Hi friends, In my music app, i would like to play live streaming like radio broadcasting with mediaplayer as Mediaplayer mp = new Mediaplayer(); mp.setDataSource(LiveStreamingURL); mp.prepare(); mp.start(); but after playing for few seconds it is stopped. I dont know how to overcome it. Give me your suggestions for this. Thanks venu- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with Playing sound in my cuckoo clock widget
Thanks a lot Alex, I'll check with it.. On Nov 5, 8:58 am, RockNCode alexgarci...@gmail.com wrote: Hello. I suggest you go to frameworks/base/libs/audioflinger/AudioFlinger.cpp and add LOGE prints to functions createTrack and createTrack_l. Could you check in createTrack_l if you are entering to this condtion ?: Mutex::Autolock _l(mLock); track = new Track(this, client, streamType, sampleRate, format, channelCount, frameCount, sharedBuffer); if (track-getCblk() == NULL || track-name() 0) { lStatus = NO_MEMORY; goto Exit; } mTracks.add(track); I think -12 is -ENOMEM which is NO_MEMORY, so probably the allocation failed. If this is the case probably you have a memory leak somewhere, just make sure that for every create() you have a release(). Seehttp://developer.android.com/reference/android/media/MediaPlayer.html for more info. Alex. - Best regards. On Nov 4, 12:55 am,tinalincontina.theresalin...@wipro.com wrote: Hi all, I am currently trying to create acuckooclock widget in which I am facing problem with updating the pendulum sound each secondMy pendulum has to keep on ticking each second with sound effects integrated. I am doing update every second and I am able to play the sound using mPlay = MediaPlayer.create(context, R.raw.chime); mPlay.start(); But after about 30 seconds, the sound stops playing giving the log error as follows: E/AudioTrack( 2106): AudioFlinger could not create track, status: -12 E/AudioSink( 2106): Unable to create audio track E/VorbisPlayer( 2106): mAudioSink open failed Then again the same sound starts playing after a pause of about 20 seconds instead of getting played each second.It continues in this fashion of playing the sound file for some seconds, then to the pause state and then again playing from startThis problem doesnt come into picture when I'm trying to update the sound on hourly basis for my hourly chime because in that case only once every hour this sound is played, same is the case for updation every minuteThis problem arises only for updating the sound each second Wat is the reason behind this delay??Can anyone please help me regarding this? Please do help if anyone got an idea regarding this.Thanks in advance. Regards, TinaLincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with Playing sound in my cuckoo clock widget
Hi all, I am currently trying to create a cuckoo clock widget in which I am facing problem with updating the pendulum sound each secondMy pendulum has to keep on ticking each second with sound effects integrated. I am doing update every second and I am able to play the sound using mPlay = MediaPlayer.create(context, R.raw.chime); mPlay.start(); But after about 30 seconds, the sound stops playing giving the log error as follows: E/AudioTrack( 2106): AudioFlinger could not create track, status: -12 E/AudioSink( 2106): Unable to create audio track E/VorbisPlayer( 2106): mAudioSink open failed Then again the same sound starts playing after a pause of about 20 seconds instead of getting played each second.It continues in this fashion of playing the sound file for some seconds, then to the pause state and then again playing from startThis problem doesnt come into picture when I'm trying to update the sound on hourly basis for my hourly chime because in that case only once every hour this sound is played, same is the case for updation every minuteThis problem arises only for updating the sound each second Wat is the reason behind this delay??Can anyone please help me regarding this? Please do help if anyone got an idea regarding this.Thanks in advance. Regards, Tina Lincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with updating sound in Widget
Hi all, I am currently trying to create a cuckoo clock widget in which I am facing problem with updating the pendulum sound each secondMy pendulum has to keep on ticking each second with sound effects integrated. I am doing update every second and I am able to play the sound using mPlay = MediaPlayer.create(context, R.raw.chime); mPlay.start(); But after about 30 seconds, the sound stops playing giving the log error as follows: E/AudioTrack( 2106): AudioFlinger could not create track, status: -12 E/AudioSink( 2106): Unable to create audio track E/VorbisPlayer( 2106): mAudioSink open failed Then again the same sound starts playing after a pause of about 20 seconds instead of getting played each second.It continues in this fashion of playing the sound file for some seconds, then to the pause state and then again playing from startThis problem doesnt come into picture when I'm trying to update the sound on hourly basis for my hourly chime because in that case only once every hour this sound is played, same is the case for updation every minuteThis problem arises only for updating the sound each second Wat is the reason behind this delay??Can anyone please help me regarding this? Regards, Tina Lincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with updating sound in Widget
any1 knwng d answer??it wil be of great help. On Nov 2, 4:36 pm, tina lincon tina.theresalin...@wipro.com wrote: Hi all, I am currently trying to create a cuckoo clock widget in which I am facing problem with updating the pendulum sound each secondMy pendulum has to keep on ticking each second with sound effects integrated. I am doing update every second and I am able to play the sound using mPlay = MediaPlayer.create(context, R.raw.chime); mPlay.start(); But after about 30 seconds, the sound stops playing giving the log error as follows: E/AudioTrack( 2106): AudioFlinger could not create track, status: -12 E/AudioSink( 2106): Unable to create audio track E/VorbisPlayer( 2106): mAudioSink open failed Then again the same sound starts playing after a pause of about 20 seconds instead of getting played each second.It continues in this fashion of playing the sound file for some seconds, then to the pause state and then again playing from startThis problem doesnt come into picture when I'm trying to update the sound on hourly basis for my hourly chime because in that case only once every hour this sound is played, same is the case for updation every minuteThis problem arises only for updating the sound each second Wat is the reason behind this delay??Can anyone please help me regarding this? Regards, Tina Lincon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Flickering.
Hi everyone,flickering issue is solved now..i removed the thread n d 30 degree delay logic...nw everythng wrking fine.. On Aug 31, 4:56 pm, tina lincon tina.theresalin...@wipro.com wrote: because of the delay only im getting dat curved rotation movement...if i remove d delay,wat happens is it seems dat images wil b just shifting in right n left instead of the ring rotating On Aug 31, 11:58 am, Dev Android devandroid1...@gmail.com wrote: Can you please elaborate more and i think you don't require any delay. Its does n't sounds logical. If you are using any delay that should be a hack in the solution. -- Dev On Tue, Aug 31, 2010 at 11:37 AM,tinalincon tina.theresalin...@wipro.comwrote: any idea???:(plz do help me out.. On Aug 30, 10:47 am,tinalincon tina.theresalin...@wipro.com wrote: hi greg...sorry dint get wat u meant to tell abt asynchronous task here... On Aug 27, 8:27 pm, greg sep...@eduneer.com wrote: I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing, To be consistent, shouldn't Thread be Dread? (sorry, couldn't resist) You've ruled out using AsyncTask rather than your Thread and sleeps? On Aug 27, 1:48 am,tinalincon tina.theresalin...@wipro.com wrote: Any idea hw to remove d flickering???pls do help On Aug 26, 7:21 pm,tinalincon tina.theresalin...@wipro.com wrote: I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; //System.out.println(positive value of dx+dx); for(int i=0;i=30;i++) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1
[android-developers] Re: Flickering.
any idea???:(plz do help me out.. On Aug 30, 10:47 am, tina lincon tina.theresalin...@wipro.com wrote: hi greg...sorry dint get wat u meant to tell abt asynchronous task here... On Aug 27, 8:27 pm, greg sep...@eduneer.com wrote: I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing, To be consistent, shouldn't Thread be Dread? (sorry, couldn't resist) You've ruled out using AsyncTask rather than your Thread and sleeps? On Aug 27, 1:48 am,tinalincon tina.theresalin...@wipro.com wrote: Any idea hw to remove d flickering???pls do help On Aug 26, 7:21 pm,tinalincon tina.theresalin...@wipro.com wrote: I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; //System.out.println(positive value of dx+dx); for(int i=0;i=30;i++) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1) {} } else if ((dx200) (dx250)) { try { Thread.sleep(5
[android-developers] Re: Flickering.
because of the delay only im getting dat curved rotation movement...if i remove d delay,wat happens is it seems dat images wil b just shifting in right n left instead of the ring rotating On Aug 31, 11:58 am, Dev Android devandroid1...@gmail.com wrote: Can you please elaborate more and i think you don't require any delay. Its does n't sounds logical. If you are using any delay that should be a hack in the solution. -- Dev On Tue, Aug 31, 2010 at 11:37 AM, tina lincon tina.theresalin...@wipro.comwrote: any idea???:(plz do help me out.. On Aug 30, 10:47 am, tina lincon tina.theresalin...@wipro.com wrote: hi greg...sorry dint get wat u meant to tell abt asynchronous task here... On Aug 27, 8:27 pm, greg sep...@eduneer.com wrote: I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing, To be consistent, shouldn't Thread be Dread? (sorry, couldn't resist) You've ruled out using AsyncTask rather than your Thread and sleeps? On Aug 27, 1:48 am,tinalincon tina.theresalin...@wipro.com wrote: Any idea hw to remove d flickering???pls do help On Aug 26, 7:21 pm,tinalincon tina.theresalin...@wipro.com wrote: I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; //System.out.println(positive value of dx+dx); for(int i=0;i=30;i++) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1) {} } else if ((dx200) (dx250)) { try { Thread.sleep(5); } catch (InterruptedException e1
[android-developers] Re: Flickering.
hi greg,i dint get wat u meant by dis asychronous thng here in ds context?? On Aug 30, 10:45 am, tina lincon tina.theresalin...@wipro.com wrote: hii frank,flickering is on the device. On Aug 27, 7:58 pm, Frank Weiss fewe...@gmail.com wrote: First a question: Is the flickering on the emulator or a device? Emulator is much slower than a device.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Flickering.
hii frank,flickering is on the device. On Aug 27, 7:58 pm, Frank Weiss fewe...@gmail.com wrote: First a question: Is the flickering on the emulator or a device? Emulator is much slower than a device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Flickering.
hi greg...sorry dint get wat u meant to tell abt asynchronous task here... On Aug 27, 8:27 pm, greg sep...@eduneer.com wrote: I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing, To be consistent, shouldn't Thread be Dread? (sorry, couldn't resist) You've ruled out using AsyncTask rather than your Thread and sleeps? On Aug 27, 1:48 am,tinalincon tina.theresalin...@wipro.com wrote: Any idea hw to remove d flickering???pls do help On Aug 26, 7:21 pm,tinalincon tina.theresalin...@wipro.com wrote: I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; //System.out.println(positive value of dx+dx); for(int i=0;i=30;i++) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1) {} } else if ((dx200) (dx250)) { try { Thread.sleep(5); } catch (InterruptedException e1) {} }
[android-developers] Flickering.
I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; //System.out.println(positive value of dx+dx); for(int i=0;i=30;i++) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1) {} } else if ((dx200) (dx250)) { try { Thread.sleep(5); } catch (InterruptedException e1) {} } else if ((dx250) (dx300)) { try { Thread.sleep(4); } catch (InterruptedException e1) {} } else if ((dx300) (dx350)) { try { Thread.sleep(3); } catch
[android-developers] Re: Flickering.
Any idea hw to remove d flickering???pls do help On Aug 26, 7:21 pm, tina lincon tina.theresalin...@wipro.com wrote: I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; //System.out.println(positive value of dx+dx); for(int i=0;i=30;i++) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1) {} } else if ((dx200) (dx250)) { try { Thread.sleep(5); } catch (InterruptedException e1) {} } else if ((dx250) (dx300)) { try { Thread.sleep(4); } catch (InterruptedException e1) {} } else if ((dx300) (dx350
[android-developers] Flickering problem in 3d animation in Open Gl for a 3d infinitely rotating cylindrical photo album..pls do help me to find out the cause for this flickering
I am doing an application-infinitely rotating 3D cylinder in openGl.The speed varies with finger touch but wen i reduce the speed,i can see flickering happening in animation towards right and left.Initialy I thought it is because of the linked list im updating but found out there is no such problem with my linked list .I'm using a thread here for a small delay after each 30 degree rotation drawing.I cant do it widout the thread coz i need a sleep or a delay after each 30 degree drawing,if i remove the thread and implement the code in thread inside my onDraw frame, the curvature rotation itself goes and it appears that images are just left shifting n right shifting coz the sleep is not getting identified in onDraw frame.So i cant implement my logic here widout using thread..so thread is a must in my logic but i guess the flickering is due to my thread...Is the flickering issue during animation because of the thread?please do help me with this flickering issue..dis is d thread part im using in my code. Runnable r1=new Runnable() { //Thread t1=new Thread(r1); //t1.start(); public void run() { //t1.start(); while(true){ if(rotateFlagRight) { mRenderer.rotationFlag = 1; // System.out.println(positive value of dx+dx); for(int i=0;i=30;i+ +) { mRenderer.mAngleXX= i; if ((dx10) (dx50)) { try { Thread.sleep(100); } catch (InterruptedException e1) {} } else if ((dx50) (dx100)) { try { Thread.sleep(10); } catch (InterruptedException e1) {} } else if ((dx100) (dx150)) { try { Thread.sleep(8); } catch (InterruptedException e1) {} } else if ((dx150) (dx200)) { try { Thread.sleep(7); } catch (InterruptedException e1) {} } else if ((dx200) (dx250)) { try { Thread.sleep(5); } catch (InterruptedException e1) {} } else if ((dx250) (dx300)) { try { Thread.sleep(4); } catch (InterruptedException e1) {} } else if ((dx300) (dx350)) { try { Thread.sleep(3); } catch (InterruptedException e1) {} } else if ((dx350)) { try { Thread.sleep(2); } catch (InterruptedException e1) {} } } mRenderer. listPhotos();
[android-developers] Re: business card design in opn gles
taaanx lance but is it possible to superimpose one texture upon another?wat u talkng isnt it concept abt multitexturing On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote: Creating a texture with the whole text for eachbusinesscardwould be slow and take up a lot of texture memory. Instead you should create one texture that has all the characters needed from the font. To draw the whole text for anybusinesscardyou then, for each character of that text, use a pair of triangles with texture coordinates such that they display one character from the texture. There are countless tools and tutorials out there for doing text in OpenGL in this manner. Similarly, to have the photo on one half of thecardand the text on the other, you would just use more triangles, or in your case, pairs of triangles to make rectangles. Thecardis one large rectangle, perhaps not even textured, just colored white to start with. Then a smaller rectangle in front of that to show the picture. This rectangle needs to be drawn with the texture object with the picture bound and have the texture coordinates to show the picture. Then on the other half a bunch of small rectangles for each character of the text, also in front of the large rectangle that makes up thecard. This ones needs the texture object with the font bound, although that can be the same one if you are using an atlas texture and all photos and font characters happen to fit into it. On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote: any idea??? On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote: Sorry to be that guy Most people on the list including me are not native english speakers. Your text seems to be in some kind of text message gibberish, can you try that again ? Yahel On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote: Hi, I'm presently working with 3d contacts in open gles..the contact photos are being takn frm contacts via content provider and is being displayed as 3d contacts like a stack of cardsd pattern is wrking fine but presently in my application,the whole contact photo is being mapped into one square using texturing.What i want is to have a buisinesscardlike effect for my application like the photo size shud reduce n come on left side and on the right side of thecardi shud have the details like name,phoneno,email,ringtone,officeno etc..since der is image n text to b textured @ d same time in a single square or rectangle,shud i use the concept of multitexturing for this or is der any other simpler way todesignthecardin open gles???pls help me out. thanks in advance...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: business card design in opn gles
i mean is it possible to superimpose 1 texture upon another?like d card is 1 rectangleu take anothr small rectangle n texture d photo in it...and anothr rectangle with text textured in it...and we goto superimpose these two tiny rectangles into d big rectangle..so wat i mean to ask is is it possible to place des two textured rectangles on d bigger rectangle that is is it possible to superimpose multiple textures on another? On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote: Creating a texture with the whole text for eachbusinesscardwould be slow and take up a lot of texture memory. Instead you should create one texture that has all the characters needed from the font. To draw the whole text for anybusinesscardyou then, for each character of that text, use a pair of triangles with texture coordinates such that they display one character from the texture. There are countless tools and tutorials out there for doing text in OpenGL in this manner. Similarly, to have the photo on one half of thecardand the text on the other, you would just use more triangles, or in your case, pairs of triangles to make rectangles. Thecardis one large rectangle, perhaps not even textured, just colored white to start with. Then a smaller rectangle in front of that to show the picture. This rectangle needs to be drawn with the texture object with the picture bound and have the texture coordinates to show the picture. Then on the other half a bunch of small rectangles for each character of the text, also in front of the large rectangle that makes up thecard. This ones needs the texture object with the font bound, although that can be the same one if you are using an atlas texture and all photos and font characters happen to fit into it. On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote: any idea??? On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote: Sorry to be that guy Most people on the list including me are not native english speakers. Your text seems to be in some kind of text message gibberish, can you try that again ? Yahel On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote: Hi, I'm presently working with 3d contacts in open gles..the contact photos are being takn frm contacts via content provider and is being displayed as 3d contacts like a stack of cardsd pattern is wrking fine but presently in my application,the whole contact photo is being mapped into one square using texturing.What i want is to have a buisinesscardlike effect for my application like the photo size shud reduce n come on left side and on the right side of thecardi shud have the details like name,phoneno,email,ringtone,officeno etc..since der is image n text to b textured @ d same time in a single square or rectangle,shud i use the concept of multitexturing for this or is der any other simpler way todesignthecardin open gles???pls help me out. thanks in advance...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: business card design in opn gles
i mean to ask whether it is possible to superimpose 1 texture upon another..Like here in my application,acc to wat u say,i shud be having a big rectangle and 1 small rectangle with photo textured onto it and another small rectangle with text textured onto it and we need to superimpose dose 2 small textured rectangles on the bigger rectangle.so i mean to ask wheter itz possible to superimpose multiple textures on another? On Apr 21, 4:49 pm, tina lincon tina.theresalin...@wipro.com wrote: taaanx lance but is it possible to superimpose one texture upon another?wat u talkng isnt it concept abt multitexturing On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote: Creating a texture with the whole text for eachbusinesscardwould be slow and take up a lot of texture memory. Instead you should create one texture that has all the characters needed from the font. To draw the whole text for anybusinesscardyou then, for each character of that text, use a pair of triangles with texture coordinates such that they display one character from the texture. There are countless tools and tutorials out there for doing text in OpenGL in this manner. Similarly, to have the photo on one half of thecardand the text on the other, you would just use more triangles, or in your case, pairs of triangles to make rectangles. Thecardis one large rectangle, perhaps not even textured, just colored white to start with. Then a smaller rectangle in front of that to show the picture. This rectangle needs to be drawn with the texture object with the picture bound and have the texture coordinates to show the picture. Then on the other half a bunch of small rectangles for each character of the text, also in front of the large rectangle that makes up thecard. This ones needs the texture object with the font bound, although that can be the same one if you are using an atlas texture and all photos and font characters happen to fit into it. On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote: any idea??? On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote: Sorry to be that guy Most people on the list including me are not native english speakers. Your text seems to be in some kind of text message gibberish, can you try that again ? Yahel On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote: Hi, I'm presently working with 3d contacts in open gles..the contact photos are being takn frm contacts via content provider and is being displayed as 3d contacts like a stack of cardsd pattern is wrking fine but presently in my application,the whole contact photo is being mapped into one square using texturing.What i want is to have a buisinesscardlike effect for my application like the photo size shud reduce n come on left side and on the right side of thecardi shud have the details like name,phoneno,email,ringtone,officeno etc..since der is image n text to b textured @ d same time in a single square or rectangle,shud i use the concept of multitexturing for this or is der any other simpler way todesignthecardin open gles???pls help me out. thanks in advance...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: business card design in opn gles
any idea??? On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote: Sorry to be that guy Most people on the list including me are not native english speakers. Your text seems to be in some kind of text message gibberish, can you try that again ? Yahel On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote: Hi, I'm presently working with 3d contacts in open gles..the contact photos are being takn frm contacts via content provider and is being displayed as 3d contacts like a stack of cardsd pattern is wrking fine but presently in my application,the whole contact photo is being mapped into one square using texturing.What i want is to have a buisinesscardlike effect for my application like the photo size shud reduce n come on left side and on the right side of thecardi shud have the details like name,phoneno,email,ringtone,officeno etc..since der is image n text to b textured @ d same time in a single square or rectangle,shud i use the concept of multitexturing for this or is der any other simpler way todesignthecardin open gles???pls help me out. thanks in advance...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] business card design in opn gles
Hi, I'm presently working with 3d contacts in open gles..the contact photos are being takn frm contacts via content provider and is being displayed as 3d contacts like a stack of cardsd pattern is wrking fine but presently in my application,the whole contact photo is being mapped into one square using texturing.What i want is to have a buisiness card like effect for my application like the photo size shud reduce n come on left side and on the right side of the card i shud have the details like name,phoneno,email,ringtone,officeno etc..since der is image n text to b textured @ d same time in a single square or rectangle,shud i use the concept of multitexturing for this or is der any other simpler way to design the card in open gles???pls help me out. thanks in advance... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: business card design in opn gles
does android support multitexturing as presently android supports only open gles1.0 n multitexturing is der only on open gles 1.1..so hw is it possible widout multitexturing to design dis buisiness card? On Apr 15, 3:45 pm, tina lincon tina.theresalin...@wipro.com wrote: Hi, I'm presently working with 3d contacts in open gles..the contact photos are being takn frm contacts via content provider and is being displayed as 3d contacts like a stack of cardsd pattern is wrking fine but presently in my application,the whole contact photo is being mapped into one square using texturing.What i want is to have a buisiness card like effect for my application like the photo size shud reduce n come on left side and on the right side of the card i shud have the details like name,phoneno,email,ringtone,officeno etc..since der is image n text to b textured @ d same time in a single square or rectangle,shud i use the concept of multitexturing for this or is der any other simpler way to design the card in open gles???pls help me out. thanks in advance... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] video playing in appwidget.
is it possible to play a video in an appwidget? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Voice recognition and voice decoding
@ vikas-yea u r rite abt voice recognition but wat abt voice decoder concept? On Jan 12, 10:56 am, Vikas1976 vikas.shah.1...@gmail.com wrote: Google voice recognition android, you'll get about a hundred links. On Jan 11, 9:27 pm, tina lincon tina.theresalin...@wipro.com wrote: no ideas???:( On Jan 11, 4:36 pm, tina lincon tina.theresalin...@wipro.com wrote: How is it possible to implement voice recognition on android phones? Also to decode the voice and convert the male voice to female voice and vice versa?The voice data input from the user will be sent to the Google site for recognition through Internet, or will be processed and recognized locally on my android phone? if anyone has any idea regarding it,plzz help.. Thanks in advance,- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Voice recognition and voice decoding
How is it possible to implement voice recognition on android phones? Also to decode the voice and convert the male voice to female voice and vice versa?The voice data input from the user will be sent to the Google site for recognition through Internet, or will be processed and recognized locally on my android phone? if anyone has any idea regarding it,plzz help.. Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] gallery
Hi, I got 1 doubt in an application using two galleries. Their Adapters are different. I am only drawing gallery and not the pictures in big view.What I want is when I scroll either gallery, the another should also scroll automatically. How can it be done? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Androlib in your Gtalk..
Hi all, You can now search Android apps from your Gtalk with AndroLib Gtalk Bot. Just add in your Gtalk contacts, type your query, and the search result will be sent to you.So enjoy the new features. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Twidroid-The reigning android Twitter King
Hi frndz, I find something interesting to share with u guys.. To start the new year we've got a long overdue feature: Twidroid Pro. Twidroid has consistently been our favorite Twitter client for the better part of a year now and we don't see that changing any time soon. Twidroid delivers your Twitter feed, mentions, direct messages, profile pages, followers, etc. If Twitter offers it in the API, Twidroid probably supports it. While there is a free version, it prefer the multi-account support of Twidroid Pro (seriously, when running a bunch of blogs it's a necessity). Add in loads of options, including theme support, notifications, font sizes, and we've got a Twitter client winner. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Androlib in your Gtalk..
@ sasikumar-you should add andro...@gmail.com in your Gtalk contacts,type your query and the search result will be sent to you.. On Jan 12, 7:40 am, Sasikumar S sasikumar.it1...@gmail.com wrote: Hi tina, what name we should add to gtalk?... On Jan 11, 5:11 pm, tina lincon tina.theresalin...@wipro.com wrote: Hi all, You can now search Android apps from your Gtalk with AndroLib Gtalk Bot. Just add in your Gtalk contacts, type your query, and the search result will be sent to you.So enjoy the new features.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Androlib in your Gtalk..
@ sasikumar-u should add andro...@gmail.com in ur gtalk contacts,type ur query and the search result wil b sent to u. On Jan 12, 10:11 am, tina lincon tina.theresalin...@wipro.com wrote: @ sasikumar-you should add andro...@gmail.com in your Gtalk contacts,type your query and the search result will be sent to you.. On Jan 12, 7:40 am, Sasikumar S sasikumar.it1...@gmail.com wrote: Hi tina, what name we should add to gtalk?... On Jan 11, 5:11 pm, tina lincon tina.theresalin...@wipro.com wrote: Hi all, You can now search Android apps from your Gtalk with AndroLib Gtalk Bot. Just add in your Gtalk contacts, type your query, and the search result will be sent to you.So enjoy the new features.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Voice recognition and voice decoding
no ideas???:( On Jan 11, 4:36 pm, tina lincon tina.theresalin...@wipro.com wrote: How is it possible to implement voice recognition on android phones? Also to decode the voice and convert the male voice to female voice and vice versa?The voice data input from the user will be sent to the Google site for recognition through Internet, or will be processed and recognized locally on my android phone? if anyone has any idea regarding it,plzz help.. Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: gallery
okaa..taanxx...:) On Jan 12, 3:36 am, Kumar Bibek coomar@gmail.com wrote: Well, I haven't tried it out, but I guess, you need to use the scrollTo or scrollBy method. But creating a complete sync is a difficult task, I guess. Kumar Bibekhttp://tech-droid.blogspot.com On Jan 11, 4:29 pm, tina lincon tina.theresalin...@wipro.com wrote: Hi, I got 1 doubt in an application using two galleries. Their Adapters are different. I am only drawing gallery and not the pictures in big view.What I want is when I scroll either gallery, the another should also scroll automatically. How can it be done?- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en