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
-
2
votes1
answer519
viewsCompare lines with txt Java Android
I would like to create a method that compares each line of my text view with each line of a txt file here I go through the txt file for example, in my text view are displayed the words blue green…
-
2
votes0
answers172
viewshow the moon (Corona sdk) runs on android
I’m testing the sdk Corona for android, and I’m finding it very good. Of course they are simple tests, but ran very well on an old phone with android 2.3, and the same apk ran on android 6. Both the…
-
2
votes1
answer74
viewsAndroid Device Monitor
I’m trying to use android device monitor to extract my database, only it keeps giving this error.…
-
2
votes2
answers2005
viewsUpload photo taken by mobile shows rotated image
I have a system with a Photo Upload page. It’s a simple photo upload where you click on input, selects the image and end. After just submitting the form, the image is saved in a folder, and in…
-
2
votes2
answers1855
viewsHow to save Radiobutton value and convert to String
I’m having trouble finding a code that works. Below is the code I’m using in Android Studio, this code takes the form information and sends to a php file to save in the database, is working well.…
-
2
votes2
answers993
viewsHow to get data from a text displayed in the dialog
I am using this library to display dialogs in my application: https://github.com/drakeet/MaterialDialog With this library it is possible to display in the dialog a layout created, but I am not able…
-
2
votes3
answers1005
viewsRecognition of sound patterns
I would like to know about the existence of some Android/Java API for sound pattern recognition. Example: Bird singing, sound is given as input, and the application would return to which bird this…
-
2
votes2
answers609
viewsLayout does not fit on the screen after rotation
I developed an application that works normally but when I turn the screen to landscape orientation the app is cut and not to go down and view the rest of the content and also the Admob I implemented…
-
2
votes1
answer1035
viewsHow do I remove a view created in java code by the id of this view?
How do I remove a view by Id. Because in my application it has an "add" button to add a group of components that "group" is a LinearLayout has a field and a delete "X" button. When the "X" button is…
-
2
votes1
answer644
viewsHow to increase Alertdialog text size?
You can increase the font size of a message I display inside a AlertDialog? Code: AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setMessage("Gasolina");…
-
2
votes3
answers1573
viewsHow to send parameters to a server?
I started learning Android programming very little time ago. I was programming in Java desktop but I never made any application to communicate with a server. Now I need to communicate with a server…
-
2
votes1
answer9344
viewsHow to make a Floating Action Button?
I am developing an application for Android, I would like to know or some example to include a Floating Action Button? This Floating Action Button would be a shortcut to a system action, in my case…
-
2
votes1
answer292
viewsCamera appears with black screen. Error fail to connect to camera service
I would like to open the camera, but without the buttons that appear normally, I would like to add my own buttons and assign functionality to them. I looked it up, but I couldn’t find any answers.…
-
2
votes2
answers533
viewsAlertdialog from another class
My problem is this, I have a Activity calling methods of a common Java class for performing operations. Now I have arisen the need for one of these methods to be a AlertDialog, I have already…
-
2
votes1
answer92
viewsWhy is Floatingactionbutton transparent?
I’m having a problem after I updated lib support.design:22.2.0 to 23.0.1, the floatingActionButton is transparent when executed in API 10. Here is the code:…
-
2
votes1
answer193
viewsHow to disable scrollView interaction on the user screen?
On the screen, the user should not be able to touch the Scroll, His drive I’m doing all by code this way for example: Moving: public void move(View v){scroll.scrollTo(160, 0);} I’m looking for a way…
-
2
votes0
answers44
viewsTrack Push opened in parse
I have an application in Parse.com that sends Pushs with custom API messages to open an Activity, my Custom Receiver is like this: public class CustomReceiver extends ParsePushBroadcastReceiver {…
-
2
votes1
answer213
viewsDo you have a problem using 2 Handler.postDelay() at the same time?
I wonder if there is a problem with the App’s performance in using 2 handler.postDlay() at the same time, type calling the 2 in functions: inside the Oncreate Td1(); Td2(); public void Td1(){ final…
-
2
votes2
answers483
viewsWebservice + SOAP for android
Good morning, I created a web service with Soap and tested in the tool Soapui. In this tool works cool. In android to using Ksoap and when I have the data listed in Logcat it is popping an…
-
2
votes1
answer343
viewsSqlite being accessed remotely
Would it be possible to create an App connection on Android with the Sqlite service with PC Local? I’m not talking about a database inside the Android itself, but communicating with the same PC.…
-
2
votes1
answer455
viewsHow to run a video from the gallery in another Android? Android
I’m having problems when I try to run a video, which I choose in my gallery, in my app (simple). Follow what I’ve done so far. If anyone can help me.. Mainactivity: public void onCreate(Bundle…
-
2
votes1
answer216
viewsIn an Activity, first open the onCreate method or class constructor?
In a scenario where you have an Activity with a constructor (public, of course) and the onCreate method which is part of your life cycle. Which of the two will be executed first?
-
2
votes1
answer1802
viewsHow to create a text file on Android?
I’ve looked for several examples and scripts on the internet and even here in stackoverflow but still could not create a text file on android, the last code I tried unsuccessfully was this: How to…
-
2
votes1
answer115
viewsHow to turn text into an image
In my application, I have a listview that displays the database information, I want when loading the listview the String of one of the Textview to be replaced by an image. According to the displayed…
-
2
votes1
answer1896
viewsAndroid: getApplicationContext()
I’m trying to do Database db = new Database(this.getApplicationContext()); Where Database is a class I have with all the methods related to Database and I’m calling to fill an Expandablelist.…
-
2
votes1
answer90
viewsNotification on a local network with Postgresql
I would like to know how to send a simple notification to users of a local network, send a notification to all other devices with the app connected to the Postgresql database...
-
2
votes2
answers1576
viewsBring QR Code data to my fields
I am reading a QR Code as code below: // Botão para abrir câmera e usar o QR Code (Irá abrir a Store para baixar um app nativo) btnQR = (Button) findViewById(R.id.btnQR);…
-
2
votes5
answers1896
viewsChange Button Background
How can I change the background of a Button click on it? For example: I have the shape01 and the shape02, for default the Button this with the shape01, when clicking on it I need to change to the…
-
2
votes1
answer447
viewsBuild Ionic app for older version of Android
I made an app with Ionic, and when climbing to the play store, it was enabled to Androids > 4.1 , except that the app is very simple, practically only query the database. Can anyone tell me if…
-
2
votes1
answer205
viewsSet photo size taken by phone camera
I would like a help on the image save on android, I have an application that saves the image in the gallery all right, so I would like to set a size and quality for it to be sent to the server, if…
-
2
votes2
answers307
viewsListview duplicating data in android app
The listview every time it is loaded duplicates the data, this happens if I quit the application without closing, if close the application works normally Whenever the code BackTask bt =new…
-
2
votes1
answer108
viewsActivity with background design
Good morning! Friends, I need a light to carry out the development of an Activity with the following layout, as below. The area in orange color should be designed programmatically according to…
-
2
votes1
answer569
viewsHow to use a Cordova plugin?
How to use plugins in Cordova? Cordova plugin background mode I already installed with the command cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git` porém ao tentar…
-
2
votes1
answer467
viewsMedia Player, stop sound before playing another
Good morning, I’m with a project so that when a button is pressed it will perform a predetermined sound however if I press a dps button on the other, it gets both sounds ringing, I tried to if in…
-
2
votes1
answer93
viewsProblems with database connection
I’m developing a test program for integration with webservice. The webservice in itself was developed in the Eclipse. It is a simple service of registration and login of users. When I run the…
-
2
votes3
answers664
viewsRequest within a defined time interval
My application should update a list of data coming from the server every 5 minutes. Using Retrofit for Request HTTP, what’s the best way to do that?
-
2
votes2
answers1200
viewsLoading/Loading screen
How to make a screen similar to this on android? Making the bar fill…
androidasked 8 years, 1 month ago Roger Casagrande 123 -
2
votes1
answer632
viewsProblems with permission ACCESS_COARSE_LOCATION android studio
I’m building a project that uses the class Gsmcelllocation. I can know such information from the class Telephonymanager. For this, I need permissions where the problem is born. An…
-
2
votes1
answer66
viewsHow to import a . sql file to an android database?
I have a file. sql that contains multiple Inserts and I needed my application to read that file and make those Inserts into a table that I have created. Is there any way ?
-
2
votes0
answers462
viewsCompile Apk Android Cordova
When I try to compile, the following message is returned: But it turns out it’s all installed, Github, Android SDK, Java, Node.js I configured the environment variables in the PATH, created the…
-
2
votes1
answer70
viewsCheck if android is in energy saving
I wonder if there is a way to check if the android device is energy-saving. I’ve searched everywhere, including the official documentation, and nothing.
androidasked 8 years, 1 month ago Iago Silva 65 -
2
votes2
answers1151
viewsHide the Webview address bar
How I needed to develop an app like WebApp, followed a tutorial and succeeded (the tutorial used Android Studio IDE 1.0.2). The application works satisfactorily, however there is a detail that I…
-
2
votes0
answers38
viewsHow to add an event to handle a Gridview row click?
How I can handle the event of clicking on a Android gridview Row?
androidasked 8 years, 1 month ago Bruno Gomes 117 -
2
votes1
answer75
viewsIONIC error dependences not found
Hello I’m having error in IONIC when using commands to compile for android. Make that mistake every time I try one of those commands on ionic run android --target meuDispositivo ionic build android…
-
2
votes1
answer574
viewsHow do I publish a specific APK for Android versions greater than $API?
I have an application in the Play Store that uses the Crosswalk plugin. However, for Android versions from 5.0 upwards, I want to be able to provide a build without the plugin Crosswalk. Only…
-
2
votes2
answers359
viewsFirebase cloud messaging - Advantages
Besides having the possibility to work with messages, in the push Notifications style; What advantages do you see in the FCM? I’m talking about resources that really matter and help developers, and…
-
2
votes0
answers202
viewsDoes an Android service lock the application even running in the background?
Does an Android service lock the application even running in the background? Or is there something wrong with my application? I have a database where the last table has 3,000 lines. With this I…
-
2
votes1
answer187
viewsHow do I let "bind" to "Sqlitestatement" accept a null value in Sqlite?
I decided to use Sqlitestatement because it is faster to insert data in Sqlite, but at some point a null value can come object.getAlgumthing() and in this case an error with the message that the…
-
2
votes4
answers311
viewsCreating Data Base through Stringbuilder
I am creating my database with the class sqliteOpenHelper, passing the creation of DB by String through the StringBuilder. The problem is, it’s just creating the first table, and then it doesn’t…
-
2
votes0
answers377
viewsDrawable isn’t picking up images
Guys, I’m making an app that has a Drawer, and the menu that appears laterally is a navigationView. So far so good, but in the code . xml I want to add icons, is not picking up the images. The code…