Android Wear notification showing minimized -


I'm not sure what I'm doing wrong, I like the notification but I make it clock vibration, and less The effect I want to achieve should look like a Hangouts notification, which is to go on vibration and fullscreen here I am using the code (on the clock):

  Intent method = new intent (this, convivity.class); ActionIntent.putExtra ("number", number); Pending anticipated action PendingIntent = PendingIntent.getActivity (this, 0, action, pending transplantation. FLAG_UPDATE_CURRENT); // Compromise action notifications. Action Action = New notification compat.action. Builder (RDWable.IC_Luncher, "Answer", Action Pending Instant). Builder (); NotificationCompat.BigTextStyle bigStyle = New Notification BigTextStyle (); BigStyle.bigText (body) .setBigContentTitle (name); NotificationCompat.Builder notificationBuilder = New NotificationCompat.Builder (this) .setSmallIcon (R.drawable.ic_launcher) .setContentTitle (name) .setContentText (body) //.setContentIntent(viewPendingIntent) //.addAction(R.drawable.ic_map, / / GetString (R.string.map), mapPendingIntent) .setStyle (bigStyle) .setAutoCancel (right) .addAction (R.drawable.ic_launcher, "Answer", actionPendingIntent); If (pic! = Null) Notification Builder.SetgeongCon (bitmapfile.deDebateArerere (Picture, 0, Pixel.)); //.extend (New Notification Affiliate. Wearable Extender (Addition) (Action)); // Notification Manager Information Notification Manager Receives Management Manager = Information Manager. Comet (this); // Notification with the Notification Manager. Information Manager Notice (0, NotificationBuilder.bild ());  

Only notifications that will vibrate / sound an Android wear device will vibrate and show more text .

You should consider using the method:

  // light, sound, and vibration builder. Set defaults (notification DEFAULT_ALL); // Just Sound Producer Set defaults (notification DEFAULT_SOUND); // Just create vibration. Set defaults (notification DEFAULT_VIBRATE);  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -