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
answers275
viewsHow to create a configuration screen in an Android app that appears only at the time of user registration?
I’m developing an app android with Firebase authentication, I need to put a screen in which the user will define a "nickname", but it must be immutable. So, this screen needs to appear right after…
-
0
votes1
answer632
viewsFloating Panel
The main screen of the registration of our system is quite extensive, therefore the user needs several Scrolls to reach the last line of registration. I put at the end of the layout the save, cancel…
androidasked 8 years, 7 months ago Reginaldo Rigo 3,638 -
0
votes0
answers30
viewsError when creating android project with Xamarin
I installed Xamarin in VS 2015, all normal. When I go create an Android project gives the error Value cannot be null. Parameter name: path1 To create for iphone he creates normally. What can it be?…
-
0
votes0
answers125
viewsFragment updates when I select data in Firebase
I have 3 fragments inside a display pager and, whenever my database changes, it restarts the fragment. Tabadapteradvertiser class package com.example.fernandosilveira.findpromotion.Adapter; /** *…
-
0
votes1
answer33
viewsErrors when trying to generate a signed apk, after facebook login is added
I added the facebooklogin app, works correctly. But when generating a signed apk, he complains, that there is no Portuguese translation of <string…
-
0
votes2
answers396
viewsNavigation Drawer
Good evening, I have a little problem I can’t solve. I used an Adapter to make a list of items, but the "item 1" is below the bar ( will understand looking at the photo ). But I do not know how to…
-
0
votes1
answer88
viewsSqlite no longer runs android - app
I have a problem in my app, the sqlite apparently is not running. All functions related to it are not working, in this application I use some external mysql based functions these are "ok". See below…
-
0
votes1
answer1511
viewsDevelopment app with voice interaction in android studio
I’m developing an app where the user will communicate with the app by voice, and as I am novice do not know what I should use, I would like to know which is the best api or library? I am using…
-
0
votes1
answer231
viewsHow to create a Cardview like Google Play
Good morning, I’m looking to create a layout like Google Play, but I’m not sure how to design it. Could help me? https://i.stack.Imgur.com/Xw2wt.jpg Link to the XML code…
-
0
votes1
answer177
viewsAndroid Studio Scrollview - Is there any way to modify the size via code?
The question is this... I have a Vertical Scrollview with 20 buttons positioned in 5x2 view, when I use the scroll I see the other 10 buttons that are hidden, but these buttons are invisible if I do…
-
0
votes1
answer70
viewsjava.lang.Unsupportedoperationexception: Can’t Convert to Dimension: type=0x12
<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" …
-
0
votes2
answers339
viewsSwipe Refresh in Textview
I wonder if there is any way to implement a refresh Swipe in android studio to update only a textview when triggering? I’m using android studio, Activity has only a two text view at the top static…
-
0
votes1
answer156
viewsFetch an item in the http json Object
Well I am "beginner" on android. And in my project, I’m getting from http reponse (with the GET method) a string for Jsonobject. "{ "status":{ "d3": { "stats" : false }, "a1": { "stats" : false } }…
-
0
votes1
answer46
viewsAndroid and Stream Java 8
Gentlemen I made a simple code to filter a list by passing the id and the goal would be to return an object. To make use of the stream configured the libs annimon:stream and retrolamba, I would like…
-
0
votes2
answers100
viewsScroolview passing the Toolbar
I’m trying to create a registration screen with a Scroll, with a Scroll. However Scroll is overwriting the Toolbar. I tried to put the attribute…
-
0
votes1
answer112
viewsHow to hide final public Static in proguard?
I have the following class package br.com.app1.urls; public class Urlapp { public static final String URL_LOGAR ="url/login"; public static final String URL_CADASTRAR_INCIDENTES ="url/incidentes"; }…
-
0
votes1
answer163
viewsHow to return json_encode?
I need to return a select made in PHP. It is working normally, but when displaying the result it returns me an error at the end. I need to return one json_encode to the android recognize. Follow the…
-
0
votes0
answers118
viewsHow to call a class via a Menu
I have the following class below, where the side menu calls are, only what I want to do, if I implement all the menus in this class the project will get too big, and I wanted each menu to call a…
-
0
votes1
answer98
viewsError while recovering data from Firebase Latlng
I want to capture latitude and longitude of data that is in Firebase and add as markers in Google maps. I am receiving null error Object Reference on line 136>> String latitude =…
-
0
votes0
answers93
viewsIs it possible to use the SDK and NDK with Android Studio?
Good night! I have an app I made using the SDK. However, there was a need to use NDK in order to be able to use some ready-made functions already existing in C/C++. How does it work in this case? I…
-
0
votes2
answers68
viewsApp that every day of the week shows an Activity
I’m making an app, which when I go into it, it detects the date and it already shows the acitivity for that date, how do I do that? for example today 07/08 then it will show the Activity set to the…
-
0
votes0
answers73
viewsUpload files from Android
I made an application where I select a photo from the album and upload it to an imageView. Now I need to do a function to upload this same image to my FTP online. I’m seeing n examples and nothing…
-
0
votes1
answer29
viewsGet Timestamp from Sqlserver
I really wanted to get the TimeStamp from the Sqlserver database, but I’m not getting it, follow my example: Connection connUpdate = DriverManager.getConnection(ConnectionURL); PreparedStatement…
-
0
votes1
answer180
viewsAndroid Testing Instrumentals
When I start to elaborate the instrumental test for Mainactivity it gives error because it does not recognize this Class (Mainactivity), as it is possible to verify in the following image. I read in…
-
0
votes1
answer46
viewsImage sharing of a listview with Intent
Guys help me pfv, well it’s like this. I have a listview with several images and then when the user selects an image from the list in the app, this image is assigned to an ID in the case R.id.ivCar…
androidasked 8 years, 6 months ago Jadson Planzo 1 -
0
votes1
answer87
viewsSharedprefferences cleaning automatically
I have a class that manages sharedpreferrences, I realized that when I close the application and open again, the sharedprefferences settings are restored to the default. When in fact the value…
androidasked 8 years, 6 months ago Mateus Carvalho 1,494 -
0
votes1
answer106
viewsError in function Ordova and Angularjs
Below is the code I’m using. It’s the standard example of the Cordova connection check function. <script> angular.module("contato", []); angular.module("contato").controller("contatoCtrl",…
-
0
votes0
answers30
viewsI am unable to recover the id of a listview
Good evening, I created an xml with a Textview to insert in my Listview, because I want to make it custom.... But I’m not getting it back in my way that it is within the class Ragment? someone could…
-
0
votes1
answer384
viewsGradle project refresh failed - Cause: invalid stream header: FFFFFFFF
I created a new project in Android Studio. However, when opening, the following error appears: Error:Cause: invalid stream header: FFFFFFFF How can I resolve this situation?…
-
0
votes1
answer67
viewsYou can generate a . WAR in Android Studio
I am developing an application that needs to be generated in APK and . WAR; I wonder if there’s a way to do this in Android Studio, or I’ll have to develop two applications in different…
android android-studio software-engineering apk android-eclipseasked 7 years, 3 months ago Aderbal 119 -
0
votes1
answer43
viewsproblems with trying to get the order id
well I am trying to register an order, however I have two tables, order and ordering, and a screen where I fill all the information and click to complete. First the application makes an Insert in…
-
0
votes1
answer89
viewsdate problem
in my application when I make a request for sale, should inform the date of the order and the date of issue, the date of the order I pick up automatically, already the date of issue should be filled…
-
0
votes1
answer89
viewsHow do I disable the third and fourth Edittext if the first is not filled in?
I have three Edittext and need to check if the first Edittext is empty and if the second Edittext is also empty. If Yes I must disable the third Edittext. How can I do that?
-
0
votes2
answers374
viewsWhy am I getting the error : android.content.res.Resources$Notfoundexception: Resource ID #0x0
Can anyone explain to me what the mistake is in this code? I honestly don’t understand why I’m getting this mistake ! Java : public class Chose_curso extends AppCompatActivity { private TextView…
-
0
votes0
answers36
viewsHow to let app run on 2° plan?
I have an Activity and I want it running at 2°; plan, permanent time, I know it will waste Cellular battery but I need help . The code I have to implement is a webView this : new…
-
0
votes1
answer80
viewsAndroid: How to clear space between each entry in a Spinner?
I have a spinner where I intend to name the horoscopes. However, the name of horoscopes appears with a blank line separating each horoscope when I "open" the spinner. Something like this: -linha em…
-
0
votes1
answer805
viewsAndroid Studio Screen - Block Completely Touch
My question is the following, I have an Activity that finalizes an order and inserts the data of that request in the database and it takes a little time.... I wonder if there is any way to lock the…
-
0
votes1
answer141
viewsHow to cancel Edittext enter?
I wish the keyboard didn’t happen when the user touched enter. How can I do that?
-
0
votes1
answer244
viewsCall open Activity via Notification without losing the information
I’m having trouble calling an Activit via Notification, every time I press the notification Activity is loaded from scratch, losing the data that was in the one that was open.…
-
0
votes2
answers1080
viewsDoubts in the web service
personal found the following webservice tutorial: https://www.youtube.com/watch?v=0J87qN3B-dI seeing the tutorial I was a little confused about. 1- the web service must be made the part of the…
-
0
votes1
answer43
viewsWebservice for android app without using Tomcat
would like to know some alternative to Tomcat, for me to make a web service for my android application, where I have my local database want to synchronize this information through the webservice. If…
-
0
votes0
answers78
viewsKeep Adnroid connected to ESP8266 as access point
First of all all the code works perfectly on any phone that uses an android version prior to Lollipop. From it to the most recent is that the problem occurs. What happens is that my app connects…
-
0
votes0
answers178
viewsHow do I capture data from a stream (Song name, album cover, band name)?
How could I capture the metadata of an audio stream and put some data as the album cover, song name, and display it on my Activity.
-
0
votes0
answers622
viewsDisfigured layout in android Studio
Good night! I’m starting my study with Android Studio. I set up my layout but when I simulate it in the simulator of Android Studio, it appears all disfigured.…
-
0
votes1
answer1352
viewsHow to call the startActivity() method in an Adapter?
So I have a problem that redirect to another Activity at the click of the button, only within an Adapter class I can’t do anything, I can’t call startActivity(). public class ProdutoRecyclerAdapter…
androidasked 8 years, 6 months ago Fabrício Patrocínio 1 -
0
votes0
answers140
viewsHow to use Jobscheduler?
I’m with a project to make my Activity wake up every 12 hours and couldn’t find code that sure about Jobscheduler, someone can help me with the code ?
-
0
votes1
answer33
viewsHow to add Id to canvas on Android?
I need to add a circle across the canvas every time I click a button (identical behavior to Paint from Windows). But to move the circle clicked on the screen I need an Id. Does anyone have any idea…
-
0
votes0
answers34
viewsDo you want to customize the Videoview class of android?
I wonder if you have how to customize the controls of VideoView using the MediaController or another class that allows me to inflate a player layout.
androidasked 7 years, 3 months ago Anderson Santos 475 -
0
votes0
answers42
viewsClose Interstitial Ad programmatically
I wanted to close my Interstitial ad after 30 seconds in case the user doesn’t close manually. I tried to close by simulating the back button pressed, but it has no effect. public void onFinish() {…
androidasked 7 years, 3 months ago Igor Oliveira 1,110 -
0
votes0
answers29
viewsReset class
I have to check the consistency of some fields in my application, but I can’t get the process to stop so that the user enters the correct information. The way I put it, the error message is…
androidasked 8 years, 6 months ago Daniel Tibúrcio 21