Download expansion files on tablet

前端 未结 7 2022
清酒与你
清酒与你 2021-01-28 02:13

I am making an dictionary for android phones and tablets. I have committed the file on my developer account, and i works like a charm on phone. When i am trying to run the exact

7条回答
  •  暖寄归人
    2021-01-28 02:49

    I have solved the problem. I tok this code and copied instead of the code there where in CustomNotificationFactory

        static public DownloadNotification.ICustomNotification createCustomNotification()
    {
      try
      {
        final Class notificationBuilderClass = Class.forName("android.app.Notification$Builder");
        notificationBuilderClass.getDeclaredMethod("setProgress", new Class[] {Integer.TYPE, Integer.TYPE, Boolean.TYPE});
        return new V11CustomNotification();
      }
      catch (final Exception e)
      {
        return new V3CustomNotification();
      }
    }
    

    I works perfect :D thanks a lot :D

提交回复
热议问题