unity3d - ScanActivity.class Alternative in Myo Android API -


i'm looking through myo android sdk sample helloworld application. uses following code connect myo armband. method called after user selects "scan" options menu.

private void onscanactionselected() {     // launch scanactivity scan myos connect to.     intent intent = new intent(this, scanactivity.class);     startactivity(intent); } 

the full example can found here.

this requires user choose myo armband through menu. there way bypass , automatically connect specific myo armband?

yes, in addition scan activity, can pair nearby myo armband using following 2 methods:

hub.attachtoadjacentmyo(); 

this allows pair myo near (almost touching) android device.

hub.attachbymacaddress(); 

this allows pair specific myo armband, defined armband's mac address.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -