Adobe Air 기반 Android 앱에서 send intent의 데이터를받는 방법은 무엇입니까?보내기 의도에서 데이터를받는 방법?
나는 아래의 방법을 시도했지만 들어오는 인수 배열과 이벤트는 비어 있습니다. 공유 된 콘텐츠가 없습니다.
내 Air 소스 파일과 테스트 .apk 파일은 다음과 같습니다. 누군가가 살펴볼 수 있다면 좋을 것입니다.
AIR :
import flash.desktop.NativeApplication;
import flash.events.InvokeEvent;
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE, onBrowserInvoke);
function onInvoke(event:InvokeEvent):void
{
trace("\n Invoke event: " + event)
}
function onBrowserInvoke(event:BrowserInvokeEvent):void
{
trace("\n Browser Invoke event: " + event)
}
XML (app.xml 매니페스트) :
<android>
<manifestAdditions>
<![CDATA[
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<application>
<activity>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="helloworld"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>
</application>
</manifest>
]]>
</manifestAdditions>
</android>
여기 어도비 포럼에서 같은 질문 : http://forums.adobe.com/message/5477286 당신이 뭔가 도움이 될 수 있기를 바랍니다, 당신의 프로젝트를 열려고 노력했지만 그것을 열어 내 플래시 빌더 4.6 크래시 : s – Smile2Life
문제를 해결 했습니까? 나는 똑같은 행동을하고있다 ... – NemoStein
예, 네이티브 확장으로 해결했습니다. – Uli