Posts by Helder • 375 points
10 posts
-
2
votes3
answers2485
viewsA: How to insert res/string string in the String[]{} array;
I suggest creating a String list List<String> cores = new ArrayList<String>(); cores.add(getString(R.string.cor1)); cores.add(getString(R.string.cor1));
-
1
votes2
answers192
viewsA: Android custom listview working but having problems
I see two things that might be in trouble. The orientation of your Linearlayout is horizontal and all items are with fill_parent (we now use match_parent). Try changing the project_list_view.xaml…
-
3
votes1
answer176
viewsA: Advertisements on the Android App
There is Doubleclick For Publishers (DFP) which is from Google. Google’s mobile ad SDK is the latest generation in Google’s mobile advertising. It offers refined ad formats and simplified Apis for…
-
1
votes1
answer136
viewsA: Delete an element from my Listview
To stay is more readable the application I suggest you create an object of type Host. public class Host { private String mNome; private String mDescricao; private String mStatus; private void…
-
3
votes2
answers1729
viewsA: How to make components responsive in various screen sizes
For this you can use the dimens.xml files in the values folders. For example, you have an Imageview. <ImageView android:layout_width="@dimen/imageview_width"…
-
1
votes1
answer121
viewsA: Use Notificationmanager in a class that is not Activity
NotificationManager mNotificationManager = (NotificationManager) getActivity().getSystemService(Context.NOTIFICATION_SERVICE); Try to do so straight.
-
5
votes2
answers735
viewsA: How to call a method when clicking a notification?
Put some extra in the Intent, so when your Activity receives the Intent and you recognize that specific extra can do the action you want. In that case call your method. When sending: Intent intent =…
-
1
votes2
answers44
viewsA: Planning to update Android messages
The correct would be that, could make a Service that is searching the data on the server and when finished the request sends an Input for Activity informing that it has new data, so the Activity…
-
1
votes1
answer134
viewsA: Use of Fragments
I suggest reading the Android documentation itself, there is explaining all about Fragments. http://developer.android.com/guide/components/fragments.html…
android-fragmentanswered Helder 375 -
2
votes2
answers353
viewsA: Listview does not display loaded BD data
I believe the problem is inside the Adapter. Change the block, public int getCount() { return 0; } for public int getCount() { return clientes.size(); }…