Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Class Not Found Error when using intent Receiver #7

Closed
lolsborn opened this issue May 7, 2010 · 1 comment
Closed

Class Not Found Error when using intent Receiver #7

lolsborn opened this issue May 7, 2010 · 1 comment

Comments

@lolsborn
Copy link

lolsborn commented May 7, 2010

When I build everything with Ant and http://code.google.com/p/scalaforandroid/ everything works fine, but when I build my project with sbt/android-plugin Android throws an exception on boot when looking for my BroadcastReceiver subclass. Launching the app through the main activity still works fine, just this broadcast receiver class is not found.

My BroadcastReceiver is simple:

class CoreReceiver extends BroadcastReceiver {
  val BOOT_COMPLETED = "android.intent.action.BOOT_COMPLETED"

  override def onReceive(context: Context, intent: Intent) {
     if (intent.getAction().equals(BOOT_COMPLETED)) {
       // Do something
    }
  }
}

and I have the following in my AndroidManifest:

  <receiver android:name="CoreReceiver">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
    </intent-filter>
  </receiver>
@jberkel
Copy link
Owner

jberkel commented May 18, 2010

closed in 1118d58

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants