berserk
  • Member for 8 years
  • Last seen more than a month ago
  • India
Stats
849
reputation
200k
reached
4
answers
11
questions
Loading…
About

Android developer and freelancer.

Connect with me at Facebook.

private int dpToPx(int dp) { float density = getActivity().getApplicationContext().getResources() .getDisplayMetrics().density; return Math.round((float) dp * density); }

new TypeToken< ArrayList< YourClass>>() { }.getType();

enter image description here

http://www.nerdtests.com/images/ft/nq/e16a60928b.gif

5
gold badges
12
silver badges
24
bronze badges
Top tags
2
Score
7
Posts
47
Posts %
1
Score
1
Posts
7
Posts %
0
Score
3
Posts
20
Posts %
0
Score
3
Posts
20
Posts %
0
Score
1
Posts
7
Posts %
Top posts
View all questions and answers