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
answer490
viewsHow to close the keyboard?
When I step into this Fragment with the keyboard already open, it remains open, which ruins my layout, how to hide it or not open it?…
-
1
votes0
answers207
viewsUse Google Drive as a Webservice
Hello. Someone could help me, I’m trying to create an app and I’m trying to use google drive as a webservice for this app, I want to store files in my account drive (eg: audio and img) and qd the…
-
1
votes1
answer74
viewsIs it usual to deal with sessions on an Android app?
My question is the following: I have a Rails server and make queries on this server using an Android app. If I were creating a web system, I would make use of session to manage my system…
-
1
votes1
answer136
viewsHow to send a GIF on Whatsapp programmatically on Android?
How can I send a GIF located in the internal memory of my app direct to Whatsapp programmatically?
-
1
votes1
answer859
viewsAccess Webservice localhost - Android Studio
I have a webservice that was made in ASP.NET in Visualstudio 2013, I am running it locally (localhost), and I am not being able to access it in the android emulator of Android Studio, nor on my…
-
1
votes1
answer92
viewsProgressidialog closing before the Second Activity opens
I have an Activity called Login_activity, when the user logs in, I want a Progressdialog to appear, until the other Activity is fully loaded, because as I will put some things to execute in the…
-
1
votes1
answer181
viewsHow do I install Sqlite on Android?
How do I install Sqlite on Android? I downloaded the program and there is no installer on it. What do I do? I downloaded it from PC and not smartphone.
-
1
votes0
answers209
viewsMake Android SDK folder available to all users
I work in computer lab administration at a university. Step by a situation with Android Studio, where in a user below all the dependencies of the SDK, only when logging in with another user is…
androidasked 6 years, 11 months ago Thiago Jack 11 -
1
votes1
answer399
viewsGradle version error
Does anyone have any idea how to resolve this error in Android Studio? Plugin is Too old, Please update to a more recent version, or set ANDROID_DAILY_OVERRIDE variable to... error-Gradle.Png1055x71…
-
1
votes2
answers467
viewsNav Header with login
I have the Drawer navigation menu and in the header part I have only one image. I would like to put for the user to perform a login. As kids I would like to leave as in the image below: I would like…
-
1
votes2
answers287
viewsCardview of welcome
I got a welcome cardview. I would like after the first view the user pressed the Ok button, understood and the card left and no longer appears. I already put onClick in XML:…
androidasked 8 years, 4 months ago Artur Mafezzoli Júnior 441 -
1
votes1
answer235
viewsHow to receive notifications within an Activity
I can send a notification from Firebase to my App but Open that same notification doesn’t open inside the Activity I want. How do I direct this notification to Activity so that I can see the message…
-
1
votes1
answer72
viewsExample to interact res/xml/prefs.xml with a.java activity.
As much as I’ve searched, I’ve never found an exact example where a preferred file interacts with a Java activity, for example: private void Bemvindo(){ Toast.makeText(this, "Seja bem vindo",…
-
1
votes1
answer834
viewsRestore Deleted Android Studio Folder
Hello I wonder if there is any way to restore a deleted folder inside Android Studio, in Eclipse there is the option "Restore from Local History" but I do not know if it is possible to do the same…
-
1
votes1
answer40
viewsAndroid app without connection to valid IP addresses
I am having a very strange problem with my android application, in certain cases my application can not answer valid addresses from other locations. Explaining my application, is a field data…
-
1
votes2
answers670
viewsHow to hide the background of images in the android studio app?
I’m new in programming I’m programming an app in android studio that is practically ready. When I copy it on my Moto G2 with android 6.0 works perfectly however when I copy on the Moto X1 android…
-
1
votes1
answer80
viewsJson for android Markers
I’m trying to loop markers from google maps, picking up information from a json, but I’m stuck on "transferring" the information from doinbackground to the Google method. To better understand,…
-
1
votes1
answer70
viewsHow to store questions and answers in the bank
How can I store questions in this style: a. __She__ is alone in the park, sitting by__herself___. (She/Her/Herself) in the bank with these spaces to fill and use these spaces on android for example.…
-
1
votes2
answers48
viewsDAO SQLITE MVP Android
I’m creating a project and I’m using 3 layers.. presentation, logic and data access! In my data class I need to access the DAO(sqlite) however I need the context to use my DAO, but I cannot use the…
androidasked 6 years, 11 months ago anderson martins sa 11 -
1
votes1
answer46
viewsSecond response of the Web Service still has the value of the first
The first thing I do in my application is send a message to the server, only to test if the connection is active and working. When receiving "ok" from the server I continue the application. On the…
-
1
votes1
answer821
viewsHow to make an Edit not lose focus?
How to make for a TEdit, that is being accessed on Android, do not lose focus because of the virtual keyboard that arises the moment the focus goes to the TEdit?
-
1
votes1
answer106
viewsConfiguring imagebutton in listview
How can I set buttons inside the listview, knowing that it creates a button whenever I add an image and a textview to the string array public View getView(final int position, View convertView,…
androidasked 8 years, 4 months ago Carlos Alberto 97 -
1
votes2
answers3822
viewsCreate my own Push mail server
To use PN (Push Notification) I usually make use of cloud servers such as Firebase, Azure, etc. Now I’ve picked up a service to do and my client demands that we have our own server. I saw this link…
-
1
votes1
answer640
viewsSelection and deselection of items in a Listview - Android
I’ve got a listview that extends a basedapter. And following this one’s lead topical with the @ramaral reply I was able to make the item select and select but now how do I check if the item is…
-
1
votes0
answers14
viewsAdd new csproj in Xamarin.Forms project
I need to create another csproj in my Solution Xamarin.Forms. Should I create another PCL? I think so. Create one of Windows I don’t think it works, right? I did it and came Buttons and etc. What do…
-
1
votes3
answers422
viewsHow to pick any button through Onclick?
I have ten Buttons in my XML and I want you to change the Text of the button that the user click. I implemented a View.Onclicklistener in my Activity and my onClick was like this: @Override public…
-
1
votes1
answer1265
viewsWebview does not open the requested link
I was looking for how to open links related to my domain as I did in my previous question and I got an answer. How to make only links in my domain open my application? I put that code on…
androidasked 8 years, 4 months ago user41630 -
1
votes2
answers57
viewsNullpointerexception error when obtaining location
I’m making an app that shows user coordinates: This works properly and checks if the GPS is released: public void verificaGPS(){ if (ActivityCompat.checkSelfPermission(this,…
-
1
votes1
answer749
viewsOpen external links in another browser
So I have an App that is my whole responsive site and is working perfectly. But I would like the external links to be opened in another browser. For example: You click on a Google Adsense ad that…
-
1
votes1
answer94
viewsRemove Edittext date and add five years
I would like to capture a date with a EditText, and from it create another date adding another 5 years. How could I do this?
-
1
votes1
answer216
viewsError with retrofit
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ public interface RestApi { @GET("/posts")…
-
1
votes1
answer397
viewsHow to download Webview files from the Sdcard if available
The App is a simple browser that works like Webview. This code makes the files to be downloaded into a custom folder and works perfectly. mWebView.setDownloadListener(new DownloadListener() {…
-
1
votes1
answer610
viewsTake a photo with the Front Camera without using obsolete Apis
I’m developing an app where when you login, you should take a photo! I looked into it and found the following example : public class PhotoHandler implements Camera.PictureCallback { private final…
-
1
votes1
answer60
viewsAndroid Instant Apps can control deep links?
I need to develop a very simple app prototype. The app needs to be compatible with Android Instant Apps. The user will open the app without installing it (Instant Apps). User will use Chrome to…
androidasked 6 years, 10 months ago AndroidQst121 11 -
1
votes0
answers178
viewsCoordinatorlayout with Recyclerview in another
I have a Fragment with a CoordinatorLayout and a FrameLayout to popular with other Fragments. One of these Fragments contains a RecyclerView. I’d like to know how to do the RecyclerView work with…
-
1
votes1
answer51
viewsDo I use Activities or Fragments?
I’m with a project to develop a guide app for games that will show images through a server and the guide will be pdfs files downloaded and opened by the app. The flow would be: Console list…
-
1
votes1
answer63
viewsAndroid: Listview custom this with error while simulating
I implemented a basic custom Listview, but this giving the error: java.lang.Runtimeexception: Unable to start Activity ComponentInfo{goodeal.listview/goodeal.listview.MainActivity}:…
-
1
votes0
answers90
viewsScrolling effect with recyclerView
I am working on an application where I have a Fragment with a title and a recyclerView. This Recycler view is divided into sessions (example, pizza, soda), each session has a header and the items…
-
1
votes3
answers1476
viewsHow to know which Boot was clicked on my Listview?
I have a Listview, in each row I have two buttons. How can I know which button was clicked? Follow my code: <ImageView android:id="@+id/imageView_imagen" android:layout_width="145dp"…
-
1
votes1
answer88
viewsMediaplayer.create() stops working after a few sounds
Hello, I put a different sound to touch each button pressed, but after 4 Tarts it simply stops. Code: numero = random.nextInt(numeros.length); MediaPlayer soundID = MediaPlayer.create(this,…
-
1
votes1
answer48
viewsThe tab is going through the reset button
I wanted the tab to stop just below the FREE THROW buttons, not at the bottom of the screen. How Do I Fix So Design Is Responsive? Because the content gets messy when the screen is in Landscape…
-
1
votes0
answers345
viewsGson returning characters with invalid accent
I’m getting information using Gson in an archive PHP. When this information is received, the words containing accents are not coded. I have read: Android JSON Charset UTF-8 problems Converting…
-
1
votes1
answer43
viewsAndroid - How to identify exceptions released on mobile phones?
When an untreated Exception is launched the application is closed (e.g., Nullpointerexception), even then it’s okay when you’re testing the application by the IDE, but when you generate an apk and…
-
1
votes1
answer444
viewsLogout when closing app
Guys, I have an app that runs login, for this I use sharedPreferences(), I have a quit button that causes the user to depress the system, which works this way: SharedPreferences pref =…
androidasked 6 years, 10 months ago Brenddon Anjos 436 -
1
votes0
answers43
viewsoverloading the android thread
I’m making an old game for Android, I did following the book I have. The example teaches to create the game logic for two players to play on the same phone, worked correctly, but the example only…
-
1
votes0
answers43
viewsRecover Getusermedia Audio to Record
Good morning, everyone, i have done treatment to record audio with Getusermedia. I used as a basis this example (https://mdn.github.io/web-dictaphone/), has the same js code. The problem is that the…
-
1
votes0
answers208
viewsDisconnect the headset microphone
I want to force the device to use its own microphone, not the headset I tried using the command "android.intent.action.HEADSET_PLUG" in the shell but I think I’m using it wrong. Can someone help me…
-
1
votes1
answer679
viewsHow to get the Package Name from an Android app in a C library?
I would like to know how I can get the Package Name of my Android APP through a library written in C. What I want to get is this com/meu_app/mainframe/MainActivity or…
-
1
votes2
answers35
viewsProblems handling Vector Asset
Android Studio is returning this error when I add images to my project, but the selected images are the native IDE icons.…
-
1
votes2
answers157
viewsMarker id pass to setOnInfoWindowClickListener
I’m trying to pass the value of the Marketer to the setOnInfoWindowClickListener, but I’m not sure what is the best way to do this, can anyone help me? It even passes a value, but not the loop, IE,…