@rmigd it depends on the emulator, if not handled properly, size of savestates can be different between 32 and 64 bits. Most likely your android device is using arm64 retroarch while your rpi is using arm32 retroarch.
Sorry for my late reply. Unison and rclone are programs to sync local or remote directories. Both are available in the official software repositories of Debian and thus, also in Retropie. Both can be used over an ssh connection, see Transferring ROMs how to enable ssh on Retropie.
version 2 in light and extended version available --- see first posting!
Select more then one savestate with B-button (selection list)
Extra Menu added
Backup of Savestates added
Mass delete added (for current game)
Rename gamestates to .state.auto (extended version)
Rename gamestate to .state0 (extended version)
Remove all gamesstates except selected one (extended version)
For anyone wanting to attempt this with Stretch, it's actually a lot easier. The owncloud client and command line client are now included in Stretch. Run apt-get install owncloud-client-cmd to install the client this script needs. Then edit the script so that it is checking for owncloudcmd in /usr/bin/owncloudcmd instead of /usr/local/bin/owncloudcmd. Run the edited script through sudo and away you go. Everything works swimmingly aside from the fact that old saves are not moved to the new location.
@rbaker I already tried with F7 + any key or ShiftF7 + any key, doesn't work, the sav folder, of corse, is present.
I start to think simply save state it is not supported by mame4all.
Last thing, i have some problem to write correctly in English so I do what I can, sometimes it's not enough, anyway before post this discussion, I assure you, i have tried alone for one week to solve the problem, i have read here and in whole internet lot of msgs but 99% of info was about normal mame (not mame4all) and in normal mame (that i use in my real arcade cabinet) works perfectly and in effect the tab menu (contrary to mame4all) has the two line load state and save state present.
At this point I ask the moderators to close this topic, 90% of topic is out of topic and doesn't help anyone sorry.