(Reuters) - Apple Inc and Amazon.com Inc have agreed to end their lawsuit over who had the right to use the "app store" name to solicit business.