You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.
Hi, i am calling
Properties properties = new Properties.Builder().add(Properties.INSTALLED).add(Properties.NAME).add(Properties.PICTURE).build();
mSimpleFacebook.getFriends(properties,onFriendListener);
and i have set @OverRide
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
mSimpleFacebook.onActivityResult(this, requestCode, resultCode, data);
super.onActivityResult(requestCode, resultCode, data);
}
as it is said in documentation.
But i don´t get the answer until i unlock the screen and reunlock it. is then when i get the answer.What i am doing wrong? Thanks!!
The text was updated successfully, but these errors were encountered:
Hi there!
The problem was in void runRequest(Request request) on GetAction class.
The code was task.execute(). If you are running other asynctasks at the same time,the simplefacebook library will fail (as only one thread is allowed to run async tasks)
The solution was to change the method to the following:
Hi, i am calling
Properties properties = new Properties.Builder().add(Properties.INSTALLED).add(Properties.NAME).add(Properties.PICTURE).build();
mSimpleFacebook.getFriends(properties,onFriendListener);
and i have set
@OverRide
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
mSimpleFacebook.onActivityResult(this, requestCode, resultCode, data);
super.onActivityResult(requestCode, resultCode, data);
}
as it is said in documentation.
But i don´t get the answer until i unlock the screen and reunlock it. is then when i get the answer.What i am doing wrong? Thanks!!
The text was updated successfully, but these errors were encountered: