- Autós kamerák
- Házimozi haladó szinten
- 5.1, 7.1 és gamer fejhallgatók
- Milyen monitort vegyek?
- Audiofil és gamer? Az ASUS megpróbálja
- Amlogic S905, S912 processzoros készülékek
- Elvonult a zimankó, de a hardverek nem mennek sehová
- Milyen TV-t vegyek?
- Miért tűntek el ezek a PC-alkatrészek?
- Vezetékes FEJhallgatók
Ú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
- Új 2k Gamer PC Ryzen 5 5600/RX 6700 XT 12Gb/32Gb DDR4/500Gb - 1Tb SSD/2-4 Év gari
- Új 2k Gamer PC Ryzen 7 5700/RX 6700 XT 12Gb/32Gb DDR4/500Gb - 1Tb SSD/750-850W 2-4 Év gari
- Ryzen5 3700x 8core / GTX 1660 Super / SSD 500gb / HHD 2tb
- iPhone 13 mini 128GB silverlight független
- 15.gen! Intel Core ULTRA 9 285K (24mag!) +hűtött VRM-es Z890 lap! GAR/SZÁMLA (Te nevedre kiállítva)!
- SK Hynix vagy Samsung 32GB DDR4 2666MHz PC4-21300 laptop RAM
- Surface 3 - 13,5" 2k érintő, i5 1035G7, Iris Plus, 16GB RAM, SSD, jó akku, újszerű állapot, számla
- Samsung Galaxy A55 5G / 8/256GB / Kártyafüggetlen / 12Hó garancia
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Samsung Galaxy Z Fold6 12/256GB Silver Shadow használt, karcmentes 6 hónap garancia
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


