HERE SDK offline navigation is not working - android

The scenario here is I am connected to a wifi and my app is calculating the route. It should still work since this supports offline navigation. There should be a way to force the SDK to work offline even if it is online. Thanks!
Here's the logs I got.
Application started.
03-10 10:17:43.185 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: NetworkSSLContextFactory created successfully
03-10 10:17:43.185 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: generateSSlContext BEGIN
03-10 10:17:43.260 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: The number of files 164 found in /storage/emulated/0/.here-maps/certs/
03-10 10:17:43.767 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: The number of valid certificates 164
03-10 10:17:43.806 32527-5764/global.Here.Map.Service.v2 D/NetworkSSLContextFactory: generateSSlContext END javax.net.ssl.SSLContext#25ec2d22
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc: getaddrinfo called from pid =32527
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc: getaddrinfo called from pid =32527
03-10 10:17:43.809 32527-5764/global.Here.Map.Service.v2 D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
03-10 10:17:46.815 32527-5764/global.Here.Map.Service.v2 E/NetworkProtocol: NetworkProtocol::GetTask::run exception: java.net.UnknownHostException: Unable to resolve host "version.hybrid.api.here.com": Unknown error
03-10 10:17:46.815 32527-5764/global.Here.Map.Service.v2 W/System.err: java.net.UnknownHostException: Unable to resolve host "version.hybrid.api.here.com": Unknown error
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:482)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:255)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:218)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:303)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:242)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:397)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:347)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:515)
03-10 10:17:46.817 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at com.here.hype.NetworkProtocol$GetTask.run(NetworkProtocol.java:221)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.lang.Thread.run(Thread.java:818)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: GAI_ error 401 (Unknown error)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:446)
03-10 10:17:46.818 32527-5764/global.Here.Map.Service.v2 W/System.err: ... 14 more
Calculate route executed
03-10 10:21:06.554 32455-12106/com.maps.plot D/NetworkSSLContextFactory: NetworkSSLContextFactory created successfully
03-10 10:21:06.554 32455-12106/com.maps.plot D/NetworkSSLContextFactory: generateSSlContext BEGIN
03-10 10:21:06.557 32455-32455/com.maps.plot I/System.out: Route calculation progress:3%
03-10 10:21:06.630 32455-12106/com.maps.plot D/NetworkSSLContextFactory: The number of files 164 found in /storage/emulated/0/.here-maps/certs/
03-10 10:21:06.638 32455-32455/com.maps.plot I/System.out: Route calculation progress:6%
03-10 10:21:06.707 32455-32455/com.maps.plot I/System.out: Route calculation progress:9%
03-10 10:21:06.755 32455-32455/com.maps.plot I/System.out: Route calculation progress:12%
03-10 10:21:06.806 32455-32455/com.maps.plot I/System.out: Route calculation progress:15%
03-10 10:21:06.881 32455-32455/com.maps.plot I/System.out: Route calculation progress:18%
03-10 10:21:06.954 32455-32455/com.maps.plot I/System.out: Route calculation progress:21%
03-10 10:21:06.969 32455-12106/com.maps.plot D/NetworkSSLContextFactory: The number of valid certificates 164
03-10 10:21:07.001 32455-12106/com.maps.plot D/NetworkSSLContextFactory: generateSSlContext END javax.net.ssl.SSLContext#35325c17
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.002 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc: remote DNS query failed we don't need to try local DNS query result_code =401
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc: dnsproxy getaddrinfo returns 401
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.003 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0
03-10 10:21:07.004 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0
03-10 10:21:07.004 32455-12106/com.maps.plot D/libc: getaddrinfo called from pid =32455
03-10 10:21:07.004 32455-12106/com.maps.plot D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=1024; ai_family=0
03-10 10:21:07.005 32455-12106/com.maps.plot E/NetworkProtocol: NetworkProtocol::GetTask::run exception: java.net.UnknownHostException: Unable to resolve host "v107-61-30-8.route.hybrid.api.here.com": Unknown error
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: java.net.UnknownHostException: Unable to resolve host "v107-61-30-8.route.hybrid.api.here.com": Unknown error
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:482)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:255)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:218)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
03-10 10:21:07.005 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:303)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:242)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:397)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:347)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:515)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at com.here.hype.NetworkProtocol$GetTask.run(NetworkProtocol.java:221)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at java.lang.Thread.run(Thread.java:818)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: GAI_ error 401 (Unknown error)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:446)
03-10 10:21:07.006 32455-12106/com.maps.plot W/System.err: ... 14 more
03-10 10:21:07.024 32455-32455/com.maps.plot I/System.out: Route calculation progress:24%
03-10 10:21:07.101 32455-32455/com.maps.plot I/System.out: Route calculation progress:27%
03-10 10:21:07.104 32455-32455/com.maps.plot I/System.out: Route calculation failed: REQUEST_TIMEOUT
03-10 10:21:50.626 32455-32455/com.maps.plot I/System.out: Location changed 42.10214493:-87.8712617

