Federico,
Check your AndroidManifest.xml for your project. You’ll need something that looks like this:
<application
android:name=".OTPApp"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:allowBackup="true">
With the “.” notation, the application android:name attribute assumes that the OTPApp class is in the package defined by the “package” attribute at the top of your manifest (package="
edu.usf.cutr.opentripplanner.android", for main OTP project).
For example, if your main application package is “my.package”, then OTPApp.java must be in “main/java/my/package” directory in the project.
Alternately, you can fully qualify the package in the manifest. For example, if OTPApp is in “my.package.otherpackage”, your manifest would look like:
<application
android:name="my.package.otherpackage.OTPApp"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:allowBackup="true">
If you can share how you’re using OTP Android, we’d be interested in hearing it!
Sean