Welcome screen

Yeah I know. I'm just thinking ahead a bit. It would probably be easier to
synchronize between local and remote data if they were exactly the same,
and store local-specific data some other way.
On Oct 23, 2014 4:49 PM, "sdwowk" <notifications@github.com> wrote:

> In
> QuestionApp/src/ca/ualberta/cs/cmput301f14t14/questionapp/MainActivity.java:
>
> > @@ -61,4 +68,15 @@ public boolean onOptionsItemSelected(MenuItem item) {
> >          }
> >          return super.onOptionsItemSelected(item);
> >      }
> > +
> > +    public void onActivityResult(int requestCode, int resultCode,Intent intent){
> > +    	
> > +    	if (requestCode == Activity.RESULT_FIRST_USER || resultCode == Activity.RESULT_OK){
> > +    		String username = intent.getStringExtra("username");
> > +    		Toast.makeText(this, "Welcome " + username + " to Qasper", Toast.LENGTH_SHORT).show();
> > +    		
> > +    		DataManager.getLocalDataStore().setUsername(username);
>
> I can throw this out I was just using the current model of the datamanger
> that we have so far.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/CMPUT301F14T14/Project/pull/56/files#r19313623>.
>