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
answers1208
viewsHow to save variables to be used in the next . Java?
My main (parser) code is this way: public class pFormasDePagamento { public static void parseXML(String xml) throws ParserConfigurationException, SAXException, IOException { InputSource is = new…
-
0
votes0
answers75
viewsCrossword running on different devices
What’s the best way to cross-word correctly on different devices? I made the squares individually being each one textview with a background, because these squares vary in the color of your edges, in…
-
0
votes0
answers77
viewsAndroid - Windowmanager
See the layout above with a default home screen of a mobile phone. See that I highlighted the default screen of the phone with a text (Shadow Effect) and two notifications android (view1 and view2).…
-
0
votes0
answers107
viewsPlace an arrow in viewPager indicating to pass the photo
I’m using this viewPager to make a kind of gallery <android.support.v4.view.ViewPager android:id="@+id/galeria" android:layout_width="match_parent" android:layout_height="match_parent"…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer774
viewsDownload zipalign for Mac
Hello! I just signed a test app on Android Studio and would like to upload it to Google Play. I did some research and I saw that zipalign facilitates the process of importing the APK, however, I…
android android-studio download zip-file digital-signatureasked 9 years, 9 months ago Luiz Henrique Ugliano 651 -
0
votes1
answer77
viewsDoubt/Problem With Webservice on Android
The return on my Webservice is like this: "Hello! I’m not interested in your service. My name is Administrator B. Please contact me at (s) phone(s) (12) 3456-7891; (13) 21321-3213. My email is…
-
0
votes0
answers47
viewsaction menu with radio button
I’m having problems with this code, I want the radio Buttons to appear for choice in a popup after pressing in parameters, only that’s not happening this, @Override public void…
-
0
votes1
answer332
viewsSwipe using the Appium tool
I’m learning about a new mobile automated testing tool called Appium, and one of the tests I created was: @Test public void Swipe () throws InterruptedException{ Thread.sleep(4000);…
-
0
votes1
answer274
viewsHow to save notification?
I am in a situation that I need to save the notification even if it is open, at the time of reading the notification I check if it has connection, if it has it opens normally, if it does not have it…
-
0
votes1
answer336
viewsToast text out of alignment
I am working on a small project for the college and came across this when using a Toast: I have no idea what made Toast look like this. Has anyone experienced a similar problem? Edition: This is the…
androidasked 10 years, 1 month ago Renan Lazarotto 1,025 -
0
votes0
answers81
viewsHow to exchange the value of variables between Activitys?
I have three classes : Main1 Main2 Main3 Now inside the Main1 have a float: static float f = 3.5; And inside the Main2 have a TextView: public static TextView tv; And in the Main3 want to put :…
-
0
votes1
answer1256
viewsError trying to connect to a local Mysql database
I am having problems trying to access a local Mysql database, I am following this tutorial. My file MysqlConnect.java: package br.com.alerts; import java.sql.Connection; import…
-
0
votes1
answer122
viewsAndroid app closes when switching from Landscape to Portrait
I created a simple android app, with Jquerymobile, no big deal, just pages and listview. If it starts in Landscape mode, it will only work like this, if the user changes the Smartphone position, the…
-
0
votes1
answer113
viewsError trying to use Mediaplayer
I tried to elaborate a Button that when pressed performs a sound, but I know how to import that sound and I don’t know how to locate the Raw folder, when I try to use that line: mpSongButtons =…
-
0
votes2
answers5338
viewsAndroid connection to Mysql
Well, I got a free hosting from the site Hostinger Ai configurei o Mysql certinho la, but would like to know if it is possible for my android application to connect to this database? and if yes how…
-
0
votes1
answer586
viewsHow to add postgres library to eclipse/android
I’m making an android app, which I will connect directly to a postgres bank on a server. However, I don’t know how to add the postgres jar, if I add it in Java Build Path in the project’s properties…
-
0
votes1
answer538
viewsHow to compose a Linear Layout in Activity using JAVA only
In my application has a vertical linear layout with id: @+id/items In this layout for each item contained in a list, I would like to create another horizontal Linear Layout called, Row containing 2…
-
0
votes1
answer94
viewsHow to make three buttons work as radio button?
I wonder how to make three buttons work as "radio button". By clicking the button it changes color and executes command, by clicking another button changes color and another normal turn.…
-
0
votes2
answers162
viewsError trying to insert values in Mysql
Good person, I was trying to make an application that inserts products and allows you to view it on mobile through database, but when I try to create the product the application closes and it…
-
0
votes1
answer704
viewsApplication displaying this error: Error Parsing data org.json.Jsonexception
I was trying to make an application for android with connection to Mysql through webservice and has been giving some problems, so I could solve, but this appeared, when I try to see the products…
-
0
votes0
answers371
viewsUse bluetooth connection in two activities
I’m creating a small app with two activities, the first is a screen with only a 'connect' button, after connected to the bluetooth module it would change to the second screen (Second Activity) where…
-
0
votes1
answer569
viewsAndroid: Error Running Application
I noticed that using the shortcut Alt+Insert and selecting for him to give me the constructors, he tries to create a constructor with each property private (cManager and mTextView). I remember that…
-
0
votes1
answer1550
viewsLoad server image in Imageview
I’m getting the bank information via WebService, and take the image path that’s on the server. This image I have to click on a ListView, for that I make a AssyncTask inside my Adapter, but he does…
-
0
votes0
answers59
viewsTransparent activity with touch
I put an image in a activity which I left transparent, but I need the movement when touching the cell phone screen to happen because it seems that the activity stops the action of touch.…
androidasked 9 years, 9 months ago Diego Kappaun 524 -
0
votes1
answer357
views"stretch" line on tablelayout
Well, I’m coding android, and building layouts for my app. My problem: I can’t make my app layout fit vertically to different devices. my xml code: ``` <TableRow android:id="@+id/tableRow2"…
-
0
votes1
answer630
viewsSelecting a particular item from a spinner
What method makes a spinner to be with a selected item, e.g.: I have the items: 1 2 3 and 4 and I want it to start with the '3' selected
androidasked 9 years, 9 months ago João Filho Freire Lopes 107 -
0
votes1
answer94
viewsAccessing different Webservices on Android
I have an app that I am developing for my company, that the first part, is to login, going through the webservices, after login, it automatically makes another connection to the webservice that…
-
0
votes3
answers396
viewsListview items losing color when using the scroll bar
I’m using baseAdapter: @Override public View getView(int posicao, View convertview, ViewGroup parent) { View view = convertview; ViewHolder holder = null; if (view == null) { holder = new…
-
0
votes1
answer215
viewsProblem with Arraylist values passed by Intent
I am having trouble recovering all values of selected items from a list that are passed by Intent, as the result shows the last product from the list. I’ve tried everything, but I don’t understand…
-
0
votes1
answer595
viewsHow to treat a high resolution image
I am facing a problem when trying to send a high resolution image to a WS. I capture the image,pick up her path and send as a parameter to another Activity in which send to WS. Before sending the…
-
0
votes1
answer197
viewsCould not send email - java.lang.Nullpointerexception Android
I’m following this tutorial http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android after I ran on my Android phone it generated this error on Logcat; 02-27…
-
0
votes1
answer50
viewsExecute method on all Activitys according to a range
I need to run a method every 20 seconds, this method has a condition, if it is false it will send a Alertdialog. But this method should be run independent of the Activity that is in the foreground,…
androidasked 9 years, 9 months ago felipe.rce 1,969 -
0
votes2
answers758
viewsUpdate layout from a button
On the main screen of my app there are two buttons, an arrow to the right and another to the left symbolizing the previous and next months, in them I call an index to reload the page with the values…
-
0
votes1
answer535
viewsEdittext selected at start Activity
I have an Edittext and always when starting the APP it is "selected" it disturbs me a little (with the pointer) how to solve it ?
-
0
votes2
answers1481
viewsProjects do not appear in Eclipse Package Explorer
My Android projects do not appear in Eclipse Package Explorer. What must I do to make them appear?
-
0
votes0
answers88
viewsListview search with custom itemView
I have a listView which has two text fields (nome and local) which are removed from an object Empresa. The examples spread on the Internet only show search in listViews normal with only one string.…
-
0
votes1
answer81
viewsWhen deleting a character, how do I execute something?
I am using this method to delete the last character typed in a TextView: texto = txtTexto.getText().toString(); int length = texto.length(); txtTexto.setText(texto.substring(0, length - 1)); But…
-
0
votes1
answer139
viewsCapture Webview image and display in Imagebutton
I need to capture a screenshot webView.capturePicture click button and display in a ImageButton, how to do this?
-
0
votes1
answer237
viewsError while using Dateformat.Parse
I take the date and call the changeFormatDataTra private void makeJsonObjReq(){ showProgressDialog(); int id = ((AppController) this.getApplication()).getID(); JsonObjectRequest jsonObjReq = new…
-
0
votes3
answers468
viewsHow to pass arguments for running an android app?
I would like to know how to pass arguments for running an android app, or even create a configuration file to be consulted when launching the app.
-
0
votes1
answer177
viewsproblem with spacing and starting with number
I have an application where there is a screen with an Edittext and a button. when I press the button grabbed the Edittext String game in a column of the Database in the table tables, and then soon…
-
0
votes1
answer125
viewsUse of bitmap images in an application
As a trial for the development of a more advanced application, I was trying to make an application that consisted of a button and a component imageView, in such a way that when the imageView a type…
-
0
votes0
answers24
viewsSlow map by pressing the back button
In an application that the initial fragment is Supportmapfragment, when I change Fragment and end up pressing the back button it returns to the fragment of the map, it is very slow the movement of…
-
0
votes2
answers127
viewsClick button performs an action second click on the same button performs different action
I need to know how a first click on the button performs an action, a second click on the same button performs a different action Would that be possible? I tried to: But it didn’t work out so well.…
-
0
votes1
answer175
viewsProblem retrieving item clicked on Listactivity and return it to previous Activity
I have an Activity where I call another Activity using the startActivityForResult. In the Activity that was called, I have a list filled by products already registered. In this list, I needed to,…
-
0
votes1
answer639
viewsHow to remove default options from Google Maps v2 Android
Guys I have a question, I am creating an application that uses Google Maps V2, has how to REMOVE these default options from the Map ? This happens when I click on the marker and these two default…
-
0
votes1
answer204
viewsTitle does not appear when an item is selected in the Navigation Drawer
When I select an item in the navigation Drawer the action bar does not change the title. package br.com.isckosta.mensagenslegais; import android.app.Activity; import android.app.Fragment; import…
androidasked 10 years ago Israel Sousa 1,362 -
0
votes0
answers401
viewsMy Android app doesn’t update on the device test
When I test the app on the emulator, it displays normally, the way I programmed it. But when I move to the phone, it displays a layout that I have changed completely, IE, it is defecated and it…
-
0
votes0
answers776
viewsCordova: You may not have the required Environment or OS to run this project
Two days I’ve been trying to figure it out but I haven’t been successful. The command used was the "Cordova run android" Below is a message that appears when I try to run Cordova on device: ERROR…
-
0
votes1
answer55
viewsLeave listview item by filling the entire screen
It has to leave an item of a Listview taking the whole screen of the cell phone?