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:
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
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
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)
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
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!
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;
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
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 |
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
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
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
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
13 matches
Mail list logo