Son Forum Aktiviteleri
4Seekbar degerini Intentle nasil baska activitye aktaririz?
Yapmak istedigim sey, Seekbar'a atadigim ImageView'leri kullanicinin sectigi degere gore 4 sayfa sonra bulunan ozet sayfasindaki ImageView alaninda gozukmesi.
yani basitce adim adim anlairsam;
1-Seekbardan istenilen resim belirlenir
2-Checkbox ile belirlenen resim secilir.(Checkbox secildigi zaman secilen resim ozet sayfasindaki yerini alir)
3-NextButton'una basilip bir sonraki sayfaya gecilir.
4-Dort sayfa sonundaki Ozet kisminda secilen resimler belirecek/
SORUN NEDIR?
Buradaki temel sorunum onClick ile OnProgressChanged arasindaki baglantiyi kuramadim. ustelik bunlari kurduktan sonra Intent ile nasil ozet sayfasina cevirecegimi anlayamiyorum. Tesekkurler.
HATAYI BULAMIYORUM YARDIM EDER MISINIZ?
03-24 18:33:28.841 11912-11912/com.example.android.kamera E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.kamera, PID: 11912
java.lang.OutOfMemoryError: Failed to allocate a 196390668 byte allocation with 4194304 free bytes and 135MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:655)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:488)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1085)
at android.content.res.Resources.createFromResourceStream(Resources.java:3302)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:3028)
at android.content.res.Resources.loadDrawable(Resources.java:2858)
at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:388)
at android.content.res.TypedArray.getDrawable(TypedArray.java:872)
at android.widget.ImageView.<init>(ImageView.java:152)
at android.widget.ImageView.<init>(ImageView.java:140)
at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:72)
at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:68)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:839)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:842)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at com.example.android.kamera.Main2Activity.onCreate(Main2Activity.java:11)
at android.app.Activity.performCreate(Activity.java:6342)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2523)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2636)
at android.app.ActivityThread.access$1000(ActivityThread.java:180)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1494)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5811)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:768)
java.lang.OutOfMemoryError Hatası Alıyorum
Merhaba! MainActivity'den ikinci bir activity'ye gecis yaparken, belli sayida Imageview'den fazla olursa uygulama kendini kapatiyor. Sistemde hic bir hata gostergesi yok.
Orn: ikinci sayfaya 3 Imageview ekledigimde. program sorunsuz calisiyor. Yalniz bu sayi 9-10'u buldugunda, uygulamayi acip buton'a basinca uygulama kendini kapatiyor.
tesekkurler
Uygulamadan atma
Bu konu bir cozume vardi mi? ayni sorun bende de var. belli sayinin ustunde Imageview atinca program kendini kapatiyor.