Questions tagged as 'android'

1
answer

How do I send a string with getText from a spinner?

Hello everyone, I have a problem sending getText from a spinner, I need the selected spinner option to go to another java activity. this is the line 1 of the spinner that should send the information, and it is in java activity_main edit...
asked by 29.12.2017 / 00:32
1
answer

DELETE and PUT in AndroidStudio with HttpUrlConnection

I have a REST API from a user database made in NodeJS, the address to use the GET method is http://localhost:3000/users/ the method DELETE and PUT receive a parameter that is concatenated in the same address, http://localhost:3000/...
asked by 16.12.2017 / 21:29
2
answers

How to send data from one activity to another in android studio [duplicated]

What happens is that the RESULT of the SUM of the activity IngresarDatos I want to reflect it in another activity but I do not know how to do it EnterData.java package com.example.asus.crudaplicacion; import android.content.Intent; impor...
asked by 24.10.2018 / 17:41
1
answer

Print Android, Bluetooh

The outPutStream object gives me error,    W / System.err: java.lang.NullPointerException: Attempt to invoke   virtual method 'void java.io.OutputStream.close ()' on a null object   reference. is when I try to send the data try {...
asked by 09.11.2018 / 02:23
1
answer

Is there a way to create a spinner just like the html selectbox, which has a text and a value?

As I said in the question, I need the data from my spinner to have a value and text, just as it happens to be the selectbox in html. It is important to have a key value so that the user sees a readable text and I can send a number (which is the...
asked by 12.11.2018 / 08:54
1
answer

Calendar on Android [closed]

Good, I need to include in my application a system of attendance control, for that I need to show a kind of calendar where the assistances are shown, how could I do it to show this in an activity? I need some clue or idea to know where to start...
asked by 28.02.2017 / 00:47
1
answer

how to show data in cardview from a query in JSON

I have several cardview and I want to insert images and the value of some Ratingbars from a database, but without making the php file could you help me please? this is what I have so far Adapter public SearchHorizontalAdapter(ArrayList&l...
asked by 10.02.2017 / 17:28
0
answers

Error in Values.xml

I have a small error in values.xml Tell me this. And in the values.xml I have this: I also have an error in setContentView(R.layout.activity_registro_usuarios); Sure it is very easy to solve the error, but I can not find...
asked by 03.12.2017 / 03:02
1
answer

Doubt with Toolbar on Android

I'm studying Android, but this doubt came to me. Why when we add a Toolbar to an activity from its XML, we should then tell it to call "setSupportActionBar (toolbar);"? In case I want to add a second Toolbar, do I have to call that method...
asked by 26.12.2018 / 11:22
1
answer

Android Studio - Get value from an EditText from another Activity

I have a problem, when I want to reference in my main activity a value of an object of another activity, it returns null even though I used inflater. This is my code: LayoutInflater inflater = (LayoutInflater) getSystemService(Context.L...
asked by 06.10.2017 / 22:12