Questions tagged as 'android'

1
answer

SVG icon created with Inkscape is not properly imported

With Inkscape application, I'm trying to create my own custom icons in SVG and then import them into Android Studio. When importing to Android Studio I get the following error message ERROR@ line 29 <defs> is not supported WARNING@ line...
asked by 11.07.2016 / 15:22
1
answer

HttpsURLConnection BAD REQUEST

I'm trying to send a POST request to Plivo (VoIP server) to send an SMS to my cell phone, but I only get BAD REQUEST (Code 400). The error I received is "error": "invalid json data sent in raw POST" I can not find the error....
asked by 12.08.2016 / 22:11
1
answer

Adjusting images on different screens

I'm running the app on two emulators that have exactly the same resolution but different densities: 720 x 1280 160dpi 720 x 1280 320dpi I want the image to take the same space on the screen. I understand that, using DP, the density be...
asked by 10.07.2016 / 14:06
1
answer

Auto Scroll for Specific View

I have a ScrollView with several elements inside, LinearLayout, Images, Textviews etc. In the header, above the scrollview I have some buttons, in the OnClickListener of one of them I want to do an auto scroll so that the application shows on...
asked by 07.06.2016 / 19:09
1
answer

Android - Transfer data and change Fragment per Click

Hi, guys. I need help transferring from Fragment when I click on my button inside a ListView. Currently I have a MainActivity (extends AppCompatActivity) to manage the Fragments. Below are some screenshots of how the App is Fragment 1:...
asked by 02.06.2016 / 17:42
1
answer

Check if GPS is enabled on all versions of Android?

I use this code to check if GPS is enabled to display a dialog: LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); boolean GPSEnabled = locationManager.isProviderEnabled(Location...
asked by 27.07.2016 / 16:06
2
answers

Deleting an editText while modifying another

I'm starting my studies on Android now, and I'm doing some testing. I have two AutoComplitTextView fields, the two shows an id and a description. X1 and X2 (fictitious names). The X2 list is filtered by choosing X1. Is there any way that if t...
asked by 01.07.2016 / 14:43
2
answers

When I install apk it is installing the app more than once

I'm using Android Studio, while I run the emulate to install the apk, during installation occurs to install more than once the app, getting two icons (two apps). How do I resolve this?     
asked by 01.08.2016 / 02:37
1
answer

Alternatives for not using WebView

Are there any alternatives other than webview for android to use? I'm having a problem that, it seems, a lot of people have to run videos in the video tag of html5 . Many people say the solution is simply to use the webchromeclient and...
asked by 04.07.2016 / 21:21
1
answer

Duplicate but different files

Well, there is an error in my application by Android Studio. And the problem is, the interface says that there are two files that are duplicates, however they are apparently different. I've also tried deleting them, however, by deleting File1, d...
asked by 05.08.2016 / 13:32