【问题标题】:Android statusbar notification load sd iconAndroid状态栏通知加载sd图标
【发布时间】:2011-12-20 16:32:08
【问题描述】:

是否可以加载外部(存储在 SD 上)图标以显示在状态栏上?

Notification notif = new Notification(R.drawable.icon, message,System.currentTimeMillis());

谢谢

【问题讨论】:

    标签: android notifications statusbar


    【解决方案1】:

    不,对不起。那是不可能的。

    Notification 类存储图标引用as a resid。无法通过这种方式访问​​外部存储上的图形。

    【讨论】:

    • @bobbean 没问题,很高兴能帮上忙。如果这有帮助,请accept this answer(以防你不知道这个机制)
    猜你喜欢
    • 2014-07-15
    • 2010-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多