On Oct 9, 9:40 pm, "Ewan Grantham" <[EMAIL PROTECTED]> wrote:
> That sounds like a reasonable idea. I presume that since it's a different
> view I'd still have to do it as a separate activity that I would "launch"
> when I was in the STATE_WIN state? Is there a good tutorial or example out
> there you could point me to for setting up that type of WebView?
>

There is a WebView demo in the apps-for-android project.

http://code.google.com/p/apps-for-android/

It is fairly straightforward to use though, once you know how to load
the content from the assets directory.

It is not necessary to have another Activity, you could swap the
current View depending upon the state your game is in.  You can use
something like the State design pattern to swap the behavior of the
Activity depending upon the state but be careful of over designing - a
simple switch statement may suffice.

In your case it doesn't sound like you want the user to be able to go
back so probably a single Activity is best, however, if you are
considering in game help then you could potentially use the same
WebView approach but in that case you do want the user to be able to
go back to the game so another Activity may be best.

Sorry I haven't given you anything definitive but the solution really
depends on your game.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to