When I click on an image in an email I’m presented with a list of apps to open the file with. Is it possible for an app written in Corona to register itself with various file types as a possible opener? I know how to do it in native Android and iOS but it’s unclear to me that it can be done in Corona. Thoughts?
Thanks,
Jeremy [import]uid: 161992 topic_id: 36979 reply_id: 336979[/import]
Hi Jeremy,
I believe this is what you’re looking for? At least on the iOS side in Corona…
http://www.coronalabs.com/blog/2013/02/05/ios-tutorial-using-email-attachments/
Best regards,
Brent Sorrentino [import]uid: 200026 topic_id: 36979 reply_id: 145212[/import]
I appreciate the quick reply Brent. That does appear to be what I’m looking for. However, the point of using Corona (at least for me) is to be have similar functionality on both iOS and Android devices. Is there an equivalent way to manipulate the build.settings file to add intents on the Android side?
Thanks. [import]uid: 161992 topic_id: 36979 reply_id: 145219[/import]
Hi Jeremy,
I believe this is what you’re looking for? At least on the iOS side in Corona…
http://www.coronalabs.com/blog/2013/02/05/ios-tutorial-using-email-attachments/
Best regards,
Brent Sorrentino [import]uid: 200026 topic_id: 36979 reply_id: 145212[/import]
I appreciate the quick reply Brent. That does appear to be what I’m looking for. However, the point of using Corona (at least for me) is to be have similar functionality on both iOS and Android devices. Is there an equivalent way to manipulate the build.settings file to add intents on the Android side?
Thanks. [import]uid: 161992 topic_id: 36979 reply_id: 145219[/import]
Hi Jeremy,
I believe this is what you’re looking for? At least on the iOS side in Corona…
http://www.coronalabs.com/blog/2013/02/05/ios-tutorial-using-email-attachments/
Best regards,
Brent Sorrentino [import]uid: 200026 topic_id: 36979 reply_id: 145212[/import]
I appreciate the quick reply Brent. That does appear to be what I’m looking for. However, the point of using Corona (at least for me) is to be have similar functionality on both iOS and Android devices. Is there an equivalent way to manipulate the build.settings file to add intents on the Android side?
Thanks. [import]uid: 161992 topic_id: 36979 reply_id: 145219[/import]
Hi Jeremy,
At this time, on Android, this is only possible via Corona Enterprise. Since you understand how this is done natively, I’m probably typing what you already know: it would require creating an Android intent-filter in the “AndroidManifest.xml” file, which would cause the Corona app to be launched by another app via an Android intent. If that intent contains URLs to local files (such as attachments), then that would require usage of Android ContentProviders which are complicated enough that they really need to be code in Java at the moment.
Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 36979 reply_id: 145319[/import]
Thanks. That’s what I needed to know. [import]uid: 161992 topic_id: 36979 reply_id: 145323[/import]
Hi Jeremy,
I believe this is what you’re looking for? At least on the iOS side in Corona…
http://www.coronalabs.com/blog/2013/02/05/ios-tutorial-using-email-attachments/
Best regards,
Brent Sorrentino [import]uid: 200026 topic_id: 36979 reply_id: 145212[/import]
I appreciate the quick reply Brent. That does appear to be what I’m looking for. However, the point of using Corona (at least for me) is to be have similar functionality on both iOS and Android devices. Is there an equivalent way to manipulate the build.settings file to add intents on the Android side?
Thanks. [import]uid: 161992 topic_id: 36979 reply_id: 145219[/import]
Hi Jeremy,
At this time, on Android, this is only possible via Corona Enterprise. Since you understand how this is done natively, I’m probably typing what you already know: it would require creating an Android intent-filter in the “AndroidManifest.xml” file, which would cause the Corona app to be launched by another app via an Android intent. If that intent contains URLs to local files (such as attachments), then that would require usage of Android ContentProviders which are complicated enough that they really need to be code in Java at the moment.
Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 36979 reply_id: 145319[/import]
Thanks. That’s what I needed to know. [import]uid: 161992 topic_id: 36979 reply_id: 145323[/import]