The reason is the support lib and the project file are not in the same file disk.
Solution: Try to put the support lib and the android project into the same disk (e.g., C)
programming related problems
The reason is the support lib and the project file are not in the same file disk.
Solution: Try to put the support lib and the android project into the same disk (e.g., C)
“setZOrderOnTop” can only be called once before the view is attached to the viewgroup. It cannot be used to change the z level dynamically during the runtime.
If need to alter the z order of two views in a group, “setVisibility” can be called through the UI
runOnUiThread(new Runnable() {
public void run() {
mVideoView1.setVisibility(View.INVISIBLE);
mVideoView2.setVisibility(View.VISIBLE);
}
});
thread to alter the Z order. for instance, ”
“
Writing data into SD card is a blocking operation, therefore should be done in a background thread. AsyncTask is designed for such task.
On Windows using Eclipse, open the xml file, then Ctrl+Shift+F, done!
Right click on the project, under New choose others, then go to C/C++ folder, inside it there is an option: Convert to a C/C++ Project, click on it
Solution:
Inside SurfaceView Holder, make sure to set the type to SURFACE_TYPE_PUSH_BUFFERS
@Override
public void onCreate(Bundle savedInstanceState) {
// ...
SurfaceView sur=(SurfaceView)findViewById(R.id.surface);
SurfaceHolder holder =sur.getHolder();
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}
while opening eclipse, if you encounter the problem that “failed to load jni shared library jvm.dll eclipse”, then you can solve it by installing the java 64bit version.