On Thursday, December 15, 2011 8:17:48 PM UTC-8, Matt Clark wrote:
>
> ... [snip] ...
>
 

> if (locationFrom == "equine") {
> if (locationTo == "equine") {
> //None
> } else if (locationTo == "gaebe") {
> if (locationDay == "monday" || locationDay == "tuesday"
> || locationDay == "wednesday"
> || locationDay == "thursday") {
> setContentView(R.layout.equine_gaebe_week);
> } else if (locationDay == "friday") {
>
... [ snip] ...

Others answered your main question, so I will add two incidental comments. 
 First, don't use TAB characters to indent Usenet 
posts; they don't display well.  Use spaces (2 per indent for Usenet works 
well).

Second, this might not matter for your code if you don't display the values 
to a user, but if you do, day names are proper nouns.

In the future you will use enums instead of strings for those comparisons, 
then you can do things like

  switch (locationDay)
  {
    case SUNDAY: ...; break;
    case MONDAY: ...; break;
 etc.

-- 
Lew

 

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