Image Selector gives out error

32 views
Skip to first unread message

Niklas Lehmann

unread,
Jul 14, 2021, 5:29:53 AM7/14/21
to Tinode General
I compiled an own apk to enable push notifications for android.
Everything works fine but if i want to send an Image the app gives out this error
125527594-98269a5c-6471-467a-bd3c-3a826a7703b7.jpg
Is this a bug or did i do something wrong?

Using trindroid v17.6 from latest master branch

Gene

unread,
Jul 14, 2021, 2:45:09 PM7/14/21
to Tinode General
Can you reproduce the problem with the APK from https://github.com/tinode/tindroid/releases/download/v0.17.6/tindroid-debug.apk ?

Gene

unread,
Jul 14, 2021, 2:46:01 PM7/14/21
to Tinode General
When you compile your APK make sure the target API is no higher than 29. It probably won't work with 30 or 31.

Niklas Lehmann

unread,
Jul 15, 2021, 3:32:30 AM7/15/21
to Tinode General
I couldnt reproduce with latest release apk.
I dont know why the image selector doesnt work for me
Here are the only things I changed from the latest master branch

1. Changing the applicationid to "com.r4nmarutinode.app" to match my firebase program name
2. adding googleservices.json in the app folder to enable push notifications
3. adding keystore.properties

Then i build the apk with default settings

Niklas Lehmann

unread,
Jul 15, 2021, 5:19:12 AM7/15/21
to Tinode General
Solved it by changing the external-path name for tindroid_images in provider_paths.xml to "Android/data/com.r4nmarutinode.app/files/Pictures" instead of   "Android/data/co.tinode.tinodex/files/Pictures" 

Maybe in future versions this path can be fetched from the applicationid instead of setting it manually

Gene

unread,
Jul 15, 2021, 12:31:00 PM7/15/21
to Tinode General
On Thursday, July 15, 2021 at 2:19:12 AM UTC-7 Niklas Lehmann wrote:
Solved it by changing the external-path name for tindroid_images in provider_paths.xml to "Android/data/com.r4nmarutinode.app/files/Pictures" instead of   "Android/data/co.tinode.tinodex/files/Pictures" 

Great

Maybe in future versions this path can be fetched from the applicationid instead of setting it manually

You are welcome to send a pull request.
Reply all
Reply to author
Forward
0 new messages