Questions tagged as 'android'

3
answers

How to install an APK remotely? (how GooglePlay updates the apps)

I've made a service to download an updated version of my application when it exists. I would like to display a message on the screen advising that there is an update and install / update behind my application. It is possible? Thank you in advanc...
asked by 31.05.2016 / 18:05
1
answer

android - Cache images and show listview

Good afternoon friends, is as follows: I'm going to use Volley to get webservice data, and so I write the list in my local DB with SQlite. In this webservice will come a JSON with items, each item has its data and an image. I need to save thi...
asked by 22.06.2016 / 21:15
1
answer

Error java.lang.NumberFormatException: Invalid double: ""

When I run my app, the error appears: java.lang.NumberFormatException: Invalid double: "" I do not know what to do. The error happens when I leave a blank value, for example, the app makes the sum of 2 numbers if the user types o...
asked by 25.05.2016 / 03:44
1
answer

Should Android support libraries be compiled together in APK?

I'm developing an Android app, which uses two libraries that Google makes available. appcompat-v7 is used to have action bar on devices with version 2.3 or lower, since it was only added in version 3, and google-play-services...
asked by 22.04.2014 / 05:31
2
answers

Why is the gravity attribute of the LinearLayout.LayoutParams object not working like the setGravity () method of View?

Problem I'm working on a UI library to android , where hedge the layout parameters ( height , width , weight and gravity ) dynamically via code in a LinearLayout.LayoutParams object but the gravity attribut...
asked by 27.03.2014 / 21:24
1
answer

Creating doc or docx file [closed]

I wanted to know if there is any lib capable of creating a doc or docx file straight from an android app. I've tried apache poi, but it does not work. I'm using android studio. I have tried in many ways but I can not, if anyone can help me thank...
asked by 02.02.2016 / 07:01
1
answer

Detect copied text

How to perform an action whenever someone copies some text in the keyboard of Android? And would you have to use a service to let it run all the time?     
asked by 17.01.2016 / 22:33
1
answer

Error creating PDF file on Android

I have a problem creating a PDF using iText on Android. I have to save in the internal memory of the device, but it is giving error because I do not know the way to save because in the tutorial it saved in C:/temp . This is the code p...
asked by 21.05.2014 / 04:31
1
answer

JSON returning html

I'm returning a JSON from a server using PHP with the simple code: <?php $response = array(); $response["success"] = 1; echo json_encode($response); I'm getting the answer through an android app, however with the following error:    E...
asked by 26.02.2014 / 22:24
2
answers

How, when you click on the notification, delete the notification and not open the application?

I need to send a notification but would like it when the user clicks the notification it is deleted and does not open the application The part of generating the notification is already working. I could not stop the application from being open...
asked by 12.02.2016 / 21:15