- Xiaomi 15T Pro - a téma nincs lezárva
- Samsung Galaxy S26 Ultra - fontossági sorrend
- Poco X6 Pro - ötös alá
- Vivo X300 Pro – messzebbre lát, mint ameddig bírja
- Google Pixel topik
- Túl jól fogy az S26, túlóráznia kell a gyártósoroknak
- Apple Watch
- Poco F8 Ultra – forrónaci
- Huawei Watch GT 6 és GT 6 Pro duplateszt
- Bemutatkozott a Poco X7 és X7 Pro
Ú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
- Opel topik
- Netflix
- Formula-1
- Vírusirtó topic
- Kerékpárosok, bringások ide!
- Xiaomi 15T Pro - a téma nincs lezárva
- hcl: GPT diszk kisebbre klónozása
- Milyen billentyűzetet vegyek?
- Samsung Galaxy S26 Ultra - fontossági sorrend
- Nem szabad futtatni az új Red Magic csúcstelefonokon a 3DMarkot
- További aktív témák...
- AKCIÓ! Dell Latitude 5455 14 FHD+ üzleti notebook - Qualcomm X Plus X1 16GB DDR5 512GB SSD W11
- 0PERCES BOSE QuietComfort Ultra Headphones, zajszűrős, Bluetooth fejhallgató!
- Gamer/streamer mikrofon, állvány és USB HUB kitűnő árakon!
- Asus ROG Strix GAMER PC! Ryzen 3700X / GTX 1660 Ti / 16GB DDR4 / 512GB NVMe
- Gamer PC Intel Core I5 9400F/16GB DDR4/Nvidia 1050 4 GB/256 GB NVME/ 500 GB HDD 6 hó garancia
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

