Questions tagged as 'android'

1
answer

Can you populate a RecyclerView with two xml adapters with different structure?

I'm reading two xml with two different structures, I can populate a RecyclerView with the two adapters of each xml. In this picture you can see what I want to do. Now I have the files that are for a parser xml, a class for each xml, a p...
asked by 25.08.2016 / 00:11
2
answers

Activate marquee in a textview from code

Continuing with my new project, I intend to make that when they click on the corresponding textview start to make marquee , and when you press another one, stop doing it. p> I've been looking for several hours and I only find ways to do it...
asked by 08.07.2016 / 13:20
2
answers

You can convert a jquery mobile application into an Android or IOS apk

I'm doing a moblie app using jquery mobile but I intend to convert it into a native apk. What is the most effective way to do it?     
asked by 23.08.2016 / 22:37
2
answers

NullPointerException when you set a text in a TextView

When trying to set text in a TextView in the following way: Class - > FavouritePet.java public class FavouritePet extends AppCompatActivity { private ArrayList<Pet> pets; private RecyclerView rvPets2; private TextView numer...
asked by 22.08.2016 / 11:27
4
answers

Error passing variables with Intent - NullPointerException

I am trying to pass a ArrayList<Pet> from a Fragment to my MainActivity.java for from here, if you press a ImageButton (from the action bar) we go to another activity in which I need the data of said ArrayList W...
asked by 26.08.2016 / 11:33
1
answer

Volley TimeOutError. Android Studio

I happen to be working with volleyball. When I want to fill a Recyclerview it turns out that I see the error described in the title, I was reading and I know that it is because of the response time between the application and server (in this cas...
asked by 18.07.2018 / 02:06
1
answer

Calculable. Expressions with conditionals

I am trying to calculate a formula with java but when I try to use a conditional, to do one thing or another according to whether a parameter is true or false. I add method. public void calcular (){ Calculable calc = null; try {...
asked by 18.07.2018 / 11:35
3
answers

How to go from an Activity "A" to an Activity "B" to select data and return to Activity "A" without the editText of Activity "A" being erased?

I have the need in an "Activity A" to call an "Activity B" to select data and send it to the "Activity A", but in the "Activity A" I have 10 edit text that when making those transitions with intents they are deleted, and I do not want to pass al...
asked by 20.06.2018 / 22:51
1
answer

How to provide USES_POLICY_FORCE_LOCK permissions in Android Studio?

I have an application that should block the device after a certain time, I found that it can be done with the lockNow() instruction, but when I put it and execute it, I get the following error.    E / AndroidRuntime: FATAL EXCEPTION: T...
asked by 17.09.2018 / 23:42
1
answer

keytool in windows does not work to get hash for Facebook

I am working with the Facebook SDK for android however there is a section that asks me to generate an authentication hash using keytool, but it throws me the following error: this is the documentation that I follow: How can I s...
asked by 29.03.2018 / 19:56