The thing is, I try to print a picture of his chosen person, his avatar, I found on the Internet full of examples, but none of them display the picture, in theory I need to cache the picture on the device. Maybe someone has worked with this api and can tell me - maybe there are some elements in this api that display photos from the link or for example something else. Since the photo comes in the json format, you need to parse it, then you didn’t get the link problem, but how to display it further in the image view or in another view I have no idea who has any ideas?
UPDATE: I listened to Roman, tried to use the lib that is on his link, but I get a lot of errors when using.
02-28 18:55:21.567: E/AndroidRuntime(10067): FATAL EXCEPTION: main 02-28 18:55:21.567: E/AndroidRuntime(10067): java.lang.NoClassDefFoundError: com.nostra13.universalimageloader.core.ImageLoader 02-28 18:55:21.567: E/AndroidRuntime(10067): at com.example.testproject.FriendOpenProfile.<init>(FriendOpenProfile.java:32) 02-28 18:55:21.567: E/AndroidRuntime(10067): at java.lang.Class.newInstanceImpl(Native Method) 02-28 18:55:21.567: E/AndroidRuntime(10067): at java.lang.Class.newInstance(Class.java:1319) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.app.Instrumentation.newActivity(Instrumentation.java:1023) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.app.ActivityThread.access$600(ActivityThread.java:123) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.os.Handler.dispatchMessage(Handler.java:99) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.os.Looper.loop(Looper.java:137) 02-28 18:55:21.567: E/AndroidRuntime(10067): at android.app.ActivityThread.main(ActivityThread.java:4424) 02-28 18:55:21.567: E/AndroidRuntime(10067): at java.lang.reflect.Method.invokeNative(Native Method) 02-28 18:55:21.567: E/AndroidRuntime(10067): at java.lang.reflect.Method.invoke(Method.java:511) 02-28 18:55:21.567: E/AndroidRuntime(10067): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 02-28 18:55:21.567: E/AndroidRuntime(10067): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 02-28 18:55:21.567: E/AndroidRuntime(10067): at dalvik.system.NativeStart.main(Native Method)
I suspect that it doesn’t work with facebook api, because if a project without a facebook api then everything is downloaded normally and shown. Can anyone come across?