小编Ada*_*rsh的帖子

how to declare multiple variables in one line in oracle plsql block

I want to declare multiple variable in one line, Is there any way to write it ?

DECLARE
A integer :=10;
B integer :=5;
BEGIN

END;
Run Code Online (Sandbox Code Playgroud)

i want to declare a and b in one line.

Thanks in Advance,

oracle variables plsql

7
推荐指数
2
解决办法
3万
查看次数

为什么不显示android通知文本?

我已经编写了以下通知代码,我可以看到通知的通知和标题,但文本不可见.我尝试了很多次静态值,但仍然没有得到什么问题.请帮助我,提前谢谢.

private void messagenotification(String msg, String nextid) {


    SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
    SharedPreferences.Editor editor = settings.edit();
    editor.putString("id", nextid  ).apply();

    Intent intent = new Intent(this, NextActivity.class);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,
            PendingIntent.FLAG_ONE_SHOT);

    Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)
            .setSmallIcon(R.mipmap.blue)
            .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.blue))
            .setContentTitle("Chat")
            .setStyle(new NotificationCompat.BigTextStyle().bigText(msg))
            .setAutoCancel(true)
            .setSound(defaultSoundUri)
            .setContentIntent(pendingIntent);



    NotificationManager notificationManager =
            (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

    notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());
}
Run Code Online (Sandbox Code Playgroud)

android

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

标签 统计

android ×1

oracle ×1

plsql ×1

variables ×1