开发者

Notification / Task Bar [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