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
answers17
viewsHow to get the size of the phone the application is running
I need to take the size of the phone my application is running , to try to use this bm.createScaledBitmap(bm,200,200,true);
androidasked 9 years, 8 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer685
viewsHow to List more than one bank line in a Listview using JDBC?
How to list more than 1 database data using JDBC on a Listview on Android? I have in a user 13 lines, and would like to recover the 13 and not just 1. Below the code I use: import android.os.Bundle;…
-
0
votes2
answers791
viewsHow to display GPS coordinates
Guys I’m new I’m attending Sistemas de Informação and has been proposed a work in which need to use a cellular hardware element. I chose to make an application that displays the coordinates, I…
-
0
votes1
answer663
viewsError when compiling Android Studio project with Gradle
I’m having a problem compiling my Gradle project. I have the following answer from the compiler: Error:Gradle: Execution failed for task ':mobile:processBroadcastHomologDebugResources'. >…
-
0
votes0
answers161
viewsHow to use another class for the same layout
It is as follows: I made adaptations in the codes in order to work the Slider Menu style so I had to use the Fragment interface, as shown in the code below, but in this same layout in this case is…
-
0
votes1
answer1008
viewsError when inserting data accentuated
I am sending the data by URL to my webservice if I put the path by example web browser in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo and call a method to display shows so: Nome: João…
-
0
votes0
answers134
viewsAndroid games created on Cocoon js do not run on Bluestacks
I’m running some tests on Construct 2 and Cocoon Js. The . apk generated by Cocoon Js runs normally on some phones I tested, but none of them works on Bluestacks. He starts loading the game, the…
-
0
votes2
answers3204
viewsImplement Numeric Keyboard
I’m playing an application that needs to enter numbers to make the necessary calculations, but I would like when the user selects Text Field to see the alphabetic keyboard appear, the numeric…
androidasked 9 years, 8 months ago Kingofwell 31 -
0
votes1
answer44
viewsStandard original XML file for a tooglebutton
I am customizing buttons in the application and some questions have arisen regarding some attributes. I’d like access to the archive default Android and make the changes in a copy of it, would make…
-
0
votes1
answer339
viewsMake a flashing Imageview
My app has a ImagemView and I’m trying to make him blink. This method keeps repeating for 6 seconds. @Override public void onSensorChanged(SensorEvent event) { verificarAndamento(); if(emCaputura){…
androidasked 10 years ago Ilgner de Oliveira 1,098 -
0
votes1
answer127
viewsError while adding strings to an array
My Activity of an Android app has this code. public class gerenciar2 extends ActionBarActivity{ boolean editar=false, adcionar=false, remover=false; SQLiteDatabase Banco = null; Cursor cursor;…
-
0
votes0
answers72
viewsSend multiple Ids in one request
My app is a QR Code scanner that when it reads a QR from a device makes a request to the server by a JSON. In activity DeviceInfo.class That’s where I show you all the information I want on Qrcode…
-
0
votes1
answer8171
viewsConversion from site to application
What’s the best way to 'convert' a website (with cakephp) to an android app. I would like to convert with all functions and that the databases were 'synchronized' The functions that it has are…
-
0
votes1
answer4184
viewsHow to get gps coordinates in java on android
What is the best way to get latitude and longitude on android. Ex. after the request (tap the button) the user waits for the gps to get the coordinates and after that displays them for the same.…
-
0
votes0
answers150
viewsListview for Arraylist
I have a Listview, one EditText and a Buttom. When I click on the button I want it to play what it has on ListView in a ArrayList, so that I can enter what was written in the EditText in the…
-
0
votes1
answer630
viewsAdd a button inside a Textview
I have a text at the end of the text I want to put a button see more, it has like a hyperlink or have to create a button right next to the Textview ?…
-
0
votes2
answers180
viewsHow to use html tag as <b> in android
I have a text and put it in a dialog , how do I not keep showing the tag but the effect of it AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);…
androidasked 9 years, 8 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer628
viewsAndroid Transition between Fragments
I have an application that contains 2 Ragments. An Fragment (A) is an item listing and Toolbar has a search, and the second (B) is the date of the selected item. I can make the transition well from…
-
0
votes1
answer500
viewsHow to make this type of notification
How can I make this kind of notification? Even when you click clean it doesn’t leave the notification bar, it also has 2 buttons there. I’d like to do exactly like this, I’ve looked hard enough and…
-
0
votes2
answers871
viewsHow to check if the user has typed a special character in Edittext?
How can I check if the user has entered any special character (*, /, +, &, etc.) other than by if(srt.contains("@") || srt.contains("!") || ... ? Is there any more practical way? And if he…
-
0
votes1
answer321
viewsInserting Textview in Relativelayout
This is my xml! <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="top" > <TextView android:id="@+id/tvTituloRelatorio"…
androidasked 10 years ago César Alves 293 -
0
votes2
answers1751
viewsXampp - access by Android
I have a WS fajunta that I did just to practice and another day for lack of what to do, I put in my android browser ip/xampp and appeared the message "Access prohibited!" , I did not know it was…
-
0
votes1
answer157
viewsWhat is the best way for an Activity to call itself?
The app displays random questions by following as template to QuestionsActivity, that is, the user chooses true or false and will only change the question (textView) and the screen design will…
-
0
votes1
answer306
viewsGoogle Maps Navigation Material Design
Someone knows reference material to develop an Android app similar to the new Google Maps navigation and animation format? The idea is to position the Marker Infowindow in the region below the…
-
0
votes0
answers205
viewsProblem with FTP connection
By browser I can connect and browse on my FTP server already by Android error and have the following code. public class MyActivity extends Activity { Spinner SpnListarArquivosFTP;…
-
0
votes1
answer59
viewsProblem in the organization of the data of a Listview - Basedapter
I’m having a little problem organizing the personal data of an external Mysql database. Like, I created a Infopeoplesdapter class inheriting from Basedapter where I pick up name, address,…
-
0
votes1
answer627
viewsHow to get current month with getDisplayName
I intend to get the current month and for that I am using the following code: Calendar calendar = Calendar.getInstance(); String mes = calendar.getDisplayName(Calendar.MONTH, Calendar.LONG,…
-
0
votes1
answer841
viewsUpload contacts from Android device - Contactscontract.Contacts - Contentprovider
I am trying to upload the following data from the user’s calendar: name, phone, email and photo. However the process is very slow, it is taking on average 4 minutes to load information from 800…
-
0
votes1
answer69
viewsClear Forms Navigation Android
I created a PHP+Mysql application and everything is ok! My question is when access this application via Tablet, for example by accessing the login and password, after using the system, I click on…
-
0
votes1
answer171
viewsError executing Startactivityforresult() line
Could anyone interpret why that mistake? The idea is that every Bluetooth algorithm is in a separate class, and with the main one I only call the methods. Follow the error and the code. package…
androidasked 10 years ago Claudio Ramos 1 -
0
votes0
answers38
viewsProblem to register User by android accent error
To sending the data by URL to my webservice if I put the path by the example web browser in Chrome: meuwebservice/inserirusu/á already by android he has this exit meuwebservice/inserirusu/%C3%A1 My…
-
0
votes1
answer120
viewsError with Picasso library
I have a problem with my code and cannot find it. The images do not appear using the Picasso library. I can’t see the debug problem because during the process this message appears: Source not found…
-
0
votes2
answers2944
viewsHow to use the string created string.xml via code
How to use the string maid strings.xml via code example has how to call <string name="hello_world">Hello world!</string> at some point in the code (Activity).…
-
0
votes1
answer39
viewsHow to edit editTexte keyboard to take up less space?
I have several editText, when calling the keyboard it compresses all together with the button has how to solve it.
-
0
votes1
answer143
viewsHow to return to my Actionbaractivity?
For example, for example... I have an application that has a main Actionbar and I "Seto" an Activity that has a drawerLayout (which has a side menu)... In each menu option -case selected- I replace…
-
0
votes1
answer96
viewsError trying to fetch data
I have an application that should insert data in one screen and in the other consult in the bank The problem is that whenever I try to execute the error query: Log 11-16 18:43:31.023:…
-
0
votes0
answers184
viewsString.format() with error
I need to format the following string with the respective parameter, but this generating the following error: Caused by: java.util.Illegalformatconversionexception: %d can’t format java.lang.String…
-
0
votes0
answers699
views -
0
votes1
answer191
viewsHow can I make this layout?
How can I make this layout? Above is the image, below is a testo box. In the middle is the problem, are 3 buttons and 1 progressbar…
-
0
votes1
answer1135
viewsListview with checkbox, select all and none button
I have a listview with check box I’m looking to put a checkbox on top of the list. So when I select it, I want to select everything from the list and when I click to take the selection I want to…
-
0
votes1
answer745
viewsProblem with accentuation when entering data in android Sqlite
I’m trying to give a insert in a table, but it gives syntax error. I believe it is because of the accent, but even searching can not solve. Log error: 11-19 00:34:52.959: W/Aquery(21157):…
-
0
votes1
answer65
viewsAndroid - Nullpointerexception Error
I’m getting the following error randomly, IE, gives error sometimes and sometimes not: Caused by: java.lang.NullPointerException at pt.cartuxa.Login.onCreate(Login.java:62) My line 62 is as…
-
0
votes1
answer924
viewsJson upload via android GET
Problem with special characters (keys, parentheses, etc) which contain in a json I’m sending via GET. android generates the following log: > E/AndroidRuntime(1956):…
-
0
votes1
answer1534
viewsHow to change the text color of Actionbar menu items?
In addition to changing the text of the menu item, how do I change the background of the drop-down menu? In this case, what only appears when you click on the 3 dots.
-
0
votes1
answer50
viewsContinue after run() finished
I have a class with the name Request_Login validates the login data with the server and a string LOGIN_RESPONSE which stores the server response. When data is submitted in the form and pressed enter…
-
0
votes0
answers108
viewsSmsmanager class to know if you really sent the text
I use the Smsmanager class to text in my app like this smsManager.sendMultipartTextMessage (telefones.get(i), null, smsManager.divideMessage(men), enviados, entregues); there’s this part of the code…
-
0
votes1
answer284
viewsActionbar does not show Icon
I’m using the Eclipse "Luna Service Release 2 (4.4.2)" to create my projects on Android. Whenever I create a project and run it, Actionbar does not show the icon that is set in the file…
androidasked 9 years, 7 months ago Vitor Mendanha 595 -
0
votes1
answer136
viewsAndroid error using Picasso
I have the following code to display images through URL public class AdapterListPesquisaResp extends BaseAdapter { private ImageLoader il; private LayoutInflater mInflater; private…
-
0
votes1
answer65
viewsAs popular listiview of multiple Tabs with information coming from a BD Sqlite
I am working on an app that presents all the games of the Brazilian championship. I want each tab to show the games of a round, example: tab1 (wheelset 1) tab38 (wheel 38) For this purpose I created…
-
0
votes1
answer369
viewsAdd imageview and break line
I have an image set in my folder assets, but the quantity will always be changing, so I need to add a ImageView via code. But since I don’t know how much, I don’t know when they’d come out the…