Soru & Cevap

Play Storeye Hata Yorumları

06.07.2017 - 01:34

Benim yaptığım uygulama sözler üzerine kopyala , paylaş  ve düzenleme seçneği var.  Kendi denedğim telefonlarda hata yok sıfır hata. Ama bazı telefonlarda hata verip uygulamayı kapattığını öğrendim.  

Hata Verilen  yer: (Denediğim telefonlarda hata vermiyor)

 

 public void onClick(View view) {
        final Dialog d = new Dialog(itemView.getContext());
        d.requestWindowFeature(Window.FEATURE_NO_TITLE);
        d.setContentView(R.layout.kopyalapaylasdialog);
        final EditText sozunuz;

 

 

        sozunuz = (EditText) d.findViewById(R.id.sozunuz);
        sozunuz.setText(soz.getText(), TextView.BufferType.EDITABLE);


        Button paylas = (Button) d.findViewById(R.id.paylas);
        //SAVE
        paylas.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent sendIntent = new Intent(android.content.Intent.ACTION_SEND);
                sendIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Acayip Sözler");
                sendIntent.putExtra(android.content.Intent.EXTRA_TEXT,sozunuz.getText().toString());
                sendIntent.setType("text/plain");
                itemView.getContext().startActivity(Intent.createChooser(sendIntent, "Paylaşmak İçin Seçiniz"));
                d.dismiss();
                MainActivity.showGecisReklam();


            }
        });


        Button kopyala = (Button) d.findViewById(R.id.kopyala);
        //SAVE
        kopyala.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                ClipboardManager clipboard = (ClipboardManager)itemView.getContext().getSystemService(Context.CLIPBOARD_SERVICE);
                ClipData clip = ClipData.newPlainText("Acayip Sözler",sozunuz.getText().toString());
                clipboard.setPrimaryClip(clip);
                Toast.makeText(itemView.getContext(), "Kopyalandı", Toast.LENGTH_SHORT).show();
                d.dismiss();
                MainActivity.showGecisReklam();

 

            }
        });

        Button duzenle = (Button) d.findViewById(R.id.duzenle);
        //SAVE
        duzenle.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                sozunuz.setFocusableInTouchMode(true);
                sozunuz.setFocusable(true);
                sozunuz.requestFocus();
                InputMethodManager imm = (InputMethodManager)itemView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
                imm.showSoftInput(sozunuz, InputMethodManager.SHOW_IMPLICIT);

                Toast.makeText(itemView.getContext(), "Düzenle", Toast.LENGTH_SHORT).show();

            }
        });

 

Sizce hatanın sebebi ne olabilir şimdiden teşekkürler.

Uygulamanın Adı : Acayip Sözler

 

 

8 Görüntülenme

3 Cevap

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

Profile picture for user huseyinbagci.42
huseyinbagci.42
06.07.2017 - 06:14

Hatayı Genymotionla buldum. Verilen Hata:

 

 

07-06 15:11:04.724 26342-26342/com.hubabilisim.acayipszler E/AndroidRuntime: FATAL EXCEPTION: main
                                                                             Process: com.hubabilisim.acayipszler, PID: 26342
                                                                             android.view.InflateException: Binary XML file line #6: Binary XML file line #6: Error inflating class TextView
                                                                             Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class TextView
                                                                             Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 6: TypedValue{t=0x2/d=0x101009b a=1}
                                                                                 at android.content.res.TypedArray.getColorStateList(TypedArray.java:528)
                                                                                 at android.widget.TextView.<init>(TextView.java:783)
                                                                                 at android.widget.TextView.<init>(TextView.java:704)
                                                                                 at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:59)
                                                                                 at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:55)
                                                                                 at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
                                                                                 at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)
                                                                                 at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072)
                                                                                 at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
                                                                                 at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater$WrapperFactory2.onCreateView(CalligraphyLayoutInflater.java:280)
                                                                                 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
                                                                                 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
                                                                                 at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
                                                                                 at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
                                                                                 at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
                                                                                 at uk.co.chrisjenx.calligraphy.CalligraphyLayoutInflater.inflate(CalligraphyLayoutInflater.java:60)
                                                                                 at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
                                                                                 at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
                                                                                 at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:414)
                                                                                 at android.app.Dialog.setContentView(Dialog.java:506)
                                                                                 at com.hubabilisim.acayipszler.RecyclerViewAdapter$MyViewHolder$1.onClick(RecyclerViewAdapter.java:90)
                                                                                 at android.view.View.performClick(View.java:5610)
                                                                                 at android.view.View$PerformClick.run(View.java:22265)
                                                                                 at android.os.Handler.handleCallback(Handler.java:751)
                                                                                 at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                 at android.os.Looper.loop(Looper.java:154)
                                                                                 at android.app.ActivityThread.main(ActivityThread.java:6077)
                                                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

 

Profile picture for user huseyinbagci.42
huseyinbagci.42
06.07.2017 - 03:25
Sdk hatasi ise ne yapmalıyım ?
picture-78056-1505211216.jpg
sevdeaybuke
06.07.2017 - 01:56

Uygulamanızı genymotion dan deneyerek verdiği hataya bakabilir misiniz.Birde hangi telefonlarda bu hatayı alıyor ve kapanıyor muhtemelemen sdk hatasıdır.