Questions tagged as 'android'

1
answer

Difference between ListView and ListActivity

I have a small question, what is the difference between a ListActivity and a ListView ?     
asked by 02.12.2015 / 01:45
1
answer

Is it possible to replace the alarm control of my car with an application? [closed]

I'm starting a personal vehicle automation project. At first I will use the native features of my SmartPhone, so you do not need to implement any circuits in the car a priori. I have a Galaxy S4, and a car with alarm. I would like to creat...
asked by 03.07.2014 / 20:00
2
answers

JSONObject with multiple values without using Array

Objective Create a JSON with the following structure: { "auth": { "user": "rbz", "token": "abc123" } } Scenario Creating the root structure: JSONObject JOraiz = new JSONObject(); Creating the values us...
asked by 29.11.2018 / 11:11
3
answers

Remove 2 specific characters from a String

Good afternoon! Devs, I can not solve the following problem: In a calculator app, the calculations always return a Double, which automatically inserts a decimal even if it is to deploy zero, and to show in the editText would like to remove the "...
asked by 27.11.2018 / 21:26
2
answers

What is the real difference between these three ways of switching from one activity to another?

I'm aware of three ways that by simply clicking a particular button, it moves from the current activity to another. I'd like to know which of these three ways is the best one to take into consideration, the fluidity of the application. And...
asked by 14.01.2017 / 20:07
1
answer

Can I call a method when the application is closed?

What happens when the user closes the application without calling a pre-defined method in the app, what I mean is when it removes the app from the list of active applications. What happens at the moment?     
asked by 20.03.2017 / 04:08
2
answers

How to use a Bundle with a non-primitive type?

I have the following class created by me: public class Telefone { private String nome; private String telefone; public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getTelef...
asked by 28.10.2014 / 21:34
1
answer

Creating Tabs Correctly on Android Currently

I'm trying to implement in the application that I'm creating Tabs, like this: But when I try to implement, I'm always faced with deprecated classes and methods, such as TabListener , ActionBarActivity and now I'm not...
asked by 03.09.2015 / 01:43
2
answers

How to import classes like HttpClient, DefaultHttpClient etc

I've implemented these classes, but I can not import them; the project was done in Android Studio. public class HttpConnection { public static String getSetDataWeb(WrapData wd){ HttpClient httpClient = new DefaultHttpClient();...
asked by 20.10.2015 / 01:14
2
answers

Doubt about reading txt files on Android?

Based on this stackoverflow question in the answer, this code is suggested try { AssetManager assetManager = getResources().getAssets(); InputStream inputStream = assetManager.open("nome-do-arquivo.txt"); InputStreamReader inputS...
asked by 21.02.2016 / 21:04