[英]error in eclipse startapp ads
Eclipse tell me that "Multiple markers at this line - The method init(Context, String, String, boolean) in the type StartAppSDK is not applicable for the arguments (FlashlightActivity, int, int, boolean) - Line breakpoint:FlashlightActivity [line: 61] - onCreate(Bundle)" The problem is the init . Eclipse告诉我“此行有多个标记-StartAppSDK类型的init(Context,String,String,boolean)方法不适用于参数(FlashlightActivity,int,int,boolean)-断点:FlashlightActivity [line: 61]-onCreate(Bundle)“问题是init 。 In this code:
在此代码中:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StartAppSDK.init(this, 107866170, 208658775, true);
setContentView(R.layout.flashlight);
button = (ToggleButton) findViewById(R.id.togglebutton);
final PackageManager pm = context.getPackageManager();
if (!isCameraSupported(pm)) {
AlertDialog alertDialog = new AlertDialog.Builder(context).create();
alertDialog.setTitle("No Camera");
alertDialog.setMessage("The device's doesn't support camera.");
alertDialog.setButton(RESULT_OK, "OK",
new DialogInterface.OnClickListener() {
public void onClick(final DialogInterface dialog,
final int which) {
Log.e("err", "The device's doesn't support camera.");
}
ID应该是字符串,因此您的init行应该是:
StartAppSDK.init(this, "107866170", "208658775", true);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.