Android Question Save Text and picture

MList

Active Member
Licensed User
Hi,
This is more a general question.
I am developping the software for a measuring device.
Now i have got the measured values ( a table with number, date,time,unity.. ) and
a photo where you can mark the position of the measured value.
That works all fine..
Now I want to save a file with both the measured values (text or cvs o whatever) and the Picture?

In what format can i save that file, so the user can use it.. (without forcing him to have word, or pdf reader)

I thought of sending an email with text and photo...
Is there any better possibility?

Thanks a lot
Marion
 

MList

Active Member
Licensed User
1. At the moment the I use a pic the user has taken with camera.
2. Not via App. The user needs the data and pic to do what he wants with it, he may have to send it to others or put it in a document.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
If the text is short, how about adding watermark to the image?
 
Upvote 0

MList

Active Member
Licensed User
If the text is short, how about adding watermark to the image?
Thank you for the idea, but Text is to long, could be up to 100 values. And there should be the possibility to do other things with it...
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
the user will be "forced" to use some kind of software
regardless of how you transmit the text and picture to
her.

the simplest solution for her might be an email with an
attached image.

if you want to combine the text and the picture in 1
file, you need an archiver. the recipient will, likewise,
require an un-archiver to separate the text from the
image. (.zip files is an example of files which have
been archived for one purpose or another).

most computers, regardless of their operating system,
will be able to handle the email + attachment solution. an
un-archiver compatible with the one you use to archive
the files in the first place may have to be downloaded
and installed, depending on the user's system.

if your users don't know how to use word or a pdf reader,
they may well be unfamiliar with an un-archiver (eg, zip).

archiving a number of files before sending them to
someone affords some advantages for the sender and
the recipient. but both need to know how to use it.

since you've already said you don't want users to be forced
to use special sofware, i don't see how you transmit the
text and the image except by e-mail. it's certainly a very
reliable and simple method. even if you archive the files,
you still have to e-mail the archive, and the recipient will
have to un-archive it. you add a level of complexity to a
very simple operation.

if you were sending dozens of files and accompanying text
for each one to individual users, then, for your own sanity,
you would need to consider archiving.
 
Upvote 0

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
You could build an HTML document with the picture as a base-64 encoded in-line image, and your measurements as text. How plain or fancy at that point is up to your CSS skills ;)
 
Upvote 0

MList

Active Member
Licensed User
Thanks a lot for all your answers. I think i will try the email solution, as long as it is only one or two pictures.
Seems the simpliest way for me at the moment.
Other way would be to store the pic and the text seperatly with same name in xui.defaultfolder.. so he can do what he wants with it.
Such a wonderful community ... Thanks ?
 
Upvote 0

Dave O

Well-Known Member
Licensed User
Longtime User
I created a prototyping app which uses pictures (the sketch they draw on the phone) and text (notes they add to it, plus other data). I save/load these as PNG files and a text file (written using WriteMap) in DirInternal.

To share with others, I let them export their prototype as a zip file of HTML (which contains the text and some very simple embedded CSS and JS) and the PNG files. They can then view the prototype in a web browser.

Probably a bit different from what you need, but if you need any sample code for doing any of this, just ask. :)
 
Upvote 0
Top