Just a small correction to this. If you just specify the MNC, then the strings will be used for Verizon only in the US. In other countries they would be used for other operators who have the same MNC value (for example strings in res/values-mnc005/strings.xml would be displayed in Estonia for the operator AS Bravocom Mobiil)
So if you want to make sure that some strings are used JUST in Verizon and nowhere else, then you must put them in the following directories: res/values-mcc310-mnc004/strings.xml res/values-mcc310-mnc005/strings.xml res/values-mcc310-mnc012/strings.xml On Wed, Oct 27, 2010 at 4:05 AM, Dianne Hackborn <[email protected]> wrote: > You can actually use the mnc configs to have different strings for different > carries. For example, strings in these directories will be for Verizon: > res/values-mnc004/strings.xml > res/values-mnc005/strings.xml > res/values-mnc012/strings.xml > > There are lots of caveats with this though: > (1) This configuration is based on runtime information from the network. It > won't be available until connected to the cell network, and will change > appropriately if you change the SIM in the phone. > (2) It is fragile. Obviously there are three different MNCs for Verizon. > There may be more in the future. > (3) What happens on a phone with multiple SIMs? Not defined. If only one > is active at a time, the configuration should change to match the currently > active one. > (4) It will probably, at some point, cause you pain. > On Tue, Oct 26, 2010 at 11:35 AM, DanH <[email protected]> wrote: >> >> Are you sure they don't simply mean that they want different XML files >> for different environments/devices? There is a file suffix convention >> that lets you specify different files for different environments, to >> allow a single Android build to be "targeted" to several different >> devices simultaneously. >> >> On Oct 25, 10:38 pm, Jack Ganesh <[email protected]> wrote: >> > Hi All., >> > >> > My appication is used across different devices. For all device (SPH- >> > D800,MOTO-Droid. etc) i force to make use of one string.xml and one >> > android manefiest file for my application. >> > >> > Can any please tell me how can i make the conditions inside the all >> > xml file. >> > >> > Thanks in advance ! ! >> > >> > Thanks., >> > Ganesh Kumar R. >> >> -- >> 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 > > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- > 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 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

