Getting a FIT file on phone

Hi,

I want to be able to go out, do a ride with my Garmin 530, recording power and other data. I would like to have a phone based app that is going to do some analysis on the ride (fit file). 

Can I develop a phone app able to do this and if so, with which SDK ?

Is it some sort of companion app to the phone Garmin Connect app ? 

Does it need a component on the device itself ? 

Thanks

Marc