Android Question [solved (?)] A... mistery ^_^

LucaMs

Expert
Licensed User
I already know that you won't be able to help me unless I publish the whole project.

In my running app an image is displayed, placed in an ImageView. I would like to change the image file, so I go to look for where it is loaded in the ImageView, whether in the Designer or in the source code; I can't find anything.

In the source code certainly not (I searched for the name of the file), not even in the Designe loaded (I searched in all layouts, but I know exactly wich it is).

The last attempt I made to find this bug was to change the name of the image file, thinking that at runtime the IDE would report the error: no error.

I obviously I executed both the "Clean project" and the refresh ("Sync) of the files folder.


If I do not go crazy soon and reveal this mystery I will let you know :D
 
Last edited:

MarkusR

Well-Known Member
Licensed User
if you remove all images you should get a runtime error after a clean install.
about filename, maybe you put strings together for the complete name.
paint into this pic, this should be visible at runtime.
maybe the ide rename all used references too.
 

LucaMs

Expert
Licensed User
if you remove all images you should get a runtime error after a clean install.
I tried renaming the file name (and clean): no error (I cannot remove all images, of course, because then I couldn't run the app).

about filename, maybe you put strings together for the complete name.
No, and I searched for the first letters of its name.

paint into this pic, this should be visible at runtime.
I already write text on that imageview (canvas)... changed this text and I can see this new one! This confirms that the imageview is just that.

:eek::D


Thank you, Markus.
 

LucaMs

Expert
Licensed User
1) removed that image file
2) cleaned the project

3) I can still see that image at runtime :D:D:D:confused:
 

Star-Dust

Expert
Licensed User
You have to uninstall from the device because otherwise a copy of the image remains in a folder of the app
 

MarkusR

Well-Known Member
Licensed User
I already write text on that imageview (canvas)...
i meant paint in this image with paint in the ide project folder to be sure that it really be used and not something cached.
 

LucaMs

Expert
Licensed User
You have to uninstall from the device because otherwise a copy of the image remains in a folder of the app
Avevo in mente un altro tentativo e... l'ho dimenticato, mentre facevo... colazione :p
(I had another attempt in mind and ... I forgot it, while I was ... having breakfast)

I would not have wanted to uninstall, in order not to lose the user registration but at this point it is the only test to try (maybe).
 

MarkusR

Well-Known Member
Licensed User
I would not have wanted to uninstall, in order not to lose the user registration but at this point it is the only test to try (maybe).
maybe you can rename temporary the package name, it will install new with new identity.
 

LucaMs

Expert
Licensed User
maybe you can rename temporary the package name, it will install new with new identity.
Well, uninstalled (and registered a new user).

Now "fortunately" the app crashes :p

I suppose that previously (old versions of the app) the image was loaded into the Designer, although not only the image file was not associated with the ImageView ... it was not just part of the files included in the layout (Designer).

I will take a look to old versions of my app; for the moment I reinsert the file.


Thank you.
 

LucaMs

Expert
Licensed User
The oldest version I have is August 21st 2018... about 100 versions ago :p

Also in this version, in the Designer the image is not assigned to the ImageView.

OK, let's say problem solved, anyway.
 
Top