Skip to content

Commit

Permalink
Dagger2 demo retrofit2 activity
Browse files Browse the repository at this point in the history
#22
- do not get @singleton in subcomponent
- arrazadapter in DemoDaggerSubActivity.java
  • Loading branch information
eurosecom committed Jul 16, 2017
1 parent 2c39201 commit 3379ff3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.Toast;

import javax.inject.Inject;
import javax.inject.Named;

Expand Down Expand Up @@ -56,6 +58,10 @@ protected void onCreate(Bundle savedInstanceState) {
mAdapter.add("bbb");
mAdapter.notifyDataSetChanged();

String serverx = mSharedPreferences.getString("servername", "");

Toast.makeText(DemoDaggerSubActivity.this, serverx, Toast.LENGTH_SHORT).show();


}

Expand Down

0 comments on commit 3379ff3

Please sign in to comment.