What is the best method to show large multi line text in android app.

Course Queries Syllabus Queries 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

Hi StackOverFlow Community, I am trying to create an android app in which i had to show the Syllabus of our college comprising of various branches,for which i had the data in PDF format of 100's of pages.Now what is the best way to display all the text for my users.I myself got some ideas but don't know how to implement them they are

  • Opeaning the PDF's directly in my app(Coudn't understand how to do this any tutorials are welcomed.)
  • Storing the text in a offline like a HTML format and opening them in webview(Don't know whether it's possible but heard we can do this.)
  • Screen shots of each page and opeaning in an image viewer(Very hard task given that there are 100's of pages for a single branch and not so user friendly.)

Any other effective methods are welcomed along with tutorials as i am new here and any idea of implementing the first or second method also please.Sorry if i had said any thong wrong, Thank you.

profilepic.png
manpreet 2 years ago

Try this code for opening the pdf file.

public class MyPdfViewActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    WebView mWebView=new WebView(MyPdfViewActivity.this);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.getSettings().setPluginsEnabled(true);
    mWebView.loadUrl("https://docs.google.com/gview?      embedded=true&url="+LinkTo);
    setContentView(mWebView);
}
}

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.