![]() ![]() It is quite working but there are two problems:ġ. SendIntentContext.dispatchStatusEventAsync("SHARED_IMAGES", listString) Log.d(TAG, "handleSendMultipleImages " + imageUris) Update UI to reflect multiple images being shared Void handleSendMultipleImages(Intent intent)ĪrrayList imageUris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM) SendIntentContext.dispatchStatusEventAsync("SHARED_IMAGES", imageUri.toString()) Log.d(TAG, "handleSendImage " + imageUri) Update UI to reflect image being shared Uri imageUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM) SendIntentContext.dispatchStatusEventAsync("SHARED_TEXT", sharedText) Log.d(TAG, "handleSendText " + sharedText) Update UI to reflect text being shared String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT) Handle other intents, such as being started from the home screen HandleSendMultipleImages(intent) // Handle multiple images being sent HandleSendImage(intent) // Handle single image being sentĮlse if (Intent.ACTION_SEND_MULTIPLE.equals(action) & type != null) HandleSendText(intent) // Handle text being sent If (Intent.ACTION_SEND.equals(action) & type != null) Private AndroidSendIntentContext sendIntentContext = void onCreate (Bundle savedInstanceState) Public static final String TAG = "SendIntentActivity" Public class SendIntentActivity extends Activity First, here is my setup:ĪIR and ANE (Android) app descriptors look the same - inside of the manifest part I have this: So I have tried to implement an ANE to catch up these intents and pass them into my app. If someone knows about a solution there please let me know. Yes, I am aware of the documented solution with the InvokeEvent that is supposed to work but it doesn't work with - the InvokeEvents are dispatched in the app but all arguments are always empty. My goal is to receive text and images in my Adobe AIR app via the "Share" popup on Android. Hoping for help as I am desperately trying to get this to work since two days.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |