yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Kiss999:
Thx for V 1.03, now i can send it when i go via my filebrowser to the folder on the SDcard. (tested with png and jpg) but when i select the picture from the galery (HTC Album) i still receive this "email not send error"

Edit: Can you tell me if its possible to use http on an diff port than 80 with your tool ? I tested it now with Abyss Web Server and php is installed but i cant run it on port 80 so i used an url like this in the config from Autoshare http://dyndnsname:port/folder/share.php but i receive this msg - "something went wrong with the http post".

the share.php is the one from the example inside Autoshare and i used the part starting at "<?php" and right not there isnt any login at the www server so user/pwd is empty.
[Android Apps and Games] _miha_:
I have the same problem now - so I will be able to fix it with the next update. Thanks for testing :)

I will try that later and hope to be able to add a port entry field. If you again have a log of this it may also help.
[Android Apps and Games] Kiss999:
Here the part from the log. (at last i hope so, as thats the only part with autoshare in it)

07-28 11:25:38.951 V/AutoShare(28298): onHandleIntent() Intent { cmp=com.dngames.autoshare/.UploadService (has extras) }
07-28 11:25:38.951 V/AutoShare(28298): sharemail false
07-28 11:25:38.961 W/System.err(28298): java.lang.IllegalArgumentException: MIME type may not be null
07-28 11:25:38.961 W/System.err(28298): at org.apache.http.entity.mime.content.AbstractContentBody.<init>(AbstractContentBody.java:54)
07-28 11:25:38.961 W/System.err(28298): at org.apache.http.entity.mime.content.InputStreamBody.<init>(InputStreamBody.java:49)
07-28 11:25:38.961 W/System.err(28298): at com.dngames.autoshare.UploadService.onHandleIntent(UploadService.java:82)
07-28 11:25:38.961 W/System.err(28298): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
07-28 11:25:38.961 W/System.err(28298): at android.os.Handler.dispatchMessage(Handler.java:99)
07-28 11:25:38.961 W/System.err(28298): at android.os.Looper.loop(Looper.java:143)
07-28 11:25:38.961 W/System.err(28298): at android.os.HandlerThread.run(HandlerThread.java:60)
[Android Apps and Games] _miha_:
version 1.04

Just a quick try to fix the gallery upload with email. Http and ftp not tested :)
[Android Apps and Games] Kiss999:
Upload via gallery works now, thx again. http didnt for me but maybe thats a port problem as i cant test it on port 80.
[Android Apps and Games] _miha_:
version 1.1

When no connection is active or the new WIFI only setting is selected (and not connected to WIFI) the upload now will be delayed. So you can share offline and everything will "sync" later automatically.

Please let me know all the bugs (as I write this I think I did not test deleting the shared content before going online again).

As a temporary solution for users needing to switch "profiles" you can now select to have one more step and configure the app every time you share. This is not nice but works ...

I have been unable to test other http ports yet (it should work if specified in the server address but seems not to).
[Android Apps and Games] conan_troutman:
Hi ..love the app... Two problems ... Can't get email to work ... Files get over ridden on ftp ... Can you add option to ammend filename with upload date ... Cheers
[Android Apps and Games] conan_troutman:
I have the email working now ... I too have a gmail account .. I changed my email from @gmail.com to @googlemail.com and it worked
[Android Apps and Games] _miha_:
Good to hear you got email working.

I do not understand this. Files are uploaded with their filename (for example from sdcard). Text/Links get a generated filename containing date/time. Or do you want to upload a file with the same name again and again (then it will be overwritten)? But yes, I can add a setting to change filenames/add date.
[Android Apps and Games] conan_troutman:
If I take a picture with my phone its image001 I upload it to ftp delete image from phone ... Tske another pic its called image001 ... See my problem

Adding the option to add date n time would stop the problem ... Cheers
[Android Apps and Games] _miha_:
Dropbox upload added with version 1.21

Some users really wanted Dropbox to be added. Here it is!

I already know the add date and time to filename setting is not working for Dropbox ... Please let me know if something else is not working.

