Carbide C++ 2.3
错误信息
bldmake returned with exit value = 255
解决方法,安装了oracle10g,环境变量里有个perl5lib指向oracle下的perl5.8
删除该变量即可
我本来打算全部使用这几种效果 但是呢 只有震动一种效果,不知道为啥权限也加了
也许每次只能用一个吧
Notification notification = new Notification(icon, tickerText, when);
context = context.getApplicationContext();
CharSequence contentTitle = "UK Radio Guide";
CharSequence contentText = title + " on " + channel_id + " at " + start;
Intent notificationIntent = new Intent(context, ViewSchedules.class);
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0);
notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
notification.ledARGB = 0xff00ff00;
notification.ledOnMS = 300;
notification.ledOffMS = 1000;
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
notification.sound = Uri.parse("android.resource://com.robinwilson.radioguide/" +R.raw.chimes);
notification.vibrate = new long[] { 0, 300, 200, 300, 400, 300 };
// Actually send the notification
nm.notify(0, notification);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Thread是一个类,Runnable是一个接口。类里面有实现的方法,而Runnable只有抽象的接口而已没有实现的方法。其实Thread也是继承Runnable.
当你的类里面已经有父类,则就不能再继承Thread啦,但可以实现Runnable.这就是不同之处。