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
answers11
viewsAndroid App Commercial Guide, banner before companies
I have a business guide app, similar to James and Google Maps, I use a Recycler to display companies as soon as the city is selected. And there are also buttons on Toolbar where you select the…
-
0
votes1
answer26
viewsError starting Project with React Native
when running the npx command React-Native init App The following error occurs I do not know what is happening, I installed everything right but appears this error.…
-
0
votes0
answers12
viewsTake variable from a java file and display inside onCreate
I’m trying to display a value in a Toast which is in a string, in another java file, only the error onCreate does not allow the value is undegistenting someone take a look at me Mainactivity.java…
-
0
votes1
answer22
viewsHow to detect auto if the device is horizontal in java
I want to do a script on Java to detect if the device is horizontal or vertical, with if Else, want to be horizontal automatically hide the navigation bar of the device in…
-
0
votes0
answers16
viewsVideoview switches to a new Activity Android Studio
Hello. I’m creating an app that in the first Activity shows an introductory video and I wanted when the video ends the next Activity to start automatically. How could I do that? Thank you.
-
0
votes1
answer163
viewsSTART_TAG error {http://schemas.xmlsoap.org/soap/envelope/}
When accessing a webservice made in php, on android presents me the following error: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>@1:7 in…
-
0
votes1
answer30
viewsHow to run a class code in Android Studio when you don’t have an Activity?
I’m trying to learn Kotlin, but I want to test certain algorithms and I can’t run a class because Android Studio can’t find Main Default. Doesn’t have a way to run a class at the Android Studio…
-
0
votes1
answer16
viewsHow do I popular the user, and use their data to popular the View?
MVP is something new for me and I’ve been having some difficulties. I would like to know, how I should create a class to receive the data of my logged user from the Firebase database to popular my…
-
0
votes0
answers44
viewsProblem with spinner selection
I have been running a project and found the following problem(s): endAllActiveAnimators on 0xd0f0b880 (Dropdownlistview) with Handle 0xdd169490 I don’t know what you mean, can someone help me? Here…
-
0
votes0
answers16
viewsClick button on one Fragment and go to another Fragment
Good morning!! I got a problem. on a button with click function I use the code: Fragmentmanager fragmentManager = getActvity(). getFragmentManager(); FragmentTransaction fragmentTransaction =…
-
0
votes1
answer81
viewsInflate Layout in a Service
In Cassso this code makes a floating window with a button to end the activity, so as I do now to inflate in it a layout, or another way to build a layout within the service. public class…
-
0
votes2
answers160
viewsHow do I resolve the distortion that occurs when I switch from Portrait to Landscape?
Normal view (Portrait) For the display mode it looks normal, as you can see, now when I put it in Landscape mode... I would like the background not to be distorted, as in the image above. For this I…
-
0
votes1
answer18
viewsHow to call a method from another Activity using checkbox?
I’m mounting a simulated app and want to call the questions that are in an Activity through another Activity, where have checkbox to select the theme. button.setOnClickListener(new…
android android-studio android-layout android-activity checkboxasked 3 years, 9 months ago Daniel Diniz Marques 26 -
0
votes2
answers115
viewsLimit decimal places
I’m making a simple program that generates two random numbers and asks the user how much is that number +,-,/,* for another number, and I want them to have decimal numbers as well, but when I use…
-
0
votes1
answer68
viewshow to make tap function in android notification
Hello, I have the following situation, is a chat, and the user receives a message.. I want that when the app is minimized it receives an alert... The alert part I’ve done and it’s working:…
-
0
votes1
answer1426
viewsHow to place button next to two text fields
I want to put the button next to Edit text, I’ve made several attempts with layout_toleftof and Weight layout but the button ends up disappearing, or is in the same place. My xml is like this:…
androidasked 7 years, 11 months ago Igor Oliveira 1,110 -
0
votes0
answers16
viewsmethods of other Ctivity
I’m developing a simulated proof app in it will have several categories of evidence and with checkbox to select which you want to do but I’m unable to call the metadata, appears only the first…
-
0
votes0
answers35
viewsIntent Kotlin receiving null value
I have the following Intent of an Activity: val intent = Intent(this, FormCadastroUsuario::class.java) intent.putExtra("email", email) startActivity(intent) And to receive in another Activity, I…
-
0
votes3
answers87
viewsIn the Kotlin language, how to access a public variable that is in one class, through another class?
WHAT I DID: I created a class in android studio and I did it using Kotlin, and within this class I created a "public" variable like string, asseguir: var variavel_de_tipo_public_string : String =…
-
0
votes0
answers35
viewsFlutter: Execution failed for task ':app:compileReleaseJavaWithJavac'
I’m trying to build an android app on Flutter and it returns me this error. I already updated the SDK, already checked the environment variables and nothing. Someone knows what I can do?…
-
0
votes0
answers5
viewsHow to run ellipsize="end" for two lines?
I have this Textview, but ellipsize doesn’t work. I’ve researched enough and I haven’t found a solution. <TextView android:id="@+id/nomeOperador" android:layout_width="200dp"…
androidasked 3 years, 4 months ago Martinho Capelo 1 -
0
votes0
answers12
viewsHow to insert text box over image.Svg in Xamarin. Forms?
I have an extension file SVG, which I will use as a structure for my layout, I was able to display the image using the extension Ffimageloading.Svg.Forms, I would like to insert on this image fields…
-
0
votes1
answer2642
viewsHow to display an entire variable in a textView and add +1 to it each time I click on a button present in the same Activity?
I would like textView to display the value of the variable I created in Mainactivity "int numero = 0". package genesysgeneration.a10; import android.support.v7.app.AppCompatActivity; import…
-
0
votes3
answers587
viewsAndroidstudio Onclicklistener() error
I don’t know how to fix the Onclicklistener() error in the java class below, it just has to fix it Here the full code to download: https://www.sendspace.com/file/4sgv14 Error: classe…
-
0
votes0
answers717
viewsProblem - Intent to install APK file - Android Nougat
I searched extensively and did not find the problem. While trying to install a file APK using a Intent in the Android Nougat, simply does not install and displays the following warning: "A problem…
-
0
votes1
answer57
viewsPass Volley api data to another screen
I have an application that gets given via api using Volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes3
answers128
viewsI would like a Textview to display the amount of Checkboxes that have been marked
I made several attempts, but I was not successful, here is the code of Mainactivity.java: package genesysgeneration.cbnumber; import android.support.v7.app.AppCompatActivity; import…
-
0
votes1
answer782
viewsHow to reference an xml button of another Activty?
This is the mistake: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.octupus.ramonteste/com.example.octupus.ramonteste.projetoEscolaAluno.MainActivity}:…
-
0
votes1
answer2260
viewsAndroid Open an app from another by link and with passing parameters
We are developing an App that will be a Store and will be responsible for the login and authentication of the user (a token will be generated every time the Store is opened and the user’s…
-
0
votes0
answers275
viewsReturn a method value (JSON Array)
Hello, I have a method that fetches the URL through JSON and wants to return this method value to mainActivity, to show. package com.example.fabio.domoticaa; import android.content.Intent; import…
-
0
votes0
answers29
viewsMethod not saving photo file
I’m making an application on Android, only I can’t save a photo file. btnFoto.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { // Intent de camera Intent…
-
0
votes1
answer174
viewsHow to assign values to variables through Checkboxes and from there create specific Textviews in another Activity
Guys, I would like to assign values to a variable according to the selection of a particular Checkbox in my project. In an example. If the first checkbox was selected, the following variable would…
-
0
votes1
answer77
viewsDisplay value from another screen
Hello I’m working with the following code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_conversor); String t =…
-
0
votes1
answer2042
viewsActivity not found
I deleted the MainActivity and created 2 Layouts. One by the name of activity_acessar and activity_menu. But when I run it displays the following message. Error running app: Default Activity not…
-
0
votes1
answer53
viewsManifest Merger failed with Multiple errors
I’m with Androidmanifest.xml accusing error. Other than that on line 17 you’re wrong: Top level element is not completed <action android:name="android.intent.action.MAIN" />…
-
0
votes0
answers325
viewsControl position change of a recyclerview through a progression
I’m trying to make a routine, where I control my item passage from my recyclerView by a progressBar, I mean, every time I change the item, this change has to be reflected in the Ogress. The problem…
-
0
votes0
answers36
viewsNo Output with Datainputstream
I am trying to build an application that works as a terminal emulator, but simply no output is generated. Here’s my code, it might be useful: package me.craftygaming.TermDroid; import…
-
0
votes1
answer199
viewsProblem when receiving, via Intent, a file shared by another app
I’m having trouble opening the shared file via Intent. I can properly receive the path to the file but mine app closes the execution. And unfortunately I’m not able to capture the error generated.…
-
0
votes1
answer428
viewsApp hangs when giving create in Datamodule
I am creating an Android application in delphiXE7 and everything works until I will create dynamically the datamodule. Then it hangs and does not come back. procedure TForm1.Btn1Click(Sender:…
-
0
votes2
answers1674
viewsAndroid keyboard does not override buttons
On one of the screens of my application: When I open the keyboard it overwrites the finished button: Screen that original Food Registry Already on this other application screen this does not happen…
-
0
votes2
answers446
viewsIntent. Filter program that appears in the "open with" option
Today the option to "open with" lists several programs that are installed on mobile and including my app. I would like my app to be an option only for the files of the extension it works, in this…
-
0
votes0
answers95
viewsBroadcastreceiver is not called on some devices
I am creating alarms with Alarmmanager, in some devices the alarm works, but in others like ASUS and XIAOMI does not work, not even In the receiver class, someone has already gone through this?…
androidasked 7 years, 10 months ago Paulo Henrique 1 -
0
votes0
answers313
viewsPassing parameters from an Activity to a calculation class
I would like you to help me in a situation that I am doing in my project, but that somehow the app to by clicking on the calculate button. I’ll give you a simple example to get a sense of more or…
-
0
votes1
answer126
viewsHow to add an icon showing that that item has already been read, being saved the preferences using Sharedpreferences?
This is a part of the app’s home menu: Home Screen The image below represents the initial screen of the application, which has the buttons "how to use" and "Introduction to dynamics", for the user…
androidasked 7 years, 10 months ago Tony Álaffe 92 -
0
votes1
answer115
viewsHow to pass a certain content contained in a direct first Activity to a third Activity?
People would like to know how to pass the contents of a plaintext that is in Mainactivity directly to Main3activity, without having to import to Main2activity for later to Main3activity. User passes…
-
0
votes1
answer677
viewsSelect Tab in Tablayout(android)
Next, I’m making an app and use tablayout on several screens. Except that in all this problem happens. When I use Swipe to select the fragment on the side, the fragment changes, but the selected tab…
-
0
votes2
answers198
viewsAutomatically update data obtained from json api - Volley
Hello guys I have the following problem I have an application that uses Volley to get certain data json through api up to there all right it works properly but the problem is Volley cache that does…
-
0
votes1
answer98
viewsMediaplayer and Thread
Good night, I have an Activity in which I play a bell x times, for t time, and for that I use a Mediaplayer inside a Thread, as below: public void tocarSino(final int repeticao, final long…
-
0
votes2
answers4385
viewsHow to set a Textview with a DOUBLE variable?
I’m trying to set the variable txtMedia1 with the value of the variable media1. I did so, but the Android Studio indicates that I have to change txtMedia1 to double or media1 for TextView: package…
-
0
votes1
answer107
viewsHow do I work with LONG "data" inserted in an editText?
I tried to pass numbers that would be inserted in 3 editTexts for 3 variables long that I created: l01, l02, l03. To that way work them and make a very simple account. Mainactivity.java: package…