I decided to re-write my previous reply, as it was all over the place:
Unfortunately my app has gone from bad to worse with crashes. Initially it was fairly stable, but eventually I put the crashes down to having a huge ‘library’ of profiles that I had created. Not having an easy means to organise/file/archive profiles, I just left them to heap up. The app started to become more unreliable and unstable.
As of now I can only seem to create one new profile at a time before the app crashes. If I try to create more, as soon as I try to ‘save’ that action crashes the app immediately. Restarting the app is fine & usable, I can see the newly created profile in the list, but upon attempting to open it, causes immediate app crash.
I decided to go through 108 profiles to manually ‘share’ each one and email it to myself for backup purposes. However there was an intermittent & unpredictable issue with this too; Every so often completing the profile share would also crash the app. This was sometimes happening after the 4th share, or as soon as the 1st! It was a long and tedious task.
Once backed up - I uninstalled the app and started again. Unfortunately this did not remedy the problem either. I’ve tried to uninstall and reinstall numerous times, even shutting down the phone between every step. No Joy.
At present in my app I only have the preloads plus three of my own profiles. One was loaded from my backups, the other is a new profile adapted from that. Those work fine. The third is another loaded from my backups, but upon adding the 3rd profile it crashed the app. I can re-open the app and see the 3rd profile, but trying to open it will cause a crash. If I fresh reinstall & I only have the preloads, then add the same (3rd) profile again, it loads up, views fine & it works! I have found this is fairly consistent behaviour; so I can now only create one new profile of my own, at one time. Each time I want to go beyond this I must go through the faff of uninstalling and reinstalling.
It did cross my mind I may have a phone internal memory issue, but I cleared a few GB off just to be sure and it didn’t make a bit of difference.
All other apps on my phone are stable.
I am starting to wonder if there is a corrupted file floating around my phone’s filesystem, which is not being removed at the point of uninstall. Therefore perhaps the only way to regain previous app performance may be to completely backup and reinstall my entire phone OS, which I am not really prepared to do. So I am just living with the instability, backup/sharing each new profile & reinstalling often!
Android 7.1.1 Sony Xperia Z5