I have been working for this in a week and finally got this issue fixed. So I am working under company's network and it is been very unproductive because of this.
So what I did is add a proxy server under my WiFi settings because all external network request should go through the proxy or else it will have the SSL errors.

Related

Android can't reach URL using Volley library

Hi I write my app and have many problems but this is really strange.
All connections to mysql by php was working good. Today I everything was ok but suddenly i couldn't reach URL.
Here is the logcat:
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie I/System.out: AsyncTask #8 calls detatch()
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.20 refused
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:248)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:172)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:130)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1337)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:705)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:579)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:503)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:481)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at com.example.dawid.logowanie.JSONParser.makeHttpRequest(JSONParser.java:51)
05-18 19:06:00.310 21093-21353/com.example.dawid.logowanie W/System.err: at com.example.dawid.logowanie.AddBookActivity$CreateNewProduct.doInBackground(AddBookActivity.java:197)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at com.example.dawid.logowanie.AddBookActivity$CreateNewProduct.doInBackground(AddBookActivity.java:156)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: at java.lang.Thread.run(Thread.java:818)
05-18 19:06:00.320 21093-21353/com.example.dawid.logowanie W/System.err: Caused by: java.net.ConnectException: failed to connect to /192.168.1.20 (port 80): connect failed: ETIMEDOUT (Connection timed out)
05-18 19:06:00.330 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:124)
05-18 19:06:00.330 21093-21353/com.example.dawid.logowanie W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
05-18 19:06:00.330 21093-21353/com.example.dawid.logowanie W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at java.net.Socket.connect(Socket.java:884)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:124)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:193)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: ... 16 more
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: Caused by: android.system.ErrnoException: connect failed: ETIMEDOUT (Connection timed out)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.Posix.connect(Native Method)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:111)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:137)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
05-18 19:06:00.340 21093-21353/com.example.dawid.logowanie W/System.err: ... 21 more
In other cases pDialog shows I wait and wait and get nothing only:
05-18 19:10:05.850 27036-27036/com.example.dawid.logowanie E/RegisterActivity: Blad Rejestracji: null
05-18 19:10:05.900 27036-27036/com.example.dawid.logowanie D/ViewRootImpl: #3 mView = null
05-18 19:10:05.920 27036-27036/com.example.dawid.logowanie D/Volley: [1] Request.finish: 7625 ms: [ ] http://192.168.1.20/android_login_api/Check.php 0x676929da NORMAL 1
05-18 19:10:05.920 27036-27036/com.example.dawid.logowanie D/ViewRootImpl: #1 mView = android.widget.LinearLayout{4c07063 V.E...... ......I. 0,0-0,0 #102039d android:id/toast_layout_root}
05-18 19:10:05.930 27036-27036/com.example.dawid.logowanie E/ViewRootImpl: sendUserActionEvent() mView == null
Like I said earlier everything was working fine but suddenly stopped. I restarted my phone many times, I change phone and nothing. I did Invalidate Caches/Restart but still have the problem.
Solved! It was because of my home wifi network. I turned on hotspot on another phone and connect my laptop and phone to test and worked. I still don't understand how earlier everything was working on my home wifi and suddenly stopped.
Someone know how is it possible?

can't load images from url with Picasso

i'm using Picasso to download images into a listview in my android app.
it's working like a charm except when running on Kitkat environment.
My layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<ImageView
android:id="#+id/articleimage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="5dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true"
/>
</RelativeLayout>
My logs
08-11 06:30:19.406 28898-28898/com.s W/System.err: com.squareup.picasso.Downloader$ResponseException: 404 Not Found
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:96)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
my config
compileSdkVersion 23
buildToolsVersion '23.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
using ImageLoader i get an error in downloading the images
http://url/uploads/Vous-ĂȘtes-cerveau-droit-ou-cerveau-gauche-300x160.jpg
08-15 10:05:09.042 1915-2474/com.s W/System.err: java.io.FileNotFoundException: http://url/uploads/Vous-ĂȘtes-cerveau-droit-ou-cerveau-gauche-300x160.jpg
08-15 10:05:09.042 1915-2474/com.s W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.net.URL.openStream(URL.java:470)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at com.s.ArticleActivity$DownloadImageTask.doInBackground(ArticleActivity.java:446)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at com.s.ArticleActivity$DownloadImageTask.doInBackground(ArticleActivity.java:436)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-15 10:05:09.042 1915-2474/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)

