Questions tagged as 'android'

2
answers

How to detect the screen resolution to apply the layout in android?

How do I detect a particular screen size and apply the specific layout? Example: I created a layout folder called "layout_480x800", it will be the layouts for that resolution, I also have a layout folder called "layout_720x1280" in which it w...
asked by 10.12.2014 / 06:07
3
answers

How to change the theme of an Android App to look like iOS?

I'm developing an Android app and would like to use a theme that makes it look like iPhone (iOS) apps . Is there anywhere I can get this theme or simple way to implement it?     
asked by 20.02.2014 / 20:29
2
answers

Click the button does nothing

I put a button on activity_main and made a second screen. The idea was to click the button to load that other screen. And in class MainActivity.java I put it on clicking the button, it would load the screen. However, clicking the b...
asked by 28.05.2014 / 15:58
2
answers

Passing parameters from one Activity to another

I need to pass the name of a selected product on ListView to be displayed on a EditText . I am currently on the screen that the user informs the customer and then opens the screen of new request, on this screen I have a button to...
asked by 09.04.2014 / 20:14
2
answers

How to use sharedpreferences as class

I would like to know how I get to receive a data and assign it in a SharedPreferences class so that I can use this value whenever I need it. Below is my code and where I need it to change. This is a list of drives I get: ltsunidades....
asked by 11.04.2016 / 15:11
2
answers

Call another Layout

When placing email and password the app should call another layout. I just can not do this ... Intent intent = new Intent(this, R.layout.activity_estado); startActivity(intent); Report the following error: Can not resolve constructor 'Inten...
asked by 09.01.2017 / 16:34
2
answers

How do I change the color of AlertDialog

I put in my app where you can show the dialog to exit the application, but the dialog is black. I wanted him to go white. How do I change the AlertDialog theme? @Override // SAIR DA APLICAÇÃO public void finish() { if (sair) {...
asked by 17.11.2016 / 05:42
2
answers

Press the button on a screen that is a fragment and go to another fragment. How to do?

I have a class of type Fragment and I would like that when the user clicks on the button it would go to another screen that is fragment .. how can I do this? public class AlertaFragment extends Fragment { @Override public View o...
asked by 02.02.2017 / 14:17
2
answers

Application with Maps

How do I use maps in the application? Is it via certificate generated on my pc that then validates on the web? Can I apply this genre to eclipse?     
asked by 12.07.2015 / 14:40
1
answer

How to create custom transitions in Android Studio?

I'd like to know how to make custom transitions on Android. Transitions between activities are always the same. Are there any tutorials that teach you how to improve transitions?     
asked by 11.03.2017 / 03:59