Форум программистов, компьютерный форум CyberForum.ru
Наши страницы

Вывести картинку из интернета в ImageView(android studio) - Программирование Android

Войти
Регистрация
Восстановить пароль
Другие темы раздела
Программирование Android Редактирование .mtx файлов (перевод игры) http://www.cyberforum.ru/android-dev/thread1447998.html
Пытаюсь перевести недавно вышедшую игру. В .apk все картинки с текстом предположительно лежат в файлах с таким построением Имя_файла.png(или .jpeg).mtx.mp3 Пробовал убирать .mp3 из названия и...
Программирование Android Дождаться завершения работы AsyncTask и выполнять код дальше Помогите, пожалуйста. Мне нужно дождаться завершения работы AsyncTask и только потом выполнять код дальше. Я уже понял, что для этого нужно написать слушатель для AsyncTask, но у меня что-то не... http://www.cyberforum.ru/android-dev/thread1447866.html
Программирование Android Размер кнопок
Подскажите как начинающему, плиз) Во-первых, я не использую .9png . Для оформления кнопок использую отрисованные бэкграунды. Допустим меня устраивает размер кнопки по размеру бэкграунда, я...
Вылетает программа, написанная под Андроид Программирование Android
Программа под Android Вылетает когда работает на переднем плане. Когда работает в фоновом то не вылетает) На сринах видно как программа загружает ОЗУ и Процессор, Подскажите из за чего?? И как это...
Программирование Android Unknown error (code 14): Could not open database http://www.cyberforum.ru/android-dev/thread1447644.html
Подскажите пожалуйста. в чем ошибка, видно что не открывается БД, но из-за чего это, и правильно ли прочитал лог? : E/AndroidRuntime(23119): FATAL EXCEPTION: main : E/AndroidRuntime(23119):...
Программирование Android Вывод из базы данных в ListView через SimpleCursorAdapter Доброе время суток. Пишу программу под Андроид в среде Android Studio и возникла проблема с выводом данных в listview через SimpleCursorAdapter. Суть: программа сохраняет результаты проверки в БД,... подробнее

Показать сообщение отдельно
llq96
0 / 0 / 0
Регистрация: 16.05.2015
Сообщений: 4
16.05.2015, 15:56  [ТС]
В приведённом logcate'e ошибка с указанием на эту строку.
Цитата Сообщение от llq96 Посмотреть сообщение
05-16 16:13:26.497 6570-6590/com.example.myapplication4 W/System.err﹕ at com.example.myapplication4.ImageManager.downloadImage(ImageManager.java:61)
Добавлено через 15 минут
Что-то я затупил,оказывается logcat полон ошибок

Кликните здесь для просмотра всего текста
05-16 18:32:15.974 8754-8754/com.example.myapplication4 W/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
05-16 18:32:16.071 8754-8754/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 405: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-16 18:32:16.073 8754-8754/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 427: Landroid/content/res/TypedArray;.getType (I)I
05-16 18:32:16.143 8754-8768/com.example.myapplication4 W/System.err﹕ java.lang.SecurityException: Permission denied (missing INTERNET permission?)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at java.net.InetAddress.lookupHostByName(InetAddress.java:473)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at java.net.InetAddress.getAllByNameImpl(InetAddress.java:279)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at java.net.InetAddress.getAllByName(InetAddress.java:214)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
05-16 18:32:16.150 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:469)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:433)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:81)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.net.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:165)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at com.example.myapplication4.ImageManager.downloadImage(ImageManager.java:61)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ at com.example.myapplication4.ImageManager$2.run(ImageManager.java:37)
05-16 18:32:16.151 8754-8768/com.example.myapplication4 W/System.err﹕ Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
05-16 18:32:16.152 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.io.Posix.getaddrinfo(Native Method)
05-16 18:32:16.152 8754-8768/com.example.myapplication4 W/System.err﹕ at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:59)
05-16 18:32:16.152 8754-8768/com.example.myapplication4 W/System.err﹕ at java.net.InetAddress.lookupHostByName(InetAddress.java:448)
05-16 18:32:16.152 8754-8768/com.example.myapplication4 W/System.err﹕ ... 16 more
05-16 18:32:16.152 8754-8768/com.example.myapplication4 W/System.err﹕ Caused by: libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)
05-16 18:32:16.152 8754-8768/com.example.myapplication4 W/System.err﹕ ... 19 more


Действительно проблемы с Permission,но как его получить?
Запускал через студию на "живом" телефоне,естественно с включенным интернетом

