A patent infringement case between Apple and Motorola Mobility was dismissed by a Wisconsin district court today just hours before the trial was due to begin, reports the “IDG News Service” (http://macte.ch/fKXau).

This is part of an ongoing battle between the two companies. Apple has alleged that Motorola infringes 24 of its patents (21 of them with Android-based phones, the remaining three with set-top boxes and DVRs), while Motorola previously asserted 18 patents against a variety of Apple products (mostly but not exclusively iPhone, iPad and iPod). Litigation between the two companies has taken place in several different federal courts.

In November 2010 Apple sued Motorola, alleging that the company’s smartphone lineup and the operating software it uses infringe on the iPhone-maker’s intellectual property. The two lawsuits came after Motorola sued Apple in October 2010 for patent infringement. Motorola claims that Apple’s iPhone, iPad, iPod touch and certain Mac computers infringe Motorola patents.

Last week Apple told the court it would pay up to $1 per device for a license to Motorola patents covering cellular and Wi-Fi technologies. Motorola Mobility wants a royalty payment of 2.25% on each device. However, Apple said that if the court found in Motorola’s favor and instructed Apple to pay more than $1, Apple would pursue all possible appeals against the ruling.

The presiding judge in the case, U.S. District Court Judge Barbara Crabb, didn’t take kindly to Apple’s offer, notes the “IDG News Service.”Apple and Samsung were given until Monday morning to persuade the court as to why the case should go ahead.