Posts by Samara Carvalho • 63 points
15 posts
-
0
votes1
answer56
viewsQ: Spinner returning Null and Void
My spinner is returning null, probably at the time of passing to the string there is something wrong and there is an error in these lines :…
-
2
votes1
answer72
viewsQ: Equal functions if
I have if and Else codes, but I don’t know very well,I’ll explain what I wanted to do , in my app, if I typed Right , posted in api as id - X ,if I typed Romance,posted with Id - Y , but he’s only…
-
0
votes1
answer92
viewsQ: How can I avoid repeating code?
I have a command that will need to perform several executions, but I have to put 1,2,3... have to use the same name ? btnadd1.setOnClickListener(new OnClickListener() { @Override public void…
-
1
votes0
answers51
viewsQ: Menu/submenu using get
I have a submenu menu very similar to the image. I also have a database storing categories/subcategories. I’d like to make a Get at the bank, so it would appear on my menu. Code I’m using : private…
-
0
votes1
answer88
viewsQ: Toast She’s in trouble
Man Toast is being shown even when my Else is not called; it was to be shown only when the user enters wrong password or email, but even when the equals works, the Toast appears: protected void…
-
0
votes3
answers746
viewsQ: Toast with specific duration
How to put this Toast to last only a few seconds? For example, 10 seconds. if (mEmail.equals(email) && mPassword.equals(password)) { Intent intent = new Intent(LoginActivity.this,…
-
0
votes1
answer62
viewsQ: Toast with problem
I’m new to android,my question is silly,my Oast was only to appear when the user type the wrong password or email,but it appears even when it is correct, what is wrong with my code? try { JSONObject…
-
0
votes1
answer75
viewsQ: Screen Registration - Repeat users
I have a post code, which makes the registration of my users, but they can repeat themselves, I would like help to realize a code so that users can not repeat, but I’m new to Android and do not know…
-
0
votes0
answers80
viewsQ: Upload JPEG via JSON
I have a code that takes a photo from the gallery or makes you take a photo and would like help to send this image via JSON to my API, but I have no idea how to do this. My code: @Override public…
-
1
votes1
answer3600
viewsQ: How to pass data between Activities
I have a code that transforms getText in string and would like to pass this string to one other Activity in a simple way, but not an Activity that comes right after this. My code: @Override…
-
0
votes1
answer173
viewsQ: Login Authentication / Jsonobject
I have a get code that takes the email and password from the database.. But in getString it only compares with a term,as I do to use equals with all bank users and not filter by ID... This is my…
-
0
votes1
answer52
viewsQ: Post via Json getstring error
I have a code that should make a "Post" via json ,but edittext is not converting to String,and there is no error in logcat .. Anyone have any idea of the mistake? It must be something stupid I…
-
1
votes2
answers65
viewsQ: Android String Post http
I have a code that I would like you to do a "Post" of the email string after clicking on the button, the post code is apparently correct , but the button is not working.. logcat does not return any…
-
0
votes1
answer623
viewsQ: Send parameters via post json android
I need to send the username string via post after button1 is clicked, my code has no error in the monitor, simply does not send anything to the bank... This is my code : public class PostTeste…
-
1
votes1
answer129
viewsQ: Android error post method
I would like to make the username string send to the bank after being clicked on the button, but is giving error in the lines: at…