why?
MP3 is not a drawable…
All right… that was my mistake…
i mean (by saying “res/drawable”)
{IDK, which folder that is if it is still wrong}
Actually I Need To Save A Resource In “res/drawable” To Show OneSignal Push Custom Small Icon In My App
I didn’t know it wasn’t possible already.
If you find a way please tell us!
With a quick google search you would discover that you can’t do that
https://www.google.com/search?client=firefox-b-d&q=I+Need+To+Save+A+Resource+In+“res%2Fdrawable”
/Boban
I understood that he want to compile the app like this, not after the user installed the app.
But well, I didn’t even know there was such a directory so I don’t even know why I am commenting here
You know you could just save the file in Res/Drawable
by saving it there using the file component possibly from your assets folder to that folder. Or you could simply get the file on OneSignal from a URL.
It Isn’t Possible To Show Small Icon From URL In OneSignal
Did anyone find a solution for this ?
No, Not Yet.
Write
ya
[Small letters] on one signal small icon place
.The notification icon will be your app icon…
I Know This, But I Want To Use Custom Icon For Notification.
If the link above did not provide you with answers, then here it is
Its not possible.
The following link can be helpful
It is not possible to save anything into
res/drawable
at runtime, sorry.
You can’t modify neither res/drawable, nor any other folder of your apk at runtime. It is build at compile-time and nothing can modify it from inside the application after.
Everything in the apk will be read only. And it’s even better: android doesn’t extract the apk when you install a program, so the size consumed is kept to minimal.
You cannot write to res/drawable.
But you can continue to look for a better answer
/Boban
That icon will only appear in status bar. In the notification drawer what you will see is a colored square
Can you send me a screenshot on pm
Okay… One thing we can do is make an png icon that is transparent on center
Like this
one of my app icon
Friend I want to replace an image in the res / drawable folders is it possible to know some technique?
friend how can you save in the drawable folder, can you explain better