Posts by Rafael Neiva • 178 points
9 posts
-
0
votes1
answer1436
viewsA: Go to another Activity from a list item with parse.com site data
It is not interesting that you perform this logic inside your Adapter. From your Listview you have the method setOnItemClickListener which is the best way to perform an action from clicking on a…
-
1
votes2
answers561
viewsA: Create menu button at the bottom in Google maps v2 android
You can use Relativelayout on the whole screen, place an Imageview with the image you want to be your "button" and use the attributes android:layout_alignParentBottom="true"…
-
2
votes1
answer216
viewsA: Help to migrate from Actionbar.Tabs to Viewpager because of API 21
Hello, first I would like to say about my experience regarding Dynamic Fragments within the Viewpager and I can tell you that is not a good idea. I have no idea what your app looks like but if…
-
3
votes2
answers129
viewsA: Using Fragment, Activity Error
I suggest that your Activity inherits from Actionbaractivity and that the theme (Styles/manifest) applied to it use as Parent a Theme.AppCompat.Light.Darkactionbar, for example. If you want only…
androidanswered Rafael Neiva 178 -
3
votes1
answer535
viewsA: Listview in numeric order - Android
You can order your MarketList using: Arrays.sort(marketLists, new Comparator<MarketList>() { @Override public int compare(MarketList market1, MarketList market2) { return…
-
1
votes2
answers243
viewsA: How to cache a bitmap on android?
There are several ways to do this on Android. But don’t keep reinventing the wheel. There are numerous frameworks ready to do this. Among them I recommend the Volley: (developed by Google itself)…
androidanswered Rafael Neiva 178 -
1
votes1
answer393
viewsA: How to keep listview item loaded
There is a better way to implement the method getView, using the concept of Viewholders, where your Views are in another class (Holder). For example: @Override public View getView(int position, View…
-
1
votes1
answer143
viewsA: How to return to my Actionbaractivity?
Your Activity is the set of Drawer, Actionbar and any Fragments you add to it. Imagine Activity as a 'box' on you put 'blocks', which are the Fragments, so every time you select a new item in Drawer…
-
1
votes1
answer587
viewsQ: Two Asynctask running parallel with Httpclient request
I have two classes extending Asynctask, in which they return me a JSON from a server. I am using the following code to run them simultaneously: if (Build.VERSION.SDK_INT >=…