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
votes2
answers257
viewsProblem recovering with Firebase
What is happening is this, when I click the button(mLikebtn) it adds 1 value to Child Like in firebase if I click again remove(Mechanics of Like same)... the problem is when I leave the current…
-
0
votes1
answer125
viewsAndroid - How to make Navigationdrawer items clickable?
I’m very new to programming. I created a Navigationdrawer with the help of a tutorial. It looks like this: main_activity.xml: <?xml version="1.0" encoding="utf-8"?>…
-
0
votes0
answers262
viewsFirebase, Parse-Server or "in the nail"
I have a school project and my team will use the mobile solution with a backend side, in the backend we have a problem, whether we will "do" and configure everything, which is to set up and create a…
-
0
votes0
answers203
viewsCommand - Cordova run android
I’m having trouble executing the command "$Cordova run android", see the line below after running the command; $cordova run android ANDROID_HOME=/home/dev3/Android/Sdk/…
-
0
votes0
answers131
viewsProblem with Recyclerview
I have the following problem, I have a screen where I display a list using a Recyclerview, until then it works well, then when I use the view Scroll it creates "spaces" blank in the list ... private…
-
0
votes1
answer19
viewsProblem with Menupop
Hello, so it’s no longer the first time I’ve been having trouble with Recyclerview.Viewholder, in this case now happens the following, My menu has 2 buttons I’m trying to catch the click with switch…
-
0
votes1
answer120
viewsHow to modify a Listview present in another Activity without using Intent?
I created a listview in the initial Activity of a project, and would like to know how to modify it from other activitys, without having to use the "Intent.". Activity01 (where the listview is):…
-
0
votes0
answers43
viewsApplication closing alone after Holder.textViewVar.setVisibility
I have a RecyclerView and in each item I would like to check if a fact occurred to show or not a button: @Override public void onBindViewHolder(ViewHolder holder, int position) { Posts post =…
-
0
votes1
answer223
viewsOnly print the first element of Arraylist
My problem right now is to print the various elements that are inside an Arraylist I created. How my app works is as follows:: I use a Cursor, and I will fetch the table information from the…
-
0
votes1
answer40
viewsAndroid, Onitemclicklist with Listview variable
In this code I have a list that keeps updating and adds another line in listview, however, I need her position to be able to exclude her from the vector. It turns out that there is an error with the…
-
0
votes1
answer641
viewsAttempt to invoke virtual method android.database.sqlite.SQLiteDatabase.rawQuery(java.lang.String, java.lang.String[])' null Object Reference
Okay, I’m new to Android and I’m developing a somewhat complex application for a course completion. At the moment the problem is to display a listview with information from a local database…
-
0
votes1
answer917
viewsGrab an Image from the gallery and move to a folder
I’m using the following code to pick up the path of an image from the system: { Intent intent = new Intent(Intent.ACTION_PICK); intent.setType("image/*"); startActivityForResult(intent,…
-
0
votes0
answers33
viewsMediaplayer stops after a few seconds
I’m developing a radio app, to acquire knowledge, so I took a stream and I took this code: package tk.davidev.android.ews; import android.media.AudioManager; import android.media.MediaPlayer; import…
-
0
votes1
answer134
viewsEntering data into the database through a Dialog
I am creating a project that needs to create users, I have a ready method working but I am trying to put a way to display in a dialog. I created a screen with a Recycler view to display the list of…
-
0
votes1
answer175
viewsSend Activity parameters to a calculation class
I’ve had a question for a while, I posted it here once, but it hasn’t been solved. I would like to pass a parameter from an Activty to a calculus class (this class does not have Activity , it is…
-
0
votes1
answer438
viewsAdmob - advertising videos
Guys, I’m thinking about creating an app whose monetization form is those ads in videos that the user watches to win something in the app, know the videos Rewards like the Angry Birds, actually, I’m…
-
0
votes1
answer79
viewsWhen filling Listview it becomes empty
This is a shopping cart screen, where the product purchased is added to a Listview using an Arraylistadapter. So far everything is working. However, each product contains a list of additional and/or…
-
0
votes1
answer792
viewsError:Execution failed for task ':app:packageDebug'. > ! zip.isFile()
I’ve been getting this unbearable error, I’ve been going around it going back a while in my project since I backup the app, then sometimes it worked, when it didn’t work I had to redo the backup,…
androidasked 7 years, 8 months ago Wallace Roberto 496 -
0
votes1
answer753
viewsYou need to use a Theme.Appcompat Theme (or Descendant) with this Activity
I’m having this problem when running my app on an android 4.4. I have spent all day looking for solutions, but nothing works and I can not find errors in my code. I thank you from now on any help!…
-
0
votes1
answer1251
viewsCan’t Convert Object of type java.lang.String to type
I’m trying to get lat e lang which is saved on firebase and recover on map, mPost_key is the uid user , this code works, more than this error when I put mPost_key , we use this same method…
-
0
votes0
answers34
viewsDelete Imagebutton in a Scrollview on Android
We are developing a communication board for people with a certain degree of difficulty, to be able to communicate through a communication board. In case it might unintentionally add more than one…
androidasked 7 years, 8 months ago José Aparecido 13 -
0
votes0
answers45
viewsaddView List - The specified Child already has a Parent
I’m getting the bug "java.lang.Illegalstateexception: The specified Child already has a Parent. You must call removeView() on the Child’s Parent first." even removing Parent from View. Follows the…
androidasked 7 years, 8 months ago Jhonatan Pereira 537 -
0
votes1
answer55
viewsFragments setArguments and getArguments error
I’m trying to pass some information from Activitymain to a fragement but android is complaining, in Activitymain I pass the values so: if (f_caixaTexto== null) { f_caixaTexto = new…
-
0
votes1
answer70
viewsHide Keyboard when sending message
Hello, then.. I’m looking for a solution for when the user sends the message the keyboard closes automatically. Thanks in advance. <Button android:id="@+id/singleComentBtn"…
-
0
votes1
answer164
viewsAzure Sotarage on Android - open failed: ENOENT (No such file or directory)
I’m having a problem with the AZURE STORAGE API for Android which is when I try to upload an image with the following code storageAccount = CloudStorageAccount.parse(storageConnectionString);…
-
0
votes2
answers534
viewsGuidance from Recyclerview
How can I make to recyclerview instead of filling from top to bottom start from bottom to top. EDITED when I open my activity with recyclerview and it has several messages so that it exceeds the…
-
0
votes1
answer147
viewsSELECT in multiple SQLITE tables
I have a table of clients and I make a list of all the items in this table in SQLite I need to list these customers, also search for the lowest date, related to the customer, in another table.…
-
0
votes1
answer51
viewsCommands below setAdapter being executed before getView()
I’m creating some Adapters in my app and I’ve come up with this question in a problem I’m having. I have a code like: public class ActivityCompra extends AppCompatActivity { Adapter a; @Override…
-
0
votes1
answer90
viewsProgressidialog does not quit 0%
I am uploading an image to the firebase database and I want to show it in the file but it always stays 0/100. progress=new ProgressDialog(getContext()); progress.setMessage("Downloading Music");…
-
0
votes0
answers96
viewsProblem uploading a photo to a web server
Hi! I’m having a problem uploading a photo taken from an android app to a web server. On the local server it usually sends the photo, already on the web server, it sends only one photo and only…
-
0
votes2
answers337
viewsProblems with reading database [Sqlite]
Day number 3. The app insists on "crashing" its startup and the Frustration is strong at the moment. The problem, I believe, is found in the getFromDb() method, more specifically in the line where I…
-
0
votes0
answers37
viewsjava.lang.Nullpointerexception error when trying to popular Spinner
Inside the Oncreate: spnMateriasID = (Spinner) findViewById(R.id.spnMateria); try{ atividadeModel = new AtividadeModel(this); atividadeModel.getWritableDatabase(); materiaModel = new…
-
0
votes0
answers343
viewsList data in an Android Listview
I have a question when it comes to listing specific data from a table in a ListView. When I use a method to list, I can get all the records from the table, only I would like to filter this data by…
-
0
votes1
answer61
viewsPassage of parameter Drawable object
I created a method to encapsulate a notification message (Notification.Builder). An excerpt from the code is shown below: public void exibirMensagem(String titulo, String texto,Drawable icone) {…
-
0
votes1
answer665
viewsError using cursor to read Sqlite table
I’m having the following mistake: Couldn’t read Row 0, col -1 from Cursorwindow. Make sure the Cursor is initialized correctly before accessing data from it. however to my view the cursor was…
-
0
votes1
answer262
viewsSave image from API to mobile memory
I’m trying to save an image coming from the API in mobile memory. public void saveSkin() { ivSkinSaver.buildDrawingCache(); Bitmap bm = ivSkinSaver.getDrawingCache(); OutputStream Out = null; try {…
-
0
votes1
answer197
viewsApplication with Navigation Drawer, Tabs and Fragments
I made an application with Navigation Drawer making use of the AS wizard, on the first screen "Mainactivity" implemented a layout with Tabslayout and Viewpager and everything is working perfectly,…
-
0
votes1
answer464
viewsHow to change the color of a Hyperlink in android studio?
I can do Hyperlink perfectly, the problem is that your color is not contrasting well with the background of my application (follows picture): I would like to know how to change your color, since…
-
0
votes1
answer359
viewsCentral alignment appears correctly in the Activity preview, but not when running the app?
I put alignment to the center for all textView and in the preview of Activity, still in android studio, all right: But when I run the app the same doesn’t happen: Even if you set the layout_width of…
-
0
votes2
answers368
viewsHow can I extract the information from an XML that is stored in a String?
I’m consuming this one xml of a api and storing its contents String Its structure is this way: <opml version="1"> <head> <title>Título</title>…
-
0
votes1
answer793
viewsError while running App on Android Studio 2.3
When I run (both in Android emulator on PC and smartphone) the App returns the following error: <p>Installation failed with message Invalid File:…
-
0
votes1
answer54
viewsFormatting part of Textview in an event
Speak guys, I apologize if the question is repeated, but is that I searched and could not solve my problem. I need the following: The user enters with a String and the app returns another String…
androidasked 7 years, 8 months ago Jackson Knust 1 -
0
votes1
answer466
viewsSave status of Fragments in viewPager
Whenever the device is rotated I’m losing the content of Fragments that are in three tabs, I’ve already made use of onSaveInstanceState in Activity more now I’m taking a bath because of my main…
-
0
votes2
answers755
viewsHow to make a button or a checkbox become inaccessible in android studio?
I would like it to be confirmed that the choices of both Uttons and checkboxes become inaccessible/irresponsive/inactive. I know you can do this using if, but I believe there must be some function…
-
0
votes1
answer242
viewsI am trying to add a Listview inside a Viewpager Ragment and returns me the following error. Any suggestions?
3-22 17:00:33.850 24857-24857/br.edu.br E/Androidruntime: FATAL EXCEPTION: main Process: br.edu.Unilab.intercampi, PID: 24857 java.lang.Nullpointerexception at…
-
0
votes1
answer52
viewsThread does not run
Adding Breakpoints I could notice that the Thread below is not executed. I search the typed zip code using HTTP, returning a JSON, via the viacep.com webservice. if (cep.length() == 8) { final…
-
0
votes1
answer95
viewsHow to get data from this Json?
I need to get the name, Distance, photo and id, which are within "date" and also need to get the route_id that is inside "ride". This will be populated in a listview that contains these first data.…
-
0
votes1
answer54
viewsTypeface does not change the font
My font is not changing, the font file font1.ttf is in the Assets folder Class package br.com.paivasdev.fazendocafe; import android.graphics.Typeface; import…
-
0
votes1
answer88
viewsgoogle login problem on android
I’m having a lot of difficulty logging into google with android, I have an app, in Ordova, configured my app, I have credentials in google. I’m following this example:…
-
0
votes1
answer302
viewsHow to make a Scrollview with multiple Components?
I am trying to get an Activity of a project of mine to contain a considerable amount of Components. I tried to do this using a Scrollingactivity that contained more than just the "default" textView…