Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG] ShareFile on Android not working?

Author
Message
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 23rd Mar 2019 19:29 Edited at: 23rd Mar 2019 20:13
Hello.
I've just tried to use the ShareFile command to share a simple text file on Android. I create a text file and then share it like this:


No matter what app I choose to share it with, it doesn't seem to work. For example:
Google Drive - Get a "Request contains no data" error immediately
GMail - It puts the file path and name into the 'To:' field
DropBox - Get a "No file to upload" error immediately
Copy to Clipboard - clipboard remains empty/unchanged
FX Save As (file manager) - "The item cannot be saved" error immediately

I've tried it on iOS and it seems to works fine, saving the file to iCloud and attaching it to an email.

If I use ShareText("This is some text") it works exactly as expected. GMail puts the text in the body of a new email, Twitter puts the text in a new tweet, it gets copied to the clipboard fine, even Google Drive creates a new file using the text as the filename. I could use this command instead but I am worried about any limitations on the size of text that can be passed.

Am I doing something wrong?

EDIT: Forgot to say, I am using AGK2 Tier 1 with Android 7.0 and have tried broadcasting the program and also creating an APK file and installing that (just in case) with the same results.

EDIT2: I am wondering if this might be a location or permissions issue. It seems to be passing the URI of the file to the shared app , which when broadcasting to the AGK2 Player App it comes through as: //com.thegamecreators.agk_player2.provider/files/TestApp/media/simple.txt which does not seem to exist or at least isn't visible to other apps like the file manager.

Chart data provided with kind permission from ELSPA
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 29th Mar 2019 15:10
Sorry for the bump. I'm just a little worried I might be missing something on Android.
Could someone please confirm that my problem exists on other peoples devices?

If there is somewhere better I should post bug reports, please let me know. Many thanks.

Chart data provided with kind permission from ELSPA
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 3rd Apr 2019 10:58
Tried different Android devices now with the same results. Definitely a bug in the Android version.

Chart data provided with kind permission from ELSPA
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 16th Apr 2019 17:09
Sorry for the bump but its been 24 days without even an acknowledgement of this bug. I know AppGameKit Studio is taking up most of the dev team's time but this bug also appears in the Studio Alpha.

Is there a better way to report bugs? Tried a new forum thread, tried adding to the current "version release" forum thread, and tried messaging Paul directly through the forum. I am open to suggestions. Thanks.

Chart data provided with kind permission from ELSPA
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 16th Apr 2019 17:13
If the bug also exists in Studio then I'd recommend reporting the bug on their github page

https://github.com/TheGameCreators/AGK-Studio/issues
OryUI - A WIP AGK2 UI Framework
Zappo
Valued Member
19
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 16th Apr 2019 17:42
Thanks Kevin. I have posted it on GitHub now too.

Chart data provided with kind permission from ELSPA

Login to post a reply

Server time is: 2024-03-29 05:15:39
Your offset time is: 2024-03-29 05:15:39