android


NotificationCompat.BigTextStyle not displaying big text and not multiple lines in android


I have applied BigTextStyle to NotificationCompat.Builder , but it will not display big text in notification list.
i have used bellow code.
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,
intent,
PendingIntent.FLAG_ONE_SHOT);
NotificationCompat.BigTextStyle bigxtstyle =
new NotificationCompat.BigTextStyle()
.bigText(data.getMessage())
.setBigContentTitle(title)
.setSummaryText(data.getMessage());
Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setStyle(bigxtstyle)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(title)
.setContentText(data.getMessage())
.setAutoCancel(true)
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setLargeIcon(BitmapFactory.decodeResource(getResources(),R.mipmap.ic_launcher));
NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(id, notificationBuilder.build());

Related Links

Facebook Android SDK returns always an error in response (SSLHandshakeException)
Displaying collection of (“moving”) markers on map, performance
PostInvalidateOnAnimation vs postInvalidate
Eclipse Error while importing project
Calling Main Activity using Implicit Intents (specifying action and category)
Mobile Ad Service: Choosing specific ads [closed]
After install ARM and gapps in Genymotion the Google Play doesn't show
How to Validate fragment onSwipe?
Android Provider is not providing the current location
taking string after a particularword in android
android TextView input to currency for multiple TextViews
Android Action Bar Logo Home Button
How to add bottom round icon like gmail application android?
How to display the duplicate phone number from call log ,contact list and inbox in android
Multiple fragments in live wallpaper
Is possible to update google tag manager container in an Android Application without building it again?

Categories

HOME
httparty
facebook-oauth
prism
codenvy
phpmyadmin
angular-formly
jmx
hessian
appcelerator
babeljs
tvos
pkcs#11
sendgrid-api-v3
reactive-programming
mod-security
mxgraph
nancy
plink
http-post
screen-readers
microsoft-dynamics-nav
mvc-mini-profiler
dreamweaver
asp.net-mvc-viewmodel
visual-glitch
flooding
inversion-of-control
bringtofront
openmdao
tizen-tv
calculation
postback
cognos-bi
jbutton
hibernate-validator
classcastexception
yowsup
imx6
sharepoint-workflow
sql-server-ce
xcode7.3
git-rewrite-history
unordered-map
hackintosh
subclipse
ssrs-2014
bindingnavigator
flask-login
vaadin-charts
snapchat
ovf
vugen
scalding
compiler-design
skin
java-websocket
pocketsphinx-android
taocp
latin
signalr.client
installshield-2010
appscale
bizagi
cda
findfirst
toast
directdraw
forwarding
morton-number
slash
evolus-pencil
uncompress
skspritenode
pyobjc
nsurlsessiondatatask
zend-currency
uncaught-typeerror
android-vibration
metatrader5
create.js
matrix-inverse
gnumeric
buffering
amslidemenu
epiceditor
mantle
android-sdk-2.3
web-notifications
intersect
dajaxice
fitbounds
cross-database
denied
filemerge
entitydatasource
tournament
django-paypal
cloudfiles
request-headers
duplex
silverlight-oob
technical-debt
java1.4
business-model

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App