Reputation: 699
I am working on application in which I need to integrate socket mobile sdk of bluetooth scanner.They have provided sample code but it's not working when i started pairing a device.How to run that code?
These are the steps that SingleEntry App have.
Upvotes: 0
Views: 1319
Reputation: 96
@user2455320, I am sorry to see you were having issues using the ScanAPI SDK, I hope your issues have been resolved. If not, post further here on StackOverflow, or contact us directly.
Please note that our SDK is only obtainable for registered developers, so it would be best if you did not post the libraries files from the SDK in a public forum. You are more than welcome to post your code even when it uses our APIs (as we do publically publish our API document), but please remove the library files that were posted in your download file.
Again, thanks for being a SocketMobile developer. And if there is anything we can do to make the experience better, please let us know ([email protected]) and we will strive to implement it!
Regards, Len Ott CTO & VP Engineering Socket Mobile
Upvotes: 0
Reputation: 2137
You have not configured your device correctly. To configure it correctly you need to do following:-
If your problem solves dont forget to Upvote. If you face any problem then free to ask with comment.
To resolve -27 you need to include ZXing library in the android application and following code should be used in the AndroidManifest File
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sample.scanqrcode"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:name="com.sample.scanqrcode.ScanQRCodeApplication"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.SocketMobile.ScanAPI.SoftScanActivity"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar" />
<activity
android:name="com.sample.scanqrcode.HomeActivity"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.google.zxing.client.android.CaptureActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="com.google.zxing.client.android.SCAN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.sample.scanqrcode.EzPairActivity"></activity>
</application>
</manifest>
Upvotes: 1