berserk's user avatar
berserk's user avatar
berserk's user avatar
berserk
  • Member for 10 years, 1 month
  • Last seen more than a month ago
  • India
Stats
859
reputation
237k
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
13
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