Android Question "Error loading bitmap" ..ONLY on actual phone

RhodesB4A

Member
Licensed User
Longtime User
Hi All,

I'm having an issue loading images from the DB when using an actual phone (S3 mini). But when using the emulator - it works just fine with any size images. However when I use a really small images on the phone (1kb - 15kb) it works OK.. anything larger and it fails to load it.

I'm using API 7 on 2.1. Is it a version issue limitation? If so, is there some sort of work-around that can allow the DB to handle larger images because the app I'm creating will literally requires users to take pictures (which will no doubt be larger than 20kb) and load them onto the DB.

Thanks
 

RhodesB4A

Member
Licensed User
Longtime User
Sorry, I'm a b4a novice. How would I go about doing this?

If you're talking about clearing the cache on the phone - I've done that numerous times.
 
Upvote 0

RhodesB4A

Member
Licensed User
Longtime User
Oh i see. Well there are no errors when using the emulator itself - just when using the app on the phone do I get an "error loading bitmap" error.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
You will have to do a couple of things:

1- Connect the IDE to the phone so you can read the logs (click on the CONNECT button and select your phone)
2- Get the exact error message
 
Upvote 0

eps

Expert
Licensed User
Longtime User
The AVD may well have more memory than your actual device, hence why you are getting errors on the phone and not the emulator.

The problem is memory handling. You need to check the logs for the actual error. I would try tracing on the actual device, it may well prove more fruitful in working out what is going on.
 
Upvote 0
Top