刚开始学有点晕。。
private final ISecondary.Stub mSecondaryBinder = new ISecondary.Stub() {
public int getPid() {
return Process.myPid();
}
public void basicTypes(int anInt, long aLong, boolean aBoolean,
float aFloat, double aDouble, String aString) {
}
};
mSecondaryBinder是对象吗
ISecondary.Stub是一个抽象类 为什么还可以声明对象呢
求高手指点~
private final ISecondary.Stub mSecondaryBinder = new ISecondary.Stub() {
public int getPid() {
return Process.myPid();
}
public void basicTypes(int anInt, long aLong, boolean aBoolean,
float aFloat, double aDouble, String aString) {
}
};
mSecondaryBinder是对象吗
ISecondary.Stub是一个抽象类 为什么还可以声明对象呢
求高手指点~
解决方案 »
- 智能指针RefBase、LightRefBase的incStrong、decStrong是不是线程不安全的?
- 安卓tcp通信时休眠问题
- 谈谈我的android应用面向市场的经历
- 大家看看我这个地图移动的效果是怎么回事?哪里的问题?
- 新手求教,请大家帮我看段代码
- 编写安卓手机客户端相关问题
- 继承两个application
- 4.4.2新建的helloworld就报错,求大神解救
- Android布局设计中可以用一个XML文件include另一个XML文件,可是获取那个被包含的XML文件中的控件实例时总是报错!!
- 全编译5.0代码报错没有规则可以创建“out/target/common/obj/APPS/DocumentsUITests_intermediates/cla
- android provider中的authorities可以有多个么?
- 求教安卓按键监听
这样其实就已经派生出一个匿名内部类
一样的道理。