I answered a similar question on SO http://stackoverflow.com/questions/20464938/the-way-to-detect-usb-connection-via-pc May be a better way, but you may want to have a look.
----- Original Message ----- From: "Paul" <mozloverin...@gmail.com> To: dev-b2g@lists.mozilla.org Sent: Monday, December 9, 2013 4:29:49 PM Subject: Re: [b2g] FxOS how it detects the usb connection to PC? Jan Jongboom於 2013年12月9日星期一UTC+8下午6時44分50秒寫道: > On Friday, December 6, 2013 8:14:05 AM UTC+1, Tank wrote: > > > Is there any callback available in the gaia layer for detecting the device > > connect to PC through USB? > > > > > > > > > > > > Thanks > > > > Check gaia/apps/settings/js/storage.js Thank you Jan. I will check it out. _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g