Cannot generate texture from bitmap in Android -


i working on android app , until used eclipse android emulator testing it.

today have decided try on phone (xiaomi mi2) when lunch (via usb debugging) face 2 problems:

  1. i have background picture emulator show doesn't appear on phone - black background shown.

  2. maybe problem previous one, logcat shows errors:

03-01 22:18:35.599: e/openglrenderer(1109): cannot generate texture bitmap 03-01 22:18:35.629: e/spannablestringbuilder(1109): span_exclusive_exclusive spans cannot have 0 length

activity code:

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="480dip" android:layout_margintop="10dip" android:background="@drawable/bg"> <edittext     android:id="@+id/eu_un"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:ems="10"     android:inputtype="textpersonname"     android:hint="@string/enter_user_name" > </edittext>  <edittext     android:id="@+id/eu_pw"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_alignparentleft="true"     android:layout_below="@+id/eu_un"     android:ems="10"     android:hint="@string/enter_password"     android:inputtype="textpassword|textpersonname" />  <button     android:id="@+id/nu"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_centerhorizontal="true"     android:layout_margintop="134dp"     android:text="@string/signup" />  <button     android:id="@+id/eu_signin"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_below="@+id/eu_pw"     android:layout_centerhorizontal="true"     android:text="@string/login" />  <button     android:id="@+id/exit"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_alignleft="@+id/eu_signin"     android:layout_alignparentbottom="true"     android:layout_marginbottom="61dp"     android:text="@string/exit" />  </relativelayout> 

java code:

public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_main);      un = (edittext) findviewbyid(r.id.eu_un);     pw = (edittext) findviewbyid(r.id.eu_pw);     nu = (button) findviewbyid(r.id.nu);     eu = (button) findviewbyid(r.id.eu_signin);     exit = (button) findviewbyid(r.id.exit);     ma = this;      nu.setonclicklistener(new onclicklistener() {         public void onclick(view v) {             newuser();         }     }); 

this weird bug. did searching , found similar posts seem suggest has device's keyboard settings:

android - span_exclusive_exclusive spans cannot have 0 length

nexus 7 error "span_exclusive_exclusive spans cannot have 0 length"

most of them have specific phone in question.

span_exclusive_exclusive spans cannot have 0 length error whenever edittext becomes empty

there tons more if search

http://www.google.com/search?client=safari&rls=en&q=span_exclusive_exclusive+spans+cannot+have+a+zero+length&ie=utf-8&oe=utf-8

i know doesn't provide quite answer hoping - ideally in right direction.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -