.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.
Related
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
I am new to android, as my study project I made an application. Which is syncing data from webservice and fetching in my application.
Everything working fine.
But in this scenario
Launch the application
Check for internet connection
Get content from server
Fetch data in application
5. When we turn off Mobile Data / WiFi , then press any button in application suddenly application crashes.
There is any way to handle this issue ?
Thanks in advance
Error message
08-14 21:28:57.670: E/AndroidRuntime(7466): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.tvc/com.myapp.tvc.SingleActivity}: java.lang.NullPointerException
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.ActivityThread.access$600(ActivityThread.java:140)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.os.Handler.dispatchMessage(Handler.java:99)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.os.Looper.loop(Looper.java:137)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.ActivityThread.main(ActivityThread.java:4895)
08-14 21:28:57.670: E/AndroidRuntime(7466): at java.lang.reflect.Method.invokeNative(Native Method)
08-14 21:28:57.670: E/AndroidRuntime(7466): at java.lang.reflect.Method.invoke(Method.java:511)
08-14 21:28:57.670: E/AndroidRuntime(7466): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
08-14 21:28:57.670: E/AndroidRuntime(7466): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
08-14 21:28:57.670: E/AndroidRuntime(7466): at dalvik.system.NativeStart.main(Native Method)
08-14 21:28:57.670: E/AndroidRuntime(7466): Caused by: java.lang.NullPointerException
08-14 21:28:57.670: E/AndroidRuntime(7466): at com.myapp.tvc.SingleActivity.onCreate(SingleActivity.java:76)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.Activity.performCreate(Activity.java:5163)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
08-14 21:28:57.670: E/AndroidRuntime(7466): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)
08-14 21:28:57.670: E/AndroidRuntime(7466): ... 11 more
whatever is at line 76 of SingleActivity is null, since you did not provide code the best we can say is find out what and why is null at that line
My most common error is something is nulll. Maybe the handler is defined inline and your using a variable that is null
Based on what you're describing and without seeing your code it sounds like you're just trying to connect to the internet when no internet connection exists. To fix this problem you can create a network checker/listener that can check network availability before you try to do anything that requires an internet connection. If no connection is available you just don't run the task that gets stuff from the server. A more involved set up could be designed using a BroadcastReceiver (e.g. so you know when connectivity becomes available again) but try this for now and see if that's your issue.
I'm implementing adMob ads to my app and I have a small problem with it. When I add the AdMob ads to my app and they're automatically positioned on the top of the layout it all works good. But when I try to move the ad down to the bottom of the relative layout the app crashes.
Logcat:
08-14 13:57:53.126: E/AndroidRuntime(4141): FATAL EXCEPTION: main
08-14 13:57:53.126: E/AndroidRuntime(4141): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.whizzappseasyvoicenotepad/com.whizzappseasyvoicenotepad.TabLayout}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.whizzappseasyvoicenotepad/com.whizzappseasyvoicenotepad.MainActivity}: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.Chronometer
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.access$600(ActivityThread.java:141)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.os.Handler.dispatchMessage(Handler.java:99)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.os.Looper.loop(Looper.java:137)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.main(ActivityThread.java:5103)
08-14 13:57:53.126: E/AndroidRuntime(4141): at java.lang.reflect.Method.invokeNative(Native Method)
08-14 13:57:53.126: E/AndroidRuntime(4141): at java.lang.reflect.Method.invoke(Method.java:525)
08-14 13:57:53.126: E/AndroidRuntime(4141): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
08-14 13:57:53.126: E/AndroidRuntime(4141): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-14 13:57:53.126: E/AndroidRuntime(4141): at dalvik.system.NativeStart.main(Native Method)
08-14 13:57:53.126: E/AndroidRuntime(4141): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.whizzappseasyvoicenotepad/com.whizzappseasyvoicenotepad.MainActivity}: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.Chronometer
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2054)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:749)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.widget.TabHost.setCurrentTab(TabHost.java:413)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.widget.TabHost.addTab(TabHost.java:240)
08-14 13:57:53.126: E/AndroidRuntime(4141): at com.whizzappseasyvoicenotepad.TabLayout.onCreate(TabLayout.java:33)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.Activity.performCreate(Activity.java:5133)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
08-14 13:57:53.126: E/AndroidRuntime(4141): ... 11 more
08-14 13:57:53.126: E/AndroidRuntime(4141): Caused by: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.Chronometer
08-14 13:57:53.126: E/AndroidRuntime(4141): at com.whizzappseasyvoicenotepad.MainActivity.onCreate(MainActivity.java:71)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.Activity.performCreate(Activity.java:5133)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
08-14 13:57:53.126: E/AndroidRuntime(4141): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
08-14 13:57:53.126: E/AndroidRuntime(4141): ... 21 more
I tested it, and everytime I implement ads, they work until I move them down to the bottom of the relative layout. What could be the problem? I can see from the logcat that there's a problem with ToggleButton so I even tried moving the togglebutton around the layout but it doesn't fix anything.
XML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
tools:context=".MainActivity" xmlns:app="http://schemas.android.com/apk/lib/com.google.ads">
<Chronometer
android:id="#+id/timer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/adView"
android:layout_centerHorizontal="true"
android:text="Chronometer" />
<ImageButton
android:id="#+id/recButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/timer"
android:layout_centerHorizontal="true"
android:background="#null"
android:onClick="recordBtnClick"
android:src="#drawable/record_btn" />
<ToggleButton
android:id="#+id/tBtn1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:textOff="Touch to record"
android:textOn="Touch to record" />
<com.google.ads.AdView
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="#+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:loadAdOnCreate="true"
ads:testDevices="TEST_EMULATOR, 3F40A7AF85746C87"
app:adSize="BANNER"
app:adUnitId="a1520b668ee78d8" >
</com.google.ads.AdView>
You have a class cast exception at line 71 of your code. If line 71 of your code is
chTimer = (Chronometer)findViewById(R.id.timer);
as you indicated in your response to Arshad then you have a confused build environment where the generated resource ids are not what you think they are.
Do a clean build so that the resource ids are regenerated.
Please check your MainActivity.java file on Line No. 71. You are passing the Chronometer id into the ImageButton. That's why you are getting a Class cast exception
When i'm trying to run my application i receive the error as The application Sample 2 (com.example.sample2) has stopped unexpectedly. Please try again Force close error. Logcat error is given below
02-07 03:46:52.292: I/Process(275): Sending signal. PID: 275 SIG: 9
02-07 03:47:01.045: D/AndroidRuntime(335): Shutting down VM
02-07 03:47:01.045: W/dalvikvm(335): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
02-07 03:47:01.106: E/AndroidRuntime(335): FATAL EXCEPTION: main
02-07 03:47:01.106: E/AndroidRuntime(335): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.projectsample1/com.example.projectsample1.MainActivity}: java.lang.ClassNotFoundException: com.example.projectsample1.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.example.projectsample1-1.apk]
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.os.Looper.loop(Looper.java:123)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.ActivityThread.main(ActivityThread.java:4627)
02-07 03:47:01.106: E/AndroidRuntime(335): at java.lang.reflect.Method.invokeNative(Native Method)
02-07 03:47:01.106: E/AndroidRuntime(335): at java.lang.reflect.Method.invoke(Method.java:521)
02-07 03:47:01.106: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-07 03:47:01.106: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-07 03:47:01.106: E/AndroidRuntime(335): at dalvik.system.NativeStart.main(Native Method)
02-07 03:47:01.106: E/AndroidRuntime(335): Caused by: java.lang.ClassNotFoundException: com.example.projectsample1.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.example.projectsample1-1.apk]
02-07 03:47:01.106: E/AndroidRuntime(335): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
02-07 03:47:01.106: E/AndroidRuntime(335): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
02-07 03:47:01.106: E/AndroidRuntime(335): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
02-07 03:47:01.106: E/AndroidRuntime(335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
02-07 03:47:01.106: E/AndroidRuntime(335): ... 11 more
02-07 03:52:01.252: I/Process(335): Sending signal. PID: 335 SIG: 9
Initially, this application was working well. But after a few days, it stopped working giving the above error. I don't seem to understand what is wrong. Please help me.
You have done one of two things:
Renamed your activity package or class name and not updated it in the manifest
or
Changed your manifest to reflect an activity that doesn't exist
Check your manifest against the fully qualified class name for that Activity. Make sure they match. Then go to Project -> Clean and clean your project.
I think, you declared Activity in AndroidManifes.xml, and register it as default to launch in your application. But, you have no Activity with this name as you declared in manifest. Just correct activity name in AndroidManifest.xml
Here is the error:
java.lang.ClassNotFoundException: com.example.projectsample1.MainActivity
The MainActivity class of the projectsample1 Application was not found.
Try to clear the dalvik-cache if you know how to do it.
Otherwise, re-install the application.
Or if you are the developer of the application, make sure to change the name of the class in the Manifest.xml file if you changed the name of the MainActivity class.
hi to all im having this problem.... can any one tell me what is causing the problem please....????
08-14 16:50:12.797: ERROR/Cursor(4453): Finalizing a Cursor that has not been deactivated or closed. database = /data/data/com.paad.whereami/databases/adrite, table = books, query = SELECT _id, bookno, timeFrom, timeTo, lnk, booklink, dTime, Cbook, Cid, Cdate FROM booksdb
08-14 16:50:12.797: ERROR/Cursor(4453): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
08-14 16:50:12.797: ERROR/Cursor(4453): at android.database.sqlite.SQLiteCursor.<init>(SQLiteCursor.java:210)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:53)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1345)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1229)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1184)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1264)
08-14 16:50:12.797: ERROR/Cursor(4453): at com.meme.whatami.elhgsdatabase.getAllInfo(elhgsdatabase.java:157)
08-14 16:50:12.797: ERROR/Cursor(4453): at com.meme.whatami.WhatAmI$7.run(WhatAmI.java:1331)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.os.Handler.handleCallback(Handler.java:587)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.os.Handler.dispatchMessage(Handler.java:92)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.os.Looper.loop(Looper.java:123)
08-14 16:50:12.797: ERROR/Cursor(4453): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-14 16:50:12.797: ERROR/Cursor(4453): at java.lang.reflect.Method.invokeNative(Native Method)
08-14 16:50:12.797: ERROR/Cursor(4453): at java.lang.reflect.Method.invoke(Method.java:521)
08-14 16:50:12.797: ERROR/Cursor(4453): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-14 16:50:12.797: ERROR/Cursor(4453): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-14 16:50:12.797: ERROR/Cursor(4453): at dalvik.system.NativeStart.main(Native Method)
After your call to "query" in com.meme.whatami.elhgsdatabase.getAllInfo(elhgsdatabase.java:157) call:
cursor.close();