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
answer96
viewsHow to align an element of a Collapsingtoolbarlayout to the title?
I have a CollapsingToolbarLayout with a LinearLayout inside (which contains some texts). Toolbar title has a default margin on the left (at least on LTR devices) when it is expanded and a different…
-
0
votes2
answers343
viewsHow to use a ready database on Android with Sqlite
I am developing an application that downloads a database according to the state (UF) of the user. Does anyone know how to enter the data into the database? Note: the database file, can reach there…
-
0
votes1
answer137
viewsHow to download a database and insert it into the app?
The app downloads the database according to the user’s status and inserts it into the database.
androidasked 8 years, 4 months ago Jorgyan Ribeiro 29 -
0
votes0
answers200
viewsError Connect Android Json Parse HTTP Showing in Fragment
I have a problem when it’s time to connect, someone could help me please. I’m new and I’m not able to make the connection of JSON PARSE HTTP with FRAGMENTS all tutorials show with ACTIVITY, but I’ve…
androidasked 9 years, 2 months ago Rodolfo Peixoto 31 -
0
votes2
answers485
viewsError adding android platform in Cordova
I’m trying to create a project with Cordova. I already have everything installed, npm, Cordova sdk android and etc.. When I create a project in the directories of my pc, everything works normally.…
-
0
votes1
answer317
viewsWhy is the Locationlistener onLocationChanged so inaccurate?
I’m working with Android gps. I’m using the LocationManager.GPS_PROVIDER and it is giving me very bad points, far away from my location. Has anyone ever worked with this tool? is normal? I thank you…
-
0
votes1
answer35
viewsHow to differentiate buttons from a Listview?
I have a ListView with ImageButtons in each row, and I want when I click the button it saves the product with the price, so I add in an Activity. How do I get the line information from the button…
androidasked 8 years, 4 months ago Carlos Alberto 97 -
0
votes3
answers1785
viewsAndroid Studio does not exercise Genymotion device
I installed Android Studio Genymotion, created a virtual device on Genymotion, put to run the virtual device but Android Studio at the time of running it does not locate the device. I installed the…
-
0
votes1
answer509
viewsFloating context menu does not work in Listfragment
I am developing an App that uses a Drawerlayout to present a side menu. One of the items presented by this menu is a Listfragment. In my Listview I want to exhibit a floating context menu. In the…
-
0
votes1
answer123
viewsLoad layout with Preferencefragment in a Drawerlayout
I’m developing an app that uses DrawerLayout. The opening of each menu item is performed according to the code below: public class MainActivity extends AppCompatActivity implements…
-
0
votes0
answers70
viewsHow can I copy items from one list to another
I wish to create a listviewwith data from another listview. It will function as a shopping cart of these shopping sites, but will serve another purpose. On a list there will be line >imageview,…
-
0
votes1
answer175
viewscustom listview repeating last inserted
to learn, I’m trying to create a custom listview, taking values from the bank, created this Metasacvivity where I call the list method public void listarMetas() { ArrayList<Meta> values = new…
-
0
votes0
answers107
viewsDevelop a Screen equal to SMS Receiving Screen (android). User receive Messages
Good Afternoon, I’m starting on Android. I’m making a app where a user will receive various messages from other users, each message containing 2 fields. The user will access a screen and see this…
-
0
votes0
answers39
viewsButton only sends data from Gson to Textview on Android 2.2
Good night! I made the following code to send data from a Webservice Json to a Textview from a button: package br.edu.ipesu.thermostop; import java.io.InputStreamReader; import java.net.URL; import…
androidasked 9 years, 1 month ago Fábio Adriano 1 -
0
votes1
answer486
viewsSeveral errors when compiling in Android Studio
I created a project in Android Studio (yes, the Rootear device). I finished the main screen and created the action for the Root button. Pórem, after I created a screen of "Welcome" came up several…
-
0
votes0
answers62
viewsMismatch between Processor Architectures
I am completely new to the world of mobile application development. By trying to run a test application I get this error twice: There was a Mismatch between the Processor Architecture of the project…
-
0
votes2
answers887
viewsCamera orientation with Surfaceview
I’m having a problem using the SurfaceView for a custom camera on Android, I can’t work the camera orientation with the SurfaceView, no matter how I turn the Smartphone it always behaves strangely,…
-
0
votes2
answers266
viewsError adding appcompat-v7 api level 22
I’m trying to add appcompat-v7 to my project, but when I sync with gradle the following error occurs:…
-
0
votes2
answers64
viewsCheck smartphone horizontally
How to check in a given situation if the smartphone is horizontal?
-
0
votes1
answer1068
viewsAllow phone number link in android studio app
And I created a webview app, and I’m testing it with local folder and web, and in the app has the html link to link directly from a link with the phone number, because it’s a mobile site, how to…
androidasked 8 years, 3 months ago Evandro Aguiar 107 -
0
votes2
answers212
viewsError generating apk with google play services
I have an app that uses google maps, which works perfectly in debug mode. But when I signed apk, and install on the device the maps do not work. What can be?
-
0
votes2
answers1577
viewsShow all the contents of a layout in the Android Studio preview
Hello, I would like to know how to (if possible) show all the contents of a layout in the Android Studio preview. Follow image of example: The blue dial, is a button that is in the layout, but I…
-
0
votes1
answer186
viewsUpdate does not update
The app works like this: An SMS is received, so the app checks if the number that sent this SMS is registered, if the app checks the first twenty characters of the message, which I call text…
-
0
votes1
answer31
viewsDisplay specific browser warning
I have a web application that works well in all browsers. It turns out that I had to develop a Feature that is not responding well in the browser that is already installed on Samsung smartphones.…
-
0
votes1
answer160
viewsAndroid Emulator with Internet
I configured the emulator of Android, but has no Internet connection, as I configure or have no way?
-
0
votes1
answer149
viewsUse of while in a Thread on Android(runOnUiThread)
Hello, guys I’m having the following problem I need to manage an animation. Which changes over time, and for this I made the following code: public void HandleAnimator(){ new Thread(new Runnable() {…
-
0
votes1
answer19
viewsAndroid URL - Incomplete path
Hello! I’m trying to create a URL but it seems that when I create the URL she is not created with the full path. Creation of the URL url = new URL("https://api.plivo.com/v1/Account/" + authID +…
-
0
votes1
answer62
viewsConditional Change of Activity
Hello, I have a problem, I want to create a conditional on an Activity, inside a button, to open another Activity in my app. But how would that parole? My app has buttons in main Activity that leads…
-
0
votes1
answer445
viewsEdittext Android Studio
I Have Next Edittext: <EditText android:layout_width = "match_parent" android:layout_height = "wrap_content" android:id = "@+id/textSenha" android:layout_marginTop="40dp" android:hint =…
androidasked 9 years, 1 month ago Douglas William 321 -
0
votes1
answer328
viewsAfter logging in, prevent the app from returning to the login screen with the back button
In my login system, I type in the data and make it open a new Activity if the data is right. So far so good. But when I click back (the idea would be to close the application), it simply shows the…
-
0
votes1
answer1344
viewsHow to pick up the text from a button?
So, I have a question and answer game. Each question has 4 answers (placed on button labels). How do I get the text from the button clicked to compare to a String?
-
0
votes1
answer415
viewsError when compiling a project in Delphi Seattle for android
I’m getting this error while compiling for android. In windows, compile and run the app smoothly. If anyone can help I’d be immensely grateful. [DCC Error] E2597…
-
0
votes2
answers99
viewsSpinner behavior with database data in Lifecycle
I have 3 Spinners inside a Fragment, the problem I’m having is when I rotate the Tablet screen and the screen rebuilds, so the Spinners are zeroed. The first Spinner comes from the bank, depending…
-
0
votes0
answers39
viewsError in Handler.obtainMessage
I’m developing an app that uses Bluetooth connection, but I’m encountering a problem that I can’t solve. I am following the orientation of this link to such https://developer.android.com/guide/top…
-
0
votes0
answers132
viewsError testing app via Smartphone
When I try to test my application via Smartphone appears this error. 12:34:20 Session 'app': Error Installing APK This message appears in Debug com.android.ddmlib.Adbcommandrejectedexception: device…
androidasked 8 years, 3 months ago user31040 -
0
votes1
answer106
viewsResume to last Activity even when the app is forced to close by the user
I have an app similar to taxi apps. It happens that in the driver’s app while he is moving to pick up the passenger, if he forcibly closes the app or the device restarts or gives some crash, when he…
androidasked 8 years, 3 months ago Mateus Carvalho 1,494 -
0
votes1
answer667
viewsTransparent toolbar on Android
I need to make mine toolbar be transparent, or at least remove that shaded line below it. Someone has been through a similar situation?
-
0
votes1
answer82
viewsRemove default map tags on android
I did not test, but apparently in Avascript you can remove the default marks from the map using Maptypestylefeaturetype - https://stackoverflow.com/questions/7538444/how-do-i-remove-default-markers.…
-
0
votes0
answers251
viewsSpinner Android Studio
I’m putting a Spinner in my project, and I wanted to put some kind of hint on it and change the background color of it. For example: when entering the screen, will this written "Select", and when…
androidasked 8 years, 3 months ago carlos giovani casilo 473 -
0
votes1
answer416
viewsSave the instance of a Fragment
To MainActivity calls Fragment upon being started. I have tabs that alternate through Fragments. I trace a route in one of the Fragments and when leaving, clicking on the tab and when returning, the…
-
0
votes0
answers39
viewsError while performing android route
08-24 22:52:53.529 9872-9880/br.com.anjodarua E/AndroidHttpClient: Leak found java.lang.IllegalStateException: AndroidHttpClient created and never closed at…
-
0
votes0
answers372
viewsandroid.view.Inflateexception: Binary XML file line #16: Error inflating class android.support.design.widget.Navigationview
I can’t make a mistake: android.view.Inflateexception: Binary XML file line #16: Error inflating class android.support.design.widget.Navigationview <include layout="@layout/app_bar_options_user"…
androidasked 9 years, 1 month ago Douglas William 321 -
0
votes1
answer96
viewsProblem loading Maps v2
Good morning! I have the following code to load the map in my application: if (mMap == null){ mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); if(null…
android google-maps google-maps-android-api-2asked 9 years, 1 month ago Thiago Luiz Domacoski 7,310 -
0
votes1
answer200
viewsViewpager with different content on pages
I can’t create different pages with Viewpager, I took a tutorial that explains how to use the component without Fragments, but you don’t have the information I need to solve this problem. Follow the…
-
0
votes1
answer162
viewsLoad Google Maps without internet - Android
I’m creating an app using the standard google maps Activity in android studio, the application is already complete, but I would like it to work without internet, I saw that the google maps app has…
-
0
votes1
answer120
viewsError classse R, Android Studio
After creating a project in Android Studio, the following error appears on the console: /home/nayron/AndroidStudioProjects/MyApplication2 /app/build…
-
0
votes1
answer93
viewsDelete gridview item from gallery photos
I’m developing an app that contains a gallery and found a tutorial that showed how to fill Gridview with photos taken from the camera. However, I’m having difficulty doing something for when the…
-
0
votes0
answers46
viewsExchange of android menu
I need to create three menu options in my app, 1 for visitors, another for registrants and another for admin. I created 3 menu files with the options I need, and making the exchange manually right…
androidasked 8 years, 2 months ago carlos giovani casilo 473 -
0
votes1
answer91
viewsUndefined index JSON Android
Hi, I’m making the following mistake: I am developing an application that checks a table of an external mysql database by sending the device’s IMEI returning a hardware id, but when debugging the…
-
0
votes1
answer692
viewsAngularjs + route - Failed to execute 'replaceState' on 'History': A history state Object with URL '...' cannot be created in a Document
Good Morning Everyone, Someone has already had the problem of the XDK / Cordova application getting looped when booting. This error only occurs on the device. It stays "rebooting" until error occurs…