2015-09-12 46 views
1

为什么三星棒棒糖设备中的sinch lib有问题,而不仅仅是棒棒糖?Sinch lib错误:数据库被锁定

服务启动时出现错误。

2238-2730/com.oombla E/sinch-android-rtc﹕ ERROR: sqlite Failed to exec 'PRAGMA journal_mode=WAL', error: database is locked (code: 5, extended code: 5)

+0

@登录操作后,信托隔距对的,我开始这个服务方法: ... ParseUser.logInInBackground(...)... public void done(ParseUser user,ParseException e){ if(user!= null){ ParseUser currentUser = ParseUser.getCurrentUser();如果(currentUser!= null){ Logger.debug(getClass(),“chat:startChatService”); 意图serviceIntent = new Intent(this,MessageService.class); startService(serviceIntent); \t \t } 这是注册活动。然后,我在整个应用程序中多次启动服务,这可能是一个issiue吗? – zkvarz

+0

@ trust-ratch我使用ChatManager单例类,其中我使用了我通过的Activity引用的bindService。这是错误的,因为我看到它。我致电 ChatManager.getInstance()。bindService(this); 但是在某个时间点活动参考不正确。 因此,ChatManager中的这一行不起作用: activity.bindService(new Intent(activity,MessageService.class),serviceConnection,Activity.BIND_AUTO_CREATE); 不起作用.. 现在我认为这可能是一个问题... – zkvarz

+0

是否在登录或启动MessageService类时中断? – cjensen

回答

0

你能提供你的代码,当你自服务初始化

我使用sinch 2个三星手机的棒棒糖,并能正常工作