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
answer41
views -
1
votes1
answer272
viewsI can’t get some strings from the strings.xml
I want to get a String that is in the strings.xml file, but always gives the following error: java.lang.RuntimeException: Unable to instantiate activity…
-
1
votes1
answer57
viewsApplication closing when consuming json
What should I do to fix this crash? My code: public class Tela1 extends AppCompatActivity { TextView textView2; String[] objetos = new String[0]; String url1 =…
-
1
votes1
answer309
viewsParsing JSON with Volley android
I have this JSON on the server side: [{"idreg":"271896", "code":"USD", "codein":"BRL", "name":"D\u00f3lar Comercial", "high":"3.2652", "pctChange":"-0.939", "open":"0", "bid":"3.2492",…
-
1
votes1
answer112
viewsHow to change the state of a Togglebutton in java?
I created this Drawable to define how Background of the 6 Togglebutton. How do I make the Togglebutton toggle between them without being clicked? <selector…
-
1
votes1
answer214
viewsReturn error of Listview object list
Here’s my main class: public class MainActivity extends AppCompatActivity { public ListView lista; ArrayAdapter<Aluno> adapter; @Override protected void onCreate(Bundle savedInstanceState) {…
-
1
votes0
answers24
viewsError sending data via ksoap2 on the jboss webservice
So personal I am not able to send the data via ksoap2 on android. Appears the following error: I honestly did not understand what the problem, so I turned to the stack, because the namespace is…
-
1
votes1
answer597
viewsCollect data from Facebook SDK User
I have the following code to log into Facebook: final FacebookCallback facebookCallback = new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) {…
-
1
votes1
answer82
viewsHow to play a layout component up?
Good afternoon I’m making an app for studies, and I’m encountering a small problem is not enough to be a bug, but come on, this is my home screen: As it is in the print below, I have a relative…
-
1
votes0
answers216
viewsGoogle Maps does not work on mobile
I have this HTML code below and it used to work, suddenly the map does not load anymore and I can not solve the problem. Could someone help me? I test on Firefox and Android Google Chrome.…
-
1
votes2
answers1547
viewsInsert data from an array into a mysql database
I get a json from an android application. This json is a java class that has been converted with Gson from java to a string. After the php web server receives this json I convert it to an array. I…
-
1
votes1
answer107
viewsHow do I send data to a socket server that has already been started within an Asynctask?
I was able to connect to the server through the application, receive and show the data sent by it. There is also no problem sending messages to the server. The problem is: once the connection is…
-
1
votes0
answers77
viewsDoubt about access control
I’m looking to make an application Android which achieves CRUD in a database MYSQL. I’ve researched that the way to do this is by using a Webservice. I’m new in this area but I’ve done a simple via…
-
1
votes0
answers27
viewsUse my program to open a particular file
I’m trying to make my app an option (or default) when opening a file. This is the manifest menu: <?xml version="1.0" encoding="utf-8"?> <uses-permission…
-
1
votes1
answer79
viewsPicture arrives null on the server
I am sending data using the retrofit, I observe all the request until the end and I get the code 200 more on the server side the image arrives null, as I am sending the image and text arrives…
-
1
votes0
answers58
viewsHelp to Communicate between a Server and an Android App
I’m developing an android app based on: Add/Send DATE to Server Collect/Receive Server DATE Send and transmit location information( Geolocation ) Sharing of Profiles I was suggested to Use JSON…
-
1
votes0
answers24
viewsReceive information shared by Google Maps
I have an application where you can share links! I do this by taking information from meta og with Jsoup: final Document doc = Jsoup.connect(url).get(); final Elements itens =…
-
1
votes1
answer111
viewsCalculate sql table in android
I have the following sqlite database and works well: db=openOrCreateDatabase("BaseDadosDB", Context.MODE_PRIVATE, null); db.execSQL("CREATE TABLE IF NOT EXISTS tabeladados(data date,total…
-
1
votes1
answer169
viewsPopular Listview with Retrofit2 Data
I’m trying to pupate a listview with information I get from WS through Retrofit2. But error somewhere and nothing is presented, neither error nor listview. can give me a strength for kindness.…
-
1
votes1
answer556
viewsHow to add content to a textview without having to copy what’s already in it?
Guys, here’s the deal. I would like to know how to add a paragraph or a single word to a textview that already contains content without necessarily copying what it already has in it. I’d like you to…
-
1
votes1
answer1752
viewsNetworkerror: 400 Bad Request
When sending a post I received by retrofit in the log the message Networkerror: 400 Bad Request. In Development Environment no error occurs, data is synchronized from device to Server ( Tomcat )…
-
1
votes2
answers142
viewsSpacing in a Gridview
I have in my android project a gridview that I define as follows: I created an XML Adapter, so gridview cuts some letters (icons), as it represents the image below. As I just started developing, I…
-
1
votes1
answer648
viewsExtract data from JSON within JSON that they see from a Web Service serving an Android APP
Good night, guys, how are you? I am developing an Android APP and it consumes data from a webservice, but I’m having trouble bringing some information to the APP. This is the JSON I return to my…
-
1
votes1
answer1474
viewsRecover Data from Firebase
With the code below I recover data from a post, ok, with FirebaseRecyclerAdapter I retrieve the comments that are on recyclerview, okay, but the comment appears in all posts, what I want, is to…
-
1
votes1
answer598
viewsOpening an Activity and returning saving the main state
After many researches I came across the following situation: I’m on my own Main Activity and would like to open another Activity(passing parameters to Activity2[In case a meditate]), after this use…
-
1
votes0
answers56
viewsContent from an in-app website on Intel XDK
I’m developing an application on Intel XDK where I need to publish the site content in the app. That is, when I update the site, the content in the application is also updated. Remembering that the…
-
1
votes1
answer197
viewsPreferenceactivity#findPreference() returns null
someone could help with the error below? I’m beginner with android and could not identify where I missed. Thank you! Log Bug 01-22 11:45:32.722 13037-13037/com.example.android.sunshine.app…
-
1
votes0
answers161
viewsMy app does not run on android Lollipop
At a certain point in my app, payment occurs with pagseguro, and for this I open a page in a webview, responsible for this service (passing the card data by GET). When the page finishes being…
-
1
votes0
answers48
viewsPushbots notification app crash
Hello, i use, Cordova + pushbots + framework7 project, when i send a push notification for android 4.2.2, if application still background my app crash... in version above 5.0, this Works fine....…
-
1
votes0
answers130
viewsHow to Add Image of a Parseuser Arraylist to a Parseobject Adapter
Well, I’m trying to add a user image to my Listview for when publishing an item it puche the user image of the Parse in the Imageview, but I can’t because ArrayAdapter of Fragment where is the…
androidasked 7 years, 10 months ago Alekssander Augusto -
1
votes2
answers1670
viewsHow to update recyclerView after updating data via dialog
My app works more or less like this. Inside a fragment I have a Recyclerview composed of cardviews, fed by a database. On each card, there is an edit button (imageView) that opens a dialog…
-
1
votes0
answers926
viewsFirebase database or API Rest PHP Mysql. Which is the best choice and which Google recommends
I graduated college at the end of the year. I did Systems Analysis and Development, and there I had programming class for mobile devices, more specifically for Android. In class the teacher taught…
-
1
votes2
answers117
viewsHow to identify the click on a drawableLeft
I got the following EditText: <EditText android:id="@+id/mPasswordTxt" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal"…
-
1
votes1
answer148
viewsHow to send Json to another Activity?
How to send Json to another Activity? public class SolicitaDados extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... urls){ return…
-
1
votes2
answers86
viewsCompare Background with Drawable
I have a problem comparing the Background of a ImageButton with a drawable IB6 is my ImageButton and wanted to see if you had the drawable def, when it comes to this if application to and error in…
-
1
votes1
answer241
viewsHow to modify zxing default screen
Good night, I integrated zxing to my app using this tutorial: https://android-coffee.com/tutorial-how-to-create-barcode-reader-app-in-android-studio-1-4/ It worked, but for it to work asked me to…
-
1
votes1
answer216
viewsHow to popular a Spinner from data returned from a URL?
I have the following code that works well, but with an example of array: @Override protected Boolean doInBackground(String...urls) { try { Log.e("****** MESSAGE ******", " Json Object = " +…
-
1
votes2
answers555
viewsBarcodedetector does not detect barcode and camera does not focus (I have already put the permissions in the manifest)
Good morning, I’m trying to integrate a barcode reader into my application but I’m not getting the camera to detect the barcode, or Qrcode or anything. I also noticed that the camera does not focus,…
-
1
votes2
answers832
viewsPress the button of a screen that is a Fragment and go to another Fragment. How do you do?
I have a class like Fragment and would like when the user clicks the button to go to another screen that is Fragment.. how can I do this? public class AlertaFragment extends Fragment { @Override…
-
1
votes1
answer368
viewsGrey screen in videos
I’m playing videos on android (versions above 5 only) using a webview along with the tag <video> of html. The video plays perfectly and triggers all events correctly, but every time a video…
-
1
votes1
answer298
viewsError while trying generates Ionic apk v2
Commando: ionic build android --prod Environment variables: ANDROID_HOME C:\Android\sdk CLASSPATH .;%JAVA_HOME% JAVA_HOME C:\Program Files (x86)\Java\jdk1.8.0_121 Path ;%JAVA_HOME%\bin Error: Error:…
-
1
votes0
answers49
viewsTransparent surfaceview on top of Toolbar
I’m drawing a graph, and for that I’m using a Class that extends from SurfaceView. The screen where it will be drawn has a background image. So that the SurfaceView be transparent, I did the…
androidasked 7 years, 9 months ago Thiago Luiz Domacoski 7,310 -
1
votes2
answers1303
viewsPosition text in Textviews and Edittexts with an image as background?
I created a simple app that has only one Textview and a Edittext: As you can see changed the background of both, so far no problem: The problem appears when I insert texts, because they are poorly…
-
1
votes2
answers637
viewsHow to place a texView inside a Circle
Gentlemen I would like to leave richer a textView leaving it within a Circle, is a Product List with the name of the product and the value and this that would be within the circle, I tried to make a…
-
1
votes1
answer78
viewsNullpointerexception when trying to mount an Activity to show a video
My code: public class VideoActivity3 extends Activity { public final static String LOCATION3 = "com.compdigitec.VideoActivity3.location3"; public final static String mFilePath = ""; @Override…
-
1
votes1
answer112
viewsError when viewing or adding SQL data
Good afternoon guys, I was trying to make an sql to put the score obtained in a game I’m developing, but when I put to save the score, or even see the score it gives error, I will put an asterisk on…
-
1
votes1
answer782
viewsHow, using java, to bold certain parts of a Textview?
I would like to know how to make a certain part of a text that will be displayed in a TEXTVIEW bold: I would like the text displayed to look like this: Total value => R$ 1100. Activity: package…
-
1
votes1
answer74
viewsEquivalent to setOnItemLongClickListener in Ionic 2
I created a function in which when the user gives a click simple in item, shows a Toast, an alert, on the screen with the name of this item: Function in my file .ts: itemSelected(item: string) {…
-
1
votes1
answer400
viewsRuntime Permissions Android
I am having some difficulty in being able to request the permissions in Runtime, only the permissions accepting dialog of one of the two required permissions is shown when I click the button.…
-
1
votes1
answer221
viewsimage size in kb for upload
I am making an application for android, and have to work with download and upload photos... I am already resizing photos larger than 1000x1000px to this same size... and using the method…