Questions tagged as 'android'

1
answer

How to add button in Maps?

I selected a Google Maps activity at the time the project was created, how do I add this button to the layout? <Button android:id="@+id/btn_draw_State" android:layout_width="40dp" android:layout_height="40dp"...
asked by 15.03.2015 / 20:36
2
answers

Problem with XML LinearLayout

I have a small problem with my layout . I wanted to insert a button that would be in the lower right-hand corner of the layout , but when I do this the button is added to each item in the list. Note: This list is generated by a database &...
asked by 03.03.2015 / 15:35
1
answer

Android - Different ways to "set" a listener on objects

Is there a different way ("syntax") to "set" a listener on an object in Android? For example, I only know this form: btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { activit...
asked by 04.02.2015 / 17:06
1
answer

"percentage can not be resolved to a variable"

I need to set the value of the variable porcentagem according to what is set in Spinner . The problem is that I need to use the value of porcentagem out of method setOnItemSelectedListener() , on line int r = edtVaoN...
asked by 23.11.2014 / 06:32
1
answer

List values of an array in a spinner, and when an item is selected print its value from another array

I have a spinner that lists the types of person (physical and legal - Respectively IDs = 1 and 2) and would like to select one of them, to be printed on a Toast ID . //array tipoPessoa private String[] tipoPessoa = new String[]{"física", "jur...
asked by 31.10.2017 / 21:35
1
answer

Accessing Webservice over Android - KSOAP2

I'm creating an Android APP and I have to connect to my company's web service to make the login system, I'm using the KSOAP2 3.3.0 lib. The path to my WS is for example as: link My problem that happens: 09-04 10:57:52.835: W/System.err...
asked by 04.09.2014 / 16:24
1
answer

How to maintain the same layout for different versions?

How can I keep the layout of my apps for different versions of Android? Example: A EditText has layout in version 2.1 and another in versions 4.x, how to keep the layout of version 4 in previous versions? >     
asked by 06.11.2014 / 04:35
1
answer

Install plugin in Netbeans

I tried to install the plugins and it did not work. They are visible in the Settings tab. ButitisnotavailableinthePlug-instab.Ievenclickedtobefoundalphabetically. I tried to find it through the search, but I could not. I installed eve...
asked by 04.06.2014 / 01:00
1
answer

Laravel + Android

I am starting my studies in the laravel framework and I have seen that it is very useful to create websites, however, is it possible for me to consume these routes in native android? Because the routes are usually linked to views and not to the...
asked by 03.11.2018 / 17:28
1
answer

Pick up Strings from other Activitys [closed]

How do I get a String, or more, from another Activity, and then use it in another Activity, does anyone there know how to tell me?     
asked by 24.10.2017 / 05:40