[APP]AutoShare: automate Android Share/Camera to mail, http, sftp, Dropbox, Box

Search This thread

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
I made a little app to help me avoid typing and extra efford when using the Android "share" function or taking pictures (everyone knows from G+ app now). Also you can share stuff while offline (like I do in the train very often). Maybe you also find it useful.

This app sends shared content to email, http, (s)ftp, Dropbox or Box without further user interaction (after one time initial setup). No more gmail window popping up waiting to be filled! Helpful if you like me often send web links to yourself for later reading. Or pictures to your website. And so on.

https://market.android.com/details?id=com.dngames.autoshare

Let me know of any problems so I can repair them.

Featured on xda tv some time ago!
http://youtu.be/5kZ2UkxJGuE

Updates:

Version 2.01: email errors, no longer try to send empty intents
Version 2.0: Profiles, ICS support, Email Subject Prefix
Version 1.36: Dropbox web authentication method, Intent Sharing added for custom solutions (your/other apps, ...)
Version 1.34: Box support added
Version 1.31: http post repaired
Version 1.25: SFTP upload added
Version 1.2: Dropbox upload added
Version 1.1: now with delayed upload if no connection or new wifi only mode
Version 1.03: repaired sdcard file upload (any type of file now ok)
Version 1.02: adds optional (enable in system settings) instant photo upload
 

Attachments

  • screenshot.jpg
    screenshot.jpg
    16 KB · Views: 650
  • screenshot_de.png
    screenshot_de.png
    24.6 KB · Views: 633
Last edited:

Sine.

Senior Member
Jan 5, 2011
623
391
😁
Seems really really neat! :D
Especially the http & ftp options, I'll come back when I would had time to test it, but I'm already thinking about great possibilities it has!
 

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
Thank you all for your positive comments.

One issue I noticed myself this morning when sending something in the subway with unstable internet connection: I will have to add retries for sending when connection is back instead of displaying an error and loosing the share. Planned for the next update.
 
  • Like
Reactions: Sine.

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
A great idea, but sadly all I get are error messages when trying to send via both FTP and email.

Is it possible for you to tell me which error messages/codes (log file messages would be even better!) you get? I see only few reasons why this could fail: no internet access, some kind of firewall blocking email+ftp ports or wrong account settings.
 
Dec 6, 2008
5
0
Stuttgart
great app. does all necessary things.
one additional feature I would like to see: multiple profiles. so e.g. 1 for public images which are sent by ftp and one for private things which uses http. add multiple profiles and select on sending. would be great.
 

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
one additional feature I would like to see: multiple profiles. so e.g. 1 for public images which are sent by ftp and one for private things which uses http. add multiple profiles and select on sending. would be great.

I would like that too (for different email adresses in my case). So I will add that - but I cannot promise when. Profile selection popup will be available as an optional setting so with only one target it can stay fast.
 

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
version 1.02

Does not yet add different profiles :(

But I wanted to have the instant photo upload capability from the google plus app BUT to my own server/email! So I added that.

Also I reworked things internally and moved uploading into a service which will enable me to also set notifications later and do retried uploaded when no internet connection can be made.
 

Kiss999

Senior Member
Aug 13, 2010
50
2
Vienna
@_miha_ - any hints ? i want to use autoshare with email and use my gmail email but all i receive is "email not send error"

Destination email was also an gmail but also an from my ISP but non is working.
 

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
Hi Kiss999,
if it is possible for you to sent me a logfile (or at least the lines following the error message from AutoShare "Could not send email" in the log) I will be able to see which exception happened during the mailing. This would be most helpful for me!

You can grab a log with an app like alogcat after sending an email with Autoshare and seeing the error message.

Generally I can only see few things going wrong:
Email/Server address typos (but I think not in your case - googlemail instead of google required?).
Some kind of Firewall disabling usage of the email port either installed on the phone, your wlan or provider?
Connection problems can be a problem as the app at the moment does not repeat a send if not successfull.

Did you try the other methods too (ftp, http) - ftp gives an error code in the displayed message which will help me (if you are not able to send me a logfile).

Thanks for you help,
Michael
 

Kiss999

Senior Member
Aug 13, 2010
50
2
Vienna
Hallo _miha_,

here the part i see at alogcat releated to Autoshare:
Code:
07-25 15:41:41.784 E/AutoShare(32471): Could not send email
07-25 15:41:41.784 E/AutoShare(32471): a.a.c.w
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.z.<init>(ContentType.java:96)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.c.f(MimeBodyPart.java:1291)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.c.updateHeaders(MimeBodyPart.java:1030)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.a.updateHeaders(MimeMultipart.java:416)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.c.f(MimeBodyPart.java:1307)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.t.updateHeaders(MimeMessage.java:2074)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.c.t.saveChanges(MimeMessage.java:2042)
07-25 15:41:41.784 E/AutoShare(32471): at a.a.ae.send(Transport.java:117)
07-25 15:41:41.784 E/AutoShare(32471): at com.dngames.autoshare.f.a(Mail.java:110)
07-25 15:41:41.784 E/AutoShare(32471): at com.dngames.autoshare.c.a(UploadService.java:382)
07-25 15:41:41.784 E/AutoShare(32471): at com.dngames.autoshare.c.doInBackground(UploadService.java:319)
07-25 15:41:41.784 E/AutoShare(32471): at android.os.AsyncTask$2.call(AsyncTask.java:185)
07-25 15:41:41.784 E/AutoShare(32471): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
07-25 15:41:41.784 E/AutoShare(32471): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
07-25 15:41:41.784 E/AutoShare(32471): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
07-25 15:41:41.784 E/AutoShare(32471): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
07-25 15:41:41.784 E/AutoShare(32471): at java.lang.Thread.run(Thread.java:1027)
I dont have an http or ftp server running so i only use email inside Autoshare and i use a gmail acc and also use the default mailserver settings from your tool and compared the port and server with my Thundermail on the PC.

I realy dont know whats went wrong, all i did is select autoshare and than the picture and i receive this "email - not send error" msg. When i use Gmail at the share windows it works.
 

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
Thanks for the log,
can I bother you to try one more thing? Open the browser hold touch on the address line and share it with autoshare. Does it work? Or did you already try to share non-picture contents? Is it the same error log?

If you know: What image file format and size is your picture? It is possible I only allowed jpeg (I should give better error messages then!).

Thanks for your help,
Michael
 

Kiss999

Senior Member
Aug 13, 2010
50
2
Vienna
Hallo, yes this worls, the pics i want to send with autoshare are most from ShootMe so the are "png" and explane me a lot now :)

