Hirdetés
Új hozzászólás Aktív témák
-
#39560925
törölt tag
Ok, ezt nem értem.
public static void testEventBus(final Set<ExceptionChangeListener> exceptionChangeListeners) {
GraphRequest request = GraphRequest.newMyFriendsRequest(accessToken, new GraphRequest.GraphJSONArrayCallback() {
@Override
public void onCompleted(JSONArray jsonArray, GraphResponse graphResponse) {
// request successfully returned
if (graphResponse.getError() == null) {
Log.d("response length: ", Integer.toString(jsonArray.length()));
Set<Friend> friends = new TreeSet<>(new Friend.NameComparator());
for (ExceptionChangeListener listener : exceptionChangeListeners) {
listener.onExceptionsChanged();
}
if (firstStart) {
friendListListener.onFirstAppStart(friends);
} else {
friendListListener.onAppStart(friends);
}
}
}
});
Bundle parameters = new Bundle();
parameters.putString("fields", "id,name,picture");
request.setParameters(parameters);
request.executeAsync();
}Facebook doksiból:
executeAsync():
Executes the request asynchronously. This function will return immediately, and the request will be processed on a separate thread. In order to process result of a request, or determine whether a request succeeded or failed, a callback must be specified (see the setCallback.setCallback(Callback) method).This should only be called from the UI thread.
Gombnyomásra meghívom az executeAsync()-et, meghívódik az onCompleted(), abban meghívom notifyDataSetChanged()-et, és nem áll le kivétellel az alkalmazás. Ez a callback a main szálon fut, vagy micsoda? Hogy lehet az?
Új hozzászólás Aktív témák
- AMD vs. INTEL vs. NVIDIA
- Gumi és felni topik
- Drága Bluetooth tagek olcsóbb alternatívái (MiLi MiTag, LiTag, OTAG, stb.)
- Vezetékes FEJhallgatók
- Fortnite - Battle Royale & Save the World (PC, XO, PS4, Switch, Mobil)
- Szünetmentes tápegységek (UPS)
- SSD kibeszélő
- AMD Ryzen 9 / 7 / 5 7***(X) "Zen 4" (AM5)
- Milyen RAM-ot vegyek?
- Xbox Series X|S
- További aktív témák...
- Dobozos Lenovo Thinkpad T14s G6 Tartós Laptop 14" -60% Snapdragon X Elite 32/1TB FHD+ 22Hó Gar
- Samsung Odyssey LS49CG954SU OLED Monitor
- DELL latitude 5420 Tartós Üzleti Laptop 14" -70% i5-1145G7 4Mag 16Gb 512GB SSD FHD IPS
- Apple iPhone SE 2022 128GB, Kártyafüggetlen, 1 Év Garanciával
- MacBook aiR m2 Midnight '13,6 8/256GB
- BESZÁMÍTÁS! ASUS H510M i5 10400F 16GB DDR4 512GB SSD GTX 1060 6GB Rampage SHIVA DEEPCOOL 400W
- HP ProDesk 600 G5 i5-9500 8GB 256GB 1 év garancia
- GYÖNYÖRŰ iPhone 13 Mini 128GB Pink-1 ÉV GARANCIA -Kártyafüggetlen, MS3823, 100% Akkumulátor
- Apple iPhone 13 /128GB /Kártyafüggetlen / 12 Hó Garancia / akku: 85%
- BESZÁMÍTÁS! Sapphire B650M R7 8700F 32GB DDR5 1TB SSD RTX 3070 Ti 8GB Zalman S2 TG EVGA 850W
Állásajánlatok
Cég: Laptopszaki Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


