Questions tagged as 'android-studio'

1
answer

Sort View Pager

I was working with ViewPager and I had a problem. I have 3 layout created (screen1, main screen, screen2) that I want to show that way, that the application opens showing the main screen and that when I slide to the left it shows the screen1 and...
asked by 04.10.2016 / 01:26
1
answer

Failed In The Login Android Studio

This is my code, but when it comes to making the Login that is connected to Sql Server, it does not work, While (rs.next ()) fails. It is not read by the program, I must solve it as soon as possible, I leave my code so please help me solve this....
asked by 12.04.2018 / 23:51
2
answers

Activity is not displayed

Good morning, I am learning to program in java with the Android Studio tool ... I am trying to call another activity through a button but in the emulator, when I press the button, the application closes and the IDE gives me this error FATAL EX...
asked by 11.09.2017 / 01:42
2
answers

Adjust the date using Calendar. AM-PM error

I want to create a Calendar object, but how can I take a given hour and minutes and adjust the date? Calendar c = Calendar.getInstance(); c.set(Calendar.HOUR,hora); //valores tomados de un TimePickerDialog c.set(Calendar.MINUTE,minutos); //val...
asked by 31.03.2018 / 00:57
4
answers

How to make a switch in kotlin

I have the following example switch in java: int variable = 2; switch(variable){ case 1: //cosas break; case 2: case 3: break; case 4: //cosas break default: break; } What I want wi...
asked by 21.11.2017 / 20:04
2
answers

Control of Activities

Hello, I have the following problem. In a Activity I have a button that executes a AsyncTask . The problem is that if the app is completely closed, the operation is not executed. Is it possible to call an Asynchronous method when...
asked by 01.12.2017 / 16:05
3
answers

How to create new activity in AndroidStudio 2.3.3?

Hi, I would like to know how to create an activity in AndroidStudio 2.3.3, about 1 year ago I created activities with something similar to this: Intent i = new Intent(algo,algo); i.startActivity(); But I see that currently the startActivity...
asked by 17.06.2017 / 14:40
1
answer

error running the app in android studio: "is not valid file-based resource name character"

good simply the app did not want to run anymore, and this is the code that comes out, and try to REMOVE all the fragments (that's what I did and still nothing) Error:Error: 'C' is not a valid file-based resource name character: File-based reso...
asked by 05.12.2016 / 21:56
3
answers

Move from one fragment to another

I would like to know how I can move from one fragment to another without having to mount both of them in the container, then my code. Activity where the container is and call the first fragment: public class Home extends AppCompatActivity {...
asked by 11.11.2016 / 18:53
1
answer

Custom InfoWindow marker with data on Android

I'm making an android application that has a map in which clicking on a marker shows the infowindow as follows: But I need the infowindow to look like this and not do it: How can I do it? Some example? Thanks     
asked by 27.09.2016 / 21:26