Filesize is 50 - 500k from an screenshot.

Edit: I changed now inside ShootMe to jpg but i receive the same error.

Edit2: tested it now at an diff phone with the same result.
 
Last edited:

_miha_

Senior Member
May 5, 2010
278
161
Hamburg
I am working on a fix and will try ShootMe myself. I do not have much time at the moment but hope to finish this tomorrow - I only tried taking photos with the camera until now but pngs should not be a problem (any kind of data should work!).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    I made a little app to help me avoid typing and extra efford when using the Android "share" function or taking pictures (everyone knows from G+ app now). Also you can share stuff while offline (like I do in the train very often). Maybe you also find it useful.

    This app sends shared content to email, http, (s)ftp, Dropbox or Box without further user interaction (after one time initial setup). No more gmail window popping up waiting to be filled! Helpful if you like me often send web links to yourself for later reading. Or pictures to your website. And so on.

    https://market.android.com/details?id=com.dngames.autoshare

    Let me know of any problems so I can repair them.

    Featured on xda tv some time ago!
    http://youtu.be/5kZ2UkxJGuE

    Updates:

    Version 2.01: email errors, no longer try to send empty intents
    Version 2.0: Profiles, ICS support, Email Subject Prefix
    Version 1.36: Dropbox web authentication method, Intent Sharing added for custom solutions (your/other apps, ...)
    Version 1.34: Box support added
    Version 1.31: http post repaired
    Version 1.25: SFTP upload added
    Version 1.2: Dropbox upload added
    Version 1.1: now with delayed upload if no connection or new wifi only mode
    Version 1.03: repaired sdcard file upload (any type of file now ok)
    Version 1.02: adds optional (enable in system settings) instant photo upload
    1
    Thank you all for your positive comments.

    One issue I noticed myself this morning when sending something in the subway with unstable internet connection: I will have to add retries for sending when connection is back instead of displaying an error and loosing the share. Planned for the next update.
    1
    Thank you!

    ... allowing for multiple ...
    Anyway it may already be there and I just don't understand it.

    Multiple profiles are promised but I did not yet find the time to change the app for that, sorry. I want them myself and will add them - but I do not know when ...
    1
    i keep getting error 2 when uploading to dropbox. do u have any idea?
    I think the directory you specified is wrong. Is it working with the default? There might be a more helpful message in the logcat but you can try to change the the directory or/and add some / ...


    @Menthix: I will add that - just can not promise when (but you worked everything out so I just have to find out how to copy to clipboard :)
    1
    Test version

    If someone wants to try (and please report bugs) a new version with profile functionality - here it is!

    You can now have multiple profiles which can each share to the available methods.

    So I have a profile to send to myself, one to my wife, one to ftp and so on. Profile can be selected in the app or right after selecting AutoShare to share. Automatic picture uploading uses the current selected profile. Maybe I should change this to a special profile. German translation for the new stuff is missing.