I also changed the behaviour of my "until profiles are ready"-hack solution. Now a second "share context menu" entry is available which opens the settings before sharing something. This can be disabled in the System Settings (change requires reboot).
[Android Apps and Games] _miha_:
1.22 fixes Dropbox datetime add

And deletes temporary files after Dropbox upload ...
[Android Apps and Games] GregorVe:
photo auto email

Found this app after long search, is exactly what I looked for.

I want to email photos immediately but that part does not work for me.

Selecting AutoShare from the Gallery works fine, but when I take a photo then a popup says: 'email', then: 'email not sent error'.

I suspect that it expects the picture in a different folder ?

On my Galaxy I9000 the folder is /mnt/sdcard/DCIM/Camera/ and there is a link to sdcard (in root). Picture name or format cannot be the problem, because it works, when I select AutoShare from the Gallery.

Thanks,

Gregor
[Android Apps and Games] _miha_:
Picture path is given to AutoShare from Android (Camera) so it should be correct. I suspect the image is not finished writing when AutoShare is trying to read.

What I do not understand is why email is not tried again later (you should be flooded with autoshare email messages now ;) Also the error message should be "Email not sent error. Trying again.".

Is it possible that you do not use the latest version? Is it possible for you to send me a logfile (as generated by an app like aLogCat) after taking a picture and seeing the email not sent error? It is possible I can see the error there.
[Android Apps and Games] GregorVe:
Oh, I forgot this - yes it is trying later (in different) intervalls, still without success. I am using version 1.2.2.
[Android Apps and Games] _miha_:
(Edited this in the post above:)

Is it possible for you to send me a logfile (as generated by an app like aLogCat) after taking a picture and seeing the email not sent error? It is possible I can see the error there.
[Android Apps and Games] GregorVe:
yes, but I need some help. I can access the phone with WINSCP. Where do I find the required logs / something special to do to create them ?

In autosharesettings.xml I see (after creating 2 pictures):

<int name="stored" value="2" />

<string name="stream1">content://media/external/images/media/437</string>

<string name="stream0">content://media/external/images/media/436</string>

I am wondering about the path '//media/external/images/media/' because it does not exist in my device.
[Android Apps and Games] _miha_:
Path looks ok. That is not a filesystem path and will point to sdcard. To send the logfile you only need to install aLogCat and can email from that app.
[Android Apps and Games] _miha_:
I need your phone for an hour ;) So the path is NOT pointing to sdcard ... I will investigate this tonight. Thank you for the log!

Michael
[Android Apps and Games] GregorVe:
Perhaps I can create a link (where should it be, to where shoud it point)?

My sdcard (internal) is in /mnt/sdcard and there is a link sdcard in root.

My externbal SDCard is in mnt/emmc and there is a link emmc in root (CyanogenMod)

Thanks

Gregor
[Android Apps and Games] _miha_:
version 1.23 fixes the New Photo auto sharing

It is fixed now in my tests - I will improve the handling of the errors with the next update (hopefully soon).
[Android Apps and Games] GregorVe:
fixed

Yes, fix confirmed.

Thanks,

Gregor

(just needed to delete old entries in the autoshareconfig)
[Android Apps and Games] ipgenie:
Remove files on successful ftp transfer

Any chance you could add the option to remove the picture from the sd card once the picture has successfully uploaded to the ftp site? This would be a great help for me and my family, no more worries about the card filling up with pictures and sorting them out is much easier on the pc.
[Android Apps and Games] c00ller:
Hi _miha_, thanks for this app :)

One request, for "Share new" enabled, could we have it share new pictures only from specific folders we can set? For example, I only want screenshots automatically uploaded to my Dropbox as soon as I take them.
[Android Apps and Games] Marx2:
would like to see an option to share via Picasa
[Android Apps and Games] _miha_:
At the moment I am working on SFTP. Already looked into picasa as I use it myself for some pictures but it is a little more work ... it is on my list but I do not know when.

A possible quick solution you can do yourself if you have your own server with php (and use AutoShare http upload) is here:

http://www.ibm.com/developerworks/library/x-picasalbum/ (listing 6/7/8 show the idea/code of the picasa post you have to somehow add to your AutoShare php)
[Android Apps and Games] ipgenie:
SFTP

