Questions tagged as 'android'

1
answer

Toolbar repeating

Hello, I have a problem, my toolbar is repeating every time I add a new registry. HowdoIsolveit?followthecodes:publicclassListarReportesextendsBaseActivity{Usuariousuario;RepositorioReporterepositorioReporte;RecyclerViewrecyclerView;ReportLi...
asked by 30.11.2015 / 21:33
1
answer

How to create a class with a NavigationDrawer to use in various Activities?

I started studying Android development a short time ago, I saw that to use a NavigationDrawer it is recommended to use fragments to change a FrameLayout in the main Activity, but in the new activities that I create, I did not want to have to put...
asked by 15.12.2015 / 14:12
1
answer

Execute task synchronized with the clock

I would like to run a task synchronized with the android clock.    For example:   in the second 0, then in the second 10, 20, 30, 40 and 50.   I do not want to run every 10 seconds, I want to run in these exact seconds. Is there a way to...
asked by 10.03.2016 / 21:02
2
answers

Call a new activity through a fragment

I have the following code: Fragment: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View i = inflater.inflate(R....
asked by 18.03.2016 / 20:02
1
answer

NoClassDefFoundError error: com.itextpdf.text.Document after updating the SDK

I have a database on sqlite on Android, and export report to pdf using the itextpdf library. But recently after updating the Android SDK, it started from the error line below: Document document = new Document(); The...
asked by 19.03.2016 / 00:28
2
answers

Android: Send data via POST

I know how to do this in other programming languages, however, when looking for examples of how to send data using POST in Android , I only find examples that use discontinued classes, such as: HttpClient HttpPost...
asked by 22.03.2016 / 04:45
1
answer

how to simply put an icon in actionBar?

I want to put an icon in my ActionBar I already looked for this information here in StackOverFlow, but the answers I found are very complicated (I'm a beginner) and so I wanted to know if it has a very simple form.     
asked by 07.12.2015 / 21:47
2
answers

How to update the background colors of the rows of a listView?

I have a listView that when I click on a line, it sends information to the server that returns a status. I needed to change the color of the line in my arrayAdapter based on this information. How do I call the arrayAdapter from my activity. When...
asked by 14.07.2016 / 20:40
2
answers

Format Cell Phone Number in TextView - android

I have TextView that displays the user's phone number, I would like to display in my application a mask that would leave the phone number in (xx) xxxx-xxxxx format. How could I do that?     
asked by 07.10.2015 / 20:22
2
answers

How to get data from a text displayed in the dialog

I'm using this library to display dialogs in my application: link With this library it is possible to display in the dialog a created layout, but I am not able to capture the user input in the setPositiveButton method. mMaterialDialog = n...
asked by 05.10.2015 / 17:48