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
votes0
answers65
viewsHow to show my phone in vs2017 and compile with it?
Today I use vysor to create my applications. Without Vysor, I can’t see my Cell(J500M) in the VS2017 debug bar. There’s another way I can plug in any phone and show up on VS2017 without using…
-
0
votes0
answers94
viewsHow to get the answer from an Activity called an Arrayadapter class?
I have the Activity ActLevantamento, where I created a custom layout using a class inherited from ArrayAdapter, class AtributoArrayAdapter. In this custom layout, I have a button, and in the call of…
-
0
votes1
answer378
viewsShow Image in Imageview
I have a project that uses Fragments, I have a button that directs me to the image gallery, there I have to select an image and show in an image view, but I’m not getting.…
androidasked 8 years, 5 months ago Juliano Morche 116 -
0
votes1
answer44
viewsHow to send a Stringbuffer select to a class
I don’t know how to send one select made in my Databasehelper class and send it to a public class, then from that make my code work normally. My Databasehelper class and at the end select: class…
-
0
votes2
answers748
viewsLimit access in app areas to different users
I’m working on an app project for a company and I ended up getting into a problem I didn’t find how to review it. I would like to limit access to certain parts of the app to different users. Ex.:…
-
0
votes1
answer164
viewsHow to make dialog that accesses a view without using setContentView
I am creating a dialog with an Edittext, and I need to take this value in another Edittext, without using setContentView pq do not want to redirect to the dialog xml... Follows the code:…
-
0
votes1
answer190
viewsapp ordering development, android firebase
good evening guys wanted to ask a question, I’m developing an app, and use firebase but I’m kind of layman still in programming, in order wanted to know if there is any way to sort the data that…
android database firebase classification android-recyclerviewasked 7 years, 1 month ago Eder Rodrigo Coffani 25 -
0
votes1
answer334
viewsText inside cardview by half
I wonder how I put the text inside a cardview higher. In my code it’s like this: <android.support.v7.widget.CardView android:id="@+id/card_view8" android:layout_width="fill_parent"…
-
0
votes1
answer71
viewsPosition of the Autocomplete list
How to position the Autocompletetextview list below it? , I have seen some tutorials and simply the list starts below plus mine is at the top. <AutoCompleteTextView android:id="@+id/actViewEqp"…
-
0
votes0
answers212
viewsDoubt with creation of projects in firebase
I had several projects in firebase and when I went to create another fired this message: Missing 3 projects to reach the limit, even if I drop them all, which is what I did and the message…
-
0
votes1
answer222
viewsHow to remove string saved in sharedPrefererences?
Boas, I have the problem of having a bookmark list and need to remove by clicking the item of favorite times that is saved in Shared preferences. I have a list which is my favlist that contains json…
androidasked 8 years, 5 months ago Tiago Coelho 739 -
0
votes0
answers374
viewsChange item color - Recyclerview and Firebase
I need to change the color of a Linearlayout, as a query to Firebase. Bank structure: USUARIOS - ID_USUARIO ---AGENDAMENTOS -----nome: João -----lastview_usuario: "1506816888384"…
-
0
votes1
answer63
viewsAPK protection against Disassembly and others
I would like to know how to protect the code of a APK Android, because if we extract, we have the templates, if we use certain programs, we have virtually all the classes. What Ways Do You Know To…
-
0
votes0
answers266
viewsHow to listen to a Socket connection on Android
I have a socket tcp java server on the pc and a socket tcp client on android, I receive data from the server. However how do I create a server that is always listening to a port on android, ie…
-
0
votes1
answer544
viewsHow to create a mask for monetary value in an editText, real in case it format this way to save in the database "20.99"?
How to create a mask for monetary value in an editText, real in case it format this way to save in the database "20.99"? 1.99 20.99 300.99 1000.99 10000.99
-
0
votes1
answer56
viewsHow to use Rncryptor and Firebase?
I’ve been researching ways to encrypt the user data of an Android application that uses Firebase. In this article Rncryptor is recommended, but without details of the implementation. I found this…
-
0
votes1
answer59
viewsImageview appears in only a quarter of the screen
I have the following function in my android app: public void createBall() { layout = new RelativeLayout(this); // Random choose color of ball int[] color={R.drawable.vermelho, R.drawable.azul,…
-
0
votes0
answers250
viewsSending a CSV file to an ftp server
My application makes an order registration, already creating a file CSV and throwing that file into FTP, the registered application creates the CSV, but when to upload to ftp error(I think), follows…
-
0
votes1
answer66
viewsHow to select by the bank the value of the column using the Random() method
I made a project on Android that is a little hangman game, where I can record in the Sqlite database the word and a hint. In my Databasehelper class I created the normal database, and made some…
-
0
votes1
answer51
viewsAndroid does not find the local variable, but does not exist
Hello I’m running a debug on this code and at the end it gives this message in debug. Cannot find local variable 'Namespace' However I already searched all my code and I do not find this variable do…
-
0
votes2
answers2921
viewsConvert String to Integer on Android
Guys, I had already opened a question related to this subject but in java(Here), I could not solve and now in an android apk I have the same problem. I have a service with a thread running a server…
-
0
votes1
answer44
viewsWindows service sharing information with a Rest
Is it possible for a Windows Service to exchange information with a Web Service Rest? If so, is that good practice or not? Why the question? This is what I need to do. When a flag in the bank is…
-
0
votes1
answer659
viewsHow to finish an Activity from another class?
I need to close an Activity if it has opened, when a certain timer has finished, how do I do it ? because to use Finish I need context. I tried to cast a cast, but to no avail: if…
-
0
votes0
answers16
viewsFailed to Bounce to type?
The error occurs when I add the long type attribute, with the String type does not give error, I can insert in the database but gives error in the getvalue. Follows the code package…
-
0
votes1
answer894
viewsRegistration confirmation email with Firebase
I’m trying to use the method sendEmailVerification() of Firebase after registration of the user through the Login by e-mail. My problem is that I do not have the option to use this method after…
-
0
votes0
answers528
viewsError : Unable to instantiate Activity Componentinfo
Guys I need to create an App, I’m still new in android, and I’m with the following error, and I’m not finding the solution. I even searched here on the forum. Anyone know what it might be? Error:…
-
0
votes0
answers55
views -
0
votes1
answer1098
viewsAfter removing app:layout_behavior="@string/appbar_scrolling_view_behavior" unlink from top
When I remove the app:layout_behavior="@string/appbar_scrolling_view_behavior" from my screen solves the problem of the position of the setError. However cause another, after doing this it is no…
-
0
votes1
answer679
viewsNotification with Alarm manager
One of the ultimate goals of my application is to send notifications to the user at a certain time. My Alarm manager is working correctly now my problem is notifications that are not shown. The aim…
-
0
votes1
answer40
viewsUniversal Player Music with Web Services
Someone has already made an application with a music player coming from a webservices? I’ve been searching one and found the android-Universalmusicplayer from Google open source, but have a snippet…
androidasked 7 years, 1 month ago Hector Viera 1 -
0
votes1
answer134
viewsApp database does not delete
I have a problem. I created an app and it uses sqlite local database, the problem is the following, even if I cleaning the data and uninstalling the app, when I install it again, it recovers the old…
-
0
votes1
answer356
viewsMonitor Webview url
Hello! I am doing some tests on my android application and on a certain Activity I intend to put a webview. I would like to monitor the url of this webview, so when the user enters a predetermined…
-
0
votes1
answer60
viewsOptions menu with setOnItemClickListener
I have a listview, and with setOnItemClickListener and/or setOnItemLongClickListener do the deletion from the record. I’d like to know how to open a janela (like a modal, which opens the window and…
-
0
votes1
answer283
viewsProblems creating Child in Firebase
I’m trying to add dishes to my firebase database but I’m having some problems so far I don’t know why it doesn’t work. and makes this mistake: Process: meals.com.meals, PID: 1585…
-
0
votes1
answer900
viewsRead a CSV file
I was able to import the csv inside the cell, however when trying to read the file so that the application does the information inside csv it happens an error: java.io.Filenotfoundexception:…
-
0
votes1
answer77
viewsDo fragments work as an Activity?
I saw that to continue using a Navigation Drawer, I have to use Fragments, or I can use Activity ? or there is no difference between the two ?
-
0
votes1
answer196
viewsHow to save images from an android Imageview to a Mysql database using a java web service Rest
I have an android application with an Imageview that receives an image from the device, and I need to save it in a mysql database through a Java web service how could do this?
-
0
votes1
answer67
viewsProgress bar does not appear
I entered everything in the code, but there is no popup bar, I can’t find the error, can anyone help me? Follow the code: package com.example.fantin.cardapio; import android.app.AlertDialog; import…
-
0
votes0
answers43
viewsToast if a component gains focus
I want to display a Toast if the map view gains focus. What I’ve been able to do so far is: mapView.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void…
-
0
votes1
answer213
viewsError loading gallery or camera image
I’m having the following error while loading image gallery or smartphone camera. And I can’t find where this error because it only happens on some smartphone models. java.lang.Runtimeexception:…
-
0
votes1
answer848
viewsConvert . Jar to . Dex
Speak people! I decompiled an apk and it generated a class.dex. file I was able to turn that file into . jar and now I want to go back to .dex. How to do this?
-
0
votes1
answer791
viewsApp publishing suspension on Google Play
My application was suspended after an attempt to publish in an open test alpha environment. Question: is there any way to submit the application and the application is evaluated without generating…
-
0
votes1
answer210
viewsHow to put a layout for each tab bar action
The code shows an application with 2 tabs: List and register, I want to put a listview in one and a form in the other, but how do I make each one have its own xml? package…
-
0
votes1
answer1132
viewsHow do I grab each JSON object, add it to a list, and show it in Activity?
I have to develop an Ecommerce app and I have a question about lists. I’m getting a JSON with some product data from an API and I’m trying to take each object of that JSON, put it in a list and show…
-
0
votes1
answer843
viewsTransforming image into array of bytes
I have an image that is in a ImageView on Android and I need to convert the image to byte array to send to Mysql. How could I do?
-
0
votes2
answers117
viewsSave phrase in Textview when closing the app
I have many phrases that will be displayed in a Textview, while I’m clicking on the button will appear new phrases, I wonder if the phrase that is in the Indice 0, when you click it goes to Indice…
-
0
votes1
answer521
viewsHow do you make two apps use the same database in firebase?
good afternoon! I’m starting in the world of mobile development. I would like to develop two apps. Where the A app records and reads certain data and this data is viewed (read only) by the B app.…
-
0
votes0
answers32
viewsTransforming image into an array of bytes
ImageView imgProduto = (ImageView) findViewById(R.id.imgProduto); Bitmap bitmap = ((BitmapDrawable)imgProduto.getDrawable()).getBitmap(); ByteArrayOutputStream saida = new…
-
0
votes0
answers528
viewsmake Scrollview scroll down automatically
hello, I have a chat application but as it goes with messages the user is obliged to see tds messages typed from the first, he should scroll the bar until the end to see the last message, already…
-
0
votes0
answers68
viewsOpen an image received by an online database
I recover the image from the database as follows: btm = BitmapFactory.decodeByteArray(data, 0, data.length); imgView.setImageBitmap(btm); And then I put an action to click on the image appear the…