I'm excited for the SFTP option, that will be much better than using FTP.

This is a really great app :)
[Android Apps and Games] _miha_:
Version 1.25

It is in the FTP settings now. I had only my own server for testing so please let me know (and send logfiles if possible) if something is not working!
[Android Apps and Games] quentinc:
Excellent apps!!!

Your soft is realy cool. I tried to make it works on my webside site which is ASP based.

Could you provide me the variables sent to the destination webpage (filename, username and password)? Unfortunately, I can send a picture from your apps to my html page, and I can see the file in my destination folder, but the file is named "XXX.tmp" and I am not able to rename it.

Thanks a lot !

Quentin
[Android Apps and Games] _miha_:
Hi, I have no experience with ASP but if the file gets uploaded (although with a temporary name) I think the most difficult part is already working :)

Maybe you do not have write permissions in the folder at the moment?
[Android Apps and Games] John_Edward:
I'm having two problems with this otherwise excellent app:

1) I can't seem to share .epub files from es filemanager.

it just pops up "ftp", "ftp null; something went wrong! trying again"

2) when it does that, it starts doing it all the time.

change orientation, trying again.

answer a call, trying again.

reboot, trying again.

the only thing that stops it is wiping app data and putting all settings again.

it sometimes happens when i share something and my phone changes from 3g to wifi in the middle of the transfer.
[Android Apps and Games] _miha_:
Since the last update in the system settings there is an entry (third from below I think) to reset the failed shares. That should clear these stored zombies. This is not really a solution for your problem but fixes the repeated messages (and tries) if someting happened.
[Android Apps and Games] nanoymaster:
anyone got the HTTP upload to work

when debugging even $_FILES["userfile"]["tmp_name"] is empty

$myFile = "testFile.txt";
$fh = fopen($myFile, 'w');

$arr = $_REQUEST;
foreach($arr as $key => $value){
fwrite($fh, $key." - ".$value."\n");
}

$arr = multiple($_FILES);
foreach($arr as $key => $value){
fwrite($fh, $key." - ".$value."\n");
}
fclose($fh);

function multiple(array $_files, $top = TRUE)
{
$files = array();
foreach($_files as $name=>$file){
if($top) $sub_name = $file['name'];
else $sub_name = $name;

if(is_array($sub_name)){
foreach(array_keys($sub_name) as $key){
$files[$name][$key] = array(
'name' => $file['name'][$key],
'type' => $file['type'][$key],
'tmp_name' => $file['tmp_name'][$key],
'error' => $file['error'][$key],
'size' => $file['size'][$key],
);
$files[$name] = multiple($files[$name], FALSE);
}
}else{
$files[$name] = $file;
}
}
return $files;
}

returns a blank textfile (it is populated correctly is submitted from a different website)

as you can send back any response and it will appear in the toast notification
[Android Apps and Games] Mittaa:
600 MB additional free storage :)

Hi all

Just found a smart way to increase your Dropbox account with 600 MB:

1 Sign into your existing Dropbox account (or create a new account)

2 Goto https://www.dropbox.com/free

3 Follow instructions ... and voila 600 MB additional free storage :)
[Android Apps and Games] rogerski1:
Nice work!! Exactly what I was looking for!
[Android Apps and Games] choppacity:
Been needing something like this!! have to take pics and email to my jobs office all the time. thanks
[Android Apps and Games] _miha_:
Version 1.3

There has been a bug (with larger files than the small buffer size) which is now repaired with the latest update.
[Android Apps and Games] EinfahrtFan:
Hi, and first of all thanks for the great idea for this app.

There seems to be a bug on the httppost bit. I put the sample php on a apache2 and am able to share and use everything as designed. After adding a http basic auth to the server is am unable to httppost with your app. Nothing wrong with the server part, as accessing with a browser as well as curl works fine. The only message I get when entering a username and password in your apps httppost section is a toast, telling me "something went wrong, trying again". After looking into what is sent to the server with tcpdump, I found that your app is not transmitting the authentication information in the header and thus encounters a 401.

Also, a little idea for an improvement : instead of a toast, confirming success or error, a notification in the top bar would be helpful, as one can easily overlook that toast after waiting for some minutes of file transfer in the background.

