Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9265831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:10:27+00:00 2026-06-18T14:10:27+00:00

> private class RssFeedTask extends AsyncTask<String, Void, String> { > String response = ;

  • 0
>     private class RssFeedTask extends AsyncTask<String, Void, String> {
>       String response = "";
>     
>       @Override
>       protected void onPreExecute() {
>           // TODO: Dialog
>       }
>     
>       @Override
>       protected String doInBackground(String... urls) {
>           try {
>               String feed = "http://google.com";
>               HtmListParser rh = new HtmListParser();
>               rssStr = rh.getLatestArticles(feed);
>           } catch (Exception e) {
>               Log.e("error_connection", "Error in http connection "+e.toString());
>           }
>           return response;
>     
>       }
>     
>       @Override
>       protected void onPostExecute(String result) {
>           // TODO: dismiss Dialog and set adapter
>       }
>     }



>     public class HtmListParser {
>       private RssFeedStructure feedStr = new RssFeedStructure();
>       private List<RssFeedStructure> rssList = new ArrayList<RssFeedStructure>();
>     
>     
>       public List<RssFeedStructure> getLatestArticles(String feedUrl) {
>            try {                                              
>              Document doc = Jsoup.connect(feedUrl).get();
>              
>             } catch (IOException e) {
>                 // TODO Auto-generated catch block
>                 e.printStackTrace();
>             }
>            
>     
>           return null;
>       }
>     
>     }


**and The Exceptions:**
02-07 08:40:47.346: E/AndroidRuntime(1027): FATAL EXCEPTION: AsyncTask #1
02-07 08:40:47.346: E/AndroidRuntime(1027): java.lang.RuntimeException: An error occured while executing

doInBackground()
02-07 08:40:47.346: E/AndroidRuntime(1027): at android.os.AsyncTask$3.done(AsyncTask.java:299)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
02-07 08:40:47.346: E/AndroidRuntime(1027): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.lang.Thread.run(Thread.java:856)
02-07 08:40:47.346: E/AndroidRuntime(1027): Caused by: java.lang.NoClassDefFoundError: org.jsoup.Jsoup
02-07 08:40:47.346: E/AndroidRuntime(1027): at com.newsinlevels.helper.HtmListParser.getLatestArticles(HtmListParser.java:20)
02-07 08:40:47.346: E/AndroidRuntime(1027): at com.newsinlevels.activity.MainActivity$RssFeedTask.doInBackground(MainActivity.java:120)
02-07 08:40:47.346: E/AndroidRuntime(1027): at com.newsinlevels.activity.MainActivity$RssFeedTask.doInBackground(MainActivity.java:1)
02-07 08:40:47.346: E/AndroidRuntime(1027): at android.os.AsyncTask$2.call(AsyncTask.java:287)
02-07 08:40:47.346: E/AndroidRuntime(1027): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
02-07 08:40:47.346: E/AndroidRuntime(1027): … 4 more

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:10:28+00:00Added an answer on June 18, 2026 at 2:10 pm

    The Android runtime environment cannot find the JSoup class in class path when executing.
    You need to ensure that the JSoup library is included in the package deployed to the android.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

private class Test extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() { //
I have this code: private class DownloadWebPageTask extends AsyncTask<String, Void, String> { @Override protected
This is my AsyncTask class private class UpdatingNews extends AsyncTask<Void, Void, String> { @Override
private class ExecuteLocations extends AsyncTask<String, Void, Void>{ private final ProgressDialog dialog = new ProgressDialog(ListProfiles.this);
i have a class extends asynctask private class taskMK extends AsyncTask<Void,Void,JSONObject>{ String url; JSONObject
I have this AsyncTask: private class GetMyFlights extends AsyncTask<String, Void, Integer> { private ProgressDialog
Here is my AsyncTask class: private class Task extends AsyncTask<Void, Integer, Void> { @Override
private class DownloadLargeFileTask extends AsyncTask<Void, Void, Void> { private final ProgressDialog dialog; public DownloadLargeFileTask(ProgressDialog
I have this code so far: private class DownloadWebPageTask extends AsyncTask<String, Void, String> {
private class NameFilter extends Filter { @Override protected FilterResults performFiltering(CharSequence constraint) { constraint =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.