Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong image is displayed #140

Open
dirtygardner opened this issue May 13, 2019 · 4 comments
Open

Wrong image is displayed #140

dirtygardner opened this issue May 13, 2019 · 4 comments

Comments

@dirtygardner
Copy link

Simple-Draw_4.3.1
[open fileX.png; delete fileX.png; create fileX.png with same path; open fileX.png; 2nd to last fileX.png image is displayed instead of last]

@tibbi
Copy link
Contributor

tibbi commented May 13, 2019

that is an ancient app version, update it please. Ideally get the Pro one from https://play.google.com/store/apps/details?id=com.simplemobiletools.draw.pro

@tibbi tibbi closed this as completed May 13, 2019
@dirtygardner
Copy link
Author

Error also occurs in Simple-Draw_6.0.3

@tibbi tibbi reopened this May 13, 2019
@dirtygardner
Copy link
Author

dirtygardner commented May 13, 2019

Another way to reach error is [download fileX.png; delete fileX.png; download fileX.png with different data from first and with same filename∧path; open fileX.png with SimpleDraw_6.0.3; previous fileX.png data is displayed instead of current]

@k3b
Copy link

k3b commented Sep 21, 2019

I have the same problem with simple Draw v 6.0.5

Opens wrong (=previous) image with android.intent.action.SEND when content has changed and content-uri remains same


In order to document android apps I am using

  • Screenshot Assistant to take screenshots on the device
  • send them via action SEND to simple-draw to draw arrows onto the image
  • and then store the image as a file.

Unfortunately "Screenshot Assistant" always uses the same content uri content://de.beatbrot.screenshotassistant.fileprovider/screenshots/scr_cropped.jpg for each screenshot and simple-draw assumes that same content-uri means same content

As a consequence: If you take a second screenshot and sent it again to simple draw it currently opens the first screenshot and not the new screenshot.

To Reproduce:

  • Take a screenshot and send it to simple-draw. (all is working as expected)
  • Change a the screen (i.e. open a different app), take a screenshot and send it to simple-draw.
    • you see the first screenshot and not the new.

As a current workaround: i send the new screenshot first to
Scrambled Exif
that re-sends the image with a new randomized content-uri to simple-draw


Background info:

"Screenshot Assistant" uses this intent to send the screenshot

intent:#Intent;action=android.intent.action.SEND;type=image/jpeg;launchFlags=0x1b080000;end

ACTION: android.intent.action.SEND
MIME: image/jpeg
URI: intent:#Intent;action=android.intent.action.SEND;type=image/jpeg;launchFlags=0x1b080000;end
FLAGS:
FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
FLAG_ACTIVITY_PREVIOUS_IS_TOP
FLAG_RECEIVER_FOREGROUND
EXTRAS:
1 Typ: android.net.Uri$HierarchicalUri
Key: android.intent.extra.STREAM
Wert: content://de.beatbrot.screenshotassistant.fileprovider/screenshots/scr_cropped.jpg


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants