[android-developers] Set Call Forward

2010-05-24 Thread Gameboy
Present I want to set call forward in my application rather in calling settings of phone, but seems I can not find public api or intent to use. Anyone knows that? BTW, I search source code of android, there are similar code used by android, however it needs to invoke internal class Phone:

[android-developers] Problem: set projection matrix in GLSurfaceview.onDrawFrame

2009-10-16 Thread Gameboy
When I try to set projection matrix in GLSurfaceview.onDrawFrame, but seems it does not work fine. The parameters of glOrthof does not change size and shape of graphics elements, graph becomes very small. Part of code as below, does anybody know the reason? // Display something in second

[android-developers] GLSurfaceView is black after incoming call

2009-09-30 Thread Gameboy
I do a test with incoming call when GLSurfaceView is on top of screen, after cancel incoming call, but screen becomes black. I try to put requestRender() in onResume(), debug with logcat, but seems some times it works when Render.onSurfaceChanged(GL10, int, int) is invoked. Any one knows the

[android-developers] Issue of selection 3D vertex (gluUnProject)

2009-09-16 Thread Gameboy
I try to select 3D vertex (1, 1, 1) from 2D screen, basic thought is get near and far points with gluUnproject, then use line through these two points to intersect selection point, but seems has problem with test code. float[] win= new float[3] ; float[] world = new float[3] ; 1)

[android-developers] how to use gluUnProject

2009-09-07 Thread Gameboy
I'm trying to use gluUnProject for checking touch selection on a 3D object, but seems I can not do with current 1.5 emulator. The method needs to know current viewport, model view matrix and project matrix, I'm trying to use G11 gl to query but get nothing with below codes: int[] viewport = new

[android-developers] Re: GLSurfaceView does not invoke OnKeyDown(...)

2009-09-01 Thread Gameboy
Wow, it works only with setFocusableInTouchMode(true) (strange meaning, I have not read details in android yet). Remember I have tried with it but seems because the thread does not work to hide the reason. Well you all give me clues to have the second try, thanks a lot!

[android-developers] GLSurfaceView does not invoke OnKeyDown(...)

2009-08-29 Thread Gameboy
I'm trying to use SDK 1.5 for developing app on opengl feautre, but GLSurfaceView does not invoke OnKeyDown(...) any more, what's reason? App runs on windows emulator. There is sample code in SDK document: class MyGLSurfaceView extends GLSurfaceView { private MyRenderer mMyRenderer;

[android-developers] Is there any interface for setting Z order of View

2009-01-04 Thread Gameboy
There is only few words in the api doc of class SurfaceView: The surface is Z ordered.. Is there any interface for setting Z order of View? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Does SensorManager work on emulator of SDK1.0?

2008-12-04 Thread Gameboy
Seems I can not let SensorManager work on SDK1.0 emulator, just copy some code from samples: mSensorManager = (SensorManager)getSystemService (Context.SENSOR_SERVICE); mSensorManager.registerListener(mGraphView, SensorManager.SENSOR_ACCELEROMETER |

[android-developers] Re: another new return of findViewById???

2008-11-25 Thread Gameboy
I add android:configChanges=orientation in AndroidManifest.xml, but seems it does not work, onConfigurationChanged(Configuration newConfig) is not invoked when rotating. And the activity is still be detroyed and recreated again. Copy andorid doc, not sure why not work: ---Otherwise, the

[android-developers] Re: adb Error: ADB server didn't ACK

2008-11-25 Thread Gameboy
I put following commands and fix it: start emulator telnet localhost 5554 kill then seems everything recovers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] another new return of findViewById???

2008-11-19 Thread Gameboy
I want to change content of edit text after changing orientaton, but seems I get strange problem: I use mEditor = (EditText) findViewById(R.id.editor); in onCreate(), when changing orientation, onCreate() will be invoked again, however seems mEditor becomes new one after changing orientaton each

[android-developers] Re: another new return of findViewById???

2008-11-19 Thread Gameboy
Thanks for clear out some my confusion. The real problem is after rotation (second time), seems I lost control for mEditor, I can not mEditor.setText(...), the edit text is set string same as before rotation, very strange?! Don't know what should do for layout xml either? And I'm afraid it may