Instagram result codes

你说的曾经没有我的故事 提交于 2019-12-10 21:41:35

问题


Instagram allows you to share photos to the app via intent. Now you can define your own request code startActivityForResult(intent, YOUR_CODE_HERE)

Now the problem arises when you retrieve the result codes from Instagram it only gives back 0 which is RESULT_CANCELED. Plus the moment you start firing your intent this result code is called regardless whether you closed Instagram or not.

Is this the only available result code? RESULT_OK does not get called even if you post your image because Instagram doesn't close.


回答1:


From what I've tried so far it seems that this is the only result you'll receive. If you look at the Instagram developer docs you can see that they don't even use 'startActivityForResult', but the resultless 'startActivity'.

https://instagram.com/developer/mobile-sharing/android-intents/

Would be awesome if we would get a RESULT_OK. Would be even better if we'd receive some info about the posted object, like the ID.



来源:https://stackoverflow.com/questions/29727343/instagram-result-codes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!