Questions tagged as 'android'

2
answers

layout problems in Android Studio

I have a small problem with my layout looks like this in Android Studio and how it stays on avd: XMlcode:<TextViewandroid:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/text...
asked by 27.11.2015 / 00:25
1
answer

how do I format the value of a double variable in android?

I am making a small application that aims to calculate the IMC of a person, but I am not able to format the output value to only two decimal places always something like: 22.222222 or 31.23232322 etc ... I have tried to use the "% .2f", but Text...
asked by 02.12.2015 / 21:23
2
answers

Problem displaying layout on multiple devices

I'm having a hard time putting together a layout. In the emulated it gets the way I want as below: Butthecellphoneiscompletelyunconfiguredasbelow: XMLCode:<?xmlversion="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://...
asked by 26.08.2015 / 00:07
2
answers

Insert sqlite into android application

I'm developing a database in sqlite part of the application. At this point I am using the SqliteBrowser, and would like to know how to do to get the database and put for the application to read this. I have a slight notion that I have to create...
asked by 20.08.2015 / 01:01
1
answer

What is the purpose of the contentDescription?

In my application I have a Warning as below:    [Accessibility] Missing contentDescription attribute on image Image I'vebeenresearchingandfoundthatthisisthe Accessibility but can not understand. What is the purpose of contentD...
asked by 03.10.2016 / 18:03
1
answer

How does the allowBackup tag work?

Write to the user device with getSharedPreferences("config" ,Context.MODE_PRIVATE) login name and some application settings. Does not the allowBackup tag as true imply saving only this information? When does backup / r...
asked by 30.09.2016 / 17:02
1
answer

Problems with database connection

I'm developing a test program for integration with webservice . webservice itself was developed in Eclipse . It is a simple user registration and login service. When I run the program on Android and try to register a new user, it appears tha...
asked by 01.10.2016 / 03:12
2
answers

Click on a Menu, and change the icon of the others

Good afternoon, my question is this: I have a subMenu, where the user will select the Map Layer. These SubMenu's will have a check image to tell you which one is selected. Follow the xml: <menu xmlns:android="http://schemas.andro...
asked by 17.09.2015 / 19:54
1
answer

How to access calendar in android and select contact

I want to make my application access the system calendar and bring a contact to save the data in bank (SQlite).     
asked by 21.10.2015 / 15:54
2
answers

Save Checkboxes Values in Android Studio

I'm in a project that has many checkboxes, and they have to be stored definitively, ie when the user close the app and reopen it has to be checked. Would you like to know how to save checkbox modes, definitely, in the app created in Android Stud...
asked by 14.09.2015 / 15:38