android - How can i have a java interface return an object of a non primitive type? -
can java interface methods can return primitive types (int,string,etc?)
i want have method return type "bitmap". ide complaining cannot resolve symbol "bitmap":
public interface mycontract { public bitmap getbitmap(); ....
i suspect i'm misunderstanding inherent interfaces preventing me doing this?
can java interface methods can return primitive types (int,string,etc?)
no, can return valid data type.
i want have method return type "bitmap". ide complaining cannot resolve symbol "bitmap":
there no type named bitmap
visible java source file. missing import
statement. and, perhaps, there typo in type name. example, on android, android.graphics.bitmap
not have capital m in name.
Comments
Post a Comment