how can i find out which permissions i need to add in manifest for my applications? Actually, WHEN i need to add permission in manifest and HOW to find out my app really need to add some permissions in manifest before install it on device? is it possible to find out permissions from imported package? for example is there any way to find out we need to add "uses-permission android:name="com.android.alarm.permission.SET_ALARM" permissions in manifest because we add "import android.app.AlarmManager;" in code?
MY BIG PROBLEM IS: my apps work fine, but when users upgrade phones to new android, my apps not work, and i need to find out which permission lost from my manifest. (for example we don't need any permissions for SD card access in android 2.2, but in android 4.0 we need to add permissions in manifest). thanks in advance