Questions tagged as 'android'

2
answers

Get "unixtime" unix time in Java (Android)

The function time () in PHP is the number of seconds since the Unix Era (1 January 1970 00:00:00 GMT). Example: 1465491771 In java how can you get the equivalent value to Unix Time?     
asked by 09.06.2016 / 17:06
2
answers

Show Iframe inside a WebView

I need to be able to show the content of an iframe in my app that contains a webview. It turns out that I have an app that contains a webview, inside this is a website (up there without problems), the problem arises that within this site ther...
asked by 15.06.2016 / 16:08
3
answers

How to get a variable from an Activity in the RecyclerAdapter of a RecyclerView?

I have a problem calling a variable that is in my MainActivity towards a RecyclerAdapter The variable I call it like this: MainActivity main = new MainActivity(); String userName = main.userName; But it returns me as null In my MainActivity...
asked by 03.06.2016 / 15:26
1
answer

Error: Execution failed for task ': app: mergeDebugResources'

This error came up all of a sudden, it marks me the class R in red in the Java code. AAPT err (Facade for 557143976): libpng error: Not a PNG file    Error: Execution failed for task ': app: mergeDebugResources'.   Some file crunching fai...
asked by 25.05.2016 / 18:25
1
answer

how can I import Jeremy Feinstein's slidingmenu library in android studio?

I need to add Jeremy Feinstein's slidingmenu library that I downloaded from github in the android studio and I do not know how since it's a tablet I do not know how to add that kind of libraries. Greetings     
asked by 26.05.2016 / 04:35
1
answer

Does Android SQLite not support incremental auto ids that are not called "_id"?

I'm doing an implementation of a database in my Android application and I've noticed that all the tutorials I've seen, always call the id of tables _id or call an interface called BaseColumns that gives the name in string _id ....
asked by 05.06.2016 / 11:38
1
answer

POST request error with JSON with accents in Android

I am sending a request to an API in ASP.NET from Android, I am using Spring Framework to make requests, the problem is that when sending a JSON that contains accented characters the server returns an exception with the following message: {"exc...
asked by 02.02.2017 / 06:16
2
answers

How can I put a background image in an ImageView without it being blurred?

What I want is to put a background image in a ImageView , but when I run the app this image looks blurry and I do not know why, I also put a Play icon and the same thing happens go fuzzy Does this have something to do with the image or is there...
asked by 28.07.2016 / 20:40
1
answer

Can I save the BD SQLite in android in another route instead of / Data / ...?

I would like to save the BD of my mobile application in another folder that was not the normal path of / data / .., for example in the sdcard in a route that I can specify.     
asked by 26.10.2016 / 00:43
1
answer

How to search the path of an app by its name?

I want to search the path of an app by its name, I searched and researched and the PackageManager method seems the ideal but I do not know how to adapt it so that it does what is desired.     
asked by 19.10.2016 / 16:53