Copy your old phone when setting up new one
- Smartphones
- 1 Replies
Is there a way to copy your old phone setup (I'm talking everything - settings, files, apps, apps settings etc,) when setting up a new android phone?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
BaseActivity.kt
abstract class BaseActivity(@LayoutRes val layoutId: Int) :
AppCompatActivity(), BaseControllerFunctionsImpl {
lateinit var binding: T
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this@BaseActivity, layoutId) as T
binding.lifecycleOwner = this
addObservers()
setUpClicks()
onInitialized()
}
(…)
PageLoginActivity.kt
class PageLoginActivity : BaseActivity(R.layout.activity_page_login) {
private val viewModel: PageLoginVM by viewModels()
override fun onInitialized(): Unit {
viewModel.navArguments = intent.extras?.getBundle(“bundle”)
binding.pageLoginVM = viewModel
}
(…)
PageSignUpActivity.kt
class PageSignupActivity : BaseActivity(R.layout.activity_page_signup) {
private val viewModel: PageSignupVM by viewModels()
override fun onInitialized() {
viewModel.navArguments = intent.extras?.getBundle(“bundle”)
binding.pageSignupVM = viewModel
}
(…)