a quick solution 

public static final String currentMarket= "Google";  // change this when 
you compile or load it using property file

static private final boolean isForGoogleMarket ;
static private final boolean isForOperaMarket;
static private final boolean isForTStoreMarket;
static private final boolean isForAmazonMarket;
static private final boolean isForSamsungMarket;
static private final boolean isForAndroidPitMarket;

    static{
         isForGoogleMarket = currentMarket.contains("Google"); 
isForOperaMarket = currentMarket.contains("Opera"); 
 isForTStoreMarket=currentMarket.contains("TStore"); 
 isForAmazonMarket=currentMarket.contains("Amazon"); 
 isForSamsungMarket=currentMarket.contains("Samsung"); 
 isForAndroidPitMarket=currentMarket.contains("AndroidPit"); 
      
    }

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to