Gross margin jumped to 60.1 percent in the quarter from 43.3 percent last year.
BlackBerry received more than 3,500 enterprise customer orders in the quarter, an increase of 16 percent from the last quarter.
“Looking ahead to fiscal 2018, we expect to grow at or above the overall market in our software business,” Chen said in a statement.
The company’s net loss narrowed to $47 million or 10 cents per share in the fourth quarter, from $238 million or 45 cents per share, a year earlier.
The prior-year quarter included a loss of $127 million related to the sale of certain assets.
Excluding one-time items, the company earned 4 cents per share. Analysts on average had expected the company to break even, according to Thomson Reuters I/B/E/S.
Operating expenses nearly halved to $229 million.
Revenue fell about 38 percent to $286 million. On an adjusted basis, revenue was $297 million, beating analysts’ average expectation of $289.3 million.
BlackBerry’s shares were up 16 percent at $8.06 on the Nasdaq in morning trading. The company’s Toronto-listed stock was up 15.4 percent at C$10.70.