NEW YORK ( TheStreet) - Research in Motion ( RIMM), which showed off a beta version of its next-generation BlackBerry smartphone earlier this week, reported its second-quarter results after market close.

The Waterloo, Ontario-based firm reported revenue of $2.9 billion, down from $4.2 billion in the prior year's quarter, but above analysts' estimate of $2.5 billion.

RIM posted an adjusted loss of 27 cents a share, down from earnings of 80 cents a share in the same period last year, but better than Wall Street's projected loss of 46 cents a share.

RIM's BlackBerry subscriber base also increased to approximately 80 million.

"Despite the significant changes we are implementing across the organization, our second quarter results demonstrate that RIM is progressing on its financial and operational commitments during this major transition," said RIM CEO Thorsten Heins, in a statement released after market close.

The company's cash position, cited as a key metric by analysts, increased $100 million to $2.3 billion at the end of the quarter.

RIM's shares rose nearly 20% in late trades to $8.54 on volume of more than 16 million, according to Nasdaq.com.

Read on for more details:

-- Written by James Rogers and Chris Ciaccia in New York.

>Contact by Email.

>To submit a news tip, send an email to: tips@thestreet.com.

More from Investing

CoinShares: US Investors Should Think of Bitcoin as Digital Gold

CoinShares: US Investors Should Think of Bitcoin as Digital Gold

GE Loses Its Spot on the Dow and 4 Other Stories to Watch Wednesday Morning

GE Loses Its Spot on the Dow and 4 Other Stories to Watch Wednesday Morning

Jim Cramer's Investing Rule 14: Expect, Don't Fear Corrections

Jim Cramer's Investing Rule 14: Expect, Don't Fear Corrections

Goldman CEO Blankfein Won't Criticize Trump on Stoking China Trade War Fear

Goldman CEO Blankfein Won't Criticize Trump on Stoking China Trade War Fear

FedEx Rises as Profit, Revenue Beat Expectations

FedEx Rises as Profit, Revenue Beat Expectations