By rorlich
on Wed, 06/20/2012 - 17:12
Hey, I'm trying to reproduce the problem on my device , Motorla Razer,
The problem seems to be once i leave the ImageTargets activity the camera changes in a weird way from portrait to landscape and the perspective is getting really distorted.
It does not happen on other devices i have, only on this one
The modifcation i made on the ImageTargets sample project are as follows:
1. Main xml layout was added
<?xml version="1.0" encoding="utf-8"?>
2: changes in OnCreate:
DebugLog.LOGD("MultiTargets::onCreate");
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
3: Changes in initApplication()
int screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
4: Changes in
mSplashScreenRunnable =
new Runnable() {
public void run()
mSplashScreenRunnable =
new Runnable() {
public void run()
{
// Hide the splash screen
mSplashScreenView.setVisibility(View.INVISIBLE);
// Activate the renderer
mRenderer.mIsActive = true;
FrameLayout fl = (FrameLayout)findViewById(R.id.frameLayout2);
fl.addView(mGlView, new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));
mGlView.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
String url = "http://www.test.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
return false;
}
});
// Start the camera:
updateApplicationStatus(APPSTATUS_CAMERA_RUNNING);
}
};
I will be happy to know where is the problem and if it's fixable
Re: Camera perspective distortion after onPause
Re: Camera perspective distortion after onPause
My problem is, if I hit home
My problem is, if I hit home on the device and re open the app the camera is pixelated with purple lines running through it.