Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在我的手机和eclipse模拟器上测试了我的应用程序(针对google api level 16),但是即将到来的通知只会显示在真实手机的通知栏中,而不是模拟器中。有什么想法吗?
你能检查一下你regID在模拟器上工作时能得到一个吗?
regID
GCMRegistrar.checkDevice(this); GCMRegistrar.checkManifest(this); final String regId = GCMRegistrar.getRegistrationId(this); if (regId.equals("")) { GCMRegistrar.register(this, SENDER_ID); } else { Log.v(TAG, "Already registered"); }