Thanks in advance!
[Android Apps and Games] _miha_:
I will have a look what I forgot there :)

And I am already adding notifications as an alternative to the toasts - I like the idea, too!
[Android Apps and Games] dtrud0h:
multiple ftp profiles?

This is a great app., wondering if it is possible to have the tabs at the top for multiple flexible profiles perhaps with a dropdown to select which type of profile to create? For instance, select tab, choose from profiles allowing for multiple of the same type ie;ftp1 goes to this server this folder,->ftp2 goes to same server different folder, ->ftp3 goes to different server some folder, or select profile type http with one server and path then make another http to different server.

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

Thanks for a great app
[Android Apps and Games] _miha_:
Thank you!

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 ...
[Android Apps and Games] _miha_:
version 1.34 adds support for Box

BUT in this version only to root dir. I will improve that.

http://box.com/
[Android Apps and Games] famewolf:
Thank you for adding box support...with their offer of 50GB to users it's suddenly become more useful to me then dropbox for uploads.
[Android Apps and Games] juangake:
Hey just wanted to stop by to say it your app works like a charm using httppost with both Basic and Digest authentication on my tests :)

Just missed some info on the app that says they're both supported, since I tested the app to see if they were ;) I guess thanks to the Apache-HttpClient that appears as user-agent, etc.

I would also suggest that, since Basic authentication is supported (password sent just plain over the network), adding an optional [x] Send login and password as post fields would be useful too for those using a more custom authentication.

I'll try SSL in a few days :)

Regards,

Juan
[Android Apps and Games] Menthix:
Very useful app, thank you. I'd like to see an option to automatically copy the URL of the uploaded file to the clipboard.

In the past I used an Imgur client to quickly upload screenshots from my phone and it would automatically copy the URL. However, I prefer to use my own hosting (FTP). I imagine it could be useful for more than just sharing screenshots. Quickly upload any kind of file and share the URL in SMS/MMS/IM/Emails/etc straight from the phone.

People can upload to multiple services but it is generally only useful to copy a single URL. How FTP relates to an URL can differ too. I would suggest keeping it simple and just have a 'Copy URL to clipboard' checkbox and 'URL format' setting under System. Users could then set the URL format to whatever they like:

http://example.com/<FILE>
https://example.com/something/more/<FILE>
http://dl.dropbox.com/u/1337/Some%20folder/<FILE>
http://example.com/myscript?file=<FILE>&dosomethingfancy=1
[url=http://example.com/<FILE>]Look at the file I just uploaded :p[/url]

Or even get crazy and copy multiple URLs for the different services at once:

Dropbox mirror: http://dl.dropbox.com/u/1337/Some%20folder/<FILE> FTP Mirror: https://example.com/something/more/<FILE>

As long as you replace any occurrence of <FILE> with the proper filename everyone should be happy. The only potential issue I see is when someone uploads to multiple services, one without date and time and another one with the date and time attached. Should date and time be included in <FILE> in that case? Perhaps keep it all up to the user and have a <DATEANDTIME> tag for URL Format too. If you want to be really user friendly you probably could include a bunch of predefined URL Formats, but you would still need an option to enter a custom format to make it work in all situations. I suspect most people who install this are power user enough to deal with entering a custom format themselves. The URL should probably not be copied when it is an delayed or automatic share though.
[Android Apps and Games] iu1nguoi:
i keep getting error 2 when uploading to dropbox. do u have any idea?
[Android Apps and Games] _miha_:
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 :)
[Android Apps and Games] iu1nguoi:
still the same. can u give an example of a proper directory?
[Android Apps and Games] _miha_:
/

That is what I am using as directory. Are you sure the login has been ok?
[Android Apps and Games] iu1nguoi:
yes. the toast notification shows "logged in" then error 2. i tried box and it worked
[Android Apps and Games] michaelmuller:
Hi. I am new to the Android, and am posting this for a friend.

Can this app work in conjunction with another app that will take a photo at regular intervals, or can it trigger a photo to be taken at a regular interval? Would love to use it to auto-FTP a photo once an hour. That would solve all my worldly problems. :)

