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
answer2763
viewsHow to insert images in Android Studio from a drawable folder?
People would like to know if it is possible to upload an image from a drawable folder. For example, I have a Listview with several categories, when a category is selected I would like to see all the…
-
1
votes1
answer38
viewsValue conversion Date no sqlite Android error The method gettext() is Undefined for the type String
I am doing the insertion of a DATE type value in my project, for that I had to convert it, in my corresponding class, my Dt_reading tribute, is declared as string and in the database it is as Date.…
-
1
votes0
answers63
viewsGooglemap move camera from map to certain location
I added the map to Fragment, it is already appearing, I even added a random marker with the map starting on it. the problem is that now I am using the Geocoder. I put the address in edittext and it…
-
1
votes0
answers32
viewsInsert images and text into Parseadapter
I have an Android app, where I use the Parse server with 100 registered stores. I need to insert into an Adapter 3 text information and one image information. The text I could already insert, but I…
-
1
votes1
answer54
viewsHow to define a boolean value of a Radiogroup
Example: EditText etNome = (EditText) findViewById(R.id.etName); EditText etAge = (EditText) findViewById(R.id.etAge); RadioGroup rgClienteVivo = (RadioGroup) findViewById(R.id.rgClienteVivo); If I…
-
1
votes0
answers30
viewsUsing this rule, how do I delete all (Descriptions) from Listview
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_especialidades); Integer[] imgid={ R.drawable.ic_plus_white,…
-
1
votes0
answers30
viewsProblem to Debug
I was using the Android emulator to test my apps, but it is very slow, I started using my smartphone, but I realized that many times the application is not updated. To resolve I uninstall the…
-
1
votes1
answer115
viewsWith this rule, how do I view the point closer to my location
Button button = (Button) convertView.findViewById(R.id.buttonComoChegar); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String latitude =…
-
1
votes2
answers177
views -
1
votes1
answer471
viewsCompare geopoints with user geolocation
I’m using the Google Maps API v2 in the Android Studio and I took the base code that made it available and just implemented a few points on the map, using latitude and longitude of the points…
-
1
votes1
answer235
viewsChanging the project API
Error every time I switch from API 24 to API 15, API 16 or API 19.…
-
1
votes1
answer1233
viewsHow to adjust screen according to Android virtual keyboard?
I would like to know how to resize the screen according to the display or not of the Android Virtual keyboard, Evernote’s home screen style, that when the keyboard appears the image decreases and…
-
1
votes0
answers135
viewsIs there any framework for android?
I’d like to find a framework for Android similar to Bootstrap used in the layout web pages, is there any? Which is the most suitable?
-
1
votes1
answer108
viewsUse VB6 app on a smartwatch
It is possible to create an application for the smartwatch in which the application is already done in Visual Basic and has the BDA in SQL Server? The goal is for the user to be able to see the data…
-
1
votes2
answers344
viewsHow to put items in a Listview
The method add doesn’t show up, I’m new so I have no idea what it could be protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource…
-
1
votes0
answers42
viewsGet textview value through gridview/sql server
I have a single column gridview consisting of four textviews and I am loading values from an SQL Server database into it. How do I click on a grid line to show another field (associated with the…
-
1
votes0
answers32
viewsPrompt on android Lollipop with misaligned button
I have a problem in a prompt, on Android Kitkat (19) or previous version looks like this: But in Lollipop or newer versions it is misaligned: Follow the code of the Lieutenant who makes this code:…
-
1
votes1
answer117
viewsHow to pass an imageview that is in an Array List to another imageview in another Activity
Activity 1: public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { //Pega o item que foi selecionado. ItemPromo item = adapterListView.getItem(arg2); //Demostração…
androidasked 9 years ago lazaro campos 11 -
1
votes1
answer216
viewsError "Please configure your build for Vectordrawablecompat"
I created an application that uses the database and it is not running. When I open it shows the following message "The Beta Database app has stopped" So I went to see Logcat and he shows that the…
-
1
votes0
answers126
viewsError org.xmlpull.v1.Xmlpullparserexception: expected: START_TAG
Good night, you guys! I’m developing an android application that should connect with a c#webservice, but I’m having some problems connecting with my webservice. When I put the W3c webservice to test…
-
1
votes1
answer4355
viewsHow to chart a route using Google Maps?
I have a screen where Google Maps is and I want you to take the current position of the user and route automatically to the geolocation point that I will leave set "Fixed" in the code. How to do?…
-
1
votes1
answer41
viewsNot converting INTEGER to String
Good Afternoon, my application has the function of monitoring virtually a football game, and it contains a button that saves the name of the team and the number of goals that the team made... Only…
-
1
votes1
answer55
viewsAndroid consmindo web service Soap
I’m having trouble consuming a web service SOAP complex-type How could I submit this request, I am beginner in mobile development. <Autenticacao xsi:type="urn:Autenticacao"…
-
1
votes1
answer66
viewsHow to put a scroll inside tabHost (asbas) on Android?
I have a code that creates tabs on the screen as needed, the problem is that when I create a lot of tabs they get "squeezed" on the screen and cuts the rest on the tabs. I’m doing this all via Java,…
androidasked 9 years ago daniel12345smith 2,120 -
1
votes1
answer65
viewsHow to rebuild the XML of a Fragment layout when it is expanded?
I have a screen with a Fragment, that without being expanded, it just shows the user and password field and the sign up button, and I wanted that when I expanded it, fields like name, date of birth,…
-
1
votes1
answer1538
viewsValidate Login with Sqlite
I have a problem in the logging method, it is logging in with both the right login and password as with them wrong. When it logs in with wrong login the user id goes as 0 and if it logs with the…
-
1
votes1
answer210
viewsRetrieving texts typed in Edittext generated at runtime
In my project I have some Edittext being generated at runtime, the number of Edittext is variable. I need to retrieve the typed text and store it in different variables, then create a Json object…
-
1
votes1
answer187
viewsPositioning with imageView
I need to position the images in the layout, but I’m not sure how to position these images using Imageview on android. I would like the layout to look like the one in the image below, but it does…
-
1
votes2
answers2784
viewsCode to capture signature
I need to know how to capture a signature made by a person on an Android screen to put into a document (virtually a digital signature).
-
1
votes1
answer72
viewsHow to get Email after Login to Facebook using Spring for Android Sample?
I’m using the Spring for Android Sample framework. The facebookProfile.getEmail() method does not display any information, the other methods, facebookProfile.getId() and getName() work perfectly.…
-
1
votes0
answers369
viewsError writing to firebase: Can’t pass null for argument 'pathString' in Child()
I’m new to firebase and I’m making an app where I want to record two entities in one event. I want to record a user and a bakery, but I’m not getting it. The user records everything right, but at…
-
1
votes0
answers100
viewsUpload image using Android
I implemented the step to download the images on Android. It’s working wonderfully well. But now I need to do a method to upload an image to a php server. I thought of converting to Base64 and…
-
1
votes0
answers140
viewssetOnItemClickListener not working when clicking on a Listview line
I’m beginner in android development, and I came across a problem that I can’t solve. Well, I put a listview within a view_pager (content_main) which is included in activity_main. When I click on a…
-
1
votes0
answers68
viewsSafer form of connection between Android and Arduino
I am developing an application that communicates with Arduino (Uno). I used two modes to communicate so far, via USB (I used the usb-serial-for-android and Physicaloid libraries) and Bluetooth.…
-
1
votes1
answer589
viewsHow to translate java code?
In the Android application you can translate the xml string. How do I do this in the java code? In this code, for example: Toast.makeText(getApplicationContext(), "Carregando o aplicativo",…
-
1
votes1
answer185
viewsDoes any url open in webview?
I have my job: webView.setWebViewClient(new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if…
-
1
votes0
answers298
viewsUpdate Spinner items at runtime
I have a spinner that returns the saved cities in my comic book, when this city does not exist, I allow to register the same, and after registering and saving, I make to close the city registration…
-
1
votes0
answers61
viewsMultiple update commands separated by ";" (dot and comma) in Sqlite!
Problem I am trying to apply the following script/command to a version of my Sqlite database: UPDATE UF SET DATE_CREATE = DATE_UPDATE; UPDATE CIDADE SET DATE_CREATE = DATE_UPDATE; UPDATE CLIENTE SET…
-
1
votes0
answers122
viewsData is not inserted from android to mysql using Volley
I asked this question from link and the problem I was having was solved. But I still can’t enter data into the database. Connection.php <?php $mysql_hostname = "localhost"; $mysql_user = "root";…
-
1
votes1
answer486
viewsHow to get the Android version number?
I would like to know how to get the Android version number in which my application using Webview is running, to put in Useragent, as in the code below:…
-
1
votes0
answers26
viewsProblem to do to send a type Complex Soap
I’m making a method to update customer registration data, but when I go through this method I’m having trouble sending the object, someone has seen this problem? Follows the code: package…
-
1
votes2
answers3457
viewsHow to create a chat app with Firebase and Android?
I want to create a chat with Android and Firebase, all the tutorials I saw on the internet are not complete. I would like to know how to make a chat using these two tools. It does not need to look…
-
1
votes1
answer73
viewsInstant Run message on Androidstudio
I upgraded Androidstudio to 2.2.2 and the SDK to API 25, in build.gladle put targetSdkVersion 25. When asked to run the application (physical device) appeared the following message: What needs to be…
-
1
votes2
answers79
viewsToast is not displayed with GPS position
I am developing a very simple app, when the app runs it opens a TOAST with my GPS position. The app is running normally, but TOAST is not showing. What may be wrong ? Androidmanifest.xml <?xml…
androidasked 9 years ago Desenvolvedor 185 -
1
votes1
answer41
viewsChange Actionbar title in older versions
Hello I have four screens in my android app and I want in each screen the action bar has a different name. I tried to change the title using getActionBar().setTile(): But since I have API 9 as a…
-
1
votes1
answer24
viewsPictures don’t line up
I’m developing an app to absorb knowledge and I ended up with something a little strange, is the following the function of the app is to open a list of photos (parses an xml, picks up some photos…
androidasked 8 years ago Davi Moura 13 -
1
votes1
answer365
viewsUse of Actionbar Up Navigation Android - API23
I’m implementing an app that has a activity to load a map and another activity to list the places the user has selected on the map. How I’m working with API23, Toolbar was successfully aired on…
-
1
votes2
answers916
viewsLayout occupying the entire screen
I’m working on a project where I have a screen that contains some elements separated by different layout types. All these elements needed to be grouped within a single LinearLayout so that I could…
-
1
votes1
answer125
viewsJsonobjectrequest does not enter onResponse()
I’m doing a home automation project with Android and Arduino and I have this snippet of code in my class whose purpose is to consult the values of Webservice in Json. But every time I call this…
-
1
votes1
answer114
viewsPass CSV content to an Sqlite table
I have a CSV file with student records. I would like to upload these records to a table aluno in the Sqlite. How can I perform this operation?