小编pns*_*wdv的帖子

Google Android"HelloFormStuff"教程出现Java错误

我是一名java新手.我按照http://developer.android.com/resources/tutorials/views/hello-formstuff.html上的教程添加按钮和OnClick处理程序,将教程代码复制到我的:

public class FormStuff extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        final ImageButton button = (ImageButton) findViewById(R.id.android_button);
        button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                // Perform action on clicks
                Toast.makeText(FormStuff.this, "Beep Bop", Toast.LENGTH_SHORT).show();
            }
        });
        }
}
Run Code Online (Sandbox Code Playgroud)

在Eclipse中,这会产生两个错误

Description Resource    Path    Location    Type
The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new DialogInterface.OnClickListener(){})  FormStuff.java  /FormStuffExample/src/com/example/formstuffexample  line 17 Java Problem …
Run Code Online (Sandbox Code Playgroud)

android

3
推荐指数
1
解决办法
6098
查看次数

gst-inspect找不到xvimagesink

我在Windows 7 PC上安装了GStreamer SDK(x64)和GStreamer SDK(开发文件)(x64).这是一个完整的安装 - 所有功能都已启用.当我运行gst-inspect-0.10 xvimagesink时,结果是没有这样的元素或插件'xvimagesink' 在其他基本插件上运行gst-inspect会返回预期的信息.Windows下不支持此插件吗?

windows gstreamer

3
推荐指数
1
解决办法
4047
查看次数

标签 统计

android ×1

gstreamer ×1

windows ×1