android - I am using pdf viewer taking files from asset but my app becomes very slow.is there any solution? -


pdf viewer works fine when pdf file size small in case pdf files large (almost 350+ mb ).so takes long time open file.i facing problem occur when switch landscape portrait. please guide me there best solution pdf viewer.please don't make duplicate because there no suitable solution problem.

quran.java

public class quran extends fragment {     pdfview pdfview;     string openparah;      public quran(string parah) {         if (parah.equals("1")){             openparah="parah1.pdf";         }         else if (parah.equals("2")){             openparah="parah2.pdf";         }         else if (parah.equals("3")){             openparah="parah3.pdf";         }         else if (parah.equals("4")){             openparah="parah4.pdf";         }         else if (parah.equals("5")){             openparah="parah5.pdf";         }         else if (parah.equals("6")){             openparah="parah6.pdf";         }         else if (parah.equals("7")){             openparah="parah7.pdf";         }         else if (parah.equals("8")){             openparah="parah8.pdf";         }         else if (parah.equals("9")){             openparah="parah9.pdf";         }         else if (parah.equals("10")){             openparah="parah10.pdf";         }         else if (parah.equals("11")){             openparah="parah11.pdf";         }         else if (parah.equals("12")){             openparah="parah12.pdf";         }         else if (parah.equals("13")){             openparah="parah13.pdf";         }         else if (parah.equals("14")){             openparah="parah14.pdf";         }         else if (parah.equals("15")){             openparah="parah15.pdf";         }         else if (parah.equals("16")){             openparah="parah16.pdf";         }         else if (parah.equals("17")){             openparah="parah17.pdf";         }         else if (parah.equals("18")){             openparah="parah18.pdf";         }         else if (parah.equals("19")){             openparah="parah19.pdf";         }         else if (parah.equals("20")){             openparah="parah20.pdf";         }         else if (parah.equals("21")){             openparah="parah21.pdf";         }         else if (parah.equals("22")){             openparah="parah22.pdf";         }         else if (parah.equals("23")){             openparah="parah23.pdf";         }         else if (parah.equals("24")){             openparah="parah24.pdf";         }         else if (parah.equals("25")){             openparah="parah25.pdf";         }         else if (parah.equals("26")){             openparah="parah26.pdf";         }         else if (parah.equals("27")){             openparah="parah27.pdf";         }         else if (parah.equals("28")){             openparah="parah28.pdf";         }         else if (parah.equals("29")){             openparah="parah29.pdf";         }         else if (parah.equals("30")){             openparah="parah30.pdf";         }     }     @nullable     @override     public view oncreateview(layoutinflater inflater, @nullable viewgroup container, bundle savedinstancestate) {         view view = inflater.inflate(r.layout.activity_quran, null);          pdfview = (pdfview) view.findviewbyid(r.id.pdfview);         pdfview.fromasset(openparah)                 .enableswipe(true)                 .swipehorizontal(false)                 .enabledoubletap(true)                 .defaultpage(0)                 .enableannotationrendering(false)                 .password(null)                 .scrollhandle(null)                  .load();         return view;     }  } } 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -