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
answer412
viewsWhat is the error in DEBUG: java.net.socketExeption "socket Closed"?
Yesterday my study APP ran smoothly, I finished, I did BKP and I went home... Today opened and went straight to check everything... but, just like, I received this error in the debug console.....…
androidasked 7 years, 10 months ago Camila Yamamoto 1,302 -
0
votes1
answer107
viewscrash while cleaning memory app
I am porgramando for android for some 3 months, I’m still having some difficulties, I have an app that makes a requisicao(service) online using google firebase, and validates a date in string…
-
0
votes3
answers707
viewsFormatting dates for display and storage
In this Android app, I have a date field in the SQLITE database table, thus defined: String createTable = "CREATE TABLE " + TABLE_RUNS + " ( " + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +…
-
0
votes0
answers57
viewsservice does not start after wiping memory
Hello guys I am developing an application that needs a service to warn the user according to events at large times times + 24h... then everything is working, I open the application, the service…
-
0
votes1
answer514
viewsI can’t get a Textview to display the content in an Edittext!
I created an app where in its layout contains a Edittext and a Textview. The initial content of Textview is: "nameless". I would like the content of Textview was changed when I inserted something…
-
0
votes1
answer67
viewsDagger 2 does not generate components
Every time I try to give build in my project the following error occurs: Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.lang.NoSuchMethodError:…
-
0
votes4
answers148
viewsBackground of Imagebuttons
I have a ImageButton and when I click on it wanted the Background of him passing to another ImageButton. Have View v of the first ImageButton, and imgB6 is the ImageButton that I want to receive the…
-
0
votes1
answer143
viewsError using Long.parseLong to capture Edittext value for a LONG variable
I created an app that contains only one Activity. In this app there are 3 Edittexts and 1 Textview. I created 3 variables of the type long (l01, l02 e l03) to receive the value of the 3 Edittexts.…
-
0
votes1
answer3178
views"What eh"/"how to resolve" a "null Object Reference" error? What appears on the console?
When I try to use the code below, (what alias I managed to get with help from friends of the OS) an error appears on the line: spinner.setOnItemSelectedListener(this); With the following console…
-
0
votes0
answers161
viewsHelp to filter json file from firebase in the application
I’m building an application that’s just an information filter that’s in the json of the firebase database. My headache is being where I’m going to apply the search code! for now it’s like this:…
-
0
votes3
answers248
viewsHow to make an Array created within an Asynctask be global?
In my original version I populated my spinner from an array, placed in the strings.xml And to know which selection the user made used the following code code 1 @Override public void…
-
0
votes1
answer163
viewsError creating Google Maps Activity
When I create in my project a new -> Google -> Google Maps Activity he creates everything correctly. Then add the key to google_maps_api.xml. <string name="google_maps_key"…
-
0
votes1
answer533
viewsError after updating android studio
Error:Could not find com.google.android.gms:play-services-cast:9.6.1. Required by: android:app:unspecified Search in build.Gradle files How to fix this error? Gradle already has this play-services.…
-
0
votes2
answers877
viewsTextview is not displaying decimal numbers of a long type variable!
I created 3 Textviews and 2 variables of the type long. 2 of the Textviews will display the two long variables separately, while the last one displays the result of a split of the first (N01) long…
-
0
votes1
answer58
viewsHow to deal with Location services in fragments
I’m creating an app (Android) with two fragments, one with a list of addresses and the other with a map pointing to these addresses. Vertically, they are sliding tab and horizontal, they are side by…
-
0
votes1
answer119
viewsBest way to access Activity components - MVP
I am using the MVP standard in my Android project. In my mainactivity I have the following components: private Paciente paciente; private EditText nome, cpf, cpfTutor, telefone; private CheckBox…
-
0
votes1
answer252
viewsrecover item position in listview
when the person clicks on item A in the fragment categoria I would need to take it to an Activity. And when I click on item B take it to another Activity, so I can make the filters. Here the class…
-
0
votes0
answers139
viewsInsert horizontal scrolling in line chart in Mpchart Android
I’m using the library Android Mpchart (v3.0.1) to draw graphics on my Android app, however I wanted to make my chart scrollable on X-axis, this is my code: private void loadDadosGraficoLinha()…
-
0
votes3
answers99
viewsCustom Listview with Picasso
Good guys, I’ve done this topic~>Listview images and quantity - Android They gave me some tips and now I’m remaking him like they told me. I made a custom Adapter for listview. public class…
-
0
votes0
answers133
viewsConcept of implementing a Recyclerview
I am developing a native android application and I am in doubt how to best implement the following behavior: I have a Recyclerview that lists several items (obviously), however I want that when I…
-
0
votes1
answer136
viewsMediaplayer does not play existing sound file in Assets folder
How do I run the sound in the Assets folder in Android Studio? When the sound is in the raw folder runs normal, but I need to run in the Assets folder, to pass the name dynamically, below is the…
-
0
votes2
answers821
viewsError while trying to display a vector (SVG) imageView!
Good guys, in this app I intend to do a test inserting a vector image in the main Activity. I did the integration process all right, as you can see: But even having followed the entire tutorial, the…
android android-studio svg imageview android-resourcesasked 7 years, 9 months ago Boneco Sinforoso 817 -
0
votes1
answer275
viewsOpen clicked Listview item in a new Activity
I am creating a project, but I am not able to open the item listView. I am already inserting and editing, but I can only open the last created item. For example, I have 10 items in the list, but…
-
0
votes1
answer134
viewsBanner in IFRAME does not open new IOS and ANDROID Window
I have an application that in the footer I put an IFRAME that rotates the banners. It turns out that when you click it hangs and does not open the new window with the advertiser’s website. Where am…
-
0
votes1
answer471
viewsListview does not load all items
I’m using Listview in my project, it was duplicating the values, until I put the ELSE of this condition: if(convertView == null)... else... After this it stopped duplicating, but also stopped…
-
0
votes2
answers141
viewsRecyclerview does not roll fast
I have a RecyclerView that only rolls with your finger glued to the screen, if I make that quick move, to scroll enough items, it only rolls while the finger is on the screen, and then stops. I’ve…
-
0
votes0
answers1749
viewsError "The application may be Doing Too Much work on its main thread" Android
Good afternoon guys, I am in need of a help to better understand how to solve this error that appears in the end: I/Choreographer: Skipped 94 frames! The application may be doing too much work on…
-
0
votes0
answers24
viewsImplement onClickListener method in a Fragment
I am developing, in Android Studio, an application about music. In this application, I have two Fragments: Home Fragment and Genres Fragment. Inside Genres Fragment, I have 4 Imagebutton and I want…
-
0
votes1
answer421
viewsHow to implement different clicks for each item in Recyclerview?
I’m developing an app, and it has recyclerView conjugated with CardView. And all the information is stored within the app itself to be presented on recyclerView. One part of the structure is this:…
-
0
votes0
answers42
viewsError dependencies Gradle: all google.com.gms.Ibraries must use the Exact same version Specification (Mixing versions can lead to Runtime crashes)
I am trying to add a barcode reader to my application and am using this example as the basis: https://github.com/KingsMentor/MobileVisionBarcodeScanner The error appears whenever I arrive at step 2,…
-
0
votes1
answer214
viewsWhat is the best and safest way to identify a device in the webservice?
I am developing an APP (currently only Android - pure Java), it consumed a webservice made in PHP (using the mini Framework Silex). As we know today we have to protect everything to the fullest, so…
-
0
votes0
answers79
viewsDoubt of Firebase
How do I save the Log Snippet. and in firebase? or instead of logging into a way to save to firebase? in case this code takes the number of Childs in firebase and shows in log, I tried and could not…
-
0
votes0
answers101
viewsPull facebook profile image to a panel
package com.didasko.eduardo.tender; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import…
-
0
votes1
answer1016
viewsProblem running android app on Delphi
When trying to run an app in Delphi: [Paclient Error] Error: E2312 E: Firemonkey-Mapview-master Android Release Jsonmaps Androidmanifest.xml:39: error: Error Parsing XML: not well-Formed (invalid…
-
0
votes0
answers143
viewsHow to use onActivityResult in Activity main and secondary activitys.
I have the user Activity, and in it I call the camera using startActivityForResult, but when taking the photo, it goes to Main Activity. How can I call the camera and return to the same user…
-
0
votes1
answer81
viewsProblem with Recycleradpter Popupmenu
I’m having trouble with Popupmenu, when I click on imageButtom fails and gives the following error 02-14 15:27:26.531 11084-11092/? E/art: Failed sending reply to Debugger: Broken pipe 02-14…
-
0
votes1
answer105
viewsHow to use Data Binding with distinct layouts on Android?
I’m making a app Android that displays a list of addresses and a map with these addresses. Vertically, the two fragments appear on tabs inside a viewPager. /res/layout/activity_main.xml <layout…
-
0
votes2
answers536
viewsConcatenation of an arrayList into a listview?
I wonder if there’s a way to add "strings" to be exhibited in a listview so that I don’t have to be imposing conditions and more conditions and set again the "strings" already used: package…
-
0
votes1
answer499
viewsHow do I identify which current Fragment when using the back button of android?
Good morning guys, all right? I have the following problem: I enter the initial Fragment of the app and on this screen I have a Pagerview, when I change Fragment and come back using the BACK BUTTON…
-
0
votes1
answer83
views"Something Went Wrong" when creating project
I created an android Xamarin project - the xml is as it came, I have not written any line on anything yet, but I can’t see the design: com.google.gson.Jsonsyntaxexception:…
-
0
votes1
answer1116
viewsHow to write to a.json file
I have some files .json in assets. I am currently reading only in these files. Reading public String loadJSONFromAsset(String Ajson) { String json = null; try { InputStream is =…
-
0
votes1
answer1326
viewsInsert more items into an Android Listview
I am a beginner in Java/Android programming, and would like a help with adding items to a Listview. The app receives the first 5 records from a Json (Url), and adds in Listview, so far, all right.…
-
0
votes1
answer71
viewsError showing list with Arrayadapter
I’m not getting this list to be shown. I’m using a Custon Arrayadapter, but it’s not rolling. Thanks. Doing the debug, it says "Frame not availeble". Could someone give me a light? public class…
-
0
votes1
answer311
viewsFragment Transaction - Error commit already called
I have this method that checks the Fragment inflate in my view: private void startFragment(int code) { switch (code) { case 1: fragmentTransaction.replace(R.id.fragment, MesAnterior.newInstance(0));…
-
0
votes2
answers121
viewsAnimation when modifying Linearlayout height
I’m changing the height of a LinearLayout of WRAP_CONTENT for 0 (zero) and vice versa listening to the event onClick of a Button. I would like this change to occur gradually over a few milliseconds,…
-
0
votes0
answers230
viewsError when trying to add a Fragment to a project in android studio?
I created a project and did not put anything in it, the same is zeroed, only with that textView "Hello World". The problem appeared when I tried to add a Fragment (with a + 1 button) to the project:…
-
0
votes1
answer74
viewsProgramming Android Studio
Error in Second "public class", what can I do??? If anyone knows, please say. Thank you. package com.example.hsantos_98.artofthefire; import android.app.Fragment; import android.os.Bundle; import…
-
0
votes1
answer37
viewslimit publications Parse
Personal following to making an app where one posts photos would like to limit the publication to 10 posts per person and when the person tries to post more images give an error message someone…
-
0
votes1
answer392
viewssetOnClickListener Adapter on a Listview line object
My app has a Listview, in which you receive information from a Json (URL), and each line has an Imageview that when you click, the line information will be added as "Favorite". For this, I created…
-
0
votes1
answer694
viewsHow do I edit a Child in firebase?
In the case then I make a comment and recover, I wondered how to edit this Child,the comment carries more information as user uid photo and name... more not put here.…