I had made a request a while back for a function to extract image metadata (EXIF) so I could rename my jpg files inside my phone and upload them to a ftp server. Since the function has not yet been implemented I used a complicated workaround.
First I created a standalone application in tasker (with app factory) that reads the metadata from the jpg (accessing a native java function) and stores the exif info in the clipboard which is then read by automagic and the processing continues from there. The standalone app receives the file name also through the clipboard.
now my question - is it possible to make the process more reliable and use something like intents to pass data around ? I'm now using a 2 seconds delay to make sure that the clipboard gets read\written correctly.
Of course if automagic implements native java functions from android would be great and I could forget about tasker altogether.
Thanks
Image attributes (EXIF DATA)
Moderator: Martin
Re: Image attributes (EXIF DATA)
Hi,
You can use broadcast intents to send data between different apps like Tasker and Automagic. In Automagic you can use trigger General Broadcast to receive a broadcast and use action Send Broadcast to send an intent as a broadcast. Tasker most likely contains similar components.
Why don't you write a plugin? It's a bit more complex but the result will be more reliable, performs much better and would allow to use a library to extract more data.
Regards,
Martin
You can use broadcast intents to send data between different apps like Tasker and Automagic. In Automagic you can use trigger General Broadcast to receive a broadcast and use action Send Broadcast to send an intent as a broadcast. Tasker most likely contains similar components.
Why don't you write a plugin? It's a bit more complex but the result will be more reliable, performs much better and would allow to use a library to extract more data.
Regards,
Martin
Re: Image attributes (EXIF DATA)
That would be ideal, but I have no idea where to start. I have no java programming experience let alone android specific.
Re: Image attributes (EXIF DATA)
It's quite challenging to get started in Android development, especially if you don't have any experience in Java, but Google offers some tutorials if you are interested: https://developer.android.com/training/ ... index.html