Questions tagged as 'android'

3
answers

Transform JsonObject into JsonArray

How do I get the data from this Json? I want to transform into a JsonArray to be able to scroll through, but it is a JsonObject ... { "1":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"}, "2":{"a":"1","c":"0","d":"0","m":"0","ns":"...
asked by 19.12.2017 / 14:37
1
answer

Organize layout files in Android studio

Next, I have a project that in the end will be huge. Currently I have finished 1 module from a total of 4 modules and it is already full of layouts, etc. Here's an image for you to know about the file you have: And there are still a lot...
asked by 22.12.2017 / 17:09
1
answer

Debug app emulating on mobile

I'm having a problem where a string para double conversion, where emulador o APP está funcionando perfectly, but no celular ele trava is dated. I would like to know how to do for debugar se quando executo o app no celu...
asked by 18.12.2017 / 11:24
2
answers

What's the difference between Compile and Implementation in the Android Studio build.gradle file?

When I'm going to add some library manually to the Android Studio 3 build.gradule (Module: app) file, I use the implementation format >, because this is the way that Android Studio itself uses by default, but whenever I search the internet f...
asked by 29.01.2018 / 00:04
1
answer

Changing the xml by java

I wanted to know if there is a way I can change layout="@layout/app_bar_main" of <include> by java <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.androi...
asked by 05.03.2018 / 03:17
1
answer

SQLite being accessed remotely

Would it be possible to create an App connection on Android with the SQLite service with Local PC? I do not speak of a database within the own Android, but rather communicating with PC itself.     
asked by 04.09.2016 / 14:16
2
answers

What is the class to draw circle on Android?

I know the%% class for rectangle and for circle private Rect retangulo = new Rect(); What is the class to draw circle on Android?     
asked by 11.02.2017 / 01:14
1
answer

Read in another activity a variable that is updated in MainActivity

I have a function that runs every second. This function sends a request for information via socket to a device. This information is received in AsyncTask which does the calculations and updates some variables that are in MainActivity...
asked by 17.01.2017 / 15:11
1
answer

How to block my app if there is no internet [duplicate]

I'm creating an application that needs internet,  If this person's cell phone is without internet, the application would not start because it would only open if you were on the internet. How can someone help you?     
asked by 18.08.2017 / 22:10
2
answers

ListView Doubt

I have the following code where I am in doubt as I do to display the list on the screen, I have already tried in several ways and I have already done several examples of the internet I could not find a correct solution to my problem. The error...
asked by 28.09.2017 / 05:19