Most voted "android" questions
Android is an operating system for mobile devices developed by Google and the Open Handset Alliance. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.
Learn more…8,935 questions
Sort by count of
-
9
votes1
answer237
viewsKeyboard does not recognize Edittext
I have several EditText inside an item on my list ExpandleListView. Always by clicking on EditText appears the message below and is not typed text in the field: getSelectedText on inactive…
-
9
votes1
answer6414
viewsHow to put a link to download the app when the user enters my site by mobile
Well, I have a website and the app for IOS and Android. And I wanted every time the user entered through the smartphone he had the option to download the application, and already recognize which…
-
9
votes1
answer4596
viewsWhat is the difference between Appcompatactivity and Activity?
What is the difference of AppCompatActivity for Activity ? From which version to AppCompatActivity was added to the Android?…
-
9
votes1
answer610
viewsHow to set up mopub ads?
When you install the plugin mopub in the Android Studio you choose the type of banner ad and it gives you all the code to go pasting in the right place. You perform works right appears in the test…
-
9
votes2
answers1725
viewsMy image does not appear in Imageview
I’m looking for the image in Sdcard. It happens all right, open the gallery, select the image, but the selected image does not appear in Imageview. Code: public void btnFoto(View view){ Intent…
-
9
votes2
answers1017
viewsAdd new fields dynamically
I’m creating a app calculating credits from a school report. DOUBT: How to add a new EditText when the user clicks on the "+" button next to it and sums up the values of each EditText.…
-
9
votes2
answers2293
viewsWhat is the best (fastest) way to read a file from a web server?
I need to read a file on a web server, but when I need to store the content in an array of bytes it is taking too long. Does anyone know a faster way to do this? Follow my code. Thanks in advance.…
-
9
votes2
answers1880
viewsUnity 3D and Android, how to handle txt file?
How to do in the Unity 3D read a arquivo txt line by line and store in a vector using C#. Well, I managed to manipulate the arquivo .txt, however in Android it doesn’t work. Follow the code I used.…
-
9
votes1
answer38768
viewsClick the button and open another Activity
I am developing an application in JAVA , and will have 2 options for the person to choose, I want when she press in 1 of the 2 buttons open a new Activity in the application, Can anyone please tell…
-
9
votes2
answers11213
viewsIs it possible to create a C/C++ app for Android?
I want to create an application for Android using the C or C++ language. What are the advantages and disadvantages of this?
-
9
votes1
answer1043
viewsHow to resolve error: "XXXX app stopped"?
Good afternoon, I have an application in language C# which develops an app for android (using Xamarin). The application works normally for android of versions 2, 3, 4 and 5. However, using a device…
-
9
votes1
answer302
viewsWhat is the Recyclerview?
I saw the class at documentation of Andorid, but I did not understand its functionality, where it should be used and with what purpose. The name referred me to something that doesn’t seem to be what…
-
9
votes2
answers1625
viewsWhen and why should we use SVG?
I’ve been developing for Android for a long time, I program natively, to be more specific. But lately I have had some doubts with the use of images in the application. One time or another we will…
-
9
votes1
answer792
viewsForce Android GPS to update reading
I recently added my application to collect functionality the latitute and longitude points of the GPS at which the device is located. To do so I added the lines to Androidmanifest.xml:…
androidasked 7 years, 9 months ago Reginaldo Rigo 3,638 -
9
votes1
answer5927
viewsFileuriexposedexception error on Android N
Hello friends I am facing the following error: android.os.Fileuriexposedexception: file:///Storage/Emulated/0/Pictures/1488344088086.jpg Exposed Beyond app through Clipdata.item.getUri(). The…
-
9
votes1
answer1343
viewsFullscreen Video on Android Webview
I have an application made on Android Studio using webview and runs a remote web application. The video is displayed perfectly on the webview. However, the option to fullscreen is not available in…
-
8
votes2
answers8421
viewsHow to run Android projects, on Eclipse, on a smartphone?
I have a Moto G and, no way, I am able to connect it (via USB) to Eclipse, to run the projects Android Application directly on the device.
-
8
votes3
answers1740
viewsHow to put caption in an Imageview
I wonder if it is possible to put caption in a ImageView similar to the image below, if possible an explanation or study material.…
-
8
votes1
answer660
viewsCommunication between Fragment and Activity
I’m making an Android app that uses time and date switches (Datepicker and Timepicker), which are displayed in the form of Fragments. When the user sets the desired time, I need it to be passed from…
-
8
votes1
answer1112
viewsCriteria 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 regarding layout, screen resolutions, dpi etc. Inclusive, everything is properly configured in the manifest. The layout of the…
-
8
votes1
answer12581
viewsHow to reverse engineer an android app?
As from an android app in the extension . apk, get the classes, layouts, libraries etc, ie, perform reverse engineering? Note: I used 7-zip as Bacco advised and resulted in the following file…
-
8
votes1
answer16812
viewsHow to change the compiled application name?
How to change the name "app-release" that gets after compiling the android app ?
-
8
votes2
answers6768
viewsRun something after inserting a certain number of characters in an Edittext?
I wonder how to limit characters and run something then on Android. For example, in a EditText or a TextView type 5 characters, when typing the fifth character executes a command, for example, it…
-
8
votes1
answer2249
viewsWhen and where to use webservice?
I’m with an android app project that is similar to Easytaxi (has nothing to do with taxi, but follows this logic of using map to locate "taxi drivers" in real time, with account registration and…
-
8
votes1
answer3540
viewsChange Actionbar menu icon
I want to change the menu icon for ActionBar, those 3 points that have as default option "Settings". I’ve tried for the Style creating a custom theme and there putting the new icon but it did not…
-
8
votes2
answers1484
viewsCompareto: Comparison method violates its general Contract!
I found many questions on this subject, and tried all the suggestions I found, however the problem persisted. If anyone can help me, there’s my problem: I have a list of requests, this list is…
-
8
votes2
answers749
viewsRendering error - 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: -…
-
8
votes1
answer204
viewsAndroid Audio Player
I created a music player it is working 100% only that when it comes to the end of a song it does not pass to the next one of the list. Does anyone know a solution to my problem ? (Note: the songs…
androidasked 9 years, 6 months ago Itallo Freire 215 -
8
votes2
answers964
viewsProblems with importing libraries
I started developing for Android in my work and I was asked to start exchanging some simple things from an existing project, which works and has even been released (the version I’m trying to test).…
-
8
votes2
answers9825
views3-point menu in all Activities with standard Navigation Drawer
I’m starting now to implement on Android. I have a little doubt, created a Blank Activity (activity_initial) and with it the Action Bar, then created a Navigation Drawer (navigation_menu) also…
-
8
votes1
answer113
viewsMaintain background in Drawingview
I’m needing an application to draw on a specific background, the code is working all right, but when I’m going to delete/correct a wrong line, it erases the background and the background should be…
-
8
votes1
answer374
viewsHow to assign an Activity to open by clicking on the Actionbar Tab?
Context I have an application that contains a Activity calling for MapActivity (of which is a Map activity you inherit from the Googlemaps api), and another Activity which will serve as a search…
android android-fragment actionbar android-adapterasked 9 years, 4 months ago Paulo Roberto Rosa 8,979 -
8
votes1
answer1445
viewsHow to Set and Get Application Version
I’m almost finished my first android app, and I made a "page" of about and manually put the version number. Da para definir a versão em algum local ? e tem como obter ela dentro do programa ?
androidasked 8 years, 5 months ago Igor Oliveira 1,110 -
8
votes1
answer466
viewsUsing Sqlite on Android with Phonegap
Guys, I have a little problem... I’m making an application and I’m using the sqlite on android to save a copy of my database, so far it’s okay, is working, is copying the data the only problem I…
-
8
votes2
answers190
viewsWhat is Listviewanimations and how to use it?
I wanted to understand what the ListViewAnimations is (a component, a Framework?) and how it works.
-
8
votes3
answers813
viewsWhat is the difference between methods for obtaining a context?
One can, beyond the this, get the context in several ways, with different methods. As shown in the code below, we have the getApplicationContext() and the getBaseContext() which apparently serves…
-
8
votes1
answer692
viewsWhat is the difference between Activity and View on Android?
What’s the difference between Activity and View on Android?
-
8
votes2
answers764
viewsHow to generate Thumbnail of a Video for Android?
I’m developing an app for android, one of the screens of the same should generate thumbnails videos and display them in a list. Like the image below. I was able to generate thumbnails of images, but…
-
8
votes0
answers437
viewsHow to change the color of the item in a listview
I have a listview which is adapted with a SimpleCursorAdapter and that within the listview has two textview, one with a number and one with a name. I wanted to do so... the listview shows in…
-
8
votes3
answers646
viewsImport eclipse project to latest Android Studio API
I imported the project from an eclipse app for Android Studio. The import went smoothly and Gradle was created. However, I realize that the visual components like Edittext, Progressbar, Appbar,…
-
8
votes1
answer1772
viewsWhat is Viewholder Pattern?
I’m implementing a RecyclerView on Android and I noticed that it is necessary to create a class called ViewHolder. This class seems to be a design standard called Viewholder Pattern, and my doubts…
-
8
votes3
answers330
viewsDoubt game two players, half screen upside down
I am creating a program to practice what I have learned so far and learn more, but I have reached a halt. The doubt is as follows: I’m creating a question and answer game for two players, each one…
-
8
votes1
answer479
viewsWhat is the difference between File Uri, Content Uri and Stringpath?
My application deals with writing and reading files, and I’m a little confused about how and when to use each of these types of Uri. I believe it would be best to understand the difference between…
-
8
votes1
answer775
viewsHow to have multiple languages in a single application?
Listening to a technology podcast on Nubank, CTO and Principal Engineer comment that they use Java, Kotlin, React Native and Flutter to develop the Android app and everything generates a single…
android react-native software-architecture kotlin flutterasked 5 years, 5 months ago Alisson Marqui 1,128 -
8
votes6
answers422
viewsHow to "call" this correctly?
When the Elements are inside the onCreate, use the (this) it’s very easy... Example 1 : that works from within onCreate itself protected void onCreate(Bundle savedInstanceState) { Spinner spinner =…
-
8
votes1
answer119
viewsDesign has more than 65536 methods
When adding the Analytics Package to the project, an error occurred in the project. As explained on this blog , the error occurs when the project has more than 65536 methods (only the added Google…
-
8
votes1
answer206
viewsHow to prevent the app from being "minimized" by Appswitch(Recentapps) Xamarin Android
I need to lock the device only for one application. I use in my project a line that determines that my app becomes a launcher. So, the home screen of the device is my application and the HomeButton…
-
8
votes1
answer380
viewsHow to remove the background of an image using Watershed on android?
I’m developing an app that classifies images of wounds. For this, I need to highlight the region of interest of the background to facilitate the work of the classification algorithm. The user uses…
-
7
votes3
answers232
viewsChange CRT file to byte
I need to convert a file .crt byte to be able to send by socket. This code works in Java, but how would I write it on Android? Path path = Paths.get("sdcard/certificado.crt"); byte[] certificado =…
-
7
votes1
answer15634
viewsOpen Facebook app by a web link on Android
I have a mobile site that the user can only access by logging in with Facebook. O SDK Facebook para Web (Javascript) works well, but the user always has to log in, because he is not always logged in…