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

Программирование Android

Войти
Регистрация
Восстановить пароль
 
llq96
0 / 0 / 0
Регистрация: 16.05.2015
Сообщений: 4
#1

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

16.05.2015, 13:25. Просмотров 1015. Ответов 5
Метки нет (Все метки)

Имеется класс ImageManager

Кликните здесь для просмотра всего текста
Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.example.myapplication4;
 
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.ImageView;
 
import java.io.BufferedInputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
 
public class ImageManager {
     final static String TAG = "ImageManager";
 
    /** Private constructor prevents instantiation from other classes */
     ImageManager () {}
 
    public static void fetchImage(final String iUrl, final ImageView iView) {
        if ( iUrl == null || iView == null )
            return;
 
        final Handler handler = new Handler() {
            @Override
            public void handleMessage(Message message) {
                final Bitmap image = (Bitmap) message.obj;
                iView.setImageBitmap(image);
            }
        };
 
        final Thread thread = new Thread() {
            @Override
            public void run() {
                final Bitmap image = downloadImage(iUrl);
                if ( image != null ) {
                    Log.v(TAG, "Got image by URL: " + iUrl);
                    final Message message = handler.obtainMessage(1, image);
                    handler.sendMessage(message);
                }
            }
        };
        iView.setImageResource(R.mipmap.ic_launcher);
        thread.setPriority(3);
        thread.start();
    }
 
    public static Bitmap downloadImage(String iUrl) {
        Bitmap bitmap = null;
        HttpURLConnection conn = null;
        BufferedInputStream buf_stream = null;
        try {
            Log.v(TAG, "Starting loading image by URL: " + iUrl);
            conn = (HttpURLConnection) new URL(iUrl).openConnection();
            conn.setDoInput(true);
            conn.setUseCaches(false);
            conn.setAllowUserInteraction(false);
            conn.setRequestProperty("Connection", "Keep-Alive");
            conn.connect();
            buf_stream = new BufferedInputStream(conn.getInputStream(), 8192);
            bitmap = BitmapFactory.decodeStream(buf_stream);
            buf_stream.close();
            conn.disconnect();
            buf_stream = null;
            conn = null;
        } catch (MalformedURLException ex) {
            Log.e(TAG, "Url parsing was failed: " + iUrl);
        } catch (IOException ex) {
            Log.d(TAG, iUrl + " does not exists");
        } catch (OutOfMemoryError e) {
            Log.w(TAG, "Out of memory!!!");
            return null;
        } finally {
            if ( buf_stream != null )
                try { buf_stream.close(); } catch (IOException ex) {}
            if ( conn != null )
                conn.disconnect();
        }
        return bitmap;
    }
}


И сам MainActivity.java
Кликните здесь для просмотра всего текста
Java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.example.myapplication4;
 
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;
 
public class MainActivity extends ActionBarActivity {
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ImageView imageview=(ImageView) findViewById(R.id.imageView);
 
        ImageManager IM=new ImageManager();
        IM.fetchImage("https://media.licdn.com/media/p/4/000/17b/0b7/23110f3.png",imageview);
 
    }
 
 
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }
 
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
 
        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }
 
        return super.onOptionsItemSelected(item);
    }
}


А вот что в logcat'e после запуска
Кликните здесь для просмотра всего текста
05-16 16:13:26.331 6570-6590/com.example.myapplication4 V/ImageManager﹕ Starting loading image by URL: https://media.licdn.com/media/p/4/00...b7/23110f3.png
05-16 16:13:26.497 6570-6590/com.example.myapplication4 W/System.err﹕ at com.example.myapplication4.ImageManager.downloadImage(ImageManager.java:61)
05-16 16:13:26.497 6570-6590/com.example.myapplication4 W/System.err﹕ at com.example.myapplication4.ImageManager$2.run(ImageManager.java:37)
05-16 16:13:26.500 6570-6590/com.example.myapplication4 D/ImageManager﹕ https://media.licdn.com/media/p/4/00...b7/23110f3.png does not exists


Собственно ругается он на
Java
1
37 final Bitmap image = downloadImage(iUrl);
И на
Java
1
61 conn.connect();
Помогите исправить
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
16.05.2015, 13:25     Вывести картинку из интернета в ImageView(android studio)
Посмотрите здесь:

Android xml из интернета Android
Android Узнать ширину и высотку картинки в ImageView, которая загружена в android:src
ImageView не растягивает картинку Android
Скопировать картинку из одной ImageView в другую ImageView Android
Android ImageView, как наложить картинку на картинку?
Android Android Studio: сменил картинку, но приложение показывает старую
Android Как реализовать переворачивание ImageView в Android?
Android ImageView не видит картинку
Android Получить картинку ImageView
Android studio эффект недоступности ImageView Android
Android Android studio. Как вывести красный пискель?
Android Как обработать нажатие на ImageView? Eclipse(android)

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума.
androbro
319 / 279 / 55
Регистрация: 17.10.2014
Сообщений: 826
16.05.2015, 13:40     Вывести картинку из интернета в ImageView(android studio) #2
llq96, ИМХО чем вам AsyncTask не угодил?
llq96
0 / 0 / 0
Регистрация: 16.05.2015
Сообщений: 4
16.05.2015, 13:55  [ТС]     Вывести картинку из интернета в ImageView(android studio) #3
Если бы умел,то наверное угодил бы,а пока хотелось бы тут ошибку найти
androbro
319 / 279 / 55
Регистрация: 17.10.2014
Сообщений: 826
16.05.2015, 15:09     Вывести картинку из интернета в ImageView(android studio) #4
llq96,
Цитата Сообщение от llq96 Посмотреть сообщение
И на
Код Java(TM) 2 Platform Standard Edition 5.0
1
61 conn.connect();
как ругается то? пермишн есть?
llq96
0 / 0 / 0
Регистрация: 16.05.2015
Сообщений: 4
16.05.2015, 15:56  [ТС]     Вывести картинку из интернета в ImageView(android studio) #5
В приведённом 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/00...b7/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/00...b7/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/00...b7/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
llq96
0 / 0 / 0
Регистрация: 16.05.2015
Сообщений: 4
16.05.2015, 16:25  [ТС]     Вывести картинку из интернета в ImageView(android studio) #6
Всё работает,спасибо за помощь,главное было разрешить использовать интернет.
Yandex
Объявления
16.05.2015, 16:25     Вывести картинку из интернета в ImageView(android studio)
Ответ Создать тему
Опции темы

Текущее время: 23:52. Часовой пояс GMT +3.
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru