# Icon path for android device

**URL:** <https://forums.solar2d.com/t/icon-path-for-android-device/331624>\
**Category:** OneSignal\
**Created:** [February 7, 2015, 9:45am UTC](https://forums.solar2d.com/t/icon-path-for-android-device/331624 "2015-02-07T09:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reichl\_markus](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@reichl\_markus](https://forums.solar2d.com/u/reichl_markus)\
**Post date:** [February 7, 2015, 9:45am UTC](https://forums.solar2d.com/t/icon-path-for-android-device/331624/1 "2015-02-07T09:45:00Z")

</div>

Hi guys,

I’am currently implementing push notifications with game thrive in my app. But the problem is I don’t know how to use an icon for my notifications. According to the game thrive api documentation you should insert “small\_icon” etc. to your parameters. The question is: Can I use icons wich are in my app folder or wich path is assumed here?

I tried the following but have no clue what to do here:

```
$fields = array( 'app\_id' =\> "xxxxxxxxxx", 'include\_player\_ids' =\> $playerIDs, 'isAndroid' =\> true, 'contents' =\> $content, 'data' =\> $data, 'small\_icon' =\> "assets/avatars/2.png" //this is the path I use in my app );&nbsp;

```

Thank you&nbsp;

Markus

---

<div class="post-metadata">

**Author:** ![jkasten](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jkasten](https://forums.solar2d.com/u/jkasten)\
**Post date:** [February 9, 2015, 8:35pm UTC](https://forums.solar2d.com/t/icon-path-for-android-device/331624/2 "2015-02-09T20:35:37Z")

</div>

Hello&nbsp;Markus,

small\_icon only works with resource names which means your icon has to live in a res/drawable-\*/ directory in the APK itself. Since basic versions of Corona does not let you place files in this folder your options are more limited than Corona Enterprise. You have a few options if you want your notification small\_icon to be different than your application icon:

1. See [Corona’s documentation](http://docs.coronalabs.com/guide/events/appNotification/index.html#android-icons) to change your icon for all notifications.

2. You can use a system drawable from [Android’s drawble documentation](http://developer.android.com/reference/android/R.drawable.html).

Also note that the large\_icon is more flexible as you can use a image URL to set it to anything you want. The large icon is the one that only displays to the left of the notification.

Thanks.

---

<div class="post-metadata">

**Author:** ![jkasten](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jkasten](https://forums.solar2d.com/u/jkasten)\
**Post date:** [February 9, 2015, 8:35pm UTC](https://forums.solar2d.com/t/icon-path-for-android-device/331624/3 "2015-02-09T20:35:37Z")

</div>

Hello&nbsp;Markus,

small\_icon only works with resource names which means your icon has to live in a res/drawable-\*/ directory in the APK itself. Since basic versions of Corona does not let you place files in this folder your options are more limited than Corona Enterprise. You have a few options if you want your notification small\_icon to be different than your application icon:

1. See [Corona’s documentation](http://docs.coronalabs.com/guide/events/appNotification/index.html#android-icons) to change your icon for all notifications.

2. You can use a system drawable from [Android’s drawble documentation](http://developer.android.com/reference/android/R.drawable.html).

Also note that the large\_icon is more flexible as you can use a image URL to set it to anything you want. The large icon is the one that only displays to the left of the notification.

Thanks.
