我希望在我的应用程序中具有此功能:
当我启动我的应用程序时
-check if there is interne access : if yes {
start LogInActivity { if login is succesfull
dialog:"synced!" for 3second
else
dialog:"no synced!" for 3second
}
}
dialog:"no synced!"
startMainActivity
我希望第一个活动只是执行检查。不可见,如果有互联网,则转发到登录活动,否则登录到主要活动
这是因为我希望在没有内部人员的情况下使用我的应用程序。但是对于登录的用户,它将从 Web 服务下载一些信息以存储在共享首选项中。有帮助吗?