开发者

Notification / Task Bar [closed]

开发者 https://www.devze.com 2023-02-19 19:50 出处:网络
It'开发者_StackOverflow;s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current
It'开发者_StackOverflow;s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago.

Trying to add a second line to this so it shows the Name of my app and some additional info tried just duplicating the CharSequence but that wasn't it... thanks in advance

private void showNotification() {
        CharSequence text = getText(R.string.title_bar);
        CharSequence text = getText(R.string.title_bar2);
        Notification notification = new Notification(R.drawable.ic_notification, null,


In addition to Karan's request, please also do your best to ensure posted code examples compile successfully, unless of course you're stuck at a compiler error.

The code you posted wouldn't compile, even if it were more complete. You cannot declare two identifiers in the same scope with the same name.

0

精彩评论

暂无评论...
验证码 换一张
取 消