I have a Phonegap app which runs ok in Android and iOS, except for one reason: one of the images below don't load for nothing in the Android app, but works ok on iOS:
It works: http://mobile_server.s3.amazonaws.com/banners/assets/000/000/021/medium/serra_azul.jpg?1410372361
It wont: http://mobile_server.s3.amazonaws.com/banners/assets/000/000/017/medium/boscato_banner_app.jpg?1410372359
I checked many things like image size, especial characters, network loading (debuggin' in Chrome browser), but I think that those are not the reason.
The method im using to load the image is just a <img src="..." />. Im sure that there is no problem here, because the first image works perfectly.
Maybe someone can check these two images and tell me the difference that one has to another which can make the second image don't load in Android app.
Thanks,
Related
I have an issue with displaying an image in my web app and I can't think of any other reason but some strange cache situation. The image has the following CSS properties so its always showing a square part of the image:
object-fit: cover;
height: 100vw;
width: 100%;
Now when I test the app on my phone the image gets stretched like object-fit isn't supported by the browser. But when I test the same on my girlfriend's phone it works perfectly. Strange part is that we have the exact same phone(samsung s10e) running the same os and using the same browser(Chrome for Android) and browser version (83+). I tried reinstalling and deleting temp data from any browser installed but I can't get it to work. The app is using a web app manifest but no service worker (yet) if this helps.
If someone has any clue how to go from here please let me know.
You should clear your browser cache. Here's how...
Open chrome and click more. Click more tools then clear browsing data. Choose a time rage or all time. Check cookies and other site data and cached images and files. You can try just clearing cached images and files first but for a full clear do the other one (this one may sign you out of most sites)
Clear clear data and your done.
If it's that you want your one web page not to be cached on all browsers (supported ones only) then look into the pragma meta tag.
I am working on an Android app where, once a user clicks a login button, the app launches an AsyncTask to verify account details with a remote server. That part works fine by itself and doesn't make my app slow. However, when you click the login button, it launches a second activity where I have 4 ImageViews. When I added that part of the app, it became significantly slower (from less than a second to about 5 seconds loading time). I load the images into the ImageView from the XML layout file directly, so I'm not sure what I'm doing wrong.
My question is that do ImageViews make your app slow, and if so, how do you optimize their performance?
I was working my own app when I actually experienced this too. The reason is because if the files are to big they take a while to load into memory and set as the Image View. There is two ways you could really sort it out.
1: Get a smaller version of the picture. Smaller pictures come up faster and aren't prone to an OutOfMemory exception which kills the app :(.
2: A better way is to use the Picasso api. I used this APIs to add images in list views, expandable list view with pictures in them. The app was fast and fluid :)
Picasso's api would be your best bet ant it is easy to implement.
Edit:
Here is the link to the site to get the APIs :)
Picasso
The only way I could figure this out is to create an image in photoshop that has all the buttons laid out where you want them on top of the image. Interpret it into your app and put regular buttons over top of the imagebutton pictures that you placed onto your background image. Set the size accordingly to your images of your buttons and then set the background of each button to #null so they aren't seen. Now trying to figure out how to interpret this into orientation view even though I don't think I'll be using orientationview. OH AND CHANGED THE EXTENSION TO A GIF TO SAVE ON DATA RATHER THEN PNG.
Hope this helps I'm sort of new at coding on android as I have lots of experience with HTML .
Cheers
THANKS FOR THE DOWN LIKE I WAS SORT OF NEW AT THE TIME OF NOT KNOW OTHER WAYS TO SET THIS... THANKS THOUGH, MORONS
I'm new to android/phonegap development. I'm trying to access external images but I only get black places where the image should be on the emulator.If I try to open the html in chrome it displays the image. I already added the domain to the white list.
Would you be so kind as to help me figure out what the problem could be?
Thank you,
Henrik
Please check the case of the images names. See if the browser is also displaying the image or not
It was just an error of the emulator, when I tried on an actual device all worked fine!
I have an issue with my as3 project: I'm doing a game for mobile, when I test it in the mobile the game loads but my images and arrays (that I store in XML) doesn't load. They loads however when I run it in my computer
How is that possible? Can someone give me an advice?
My code loads an XML with the Pictures and the arrays to the game
You have to make sure that the files that you are needed (even the ones in the xml) is included.
These can be seen in the setting before publishing.
I am having some problems with a webview I am using to access a specific URL within my Activity. When I load this exact same URL on a PC browser such as firefox, the edges of the grid are displayed
When I try to load the same URL from within my WebView by using
webView.loadURL("www.url.com");
I get the following grid.
Any ideas on how I can fix this? It's not a major issue, just annoying.
And this isn't real data, so don't worry about that.
I don't know that much about HTML so maybe this is an HTML issue?
Apologize for using imageshack, I can't post images yet.
Have you tried scrolling to the side? Does it display the images, then?
You might try the following:
Building webpages to support different screen densities
Take a look at the Android documentation there. It should give you a good example of how to get your data to display properly on any device.
Hope this helps!