Questions tagged as 'android'

2
answers

What is the right approach to get the click / position in RecyclerView?

What is the right approach to get the click on RecyclerView? 1 - Within the onBindViewHolder use the position, even within the setOnClickListener methods, which turns the variable position into FINAL; 2 - Within the onBindViewHolder use the h...
asked by 19.10.2016 / 15:22
1
answer

Project has more than 65536 methods

Adding the Analytics Package to the project resulted in an error in the project. As explained in this blog , the error occurs when the project has more than 65536 methods ( only the added Google Play Services package has about 30,000 methods)....
asked by 28.04.2017 / 20:08
1
answer

What is the difference between Activity and View on Android?

What's the difference between Activity and View on Android?     
asked by 17.02.2017 / 02:53
1
answer

Keep background in DrawingView

I need an application to draw on a specific background, the code is working correctly, but when I go to delete / correct a wrong line, it erases the background and the background should be maintained. However, it is deleting the background image...
asked by 13.07.2015 / 16:02
3
answers

Import eclipse project into the latest Android Studio API

I did the project import from an eclipse app to Android Studio. The import occurred smoothly and the gradle was created. However, I notice that the visual components like EditText, ProgressBar, AppBar, Button are with an outdated look, of versio...
asked by 03.05.2016 / 18:18
2
answers

Error rendering - class could not be found: android.support.v7.internal.app.WindowDecorActionBar

In my project Android Studio is giving a rendering problem in xml, giving the following error:    Rendering Problems The following classes could not be found:       - android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Creat...
asked by 25.11.2015 / 19:22
1
answer

How do I assign an Activity to open when I click on the ActionBar Tab?

Context I have an application that contains a Activity called MapActivity (of which is a Map type activity that inherits from GoogleMaps api), and another Activity common that will serve as a search with filters to refine...
asked by 20.07.2015 / 16:16
2
answers

Return reading in JSON

I can read json's return in the format [{"celular":"123456","_id":"1"}] The code that works with json above is this: public static void MakeJsonArrayReq() { JsonArrayRequest jreq = new JsonArrayRequest(url, new Response....
asked by 11.10.2015 / 16:46
1
answer

Criteria used by Google Play to determine whether an app is designed for tablets

I have an application made for Android, and I took every possible care with regard to layout, screen resolutions, dpi etc. In fact, everything is properly configured in the manifest. The layout of the application is quite different on a mobil...
asked by 24.04.2014 / 21:02
1
answer

How to prevent the app from being "minimized" by AppSwitch (RecentApps) Xamarin Android

I need to lock the device for one application only. I use a line in my project that requires my app to make a launcher . So, the initial screen of the device is my application, and HomeButton always points to the application. Lin...
asked by 22.03.2018 / 15:57