Skip to content
Advertisement

Tag: android-asynctask

Define text color based on value using AsyncTask

So basically my AsyncTask get the value from the url and when i execute i wanna show green text or red text if contains (“-“). I have search around and none of the option worked for me. i do have a RecyclerView.ViewHolder but don’t know how to incorporate before i execute. Everything works, except the colors. Thank you in advance

“getText” syntax is not working and it’s showing error

“getText” syntax is not working and it’s showing error. i am not able to get answer, expected answer is, should able retrieve username, password and match it to the username password which we enter, but now i couldn’t able to match both. Answer Now when calling the asynctask in your Activity do this Pass the values of the EditText while

Possible to determine size of file to be downloaded?

I currently have the following code which reads a file located on the web and writes it to a file on the phone: Does anyone know whether it is possible (using the setup above or otherwise) to determine the total number of bytes which are to be read before commencing with the download (in order to publish percentage progress to

Advertisement