Questions tagged as 'android'

0
answers

Subscriptions return the 'INAPP_PURCHASE_DATA' null using 'In-app Billing V3'

I'm implementing purchase of Signatures in an Android application. So far, payment orders are already set up in the Developer Google Play Console and I can debit the amount set in each of the SKUs on the credit card. At the end of this, I...
asked by 17.02.2014 / 16:12
1
answer

How to sort a list in alphabetical order? [duplicate]

I have List<ListaUsuarios> and I want to sort it alphabetically by name My code is like this User class: public class Usuario{ private String nome; private String empresa; private int idade; private Strin...
asked by 13.11.2017 / 19:54
1
answer

Send and receive SMS via PC

I am doing internal software that needs some data that is received via SMS, the client sends the SMS with some information and currently I need to manually make the SMS re-sent. I plan to automate the process to become faster, more practical and...
asked by 07.04.2014 / 20:24
1
answer

I can not replace the fragments displayed in the ViewPager

I'm redoing the navigation of an application so that it works as follows: the application consists of a single activity that initially displays a ViewPager with three views (fragments), and in one of the views there is a button that repla...
asked by 04.06.2014 / 13:55
1
answer

How to get the current date on Android? [closed]

I'm developing an application and I need to get the current date only, I used Date data = new Date(); only that it does not work. I tried localdatetime also more was not, does anyone have any suggestions?     
asked by 21.09.2017 / 04:32
2
answers

Android Studio - non-ASCII Characters

I bought a project for android studio. when opening the following error appears.    Error: (14, 0) Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a differ...
asked by 08.04.2016 / 00:37
2
answers

What exceptions should I catch in a try-catch?

I have some questions in try catch regarding which types of exceptions to put. This example would be the best option? try { String folerPath = Environment.getExternalStorageDirectory() + File.separator + "Folder" + File.separator;...
asked by 11.09.2015 / 15:33
3
answers

Json Data on android

When running my app, it crashes when I try to read Json MainActivity.java public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { String login; String nome; int...
asked by 19.07.2017 / 14:24
3
answers

Get value Integer in end .00 and float value in .01 to 0.9

I have this code below that is from a calculator, however I have a problem: I wanted to return a float value when dividing 5/2 = 2.5 and returning an integer value when dividing 4/2 = 2 and not 2.0 ! Can anyone help me with this? The c...
asked by 20.06.2018 / 03:38
6
answers

Check if EditText is empty

Hello everyone, I'm doing an application in android studio but I do not know exactly how to check if the text fields are empty, I tried the following solution in the code below: public class MainActivity extends AppCompatActivity { EditText...
asked by 08.08.2016 / 16:01