Soru & Cevap

GridView Hata Alıyorum

16.05.2014 - 03:10

merhaba

gridView e ImageAdapter ile resimler yerleştırdım. sayfayı aşağı dogru cekınce sanal cihazda durduruldu hatası alıyorum. 

log kayıtları aşağıda.

teşekkürler

[code]

05-16 12:04:14.566: E/Trace(1818): error opening trace file: No such file or directory (2)
05-16 12:04:27.146: E/dalvikvm-heap(1818): Out of memory on a 1702412-byte allocation.
05-16 12:04:27.196: E/InputEventReceiver(1818): Exception dispatching input event.
05-16 12:04:27.226: E/AndroidRuntime(1818): FATAL EXCEPTION: main
05-16 12:04:27.226: E/AndroidRuntime(1818): java.lang.OutOfMemoryError
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.content.res.Resources.loadDrawable(Resources.java:1965)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.content.res.Resources.getDrawable(Resources.java:660)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.ImageView.resolveUri(ImageView.java:616)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.ImageView.setImageResource(ImageView.java:349)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at com.example.gridviewdenem.ImageAdapter.getView(ImageAdapter.java:75)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.AbsListView.obtainView(AbsListView.java:2143)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.GridView.makeAndAddView(GridView.java:1341)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.GridView.makeRow(GridView.java:341)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.GridView.fillDown(GridView.java:283)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.GridView.fillGap(GridView.java:243)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4930)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.AbsListView.scrollIfNeeded(AbsListView.java:3087)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.widget.AbsListView.onTouchEvent(AbsListView.java:3361)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.View.dispatchTouchEvent(View.java:7239)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2168)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1903)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1953)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1405)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.app.Activity.dispatchTouchEvent(Activity.java:2410)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1901)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.View.dispatchPointerEvent(View.java:7419)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3220)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3165)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4292)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4271)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4363)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:171)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:4342)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:4382)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.Choreographer.doCallbacks(Choreographer.java:562)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.Choreographer.doFrame(Choreographer.java:530)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.os.Handler.handleCallback(Handler.java:725)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.os.Handler.dispatchMessage(Handler.java:92)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.os.Looper.loop(Looper.java:137)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at android.app.ActivityThread.main(ActivityThread.java:5039)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at java.lang.reflect.Method.invokeNative(Native Method)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at java.lang.reflect.Method.invoke(Method.java:511)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-16 12:04:27.226: E/AndroidRuntime(1818):     at dalvik.system.NativeStart.main(Native Method)

 

[/code]

6 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-2176-1429627808.jpg
bekirdursun
17.05.2014 - 01:50

Buradan faydalanabilirsin,