NEW YORK (TheStreet) -- Fitbit (FIT - Get Report) posted better-than-expected results for the 2016 second quarter after Tuesday's closing bell. The stock shifted between gains and losses in after-hours trading.

The San Francisco-based health and fitness device maker reported adjusted earnings of 12 cents per share, topping analysts' estimates by a penny.

Revenue for the period was $587 million, above analysts' expectations of $578 million.

For the third quarter, Fitbit sees adjusted earnings per share between 17 cents and 19 cents on revenue of $490 million to $510 million. Analysts are modeling earnings of 17 cents per share on revenue of $498.5 million.

Fitbit expects full-year earnings per share between $1.12 and $1.24 on revenue of $2.5 billion to $2.6 billion. Analysts are looking for earnings of $1.17 per share on revenue of $2.58 billion.

About 16.17 million of the company's shares changed hands today compared to its average volume of 7.57 million shares per day.