Picasso failed to load images in android kitkat

I'm using Picasso to download images I get from a web service that I display in a listview.
It works fine on devices running above kitkat 5+.
In kitkat it fails to load some images.
My config is set like below
android {
compileSdkVersion 24
buildToolsVersion '24.0.0'
defaultConfig {
applicationId ""
minSdkVersion 17
targetSdkVersion 24
}
}
dependencies {
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
}
I'm calling Picasso in my listAdapter
Picasso.with(main)
.load(main.articles.get(position).image)
.into(holder.image);
My layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#fff"
>
<ImageView
android:id="#+id/articleimage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="5dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true"
/>
<TextView
android:id="#+id/categoryname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:textSize="26dp"
android:layout_below="#id/articleimage"
android:layout_alignParentStart="true"
android:layout_marginTop="280dp"
android:layout_alignParentTop="true"
android:textColor="#ff48b0"
android:background="#FFFFFF"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:textStyle="bold"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/title"
android:gravity="center_vertical"
android:paddingStart="10dp"
android:paddingBottom="5dp"
android:clickable="false"
android:textColor="#3D3838"
android:textStyle="bold"
android:textSize="33dp"
android:focusable="false"
android:layout_below="#id/articleimage"
android:layout_marginTop="8dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="122dp"
android:id="#+id/excerpt"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:textSize="26dp"
android:lineSpacingExtra="8dp"
android:textColor="#4c4d4e"
android:layout_below="#id/title"
/>
</RelativeLayout>
my logs
Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
08-11 06:30:19.406 28898-28898/com.s W/System.err: com.squareup.picasso.Downloader$ResponseException: 404 Not Found
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:96)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)
08-11 06:30:19.406 28898-28898/com.s W/System.err: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
"Picasso-/wp-content/uploads/Vous-consommez-chaque-jour-cet-aliment-qui-endommage-votre-cerveau-et-votre-foie.jpg" prio=5 tid=613 RUNNABLE
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: | group="main" sCount=0 dsCount=0 obj=0xb20862a8 self=0xb98f6fd0
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: | sysTid=18174 nice=10 sched=3/0 cgrp=[fopen-error:2] handle=-1186417376
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: | state=R schedstat=( 0 0 0 ) utm=2 stm=1 core=0
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:613)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:589)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.BitmapHunter.decodeStream(BitmapHunter.java:142)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:217)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at java.lang.Thread.run(Thread.java:841)
08-11 06:52:44.326 28898-18174/com.s I/dalvikvm: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
08-11 06:52:44.346 28898-18174/com.s D/skia: --- decoder->decode returned false
08-11 06:52:44.366 28898-28898/com.s W/System.err: java.lang.RuntimeException: ===============BEGIN PICASSO STATS ===============
08-11 06:52:44.366 28898-28898/com.s W/System.err: Memory Cache Stats
08-11 06:52:44.366 28898-28898/com.ss W/System.err: Max Cache Size: 9586980
08-11 06:52:44.366 28898-28898/com.s W/System.err: Cache Size: 0
08-11 06:52:44.366 28898-28898/com.s W/System.err: Cache % Full: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Cache Hits: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Cache Misses: 1
08-11 06:52:44.376 28898-28898/com.s W/System.err: Network Stats
08-11 06:52:44.376 28898-28898/com.s W/System.err: Download Count: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Download Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Average Download Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Bitmap Stats
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Bitmaps Decoded: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Transformed Bitmaps: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Total Transformed Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Average Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: Average Transformed Bitmap Size: 0
08-11 06:52:44.376 28898-28898/com.s W/System.err: ===============END PICASSO STATS ===============
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:180)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at java.lang.Thread.run(Thread.java:841)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
08-11 06:52:44.376 28898-28898/com.s W/System.err: Caused by: java.lang.OutOfMemoryError
08-11 06:52:44.376 28898-28898/com.s W/System.err: at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:613)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:589)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.decodeStream(BitmapHunter.java:142)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:217)
08-11 06:52:44.376 28898-28898/com.s W/System.err: at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
08-11 06:52:44.376 28898-28898/com.s W/System.err: ... 6 more
Try this and print exception
Picasso.Builder builder = new Picasso.Builder(this);
builder.listener(new Picasso.Listener()
{
#Override
public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception)
{
exception.printStackTrace();
}
});
builder.build().load(URL).into(imageView);

