简体   繁体   English

Android LinkedIn无法在设备上运行,并且在模拟器上运行正常

[英]Android LinkedIn does not work on device and works fine on emulator

I have to do LinkedIn integration in my Android app. 我必须在我的Android应用程序中进行LinkedIn集成。 I have done integration using the sample given on Google Code and tried to post update. 我使用Google Code上提供的示例进行了集成,并尝试发布更新。 It given me access to post network updates denied message. 它让我可以访问帖子网络更新被拒绝的消息。 So I found some similar questions on forum and extracted the linked in jar and then re-packaged after editing LinkedInAppUrls.properties file. 所以我在论坛上找到了一些类似的问题并在jar中提取了链接,然后在编辑LinkedInAppUrls.properties文件后重新打包。 Here it generates the Access Token and when creating the LinkedInApiClient it throws me VerifyError. 在这里它生成访问令牌,在创建LinkedInApiClient时,它会抛出VerifyError。 However I stopped further steps and removed the LinkedInApiClient creation and run the same app on Device. 但是我停止了进一步的步骤并删除了LinkedInApiClient创建并在Device上运行相同的应用程序。 It gives me 它给了我

OAuthException: Communication with OAuth service failed

I don't know what is the problem but tried by clearing cache, cookies everything on browser. 我不知道是什么问题,但尝试通过清除缓存,cookie浏览器上的一切。 Still I am unable to get rid of this OAuthException, how do I do it?. 我仍然无法摆脱这个OAuthException,我该怎么做? The App works fine with same code on Emulator. 该应用程序在模拟器上使用相同的代码正常工作。

Thanks in Advance 提前致谢

It is quite strange issue on LinkedIn and even Twitter too. 这在LinkedIn甚至Twitter上也是一个非常奇怪的问题。 They will throw OAuthException when time is wrong. 当时间错误时,他们会抛出OAuthException。 On My Emulator as it takes time of my pc by default it worked but not on device. 在我的模拟器上,因为默认情况下我的电脑需要时间,但它不起作用。 The reason my device is late by 2 minutes. 我的设备迟到2分钟的原因。 It is quite strange but it worked when i added that 2 minutes of time. 这很奇怪,但是当我加上2分钟的时间时它就起作用了。

I suggest you to use this api for linkedIn. 我建议你使用这个api for linkedIn。 It helps me to post status and get contacts. 它帮助我发布状态和获取联系人。

http://code.google.com/p/socialauth-android/ http://code.google.com/p/socialauth-android/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 声音在Android设备上无效。 在模拟器上正常工作 - Sound won't work on android device. Works fine on emulator Google登录android模拟器无法正常运行,但是设备运行正常 - Google sign in android emulator does not function, butin device works fine Android EditText字段可在模拟器上正常运行,但不能在设备上运行 - Android EditText field works fine on emulator, but not device Android应用程序可以在模拟器中正常运行,但不能在真实设备中运行? - Android application works fine in emulator but not in real device? Android应用程序可以在模拟器上正常运行,但不能在真实设备上运行 - Android Application works fine on emulator but not on a real device Webview在模拟器上工作正常,但在设备上工作不正常 - Webview works fine on emulator but not on device Android模拟器无法正确显示TextView(在设备上正常运行) - Android emulator not displaying a TextView properly (works fine on device) Mono Android-OverridePendingTransition在设备上不起作用,在模拟器中工作正常 - Mono Android - OverridePendingTransition not working on device, works fine in emulator Flutter 电话身份验证在模拟器上工作正常,但在真实设备上不工作(Android) - Flutter Phone authentication works fine on emulator but not working on real device (Android) SQLite数据库Android应用程序在模拟器中无法在我的设备中正常运行 - SQLite database Android app works fine in emulator not in my device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM