Issue
This is first time I developing an Android App with Bluetooth device and I have no idea what I'm doing wrong. Please help, thanks!
The Android Manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ilovemii.myapplicationblue"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<application
android:name="com.android.tools.fd.runtime.BootstrapApplication"
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name="lhu.stevenpon.f713.com.hotlifebluetoothspp"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="lhu.stevenpon.f713.com.DeviceListActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/select_device"
android:theme="@android:style/Theme.Dialog" />
<activity
android:name="lhu.stevenpon.f713.com.DeviceListActivity01"
android:configChanges="orientation|keyboardHidden"
android:label="@string/select_device"
android:theme="@android:style/Theme.Dialog" />
</application>
</manifest>
Solution
Change it to:
android:icon="@mipmap/ic_launcher"
Since, based on your sceenshot (and the recommended way now) you have icons in mipmap folders.
Answered By - Shaishav
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.