1

Android - ACTION_PACKAGE_FIRST_LAUNCH filter not working

view story
linux-howto

http://stackoverflow.com – I trying to detect my application run at first time. I used Broadcast Receiver to do this. It works fine with ACTION_PACKAGE_REPLACED. But it doesn't work when I use ACTION_PACKAGE_FIRST_LAUNCH intent. I'm using Android 4.3 This is my Activity public class MainActivity extends Activity { BroadcastReceiver broadcastReceiver; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); broadcastReceiver = new TestBroadcast(); } @Override protected void onPause() { super.onPause(); unregisterRe (HowTos)