Questions tagged as 'android'

1
answer

Placing click event on the button that is in a Fragment, in an Activity?

I want to put a setOnClickListener on the button that is in a fragment, through my activity. Here are the codes: Activity: private Button mButtonCriarConta; // onCreate da Activity... mButtonCriarConta = (Button) findViewById(R.id.emai...
asked by 10.11.2015 / 16:07
1
answer

How to leave space between images?

I have this layout: telainicial.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:o...
asked by 16.04.2015 / 21:47
1
answer

Spinner with states and cities?

How does a spinner work with states and cities in Brazil? When you click on the state, list the cities? How to do this? A bank with everything registered? SQLite? Do I need a ready-made model for states and cities?     
asked by 01.12.2014 / 03:01
1
answer

Error in the monetary mask, saved with the correct digits but at the time of display are missing 2 digits

Colleagues!WhenIsavetheproductitgetsthecorrectdigitsasinthescreenabove.However,whenIentertheproductlistandclickontheScissorsproductitopensintheregistrationscreenwithtwodigitsmissingasinthescreenbelow.Anyonehaveanysuggestions?Iasktobeasspecifica...
asked by 09.01.2016 / 16:53
1
answer

How to zoom in an imageView?

I'm looking for the implementation of a zoom on the internet but I do not think so. I found only one zoom that is applied across the image. I needed this standard zoom which has in most applications that allows zooming in any point of the image....
asked by 20.01.2016 / 13:49
1
answer

How to download and import library android v7-appcompat for NetBeans?

I would like to know how to import into a project, using NetBeans, the bookstore android v7-appcompat. I am using a code for studies and Net Beans is not recognizing some lines of code. public class MainActivity extends Activity implements App...
asked by 14.01.2016 / 05:55
2
answers

How to leave an AlertDialog with rounded edges?

When I want to make a% custom_comment I just put a layout inside it. But around%% is square, does anyone know how to round it?     
asked by 07.03.2016 / 19:08
2
answers

How to store state of a checkbox

I'm developing an application to make a school call list, I created Listview and populated it with data from a Mysql database, using Json . The problem is the following, I need to store the state of the selected checkbox...
asked by 06.04.2014 / 05:28
1
answer

"Monitoring" application usage

Is there any way to monitor how long the user uses each application? Does Google Analytics have the ability to do this?
asked by 11.08.2014 / 13:44
1
answer

Folder Permission Only for the Android Application

Can you make files in a folder on sdcard only accessible by the application? (something like chown and chmod) Not necessarily reading but preventing removal and editing through other applications (eg explorer). Dismiss devices with root     
asked by 19.09.2014 / 09:24