Questions tagged as 'android'

1
answer

Error: (44) No resource identifier found for attribute 'srcCompat' in package 'name of my package'

Hello, When I open my project, the following error occurs: Error: (44) No resource identifier found for attribute 'srcCompat' in package. And the R of my layout, do not find the layouts and with that all my classes are in error. Here are some...
asked by 15.10.2017 / 19:46
2
answers

How to create method of sending message in Tabs?

I'm creating an app, in android, which has tabs. Each tab is a chat room. I took an example of a video on how to create app with Tabs, where the author, in addition to creating the app using a tab template, he create a tab class for each tab and...
asked by 11.10.2017 / 19:59
2
answers

Swipe Refresh in TextView

I wonder if there is any way to implement a swipe refresh in android studio to update only one textview when triggering? I'm using android studio, the activity has only a two text view on the top static that does not change, six buttons, and fin...
asked by 04.08.2017 / 20:14
1
answer

Working with 2 spinner on Android

I have two spinners in the same Activity . When I click on 1 and select the value, the second needs to show the value related to which the user chose in the first spinner . Example: If in the first%% of% he chooses Physioth...
asked by 02.08.2017 / 23:39
1
answer

Find an item in the json object of the http response

Well I'm a "beginner" on android. And in my project, I'm picking up from http reponse (with the GET method) a string for JSONObject. "{ "status":{ "d3": { "stats" : false }, "a1": { "stats" : false } } }" But I'm not able to do the funct...
asked by 04.08.2017 / 22:43
2
answers

"Expression expected" error [closed]

I got this code that worked to some extent. But the updateLabel method I can not do because of the problem: Ineedtopickthedateselectedfromthecalendar.I'musingaformwherebyclickingeditText,thecalendaropens.finalDatePickerDialog.OnDat...
asked by 22.08.2017 / 20:23
1
answer

I can not pass the URL of a pdf file for download without being a static variable

I'm using the code below to try to download a pdf file through a URL. The activity " DownloadActivity " only downloads, and the URL link must be passed by parameter through another activity. The problem is that the file download only occurs w...
asked by 21.08.2017 / 23:00
2
answers

Java - parseInt ()

public void OK(View v) { EditText editTextView = (EditText) findViewById(R.id.editTextView); String myEditValue = editTextView.getText().toString(); int equação = Integer.parseInt(myEditValue); editTextView.setText(equação + "CERT...
asked by 20.07.2017 / 21:28
1
answer

Removed items reappear when putting in landscape

I have a ArrayAdapter in a Listview and when the user clicks and holds it it displays a Contextmenu with the Delete the favorite option. The delete function is working, but since I create the Adapter in the onCr...
asked by 23.09.2017 / 15:14
1
answer

Pass values from the database to Spinner

I'm looking for values from the clients in the database via PHP / MYSQL and I'm returning via JSON, and I'd like to pass more than 1 argument to SPINNER (idclient + nomeclient) ... In case, I was able to run the SPINNER passing the "nomecliente"...
asked by 20.07.2017 / 23:43