This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android demo applications warnings

After importing every of your android project demos to eclipse I have following warnings:

This Handler class should be static or leaks might occur (com.nordicsemi.nrfUARTv2.MainActivity.2) MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 179 Android Lint Problem The value of the field UartService.mConnectionState is not used UartService.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 50 Java Problem The value of the local variable device is not used DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 230 Java Problem The import android.bluetooth.BluetoothManager is never used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 33 Java Problem The import android.media.Ringtone is never used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 43 Java Problem The method showMessage(String) from the type DeviceListActivity is never used locally DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 321 Java Problem The import android.os.Message is never used DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 41 Java Problem The value of the field DeviceListActivity.onService is not used DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 66 Java Problem The import android.view.Gravity is never used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 52 Java Problem The import android.widget.LinearLayout is never used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 57 Java Problem The import android.media.RingtoneManager is never used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 44 Java Problem The import android.net.Uri is never used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 45 Java Problem The value of the field MainActivity.mHandler is not used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 176 Java Problem The value of the local variable mIntent is not used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 190 Java Problem The value of the field MainActivity.UART_PROFILE_READY is not used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 66 Java Problem The value of the field MainActivity.STATE_OFF is not used MainActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 70 Java Problem The import android.content.ComponentName is never used DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 31 Java Problem The import android.os.IBinder is never used DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 40 Java Problem The import android.content.BroadcastReceiver is never used DeviceListActivity.java /nRFUART_Googlev2/src/com/nordicsemi/nrfUARTv2 line 30 Java Problem

Can you tell me why I get this warnings? Can I ignore them? I use newest ADT bundle.

Related