Questions tagged as 'android'

1
answer

How to return more than one value using an asyncTask in android?

In short, my class that extends an AsyncTask, downloads a series of data of type byte, then I need to perform some calculations with that data, and finally return all these values to my MainActivity. The code is summarized as follows: class...
asked by 22.06.2015 / 13:32
2
answers

How can I make a variable wait for the user to press 1 of 4 buttons?

Well, I'll try to be clearer. I have a variable called int tentativa and I want it to get a specific value depending on which button the user presses. The buttons are btPedra[0], btPedra[1], btPedra[2], btPedra[3] . If the...
asked by 12.06.2015 / 05:00
1
answer

How to read a Json without knowing what's inside it or the amount of data?

I am developing a dynamic form for Android in which you receive a Json file and create the forms. It's all automated, except for the part that I have to get a string in Json's hand. Is there a way to read the string without naming it within ....
asked by 16.06.2015 / 23:16
2
answers

Android ProgressDialog does not appear

I'm trying to show a ProgressDialog in the process of downloading a binary file, however it does not appear, and I do not get any error as well. Briefly explain how I have structured code In my MainActivity I define a button to get this file...
asked by 25.06.2015 / 14:36
3
answers

Is it possible to export the source code of an Android Studio project? As?

I've developed an application in Android Studio that is already available on Google Play. As it was a project that I used as the subject of my TCC, the university needs the source code in PDF. How do I extract the code into a single file?...
asked by 18.09.2017 / 19:17
1
answer

How to associate / open mp3 files in raw folder?

I am with probremas with songs, whenever I add some music and I will execute some code of the error, whenever I click on the music in the raw folder a text appears, in tutorials I saw the person clicks on the song and plays it I will show photos...
asked by 22.10.2017 / 23:27
1
answer

Error inserting PHP MySql data using the Android volley lib

I'm developing an application that will have to send data to a server. My php source code is this: connection.php <?php $mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = ""; $mysql_database = "ap...
asked by 30.10.2015 / 20:55
2
answers

Programming for Android with multiple screens

When I program to Android , I think of portability with the most diverse devices on the market. Seeing the layout of my Activity principal , I noticed that on small-screen devices (I did the 2-inch screen test) the views are HUGE...
asked by 06.06.2015 / 01:49
1
answer

How to prevent AlertDialog from being closed when any button is clicked?

Problem I'm trying to validate certain data contained in a% custom View in the event of clicking the Save button. So after the validation I save the data and close the AlertDialog, and in case the data is not valid I would show the e...
asked by 08.05.2015 / 22:49
1
answer

Doubt with scenes (Scene)

I'm starting to use scenes in my application, and I'm constantly having the same problem, but now I did not know how to solve. So, I have 2 scenes, and in onCreate I get my views, for example: editText = (EditText) findViewById(R.id....
asked by 01.10.2016 / 19:15