I'm very new to programming in general (so forgive what is probably a very obvious question, and try to be patient with your responses!), and am currently building a Java game which I am now trying to convert to android. One of the core classes in the game is an imagesLoader class, which reads a text file containing a list of file names, types, etc, then uses this to load bufferedImage. what I would like to do, is simply adapt this class so it will work with android. I need to load things to bitmaps, right? How is this done?
The way I would ideally like it to work would be:
Using java Syntax Highlighting
String address = "imageDirectory/imageName.png"; //for example
Bitmap im = Bitmap(address);
Parsed in 0.030 seconds, using GeSHi
i.e. a way of loading a bitmap when one has its address as a string.. Is this kind of thing possible? After this I'll need to adapt my draw methods (of course), but one thing at a time!
Thanks a lot,