Questions tagged as 'android'

1
answer

Use the data obtained in the parse of my Web Service to transform into a graph in Android

I have a web service that returns me some values, for example, the answer to my parse is now: TheparsethatIdidtogetthefilteredvalueswasthis:StringvalFormaOutros=doc.getElementsByTagName("VALOR").item(0).getTextContent(); String descForma...
asked by 29.09.2014 / 15:21
2
answers

How to close an activity (remove from Foreground)?

I have the following code in my MainActivity class that has an AlertDialog and the onClick () method handling: import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; impo...
asked by 27.09.2014 / 08:16
1
answer

How to create "dynamic" blocks?

How to create blocks similar to the one below, which can be created, removed, resizable (can they be modified in terms of height and width) and can they be placed in different places of the layout by simply dragging it to the place you want?...
asked by 30.09.2014 / 07:17
1
answer

Using Postgres on Android with AsyncTask

I'm trying to connect my app in android directly with the bank that is on a server. I made the connection in an AsyncTask, follow the code. public class ConnectionTask extends AsyncTask<Object, Object, Connection> { private final Con...
asked by 27.09.2014 / 17:12
1
answer

Image in listview with SqlLite / Drawable

I have an App that performs a search on business phones in a SQLLite database. It is working normally, but I need to insert image in some of these companies. The database field would be just the name of the image and the image would be in the re...
asked by 02.10.2014 / 19:41
1
answer

Change the margin of a CheckBox dynamically

Can this attribute be dynamically changed in the java code? android:layout_marginTop I have a dynamically generated CheckBox , and I need to have a margin. Java code: CheckBox cb = new CheckBox(this); //cb.setId(); //cb.setText...
asked by 10.09.2014 / 15:38
2
answers

How to decrease the response time of an unsuccessful connection when using Ksoap2?

When the server or service (IIS) is off , the web-service response time that there is some connection failure is too long. At that time the application (Android) requests the closure due to inactivity. Can you reduce this time or otherwise trea...
asked by 02.10.2014 / 14:25
1
answer

Leave rounded android images

I would like to know if I would like to make the images in my app rounded out like these I would like to know if this would be feasible, good practice     
asked by 11.09.2014 / 16:01
1
answer

retrieve name from a background of a textView

If it is possible, how do I retrieve the name of a background from a textView? (android) I have a textView and would like to retrieve the name of the file that would be (back_corDoFundo) preferably in String to buy with another String, I alre...
asked by 09.09.2014 / 14:24
1
answer

AlarmManager does not cancel the scheduled alarm

I have the following code in MyReceiver : @Override public void onReceive(Context context, Intent intent){ context.startService(new Intent(context, BackgroundService.class)); } public void setAlarm(Context context,...
asked by 25.01.2015 / 12:26