2013-05-15 4 views
0

저는 Flash Builder를 사용하여 Android 폰용 모바일 응용 프로그램을 제작하고 있습니다. 나는 블루투스 (ON/OFF)를 확인하고 그것이 꺼져 있다면 가능하게 할 수 있는지 알고 싶다. 아래에 표시된 연결을 확인하기 위해 인터넷을 사용하고 있지만 다른 장치에 Bluetooth 체크 활성화 및 쌍을 사용하려고합니다. 도와주세요!!플래시 빌더 확인 가능 Android 휴대 전화에 블루투스가 사용 설정되어 있습니까?

<fx:Script> 
<![CDATA[ 
    import air.net.URLMonitor; 
    import mx.managers.PopUpManager; 
    import views.BloodVialsHomeView; 
    private var monitor:URLMonitor; 
    [Bindable] private var isConnected:Boolean; 
    protected function init():void { 
     monitor = new URLMonitor(new URLRequest("http://google.com/")); 
     monitor.addEventListener(StatusEvent.STATUS, checkConnection); 
     monitor.start(); 
    } 
    private function checkConnection(e:StatusEvent):void { 
     connectionIndicator.currentState = monitor.available ? "connectionOn" : "connectionOff"; 
     if(!monitor.available){ 
      openAlert(); 
     } 
    } 

    private function openAlert():void { 
     mobileAlert.open(this, true); 
     PopUpManager.centerPopUp(mobileAlert); 
    } 

    public function exitApp():void { 
     NativeApplication.nativeApplication.exit(); 
    } 
]]> 

답변

0

이 너무 많이하여 AIR 하나 플래시 빌더 질문이 아니다. 어쩌면이 다른 질문은 당신을 동원 할 수 있습니다 : Bluetooth Android - adobe Air

+0

실제로이 하나 더 많은 정보가 있습니다 http://stackoverflow.com/questions/5055768/is-there-a-way-to-access-bluetooth-on-android-via- 어도비 에어 – Luis

+0

나는 플래쉬 빌더에 처음이다. 어도비 에어를 플래시 빌더와 어떻게 통합합니까? 따라서 Bluetooth를 켜고 끌 수 있습니다. 나는 너의 도움에 매우 감사 할 것이다. 고맙습니다. – TCO

+0

@TCO "네이티브 확장"은 대상 플랫폼에 AIR에 포함되지 않은 기능을 제공합니다. AIR 응용 프로그램을 만들거나 가져 와서 패키지로 만들고 배포 한 다음 런타임에 호출하십시오. 안드로이드에서 그렇게 해본 적이 없으므로 그 부분을 실제로 도울 수는 없습니다. – Luis