2012-12-11 2 views
1

하나의 앱을 Android 런타임으로 변환하지만 내 인 텐트 액션 중 일부가 작동하지 않지만 LogCat에 오류/예외가 표시되지 않습니다. 내 onSaveInstanceState 코드가 Activity가 일시 중지되었지만 아무 것도 나타나지 않는 것처럼 실행되는 것을 볼 수 있습니다. IntentChooser를 사용하면 로그에서 "com.android.internal.app.ChooserActivity 활동에 대한 onCreate() 호출"을 볼 수 있지만 PlayBook에서는 아무 것도 발생하지 않습니다. BB10 시뮬레이터에서는 선택기가 표시되지만 (메시지 및 SMS 옵션 포함) 아무 것도 클릭하지 않으면 발생합니다. 이것들이 작동하고 있습니까? 무엇이 잘못되었을 수 있습니까? 워드 프로세서는 이러한 제한 중 하나를 언급하지 않습니다BlackBerry Android 런타임에서 지원되지 않는 인 텐트

working: 
new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI) - (contact picker) 
new Intent(MediaStore.ACTION_IMAGE_CAPTURE) - (camera pick image) 

not working: 
new Intent(android.content.Intent.ACTION_SEND) - (send e-mail) 
new Intent(Intent.ACTION_GET_CONTENT) - (pick media from device) 
new Intent(Intent.ACTION_VIEW) - (file/document preview) 
new Intent(Intent.ACTION_CALL) - (calling phone number - have proper permissions) 


Calling them with either below yields same results. 
context.startActivity(intent) 
context.startActivity(Intent.createChooser(intent)) 

답변

2

http://developer.blackberry.com/android/apisupport/은 실제로 당신이 허용되지 않습니다 사용하는 텐트의 일부를 언급했다.

Android applications cannot provide system-wide services to the rest of the device. E.g: 
Dialing services (handling android.intent.action.ACTION_DIAL) 
Viewing capabilities (system-wide handing of android.intent.action.ACTION_VIEW) 
Data sharing capabilities (android.intent.action.ACTION_SEND) 

희망하시는 분은 documentation page입니다. 거기 그들은 당신의 질문에서 언급 한 ACTION_VIEWACTION_SEND에 대해 언급했습니다.

그러나 그들은 그 문제를 극복하는 방법을 언급하지 않았습니다. 문서의

1

: 가 Unsupported APIs for BlackBerry 10 당신이 블랙 베리에 안드로이드 애플 리케이션을위한 블랙 베리 런타임에서 지원하지 않는 기능을 찾을 수 있습니다 (10)

참조 : 시스템 전체에 제공 할 수 Intents

안드로이드 응용 프로그램 서비스 나머지는 입니다. 예 :

Dialing services (handling android.intent.action.ACTION_DIAL) 
Viewing capabilities (system-wide handing of android.intent.action.ACTION_VIEW) 
Data sharing capabilities (android.intent.action.ACTION_SEND)