Android 启动器图标和推送图标大小问题

Android 启动器图标和推送图标大小问题,android,push,Android,Push,为什么我的启动器图标尺寸很小。这仅仅是图像问题还是我做了一些错误的设置。我使用图像资源来设置启动器图标 清单应用程序部分也类似于 <application android:name=".Abc" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme">...... 。。。。。。

为什么我的启动器图标尺寸很小。这仅仅是图像问题还是我做了一些错误的设置。我使用图像资源来设置启动器图标

清单应用程序部分也类似于

<application
 android:name=".Abc"
 android:allowBackup="true"
 android:icon="@mipmap/ic_launcher"
 android:label="@string/app_name"
 android:theme="@style/AppTheme">......
。。。。。。
另外,在我发送通知时,推送图标太小

推码 public void onCreate(){ super.onCreate(); 初始化(此“…”,“.”); ParseInstallation.getCurrentInstallation().saveInBackground();
您是否为所有屏幕大小设置了所有图标?
我通常使用来生成我的图标,而不是在不同的比例下使用来生成它

使用通知管理器创建通知。试试这个

Bitmap bm = BitmapFactory.decodeResource(context.getResources(), R.mipmap.launcher);

NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);

        Intent intent = new Intent(context, MainActivity.class);
        PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, Notification.DEFAULT_LIGHTS | Notification.FLAG_AUTO_CANCEL);

        final Notification notification = new NotificationCompat.Builder(context).setLargeIcon(bm)
                .setContentTitle("Application")
                .setContentText("New Message")
                .setContentIntent(pendingIntent)
                .setAutoCancel(true)
                .setTicker("New Message from a User")
                .setVibrate(new long[]{200, 1000, 200, 1000})
                .setLights(Color.WHITE, 3000, 3000)
                .getNotification();

        mNotificationManager.notify(10000, notification);

添加请通知Java代码我正在使用parse push notification似乎您没有iconI saw的所有大小,图像资源会自动在不同的文件夹(如hdpi、mdpi等)中生成大小。那么现在您指的是哪个图标大小?看起来它只从一个文件夹中获取。确保您需要在多个设备上测试它