0 Members and 3 Guests are viewing this topic.
11-08 08:25:42.359: E/AndroidRuntime(18774): FATAL EXCEPTION: main11-08 08:25:42.359: E/AndroidRuntime(18774): android.content.ActivityNotFoundException: Unable to find explicit activity class {org.omnimaga.eeems/org.omnimaga.eeems.ShowDescription}; have you declared this activity in your AndroidManifest.xml?11-08 08:25:42.359: E/AndroidRuntime(18774): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.app.Activity.startActivityForResult(Activity.java:2827)11-08 08:25:42.359: E/AndroidRuntime(18774): at org.omnimaga.eeems.OmnimagaActivity.onItemClick(OmnimagaActivity.java:61)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.widget.AdapterView.performItemClick(AdapterView.java:284)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.widget.ListView.performItemClick(ListView.java:3513)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1849)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.os.Handler.handleCallback(Handler.java:587)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.os.Handler.dispatchMessage(Handler.java:92)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.os.Looper.loop(Looper.java:130)11-08 08:25:42.359: E/AndroidRuntime(18774): at android.app.ActivityThread.main(ActivityThread.java:3835)11-08 08:25:42.359: E/AndroidRuntime(18774): at java.lang.reflect.Method.invokeNative(Native Method)11-08 08:25:42.359: E/AndroidRuntime(18774): at java.lang.reflect.Method.invoke(Method.java:507)11-08 08:25:42.359: E/AndroidRuntime(18774): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)11-08 08:25:42.359: E/AndroidRuntime(18774): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)11-08 08:25:42.359: E/AndroidRuntime(18774): at dalvik.system.NativeStart.main(Native Method)
It appears, according to the error, that you need to declare that class as an activity in your AndroidManifest.xml file. Also, does the ShowDescription class extend Activity?
public RSS(String uri) { try { SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); URL url = new URL(uri); URLConnection conn = url.openConnection(); conn.setConnectTimeout(0); conn.setReadTimeout(0); parser.parse(conn.getInputStream(), new RSSHandler()); } catch (SAXException ex) { ex.printStackTrace(); } catch (MalformedURLException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } catch (ParserConfigurationException ex) { ex.printStackTrace(); } }
SAXParser in a very round-about way eventually uses a URLConnection, so you might as well create your own and set its timeout.Code: [Select] public RSS(String uri) { try { SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); URL url = new URL(uri); URLConnection conn = url.openConnection(); conn.setConnectTimeout(0); conn.setReadTimeout(0); parser.parse(conn.getInputStream(), new RSSHandler()); } catch (SAXException ex) { ex.printStackTrace(); } catch (MalformedURLException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } catch (ParserConfigurationException ex) { ex.printStackTrace(); } }