Questions tagged as 'android'

1
answer

Set a USER_AGENT in an android application, is it the same for HTTP?

I am trying to establish the USER_AGENT in an Android application, so that it can navigate, with which I indicate it. I am using the following lines of code: public void setUserAgent(){ DefaultHttpClient http = new DefaultHttpClient();...
asked by 02.11.2016 / 18:19
2
answers

How to copy content from a zip to an android directory?

Hello everyone. Ask this question so that you can give me a hand and guide me on my way. My problem I want to be able to decompress a zip in a folder or directory on the sdcard, but my code has not hit the target. Its flaw is tha...
asked by 09.02.2017 / 22:26
2
answers

how to make android studio recognize android device on mac [closed]

I use android studio in my macbook, to test the app I use the emulator but when I connect an android device I do not recognize the device, I do not know if it's a driver's fault or something like that, that is when I open the adb in android stud...
asked by 30.03.2017 / 23:15
1
answer

Increase screen ratio for Samsung S8 and LG G6 on Android

With the departure of new more landscape terminals such as the LG G6 and the Samsung S8, the apps are displayed with a black strip at the top and bottom, how can you adjust that the app expands in its entirety?     
asked by 31.03.2017 / 12:57
1
answer

Show image in AndroidStudio simulator

Good morning, It's my first time in this forum, so if there is a protocol and I skipped it, I apologize haha. My doubt is that when I simulate my app in Android Studio, the images associated with the buttons are not displayed. However, I d...
asked by 07.11.2016 / 14:55
2
answers

"Namespace 'TagsEditText' is not bound" but when replacing it with app everything is correct

Using the following library, link I follow steps 1, 2 and 3 indicated by the developer but in the layout receipt the following error: "Namespace 'TagsEditText' is not bound" The written code is the same as indicated in step 3: &l...
asked by 03.11.2016 / 17:44
2
answers

Firebase Messaging O GCM?

I have a app in which I use Firebase Messaging , but I have battery consumption problems. And reading in the google docs , recommend that to save battery use GCM . So my question is: What is the difference between using...
asked by 28.11.2017 / 06:55
1
answer

Error in onCreate android .AppCompatAutoCompleteTextView can not be cast to com.rengwuxian.materialedittext.MaterialEditTextat

I have the following error E/AndroidRuntime: FATAL EXCEPTION: main Process: shop.easy.app.x.com.x, PID: 10183 java.lang.RuntimeException: Unable to start activity ComponentInfo{shop.easy.app.x.com.x/shop.easy.app....
asked by 29.11.2017 / 17:33
1
answer

Error loading Layouts in Android Studio

Good afternoon, I have a problem when loading the layouts in my Android project. In the header of "activity_main.xml" I have the following: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schema...
asked by 03.04.2017 / 00:54
1
answer

services on android

I'm working on an android application that runs a servicio in the background, I've been testing with different services and it happens that all of them run fine while the app runs normally, when I close the application the service will s...
asked by 04.04.2017 / 03:58