Sinan Tuzcu Well-Known Member Licensed User Longtime User Feb 5, 2013 #1 Helo, how can i load a Icon in the Notification from web? this code doesn't working B4X: Notification1.Icon = "http://www.xxxxxx.com/download/picture/1.png" can someone help me? greet sinan
Helo, how can i load a Icon in the Notification from web? this code doesn't working B4X: Notification1.Icon = "http://www.xxxxxx.com/download/picture/1.png" can someone help me? greet sinan
M madSac Active Member Licensed User Longtime User Feb 5, 2013 #2 Sinan Tuzcu said: Helo, how can i load a Icon in the Notification from web? this code doesn't working B4X: Notification1.Icon = "http://www.xxxxxx.com/download/picture/1.png" can someone help me? greet sinan Click to expand... You cannot use an image directly.You will have to first download it locally then use it . Upvote 0
Sinan Tuzcu said: Helo, how can i load a Icon in the Notification from web? this code doesn't working B4X: Notification1.Icon = "http://www.xxxxxx.com/download/picture/1.png" can someone help me? greet sinan Click to expand... You cannot use an image directly.You will have to first download it locally then use it .
Sinan Tuzcu Well-Known Member Licensed User Longtime User Feb 6, 2013 #3 Helo, i have download the Picture with DownloadService Modul in this directory B4X: File.DirRootExternal & "/images" and call so.. B4X: Notification1.Icon = LoadBitmapSample(File.DirRootExternal & "/images", ayir2(0) & "de.png", 100%x, 100%y) but doesn't work can someone help me? Upvote 0
Helo, i have download the Picture with DownloadService Modul in this directory B4X: File.DirRootExternal & "/images" and call so.. B4X: Notification1.Icon = LoadBitmapSample(File.DirRootExternal & "/images", ayir2(0) & "de.png", 100%x, 100%y) but doesn't work can someone help me?
Sinan Tuzcu Well-Known Member Licensed User Longtime User Feb 6, 2013 #4 Helo, this code B4X: Notification1.Icon = File.OpenInput(File.DirRootExternal & "/images", ayir2(0) & "de.png") doesn't work too Upvote 0
Helo, this code B4X: Notification1.Icon = File.OpenInput(File.DirRootExternal & "/images", ayir2(0) & "de.png") doesn't work too
S socialnetis Active Member Licensed User Longtime User Feb 6, 2013 #5 Are you debugging this with the phone connected to the computer? Because, if that is the case, the DirRootExternal wont be available. Also, I suggest using File.Combine instead of "File.DirRootExternal & /images" Upvote 0
Are you debugging this with the phone connected to the computer? Because, if that is the case, the DirRootExternal wont be available. Also, I suggest using File.Combine instead of "File.DirRootExternal & /images"
M madSac Active Member Licensed User Longtime User Feb 6, 2013 #6 socialnetis said: Are you debugging this with the phone connected to the computer? Because, if that is the case, the DirRootExternal wont be available. Also, I suggest using File.Combine instead of "File.DirRootExternal & /images" Click to expand... it is not in every case if you have turned on storage only then it will not be available. Upvote 0
socialnetis said: Are you debugging this with the phone connected to the computer? Because, if that is the case, the DirRootExternal wont be available. Also, I suggest using File.Combine instead of "File.DirRootExternal & /images" Click to expand... it is not in every case if you have turned on storage only then it will not be available.
M madSac Active Member Licensed User Longtime User Feb 6, 2013 #7 Sinan Tuzcu said: Helo, this code B4X: Notification1.Icon = File.OpenInput(File.DirRootExternal & "/images", ayir2(0) & "de.png") doesn't work too Click to expand... Can you post log of B4X: File.DirRootExternal & "/images" & " File= " & ayir2(0) & "de.png" And file list of File.DirRootExternal & "/images" Upvote 0
Sinan Tuzcu said: Helo, this code B4X: Notification1.Icon = File.OpenInput(File.DirRootExternal & "/images", ayir2(0) & "de.png") doesn't work too Click to expand... Can you post log of B4X: File.DirRootExternal & "/images" & " File= " & ayir2(0) & "de.png" And file list of File.DirRootExternal & "/images"
Erel B4X founder Staff member Licensed User Longtime User Feb 6, 2013 #8 It is not possible as the notification icon must be included during compilation. It is a resource file. Upvote 0
It is not possible as the notification icon must be included during compilation. It is a resource file.
Sinan Tuzcu Well-Known Member Licensed User Longtime User Feb 6, 2013 #9 Hi Erel, how it works in WhatsApp? it also appears in the Notification the image from the sender. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2013 #10 WhatsApp changes there icon at runtime? Here is another discussion: How to change an application icon programmatically in Android? - Stack Overflow Upvote 0
WhatsApp changes there icon at runtime? Here is another discussion: How to change an application icon programmatically in Android? - Stack Overflow