Hi all,

I'm porting Android to a particular board and I have some questions.

First, Can we implements just 50 % of a fonctionality. For exemple, in the
framework there is a Class that contain a method  public String
myFunction(){  //frameword Code}. Can I change it for public static String
myFunction(){ return "");}?

Finally, a question more complex, can I make my own implementation of an
Interface a pass it in a framework factory decorated with @hide. Exemple :

@hide
public class MyFactory{

     public InterfaceC getAObject(){
        return (InterfaceC) new A();
     }

     public InterfaceC getBObject(){
       return (InterfaceC) new B();
     }
}

A and B implement InterfaceC.
Factory is a framework class in android package.


Can I write something like

public class MyFactory{

     public InterfaceC getAObject(){
        return (InterfaceC) new D();
     }

     public InterfaceC getBObject(){
       return (InterfaceC) new D();
     }
}

D implements InterfaceC.

Do this two modification are CTS compliant?


Thanks,
Adrien

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to