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
@Fuglsang and @android developer's answer works for me, it's perfect...
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();
}
}