Questions tagged as 'android'

1
answer

How to put button in a Listview?

I have a template that I use in my projects, with list with image, I want instead of the image on the side of the button, only the button and title. See my adapter: Adapter public class AdapterListView extends BaseAdapter { private Lay...
asked by 23.01.2015 / 15:31
2
answers

Send problem in Webservice call (SOAP_ACTION, envelope)

I have a service that when accessed by the browser it shows the xml through the " link command. p> I made a test application to test the connection and when it arrives at the command Tranport.call(SOAP_ACTION, envelope) the error log i...
asked by 22.01.2015 / 23:48
1
answer

Android Sqlite: Displaying database contents in textView?

I'd like to know how I display content from the Sqlite database in textviews. I'm using the following method to display in a CustomListView: public Cursor getAllData () { String buildSQL = "SELECT * FROM " + DatabaseHelper.DiferencaPer...
asked by 25.01.2015 / 02:07
1
answer

How to get the device's last location

I would like to know if there is any way to get the last location of GPS , before I run the option to execute obtaining the current position. public class Localization{ private GetGPSResponse delegate = null; public void setDelegate(GetGP...
asked by 21.03.2015 / 14:49
1
answer

SQLiteDatabase transform return into json

Good afternoon, I need to do a query but I can not use the cursor. Example I have an object that I created that is called DatabaseHelper, inside it I have created some methods (prepare, bindParam, getQuery, execute), however in executing I ne...
asked by 20.12.2014 / 20:00
1
answer

Tabs on Android

I'm trying to implement a simple code just to show two tabs on Android and later add a content dividing into two activities, one to show examples with IF and another with SWITCH. I created the XML, where I can check without problems and I als...
asked by 27.12.2014 / 02:07
1
answer

ImageView circular

How to construct a ImageView that is round like the example below?     
asked by 29.10.2014 / 17:53
1
answer

can not find symbol class Builder

I created a project in Android Studio 1.0, Login Activity. I made the following changes: No Build.gradle compileSdkVersion 21 buildToolsVersion "21.1.1" dependencies { compile...
asked by 11.12.2014 / 21:19
1
answer

Android ListView

How can I have a ListView mount the items as follows: When you have only one item it occupies the entire screen, if you have two, divide the screen size by 50% between items and so on ... <RelativeLayout xmlns:android="http://schemas.and...
asked by 22.08.2014 / 15:03
1
answer

How to show ad when closing my app

I want to show my ad when the user presses to "back" where I should launch this code: AdBuddiz.showAd (activity);     
asked by 23.09.2014 / 01:03