BlackBerry surprised Wall Street by posting financial results that beat analysts' expectations.
Shares rose 13 percent in premarket trading as CEO John Chen cut expenses quicker than expected.
The embattled smartphone company reported net income of $23 million, or 4 cents per share, for the three months ended May 31. It had reported a loss of $84 million, or 16 cents per share, a year ago.
Excluding unusual items, its adjusted loss was 11 cents per share in the latest period. Analysts surveyed by FactSet expected a loss of 35 cents per share.
Revenue fell to $966 million from $3.07 billion a year ago. Analysts expected revenue of $961.7 million.