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
-
0
votes0
answers30
viewsAndroid - getx() function does not work
I’m trying to create a game using java without using other libraries. I was able to do everything I needed so far but I’m not able to use the getx() function in Imageview controlled by the player in…
-
0
votes0
answers39
viewsThe getSelectionStart(Textview) method returns incorrect value
I need to recover a user-selected string in a Textview, but the method getSelectionStart returns the same value as getSelectionEnd. Here is an example in the image below: I performed the test on a…
-
0
votes1
answer44
viewsIdentify parse Error in Adroid Studio
How to identify the error through the code returned by parse?…
-
0
votes0
answers57
viewsProblems with Sqlitehelper
Hello, I have a registration project and I’m having trouble reading Sqlitehelper, the app only runs without it, when I try to use gives error, the app turns off, if anyone can help me find where is…
-
0
votes2
answers789
viewsError installing application on mobile
I am getting this error while trying to install the application on my mobile phone, and I am not able to find the error inside the manifest.…
-
0
votes1
answer204
viewserror: incompatible types: Mapsfragment cannot be converted to Fragment
I am trying to add the Google Maps API fragment to the main project screen error: incompatible types: Mapsfragment cannot be converted to Fragment part of the code: fragmentManager =…
-
0
votes2
answers26
viewsProblem with sharing
I used the following code to capture a text and share. Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); String texto = "Olá sou um texto compartilhado"…
-
0
votes1
answer1006
viewsBug with.google.android.gms in ':app:processDebugGoogleServices'
My code is making that mistake: Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix the version Conflict either by updating the version of the google-services plugin…
-
0
votes0
answers238
viewsXamarin.Forms Android Error - new Httpclient()
This error (image) appears whenever you arrive on this line: using (var client = new HttpClient()) This is the complete code. using Newtonsoft.Json; using System; using System.Collections; using…
-
0
votes1
answer72
viewsString in findViewById
Hi, I was wondering if you could use a string in findViewById. I have an app with various imageview that when you need to call an Internet to the camera phone. So that I don’t need to put this Input…
-
0
votes1
answer27
viewsError: Mismatch "${body.toString()}" in Kotlin
I have this error 'Type Mismatch' in this code ${body.toString()}: fun fetchJson(){ val url = "http://localhost:8080/matematica3/naoAutomatica/get" val request = Request.Builder().url(url).build()…
-
0
votes1
answer54
viewsIntent on Fragment Activity Android
How to Open a New Screen or Link Via Intent in Fragment Activity? See that there is a button at the end how to make it open a link?…
-
0
votes0
answers90
viewsError when using Proguard the first time in an Android app
My Gradle is in the following: buildTypes { debug { shrinkResources false minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } release {…
-
0
votes1
answer59
viewsClear list of Activity
I need that when I arrive in the last screen of questions of my application I can only return to the menu screen that is the screen after the main and only in this final screen of questions that I…
-
0
votes1
answer1050
viewsCompare Android Studio Strings
I started a few days learning android development, I’m trying to create a simple login system just for testing. Only when I create an event for the login button the comparison of the Edittext string…
-
0
votes1
answer43
viewsReturn an address
I’m finalizing a project where will open a alertDialog. Once the user presses OK he will make a confirmation and his location will be informed by a Toast. I would like to know how I can return the…
-
0
votes0
answers79
viewsAndroid Recyclerview cache
I have a recyrcleview on most devices worked well, but on some devices version 7, it’s a bit buggy, it’s kind of cached with the first elements. Does anyone have any idea? example of normal working…
-
0
votes0
answers69
viewsPhoto taken from Android camera error API 21
When making a photo with android camera my app creates a preview of this photo in an Activity where it will be sent by and-mail, however the code below is working perfectly for android below version…
-
0
votes1
answer31
viewsIs there a problem with instantiating a fragment twice?
I have a Fragment that is the first to be opened, is a list of items! Then depending on the button clicked on the Cards inside this Ragment it opens a screen with a Tablayout with some tabs and one…
-
0
votes1
answer47
viewsError in executing activity_main.xml image
recently installed the android studio version 3.0 and followed its installation and configuration instructions, but this error appeared. I uninstalled and reinstalled and persists in it, which I…
-
0
votes1
answer81
viewserror syntax when using then((result) =>
I have a site that uses pay.me (Getaway payment) I created a webview that runs perfectly in versions android 7 and 8, but in versions 6, 5 and 4 the webview has error in javascript due to the syntax…
-
0
votes1
answer185
viewsValue attached to variable within setOnClickListener is not being considered
So I’m making a test app more to study even, I’m beginner on android do not know much, I’m trying to make in the application when I click on an image that it enters this method :…
-
0
votes1
answer47
viewsForce android app close and restart
I wanted to find some way that even if the app closes and automatically reboots again. I couldn’t find any content that would help me if someone knew
androidasked 6 years, 4 months ago aleander rayson 23 -
0
votes1
answer40
viewsProblem with webview
I’m trying to make an app in Webview, but when I click on a button that contains url it displays to if I want to open in which app, there is some way to make the app itself open the next page?.…
-
0
votes1
answer498
viewsHow to send a character(char) via bluetooth
I’d like to send the number 1 via bluetooth on android, already made the part of connection to send - this is the source code public void conectar(ProgressBar loading, BluetoothSocket socket) {…
-
0
votes2
answers1178
viewsHow to use Scrollview and Linearlayout with full screen height?
I have my code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"…
-
0
votes2
answers195
viewsOptimize Firebase Realtime Database and Firebase Storage actions
How can I optimize user experience and application fluidity when I’m, for example, reading data from Firebase Database or even downloading Files from Storage? Using runnable’s to handle processes or…
-
0
votes1
answer207
viewsScreen capture/screenshot button in Xamarin
I am developing an App and I need it to take a screenshot, but not by the standard procedure (home button + power), but by a button inserted on the screen. The button has already been created and is…
-
0
votes1
answer112
viewsUpdate Android App
Hello, I am new to android development and I have some doubts, I am developing an APK using a webview and I am often updating it with some improvements. As I work more than 200km from where the…
-
0
votes1
answer291
viewsAndroid error with KSOP2 value Double java.lang.Runtimeexception: Cannot serialize:4.0
Guys I created a webservice Soap in java, I consume and perform operations in various methods, however when I will perform operations passing a double value occurs the following error:…
-
0
votes0
answers30
viewsHow to limit the time of a query to Firebase?
I would like to know how to limit the time of requests to firebase or even cancel the ongoing consultation if there is delay in the bank’s reply.
-
0
votes1
answer553
viewsHow to detect if the user is accessing through a webview app
Hello, I created a webview app for my site because it is 100% responsive and adapts well on mobile devices, but in my menu has a link to you download this app, I would like to know how I can…
-
0
votes1
answer103
viewsXamarin Build FAILED Error: Unsupported major.minor version 52.0
I’m using Xamarin Visual Studio Comunti 2015 After compiling a project, I get the following err: Exception in thread "main" 1>java.lang.UnsupportedClassVersionError: com/android/dx/command/Main :…
-
0
votes0
answers90
viewsHow to send data, via POST, from android to PHP synchronously?
I need to send data to the database, and I’m using PHP. I was trying through the Ion library, but because it was asynchronous, the application featured Nullpointerexceptions when more than one data…
-
0
votes1
answer33
viewsClose Activity if Idle
I have an app and I need Activity automatically close if idle, that is, if the user does not touch the screen for 30 seconds, the Activity automatically closes. While the user is using (tapping) a…
-
0
votes1
answer265
viewsHow to access mysql base from an external network
I have an application, on Android with Mysql database, that works perfectly within a specific network. But when trying to access this same base on an external network I get the following message:…
-
0
votes1
answer1558
viewsline breaking of an edittext automatically on android
Hello! in my application the client can make a comment with up to 300 characters, only it is bad to make long texts with edittext only in one line then how to break the line automatically? an…
-
0
votes1
answer518
viewsCordova: Android SDK is not set up properly. Make sure that the Android SDK 'tools' and 'Platform-tools' Directories are in the PATH variable
How to fix this error while running command: Ionic Cordova Platform add android ? ionic cordova platform add android > cordova platform add android --save Using cordova-fetch for…
-
0
votes1
answer144
viewshow do I search the groups the user participates in Firebase?
I have an android app java and want to know how I do a search of the groups that a user participates... how do Join to search only the groups that the user participates in (the Attendee table links…
-
0
votes0
answers54
viewsDoubts structure of a crud on Android
I have the following classes: Client, Clientedao and DAO. In the Client template I have attributes and gets/sets. In Clientthe I have the methods save(), change(), ... ie the crud. This class…
-
0
votes1
answer370
viewsHow to use Recycleview on fragment ?
I don’t know if I asked the question correctly, but let’s go there who can help me thank :) this is my second Mainactivity, I am making an application with navigation Drawer and in it to make the…
-
0
votes0
answers73
viewsHow to disable the on Stop method?
I am developing an app and am using 3 Fragments in a slider layout. And when I slide from the first tab to the third tab, my first tab calls the onStop method and consequently, everything in that…
-
0
votes1
answer46
viewsHow to edit the title of ALL Alerts in the Ionic app, and not just one?
By following the Ionic documentation, I can edit the title of an Alert using the one taught in the following link:insert link description here However, when Alert is fired from within an iframe, it…
-
0
votes0
answers359
viewsHow to make a custom bar on android
I haven’t started to do anything yet, so I haven’t put any code here, I need a direction of what to study to do a pub in the shape of a water tank and as it fills up, a water goes up inside the…
-
0
votes0
answers177
viewsHow to add a frame to an image?(Android)
Hello, I’m developing an app where I need to add a frame to an image.I’ll add a frame like this one below and return the edited image. How can I do that?…
-
0
votes2
answers739
viewsComparing typed string with string in database
hello, I’m doing a work ... of an android app in 3 layers ... and it’s a review app for bars and snacks ... which consists of taking the name of the place ... the address .. the email and the…
-
0
votes1
answer62
viewsFormat the Chronometer
In my application I inserted a Chronometer that simulates a playing time... but when I click stop and then continue it shows me in format (00:00:00:00) and wanted to show me again at (00:00) Note:…
-
0
votes1
answer472
viewsSend Recycleview Data to Activity
Well, I am new to Android development and I would like to know how to step the value of the option selected in Recycleview to an Edittext that is in another Activity
-
0
votes1
answer140
viewsHow to make a delay or cause a wait on Android?
I have a for where it sweeps a vector String, sending command completed increment . for(int i=0; i < msg.size(); i++) { enviarComando(msg.get(i)); } When he sends I want him to wait 1 second for…
-
0
votes1
answer151
viewsGithub image library for android that has the option to edit before loading
https://drive.google.com/file/d/1TVyRqsVtUulQABM9AtEDVv_iWmk5JY8_/view Hello Gentlemen good evening, does anyone know a library for android with this function? or how to search on google? I’m…