Android Question Sharing a file kills parent app

techknight

Well-Known Member
Licensed User
Longtime User
I found Erel's sample app of sharing a file here:

https://www.b4x.com/android/forum/threads/share-txt-files.73166/#post-464921

I implemented this code into my App, and although it works perfectly fine, it terminates the parent app! So for example, if I click the Share button in my app, it terminates my App. So if I made a mistake, or the program I chose to share with didnt implement content:// like ES File Explorer, I have to re-launch my app and redo everything to share again.

any ideas?
 

Peter Simpson

Expert
Licensed User
Longtime User
Silly question buuuuuuuuuut,
Have you double checked the logs tab and click on 'List Permissions' to make sure that you have all the correct permission added to your app?
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
That I dont know. As I mentioned, the sharing still works. it doesnt produce an error, it just kills the app during the sharing phase.

I clicked the list permissions and it shows permissions added by the different modules. But I dont know what I need and what I dont need.

However my Samsung Tab E running Android 7.1 touchwiz, works fine. Go figure?
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
I didnt see any crashes in the log. the app simply exits.

I can probably scour through the unfiltered logs and maybe get more details.

My phone is running Android 9, my Tab 4 is running Android 4.4.2, and the Tab E is running 7.1

The only one that doesnt exit is the Tab E.
 
Upvote 0
Top