How To Save A Resources In "Res/Drawable" Instead Of "Assets"

why? :roll_eyes::roll_eyes::roll_eyes:

MP3 is not a drawable…

5 Likes

All right… that was my mistake…
i mean (by saying “res/drawable”) :point_right: Capture
{IDK, which folder that is if it is still wrong}

Guys its kodular and not android studio, btw sir @Mika i will love this

1 Like

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:joy::joy::joy:

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

1 Like

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… :hugs:

1 Like

I Know This, But I Want To Use Custom Icon For Notification.

1 Like

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

1 Like

That icon will only appear in status bar. In the notification drawer what you will see is a colored square :no_mouth:

Can you send me a screenshot on pm


I think API 21+ supports only white & transparent icons

Okay… One thing we can do is :thinking: make an png icon that is transparent on center :wink:
Like this :wink:
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