[TIMOB-7254] Android: Intent - return EXTRA_STREAM data as blob
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-06T17:23:53.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 3.3.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | Android |
Labels | android, core, dr-list, module_android, qe-testadded, regression |
Reporter | Tony Lukasavage |
Assignee | Bill Dawson |
Created | 2012-01-17T10:18:24.000+0000 |
Updated | 2014-06-06T17:23:53.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
console_logs.txt | 2014-05-23T11:32:32.000+0000 | 17508 |
Screenshot_TIMOB-7254.png | 2014-05-23T11:32:32.000+0000 | 272220 |
I'm working on a pull request for this feature now. Just needed to create a corresponding Jira ticket first.
Additional Testing Notes
Here's how to get this to work (the part about the additions to the Android Manifest might be a little confusing). * Create an app with the code Tony put in above. * After you create the app, create a platform/android folder. * Copy build/android/AndroidManifest.xml to platform/android/AndroidManifest.xml. This makes a custom AndroidManifest.xml. * Open platform/android/AndroidManifest.xml. * Find the section for the default activity. It will look like this (though the name might be different in your case):* See that "intent-filter" section? You'll want to make a second one right below it, using the intent-filter Tony provided above. So in my example it will end up looking like:
* Save that file. * Build and install the app on a device/emulator that has some photos in its photo gallery. * Go to the device's photo gallery and long-press a photo, then select "Share" (or "Send" or whatever). * You'll see a list of installed applications that are able to share/send a photo. The app you just created should be listed among them -- choose it. * The app should open and display the photo.
Tested with Nexus One 2.2.2 with 2.1.0.v20120612170248
I'm having a bit of a trouble with this function, I did exactly as followed but my App throws an exception saying Uncaught TypeError: Object #
Reopening this ticket as application is getting crashed on launching. This is a regression . The test app is working fine using 3.2.3.GA build. Configurations used: Mac :10.9.2 Appcelerator Studio, build:3.3.0.201405211748 SDK - 3.3.0.v20140522144936 acs-1.0.14 alloy@1.4.0-alpha3 npm-1.3.2 titanium@3.3.0-alpha5 titanium-code-processor-1.1.1 Xcode :5.1.1 Devices Used: Nexus 4 (4.1.1) Please find attached log (console_logs.txt) and screenshot.
Tried to reproduce but the issues is not reproducible. Followed steps by [~billdawson] & the app does not crash. Selecting the app to share the pic from the gallery shows the shared pic in the app. Environment: Appc Studio : 3.3.0.201405211748 Ti SDK : 3.3.0.v20140523120121 Mac OSX : 10.8.5 Alloy : 1.4.0-alpha4 CLI - 3.3.0-alpha5 Code Processor: 1.1.1 Samsung Galaxy S4 - android 4.2.2 Sony Xperia - android 2.3.7 Samsung S3 - android 4.0.4
[~dpandey] We are unable to reproduce. Can you attempt?
Closing the issue since it is not reproducible. Followed steps by Bill Dawson & the app does not crash. Selecting the app to share the pic from the gallery shows the shared pic in the app. But on importing and using the app from titanium_mobile_tests_internal/FeatureTest/Android/TIMOB-7254 app crashes.Hence test app needs modification. Verified with Environment: Appc-Studio:3.3.0.201405271647 sdk:3.3.0.v20140602174112 acs:1.0.14 alloy:1.4.0-beta npm:1.3.2 titanium:3.3.0-beta2 titanium-code-processor:1.1.1 xcode:5.1.1 Device:Nexus7(v4.4.2) OS:Maverick(10.9.2) Hence closing the issue.
Modifications made to the test app & pushed to repo.