09-05-2017, 08:42 AM
Delphi/Lazarus (pascal based) have a MinimiseName function which adjusts a file name so that it fits into a specified width (I'm sure you are not using pascal but it might give you some ideas). This thread also indicates a way of doing it with an WIN API call (though probably not much use if you want the same code for Android).
Here is the code for the Lazarus MinimiseName function; if you can convert this then the code could possibly be used on both Windows and Android.
Geoff
Here is the code for the Lazarus MinimiseName function; if you can convert this then the code could possibly be used on both Windows and Android.
Geoff
Samsung Galaxy Tab A6