Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I investigated it for you a little bit.<br> I assume you're using Eclipse with current version of ADT plugin. First let's ensure you're adding jars properly:</p> <ol> <li>You have to create folder named <code>libs</code> on root level of your project (alongside the <code>src</code>, <code>res</code>, etc.).</li> <li>Copy 3rd-party jars into <code>libs</code>.</li> <li>Right-click on project and execute Refresh, ADT will discover libs and will add them as Android Dependencies.</li> </ol> <p>Now for the libraries. All dependencies of <code>natty-07.jar</code> listed by Maven are:</p> <pre><code>antlr-2.7.7.jar antlr-runtime-3.2.jar backport-util-concurrent-3.1.jar commons-codec-1.5.jar commons-lang-2.6.jar commons-logging-1.1.1.jar ical4j-1.0.2.jar stringtemplate-3.2.jar </code></pre> <p>Yep, that's 2.3 MB of dependencies you have to copy into <code>libs</code>.<br> I don't think all of them are necessary at runtime, but I have no way to tell which ones are crucial.<br> Using ProGuard probably could slim down some of them, but that's another story. </p> <p>I created quick 'n dirty application with minSdkVersion="8" and targetSdkVersion="17". Then put sample code you provided into Activity and run it against input: <code>"the day before next thursday"</code>. As a result I got single group with date <code>[Wed May 22 16:52:49 GMT 2013]</code>, which is OK since today is Friday May 17.</p> <hr> <p><strong>Edit 2013-06-02</strong><br> essential code:<br> <a href="http://pastebin.com/XrF5k10M" rel="nofollow">http://pastebin.com/XrF5k10M</a><br> complete solution:<br> <a href="https://www.dropbox.com/sh/qk2cs51twrpobuz/YaFZWiG5jP/StackOverflow/16610375/NattyApp.zip" rel="nofollow">https://www.dropbox.com/sh/qk2cs51twrpobuz/YaFZWiG5jP/StackOverflow/16610375/NattyApp.zip</a> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload