Questions tagged as 'android'

3
answers

Align visual components

I'm having trouble aligning the icons / icons in my activity.  I'm using the relative layout to position the buttons, but when it compiles it gets out of order. Follow the code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayou...
asked by 24.10.2016 / 21:43
0
answers

How do I save a Google Maps map for offline use?

I'm making an application that uses the Maps API for Android. The problem is that it only displays the map if you are connected to the Internet. How can I download the map of a certain region and leave it available in the application to run w...
asked by 13.11.2016 / 00:43
0
answers

How to use a two-dimensional array to get the values of the radioButtons? [closed]

I'm developing a quiz game in Android Studio with 10 activities. For each question I have only two alternatives where I would get 1 for the chosen alternative and 0 for not chosen. I'd like to put these values in a two-dimensional array. How wou...
asked by 27.10.2016 / 21:41
1
answer

Autocomplete with image and text

I would like to do an AutoComplete on Android (java / android studio) with text and image, so I found a site that shows a very practical example of how to do it, I tested it and it worked perfectly unfortunately unfortunately I I do not want t...
asked by 09.07.2016 / 16:00
2
answers

How to send data to the constructor?

I need to help me understand the part of object programming. I needed to pass a value that was not inside the test object to know the user's choice. But once again I am a beginner in objects. How do I call in my main activity to receive th...
asked by 08.07.2016 / 16:16
2
answers

I'm trying to extend StringRequest from the volley package, but the import is not working, why?

This is the code I use to import. import com.android.volley.Response; import com.android.volley.toolbox.StringRequest; And here below is a print of my screen showing that I have already installed the volley package correctly. Update1:Iup...
asked by 19.08.2016 / 20:41
2
answers

SmsManager on Dual Sim Phones

I've been researching the subject, but have not yet seen any definitive solution to the problem. Well, my application does send SMS from SmsManager however, it does not ask which chip to use when running in a Dual Sim application, simply because...
asked by 14.06.2016 / 04:19
1
answer

How do I remove the title bar? [duplicate]

I'm having trouble removing the Title bar from the application, I've already tried putting requestWindowFeature(Window.FEATURE_NO_TITLE); on OnCreate, nothing. For the <application android:theme="@android:style/Theme.Black.NoTitle...
asked by 12.06.2016 / 03:05
3
answers

How to retrieve the id of a product by clicking on the listview opening another activity

I'm making an application for querying products using a WebService. I search the WS and bring the product information I need. Then I pass this information to a Adapter create ListView and then in this step Adapter in A...
asked by 28.05.2016 / 21:31
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28