How can I utilize Yahoo Weather API in android -
i want develop app using yahoo weather api android. want current , forecast weather details.
i have tried different sources (e.g.:https://github.com/survivingwithandroid/weatherlib, getting error weatherlib api android , unable execute activity in android weatherlib) , getting different errors m unable resplve. there can proper tutorial or guide!
error:
-17 08:50:48.961 3168-3168/com.survivingwithandroid.weather e/androidruntime﹕ fatal exception: main process: com.survivingwithandroid.weather, pid: 3168 java.lang.runtimeexception: unable start activity componentinfo{com.survivingwithandroid.weather/com.survivingwithandroid.weather.mainactivity}: java.lang.nullpointerexception: attempt invoke interface method 'boolean java.util.list.isempty()' on null object reference @ android.app.activitythread.performlaunchactivity(activitythread.java:2298) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2360) @ android.app.activitythread.access$800(activitythread.java:144) @ android.app.activitythread$h.handlemessage(activitythread.java:1278) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:135) @ android.app.activitythread.main(activitythread.java:5221) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:899) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:694) caused by: java.lang.nullpointerexception: attempt invoke interface method 'boolean java.util.list.isempty()' on null object reference @ com.survivingwithandroid.weather.billing.util.iabhelper.startsetup(iabhelper.java:267) @ com.survivingwithandroid.weather.mainactivity.oncreate(mainactivity.java:95) @ android.app.activity.performcreate(activity.java:5933) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1105) @ android.app.activitythread.performlaunchactivity(activitythread.java:2251) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2360) @ android.app.activitythread.access$800(activitythread.java:144) @ android.app.activitythread$h.handlemessage(activitythread.java:1278) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:135) @ android.app.activitythread.main(activitythread.java:5221) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:899) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:694)
logcat messages:
12-18 09:37:40.866 1648-1648/com.survivingwithandroid.weather d/swa﹕ oncreate 12-18 09:37:41.721 1648-1663/com.survivingwithandroid.weather i/art﹕ background sticky concurrent mark sweep gc freed 1784(95kb) allocspace objects, 0(0b) los objects, 0% free, 2mb/2mb, paused 16.214ms total 80.155ms 12-18 09:37:41.965 1648-1663/com.survivingwithandroid.weather i/art﹕ background partial concurrent mark sweep gc freed 79(16kb) allocspace objects, 0(0b) los objects, 39% free, 2mb/3mb, paused 3.978ms total 238.766ms 12-18 09:37:42.494 1648-1648/com.survivingwithandroid.weather d/iabhelper﹕ starting in-app billing setup. 12-18 09:37:42.698 1648-1672/com.survivingwithandroid.weather d/openglrenderer﹕ render dirty regions requested: true 12-18 09:37:42.772 1648-1648/com.survivingwithandroid.weather d/﹕ hostconnection::get() new host connection established 0xb04630c0, tid 1648 12-18 09:37:43.000 1648-1648/com.survivingwithandroid.weather d/atlas﹕ validating map... 12-18 09:37:43.240 1648-1672/com.survivingwithandroid.weather d/libegl﹕ loaded /system/lib/egl/libegl_emulation.so 12-18 09:37:43.451 1648-1672/com.survivingwithandroid.weather d/libegl﹕ loaded /system/lib/egl/libglesv1_cm_emulation.so 12-18 09:37:43.473 1648-1672/com.survivingwithandroid.weather d/libegl﹕ loaded /system/lib/egl/libglesv2_emulation.so 12-18 09:37:43.502 1648-1672/com.survivingwithandroid.weather d/﹕ hostconnection::get() new host connection established 0xafc1b770, tid 1672 12-18 09:37:43.548 1648-1672/com.survivingwithandroid.weather i/openglrenderer﹕ initialized egl, version 1.4 12-18 09:37:43.643 1648-1672/com.survivingwithandroid.weather d/openglrenderer﹕ enabling debug mode 0 12-18 09:37:43.663 1648-1672/com.survivingwithandroid.weather w/egl_emulation﹕ eglsurfaceattrib not implemented 12-18 09:37:43.663 1648-1672/com.survivingwithandroid.weather w/openglrenderer﹕ failed set egl_swap_behavior on surface 0xafc07ee0, error=egl_success 12-18 09:37:43.939 1648-1672/com.survivingwithandroid.weather w/egl_emulation﹕ eglsurfaceattrib not implemented 12-18 09:37:43.939 1648-1672/com.survivingwithandroid.weather w/openglrenderer﹕ failed set egl_swap_behavior on surface 0xafc07f00, error=egl_success 12-18 09:37:43.973 1648-1648/com.survivingwithandroid.weather i/choreographer﹕ skipped 35 frames! application may doing work on main thread.
thanks!
the project not meant eclipse should use android studio. anyway there under https://github.com/survivingwithandroid/weatherlib/tree/master/lib/release can find jars can import eclipse. advice use android studio
Comments
Post a Comment