Posts by RafaelFerreira • 303 points
12 posts
-
1
votes1
answer113
viewsA: How to reuse a layout?
You can have a Fragment or a Activity with a layout fixed, receiving different parameters so that you can inflate the fields the way you want depending on the received parameters. By doing this you…
-
1
votes2
answers417
viewsA: Pick image coordinate by clicking on it
I recently went through a similar case, and, if you’re really looking for the coordinates of image, the way you did it won’t work because the argument e contains information of the place of the…
-
0
votes0
answers32
viewsQ: Controller variable is null on ajax get
I have a List of objects that is instantiated when the view is created, when a value in the dropdownlist is selected, use ajax to make a request to verify which of the objects inside that List is…
-
1
votes1
answer72
viewsQ: How do I restart the app when it’s brought from the background?
I need my app to reboot whenever it’s brought from the OS background, so the user is forced to log in again. I tried to use the finishAffinity() in my onPause() of Activity, the problem is that this…
-
1
votes2
answers2782
viewsA: Send a message via Whatsapp to a specific contact
I managed to find a way that works: Intent sendIntent = new Intent("android.intent.action.MAIN"); sendIntent.PutExtra("jid", "55" + (number) + "@s.whatsapp.net");…
-
-1
votes2
answers2782
viewsQ: Send a message via Whatsapp to a specific contact
I’m trying to send a text message via Whatsapp to a previously selected number. The contact chat opens, but the message contained in Extras does not appear in the text box. See: var uri =…
-
0
votes1
answer104
viewsQ: Use findViewById in all scopes or use a variable?
Which of the most recommended strategies for a good application performance? Using findViewById whenever we use some element of View or to do so only once by assigning to a variable? example in…
-
4
votes1
answer254
viewsA: Custom Recyclerview Blanks
Your LinearLayout xml of the list is with height set as match_parent, it will use the full height of the parent element, so it is filling it in full. Try using some fixed size like 30dp or…
-
1
votes1
answer171
viewsQ: Table names in Hibernate are created with lower case letters
I am trying to turn the following Entity into a table in Postgre using Hibernate @Entity @Table(name="Usuarios") public class Usuario implements Serializable { ... } the problem is that when the…
-
2
votes1
answer66
viewsA: Multiple spinners
I don’t know if this is what you want, but you can assign the events of multiple objects to the same function: FindViewById<Spinner>(Resource.Id.Spn1).Click += EventoClick_Click;…
-
2
votes1
answer97
viewsA: Duplicate data C#
Are you sure you are instantiating a new object with each insertion in the list? List<MinhaClasse> MinhaLista = new List<MinhaClasse>(); MinhaLista.Add(new MinhaClasse{Nome="Lucas…
-
1
votes1
answer567
viewsQ: Placing a dynamic Youtube video in an <iframe> (Asp.net)
Good night! I am trying to put a youtube video based on a url saved in an sql database, the problem is that the way I thought of putting, works only with some static url, in the following way:…