Posts by Eudes • 176 points
11 posts
-
0
votes1
answer651
viewsA: Android App Closes Unexpectedly
You’re getting an NPE, you’re trying to access a property of a component that is NULL. This is a exception frequent. In your case, you did not set the object to the element. At your event OnCreate…
-
0
votes1
answer102
viewsA: Error calling data from a list to a registration screen
On the btAdicionarClient button you must use! public class CadPedido extends Activity implements private int RETURN_TELA_CLIENTE = 1; //Evento OnClick startActivityForResult( intent,…
-
0
votes2
answers1016
viewsA: How to create Production Application Error Report (Client)
High maintenance! An implementation like this generates other work points and more maintenance, for example! 1 - Create a way to send this log. 2 - Control the replay of the same error. ( N users) 3…
-
1
votes2
answers1613
viewsA: Removing characters from a text
See if this is what you want to do!! procedure TForm1.Button1Click(Sender: TObject); var p1, p2 : Integer; linha : String; begin linha := 'De: João de Almeída <[email protected]>';…
-
1
votes1
answer2319
viewsA: Check if the user informed data already exist in the database before entering
See if you can do it! Take a look at the documentation javax/persistence/Query String cnpjExiste = "123"; Query query = entityManager.createQuery("SELECT sa FROM Empresa AS sa WHERE sa.CNPJ = ?1",…
-
1
votes2
answers336
views -
0
votes2
answers189
viewsA: resultCode returns RESULT_CANCELED in onActivityResult
It’s kind of detailed when working with communication of data between fragments with fragments or with some another Activity. I believe a different approach should be used to have the desired…
-
4
votes3
answers1383
viewsA: Legacy of screens - Android
Have it so, it would be like you do the opposite of example! In the example is just make a copy of (XML) and change the body and ready. But there is no escape, a part of the layout you will not get…
-
5
votes3
answers1383
viewsA: Legacy of screens - Android
I believe you want to be a Screen Designer(XML) and not Screen(Activity) I’m right? If that is your question then, you want to know how to do an old practice of reuse of layouts as well as good…
-
0
votes3
answers464
viewsA: adb error: The Connection to adb is down, and a Severe error has occurred
You saw if your device appears in the device options when vc runs the project ??? The (developer) option is unlocked and also turned on on your smartphone?? Do a test like this: Go on your project…
-
1
votes4
answers5215
viewsA: Error in v7 appcompat in v21 themes
I had this same problem that you, I spent many hours to fix. Test please. Update all SDK, on update 21.0.2 build also has Google play Services updates. Update everything. In his Workspace delete the…