Questions tagged as 'android'

1
answer

Avoid uninstalling application even after factory restore

How to develop an app that even after the device is restored it stays installed, just like the mobile carriers' apps? Thanks in advance.     
asked by 31.12.2015 / 08:53
1
answer

Is there any way I can import a project into Android Studio by automatically solving dependencies?

I have had frequent difficulties importing projects into Android Studio. Whenever I do a new import, the IDE points to several dependencies that are not satisfied and I have to solve them manually, making importing always slow too. Someone ha...
asked by 11.10.2015 / 21:09
1
answer

Error in Manifest after upgrading from Android Studio to version 1.4

I'm starting on Android now and I had not encountered this error previously, I've tried to see other projects but still the error persists, I'd like to know what's causing the error and how to resolve it.     
asked by 27.10.2015 / 01:31
2
answers

Call Activity after logging in to Facebook

I'm new to the world Android and I need some help. I can not call a new activity after facebook login . The login is running correctly and when done successfully, returns the activity with the Logout button. I tried to make the ca...
asked by 07.12.2015 / 14:28
2
answers

Some errors on Android [closed]

I'm trying to start programming on Android. I created the project and came up with this code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tela_1); } @Over...
asked by 29.08.2015 / 18:13
2
answers

Change mask of an EditText at runtime

I have EditText that is used for CPF and CNPJ. I need to use it time as CNPJ and time as CPF. I need to change the mask at run time according to the selected type (CNPJ / CPF), but doing so, an exception is generated. if(TipoPesso...
asked by 03.11.2014 / 18:22
3
answers

When creating folder inside folder / res it is not visible in the left panel

When I put the name of the new folder and press Enter, that same folder does not appear on the left side of the Project nor can I reference the path of it. The strange thing is that if I put the name of the folder as raw, anim, animator, menu...
asked by 01.09.2016 / 11:59
2
answers

Keep Equal Data

I'm doing an Chat on Android. I'm using Servlet (with JSON) + Oracle + Android. When I add a contact, for example, I save that contact in the Oracle database, via Servlet. But at the time of viewing the contacts in a ListView ,...
asked by 21.10.2016 / 02:13
3
answers

Random without repetition

Well I have a question that is killing me already has time, and I can not solve. PS: I'm a beginner on Android. I'm developing a lottery application, but I can not generate a Random without repeating the numbers already drawn, I've tried ever...
asked by 11.10.2017 / 16:10
3
answers

How to insert string from res / string into array String [] {};

I'm trying to put my Strings in an array to use on the adapter and I can not. I'm doing this: String cores[] = String[]{getString(R.string.cor1), getString(R.string.cor1)}; But it sure is not the right way. How to do?     
asked by 20.08.2014 / 13:21