On Thu, Jan 20, 2011 at 5:50 PM, Joel <[email protected]> wrote:

> I know it is possible that it may not work because it is on a
> virtual device, but is there a way to set simStream and readnumber to a
> value in case of exception? I thought my code would do it but
> apparently not...
>

I'm not 100% clear on what you're asking or trying to do, but you can set
the values for both those variables in the catch or finally blocks. Of
course, if your code to open the stream failed to being with, whatever you
set them to after the fact will be fairly meaningless.


> Is this the proper way to call an exception by the way?
>

And exception is not something you "call" - it's something you "throw" and
"catch".

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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

Reply via email to