Hi guys,

I've the following doubt:

I want to define the following interface for my service:

    package com.android.service;

    import com.android.model.News;

    interface INews {
        void updateNews(String search);
        List<News> getUpdatedNews();
    }

It has got only 2 methods, one of them I want to return a List of my
own class <News>, i'ts possible to define a method to return a list of
your own classes. I've tried it and I've the following error:

        import com.commonsware.android.model.News; -> couldn't find
import for class com.android.model.News

The class is in that package and is implementing the interface
Parcelable.

How can I recover a list of my own objects defined in my service
class?

Thanks in advance :-).
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to