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
votes1
answer34
viewsInclude "Select All Vendors" in Spinner’s first position?
Good morning, everyone, I have Spinner in which I load the vendor information (user option to select a vendor) I need to include in this Spinner an option to select all vendors and then have the…
-
0
votes2
answers89
viewsHow to read a txt file store the value in the whole type?
I’m using this example: try { AssetManager assetManager = getResources().getAssets(); InputStream inputStream = assetManager.open("nome-do-arquivo.txt"); InputStreamReader inputStreamReader = new…
-
0
votes1
answer54
viewsFind ip inside the network
Hello, I’m trying a solution to find a specific computer within a network by an android application, to connect to a web service in c#... but the problem is in finding this computer, with the ip…
-
0
votes1
answer43
viewsBugando Activity + Memory Error
Good afternoon programmers, I am developing an application and in a certain part of it I populate textviews with some data coming from a webservice. When ordering data from the webservice in a…
-
0
votes1
answer215
viewsHow can I "keep" data from an Activity when rotating the screen?
I have an Activity that makes an HTTP request using Asynctask, the result of this request is sent to a method that updates my UI. But when I rotate the screen, the data populated in Textviews is…
-
0
votes1
answer134
viewsHow to open a new Activity without closing the Drawer menu?
I have an Activity and in this Activity I have the Drawer menu. How do you call another Activity without the Drawer menu disappearing? I just want to change Activity’s content. I tried to use…
java android android-layout android-fragment android-activityasked 7 years, 6 months ago Lucas Charles 127 -
0
votes1
answer88
viewsHow to scale images for apps?
I’m starting a project for an app I plan to build that will be compatible with UWP + Android + iOS. Also, I would like it to be compatible with phones, tablets and Desktops. And it’s my first time…
-
0
votes0
answers359
viewsCreate routes to a single point google maps API
I have a problem, the problem is the following, I made a request via HTTP I took the data from JSON and I loaded inside one so I was able to load all the points of JSON into the map: var get =…
-
0
votes2
answers151
viewsHow to read sdcard CSV file?
Currently I read a file csv of the briefcase assets with the following code: String arquivoCSV = "clientes.csv"; AssetManager manager = context.getAssets(); InputStream inputStream = null; try{…
-
0
votes0
answers85
viewsError rotating screen with open fragment
I am using the simple model of Fragment. There is one that is the List, and another Viewer . Fragmentactivity : if(pFragVisualizar==null){ pFragVisualizar = new FragVisualizar();…
-
0
votes1
answer45
viewsAndroid Studio in Fedora with error: Ignoring Unknown package filter 'Platform-tools'
I’m trying to install the Android Studio in Fedora 23 and the following problem occurs: In the Installation Details Console: Ignoring Unknown package filter 'Platform-tools' In a Pop-up reporting:…
-
0
votes0
answers20
viewsHow to put a Listview Expandable in a Tab?
Opa, I cannot configure this type of listview in a TAB. For example, I have screen 1 when I click the button on screen 1 it goes to the screen I want to put the tab (with name of college campuses).…
-
0
votes1
answer78
viewsError trying to post a php page through Android Studio
Error 03 - 12 18: 44: 46.688 23858 - 23891 / com.natanielsoares.eceller E / AndroidRuntime: FATAL EXCEPTION: AsyncTask #3 Process: com.natanielsoares.eceller, PID: 23858 java.lang.RuntimeException:…
-
0
votes1
answer753
viewsHow to change the color of the navigation Drawer text?
How do I change the color of the text , I’ve tried adding textcolor in the XML menu and but it doesn’t work…
-
0
votes1
answer169
viewsHow to animate a view through XML file?
How do I make animation in an imageview with the XML animation file?
-
0
votes1
answer45
views"Unfurtunately, Stealth has stopped" FATAL EXCEPTION: main
Whatever amendment I make, I still have no solution to this problem. The android Emulator keeps appearing to msg "Unfurtunately, Stealth has stopped". Being that in Main does not present any error,…
-
0
votes1
answer52
viewsAn Activity for each action or several actions in the same Activity?
I’m having doubts about how to use the Android Activity. Use as a controller, going through everything that will be managed from model, or make one for each "screen"? Example: I have the home screen…
androidasked 7 years, 6 months ago Felipe Junges 523 -
0
votes0
answers1116
viewsDelphi android optimize image loading
I have a question about uploading images to Delphi. My images have an average size of 47kb, when I display them on Listview application comes to practically lock by the time of the reply. The images…
-
0
votes0
answers73
viewsListview updating when scrolling the page
Well this happening something very crazy, in a list I have several items where I can change values, but when I increment these values and scroll the screen down and up the values are zeroed. Another…
androidasked 7 years, 6 months ago Renan Rodrigues 3,709 -
0
votes2
answers925
viewsI did wrong thing in my code in android studio and I can’t go back to what I was before
Is there any way I can get my code back to the way it was before I did the wrong thing in android studio? Apparently I deleted my code and only Gradle script is there. Is there any way I can recover…
-
0
votes2
answers1163
viewsError calling another screen
I’m trying to call a second screen in Android Studio, but this giving error. This is the main class: package br.com.olamundo.parametros; import android.content.Intent; import android.os.Bundle;…
-
0
votes2
answers840
viewsCreate elements at runtime on Android
You can create elements at runtime on Android? For example, I want to build an app where the user can create a survey or Checklist and save to the database. Depending on the questions or items to be…
-
0
votes1
answer56
viewsProblem with imagebuttom in listview
Hello, I have a problem that when showing the last item of the listview on the screen, the imagebuttom of the last item and the others of the screen stop working, when scrolling the screen again and…
-
0
votes1
answer107
viewsIs there a function that changes the background of an Activity in android studio?
Is there any way to create a function that changes the background of an Activity? I need a button that will change the Activity background
-
0
votes1
answer47
viewsFunction result JAVA Android
I have a simple question for those who already understand Java but this breaking my head. Being direct, I have my Mainactivity and a layout with two Edittext’s and a button, and a Systemshttp Class.…
-
0
votes1
answer165
viewsNavigation Drawer + Google Maps
I have a problem joining Navigation Drawer as Google Maps. I want google to be my home page and I want it to be on the Navigation Drawer list as an item, but there’s been a little snag. I’ll try to…
-
0
votes1
answer724
viewsGenerate an APK per command line?
How do I generate an APK, android studio project via command line? I wonder if you have how to call a file . bat and it export the apk in a folder.
-
0
votes1
answer49
viewsHow do I click an Imageview that doesn’t interfere with the application?
I have a Linear Layout <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/linear" android:orientation="horizontal"…
-
0
votes3
answers746
viewsToast with specific duration
How to put this Toast to last only a few seconds? For example, 10 seconds. if (mEmail.equals(email) && mPassword.equals(password)) { Intent intent = new Intent(LoginActivity.this,…
-
0
votes2
answers557
viewsI need to send a POST request with 4 parameters (login, password, city, XML) in java
Good morning, I need to send these four parameters to the server to issue a note, the note data will be passed by XML, which is already all correct, more as I do this request POST via java sending…
-
0
votes1
answer192
viewsAutomatic deploy of Android and Ios apps
Would anyone know if there is an automatic deploy tool for Android and Ios applications. Any tool where I can tell him what my project folder is, and when I have deploy run, he already manages the…
-
0
votes1
answer27
viewsChange Layout with your finger
Hi, I’m wondering how do I change one layout to another by dragging the screen.... as if it were in a gallery but instead of photos would be different layouts Thank you!!!
-
0
votes1
answer131
viewsClosing app that are in the background
Guys, how do I end an application, not leaving it in the background but rather ending the process!
androidasked 7 years, 5 months ago Juliano Morche 116 -
0
votes1
answer1330
viewsStructure MVP Android
I’m studying MVP and I was left with doubt of how I should structure my packages on android. On the Internet I found this model, but I don’t know if it’s the best project on github.…
-
0
votes1
answer327
viewsHow to open a dialog to search a file on Android? A Filedialog
My question is about opening files in my Android application, how to upload image from mobile to the server where I first need to choose the image on my mobile. I’d like to know what I need to use…
-
0
votes1
answer33
viewsApply Asynctask to code that receives double vestments
I have many doubts about how to apply the concept of AsyncTask. I’d like to know what that code would look like on AsyncTask. Thanks in advance // Metodo da ação do botão Calcular public void…
-
0
votes0
answers827
viewsWhy does the image get bad quality?
Well, the question is simple, why is the image in low quality? Code: Main class: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode ==…
-
0
votes0
answers38
viewsMap appears white in the inventor app
I want a map to appear in my app, I have already used the html code provided by google, I have created a key api and already activated the google maps android api. The app will fetch the html file…
-
0
votes0
answers3639
views -
0
votes1
answer600
viewsCreating a subfolder in drawable Android Studio
I want to create a subfolder in drawable because I am using many images in my application and I would like to organize them. How to create and make the folder visible for use?
-
0
votes0
answers17
viewsAdd Libraria to Github’s Android
How can I add a Github project as a librarian in Android Studio? I wanted to implement this, but I have no idea how to do it. I have all the requirements.…
-
0
votes3
answers2316
viewsGoogle Maps does not load
I created an application to test google maps, but when I run by mobile the map does not load...a logo of google appears in the bottom left corner but the rest of the screen is blank... I added the…
-
0
votes1
answer107
viewsListview Loses Focus Back
I have a list of Products, when I press product number 50 for example I am redirected to the product details screen by pressing back the list loses focus and back to top, wanted to know how to get…
-
0
votes0
answers56
viewsActivating Mobile Data
I want a button that activates and deactivates the mobile data through my app. wifi I can already manipulate, but the mobile data did not find the form.
androidasked 7 years, 5 months ago Juliano Morche 116 -
0
votes1
answer290
viewsImplementation of recyclerView within tabLayout
I would like help to solve the following problem, I know it may be simple for many but for me it is still a little complicated, so. I have a simple Android project with 3 tabs, being them 1,2,3. I…
androidasked 8 years, 8 months ago Diomar Rodrigues 15 -
0
votes0
answers274
viewsFCM with token registration in Firebase database
Hi, I’m having second thoughts about using the FCM. I’m storing the token generated in the app by fcm in the fire database itself, in order to send the messages of a webservice also connected to the…
-
0
votes1
answer89
viewsAnimation for android
How to make this kind of circle animation for android?…
-
0
votes2
answers76
viewsHow do I search for a string in a table on Android?
I want to search using the "Clas" field, which is a String. And listPsearch gets a String. public Cursor listPesquisar(String pesquisa) { Cursor cursor; String[] fields = new String[]{"_id", "nome",…
-
0
votes0
answers130
viewsHow does one Fragment call another Ragment method?
Hello, how can I call a method that is in another Fragment through the android:onclick =""
-
0
votes0
answers430
viewsHow can I implement Fragments on my Drawer menu
I’m trying to use the example of NavigationDrawer android Studio. I even managed to understand the code, I remake it in my project, but I can’t change the Fragments when some menu item is triggered,…