I too am going to make a simple flash card game..mostly for my kids.. not sure if I'll put it up on market..probably quite a few up there already.
The way I had envisioned it is using the 2D api to draw on a surface of an image of a card. Not entirely sure just yet..but I would start a thread during the onStart() and onResume() calls that would do the work of loading a couple images and preparing the game. I would do this in my Splash Screen activity, so that generally it would show the splash screen for a couple seconds while the images/game init is done in a thread. Then the real-time game would actually draw the randomized problem on the card image. Perhaps we have a couple cards. I don't think it is a good idea to store a lot of flash card images as part of the .apk tho, it would be quite large for a simple game that would generally do the same thing but primarily change the problem and answer..which is usually going to be text of some sort. For those cards that need images, say you put the word Apple, and you show a couple selections.. cards with orange, banana, and apple images, well, I would make the images small pngs with transparency saved, and then draw/paint those on top of the card. This way you're storing a lot less image data. There are lots of examples showing how to load bitmaps and how to paint them onto other images.. to overlay them. With transparency saved, you should be able to achieve very nice results when overlaying the smaller pictures on top of the card image. On Sat, Jan 9, 2010 at 12:09 PM, Breezy <[email protected]> wrote: > Excellent, great reply! Thanks! > > I know what you mean about storing the images on the SD card, but the > location in the DB. > > And textview is the way to go? That's what I was going for, ease and > a one-liner is good for me! :) > > On Jan 10, 1:45 pm, theSmith <[email protected]> wrote: > > Very feasible, I would use a database to hold the images filenames but > > actually store the images on the sd card. > > Changing the text of a textView is like one call, very easy. > > > > -theSmith > > > > On Jan 9, 1:05 pm, Breezy <[email protected]> wrote: > > > > > I'm about to begin work on a simple app that is just flash cards and > > > answers... It will be a couple hundred flash cards (some with images, > > > some with just text) and the answers to those cards. > > > > > My question is, how should I set this up? Should I use a database to > > > store each one or what? I'm afraid if I just initialize an array when > > > the app opens with ALL of these cards it would make it extremely > > > sluggish. > > > > > What do you think? > > > > > Also, I was thinking of having a simple label area that will display > > > the question and when the user presses a button it will simply change > > > the text of the label area. I'm bad with GUIs, is this a feasable > > > idea? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