Facebook SDK ads not working without AdSettings.addTestDevice

Here is my code where I load ads:
adView = new AdView(this,getResources().getString(R.string.facebook_ad_id) , AdSize.BANNER_320_50);
LinearLayout layout = (LinearLayout)findViewById(R.id.adView);
layout.addView(adView);
//AdSettings.addTestDevice("d0750cd2c16e48849a32688beeaa1890");
adView.loadAd();
This code won't work unless I uncomment the AdSettings.addTestDevice(), and this is the problem. I want see if it works for release.
Here's the logcat when I try to load ad:
05-25 15:34:09.253 13334-13572/h2d.drawteam.howtodraw D/IMGSRV: gralloc_register_buffer:1390: hnd=0x55725c6890 ID=280842 fd=88 ref=1
05-25 15:34:09.253 13334-13572/h2d.drawteam.howtodraw D/GraphicBuffer: register, handle(0x55725c6890) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
05-25 15:34:09.310 13334-13334/h2d.drawteam.howtodraw V/SettingsInterface: from settings cache , name = sound_effects_enabled , value = 1
05-25 15:34:09.328 13334-22002/h2d.drawteam.howtodraw E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
05-25 15:34:09.332 13334-13334/h2d.drawteam.howtodraw D/ColorDrawable: Color = -1118482, canvas = android.view.GLES20RecordingCanvas#6b66443, mTintMode = SRC_IN, mTint = null, ColorDrawable = android.graphics.drawable.ColorDrawable#1f5f1cdd
05-25 15:34:09.393 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:1
05-25 15:34:09.394 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:1
05-25 15:34:09.394 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 sslRead buf=0x55727744e0 len=2048,timeo=10
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback where=0x4004 ret=256
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 SSL3 alert read:W:CN warning close notify
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback ignored
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: Close in OkHttp:0
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 NativeCrypto_SSL_interrupt
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: sslNotify, appData=0x5572417de0 ret=1
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: sslNotify, appData=0x5572417de0 ret=1
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback where=0x4008 ret=256
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 SSL3 alert write:W:CN warning close notify
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback ignored
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]close[49487]
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
05-25 15:34:09.415 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: getaddrinfo: graph.facebook.com get result from proxy >>
05-25 15:34:09.415 13334-22004/h2d.drawteam.howtodraw I/System.out: propertyValue:true
05-25 15:34:09.420 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.421 13334-22004/h2d.drawteam.howtodraw I/System.out: [socket][3] connection graph.facebook.com/31.13.92.10:443;LocalPort=36844(0)
05-25 15:34:09.421 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]connect[graph.facebook.com/31.13.92.10:443] tm:90
05-25 15:34:09.422 13334-22004/h2d.drawteam.howtodraw D/Posix: [Posix_connect Debug]Process h2d.drawteam.howtodraw :443
05-25 15:34:09.455 13334-22004/h2d.drawteam.howtodraw I/System.out: [socket][/192.168.1.107:36844] connected
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 NativeCrypto_SSL_do_handshake fd=0x7f7c141f94 shc=0x7f7c141f98 timeout_millis=8000 client_mode=1 npn=0x0
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake ++
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x10 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 handshake start in UNKWN before/connect initialization
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback calling handshakeCompleted
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback completed
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:UNKWN before/connect initialization
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WCH_A SSLv3 write client hello A
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1002 ret=-1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:error exit in 3RSH_A SSLv3 read server hello A
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake -- ret=-1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=8000
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake ++
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3RSH_A SSLv3 read server hello A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3RFINA SSLv3 read finished A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WCCSA SSLv3 write change cipher spec A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WFINA SSLv3 write finished A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3FLUSH SSLv3 flush data
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x20 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 handshake done in SSLOK SSL negotiation finished successfully
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback calling handshakeCompleted
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback completed
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1002 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:ok exit in SSLOK SSL negotiation finished successfully
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake -- ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw I/System.out: gba_cipher_suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw I/System.out: [OkHttp] sendRequest>>
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw I/System.out: [OkHttp] sendRequest<<
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 sslWrite buf=0x55727744e0 len=1079 write_timeout_millis=0
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 sslRead buf=0x55727744e0 len=2048,timeo=8000
I suspect that E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider error should tell me something, but as far as I googled it has something to do with permissions or wrong ID's, but all of them are correctly setup.
It turned out that Facebook does not give ads until the application is approved by the administrators in the Facebook developer console.

Running empty Android program - is this behavior expected?

