Is there a Play Store Intent that is launched when an app is installed?

1

I want to know if there is any Intent that Play Store click every time an application is installed correctly, I have seen that there is a call INSTALL_REFER but this is for campaigns and analytics, basically what I'm looking for is to know every time the user installs an app from the Play Store or from any other method, I'm programming a launcher and I want to be able to do some actions when an app is installed.

Thanks in advance

    
asked by Paris N. Salguero 22.07.2017 в 07:24
source

1 answer

1

The user can install the application, but the point that determines its use is when you open the application, as an option you can store in a preference a Boolean value which will indicate the application was already started for the first time.

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if(!prefs.getBoolean("iniciaAplicacion", false)) {
    SharedPreferences.Editor editor = prefs.edit();
    editor.putBoolean("iniciaAplicacion", true);
    editor.commit();


   //*** realiza acción al iniciar por primera ocasión la aplicación.

}
    
answered by 22.07.2017 в 22:21