I have a problem for use social plugin for Twitter! When i am trying to share image via twitter using social plugin. i got error image could not be loaded.
i am pro subscriber of Corona.
i am using Build: 2014.2170
Thanks.
I have a problem for use social plugin for Twitter! When i am trying to share image via twitter using social plugin. i got error image could not be loaded.
i am pro subscriber of Corona.
i am using Build: 2014.2170
Thanks.
Hi @info0512,
Please post your code and implementation, so others can inspect and try to help you resolve this.
Thanks,
Brent
Hi Brent,
i found the solution. it is because of i was using image from system.ResourceDirectory. Now i just copy image to system.DocumentsDirectory and share from system.DocumentsDirectory.
But still i have a question that we can share image from system.ResourceDirectory in samsung s2 but not in Galaxy nexus.
Do you have any idea about this?
Thanks.
Hi @info0512,
I’m not sure why one Android-based device would be working and another not working. Does one have different permissions set internally, or some kind of restriction on it? Remember that there is no literal “system.ResourceDirectory” on Android, and that all resource files reside inside a compressed APK file. This causes some restrictions with reading files of certain types on Android, so I suggest that you use the “system.DocumentsDirectory” method that you’re using now, unless there’s some very specific reason why you can’t.
Best regards,
Brent
Hi @info0512,
Please post your code and implementation, so others can inspect and try to help you resolve this.
Thanks,
Brent
Hi Brent,
i found the solution. it is because of i was using image from system.ResourceDirectory. Now i just copy image to system.DocumentsDirectory and share from system.DocumentsDirectory.
But still i have a question that we can share image from system.ResourceDirectory in samsung s2 but not in Galaxy nexus.
Do you have any idea about this?
Thanks.
Hi @info0512,
I’m not sure why one Android-based device would be working and another not working. Does one have different permissions set internally, or some kind of restriction on it? Remember that there is no literal “system.ResourceDirectory” on Android, and that all resource files reside inside a compressed APK file. This causes some restrictions with reading files of certain types on Android, so I suggest that you use the “system.DocumentsDirectory” method that you’re using now, unless there’s some very specific reason why you can’t.
Best regards,
Brent