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
-
1
votes1
answer150
viewsSpinner with Sqlite
Hello, good evening. In my project I have a spinner <Spinner android:id="@+id/spnCategorie" android:layout_width="match_parent" android:layout_height="wrap_content"…
androidasked 7 years, 7 months ago Giovani Rodrigo 299 -
1
votes1
answer377
viewsSaving data from the checkbox and sending to another Activity
I have a list of products, which comes from an online database, each product contains a checkbox, name and value. What would be the best way to pass only the data of the marked products to a new…
-
1
votes1
answer3816
viewsHow to make a query in Sqlite?
In my project the user must register to enter, when placing the data name, email and password and when clicking the registration I would like to check if the email already exists, how to do ? I have…
-
1
votes0
answers33
viewsWhy did I open a bunch of windows when I used Internet?
I have a ActivityA, contains a ListView and a botão, and I have a ActivityB containing two EditText and a button. When do I start app begins in the ActivityA with empty list, when pressing the…
-
1
votes1
answer1792
viewsHow to take Activitb’s Intent values and move to Activitya in a List?
I have a ActivityA which is the main one, contains a ListView and a botão, and I have a ActivityB containing two EditText and a button. When do I start app begins in the ActivityA with empty list,…
-
1
votes0
answers365
viewsAndroid Alertdialog
Good, I’m developing an Android application and right now, I found a problem for which I can’t find a solution, I’ll probably be doing something wrong, I hope someone can help me. The problem is…
-
1
votes0
answers198
viewsAndroid Retrofit 2 Simple XML Converter Response
I am using Retrofit 2.2.0 and Retrofit Simplexml Converter 2.2.0. I added the simplexmlconverter at the time of the retrofit with the addConverterFactory method. The problem is that when I get the…
-
1
votes1
answer632
viewsError in android xml page
I am very beginner on android and strictly following the example provided by my teacher and using a College PC I copied and pasted and had no problems, using my notebook I’m with the following…
-
1
votes1
answer192
viewsGoogle maps' getMap() problem - android
I am studying the google maps api and was using it as a basis for my video studies available on youtube. However, while I was studying I came across a code depreciation problem. The video class that…
-
1
votes1
answer137
viewsHow to make Inserts in table creation in Sqlite?
I would like to know how to do INSERT manuals in the Databasehelper class that extends from Sqliteopenhelper. public class DatabaseHelper extends SQLiteOpenHelper { private static final String…
-
1
votes0
answers50
viewsIdentify drawing in character - Canvas (Android)
I can already draw on the screen using a DrawingView, as shown in the example: I wonder if there is any library to identify the drawing and check if it is a character, and if possible, give a…
-
1
votes1
answer797
viewsHow to redeem external IP address on Android?
The address IPV4 local is not something very complex to rescue, can do this using the class NetworkInterface. But beyond the site, there is also the External IP, in which I realized that some people…
-
1
votes1
answer1077
viewsCannot resolves Symbol
I’m following the tutorial (Android Studio 2.3 Development Essentials) but this giving this error cannot resolve Symbol in that part of the code ConstraintLayout myLayout =…
-
1
votes1
answer434
viewsWeb View with zoom
I have a web view being loaded onto the screen (mounted by an internal HTML) which sometimes opens with zoom and others without the zoom. I don’t want her to open with zoom, I need it to open on the…
-
1
votes1
answer40
viewsBase64.Decode specific
I’m trying to load a string I get from Webservice in an Imageview from Android. I made some comparisons and found that the string I receive is correct, however it is a string and as such I can not…
androidasked 7 years, 7 months ago Reginaldo Rigo 3,638 -
1
votes1
answer30
viewsHow to remove titles (at runtime) and decrease the size of Floatingactionbutton?
I have a menu, with floating action Buttons and would like to know how it is possible to put them smaller than the normal size, because they are equal, in size, to the menu, even open and the…
-
1
votes1
answer303
viewsError when comparing an Edittext to a String
I am trying to compare the text inserted in an Edittext with an item in my Arraylist, but the condition is never true. int aux=-1; for (int i = 0; i < lista2.size(); i++) { if…
-
1
votes1
answer2643
viewsPost JSON on Android
I wonder if android is yes or no performing my JSON post. Follows the code: public void login(JSONObject dados) { try { HttpClient client = new DefaultHttpClient(); HttpPost hp = new HttpPost();…
-
1
votes0
answers72
viewsConfiguration in Webview
Good afternoon, I have an application ( in Xamarin for android) where within it opens a webview on a link of a platform courses I have... but there is a big difference between I open this platform…
-
1
votes2
answers379
viewsError when using Google’s API to run from Android 2.3 (API Level 9)
I’m developing a app which will run from version 2.3 of Android (Gingerbread - API Level 9). However, when trying to add dependencies to Firebase and of Google Admob, the following error occurred…
-
1
votes1
answer1160
views -
1
votes1
answer779
viewsDotted Line (Dotted/Dashed Line)
I’m trying to create a division line in my App as shown below. drawable/dotted.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"…
-
1
votes1
answer651
viewsTranslation app Text to Speech - Android
Hello, I’m beginner on android and would like to make a simple translator, where the user write anything and click the button with the desired language to translate aloud, how would be the…
-
1
votes1
answer79
viewsLogin Firebase using Googlesign
I’m trying to log into the application in Firebase through Googlesign this way: import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import…
-
1
votes1
answer129
viewsAndroid error post method
I would like to make the username string send to the bank after being clicked on the button, but is giving error in the lines: at…
-
1
votes2
answers65
viewsAndroid String Post http
I have a code that I would like you to do a "Post" of the email string after clicking on the button, the post code is apparently correct , but the button is not working.. logcat does not return any…
-
1
votes1
answer39
viewsApplication closing unexpectedly when sending post request
Well I’m developing a screen using the holder view and in it I am sending a JSON to the server, but it has been a problem. By clicking the send button it simply closes the application, and in the…
-
1
votes1
answer166
viewsHow to put more information in the window by clicking a Marker?
When opening the map, in Mainactivity, I display some pins on the screen (markerOptions), as codes below: WAPIService.getInstance().getPontosMapeamento(latitude, longitude, new…
-
1
votes1
answer102
viewsError synchronizing grandle with mask library for fields
I’m trying to install a dependency to mask fields but when adding it, I have problems, in the log appears the following message: Error:Execution failed for task ':app:processDebugManifest'. Manifest…
-
1
votes1
answer197
viewsHow do you make a Button visible only after an animated Textview has been fully written?
In the protected void onCreate(Bundle savedInstanceState) of Mainactivity eu I serve the button so that it is invisible and also so that it does not occupy space with the following code:…
-
1
votes2
answers467
viewsAuthentication screen with Sqlite
I have to authenticate the user, but when I inform the user and the correct password he enters the menu screen, so far so good. The problem is that when I type an incorrect password or user, I want…
-
1
votes1
answer279
viewsHow to pass sentences to a variable and then display randomly
Well, I started programming yesterday in React Native and still do not understand very well how to do things.... I need to pass a series of sentences to several variables, each variable a sentence,…
-
1
votes0
answers104
viewsTextview does not align below with the android property:layout_gravity="bottom"
I have two Texts views that will appear in a Listview and I want one to be aligned above and one below, but it’s not working the way I’m doing.…
-
1
votes0
answers393
viewsHow to make webview work, I’ve tried but it doesn’t work
I’ve tried everything but my webview doesn’t work. help me the java code public class Telairlanda extends Appcompatactivity { @Override protected void onCreate(Bundle savedInstanceState) {…
-
1
votes1
answer3600
viewsHow to pass data between Activities
I have a code that transforms getText in string and would like to pass this string to one other Activity in a simple way, but not an Activity that comes right after this. My code: @Override…
-
1
votes1
answer57
viewsChange the appearance of Alertdialog to the old one
I have this code that creates a Alertdialog public void mostrar_popup(){ AlertDialog.Builder dlg = new AlertDialog.Builder(getActivity()); dlg.setCancelable(false); //impede que a janela seja…
-
1
votes1
answer1028
viewsFill object list with Sqlite data
I have a state object containing the following attributes. idState (String), siglaState (String) And I have a table already filled in the database with the same attributes above. But I would like to…
-
1
votes1
answer112
viewsRound rating for fixed stars
Good precise for example: Fill 4 and a half stars To set the value I do so: ratingBar.setRating((float) restaurante.getMedia()); When information comes from for example 4.5 he rounds up putting like…
androidasked 7 years, 6 months ago Renan Rodrigues 3,709 -
1
votes0
answers43
viewsWait for a specific wifi?
I created the following test, searching the name of the WIFI and the MACADDRESS of who sends me this WIFI. I would like to be "listening" if there is a specific WIFI, so that when finding it, do…
-
1
votes0
answers270
viewsHandle and filter Notifications on Android
I’m creating an application for Android in which I use a NotificationListenerService to try to intercept the notifications. The intention is to intercept all notifications and let you pass only…
android push-notification android-notification android-serviceasked 7 years, 6 months ago Julio Machado 11 -
1
votes1
answer173
viewsUpdate widget data - update time
I am creating an application that will have a widget, it will be presented some data taken from a webservice. I need it to update every 5 minutes to have a recent user information. The documentation…
-
1
votes2
answers1054
viewsHow to hide the keyboard when clicking an Edittext?
I have following XML: <android.support.design.widget.TextInputLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginRight="15dp" android:layout_weight="6"…
-
1
votes0
answers34
viewsDownload by javascript does not work on intel xdk
I have a script that works normally in the mobile browser and the computer browser, but when I get an apk it saves a file with another extension instead of the proposal. Follow below my script…
-
1
votes1
answer68
viewsProblems with masks in the field
My application is closing when I do a few clicks in the field, I found that it is trying to add twice mascara to the field. @FocusChange(R.id.edtTelefone) void focusAlterado(View v, boolean…
androidasked 7 years, 6 months ago Renan Rodrigues 3,709 -
1
votes1
answer283
viewsHow can I take a specific item from a listview and place it in another Activity?
I am creating an app for students at my school, where students will log in with their enrollment, the subjects will be placed in a listview and when the student clicks on an item from listview will…
-
1
votes1
answer453
viewsHow to call a method in Fragment via listview Adapter
I have a fragment that has a listview inside it and inside lisview has a button. The button has to delete the listview item I have already made a method within onactivitycreated, but gives error…
-
1
votes1
answer306
viewsUsing Progressidialog when Logging in
I am trying to insert a Progressdialog in the login screen of my Android APP. In parts it is working, only when the login is successfully done, but when something is wrong as password for example,…
-
1
votes3
answers992
viewsError "Binary XML file line #22: Error inflating class Fragment"
I believe the error occurs due to lack of memory. I get the following exception. When I enter the application and minimize the same, then I enter several applications minimizing the ones that were…
-
1
votes1
answer131
viewsHow to implement the Parcelable class?
I need help when it comes to object orientation. I need to implement the class Parcelable in the model Produto, but for the sake of organization, I would not like to implement directly in the class…
-
1
votes1
answer53
viewsHow can I separate items from a sharedPreferences into an Array?
I have a question, I made a checkbox on items in a listview that when marked are stored as Sharedpreferences. So I created a button (Favorites) to access the items marked by the checkbox, but the…