Switch case on String

by Abhi » Thu, 24 Sep 2009 22:57:18 GMT


Sponsored Links
 Can I do a switch(String), case (compare with other string) and how?

I am trying to compare string results and perform actions...

Thanks,

Abhi
--~--~---------~--~----~------------~-------~--~----~



Switch case on String

by Felipe Silveira » Fri, 25 Sep 2009 00:50:59 GMT


 No, you can't.

In Java we don't have switch with Strings.

Regards,

Felipe Silveira






-- 
Felipe Silveira
Engenharia da Computao
Universidade Federal de Itajub
 http://www.felipesilveira.com.br 
MSN: felipeuni...@hotmail.com
Skype: fsunifei
-------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Switch case on String

by Abhi » Fri, 25 Sep 2009 01:07:52 GMT


 Ok. Thanks Felipe. I just figured that out.

Regards,

Abhi




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. RIL structure

Is there any guide about RIL structure in android? Where to update if
Modem offers some other interface than serial?

Best Regards,
Hemant
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: 

2. Browser rendering handles zoom badly

I'd like to suggest a change to the Android Browser that may seem
minor but would actually make it much more enjoyable to use.

Websites with a fixed-width design are flawless on the browser.
Websites that dynamically scale based on window size are significantly
more problematic. A perfect example is the Android Discuss website.
The table to select a which mailing list you want to view appears
squished, with thin columns and ridiculously tall rows. When you zoom
out, though, and wait a moment, they display at a reasonable width.
But you can't read the text because you're zoomed out.

Solution: take out the portion of zooming which resizes the "window"
of the browser. Render the page at a fixed width that looks good on
most sites, like 1024 or 1280, and just zoom in and out of that.

This would fix issues with sites displaying differently in landscape
mode as opposed to portrait.
--~--~---------~--~----~------------~-------~--~----~

3. Problem setting an alarm and receiving it

4. setResult crashed if portrait/landscape orientation changes

5. google-framework_intermediates directory missing when building on Handy heron

6. Mobile web and Android app integration

7. pre-portability number being returned from telephony manager