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
answer53
viewsConnect by clicking a button
I would like to know how to make that when clicking on a button, a Telephonic call to the number. As I did, he calls Activity Action_diall with the number already written, so the person must click…
-
2
votes2
answers3011
viewsWrite to.txt file
I am developing an application that needs to record data in the database and go saving these same data in a arquivo.txt in the device’s memory. The bank part is ok, now in the file part I have not…
-
2
votes2
answers189
viewsWhat is class to draw circle on Android?
I know the Class Rect for rectangle and circle private Rect retangulo = new Rect(); What class to draw circle on Android?
-
2
votes1
answer38
viewsTablerow added via program is not bringing all fields!
I’m trying to make a ScrollView - TableLayout - TableRow via program, but using an XML Layout as the internal database of Tablerows. It turns out that whenever I try to add the text of the last…
-
2
votes1
answer238
viewsHow to use a Sqlserver script to create a database in Sqlite?
I have a generated script from SQL Server it contains multiple tables and views, I plan to carry this database to my Android Sqlite. How do I run the script on Sqlite on Android ?…
-
2
votes2
answers675
viewsError while trying to start another Activity via a button
My program runs, but when I click on the q button I should open a new Activity, the program closes saying there is an error. FATAL EXCEPTION: main Process: com.example.Raissa.calencon, PID: 2142…
-
2
votes1
answer6420
viewsAndroid App icon size
I’ve noticed that when I install my app on mobile the app icon is smaller than most other apps. I set the icon by android studio itself using a png image. How to make the icon bigger as well as most…
-
2
votes1
answer654
viewsHow to keep your screen always on even when you close the app
I’m developing a app and I’m looking to implement a method that makes your screen never erase. I did some research on the Internet and I was able to do this inside the app. However, I would like…
-
2
votes0
answers121
viewsRetrofit response coming in as null
I am trying to make a retrofit call from a list of objects (Registrations) and in Httploggininterceptor the answer is appearing normally. What might be going on? My call: CadastroApi cadastroApi =…
-
2
votes1
answer3080
viewsWith filling a spinner with an object field
I have a Spinner in my Activity, need to make your items to be the names (field) of a Arraylist of objects, and that when selected, I be returned the id of the same to be able to perform a new…
-
2
votes1
answer11112
viewsMostar / Hide Button and Textview
I’m making my first App on Android Studio, but I’m having trouble doing something relatively easy. I need Click a Button to show Textview and another Button (which will hide Textview when clicked…
-
2
votes0
answers160
viewsGet URI of a full size photo by Camera on Onactivityresult
I’m using the Android camera to take picture and save it from a Webservice. I managed to do this, but using the method of taking a thumbnail. My intention is to take the image in full size. I…
-
2
votes1
answer1936
viewsEncryption in the sqlite
I am needing to store some data in Sqlite, but this data needs to be encrypted, and when the user needs it, decrypted. What’s the best way to do that?
-
2
votes1
answer317
viewsonClick on Android
I made a EditText with the attribute text = 100, but when I use my function onClick(), which aims to make the following calculation text - 50, when I click the button and runs the routine my…
-
2
votes0
answers72
viewsApplication for multiple user profiles
In transport services I see two apps the provider and user app. I had a request for a development and in the scope of the project was identified several profiles, on Android I have not found or ever…
-
2
votes1
answer777
viewsError changing table SQLITE - in such column
I included a new column in a table. I reinstalled the application and at the time of saving the data there is a message saying that there is a pathImage column, in my case in the clients table. I…
-
2
votes1
answer53
viewsAll Admob needs is an XML code?
Admob only needs this code or needs some created class?…
-
2
votes2
answers1753
viewsHow to pass images between Activities?
I have a list (Recyclerview) with two texts and two images in each item. In onClick I can pass the texts but not the images. I’ve tried many ways and the closest thing I’ve come is this:: Passing…
androidasked 8 years, 10 months ago Modesto Barreto 61 -
2
votes1
answer278
viewsWhy should I keep audio and video files inside the raw folder?
On Android you have inside the directory res several subdirectories, apparently separate, for better organization. Sometimes when you want to put a new audio, for example to touch, other than device…
-
2
votes1
answer436
viewsCheck Available Space on SD Card on Android 5.1.1
I need to check the amount of space available on memory card, currently using this method for checking: public static float megabytesAvailable() { File f = Environment.getExternalStorageDirectory()…
-
2
votes1
answer76
viewsHow to get pixel color played on screen on Android? (Without using images)
I’m developing an application for calligraphy and what I’m looking for is the following: I intend to, using a TextView, put the letters on the screen and want to detect if the user is touching the…
-
2
votes3
answers96
viewsAndroid how to remove "Photos" option from the options selector and leave only "Camera" and "Gallery" options
I would like to know how to remove the option "Photos" from the options selector and leave only the options "Camera" and "Gallery". As well as not working, it is unnecessary since the "Gallery" does…
-
2
votes1
answer46
viewsCompile to a lower platform using the latest API?
I am using Cordova in Visual Studio 2017, and installed the Android SDK (API level 23), but I wonder if when compiling using this API, the application will be compatible with previous versions, such…
-
2
votes1
answer193
viewsWhat is the function of Appium in android studio?
What is this Appium for and What are its features?
-
2
votes0
answers27
viewsReturn amount in bytes of mobile data used per day
Hello, I’m having a problem returning the amount in bytes of data consumed via mobile data on android. I am currently using this code: Calendar beginCal = Calendar.getInstance();…
androidasked 8 years, 9 months ago Gabriel Fernando 65 -
2
votes1
answer66
viewsInternalization file, how to create?
Good afternoon, someone knows how to create the internalization file on Android ? I want to create a.xml(en) strings, thank you.
-
2
votes1
answer87
viewsHow not to use so many activities?
Hello, I’m starting to program something on android a few days ago (a very simple but extensive shell identification program, in it you have 5 options, within these 5 more some depending on the…
-
2
votes1
answer20804
viewsHow and where to add image by Android Studio?
Which folder to put the images I want to add to my app? In drawable? And how to add via Android Studio?
-
2
votes1
answer772
viewsItems repeating in a Recyclerview
I have a fragment v4 which is managed by a SectionsPagerAdapter. In the fragment have a RecyclerView who has a Adapter personalized that receives a ArrayList which contains exactly 96 objects,…
-
2
votes0
answers500
viewsIn Android Studio how to view what comes off the screen?
I’m using text and an image with that they comes off the screen but with ScrollView sailing is possible but in Android Studio on the small screen is the phone to follow the design what comes out…
-
2
votes2
answers1012
viewsDrive with 2D Touchscrren
I need to make a C#Script code for moving a 2d character in Unity. I developed a code that runs well on the pc using arrows, but I have no idea how to make it move using the touchScren of an Android…
-
2
votes1
answer420
viewsHow to load a URL that is inside a . txt from the Web View?
The thing is, I’m making an app that’s kind of webbrowser. In this app, I have a url written inside a . txt, and I need to load this URL into my Webview. Follow what I’ve already done: NOTE: I can…
-
2
votes1
answer39
viewsDevice Id Access
I’m developing an app Android and would like to use the Device ID where the application is run to compose an identification. It is possible to access this information? The idea is to identify the…
-
2
votes1
answer282
viewsHow to assign textview return to a string?
Well I am beginner in Android/Java, I wanted to do the following take the result of a textview that is caught through the scan Arcode and play in a string to make a list of results taken by the scan…
-
2
votes2
answers162
viewsonTaskRemoved() method giving error
I have an Activity that extends Appcompatactivity and in it I have the following method: @Override public void onTaskRemoved(Intent rootIntent) { NotificationManager mNotificationManager =…
-
2
votes1
answer228
viewsSearch View without having to click enter to show the result
made a search on my list however it needs me to click enter to complete the search and show the results. I would like the result to come automatically when typing. Thank you. My code: ........…
-
2
votes1
answer56
viewsOrganizing app photos into folder
I have the following code snippet to define the description of the photos my app will take and where the photos will be saved. private File criarArquivo() throws IOException { String descricao = new…
-
2
votes1
answer328
viewsUpdate Sdk Android Studio, Path profile!
I formatted my pc and installed android Studio and have on a drive specifies the folder of androidSdk separate. When updating Sdk, the following error occurs: An error occurred while Preparing SDK…
-
2
votes1
answer247
viewsAutocompletetextview with accented words
I’m having some difficulty using Autocompletetextview with accented words. For example: I’m running names of banking agencies, typing only ita the Itaú bank is finding, as the image below: However,…
-
2
votes1
answer426
viewsDelphi XE5 Firemonkey - Problem building application in Application Store
0 down vote avorite Good morning, I developed a Multi-device application for Android and IOS, but I have a problem when I compile my application in the Application Store mode to distribute in google…
-
2
votes1
answer390
viewsAction on the back button when the keyboard is active
I am trying to use the back button action to show a menu in my application, with the onKeyUp method. Once the back key was clicked, the menu should immediately appear. In my application I work with…
-
2
votes1
answer177
viewsHow do you pause Chronometer and pick up where you left off?
On Android has the view Chronometer, automatically initializes when you enter the ativity. To reset the timer from the 0 use the following code: chronometer.setBase(SystemClock.elapsedRealtime());…
-
2
votes1
answer280
viewsWhy is Broadcastreceiver called several times and always with the same "extra"?
I have an app that sends text messages on android, and a Broadcast to capture errors if I can’t send to the recipient. If you cannot send a message, I capture the object and write to the database…
-
2
votes1
answer209
viewsReact-Enable error after installing lib React-Native-router-Flux
After installing the lib React-Native-router-Flux in my app appeared this error on: I did the procedure of removing the folder…
-
2
votes1
answer101
viewsUse of Sqlite Android
I developed two apps to learn Android and used Mysql database. So far I found no need to use Sqlite and to be honest I did not understand even why of its existence. What is the usefulness of Sqlite…
-
2
votes3
answers10056
viewsHow to run the emulator from the windows command line?
How can I run Android Emulator without having to open Android Studio? the command: android Avd doesn’t work. When I use the command : Emulator -Avd nexus5 I get this error message:…
-
2
votes1
answer858
viewsFirebase , how to play an audio in the firebase Audio Log by clicking a button?
I’m developing an application , that when clicking a button it plays an audio , but if I put all the audios in the application , will be very heavy , would have as I put in firebase these audios ,…
-
2
votes1
answer689
viewsWhat to do so the service is not finished by Android?
I have a service that runs in the background to pick up the location and go recording in a text. The service is started together with android through Broadcastreceiver. Works perfectly, but after…
-
2
votes2
answers258
viewsFinish the last Asynctask before starting another
I’m wearing a AsyncTask (Android app) to receive a string json from the server (Comes from a controller on my ASP MVC site). Basically everything that comes from the server goes through this class…
-
2
votes1
answer538
viewsSet specific time in Alarmmanager by Timepicker and Datepicker
I am taking a test before implementing in the real application. I have an application with two buttons (Date and Time) and a button (Schedule). As soon as the user clicks on the Date button, a…