A
A
Artur_Case2014-03-01 18:26:08
Android
Artur_Case, 2014-03-01 18:26:08

How to make the code in the tutorial work?

I do everything as here ( habrahabr.ru/post/115127 ), but still there are highlighted errors. The finished example ( dl.dropbox.com/u/4931596/stackParser.zip ) also refuses to compile. Help me figure out what's wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mintormo, 2014-03-01
@Mintormo

You don't have a target platform in your manifest. Replace with this:

<uses-sdk android:minSdkVersion="8"
          android:targetSdkVersion="15" />

The rest seems to be ok. Of course, 15 can be replaced with any other desired API level. If the highlighted errors persist try Project -> Clean. Often helps. I can also recommend a library for parsing html: jsoup.org/. I liked her better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question