Posts by Felipe Bonezi • 371 points
15 posts
-
2
votes2
answers198
viewsA: Listview infinity on android
You will need to adapt the SQL’s of your web service to work with LIMITand OFFSET. This way you can list users within a range [0-10]. Already in the application, there are several libraries that do…
-
1
votes1
answer73
viewsA: How to Apply Loading Large Bitmaps Efficiently
Use a AsyncTask to perform the calculation of the images, avoiding the Main Thread get stuck! Another tip is you use Composites to render these images, i.e., ListView, GridView, RecyclerView, etc,…
-
0
votes1
answer120
viewsA: Multiple Imageview within Framelayout, an error occurs
From your log we can analyze that the problem is in memory matter - OutOfMemory. Usually this occurs by the size of the images you are trying to render! I recommend you redesign the design of your…
-
0
votes2
answers524
viewsA: How to know the remaining time for the alarm to ring
A way to give you a function that returns the hour, minute and second is as follows: long diffSeconds = diff / 1000 % 60; long diffMinutes = diff / (60 * 1000) % 60; long diffHours = diff / (60 *…
-
2
votes1
answer379
viewsA: Animation on Android, circle emitting waves
You can create several ImageView's, each with a different radius from the other and with shades alpha also different. That way, when receiving a call, you can make an animation that plays with…
-
0
votes2
answers125
viewsA: Longlistselector on Windows Phone 8
Very simple! Create a class Pessoa, that has all layout attributes (i.e. Name, E-mail, Phones, etc, etc., etc); I believed a ListBox in your XAML file; Refer to a Binding for your class Person; No .…
-
2
votes1
answer754
viewsA: Difference between Httpclientbuilder.create(). build(), Httpclients.createDefault() and Defaulthttpclient
Come on, HttpClients is an interface to assist you in creating classes that inherit from the abstract class CloseableHttpClient (In this case, it implements both the interface HttpClient how much…
-
0
votes2
answers131
viewsA: Project imported from Eclipse to Androidstudio has no R reference
Perform the following steps: Open Android Studio (Updated version v1.0.2 [CURRENTLY]); Select the option -> NON ANDROID STUDIO PROJECT; Navigate to your Eclipse project folder and select it; Wait…
-
1
votes1
answer110
viewsA: Button on top of a View with Canvas
Exchange the <View> for <com.examples.danilofernandes.canvasonrelativelayout.RandomShapeView> in the XML file of your layout.
-
1
votes1
answer55
viewsA: Merge Listviews Android
You need programming based on Interfaces. In short, create an interface that contains two methods, one to get the news photo and the other to get the headline. After that, create a custom Adapter…
-
2
votes1
answer184
viewsA: Add Andengine as a library to my project in Android Studio
Android Studio is based on GRADLE, IE, is understood to be a cluster of modules. In your case you need to clone Git projects and then import them as modules in your project. After you have done…
-
0
votes2
answers474
viewsA: Consume PHP/SOAP Webservice on Android
If you run the request in the Thread UI your application (i.e. screen) was stuck until the query returned from the server. This is not good practice leaving the usability of your application below…
-
1
votes1
answer894
viewsA: Take the id of the textview that is inserted in the listview and put in the bd
Simple! You need to add the '+' category id via the method setTag(...) which is made available for any visual component which it inherits from View. That is, when the user clicks the button, the…
-
2
votes1
answer293
viewsA: Log into android application when errors occur
There are several API’s that make this functionality! I recommend the following: Crittercism - https://www.crittercism.com/ Crashlytics - https://www.crashlytics.com…
-
4
votes1
answer294
viewsA: Very slow listview on scroll bar
The problem lies in the architecture of your algorithm. With each iteration in the method getView() of Adapter you are inflating to view you want. This is bad practice! You need to use the design…