I'm learning the basics of Android development and I've ran into some issues with setting up the programming environment. Now I've created a new Android Application Project and I'm running it using my phone. When I do, I get an error message on my phone: "Unfortunately, HelloWorld has stopped." and I'm not sure if it's supposed to or not, considering that I've done absolutely nothing to the project files. Here is the LogCat output in its entirety:
03-10 18:34:16.264: D/dalvikvm(2673): Late-enabling CheckJNI
03-10 18:34:16.361: W/dalvikvm(2673): VFY: unable to resolve static field 1559 (ActionBarWindow) in Landroid/support/v7/appcompat/R$styleable;
03-10 18:34:16.361: D/dalvikvm(2673): VFY: replacing opcode 0x62 at 0x0004
03-10 18:34:16.364: D/AndroidRuntime(2673): Shutting down VM
03-10 18:34:16.364: W/dalvikvm(2673): threadid=1: thread exiting with uncaught exception (group=0x416d7d40)
03-10 18:34:16.368: E/AndroidRuntime(2673): FATAL EXCEPTION: main
03-10 18:34:16.368: E/AndroidRuntime(2673): Process: com.example.helloworld, PID: 2673
03-10 18:34:16.368: E/AndroidRuntime(2673): java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:107)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)
03-10 18:34:16.368: E/AndroidRuntime(2673): at com.example.helloworld.MainActivity.onCreate(MainActivity.java:18)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.Activity.performCreate(Activity.java:5248)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2173)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2269)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.ActivityThread.access$800(ActivityThread.java:139)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.os.Handler.dispatchMessage(Handler.java:102)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.os.Looper.loop(Looper.java:136)
03-10 18:34:16.368: E/AndroidRuntime(2673): at android.app.ActivityThread.main(ActivityThread.java:5102)
03-10 18:34:16.368: E/AndroidRuntime(2673): at java.lang.reflect.Method.invokeNative(Native Method)
03-10 18:34:16.368: E/AndroidRuntime(2673): at java.lang.reflect.Method.invoke(Method.java:515)
03-10 18:34:16.368: E/AndroidRuntime(2673): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
03-10 18:34:16.368: E/AndroidRuntime(2673): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
03-10 18:34:16.368: E/AndroidRuntime(2673): at dalvik.system.NativeStart.main(Native Method)
03-10 18:34:18.259: I/Process(2673): Sending signal. PID: 2673 SIG: 9
03-10 18:36:57.062: W/dalvikvm(2984): VFY: unable to resolve static field 1559 (ActionBarWindow) in Landroid/support/v7/appcompat/R$styleable;
03-10 18:36:57.063: D/dalvikvm(2984): VFY: replacing opcode 0x62 at 0x0004
03-10 18:36:57.064: D/AndroidRuntime(2984): Shutting down VM
03-10 18:36:57.064: W/dalvikvm(2984): threadid=1: thread exiting with uncaught exception (group=0x416d7d40)
03-10 18:36:57.066: E/AndroidRuntime(2984): FATAL EXCEPTION: main
03-10 18:36:57.066: E/AndroidRuntime(2984): Process: com.example.helloworld, PID: 2984
03-10 18:36:57.066: E/AndroidRuntime(2984): java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:107)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:58)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)
03-10 18:36:57.066: E/AndroidRuntime(2984): at com.example.helloworld.MainActivity.onCreate(MainActivity.java:18)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.Activity.performCreate(Activity.java:5248)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2173)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2269)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.ActivityThread.access$800(ActivityThread.java:139)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.os.Handler.dispatchMessage(Handler.java:102)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.os.Looper.loop(Looper.java:136)
03-10 18:36:57.066: E/AndroidRuntime(2984): at android.app.ActivityThread.main(ActivityThread.java:5102)
03-10 18:36:57.066: E/AndroidRuntime(2984): at java.lang.reflect.Method.invokeNative(Native Method)
03-10 18:36:57.066: E/AndroidRuntime(2984): at java.lang.reflect.Method.invoke(Method.java:515)
03-10 18:36:57.066: E/AndroidRuntime(2984): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
03-10 18:36:57.066: E/AndroidRuntime(2984): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
03-10 18:3
6:57.066: E/AndroidRuntime(2984): at dalvik.system.NativeStart.main(Native Method)
So, is this normal behavior or have I done something wrong while setting up Eclipse, etc?
It looks like the Android compatibility library is not correctly configured for your project. In Eclipse, right click on the project in the package explorer and select Android Tools > Add Support Library. After setting up the support library, clean and rebuild your project.
This is normal behavior when reporting an error with your application.

Categories

Resources