Questions tagged as 'android'

1
answer

Back up content from a DB in /data/data/package/databases/db.dbname in sdcard?

My application creates a db, what I want to do is a backup of what it contains then I do the following code: File CarFile = new File("sdcard/xxxx"); if (!CarFile.exists()) { try { CarFile.mkdir(); } catch (Exc...
asked by 11.10.2016 / 02:17
1
answer

Why do I get this error when compiling my project in Windows?

Good morning, I am trying to compile my android project in Windows since the development of it was in Linux but when trying to run the application I get this message. I do not know if something similar ever happened to someone.  ...
asked by 04.04.2017 / 17:42
2
answers

Open URL from EditText

I'm trying to make an application similar to a browser but without WebView , just a EditText where you put a URL and pressing a certain button opens said URL in the default browser. In case it was not understood, I leave more...
asked by 15.11.2016 / 19:00
1
answer

Checks Alert Dialog Android

I am trying to do some checks within alertdialog to see if certain conditions are met and let the user continue with the process. But when the user gives the download button (PositiveButton) makes the checks and leaves the alertdialog...
asked by 19.10.2016 / 10:04
2
answers

Consuming a JSON from android What's wrong? [closed]

I'm trying to get a Json from a web resource and convert it to string to show it on the screen. I am using android Studio for this and I can not consume that resource. Any idea that is wrong PS: In the manifests I have added the INTERNET and ACC...
asked by 18.10.2016 / 13:11
1
answer

Resources in android pixel density, xxdpi, xdpi, hdpi, mdpi, ldpi

I find that static images included in the apps, with aspect ratio 16: 9 on tablets, brushstrokes are displayed, which is the way to generate resources appropriately for each pixel density ldpi,mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi I under...
asked by 16.09.2016 / 19:57
2
answers

Android VOLLEY send json and receive json in response

Good, what I'm trying to do is send a json from Android with Volley to a php that I have on my server, within the php I make some queries and I need to return another json (response) to work with that data. I clarify that PHP works well with ano...
asked by 11.07.2017 / 18:36
1
answer

Error while Launching activity in the Android Studio emulator

I have running the native emulator running Android Studio 2.1.2, I find that only once does the application load me into the emulator, and the following times I give it to compile I get the error:    Error while Launching activity     
asked by 12.07.2016 / 14:31
2
answers

Data persistence on Android

Goodbye, I'm creating an app where in the first activity I filter the regions of the country and then I pass them through the following activity where I call a webservice with the respective filter to bring me the correct data, after that clicki...
asked by 15.07.2016 / 17:04
1
answer

Refresh listview SwipeRefreshLayout

Taking as a start I'm finishing my android app, and I need to update my custom listview when I slide down the screen. I am implementing SwipeRefreshLayout only that I got stuck in the part of the onRefresh method and I do not know how t...
asked by 19.05.2016 / 02:11