Share Last Photo through Messaging App

Emoheadshot

New member
Hello! I am trying to see if something is possible, and if so could someine help me achieve it! I have posted on Reddit, and in mutiple MacroDroid groups and no one will help me one way or another, so maybe just maybe someone will tell me how, or if not explain why I can't. Because so far I've gotten ignored or "You can't" without any explanation as to why.


Firstly my end goal is to use the Share Last Photo via intent action to send it through the messaging app.


I made a macro that generates an RGB Hex value and then does an http pull and saves the colour as a PNG file on my phone, I'm trying to use the share last photo via intent to also share this picture with my girlfriend so she's involved.


I don't know much about intents as they confuse me, but from what I see you can send a text message via intent, and if we have the ability to share the last photo on our device via intent, I don't see why it isn't possible to combine the two! If I'm wrong please explain to me so I don't feel dumb!


Thanks in advance!
 

Pseudocyclic

Well-known member
Just an observation - you can't invent your own custom intent interactions, they have to match whatever the target app is expecting. In other words, you can only use them to interact with the target app in whatever ways (if any) are already supported by the target app.

NB I am not an expert on these things, this is just my layman's explanation of my layman's understanding of the situation.
 

Dm114

Well-known member
Just an observation - you can't invent your own custom intent interactions, they have to match whatever the target app is expecting. In other words, you can only use them to interact with the target app in whatever ways (if any) are already supported by the target app.

NB I am not an expert on these things, this is just my layman's explanation of my layman's understanding of the situation.
Your explanation is clear and 100% correct! Of course you're not a layman: you've been working regularly and effectively for years to help MD users... 😉🙂
 

MacroDroidDev

Administrator
Staff member
Firstly, what messaging app are you talking about?

As described by @Pseudocyclic it depends on what any given app supports in terms of Intents. If you are prepared to use a series of UI Interaction actions to fake key presses then you should be able to share via whatever app you like as long as you can cope with the limitations such as your screen must be on and unlocked and you shouldn't interact with the phone while the automations are in progress.
 

Emoheadshot

New member
Firstly, what messaging app are you talking about?

As described by @Pseudocyclic it depends on what any given app supports in terms of Intents. If you are prepared to use a series of UI Interaction actions to fake key presses then you should be able to share via whatever app you like as long as you can cope with the limitations such as your screen must be on and unlocked and you shouldn't interact with the phone while the automations are in progress.
Just the default Messaging app through MMS is what I'm trying to achieve
I don't want to have any interaction or have it interfere in anyway
My macro runs everyday at 3pm and sometimes I'm using my device and sometimes not, I just wanted to have it automatically send the photo when it saves as apart of the macro
If it's unattainable it's okay, I just have to remember to send it haha i just tend to forget
 
Top