[android-developers] Re: Communication with Flash (swf)
Hi, really thanks for your answer :) Did you ever tried this before? So the android app will continuously looping every x second to read a file for any input right? Is it really possible? i mean for swf to write and read a file in android platform. Maybe if you have a trial source code, it would be great if you can send it to me for sample :) Thanks On Jun 2, 10:44 pm, ankur chaudhry ankur.198925sas...@gmail.com wrote: One way you can do is via a text-file.. write and read from text-file in android code...and you can do same with your flash swf for communication.. i think direct way is not possible as 2 are very different technologies.. :) Any prob..do tell.. :) -- 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: Communication with Flash (swf)
hi, do you found the solution on how to communicate with flash? big swf file i think is not an issue, just an issue to the memory, as it needs to be loaded into web browser memory, i think. On May 31, 11:15 pm, gaara amellal.kamili...@gmail.com wrote: Hi, i have the same problem? you think that we have this possibility even if swf file is big? Peace Gaara On May 31, 8:05 am, sleith raysle...@gmail.com wrote: Hi, Is there anyway app/webview can communicate with flash? Is fscommand able to do this? Or anyone have tried using tcp/udp communication to communicate with flash? need help, Thanks . -- 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: Communication with Flash (swf)
Huh? text to speech? I thought we were talking how to communicate the android app with flash, didn't we? What to do with TTS? :) Let me know if i missed something Thanks On Jun 2, 8:53 pm, kamilia amellal amellal.kamili...@gmail.com wrote: Hi, Thanks for replay , i want something like jTalk plugin instead of Text To Speech ,ant ideas?? Peace, Gaara 2011/6/2 sleith raysle...@gmail.com hi, do you found the solution on how to communicate with flash? big swf file i think is not an issue, just an issue to the memory, as it needs to be loaded into web browser memory, i think. On May 31, 11:15 pm, gaara amellal.kamili...@gmail.com wrote: Hi, i have the same problem? you think that we have this possibility even if swf file is big? Peace Gaara On May 31, 8:05 am, sleith raysle...@gmail.com wrote: Hi, Is there anyway app/webview can communicate with flash? Is fscommand able to do this? Or anyone have tried using tcp/udp communication to communicate with flash? need help, Thanks . -- 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 -- 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] Communication with Flash (swf)
Hi, Is there anyway app/webview can communicate with flash? Is fscommand able to do this? Or anyone have tried using tcp/udp communication to communicate with flash? need help, Thanks . -- 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: swf in String base64
anyone? thx On Apr 12, 6:26 pm, sleith raysle...@gmail.com wrote: Hi, is it possible to load swf file as String base64 to webview? (i tried but not working) The problem is that i need the swf saved into sdcard (in .xyz package file). But when need to play, i have to extract the swf to sdcard and load to webview, which is low in security that people can copy the sdcard. Is there some suggestions about this? thanks :) -- 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] swf in String base64
Hi, is it possible to load swf file as String base64 to webview? (i tried but not working) The problem is that i need the swf saved into sdcard (in .xyz package file). But when need to play, i have to extract the swf to sdcard and load to webview, which is low in security that people can copy the sdcard. Is there some suggestions about this? thanks :) -- 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] touch listener with background service
hi is there a way to get touch listener even if the app is on background or using service? i need to get the x y position. thanks -- 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] bring task to front
Hi, i know this question has been ask many times, but i still don't find a solution... need helps :) I tried to handle about the hold screen button that makes screen off. Somehow the game is exit because of this. Then i try using broadcast listener for screen on/off and when detecting off the app will call moveTaskToBack(false) which successfully saved the state of the game. When i turn on the screen, I tried launch manually from homescreen and the game can resume the previous state (this means moveTaskToBack is a success). Because i need the phone to automatically bring the game to the front, i try to make a background service that receive command from the screen listener to launch intent. But the game start from the beginning instead of resuming last state. So what i might missed is how to launch an intent to bring from back to front just like we run the app from homescreen. Need help, thx . -- 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: bring task to front
Hi, thanks for responding :) I tried couple times. Latest : Intent intent = pm.getLaunchIntentForPackage(packagename); intent.setClassName(mContext, MainActivity.class.getName()); intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY| Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); i also tried previously: Intent intent = new Intent(context, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks On Oct 29, 2:54 pm, XC He schosnab...@gmail.com wrote: How do you start the intent ?? 2010/10/29 sleith raysle...@gmail.com: Hi, i know this question has been ask many times, but i still don't find a solution... need helps :) I tried to handle about the hold screen button that makes screen off. Somehow the game is exit because of this. Then i try using broadcast listener for screen on/off and when detecting off the app will call moveTaskToBack(false) which successfully saved the state of the game. When i turn on the screen, I tried launch manually from homescreen and the game can resume the previous state (this means moveTaskToBack is a success). Because i need the phone to automatically bring the game to the front, i try to make a background service that receive command from the screen listener to launch intent. But the game start from the beginning instead of resuming last state. So what i might missed is how to launch an intent to bring from back to front just like we run the app from homescreen. Need help, thx . -- 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 -- 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: bring task to front
Hi, but if i don't use it, it will be an error. btw, do you know how the mainscreen launch the app? launcher app code :D Thanks On Oct 29, 8:29 pm, TreKing treking...@gmail.com wrote: On Fri, Oct 29, 2010 at 3:19 AM, sleith raysle...@gmail.com wrote: Intent.FLAG_ACTIVITY_NEW_TASK This, as it states, will create a new task. If that's not what you want, then don't use it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] install to sdcard failed
Hi, I'm trying the feature android:installLocation=preferExternal my asset files is 155MB and sdcard has around 2GB. When trying to install, it seems the apk file is installing to the internal phone storage instead to the sdcard. This results : Unable to upload file: No space left on device When i tried to remove some asset files to small size 20MB i think, it can be installed to the sdcard. Can anyone help me out why it's installing to the internal phone storage instead to sdcard? Thanks -- 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] how to get CPU speed
Hi, is there anyway to know CPU speed running on device? Thanks :) -- 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] resized window for clicking other window app
Hi, i want to ask is it possible to launch activity in resized window, so that we can still see behind activity screen, and we can click the behind activity screen button or something? (interact with behind activity screen) Thanks -- 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] layout on top of the InCallScreen
Hi, i use the PhoneStateListener to listen for the call. When i receive ringing state, i tried to launch an intent to run my app. but i noticed that my app is go behind the InCallScreen. I've tried using delay time to make the InCallScreen pop up first, then launched my app, but still cannot replace on top of the InCallScreen layer. I have to hang up the call in order to see my app. Could someone help me? Thanks . -- 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: GLSurfaceView and camera surface
thanks for the link Marc ^^ going to try this On Mar 26, 11:55 am, Marc Lester Tan mail...@gmail.com wrote: You can try this one: Camera image as an OpenGL texture on top of the native camera viewfinderhttp://nhenze.net/?p=172 Marc http://nhenze.net/?p=172 On Fri, Mar 26, 2010 at 11:22 AM, sleith raysle...@gmail.com wrote: Hi, thanks for your response. how do i give different z index? isn't it automatically when we call add() ? so i attach alParent.addView(mCameraView); first and then alParent.addView(view); so isn't it means mCameraView at index 0, and view at index 1? but still i cannot see the opengl object, only camera preview when i change alParent.addView(view); first and then alParent.addView(mCameraView); i see the opengl object only... On Mar 25, 1:29 pm, rollbak roll...@gmail.com wrote: Hello, If you want one on top of the other you must use a FrameLayout and then give different z index to each when adding them as childs. regards, Lucas On Mar 25, 3:07 am, sleith raysle...@gmail.com wrote: Hi, i tried to have a GLSurfaceView on top of camera surface, so that i can draw gl objects with camera preview as background. I tried but didn't works. the view i has is something like this: AbsoluteLayout alParent = new AbsoluteLayout(this); alParent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); //CameraView extends SurfaceView implements SurfaceHolder.Callback mCameraView = new CameraView(this); mCameraView.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(mCameraView); //GLView extends GLSurfaceView view = new GLView(this); view.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(view); it resulting the camera preview only, the opengl is not drawn. ( i made sure without camera, the opengl draws cube). Anyone have experienced this kind of situation? Thanks :) -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: GLSurfaceView and camera surface
after trying i think the things that make it visible is the GLSurfaceView need to implements SurfaceHolder.Callback and then set it's holder : getHolder().setFormat(PixelFormat.TRANSLUCENT); i think its working, thanks for the link ^^ On Mar 26, 1:48 pm, sleith raysle...@gmail.com wrote: thanks for the link Marc ^^ going to try this On Mar 26, 11:55 am, Marc Lester Tan mail...@gmail.com wrote: You can try this one: Camera image as an OpenGL texture on top of the native camera viewfinderhttp://nhenze.net/?p=172 Marc http://nhenze.net/?p=172 On Fri, Mar 26, 2010 at 11:22 AM, sleith raysle...@gmail.com wrote: Hi, thanks for your response. how do i give different z index? isn't it automatically when we call add() ? so i attach alParent.addView(mCameraView); first and then alParent.addView(view); so isn't it means mCameraView at index 0, and view at index 1? but still i cannot see the opengl object, only camera preview when i change alParent.addView(view); first and then alParent.addView(mCameraView); i see the opengl object only... On Mar 25, 1:29 pm, rollbak roll...@gmail.com wrote: Hello, If you want one on top of the other you must use a FrameLayout and then give different z index to each when adding them as childs. regards, Lucas On Mar 25, 3:07 am, sleith raysle...@gmail.com wrote: Hi, i tried to have a GLSurfaceView on top of camera surface, so that i can draw gl objects with camera preview as background. I tried but didn't works. the view i has is something like this: AbsoluteLayout alParent = new AbsoluteLayout(this); alParent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); //CameraView extends SurfaceView implements SurfaceHolder.Callback mCameraView = new CameraView(this); mCameraView.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(mCameraView); //GLView extends GLSurfaceView view = new GLView(this); view.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(view); it resulting the camera preview only, the opengl is not drawn. ( i made sure without camera, the opengl draws cube). Anyone have experienced this kind of situation? Thanks :) -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] GLSurfaceView and camera surface
Hi, i tried to have a GLSurfaceView on top of camera surface, so that i can draw gl objects with camera preview as background. I tried but didn't works. the view i has is something like this: AbsoluteLayout alParent = new AbsoluteLayout(this); alParent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); //CameraView extends SurfaceView implements SurfaceHolder.Callback mCameraView = new CameraView(this); mCameraView.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(mCameraView); //GLView extends GLSurfaceView view = new GLView(this); view.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(view); it resulting the camera preview only, the opengl is not drawn. ( i made sure without camera, the opengl draws cube). Anyone have experienced this kind of situation? Thanks :) -- 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 from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: GLSurfaceView and camera surface
Hi, thanks for your response. how do i give different z index? isn't it automatically when we call add() ? so i attach alParent.addView(mCameraView); first and then alParent.addView(view); so isn't it means mCameraView at index 0, and view at index 1? but still i cannot see the opengl object, only camera preview when i change alParent.addView(view); first and then alParent.addView(mCameraView); i see the opengl object only... On Mar 25, 1:29 pm, rollbak roll...@gmail.com wrote: Hello, If you want one on top of the other you must use a FrameLayout and then give different z index to each when adding them as childs. regards, Lucas On Mar 25, 3:07 am, sleith raysle...@gmail.com wrote: Hi, i tried to have a GLSurfaceView on top of camera surface, so that i can draw gl objects with camera preview as background. I tried but didn't works. the view i has is something like this: AbsoluteLayout alParent = new AbsoluteLayout(this); alParent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); //CameraView extends SurfaceView implements SurfaceHolder.Callback mCameraView = new CameraView(this); mCameraView.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(mCameraView); //GLView extends GLSurfaceView view = new GLView(this); view.setLayoutParams(new AbsoluteLayout.LayoutParams( AbsoluteLayout.LayoutParams.FILL_PARENT, AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0)); alParent.addView(view); it resulting the camera preview only, the opengl is not drawn. ( i made sure without camera, the opengl draws cube). Anyone have experienced this kind of situation? Thanks :) -- 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 from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: email multi attachments
Hi, thanks for your response. I'll try it, and i'll tell you if i make any progress :D thanks man On Mar 2, 7:19 pm, Matias Alberto de la Vega delavega.mat...@gmail.com wrote: BTW if you want to do some research on your own, you can google ACTION_SEND_MULTIPLE which I yet couldn't manage to get it to work...anyway you may want to check it out, if you make progress on this, please let me know: http://developer.android.com/reference/android/content/Intent.html#AC... On 2 mar, 02:41, sleith raysle...@gmail.com wrote: still dont find any solution for this.. please help . On Feb 21, 9:16 pm, sleith raysle...@gmail.com wrote: anyone can help? . On Feb 21, 9:35 am, sleith raysle...@gmail.com wrote: Hi, is it possible to send email with multi attachments? Because what i see is only Intent.EXTRA_STREAM to attach the file, and it's only one file. Thanks for the help :) -- 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: email multi attachments
still dont find any solution for this.. please help . On Feb 21, 9:16 pm, sleith raysle...@gmail.com wrote: anyone can help? . On Feb 21, 9:35 am, sleith raysle...@gmail.com wrote: Hi, is it possible to send email with multi attachments? Because what i see is only Intent.EXTRA_STREAM to attach the file, and it's only one file. Thanks for the help :) -- 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: email multi attachments
anyone can help? . On Feb 21, 9:35 am, sleith raysle...@gmail.com wrote: Hi, is it possible to send email with multi attachments? Because what i see is only Intent.EXTRA_STREAM to attach the file, and it's only one file. Thanks for the help :) -- 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] email multi attachments
Hi, is it possible to send email with multi attachments? Because what i see is only Intent.EXTRA_STREAM to attach the file, and it's only one file. Thanks for the help :) -- 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 view weird green color
For people who face the same problem, try set Gallery android:unselectedAlpha=255. It fixed my issue :) On Feb 10, 10:13 am, sleith raysle...@gmail.com wrote: Hi, i use Gallery, and don't know why the background color has weird green color on sdk 2.1. It didn't happen on 1.5. Please help. thx -- 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 view weird green color
Hi, i use Gallery, and don't know why the background color has weird green color on sdk 2.1. It didn't happen on 1.5. Please help. thx -- 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] virtual keyboard on dialog webview not shown
Hi, i wonder how to show the virtual keyboard on dialog webview? i've tried to show it manually but nothing happens . thanks -- 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] broadcastreceiver never died?
hi, i created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. i use Advanced Task Killer, and killed the Test application. but when i kill another application, for example gmail, the Test's broadcastreceiver got the intent (i logged it). Does it means that broadcastreceiver will never died? Thanks :) -- 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: broadcastreceiver never died?
ok thanks for your replies :) On Dec 8, 9:14 pm, justinh henderson.jus...@gmail.com wrote: It's going to call every time that broadcast is sent. If you want to handle specific packages you need to do that inside the receiver by looking at the received Intent. Each time it's done handling that broadcast it should be garbage collected. On Dec 8, 6:53 am, sleith raysle...@gmail.com wrote: hi, i created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. i use Advanced Task Killer, and killed the Test application. but when i kill another application, for example gmail, the Test's broadcastreceiver got the intent (i logged it). Does it means that broadcastreceiver will never died? Thanks :) -- 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] app for blocking apps
Hi, is there any way to block an app so that cannot be launched? thx -- 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: app for blocking apps
any one know the code to block app so cannot be launched? . thx On Nov 28, 10:43 pm, sleith raysle...@gmail.com wrote: Hi, is there any way to block an app so that cannot be launched? thx -- 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: Growing pains for Android developers??
Hahaha How about me, in indonesia? -_-' will take a lt of years i guess to be able sell app in android market . On Nov 16, 2:25 pm, biAji biaji...@gmail.com wrote: On Nov 14, 11:00 pm, wonae mat...@hanmail.net wrote: Hey guys, I'm a Korean and we don't even find a way to sell our apps!! We have to earn a little cash only with AdMob :_( Same here, China~~ lol take it easy~ -- 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: ADC2 Results Post
I'm really happy that my first android app got top 20 ^^ Congratulations! Your application 'ClapCard' was selected by Android users as one of the top 20 in the Social category! We're excited that you chose to participate in the ADC 2 and wish you luck in the final round as your application is evaluated by users and a panel of judges. My hardworks for 3 months got paid. thx for the judges. i wonder if i can update it, coz in android market i've release to better version . On Nov 6, 5:57 am, jgostylo jgost...@gmail.com wrote: Congratulations Dan! It looks like your app is pretty good. I did not get to review any apps worth while but I assume there were some pretty good ones out there. My app The Great Land Grab ended up in the top 50%. Interesting to see that there was a top 25% rating. I believe I was also hurt by the fact that my app just did not work outside the US (no data to load). Nothing in the rules saying that it would not be judged outside the US, I just assumed it was a US only competition. My friend said I did that because I am a xenophobe. Well if I am then I probably deserve the loss ;). On Nov 5, 4:40 pm, Dan Sherman impact...@gmail.com wrote: We just got ours :) Congratulations! Your application 'ProjectINF ADC' was selected by Android users as one of the top 20 in the Arcade category! We're excited that you chose to participate in the ADC 2 and wish you luck in the final round as your application is evaluated by users and a panel of judges. We've got some screenshots over onhttp://www.chickenbrickstudios.com:) - Dan On Thu, Nov 5, 2009 at 5:21 PM, Maan Najjar maan.naj...@gmail.com wrote: I didn't get anything too ... On Thu, Nov 5, 2009 at 5:09 PM, f_heft delphik...@gmail.com wrote: I didn't get a mail so far ... :( Are these mails beeing send over the next few hours or did I somehow miss it? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Sound in games
how about allocate many MediaPlayer? is it bad? On Oct 9, 4:07 pm, yarik...@gmail.com yarik...@gmail.com wrote: Hi all! I have pretty common question: is there any bug-free way to implement sound effects in a game? Or we only have unpredictable SoundPool with its horrible bugs? Or MediaPlayer that can only play one sound at once and which is not solution for a game at all? In fact, it is disturbing question for numerous developers right now! --~--~-~--~~~---~--~~ 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] detect onTouch for widget
Hi, I'm trying to make widget gallery at homescreen. I'm currently stuck because didn't find any example how to detect on touch in widget. Could someone help me? Thank you --~--~-~--~~~---~--~~ 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: detect onTouch for widget
Hi Mark, thanks for quick reply. I mean i would like to make something like image album widget on htc hero. when we swap finger, it change it's view :D is it possible? thanks On Oct 3, 8:18 am, Mark Murphy mmur...@commonsware.com wrote: I'm trying to make widget gallery at homescreen. I'm currently stuck because didn't find any example how to detect on touch in widget. Could someone help me? Thank you You don't detect on touch for app widgets. You can, however, detect clicks, via setOnClickPendingIntent() on RemoteViews. AFAIK, this works for all View classes supported by RemoteViews. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: detect onTouch for widget
Ok Thanks for your help :D On Oct 3, 8:27 am, Mark Murphy mmur...@commonsware.com wrote: I mean i would like to make something like image album widget on htc hero. when we swap finger, it change it's view :D is it possible? thanks Probably not. I do not have an HTC Hero and so am not familiar with this feature. However, there is nothing in the RemoteViews API that supports gestures AFAICT. Also, just because it is on the home screen does not mean it is an app widget, just as the Google search widget on regular Android devices is not an app widget. It could be written as a part of their actual home screen implementation. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: launch activity like phone call
Hi, wanna ask again about Mark's first warning: Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. when the phone turns on the CPU again, will the service restarted automatically? if it won't, how to know if the CPU has been turned on/off? thanks On Sep 27, 5:35 pm, sleith raysle...@gmail.com wrote: Hi, thanks Mark for your advice, that's a nice input from you :) On Sep 27, 5:26 pm, Mark Murphy mmur...@commonsware.com wrote: sleith wrote: i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launched by service. is there any way to make the screen on by programming? because when we receive call, the screen will on. so i think it is possible :D First, the warnings: 1. Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. 2. Doing things that wake up the phone are bad for battery life. See Jeff Sharkey's Coding for Life...Battery Life, That Is presentation from Google I/O 2009 for statistics. 3. Popping up user interfaces from a service are bad for the user experience. If the user is, say, in the middle of typing a text message, and your service-spawned activity steals the foreground, they may have quite a few profanities to fling in your direction. An incoming phone call is one of the few things users might tend to agree warrants such an intrusion...and I suspect there are still many a curse word used when users get interrupted, even for that. Hence, before you even bother with any code, you need to really make sure that this is what you want to do, and consider offering user preferences to disable this functionality. All that said, you will want to look at PowerManager.WakeLock to arrange to keep the screen and CPU on for a while. Which leads to: 4. Misusing WakeLocks are horrible for the battery. Do not leak an acquired WakeLock. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.com --~--~-~--~~~---~--~~ 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: launch activity like phone call
ok thanks for the explanation. i learn more :D On Sep 28, 8:13 pm, Mark Murphy mmur...@commonsware.com wrote: sleith wrote: Hi, wanna ask again about Mark's first warning: Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. when the phone turns on the CPU again, will the service restarted automatically? Restarted? A running service will start running again, but to me restart implies it was destroyed and recreated, which does not happen. When the CPU shuts down, everything freezes in mid-operation. When the CPU starts up again, everything continues from where it was. Again, I strongly advise against having services run indefinitely. A well-constructed service only runs when it needs to (via an alarm) and can arrange via a WakeLock to keep the CPU running for the short period it needs to run. See more at: http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-a... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org --~--~-~--~~~---~--~~ 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] launch activity like phone call
hi, i have 2 questions . 1. i have a service that will launch an activity. How to make the activity launched like a phone call? i mean when the phone screen is locked, it will awaken. 2. how to start a service right after downloaded and installed from android market? Thank you --~--~-~--~~~---~--~~ 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: launch activity like phone call
Hi, thanks for your fast response :D how about the questions number 1? i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launched by service. is there any way to make the screen on by programming? because when we receive call, the screen will on. so i think it is possible :D thank you On Sep 27, 3:50 pm, Dianne Hackborn hack...@android.com wrote: On Sun, Sep 27, 2009 at 1:47 AM, sleith raysle...@gmail.com wrote: 2. how to start a service right after downloaded and installed from android market? This is deliberately not supported. You can start the service when the user launches your app. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: launch activity like phone call
Hi, thanks Mark for your advice, that's a nice input from you :) On Sep 27, 5:26 pm, Mark Murphy mmur...@commonsware.com wrote: sleith wrote: i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launched by service. is there any way to make the screen on by programming? because when we receive call, the screen will on. so i think it is possible :D First, the warnings: 1. Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. 2. Doing things that wake up the phone are bad for battery life. See Jeff Sharkey's Coding for Life...Battery Life, That Is presentation from Google I/O 2009 for statistics. 3. Popping up user interfaces from a service are bad for the user experience. If the user is, say, in the middle of typing a text message, and your service-spawned activity steals the foreground, they may have quite a few profanities to fling in your direction. An incoming phone call is one of the few things users might tend to agree warrants such an intrusion...and I suspect there are still many a curse word used when users get interrupted, even for that. Hence, before you even bother with any code, you need to really make sure that this is what you want to do, and consider offering user preferences to disable this functionality. All that said, you will want to look at PowerManager.WakeLock to arrange to keep the screen and CPU on for a while. Which leads to: 4. Misusing WakeLocks are horrible for the battery. Do not leak an acquired WakeLock. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.com --~--~-~--~~~---~--~~ 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: ADC2 entries so far...
Social Networking: ClapCard www.clapcard.com --~--~-~--~~~---~--~~ 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: Translucent and FullScreen?
try this one :) requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); On Sep 10, 4:08 am, Illidane illid...@gmail.com wrote: Hi! I have an issue : I set Theme.Translucent.NoTitleBar.Fullscreen for my app, but status bar is still here. Is there a solution for it? Thanks. --~--~-~--~~~---~--~~ 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience
Hi It's the first time i release application in Android. My app is ClapCard (in market i submit it as Clap Card, because when using ClapCard title it said the app has already exist, maybe they compared to the app in adc2 too) I started 3 months ago, doing the app in my free time (i have full time job and part time job). it's a 3 months with less sleep (averagely 5 hours sleep) Glady i made it in time to submit my app. My app is a social type. It's about creating and sharing animated card. It's not like cards in web site tough, because it uses phones cappabilities like web, map, vibration, sms, email, etc. Because this is my first release, this morning i submitted it to the market hoping that people like it and can create and posting cards to make it more crowded in community. I myself posted 2 cards only, still has a lot of works to do the tutorial page in website (www.clapcard.com) It's a real fun experience to do all the stuff since this is my first app available for public ^^ I'm planning to make a puzzle like game after completing the website. (will be my first experience creating game too...) On Sep 2, 1:32 pm, JP joachim.pfeif...@gmail.com wrote: Augmented Reality. I've got a comp ed of AugmentThis! in the running. This round I didn't stress over the ADC, for a number of reasons, not the least that PURE LUCK will play a big role again. So I got the release candidate ready about a week before deadline. Of course there's always room to squeeze in new features and apply more polish. Like all dedicated devs I will remain eternally unhappy with the product, but assuming that the evaluators will not sniff out all the corners anyway, I spent the rest of the time testing, which turned out to be a good use of the remaining time. Two remarks: As -v- has found, it takes a long time to get Android dialed and is decidedly challenging, in spite of the cheerful assurances in the various videos on Android's Google Code page. Seemingly trivial things can consume huge amounts of effort. Which isn't a problem, Android is powerful, with broad and deep access to the devices' capabilities (in case you haven't noticed). Re: CraigsRace's comment: If the ADC1 is any indication, placing above average won't get any exposure whatsoever. On Sep 1, 7:41 am, Lout lout.r...@googlemail.com wrote: While you developers relax... would you mind sharing what apps to expect through this challenge.. and anything else you wish to share about ADC2 submissions... well anything including the fact: 'thank God, no more sleep less nights'! Am collecting information about the challenge (ADC2) for a news article as am with cnet (and AP). Pitch your app if you have already published or would soon publish on the market too. Your app name and description, web link if any, experience with ADC2, ... anything would be useful for our article(s). And do you feel that there would have been more submissions than in ADC1? Is the competition going to be tougher or less profound as you were allowed to put up apps not published before 1st Aug only? Do you think that all apps that didn't try for ADC1 should have had a chance? Congratulations on your submissions while you wait for the next phase. Thanks, Lout Reilly ps: Moderators we request you to let this through so that you too get some feedback. --~--~-~--~~~---~--~~ 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience
CraigsRace: what is Gonorrhea? i googled it and in wiki said its bacteria? hehe i choose that name because clapcard.com domain is available and the names resembles to the game i played when i was a kid. (dunno if in your country has it's game, it's by tossing card with friend, who got upside front win the game). On Sep 2, 3:09 pm, Lee lee.wil...@googlemail.com wrote: Here's my submission blurb, any chance for self-promotion :-) Tasker let's you link any Task (action set) to the Contexts (application, time, day, location, event, widget press) where it should run. Send an SMS at 3:15 Monday, make per-app settings or locks, map camera button to a menu, launch music app on headphone insert, timelapse photos, encrypt on-the-fly, the list is endless! - Glad I didn't make a game now, seems to be a crowded category! I'm grateful to Google for organising a fun competition but was a little dissatisfied with not having enough time to develop and well- test a non-trivial application from scratch. It's also not possible to submit bugfixes after the deadline, and of course I'm discovering hundreds every day now... I had some test code for the location context which vibrates the phone every time the coordinates change: forgot to take it out of course. With 5 hours to go (2am in Europe) I found my widget icons were disappearing after a few minutes for no apparent reason: it was comic at first but became less so as time wore on and I couldn't fix it (never did find it...) Rud: bad luck, I was also worried about catching something in the last few weeks, would have been a nightmare! Lee --~--~-~--~~~---~--~~ 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: adc2 submission site
i agree with you there's so many things that can happen to anyone and anytime that may make him fail to submit his apk On Aug 24, 2:20 pm, an0 an0...@gmail.com wrote: If the time window is too small, any little problems may cause you miss it. Also consider the sudden surge of submissions in the same time. On Aug 20, 4:44 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: As long as the site opens before the end of the month, what difference does it make? -John Coryat --~--~-~--~~~---~--~~ 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: map with compass like indicator
anyone can help? On Aug 21, 11:42 am, sleith raysle...@gmail.com wrote: hi, i'm trying to make a map with showing my location with an arrow that point to the way we are facing. the arraw image is something like this: ^ 0 always pointing north, so i rotate it with sensor orientation event ( image.rotate(values[0]) ) i would like to ask if google map's north is always on 12 o'clock? because i try sometimes the arrow point to wrong direction. how to accurately make this thing works? thank you --~--~-~--~~~---~--~~ 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] map with compass like indicator
hi, i'm trying to make a map with showing my location with an arrow that point to the way we are facing. the arraw image is something like this: ^ 0 always pointing north, so i rotate it with sensor orientation event ( image.rotate(values[0]) ) i would like to ask if google map's north is always on 12 o'clock? because i try sometimes the arrow point to wrong direction. how to accurately make this thing works? thank you --~--~-~--~~~---~--~~ 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: adc2 submission site
hm... google should inform in their site if the submission site is not available yet... it's already 2 weeks from when it should be. but anyway another postpone would be good for me and others hehe On Aug 15, 3:24 pm, Khurram Samad khurram.sa...@gmail.com wrote: HI I am trying to find the update, but still can't ! I guess, they haven't yet updated the page ! May be they will extend the deadline and introduce 2.0 Khurram Samad GenITeam | Mobile 2.0 Specialist Companywww.geniteam.com On Aug 15, 9:36 am, sleith raysle...@gmail.com wrote: Hi, i've just purchased to be an android developer when i visithttp://market.android.com/publish, i don't see anything about publish for adc 2 how to submit app for adc 2 ? thank you --~--~-~--~~~---~--~~ 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] adc2 submission site
Hi, i've just purchased to be an android developer when i visit http://market.android.com/publish, i don't see anything about publish for adc 2 how to submit app for adc 2 ? thank you --~--~-~--~~~---~--~~ 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: video screen disappeared after launch new task
hm... for example you could try looking at api demo, there's all the android features with full source code :) for tutorial forum i believe there's already many of them giving tutorial, like anddev.org or maybe find an ebook tutorial :) On Jul 27, 10:51 pm, Milos Gajic gajoni...@gmail.com wrote: I'm not have any idea how to create this project. I'm at beginning of developing this project, for now i don't have nothing. I read some blogs on forums but i don't find any full example. I think that you can help me with some simple example Thanks 2009/7/27 Mark Murphy mmur...@commonsware.com sleith wrote: any idea? Is this hardware or the emulator? If it is the emulator, can you reproduce the problem on a device? -- Mark Murphy (a Commons Guy) http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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: video screen disappeared after launch new task
any idea about this problem? On Jul 28, 6:38 am, sleith raysle...@gmail.com wrote: here's the code try clicking that will trigger dial number, and then push back button, and you will see the video screen disappeared but the sound is playing thx :D public class VideoTest extends Activity { private VideoPlayer mVideoPlayer; private String mFile = /sdcard/Airplane.3gp; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FrameLayout mainLayout = new FrameLayout(this); mainLayout.setLayoutParams(new FrameLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); // set to dial number mainLayout.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent dialIntent = new Intent(Intent.ACTION_DIAL, Uri .parse(tel:12345)); startActivity(dialIntent); } }); // surface view for video screen SurfaceView videoSurface = new SurfaceView(this); videoSurface.setLayoutParams(new LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); mainLayout.addView(videoSurface); mVideoPlayer = new VideoPlayer(videoSurface, mFile); setContentView(mainLayout); } @Override protected void onResume() { super.onResume(); mVideoPlayer.Start(); } @Override protected void onStop() { super.onStop(); mVideoPlayer.Pause(); } private class VideoPlayer implements MediaPlayer.OnPreparedListener, SurfaceHolder.Callback { private MediaPlayer mMediaPlayer; private String mVideoFile; private SurfaceHolder mHolder; public VideoPlayer(final SurfaceView surfaceView, final String file) { mHolder = surfaceView.getHolder(); mHolder.addCallback(this); mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); mHolder.setSizeFromLayout(); mVideoFile = file; } public void Start() { if (mMediaPlayer != null) mMediaPlayer.start(); } public void Pause() { if (mMediaPlayer != null) mMediaPlayer.pause(); } public void onPrepared(MediaPlayer mp) { mVideoPlayer.Start(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } public void surfaceCreated(SurfaceHolder holder) { // to prevent recreating media player if (mMediaPlayer == null) { mMediaPlayer = new MediaPlayer(); try { mMediaPlayer.setDataSource(mVideoFile); mMediaPlayer.setDisplay(mHolder); mMediaPlayer.prepare(); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } catch (Exception e) { } } } public void surfaceDestroyed(SurfaceHolder holder) { } public void onBufferingUpdate(MediaPlayer mp, int percent) { } } } On Jul 27, 10:40 pm, Mark Murphy mmur...@commonsware.com wrote: sleith wrote: any idea? Is this hardware or the emulator? If it is the emulator, can you reproduce the problem on a device? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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] video screen disappeared after launch new task
hi, i tried to play video using media player, and it run ok like at the example at api demos. but the problem is, when i trigger something that launch a new task (for example click button that will dial number) and then back to it's task, the video screen is gone, only sounds is playing. i noticed that the OnSurfaceChange is called, is this the problem? how to solve it? thx --~--~-~--~~~---~--~~ 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: video screen disappeared after launch new task
any idea? On Jul 27, 4:42 pm, sleith raysle...@gmail.com wrote: hi, i tried to play video using media player, and it run ok like at the example at api demos. but the problem is, when i trigger something that launch a new task (for example click button that will dial number) and then back to it's task, the video screen is gone, only sounds is playing. i noticed that the OnSurfaceChange is called, is this the problem? how to solve it? thx --~--~-~--~~~---~--~~ 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: video screen disappeared after launch new task
here's the code try clicking that will trigger dial number, and then push back button, and you will see the video screen disappeared but the sound is playing thx :D public class VideoTest extends Activity { private VideoPlayer mVideoPlayer; private String mFile = /sdcard/Airplane.3gp; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FrameLayout mainLayout = new FrameLayout(this); mainLayout.setLayoutParams(new FrameLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); // set to dial number mainLayout.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent dialIntent = new Intent(Intent.ACTION_DIAL, Uri .parse(tel:12345)); startActivity(dialIntent); } }); // surface view for video screen SurfaceView videoSurface = new SurfaceView(this); videoSurface.setLayoutParams(new LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); mainLayout.addView(videoSurface); mVideoPlayer = new VideoPlayer(videoSurface, mFile); setContentView(mainLayout); } @Override protected void onResume() { super.onResume(); mVideoPlayer.Start(); } @Override protected void onStop() { super.onStop(); mVideoPlayer.Pause(); } private class VideoPlayer implements MediaPlayer.OnPreparedListener, SurfaceHolder.Callback { private MediaPlayer mMediaPlayer; private String mVideoFile; private SurfaceHolder mHolder; public VideoPlayer(final SurfaceView surfaceView, final String file) { mHolder = surfaceView.getHolder(); mHolder.addCallback(this); mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); mHolder.setSizeFromLayout(); mVideoFile = file; } public void Start() { if (mMediaPlayer != null) mMediaPlayer.start(); } public void Pause() { if (mMediaPlayer != null) mMediaPlayer.pause(); } public void onPrepared(MediaPlayer mp) { mVideoPlayer.Start(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } public void surfaceCreated(SurfaceHolder holder) { // to prevent recreating media player if (mMediaPlayer == null) { mMediaPlayer = new MediaPlayer(); try { mMediaPlayer.setDataSource(mVideoFile); mMediaPlayer.setDisplay(mHolder); mMediaPlayer.prepare(); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } catch (Exception e) { } } } public void surfaceDestroyed(SurfaceHolder holder) { } public void onBufferingUpdate(MediaPlayer mp, int percent) { } } } On Jul 27, 10:40 pm, Mark Murphy mmur...@commonsware.com wrote: sleith wrote: any idea? Is this hardware or the emulator? If it is the emulator, can you reproduce the problem on a device? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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] font typeface dynamically
i've learned that to set typeface needs font to be under asset folder how to dynamically load the ttf file to be used in code? or maybe how in runtime to add ttf file into the asset folder? is there any solution for this problem? thx --~--~-~--~~~---~--~~ 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] prevent close the dialog when click on the button
Hi, I want to ask about dialog. when i clicked the Ok button with setPositiveButton(Ok, listener) i need to make a validation, and when not valid i don't want the dialog to be closed. how to make the dialog not closed when click on the button? thank you --~--~-~--~~~---~--~~ 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: weird drawing on bitmap to canvas
hello...could anyone help? thx On Jun 23, 10:37 pm, sleith raysle...@gmail.com wrote: hi, i'm trying to draw bitmap in canvas. the bitmap is used to draw text and background using canvas (named canvasBitmap) but the text or background that are drown to bitmap is not displayed, as if it's out of bounds. i have to translate the canvasBitmap at some points to make it draw at right position. The problem is i don't know how many pixel i should translate to. here's the code example: public OnDraw(Canvas c){ Paint mBackgroundPaint = new Paint(); mBackgroundPaint.setColor(Color.RED); String mText = Testing; Paint mFontPaint = new Paint(); mFontPaint.setColor(Color.WHITE); //setting rect Rect mBackgroundRect = new Rect(); mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect); //the bitmap to be drawn a text and backgroundRect Bitmap mBitmap = Bitmap.createBitmap(mBackgroundRect.width(), mBackgroundRect.height(), Bitmap.Config.ARGB_); Canvas mCanvasBitmap = new Canvas(mBitmap); //draw text and background to bitmap mCanvasBitmap.drawColor(Color.CYAN); mCanvasBitmap.drawRect(mBackgroundRect, mBackgroundPaint); mCanvasBitmap.drawText(mText, 0, 0, mFontPaint); //draw bitmap to canvas c.drawBitmap(mBitmap, 0, 0, null); } this will only drawn Cyan color, the text and red background is not displayed i have to translate for example : mCanvasBitmap.translate(0, mBackgroundRect.height()) to make it displayed (but not 100% correctly position) please help . thx --~--~-~--~~~---~--~~ 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: weird drawing on bitmap to canvas
thx for reply did u mean font's paint? i believe it's not that the font is cannot be drawn. i think it's the position of the position 0,0 of the bitmap is not really 0,0 (it's out of bounds) because when i move the position of bitmap (bitmap.translate) with some x and y, i could see the text and text background is drawn. On Jun 24, 11:22 pm, MrChaz mrchazmob...@googlemail.com wrote: setTextSize() and setStyle() need to be called on the Paint object I think. On Jun 23, 4:37 pm, sleith raysle...@gmail.com wrote: hi, i'm trying to draw bitmap in canvas. the bitmap is used to draw text and background using canvas (named canvasBitmap) but the text or background that are drown to bitmap is not displayed, as if it's out of bounds. i have to translate the canvasBitmap at some points to make it draw at right position. The problem is i don't know how many pixel i should translate to. here's the code example: public OnDraw(Canvas c){ Paint mBackgroundPaint = new Paint(); mBackgroundPaint.setColor(Color.RED); String mText = Testing; Paint mFontPaint = new Paint(); mFontPaint.setColor(Color.WHITE); //setting rect Rect mBackgroundRect = new Rect(); mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect); //the bitmap to be drawn a text and backgroundRect Bitmap mBitmap = Bitmap.createBitmap(mBackgroundRect.width(), mBackgroundRect.height(), Bitmap.Config.ARGB_); Canvas mCanvasBitmap = new Canvas(mBitmap); //draw text and background to bitmap mCanvasBitmap.drawColor(Color.CYAN); mCanvasBitmap.drawRect(mBackgroundRect, mBackgroundPaint); mCanvasBitmap.drawText(mText, 0, 0, mFontPaint); //draw bitmap to canvas c.drawBitmap(mBitmap, 0, 0, null); } this will only drawn Cyan color, the text and red background is not displayed i have to translate for example : mCanvasBitmap.translate(0, mBackgroundRect.height()) to make it displayed (but not 100% correctly position) please help . thx --~--~-~--~~~---~--~~ 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] weird drawing on canvas bitmap
hi, i'm trying to draw bitmap in canvas. the bitmap is used to draw text and background using canvas (named canvasBitmap) but the text or background that are drown to bitmap is not displayed, as if it's out of bounds. i have to translate the canvasBitmap at some points to make it draw at right position. The problem is i don't know how many pixel i should translate to. here's the code example: public OnDraw(Canvas c){ Paint mBackgroundPaint = new Paint(); mBackgroundPaint.setColor(Color.RED); String mText = Testing; Paint mFontPaint = new Paint(); mFontPaint.setColor(Color.WHITE); //setting rect Rect mBackgroundRect = new Rect(); mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect); //the bitmap to be drawn a text and backgroundRect Bitmap mBitmap = Bitmap.createBitmap(mBackgroundRect.width(), mBackgroundRect.height(), Bitmap.Config.ARGB_); Canvas mCanvasBitmap = new Canvas(mBitmap); //draw text and background to bitmap mCanvasBitmap.drawColor(Color.CYAN); mCanvasBitmap.drawRect(mBackgroundRect, mBackgroundPaint); mCanvasBitmap.drawText(mText, 0, 0, mFontPaint); //draw bitmap to canvas c.drawBitmap(mBitmap, 0, 0, null); } this will only drawn Cyan color, the text and red background is not displayed i have to translate for example : mCanvasBitmap.translate(0, mBackgroundRect.height()) to make it displayed (but not 100% correctly position) please help . thx --~--~-~--~~~---~--~~ 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] weird drawing on bitmap to canvas
hi, i'm trying to draw bitmap in canvas. the bitmap is used to draw text and background using canvas (named canvasBitmap) but the text or background that are drown to bitmap is not displayed, as if it's out of bounds. i have to translate the canvasBitmap at some points to make it draw at right position. The problem is i don't know how many pixel i should translate to. here's the code example: public OnDraw(Canvas c){ Paint mBackgroundPaint = new Paint(); mBackgroundPaint.setColor(Color.RED); String mText = Testing; Paint mFontPaint = new Paint(); mFontPaint.setColor(Color.WHITE); //setting rect Rect mBackgroundRect = new Rect(); mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect); //the bitmap to be drawn a text and backgroundRect Bitmap mBitmap = Bitmap.createBitmap(mBackgroundRect.width(), mBackgroundRect.height(), Bitmap.Config.ARGB_); Canvas mCanvasBitmap = new Canvas(mBitmap); //draw text and background to bitmap mCanvasBitmap.drawColor(Color.CYAN); mCanvasBitmap.drawRect(mBackgroundRect, mBackgroundPaint); mCanvasBitmap.drawText(mText, 0, 0, mFontPaint); //draw bitmap to canvas c.drawBitmap(mBitmap, 0, 0, null); } this will only drawn Cyan color, the text and red background is not displayed i have to translate for example : mCanvasBitmap.translate(0, mBackgroundRect.height()) to make it displayed (but not 100% correctly position) please help . thx --~--~-~--~~~---~--~~ 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] strange behavior on rotating and scaling text
hi, i'm trying to animate text, but strange behavior happened when i tried to rotate and scale. When rotating, the text width becoming wider and narrower randomly When scaling, the text y position is going upper. i've test with image, but image works perfectly. don't know why text is not. Here's my code, please take a look or run it (only one file is enough to run the demo) thanks public class TestDraw extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FrameLayout flContent = new FrameLayout(this); flContent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); setContentView(flContent); SurfaceView svPreviewer = new SurfaceDrawer(this); svPreviewer.setLayoutParams(new LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); flContent.addView(svPreviewer); } private class SurfaceDrawer extends SurfaceView implements SurfaceHolder.Callback, Runnable { private SurfaceHolder mSurfaceHolder; private int mLayoutWidth; private int mLayoutHeight; private String mText = Hello World! Hello Android!; private Paint mFontPaint = new Paint(); private Paint mBackgroundPaint = new Paint(); private Rect mBackgroundRect = new Rect(); // thread private Thread mThread; private boolean mIsStopped = false; private boolean mIsRunningMode = false; private Lock mLock = new ReentrantLock(); private Condition mCond = mLock.newCondition(); public SurfaceDrawer(Context context) { super(context); mSurfaceHolder = getHolder(); mSurfaceHolder.addCallback(this); mFontPaint.setColor(Color.WHITE); mBackgroundPaint.setColor(Color.MAGENTA); // set the rect for background mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect); mThread = new Thread(this); mThread.start(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { mLayoutWidth = width; mLayoutHeight = height; mLock.lock(); mIsRunningMode = true; mCond.signal(); mLock.unlock(); } public void surfaceCreated(SurfaceHolder holder) { } public void surfaceDestroyed(SurfaceHolder holder) { mLock.lock(); mIsStopped = true; mIsRunningMode = false; mCond.signal(); mLock.unlock(); try { mThread.join(); } catch (Exception e) { } } public void run() { while (mIsStopped == false) { mLock.lock(); try { while (mIsRunningMode == false) { mCond.await(); } if (mIsStopped == true) { mLock.unlock(); break; } DrawRotationAnimation(); DrawScalingAnimation(); } catch (InterruptedException e) { e.printStackTrace(); } mLock.unlock(); } } public void DrawRotationAnimation() { Canvas c; int centerX = mLayoutWidth / 2; int centerY = mLayoutHeight / 2; for (int i = 0; i 360; i += 20) { c = mSurfaceHolder.lockCanvas(); c.save(); c.rotate(i, centerX, centerY); c.translate(centerX - (mBackgroundRect.width() / 2), centerY
[android-developers] Re: strange behavior on rotating and scaling text
thx for the reply how about the rotating? is it like scaling? On Jun 22, 11:13 pm, Romain Guy romain...@google.com wrote: Hi, This is actually normal. Scaling fonts does not necessarily lead to a linear effect. Based on the font size, the text renderer can (and will) change the spacing, the antialiasing, etc. to improve on readability. If you want to scale text linearly you should turn the text into a bitmap first. If your animation is implemented using Views, you can simply enabled the drawing cache of the animated view. On Mon, Jun 22, 2009 at 8:46 AM, sleith raysle...@gmail.com wrote: hi, i'm trying to animate text, but strange behavior happened when i tried to rotate and scale. When rotating, the text width becoming wider and narrower randomly When scaling, the text y position is going upper. i've test with image, but image works perfectly. don't know why text is not. Here's my code, please take a look or run it (only one file is enough to run the demo) thanks public class TestDraw extends Activity { /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FrameLayout flContent = new FrameLayout(this); flContent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); setContentView(flContent); SurfaceView svPreviewer = new SurfaceDrawer(this); svPreviewer.setLayoutParams(new LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); flContent.addView(svPreviewer); } private class SurfaceDrawer extends SurfaceView implements SurfaceHolder.Callback, Runnable { private SurfaceHolder mSurfaceHolder; private int mLayoutWidth; private int mLayoutHeight; private String mText = Hello World! Hello Android!; private Paint mFontPaint = new Paint(); private Paint mBackgroundPaint = new Paint(); private Rect mBackgroundRect = new Rect(); // thread private Thread mThread; private boolean mIsStopped = false; private boolean mIsRunningMode = false; private Lock mLock = new ReentrantLock(); private Condition mCond = mLock.newCondition(); public SurfaceDrawer(Context context) { super(context); mSurfaceHolder = getHolder(); mSurfaceHolder.addCallback(this); mFontPaint.setColor(Color.WHITE); mBackgroundPaint.setColor(Color.MAGENTA); // set the rect for background mFontPaint.getTextBounds(mText, 0, mText.length(), mBackgroundRect); mThread = new Thread(this); mThread.start(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { mLayoutWidth = width; mLayoutHeight = height; mLock.lock(); mIsRunningMode = true; mCond.signal(); mLock.unlock(); } public void surfaceCreated(SurfaceHolder holder) { } public void surfaceDestroyed(SurfaceHolder holder) { mLock.lock(); mIsStopped = true; mIsRunningMode = false; mCond.signal(); mLock.unlock(); try { mThread.join(); } catch (Exception e) { } } public void run() { while (mIsStopped == false) { mLock.lock(); try { while (mIsRunningMode == false) { mCond.await(); } if (mIsStopped == true) { mLock.unlock(); break; } DrawRotationAnimation(); DrawScalingAnimation(); } catch (InterruptedException e
[android-developers] remove drop icon in expandablelist
hi, is there anyway to remove the default drop down icon on ExpandableList? thx --~--~-~--~~~---~--~~ 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] get listview object from xml
hi all, i have a listview on xml, and i need to get it's object using findViewById, but i cannot find it in R.id need help . thx --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---