[android-developers] How can I get the EditText information from Inputmethod?

2010-08-04 Thread android-newbie
hello, i'm making a soft-keyboard. but some problems are encountered. i need editor's maxLength information, but.. EditorInfo has not 'android:maxLength' information. how can i solve this problem? please help. thanks -- You received this message because you are subscribed to the Google Groups

[android-developers] onDraw and Surface Flinger

2009-12-10 Thread android-newbie
Hi I just wonder if the onDraw(Canvas canvas) in the code below would eventually trigger Surface Flinger to do any compositing? If yes, can you give me some hints of the call flow? Thank you very much!!! an class DrawOnTop extends View { public DrawOnTop(Context context) { super(context);

[android-developers] postBuffer and memcpy

2009-12-04 Thread android-newbie
Hi I have a question. Hope someone can help me out. In my Camera Preview Application, when I post preview buffer to Surface Flinger via mSurface-postBuffer, does this cause a memory copy of data from preview buffer to Camera SurfaceView's buffer? Thanks for your help, an -- You received this

[android-developers] LayerBase::drawWithOpenGL

2009-12-02 Thread android-newbie
Hi I have been looking at LayerBase::drawWithOpenGL() and trying to figure out if the scaling being done in this function is performing a stretch or crop, but not able to figure that out yet. Can someone please let me know if LayerBase::drawWithOpenGL() is doing stretching or cropping for

[android-developers] UI window in Camera Preview application

2009-11-30 Thread android-newbie
I posted this last week, but not able to get any reply. Let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions below, hope someone can help me with the answers. 1. When this SurfaceView gets created (I assume via final CameraSurfaceView

[android-developers] Re: Pixel Format Conversion in SF

2009-11-27 Thread android-newbie
, .setFixedSize related to the surfaceHolder.surfaceChanged() callback? On Nov 26, 5:41 pm, Dianne Hackborn hack...@android.com wrote: It totally depends.  It may be surface flinger, it may be an overlay that is YUV, etc. On Thu, Nov 26, 2009 at 2:39 PM, android-newbie k...@itsaver.com wrote

[android-developers] UI window in Camera Preview application

2009-11-27 Thread android-newbie
Let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions, hope you can help me. 1. When this SurfaceView gets created (I assume via final CameraSurfaceView cameraView = new CameraSurfaceView (getApplicationContext()), this will result in a call

[android-developers] Re: Pixel Format Conversion in SF

2009-11-27 Thread android-newbie
, 2009 at 2:39 PM, android-newbie k...@itsaver.com wrote: I am looking at the source code of a Camera Preview application and learning that the preview buffers coming from the sensor is in YUV422 format.  However, this preview frame is showed on the display in RGB. Can someone

[android-developers] surfaceCreated() and CreateSurface() in camera preview application

2009-11-20 Thread android-newbie
I have some questions regarding the code below for camera preview applicaiton. I am hoping someone can help me out. Thanks in advance. 1. How does surfaceCreated() and CreateSurface() relate? Is this surface created via createSurface() from SurfaceFlinger client to SurfaceFlinger server? If

[android-developers] Windows manager in Android frame work

2009-11-20 Thread android-newbie
I have read and learned that Windows manager creates surfaces for the application on Android, but not able to understand how this happens. Can someone please explain this to me? Also, how does Windows manager start up in any applicatioin, for example like Camera Preview Application? Thank you

[android-developers] CameraSurfaceView and how surfaceCreated() gets called - Can someone please help me?

2009-11-19 Thread android-newbie
I have some questions regarding code below for camera preview applicaiton. Can someone please help me out? 1. How does surfaceCreated get called? From SDK, it is called immediately after the surface is first created, but I still don't know who creates this surface? 2. Why do we need to set

[android-developers] Re: CameraSurfaceView and how surfaceCreated() gets called - Can someone please help me?

2009-11-19 Thread android-newbie
confirm? Thanks. On Nov 19, 7:22 am, Mark Murphy mmur...@commonsware.com wrote: android-newbie wrote: 1.  How does surfaceCreated get called?  From SDK, it is called immediately after the surface is first created, but I still don't know who creates this surface? Android does, as part

[android-developers] CameraSurfaceView and how surfaceCreated() gets called

2009-11-18 Thread android-newbie
I have some questions regarding code below for camera preview applicaiton. Can someone please help me out? 1. How does surfaceCreated get called? From SDK, it is called immediately after the surface is first created, but I still don't know who creates this surface? 2. Why do we need to set