Closed msk610 closed 7 years ago
If you want to change the seattle installer to downloadAndInstallSeattle()
instead of rawResourceInstallSeattle()
I used raw install because the other methods sometimes crashes for me.
@msk610 thanks for your contribution. Could you please remove the non-SensibilityActivity.java
files from you PR?
@msk610, thanks for your awesome additions. I am going to merge your PR into yet another install-ui branch in @aaaaalbert's repo to perform some cleanup (remove the cache files, etc...).
Added the following method, which checks if the required components are installed then installs them automatically:
The method is called at
onStart()
method aftercheckRequestPermissions();
it usesSharedPreferences
, which allows developers to store key value pairs locally. The path and the keys used in the method to check whether Python and Seattle were installed are stored in global constantsDOWNLOAD_PREF_STR
,PYTHON_KEY
,SEATTLE_KEY
. TheProgressDialog
class was used to give a feedback on the components being installed. Following is a screenshot of how the ProgressDialog looks: