Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit 241db12

Browse files
committed
..
2 parents dd0ced1 + 426d356 commit 241db12

File tree

6 files changed

+161
-7
lines changed

6 files changed

+161
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ Simple Usage
3636
• Import this library to your workspace and include in to your android project
3737

3838

39-
Declare permission for library
39+
You need to merge android manifest on this library to your project by declare like this on project.properties
4040

41-
```xml
42-
<uses-permission android:name="android.permission.BLUETOOTH" />
43-
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
41+
```java
42+
manifestmerger.enabled=true
4443
```
4544

4645
• Declare BluetoothSPP like this
@@ -124,13 +123,13 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
124123
}
125124
```
126125

127-
• If you want to send any data
126+
• If you want to send any data. boolean parameter is mean that data will send with ending by LF and CR or not. If yes your data will added by LF & CR
128127
```java
129-
bt.send("Message");
128+
bt.send("Message", true);
130129
```
131130
or
132131
```java
133-
bt.send(new byte[] { 0x30, 0x38, ....});
132+
bt.send(new byte[] { 0x30, 0x38, ....}, false);
134133
```
135134

136135
• Listener for data receiving
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="app.akexorcist.bluetoothsppautoconnect"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="19" />
10+
11+
<uses-permission android:name="android.permission.BLUETOOTH" />
12+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@drawable/ic_launcher"
17+
android:label="@string/app_name"
18+
android:theme="@style/AppTheme" >
19+
<activity
20+
android:name="app.akexorcist.bluetoothsppautoconnect.Main"
21+
android:label="@string/app_name"
22+
android:screenOrientation="portrait" >
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN" />
25+
26+
<category android:name="android.intent.category.LAUNCHER" />
27+
</intent-filter>
28+
</activity>
29+
</application>
30+
31+
</manifest>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="app.akexorcist.bluetoothsppdevicelist"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="19" />
10+
11+
<uses-permission android:name="android.permission.BLUETOOTH" />
12+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@drawable/ic_launcher"
17+
android:label="@string/app_name"
18+
android:theme="@style/AppTheme" >
19+
<activity
20+
android:name="app.akexorcist.bluetoothsppdevicelist.Main"
21+
android:label="@string/app_name"
22+
android:screenOrientation="portrait" >
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN" />
25+
26+
<category android:name="android.intent.category.LAUNCHER" />
27+
</intent-filter>
28+
</activity>
29+
30+
</application>
31+
32+
</manifest>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="app.akexorcist.bluetoothspplistener"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-permission android:name="android.permission.BLUETOOTH" />
8+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
9+
10+
<uses-sdk
11+
android:minSdkVersion="8"
12+
android:targetSdkVersion="19" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@drawable/ic_launcher"
17+
android:label="@string/app_name"
18+
android:theme="@style/AppTheme" >
19+
<activity
20+
android:name="app.akexorcist.bluetoothspplistener.Main"
21+
android:label="@string/app_name"
22+
android:screenOrientation="portrait" >
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN" />
25+
26+
<category android:name="android.intent.category.LAUNCHER" />
27+
</intent-filter>
28+
</activity>
29+
</application>
30+
31+
</manifest>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="app.akexorcist.bluetoothsppsimple"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="19" />
10+
11+
<uses-permission android:name="android.permission.BLUETOOTH" />
12+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@drawable/ic_launcher"
17+
android:label="@string/app_name"
18+
android:theme="@style/AppTheme" >
19+
<activity
20+
android:name="app.akexorcist.bluetoothsppsimple.Main"
21+
android:label="@string/app_name"
22+
android:screenOrientation="portrait" >
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN" />
25+
26+
<category android:name="android.intent.category.LAUNCHER" />
27+
</intent-filter>
28+
</activity>
29+
</application>
30+
31+
</manifest>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="app.akexorcist.bluetoothterminal"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="10"
9+
android:targetSdkVersion="19" />
10+
11+
<uses-permission android:name="android.permission.BLUETOOTH" />
12+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@drawable/ic_launcher"
17+
android:label="@string/app_name"
18+
android:theme="@style/AppTheme" >
19+
<activity
20+
android:name=".MainActivity"
21+
android:label="@string/app_name" >
22+
<intent-filter>
23+
<action android:name="android.intent.action.MAIN" />
24+
25+
<category android:name="android.intent.category.LAUNCHER" />
26+
</intent-filter>
27+
</activity>
28+
</application>
29+
30+
</manifest>

0 commit comments

Comments
 (0)