Добавлено через 19 минут
А вот логи после полученного разрешения
Кликните здесь для просмотра всего текста
05-16 18:54:12.527 9879-9879/com.example.myapplication4 D/dalvikvm﹕ Zygote::ForkAndSpecialize : 0
05-16 18:54:12.527 9879-9879/com.example.myapplication4 D/dalvikvm﹕ zygote get new systemTid : 9879
05-16 18:54:12.528 9879-9879/com.example.myapplication4 D/dalvikvm﹕ Late-enabling CheckJNI
05-16 18:54:12.565 9879-9879/com.example.myapplication4 D/jdwp﹕ prepping for JDWP over ADB
05-16 18:54:12.565 9879-9879/com.example.myapplication4 D/jdwp﹕ ADB transport startup
05-16 18:54:12.566 9879-9885/com.example.myapplication4 D/dalvikvm﹕ Elevating priority from 0 to -8
05-16 18:54:12.568 9879-9886/com.example.myapplication4 D/jdwp﹕ JDWP: thread running
05-16 18:54:12.568 9879-9886/com.example.myapplication4 D/jdwp﹕ acceptConnection
05-16 18:54:12.569 9879-9886/com.example.myapplication4 D/jdwp﹕ trying to receive file descriptor from ADB
05-16 18:54:12.570 9879-9879/com.example.myapplication4 D/dalvikvm﹕ zygote get thread init done
05-16 18:54:12.577 9879-9886/com.example.myapplication4 D/jdwp﹕ received file descriptor 40 from ADB
05-16 18:54:12.580 9879-9886/com.example.myapplication4 D/jdwp﹕ processIncoming
05-16 18:54:12.581 9879-9886/com.example.myapplication4 D/jdwp﹕ processIncoming
05-16 18:54:12.582 9879-9886/com.example.myapplication4 D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x400001B3, flags=0x0, dataLen=0x8
05-16 18:54:12.586 9879-9886/com.example.myapplication4 D/jdwp﹕ processIncoming
05-16 18:54:12.586 9879-9886/com.example.myapplication4 D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x17, id=0x400001B4, flags=0x0, dataLen=0xC
05-16 18:54:12.587 9879-9886/com.example.myapplication4 D/jdwp﹕ processIncoming
05-16 18:54:12.588 9879-9886/com.example.myapplication4 D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x400001B5, flags=0x0, dataLen=0x8
05-16 18:54:12.589 9879-9886/com.example.myapplication4 D/jdwp﹕ processIncoming
05-16 18:54:12.589 9879-9886/com.example.myapplication4 D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x400001B6, flags=0x0, dataLen=0x8
05-16 18:54:12.590 9879-9886/com.example.myapplication4 D/jdwp﹕ processIncoming
05-16 18:54:12.590 9879-9886/com.example.myapplication4 D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B7, flags=0x0, dataLen=0x9
05-16 18:54:12.677 9879-9879/com.example.myapplication4 D/jdwp﹕ sendBufferedRequest : len=0x3D
05-16 18:54:12.724 9879-9879/com.example.myapplication4 D/jdwp﹕ sendBufferedRequest : len=0x4F
05-16 18:54:12.728 9879-9879/com.example.myapplication4 W/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
05-16 18:54:13.005 9879-9879/com.example.myapplication4 I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
05-16 18:54:13.006 9879-9879/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 405: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-16 18:54:13.006 9879-9879/com.example.myapplication4 D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-16 18:54:13.008 9879-9879/com.example.myapplication4 I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
05-16 18:54:13.008 9879-9879/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 427: Landroid/content/res/TypedArray;.getType (I)I
05-16 18:54:13.008 9879-9879/com.example.myapplication4 D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-16 18:54:13.188 9879-9897/com.example.myapplication4 D/libc-netbsd﹕ getaddrinfo: media.licdn.com NO result from proxy
05-16 18:54:13.189 9879-9897/com.example.myapplication4 I/System.out﹕ [CDS][DNS]Unable to resolve host "media.licdn.com": No address associated with hostname
05-16 18:54:13.198 9879-9879/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so
05-16 18:54:13.214 9879-9897/com.example.myapplication4 I/System.out﹕ [CDS]do not retry
05-16 18:54:13.214 9879-9897/com.example.myapplication4 D/ImageManager﹕ https://media.licdn.com/media/p/4/000/17b/0b7/23110f3.png does not exists
05-16 18:54:13.278 9879-9879/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so
05-16 18:54:13.281 9879-9879/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so
05-16 18:54:13.322 9879-9879/com.example.myapplication4 D/OpenGLRenderer﹕ Enabling debug mode 0
05-16 18:54:16.322 9879-9879/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_SET_ACTIVE true, was false
05-16 18:54:17.938 9879-9879/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_SET_ACTIVE false, was true
05-16 18:54:17.942 9879-9879/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_UNBIND 2850
05-16 18:54:17.990 9879-9879/com.example.myapplication4 D/OpenGLRenderer﹕ Flushing caches (mode 0)
05-16 18:54:18.017 9879-9879/com.example.myapplication4 D/OpenGLRenderer﹕ Flushing caches (mode 1)
05-16 18:54:47.702 10005-10005/com.example.myapplication4 D/jdwp﹕ sendBufferedRequest : len=0x4F
05-16 18:54:47.704 10005-10005/com.example.myapplication4 W/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
05-16 18:54:47.821 10005-10005/com.example.myapplication4 I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
05-16 18:54:47.821 10005-10005/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 405: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-16 18:54:47.821 10005-10005/com.example.myapplication4 D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-16 18:54:47.822 10005-10005/com.example.myapplication4 I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
05-16 18:54:47.822 10005-10005/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 427: Landroid/content/res/TypedArray;.getType (I)I
05-16 18:54:47.822 10005-10005/com.example.myapplication4 D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-16 18:54:47.877 10005-10019/com.example.myapplication4 D/libc-netbsd﹕ getaddrinfo: media.licdn.com NO result from proxy
05-16 18:54:47.879 10005-10019/com.example.myapplication4 I/System.out﹕ [CDS][DNS]Unable to resolve host "media.licdn.com": No address associated with hostname
05-16 18:54:47.880 10005-10019/com.example.myapplication4 I/System.out﹕ [CDS]do not retry
05-16 18:54:47.887 10005-10019/com.example.myapplication4 D/ImageManager﹕ https://media.licdn.com/media/p/4/000/17b/0b7/23110f3.png does not exists
05-16 18:54:47.933 10005-10005/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so
05-16 18:54:47.936 10005-10005/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so
05-16 18:54:47.939 10005-10005/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so
05-16 18:54:47.956 10005-10005/com.example.myapplication4 D/OpenGLRenderer﹕ Enabling debug mode 0
05-16 18:54:48.032 10005-10005/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_SET_ACTIVE true, was false
05-16 18:56:42.707 10005-10005/com.example.myapplication4 D/OpenGLRenderer﹕ Flushing caches (mode 1)
05-16 18:56:42.730 10005-10005/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_SET_ACTIVE false, was true
05-16 18:56:42.730 10005-10005/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_UNBIND 2852
05-16 18:56:42.762 10005-10005/com.example.myapplication4 D/OpenGLRenderer﹕ Flushing caches (mode 0)
05-16 18:56:46.567 10076-10076/com.example.myapplication4 D/jdwp﹕ sendBufferedRequest : len=0x4F
05-16 18:56:46.570 10076-10076/com.example.myapplication4 W/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
05-16 18:56:46.626 10076-10076/com.example.myapplication4 I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
05-16 18:56:46.626 10076-10076/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 405: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-16 18:56:46.626 10076-10076/com.example.myapplication4 D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-16 18:56:46.627 10076-10076/com.example.myapplication4 I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
05-16 18:56:46.627 10076-10076/com.example.myapplication4 W/dalvikvm﹕ VFY: unable to resolve virtual method 427: Landroid/content/res/TypedArray;.getType (I)I
05-16 18:56:46.627 10076-10076/com.example.myapplication4 D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
05-16 18:56:46.687 10076-10090/com.example.myapplication4 D/libc-netbsd﹕ getaddrinfo: media.licdn.com NO result from proxy
05-16 18:56:46.689 10076-10090/com.example.myapplication4 I/System.out﹕ [CDS][DNS]Unable to resolve host "media.licdn.com": No address associated with hostname
05-16 18:56:46.689 10076-10090/com.example.myapplication4 I/System.out﹕ [CDS]do not retry
05-16 18:56:46.690 10076-10090/com.example.myapplication4 D/ImageManager﹕ https://media.licdn.com/media/p/4/000/17b/0b7/23110f3.png does not exists
05-16 18:56:46.725 10076-10076/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so
05-16 18:56:46.727 10076-10076/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so
05-16 18:56:46.730 10076-10076/com.example.myapplication4 D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so
05-16 18:56:46.744 10076-10076/com.example.myapplication4 D/OpenGLRenderer﹕ Enabling debug mode 0
05-16 18:56:46.819 10076-10076/com.example.myapplication4 I/InputMethodManager﹕ handleMessage: MSG_SET_ACTIVE true, was false
0
 
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru