How to identify if the visit is from android app or android browser?

I’m using javascript tracking API to track visitors in web app and android sdk to track the visitors in the native android app.
Both have the same site id.

How do I find out which visitors are using the app and which are using it in browser?
How do I display different statistics for browser and app on the dashboard?