Questions tagged as 'android'

2
answers

Tried POST in AndroidStudio (error 400)

I'm doing an App on Android and I need to connect to an API hosted on localhost. /** Creating Connection **/ URL serverAddress = new URL(link); HttpURLConnection connection = (HttpURLConnectio...
asked by 25.10.2018 / 12:22
0
answers

The server only receives GET requests when connecting from android with HttpsUrlConnection, even if it forces the POST connection

First of all, to greet the community in general, I am new to this platform. I have seen several related threads, in this and other forums, with the problem that is busting my mind: ** The server (API RESTFul in PHP) only receives GET requests us...
asked by 25.10.2018 / 14:38
2
answers

How can I open and close the virtual keyboard (soft-keyboard)?

I want to show the virtual keyboard (soft-keyboard) for some EditText that has focus and that has been obtained programmatically (without having been pressed). And close it when an event occurs such as pressing a Button on the sc...
asked by 02.12.2015 / 23:05
0
answers

Firebase timeout control for mutiusuarios

I have a question. I'm doing a multiplayer game on android. I want to implement firebase where I can control the modifications made by each player in real time, in order to update views of other players. My question is how can I control the idle...
asked by 25.10.2018 / 16:29
2
answers

I have a problem with trying to open another activity

Good evening friends puej the truth I do not know what is wrong I'm drowning in a small problem because I tell you that an attempt to open another activity does not work for me not that it is wrong but the other intents if: here the code: @Ove...
asked by 26.10.2018 / 03:18
0
answers

Taking pictures with camera android convert to base64

I'm new to this page. I am trying to create an app where you can decide whether to take a picture or upload it from the phone gallery. I found this code in one of the questions here but I have a question since I have not used these functions....
asked by 25.10.2018 / 23:16
0
answers

java.lang.NumberFormatException: Invalid int: "null"

Good day, Can someone help me solve this error? Using Firebase Database on Android with the structure so and this code Bundle bundle = getIntent().getExtras(); if(bundle !=null) { usuari = bundle.getString("x");...
asked by 25.10.2018 / 19:33
0
answers

How to calculate the sum of minutes in android studio

forgive the inexperience since I am new, I would like to know how I calculate the minutes better said add them to give me an hour of departure. What happens is that I want to perform an exercise of the income of patients in consultations, theref...
asked by 24.10.2018 / 16:47
1
answer

How to call a function with an argument to another function in java

I have the following function: String[] TXbuffer = new String[]{"H","o","l","a"}; public void writeAsync(String bufferx) { if ( mSerialPort != null) { try { mSerialPort.write(bufferx.getBytes(), SERIAL_TIMEOUT);...
asked by 24.10.2018 / 17:31
0
answers

error: failed linking references

I am designing a bus app but at the time of compiling I get the error "error: failed linking references." I do not know what could have happened, before I had errors of the strings that had changed in the file "string" but I fixed it, now I got...
asked by 22.10.2018 / 23:19