Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-10 Thread Marco Chen
Hi Paul, As I know that we didn't have Web API for this purpose now but just had some similar but not accurate ones. Ex: 1. USB Mass Storage. (Need to get result by enabling it) 2. Battery Charging. (Not sure that charging is came from PC or Wall Charger)

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-10 Thread Paul
Thanks Marco. Then this is much clear now. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-09 Thread Jan Jongboom
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 ___ dev-b2g mailing list

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-09 Thread Paul
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

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-09 Thread Jason Weathersby
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,

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-09 Thread Paul
I actually have the same question as you answered in SO. Can I detect the PC usb connection event without enabling USB storage? ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-09 Thread Paul Tsvika
Hi Jan, Your approach will only work when enabling USB storage. My intention is to detect pc usb connection event without enabling USB storage. Do you have any idea about this? ___ dev-b2g mailing list dev-b2g@lists.mozilla.org

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-08 Thread Paul
Any possible clue? ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

[b2g] FxOS how it detects the usb connection to PC?

2013-12-05 Thread Tank
Is there any callback available in the gaia layer for detecting the device connect to PC through USB? Thanks ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g

Re: [b2g] FxOS how it detects the usb connection to PC?

2013-12-05 Thread mozloverinweb
Tank於 2013年12月6日星期五UTC+8下午3時14分05秒寫道: Is there any callback available in the gaia layer for detecting the device connect to PC through USB? Thanks Be more specific, only the detection of connecting to PC. I dont mean to the device connects to the charger through USB with adapter.