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
-
1
votes1
answer92
viewsIs it possible to change the function of the physical button, even with the app in the background?
Would you like to change the function of a physical button, for example the volume, by clicking the button, bottom or top, if it is possible to perform a function other than changing the volume of…
-
1
votes0
answers128
viewsIs it possible to include OCR in java android ? Is there any OCR library in JAVA ?
I already researched something about OCR on the internet and found the solution from GOOGLE, but it is very expensive.
-
1
votes1
answer93
viewsNavigation Drawer with duplicity
I have a Navigationdrawer with two Edittext and I would like these two fields to demonstrate the user data the name and email, but in my Telaprincipal class when I try to play the information for…
androidasked 8 years, 8 months ago dnsfirmino 401 -
1
votes1
answer1114
viewsHow to pass information between screens, using Bundle and Classes with Get and Set?
I’m trying to pass information from one screen to another. I’ve tried to (2) two manners: 1) I created a class only to create variables and encapsulate the methods 2) Now, I’m trying to get past…
-
1
votes0
answers53
viewsHow to store images in Parse?
I have a question about how to save images in a Parse bank. In Firebase it is possible to save the image path and leave it in Google Storage. Already in Parse I could not find if it is possible to…
-
1
votes0
answers45
viewsDesign mode error in Xamarin
I have this problem in my project using Xamarin: I searched the Soen and found that, but it didn’t. What is missing is to uninstall everything and I have no guarantee that it will work. Waiting for…
-
1
votes0
answers75
viewsAdapt code to google maps json url
I followed the code that was in the first comment Link to the comment worked well but when I tried instead of passing the json from wikipedia pass the json from google maps no longer appear results…
-
1
votes1
answer126
viewsHow to eliminate extra space formed in a Linearlayout when creating Imageview via code?
I’m using this code to create a Imageview and add it to a Linearlayout: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { LinearLayout.LayoutParams params = new…
-
1
votes1
answer720
viewsStandard Color of Background
What is the default Background color for a new Activity in Hexadecimal Android Studio? Since it is not completely white (#FFFFFF)...
androidasked 7 years, 5 months ago Manfriny Pereira 13 -
1
votes0
answers83
viewsError of Inflateexception
I’m getting an error of InflateException, but I don’t know how to solve. Error: Caused by: android.view.Inflateexception: Binary XML file line #1: Binary XML file line #1: Error inflating class…
-
1
votes1
answer158
viewsError: "Psi and index do not match" Android Studio
Sometimes when cloning a new branch project or download a new code it builda successfully but does not recognize most of the functions of the android itself in the app. In the log error appears "Psi…
-
1
votes2
answers6645
viewsWhat is the function of wrap_content?
RelativeLayout onCreateLayout = new RelativeLayout(this); onCreateLayout.setBackgroundColor(Color.CYAN); RelativeLayout.LayoutParams ClickMeParms = new RelativeLayout.LayoutParams (…
-
1
votes1
answer240
viewsActivity does not change
I’m a beginner in Android and am creating an app that has two activities (SplashScreen and ActivityMain). I managed to bring out the SplashScreen after much sacrifice, however, when installed on the…
-
1
votes1
answer430
viewsDoubt in the use of Socket in java on android
I want to implement data transmission via Socket, I’m trying to implement Socket.io but I don’t understand how it works. I want to communicate between two android devices. I know you have the server…
-
1
votes1
answer213
viewsDifficulty Creating Threads
I’m trying to create a Thread. But I’m a beginner in the subject. Someone can point out where my code is wrong. It’s not working Procedure TFormPrincipal.ButtonCompartilharProxClick(Sender:…
-
1
votes0
answers36
viewsQuestions about different android SDK
I’m developing an Android application, is already published in the Play Store, but mobile phones with SDK version less than 21, does not appear when searched. In my project I set minSdkVersion 21.…
-
1
votes1
answer208
viewsHow to Save an Image to the Database
Hi, I was wondering if you have how to save an image in the database and show in a listview. If you have how you wanted to know or if there is no way to save an image in the database , how can I…
-
1
votes1
answer364
viewsHow to grab the value stored in a column using Cursor?
I have a cursor that receives all data from my table then use the Simplescursoradapter to put in a listview. I was wondering if with this same cursor I could take a die from a Row and put in a…
-
1
votes1
answer1335
viewsjava.lang.Nullpointerexception: Attempt to invoke virtual method
My program gave this problem when I tried to create a stack (database), to store strings on my Android app package com.project.meuapp2; import android.content.Intent; import…
-
1
votes1
answer100
viewsControl the session on android
I’m using Sharedpreferences to generate a session on android. I wanted to make a check that after a while (5 minutes for example), it give a timeout, reset this session and redirect to Login. You…
-
1
votes1
answer219
viewsCalling screen with Fragment
I created a screen with a list view based on Fragment native android studio, but I did not find solution to "call" this screen from a button. public boolean onNavigationItemSelected(MenuItem item) {…
-
1
votes0
answers57
viewsMarker Draggable without Longclick
At setting a Marker as Draggable(true), you need to hold clickado on the same to turn it "Draggable". I need that simply by dragging your finger on it, it drags. An example would be the 99taxi, who…
-
1
votes1
answer94
viewsNullpointerexception error in setMyLocationEnabled()
I am developing an app that has as its main function to capture the user’s location. I already made a code but it error, I do not know if it is complete, I did following examples of the internet:…
-
1
votes0
answers68
viewsHow to handle text files on Android?
I tried to look at several websites, but each indicated in a different way. I know how to implement objects to create and read a java file, using File, FileWriter, BufferedWriter, FileReader,…
-
1
votes1
answer920
viewsChange Size Dialogfragment according to Android screen
I have a very simple registration form that appears when you click a sign up button. This form appears in a DialogFragment, however, with a very small size. Zoning on the internet I found a code…
-
1
votes1
answer225
viewsHow do I limit the number of lines in a listview
I have a listview that is adapted with a cursoradapter ...it selects everything from the database and adapt in my listview .... but I wanted to limit the amount of lines that appear on my listview…
-
1
votes0
answers179
viewsReturn server data using Volley - Android
I have an Android application that makes some requests on the server and also for sending data via web service, using the library Volley. The data sent by the application is received by an API and,…
-
1
votes1
answer1531
viewsEmail validation
How do I make this edittext only valid for an email? It contains, for example, [email protected] that contains at least the "@"? @Override protected void onCreate(Bundle savedInstanceState) {…
-
1
votes1
answer108
viewsIs it possible to request android applications via the web with php?
I’m working with php and initially I was curious about something, I’m needing to make a request (particularmete a login) in an android app more with my platform in php on the web, there is some…
-
1
votes0
answers71
viewsandroid - Creating an app to make impressions
I’ve been looking at the Google Cloud Print and it seems to be the easiest way it has, right? However the impression would be to stay in an application where the user would not be able to stay in…
-
1
votes3
answers77
viewshow to send 2 values to php & get http//localhost/.... php? kk=par1&zz=par2";
Good afternoon guys I’m having a little problem... I have two values to assign the connection php via web serves... the values are saved in sharepreference and saved in "txtid"... to everything ok…
-
1
votes2
answers1618
viewsHow to use sharedpreferences as a class
I would like to know how I do to receive a data and assign it in a class of SharedPreferences, so that I can use this value whenever I need. Follow below my codes and where I need you to change.…
-
1
votes1
answer5258
viewsHow to take the value of a Spinner and continue the form
Good afternoon, I have a simple form in my android app, where the user writes name and register an alert, but in the alert frequency field I inserted a spinner(selectbox android) with options of…
-
1
votes1
answer779
viewsNavigation Drawer - back button
I’m trying to get the button back or back from android keep the sequence of Fragments that I’m rendering as chosen option in my side menu (Navigation Drawer), but I’m not succeeding, it always…
-
1
votes1
answer934
viewsFind . Keystore from APK
Does anyone know where I find the file. Keystore of my digitally signed APK? It’s the same . jks?
-
1
votes1
answer3095
viewsEmulator without internet connection
Guys today I went to continue my application and noticed that the emulator was not connected to the Internet but I am still using the emulator Android Studio the Nexus 5 API 25.…
-
1
votes1
answer569
viewsCall to a Rest Webservice with a Post Request
I wanted to make on Android, a call to a Rest WCF Webservice, through POST orders. In C# I can, sending the post, url and the body param. But in the Android, whenever I send a parameter, the…
-
1
votes0
answers49
viewsStandardize edtitext type date
I’d like to know how I change the format of EditText date-like android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="date" android:ems="10"…
-
1
votes1
answer82
viewsError searching for Information in Sharedpreferences Android
I have an android application, and in it I keep some basic user information in Sharedpreferences, but started to show the following error parse JSON: java.lang.Illegalstateexception: Expected…
-
1
votes1
answer38
viewsMonitor changes in the application
I need a class that listens for any changes in the application (or external changes). I made a class that extended from class Service, but I understand that it goes into the method onStartCommand…
-
1
votes0
answers25
viewsVirtual keyboard, superimposing or compressing elements
I need help in the following situation. I have some Activity done, with several moments of interaction with Edittext and Button. On certain screens, Layout compresses when opening the virtual…
-
1
votes1
answer223
viewsApplication does not work on a particular device after compiled
I made an app, and on my mobile Lg G2, normal wheel but on a gran prime Samsung does not wheel. It says the app stopped error 41. What can be? Build.gradle: apply plugin: 'com.android.application'…
-
1
votes1
answer84
viewsIs with the same value as the last time it was used
How do I make the value of contador of for start with the same value as the last time it was used? Why this for always starts when I start to activity, and I need him not to start at 1 every time I…
-
1
votes1
answer530
viewsapplication with Full Screen
i am not able to put my app stay in full screen and just leave the navigation button. getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE |…
-
1
votes1
answer198
viewsHow to resolve Sqlite auto increment gap?
I have a code that erases one Row whole of a database, but there is a problem because I get a hole getting an ID without data (what I deleted) for this being autoincrement, does not delete the ID…
-
1
votes1
answer112
viewsAndroid - Problems Streaming AAC
I have a problem with streaming audio, it runs perfectly on some devices and on others it does not run, I wonder if there is any way to solve this. It runs for example on a Galaxy ace 4 neo, but…
-
1
votes1
answer213
viewsHow to prevent onItemSelected from being called when using setSelection?
I have a ListView and within each item of it carries a Spinner with some information. The way I want it to work (Expectation): The first time you load the Activity, present to the user a list and…
-
1
votes0
answers197
viewsHow to implement Navigation Drawer with Bottom Navigation in the same application
In a app that has NavigationDrawer with Bottom Navigation, what would be the recommended path for implementation? I searched for tutorials and did not even find in the official documentation. I…
-
1
votes0
answers72
viewsPOST request in retrofit2
How do I send data from a form on android using retrofit2? The way I am doing the information stored in the database is being sent through a passage per parameter, I would like to recover the data…
-
1
votes1
answer54
viewsWhich type to use to store values that are in an Arraylist<> in an Sqlite table?
I have the following table in Sqlite: db.execSQL("create table amc(_id integer primary key autoincrement, nome text not null, contratada text not null, tipo text not null, data text not null,…