Dude if you're saving the user to a table.
when you start the app get your user in the table, and put it in the application.
So from any screen you can access your user.
Follow the example
No Manifest
<application
android:name="pacote.MyApplication"
Application Class
public class MyApplication extends Application {
private User user;
...gets sets
Your main Actv
public class MainActivity extends Activity {
private MyApplication application;
private User user;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
application = (MyApplication) this.getApplicationContext();
user = //pego o user em seu db sqlite
application.setUser(user); // set o user no seu application
//agora pode usar o objeto que e esta no Apllication
// Ex: application.getUser().getNome;
using another Actv
public class OutraActivity extends Activity {
private MyApplication application;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_outra_tela);
application = (MyApplication) this.getApplicationContext();
//use o objeto do Application
application.getUser().getNome;
I hope I have helped with your knowledge ... and in your app ...
valew