public class MainActivity extends BroadcastReceiver {
WebView web1;
WebView web2;
Button btn;
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
String action = intent.getAction();
Log.i("U", "Action" + action);
}
}
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BROADCAST_PACKAGE_REMOVED"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.example2.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>
This code i have to Get Information on log-cat if user Uninstall there action take place
But in manifest file it is showing :
it showing Error : Permission is only granted to system apps how i will Fix this issue please help any other way to know that user Uninstall application from device .