Hi all !
Here is my problem :
I would to make a simple application. The aim is to display map, which is a jpg picture. The user could move and zoom on it, in order to view a particular place. So the picture has to be in high quality.
So I start to load my picture from ressource with :
Variable : private Drawable image;
In my class constructor : image=context.getResources().getDrawable(R.drawabl e.mypicture);
The original picture size is 3543x2300 and its weight is 498ko. But when the load instruction is running, the emulator gives me this error : "VM won't let us allocate 16297800 bytes".
I thought that load a picture of this huge size will cause some problems, but I really don't know how to solve it... Maybe use OpenGL 2D or something like that...
Can you give me some help, please ?
Thank you everyone !