Thanks!
[Android Apps and Games] _miha_:
Have a look at MobileWebCam here http://xdaforums.com/showthread.php?t=950933. It is another app I made for exactly that purpose and might be what he is looking for.
[Android Apps and Games] Lisali:
Fantastic, smart app! A million thanks!
[Android Apps and Games] seis6seis:
WebDav

Hello,

It is a fantastic application, I would like to add support WebDav.
[Android Apps and Games] aldogazza:
auto share

Excuse for my english. Is possible change directory( no camera )in auto share but another directory for automatic upload?

thanks.
[Android Apps and Games] _miha_:
After a long time a little update to version 1.36

Sorry, still no substantial update (for example with accounts or multiple folders/emails/...) but as Android still not fully offers a one-click share to email I still use the app as it is.

I had to change to the new Dropbox web authentication method.

Also a new share method 'Intent' is added. If you know what an 'Intent' is you might find it useful, if not - ignore it :)
[Android Apps and Games] _miha_:
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.
[Android Apps and Games] _miha_:
Version 2.01

Has a little more helpful error messages for email and drops empty shares instead of trying to send again and again.
[Android Apps and Games] dtrud0h:
_miha,

Can you give a brief explanation of "intent" as it's used in Auto Share?
[Android Apps and Games] _miha_:
I think the android developers can do better :)

http://developer.android.com/reference/android/content/Intent.html

This is what I do: Very simple. Just starts another activity which then can do with the data whatever it likes. Nearly as if you would have chosen that App directly in the share list.

Intent i = new Intent();

i.setAction(intent);

i.setClassName(sharepackage, class);

i.putExtra(Intent.EXTRA_SUBJECT, subject);

i.putExtra(Intent.EXTRA_TEXT, text);

i.putExtra(Intent.EXTRA_STREAM, uri);

i.setType(contentType);

i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(i);
[Android Apps and Games] ddback:
GREAT Concept, but 100% failure with SFTP

I have an sftp server which we use for backing up our phones via Foldersync. Its been in use like this since 2009 (first Droid), so we know. Android can connect and sync to it.

Within Autoshare I can setup profiles that connect to the same server using the same credentials, but when I try to share a file it always fails.

Any idea where I can start troubleshooting?

Again- GREAT app concept, something which I've been looking for since my first Droid in '09. My current work-around is to have specific folders on the phone auto-synced (via Foldershare) with specific folders on the SFTP server. Not quite as convenient (multiple steps, less flexibility). Autoshare has the potential to be a very significant app, since there's really nothing on the Market like it. If you continue to add requested features, it'll surely become very popular. I'll certainly buy it once its beyond beta (and we get these errors worked out!)

Thanks!

Dave
[Android Apps and Games] _miha_:
Can you create a temporary test account for me and email it to me? Then I can try myself with the debugger attached. I again tested sftp and it is fine - so it must have to do with your security setup (or the type of data you are sharing).

I don't think so. If more people would need this google would have added it to Android. I once even got an answer from a google engineer when I posted about my app basically saying that. Also the app is in Play Store now for nearly two years and got only a little more than 10000 downloads despite being featured on some websites so I think the appeal is very limited to some power users ...
[Android Apps and Games] jinxs911:
Questions

I am using this app with my Droid DNA I can manually share to my SFTP but I can not get it to auto upload new pictures. Never asks not does it do anything. I have the option checked but no luck. Is there something I am missing?

Thanks.

Love this app!
[Android Apps and Games] tlb:
Could it be possible to add instant upload of video juste like for photo please ?

Very nice app.
[Android Apps and Games] jarlave:
Hey,

i like this app, but one problem.

I have one Profile for normal share and one for Camera upload in a specific folder on my server with sftp.

Now I want that camera upload autoselect this profile, und normal shares use de Standard profile. Is this app able to do this?
[Android Apps and Games] wiseowl:
This app would be perefct for my needs if i could get it to work.

Using the FTP function i can upload an image from my camera app, but no other app that i tried, such as document scanners, or file browser.

i cant even upload a text file via the file browser, but i can upload a link from the browser or a text file from a notepad app.

all i get is a "null" error.