We are using picasso v2.5.2, viewpager, fragment activity, in our app.
Our app keep splashing and restarting activity again and again (hang> went black> activityRestart> black app window> activity restart) if I press back button continously then It go back. What's the reason? It silently crash and restart same activity?
It always occurred when user open too many apps and keep it open by pressing home key in tablet Samsung T230, Android 4.4.2 and reopen our app.
After dumping memory HeapHero pointing to memory leaks in picasso but I'm not sure what is causing this. Picasso issue
Logs during splashing or restarting activity
with package filter
06-26 12:24:16.446 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1246]+980ms
06-26 12:24:16.456 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1267]+629ms
06-26 12:24:16.456 18083-18083/com.abccompany.xyzapp W/System.err: java.net.UnknownHostException: Unable to resolve host "s3-eu-west-1.amazonaws.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:394)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:93)
at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
06-26 12:24:16.456 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1247]+979ms
06-26 12:24:16.456 18083-18083/com.abccompany.xyzapp W/System.err: java.net.UnknownHostException: Unable to resolve host "s3-eu-west-1.amazonaws.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:394)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:93)
at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
06-26 12:24:16.456 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1248]+975ms
06-26 12:24:16.456 18083-18083/com.abccompany.xyzapp W/System.err: java.net.UnknownHostException: Unable to resolve host "s3-eu-west-1.amazonaws.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:394)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:93)
at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
06-26 12:24:16.466 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1249]+971ms
06-26 12:24:16.466 18083-18083/com.abccompany.xyzapp W/System.err: java.net.UnknownHostException: Unable to resolve host "s3-eu-west-1.amazonaws.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:394)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:93)
at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
06-26 12:24:16.466 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1250]+967ms
06-26 12:24:16.466 18083-18083/com.abccompany.xyzapp W/System.err: java.net.UnknownHostException: Unable to resolve host "s3-eu-west-1.amazonaws.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:394)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:93)
at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
06-26 12:24:16.466 18083-18083/com.abccompany.xyzapp D/Picasso: Main errored [R1251]+964ms
06-26 12:24:16.466 18083-18083/com.abccompany.xyzapp W/System.err: java.net.UnknownHostException: Unable to resolve host "s3-eu-west-1.amazonaws.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:394)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.squareup.picasso.UrlConnectionDownloader.load(UrlConnectionDownloader.java:93)
at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:47)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:206)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
no filter and
class.06-26 11:27:14.751 1050-1050/? E/GCoreFlp: Bound FusedProviderService with LocationManager
06-26 11:27:14.761 577-656/? D/LocationProviderProxy: applying state to connected service
applying state to connected service
06-26 11:27:14.791 143-143/? I/SurfaceFlinger: id=238 createSurf (1x1),1 flag=404, DouponDetai
06-26 11:27:14.791 577-3981/? I/SpenGestureManager: setFocusWindow21170
06-26 11:27:14.802 8089-8089/? W/System.err: java.lang.NoSuchFieldException: SYSTEM_UI_FLAG_REMOVE_NAVIGATION
06-26 11:27:14.802 734-970/? D/KeyguardUpdateMonitor: sendKeyguardVisibilityChanged(true)
06-26 11:27:14.802 734-970/? I/KeyguardUpdateMonitor: visibility is same
06-26 11:27:14.802 956-1658/? W/GAV4: Thread[Thread-62,5,main]: Using destination https://ssl.google-analytics.com
06-26 11:27:14.802 8089-8089/? W/System.err: at java.lang.Class.getField(Class.java:724)
at com.sec.android.gallery3d.util.GalleryFeature.checkSystemUiVisibility(GalleryFeature.java:1680)
at com.sec.android.gallery3d.util.GalleryFeature.init(GalleryFeature.java:339)
at com.sec.android.gallery3d.app.GalleryAppImpl.getDataManager(GalleryAppImpl.java:263)
at com.sec.android.gallery3d.provider.GalleryProvider.onCreate(GalleryProvider.java:126)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
at android.app.ActivityThread.installProvider(ActivityThread.java:5233)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4828)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4711)
at android.app.ActivityThread.access$1600(ActivityThread.java:175)
06-26 11:27:14.812 8089-8089/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
06-26 11:27:14.822 734-826/? D/KeyguardUpdateMonitor: sendKeyguardVisibilityChanged(true)
06-26 11:27:14.822 734-826/? I/KeyguardUpdateMonitor: visibility is same
06-26 11:27:14.822 577-654/? D/PointerIcon: setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
setMouseCustomIcon IconType is same.101
06-26 11:27:14.842 7601-7601/com.abccompany.xyzapp E/ViewRootImpl: sendUserActionEvent() mView == null
06-26 11:27:14.842 7601-7601/com.abccompany.xyzapp D/Picasso: Main canceled [R49]+21s target got garbage collected
06-26 11:27:14.852 7601-7601/com.abccompany.xyzapp D/Picasso: Main canceled [R50]+21s target got garbage collected
06-26 11:27:14.852 734-826/? D/KeyguardUpdateMonitor: sendKeyguardVisibilityChanged(true)
06-26 11:27:14.852 734-826/? I/KeyguardUpdateMonitor: visibility is same
06-26 11:27:14.852 577-8103/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1509 com.android.server.InputMethodManagerService$4.run:2684 java.lang.Thread.run:841 <bottom of call stack> <bottom of call stack>
06-26 11:27:14.892 8089-8089/? D/Spen: SpenSdk jar version = 55
SpenSdk apk version = 3.0.91
Server UPDATE Check
06-26 11:27:14.892 8089-8089/? W/linker: libSPenBase.so has text relocations. This is wasting memory and is a security risk. Please fix.
06-26 11:27:14.892 8089-8089/? D/SPenError: JNI_OnLoad
06-26 11:27:14.902 8089-8089/? D/JNI_Bitmap: Init .. Done
06-26 11:27:14.902 8089-8089/? D/SPenSpiDecoder: JNI_OnLoad .. Done
06-26 11:27:14.902 8089-8089/? D/SPenError: JNI_OnLoad Success
06-26 11:27:14.902 8089-8089/? D/PluginManager: Registering com/samsung/android/sdk/pen/plugin/framework/JniPluginManager natives
Registering com/samsung/android/sdk/pen/plugin/framework/SpenPluginManager$PluginListener natives
06-26 11:27:14.902 8089-8089/? D/Init_SPenSdk_Jni: JNI_OnLoad
JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_ObjectBase_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_ObjectStroke_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_ObjectImage_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_ObjectText_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_ObjectContainer_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_PageDoc_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_NoteDoc_Jni: check build type eng[0]
JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_NoteFile_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model_ObjectUtil_Jni: JNI_OnLoad .. Done
06-26 11:27:14.912 8089-8089/? D/Model: OnLoad class Done
06-26 11:27:14.922 8089-8089/? D/dalvikvm: No JNI_OnLoad found in /system/lib/libSPenSkia.so 0x41dc1c80, skipping init
06-26 11:27:14.922 8089-8089/? D/SPen_Library: Draw Engine JNI_OnLoad enter!!
Canvas JNI_OnLoad enter!!
06-26 11:27:14.932 8089-8089/? D/SPen_Library: Canvas JNI_OnLoad Success
TextView JNI_OnLoad enter!!
TextView JNI_OnLoad Success
Text JNI_OnLoad enter!!
Text JNI_OnLoad Success
FontManager JNI_OnLoad enter!!
FontManager JNI_OnLoad Success
CapturePage JNI_OnLoad enter!!
CapturePage JNI_OnLoad Success
Multi JNI_OnLoad enter!!
Multi JNI_OnLoad Success
Draw Engine JNI_OnLoad Success
06-26 11:27:14.942 8089-8089/? D/SPen_Library: Brush JNI_OnLoad enter!!
06-26 11:27:14.942 734-747/? D/KeyguardUpdateMonitor: sendKeyguardVisibilityChanged(true)
06-26 11:27:14.942 734-747/? I/KeyguardUpdateMonitor: visibility is same
06-26 11:27:14.942 8089-8089/? D/SPen_Library: Brush JNI_OnLoad Success
ChineseBrush JNI_OnLoad enter!!
ChineseBrush JNI_OnLoad Success
06-26 11:27:14.952 8089-8089/? D/SPen_Library: InkPen JNI_OnLoad enter!!
06-26 11:27:14.952 7601-7601/com.abccompany.xyzapp W/test: application is in foreground: false
06-26 11:27:14.952 8089-8089/? D/SPen_Library: InkPen JNI_OnLoad Success
Marker JNI_OnLoad enter!!
Marker JNI_OnLoad Success
06-26 11:27:14.962 8089-8089/? D/SPen_Library: Pencil JNI_OnLoad enter!!
Pencil JNI_OnLoad Success
06-26 11:27:14.962 7601-7601/com.abccompany.xyzapp W/test: application is visible: false
06-26 11:27:14.962 8089-8089/? D/SPen_Library: NativePen JNI_OnLoad enter!!
NativePen JNI_OnLoad Success
06-26 11:27:14.962 734-826/? D/KeyguardUpdateMonitor: sendKeyguardVisibilityChanged(true)
06-26 11:27:14.962 734-826/? I/KeyguardUpdateMonitor: visibility is same
06-26 11:27:14.962 8089-8089/? D/SPen_Library: MagicPen JNI_OnLoad enter!!
MagicPen JNI_OnLoad Success
06-26 11:27:14.972 143-203/? I/SurfaceFlinger: id=238 Removed DouponDetai (38/39)
06-26 11:27:14.972 143-674/? I/SurfaceFlinger: id=238 Removed DouponDetai (-2/39)
06-26 11:27:14.972 734-748/? D/KeyguardUpdateMonitor: sendKeyguardVisibilityChanged(true)
06-26 11:27:14.972 734-748/? I/KeyguardUpdateMonitor: visibility is same
06-26 11:27:14.972 8089-8089/? W/linker: libSPenHSV.so has text relocations. This is wasting memory and is a security risk. Please fix.
06-26 11:27:14.982 8089-8089/? D/dalvikvm: No JNI_OnLoad found in /system/lib/libSPenHSV.so 0x41dc1c80, skipping init
No JNI_OnLoad found in /system/lib/libSPenVIRecognition.so 0x41dc1c80, skipping init
No JNI_OnLoad found in /system/lib/libSPenVITextAll.so 0x41dc1c80, skipping init
06-26 11:27:14.982 8089-8089/? D/Spen: SpenSdk Libraries are loaded.
06-26 11:27:14.982 8089-8089/? D/Init_SPenSdk_Jni: SPenSdk_init2
06-26 11:27:14.982 8089-8089/? D/Init_SPenSdk: Init - screen_width = 800, screen_height = 1280, maxCacheSize = 5 M
Total S Pen SDK Directory Size = 0
06-26 11:27:14.982 8089-8089/? D/Spen: initialize complete
06-26 11:27:14.982 577-654/? D/PointerIcon: setMouseIconStyle1 pointerType: 1001iconType:101 flag:0
setMouseCustomIcon IconType is same.101
06-26 11:27:14.992 8089-8089/? W/ContextImpl: Implicit intents with startService are not safe: Intent { act=com.sec.knox.containeragent.service.containerinstallermanager.ContainerInstallerManagerService } android.content.ContextWrapper.bindService:529 com.sec.knox.containeragent.ContainerInstallerManager.<init>:64 com.sec.android.gallery3d.util.GalleryUtils.setKNOXInstallMode:2192
06-26 11:27:14.992 734-734/? D/PhoneStatusBar: setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
06-26 11:27:14.992 577-3981/? W/ActivityManager: Permission Denial: getCurrentUser() from pid=7601, uid=10157 requires android.permission.INTERACT_ACROSS_USERS
06-26 11:27:14.992 577-911/? D/StatusBarManagerService: tr p:7601,o:f
06-26 11:27:14.992 577-1197/? W/ActivityManager: Unable to start service Intent { act=com.sec.knox.containeragent.service.containerinstallermanager.ContainerInstallerManagerService } U=0: not found
06-26 11:27:15.002 7601-7601/com.abccompany.xyzapp I/FacebookEventLog: inside trackscreen Event:View Coupon Detail param: C. Big King
06-26 11:27:15.012 8089-8089/? D/NearbySource: Nearby Source Create!
06-26 11:27:15.022 8089-8089/? D/NearbyContext: Nearby Context Create!
06-26 11:27:15.042 138-333/? E/cutils: Failed to mkdirat(/storage/extSdCard/Android): Read-only file system
06-26 11:27:15.042 8089-8089/? W/ContextImpl: Failed to ensure directory: /storage/extSdCard/Android/data/com.sec.android.gallery3d/cache
06-26 11:27:15.042 138-333/? W/Vold: Returning OperationFailed - no handler for errno 30
06-26 11:27:15.112 734-734/? D/PhoneStatusBar: setSemiTransparentMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
06-26 11:27:15.112 577-910/? D/StatusBarManagerService: semi p:7601,o:f
06-26 11:27:15.162 956-1658/? W/GAV4: Thread[Thread-62,5,main]: Using destination https://ssl.google-analytics.com
you are using the abc.eu-west-1.elb.amazonaws.com package or class but it can not find out by the program. so you have to define this in the mainfest with the particular activity.
second if you press back button and it goes to privious activity then you are using onbackpressed method in your activity. and provide action as you want
Related
Hi im trying to follow this tutorial
I followed all the steps and when i try to execute the app i get the following error:
03-14 17:24:19.618 3532-3532/ar.com.taxiexpress.taxiexpress E/dalvikvm: Could not find class 'ar.com.taxiexpress.taxiexpress.Mail', referenced from method ar.com.taxiexpress.taxiexpress.EnvioMail$SendMail.doInBackground
03-14 17:24:19.618 3532-3532/ar.com.taxiexpress.taxiexpress W/dalvikvm: VFY: unable to resolve new-instance 2544 (Lar/com/taxiexpress/taxiexpress/Mail;) in Lar/com/taxiexpress/taxiexpress/EnvioMail$SendMail;
03-14 17:24:19.618 3532-3532/ar.com.taxiexpress.taxiexpress D/dalvikvm: VFY: replacing opcode 0x22 at 0x0001
03-14 17:24:19.618 3532-3532/ar.com.taxiexpress.taxiexpress W/dalvikvm: Unable to resolve superclass of Lar/com/taxiexpress/taxiexpress/Mail; (9576)
03-14 17:24:19.618 3532-3532/ar.com.taxiexpress.taxiexpress W/dalvikvm: Link of class 'Lar/com/taxiexpress/taxiexpress/Mail;' failed
03-14 17:24:19.618 3532-3532/ar.com.taxiexpress.taxiexpress D/dalvikvm: DexOpt: unable to opt direct call 0x51e4 at 0x07 in Lar/com/taxiexpress/taxiexpress/EnvioMail$SendMail;.doInBackground
03-14 17:24:19.650 3532-3676/ar.com.taxiexpress.taxiexpress W/dalvikvm: threadid=17: thread exiting with uncaught exception (group=0xa4d31b20)
03-14 17:24:19.650 3532-3676/ar.com.taxiexpress.taxiexpress E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
Process: ar.com.taxiexpress.taxiexpress, PID: 3532
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NoClassDefFoundError: ar.com.taxiexpress.taxiexpress.Mail
at ar.com.taxiexpress.taxiexpress.EnvioMail$SendMail.doInBackground(EnvioMail.java:51)
at ar.com.taxiexpress.taxiexpress.EnvioMail$SendMail.doInBackground(EnvioMail.java:34)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
03-14 17:24:19.678 3532-3532/ar.com.taxiexpress.taxiexpress W/EGL_genymotion: eglSurfaceAttrib not implemented
03-14 17:24:19.854 3532-3532/ar.com.taxiexpress.taxiexpress W/EGL_genymotion: eglSurfaceAttrib not implemented
03-14 17:24:20.382 3532-3546/ar.com.taxiexpress.taxiexpress I/GMPM: Tag Manager is not found and thus will not be used
03-14 17:27:01.184 3532-3538/ar.com.taxiexpress.taxiexpress D/dalvikvm: GC_FOR_ALLOC freed 305K, 3% free 16909K/17288K, paused 8ms, total 8ms
03-14 17:29:19.670 3532-3676/ar.com.taxiexpress.taxiexpress I/Process: Sending signal. PID: 3532 SIG: 9
could someone tell me what should I check to resolve this issue, thanks in advance.
installed XAMPP server, created database and successfully accessed it from chrome browser as well as from android emulator. However whenever i try to run application from my Samsung device, its refusing to connect my IP address.
My IP address is not registered in DNS.
I tried:
1) accessing from url- 127.0.0.1 and localhost
2) modified httpd.conf and httpd-xampp.conf file- changed to Require all granted permission
3) uninstalled my Antivirus
4) changed firewall and proxy setting
5) Created new Inbound Rule in firewall advance security
6) re typed INTERNET permission
7) wrote httpPost.setHeader("Accept", "application/json"); in code
Still Im getting following error:
W/IInputConnectionWrapper(22232): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(22232): setComposingText on inactive InputConnection
W/IInputConnectionWrapper(22232): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(22232): setComposingText on inactive InputConnection
D/request!(22232): starting
W/System.err(22232): org.apache.http.conn.HttpHostConnectException: Connection to
http://192.XXX.X.XXX refused
W/System.err(22232): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
W/System.err(22232): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
W/System.err(22232): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
W/System.err(22232): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
W/System.err(22232): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
W/System.err(22232): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
W/System.err(22232): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
W/System.err(22232): at com.example.mysqltest.JSONParser.makeHttpRequest(JSONParser.java:111)
W/System.err(22232): at com.example.mysqltest.Login$AttemptLogin.doInBackground(Login.java:121)
W/System.err(22232): at com.example.mysqltest.Login$AttemptLogin.doInBackground(Login.java:1)
W/System.err(22232): at android.os.AsyncTask$2.call(AsyncTask.java:287)
W/System.err(22232): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
W/System.err(22232): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
W/System.err(22232): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
W/System.err(22232): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
W/System.err(22232): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
W/System.err(22232): at java.lang.Thread.run(Thread.java:856)
W/System.err(22232): Caused by: java.net.ConnectException: failed to connect to /192.168.0.114 (port 80): connect failed: ETIMEDOUT (Connection timed out)
W/System.err(22232): at libcore.io.IoBridge.connect(IoBridge.java:114)
W/System.err(22232): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
W/System.err(22232): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460)
W/System.err(22232): at java.net.Socket.connect(Socket.java:832)
W/System.err(22232): at `enter code here`org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
W/System.err(22232): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
W/System.err(22232): ... 16 more
W/System.err(22232): Caused by: libcore.io.ErrnoException: connect failed: ETIMEDOUT (Connection timed out)
W/System.err(22232): at libcore.io.Posix.connect(Native Method)
W/System.err(22232): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
W/System.err(22232): at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
W/System.err(22232): at libcore.io.IoBridge.connect(IoBridge.java:112)
W/System.err(22232): ... 21 more
E/Buffer Error(22232): Error converting result java.lang.NullPointerException
E/JSON Parser(22232): Error parsing data org.json.JSONException: End of input at character 0 of
W/dalvikvm(22232): threadid=12: thread exiting with uncaught exception (group=0x41180438)
E/AndroidRuntime(22232): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime(22232): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime(22232): at android.os.AsyncTask$3.done(AsyncTask.java:299)
E/AndroidRuntime(22232): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
E/AndroidRuntime(22232): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime(22232): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
E/AndroidRuntime(22232): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime(22232): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
E/AndroidRuntime(22232): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
E/AndroidRuntime(22232): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
E/AndroidRuntime(22232): at java.lang.Thread.run(Thread.java:856)
E/AndroidRuntime(22232): Caused by: java.lang.NullPointerException
E/AndroidRuntime(22232): at com.example.mysqltest.Login$AttemptLogin.doInBackground(Login.java:125)
E/AndroidRuntime(22232): at com.example.mysqltest.Login$AttemptLogin.doInBackground(Login.java:1)
E/AndroidRuntime(22232): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/AndroidRuntime(22232): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
E/AndroidRuntime(22232): ... 5 more
I/Choreographer(22232): Skipped 1143 frames! The application may be doing too much work on its main thread.
E/WindowManager(22232): Activity com.example.mysqltest.Login has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView#41bea8a8 that was originally added here
E/WindowManager(22232): android.view.WindowLeaked: Activity com.example.mysqltest.Login has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView#41bea8a8 that was originally added here
E/WindowManager(22232): at android.view.ViewRootImpl.<init>(ViewRootImpl.java:419)
E/WindowManager(22232): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:322)
E/WindowManager(22232): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:234)
E/WindowManager(22232): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:153)
E/WindowManager(22232): at android.view.Window$LocalWindowManager.addView(Window.java:557)
E/WindowManager(22232): at android.app.Dialog.show(Dialog.java:277)
E/WindowManager(22232): at com.example.mysqltest.Login$AttemptLogin.onPreExecute(Login.java:103)
E/WindowManager(22232): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:586)
E/WindowManager(22232): at android.os.AsyncTask.execute(AsyncTask.java:534)
E/WindowManager(22232): at com.example.mysqltest.Login.onClick(Login.java:77)
E/WindowManager(22232): at android.view.View.performClick(View.java:4191)
E/WindowManager(22232): at android.view.View$PerformClick.run(View.java:17229)
E/WindowManager(22232): at android.os.Handler.handleCallback(Handler.java:615)
E/WindowManager(22232): at android.os.Handler.dispatchMessage(Handler.java:92)
E/WindowManager(22232): at android.os.Looper.loop(Looper.java:137)
E/WindowManager(22232): at android.app.ActivityThread.main(ActivityThread.java:4960)
E/WindowManager(22232): at java.lang.reflect.Method.invokeNative(Native Method)
E/WindowManager(22232): at java.lang.reflect.Method.invoke(Method.java:511)
E/WindowManager(22232): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
E/WindowManager(22232): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
E/WindowManager(22232): at dalvik.system.NativeStart.main(Native Method)"
Please try to check your local IP address of your PC. Connect the phone to the same network (WIFI). Then use the following address/port to connect to your PC.
In Android:
URL: your_pc_local_ip
PORT: 80 (but I think it is not mandatory)
I use in this way and it is working properly for me.
I tried doing this code from this site: http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/ . Everything worked out properly but when i tried to VIEW and ADD products the emulator goes "Unfortunately, MainScreenActivity has stopped.
help please?? :D
here is my logcat file:
06-26 15:53:16.227: E/AndroidRuntime(1396): FATAL EXCEPTION: AsyncTask #1
06-26 15:53:16.227: E/AndroidRuntime(1396): java.lang.RuntimeException: An error occured while executing doInBackground()
06-26 15:53:16.227: E/AndroidRuntime(1396): at android.os.AsyncTask$3.done(AsyncTask.java:299)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.lang.Thread.run(Thread.java:856)
06-26 15:53:16.227: E/AndroidRuntime(1396): Caused by: java.lang.IllegalArgumentException: Illegal character in authority at index 15: http://10.0.2.2 /try/get_all_products.php?
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.net.URI.create(URI.java:727)
06-26 15:53:16.227: E/AndroidRuntime(1396): at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:75)
06-26 15:53:16.227: E/AndroidRuntime(1396): at com.example.mainscreenactivity.JSONParser.makeHttpRequest(JSONParser.java:60)
06-26 15:53:16.227: E/AndroidRuntime(1396): at com.example.mainscreenactivity.AllProductsActivity$LoadAllProducts.doInBackground(AllProductsActivity.java:128)
06-26 15:53:16.227: E/AndroidRuntime(1396): at com.example.mainscreenactivity.AllProductsActivity$LoadAllProducts.doInBackground(AllProductsActivity.java:1)
06-26 15:53:16.227: E/AndroidRuntime(1396): at android.os.AsyncTask$2.call(AsyncTask.java:287)
06-26 15:53:16.227: E/AndroidRuntime(1396): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
06-26 15:53:16.227: E/AndroidRuntime(1396): ... 3 more
06-26 15:53:16.570: W/ActivityManager(276): Force finishing activity com.example.mainscreenactivity/.AllProductsActivity
06-26 15:53:16.737: W/WindowManager(276): Failure taking screenshot for (266x425) to layer 21020
You have a space character after the ip address: http://10.0.2.2*/
I am not able to figure this problem out.I added the following jars.
httpClient-4.2.5.jar
httpcore-4.2.4.jar
httpmime-4.2.5.jar
I added these jar through Add External JARs option in Build Paths and then added them manually in the libs folder of my eclipse project still it gives me the following error while debugging the following line.
MultipartEntity multipartEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
Actually I am trying to upload multiple images to my php server using this.
Logcat:
06-26 02:06:08.082: E/AndroidRuntime(20389): FATAL EXCEPTION: IntentService[SyncService]
06-26 02:06:08.082: E/AndroidRuntime(20389): java.lang.NoClassDefFoundError: org.apache.http.entity.mime.MultipartEntity
06-26 02:06:08.082: E/AndroidRuntime(20389): at com.example.cameralibrary.ServerCommunication.uploadUserPhoto(ServerCommunication.java:43)
06-26 02:06:08.082: E/AndroidRuntime(20389): at com.example.cameralibrary.SyncService.onHandleIntent(SyncService.java:38)
06-26 02:06:08.082: E/AndroidRuntime(20389): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
06-26 02:06:08.082: E/AndroidRuntime(20389): at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 02:06:08.082: E/AndroidRuntime(20389): at android.os.Looper.loop(Looper.java:138)
06-26 02:06:08.082: E/AndroidRuntime(20389): at android.os.HandlerThread.run(HandlerThread.java:60)
06-26 02:06:08.082: E/AndroidRuntime(20389): Caused by: java.lang.ClassNotFoundException: org.apache.http.entity.mime.MultipartEntity in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.example.cameralibrary-2.apk]
06-26 02:06:08.082: E/AndroidRuntime(20389): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
06-26 02:06:08.082: E/AndroidRuntime(20389): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
06-26 02:06:08.082: E/AndroidRuntime(20389): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
Found out myself.The problem was that I didn't include the READ_EXTERNAL_STORAGE permission.
I added the following line in my manifest and it worked.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
.I have simple map applicaiton.First simply my map is working.then i allow to develop my application i got Force close.When i run my application i got following error:
08-14 20:57:26.855: E/AndroidRuntime(207): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mapss/com.example.mapss.MainActivity}: java.lang.SecurityException: Requires ACCESS_FINE_LOCATION permission
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.os.Handler.dispatchMessage(Handler.java:99)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.os.Looper.loop(Looper.java:123)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.ActivityThread.main(ActivityThread.java:4203)
08-14 20:57:26.855: E/AndroidRuntime(207): at java.lang.reflect.Method.invokeNative(Native Method)
08-14 20:57:26.855: E/AndroidRuntime(207): at java.lang.reflect.Method.invoke(Method.java:521)
08-14 20:57:26.855: E/AndroidRuntime(207): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
08-14 20:57:26.855: E/AndroidRuntime(207): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
08-14 20:57:26.855: E/AndroidRuntime(207): at dalvik.system.NativeStart.main(Native Method)
08-14 20:57:26.855: E/AndroidRuntime(207): Caused by: java.lang.SecurityException: Requires ACCESS_FINE_LOCATION permission
08-14 20:57:26.855: E/AndroidRuntime(207): at android.os.Parcel.readException(Parcel.java:1218)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.os.Parcel.readException(Parcel.java:1206)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.location.ILocationManager$Stub$Proxy.getLastKnownLocation(ILocationManager.java:776)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.location.LocationManager.getLastKnownLocation(LocationManager.java:945)
08-14 20:57:26.855: E/AndroidRuntime(207): at com.example.mapss.MainActivity.onCreate(MainActivity.java:36)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
08-14 20:57:26.855: E/AndroidRuntime(207): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
08-14 20:57:26.855: E/AndroidRuntime(207): ... 11 more
add this line to your AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
When using Maps or other types of services, you need to make sure that you add appropriate permissions to your manifest, in this case:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
You will need to add permissions when you use things like the internet and calling.