Search:

Type: Posts; User: Tolls

Search: Search took 0.05 seconds.

  1. Replies
    16
    Views
    5,357

    You really need to take this to an Android forum...

    You really need to take this to an Android forum I would say.
    The one here always seems a bit quiet, so I'd find a more fully fledged one.
  2. Replies
    16
    Views
    5,357

    If you're working with Android you need the...

    If you're working with Android you need the Android development kit.
    I wouldn't attempt to use stuff designed for that on a J2SE project...
  3. Replies
    16
    Views
    5,357

    Right, let's start at the beginning. ...

    Right, let's start at the beginning.

    Presumably you have the following class in a jar file somewhere:
    "com.broadcom.bt.service.fm.FmReceiver"

    Otherwise this would fail:


    Class<?>...
  4. Replies
    16
    Views
    5,357

    Cast it to that class. Why are you writing your...

    Cast it to that class.
    Why are you writing your own?

    You don't need the source code to use a Java class.
  5. Replies
    16
    Views
    5,357

    But what is "instance"? How do the classes...

    But what is "instance"?
    How do the classes relate to each other?

    You wrote FmReceiver, but is "instance" an FmReceiver?

    You can only cast an object into something that the object is a class...
  6. Replies
    16
    Views
    5,357

    OK, so which bit throws the ClassCast? ...

    OK, so which bit throws the ClassCast?

    Presumably it's this bit:


    FmReceiver receiver = (FmReceiver) instance;


    Which implies that instance is not of the same FmReceiver class.
    How have...
  7. Replies
    16
    Views
    5,357

    I'm seriously confused here. What class is...

    I'm seriously confused here.

    What class is FM_RECEIVER_PATH, and how does that relate to the class in FM_SERVICE, and the FmReceiver?

    More importantly, on the line throwing the exception:

    ...
Results 1 to 7 of 7