它是第一次;我嘗試通過藍牙連接Android手機和Arduino。我有部分代碼;它必須添加到清單中。我不知道在哪裏可以添加此代碼...arduino&android設備連接錯誤,因爲清單
<uses-permission android:name=」android.permission.BLUETOOTH」 /> <uses-permission android:name=」android.permission.BLUETOOTH_ADMIN」 />
我的清單代碼 `
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.bluetarduino"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.bluetarduino.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
` 此外,是否有任何其他方式連接的Arduino和Android移動設備?謝謝...
你可以參考http://developer.android.com/guide/topics/manifest/manifest-intro.html –