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
answer203
viewsSqlite native functions X Sugarrecord
What are the advantages and disadvantages of using SugarRecord when compared to native functions SQLite, Example when creating a table with Sqlite Native Functions DatabaseHelper.java public class…
-
1
votes1
answer112
viewsCloning a class
I am "trying" to clone the following class: public class CadHorario implements Serializable, Cloneable { private int cdHorario; ... private Date horarioInicio; private Date horarioFim; private…
-
1
votes0
answers104
viewsShow Fragment in Activity with Transition
Good afternoon, I have a main Activity with a button and I would like that when the person clicked this button this Fragment opened on the screen, are three buttons within a linear layout.…
-
1
votes0
answers52
viewsAPK signature hashcode
I need returns a unique hashcode from the apk signature. Signature[] sigs = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures; for…
-
1
votes2
answers77
viewsApplication is returning Nullpointerexception error although the object is set
Error while clicking save the new process after assigning the data in each field: java.lang.NullPointerException: Attempt to invoke virtual method 'long…
-
1
votes1
answer139
viewsGet meta-data from Androidmanifest
I’m developing a library. For use the developer must inform a usage key. I would like to use the same way as Google maps: <meta-data android:name="com.google.android.geo.API_KEY"…
-
1
votes1
answer17
viewsAndroid Parser from soapFault
Well I’m starting to make errors that the webservice Soap returns to me, as for example if the user enters login or password wrong the web service returns an error Soapfault: user or password…
-
1
votes1
answer808
viewsMark/Deselect Radiobutton Component in Expandedlistview
In a question I asked here at Stackoverflow a few days ago I was instructed to use the Expendedlistview component to represent a dynamic list of items. After the implementation I saw that the list…
-
1
votes0
answers46
viewsAndroid app gives error when trying to login
System application log in to Android Studio. I can register in the application but when I try to log in I can’t Love a message "login failed" here is the login code.php <?php…
-
1
votes1
answer413
viewsSend address to search in google maps
Hello, I ask for help on the following: I have a Textview with an address, I would like when clicked an Intent sending this address to search in the user’s own Google Maps App. I know I can use the…
-
1
votes1
answer333
viewsComparison of an edttext with an Sqlite Bank value
I’m developing an application on android but do not know how to prevent the user register two equal times. Bench: String sql4 ="CREATE TABLE "+TABELAAGE+"(" +IDAGE+ " integer primary key…
-
1
votes1
answer69
viewsreceive the size of a folder in textview
I’m an Android development intern, as a challenge I need to create an App to receive/discover the size of the folder/ directory of images Whatsapp... I researched and I couldn’t find anything, I saw…
-
1
votes2
answers413
viewsHow can I put a button to make it visible?
How can I click a button and make the other button visible?? Button vibrar; cor = (Button) findViewById(R.id.cores); public void clica (View View){ cor.setVisibility(View.VISIBLE); }…
-
1
votes2
answers366
viewsError on Android connection with Restfull Web Service
I’m developing an android app for a college course. I am connecting the Restfull Web Service with android using the Gson library to pass data. In the method below I am performing a POST request, in…
-
1
votes1
answer119
viewsWhat happens when the subscription key expires?
I have read that when the subscription key of the application expires we can no longer update our application on Google Play. The recommendation of Google is that the key has an expiration date of…
-
1
votes1
answer341
viewsPass the name of the item clicked on Listview Android
I have a code that I get the ID of the item clicked on ListViewand step into another Activity, but I would like to get the name clicked and not the ID. My code: if (controle != null) {…
-
1
votes2
answers53
viewsError using values string
Hello, I’m using string within values. Everything is working fine, but when the phrase is composed of something that comes from the bank (for example) and a string, it is putting numbers instead of…
-
1
votes0
answers92
viewsGet XML properties answered from web services server
I am wanting to capture the values of XML properties answered by the server. public ArrayList<Carga> smbcRequest(smbc smbc) { //instanciando variaveis PropertyInfo req = new PropertyInfo();…
-
1
votes1
answer405
viewsFile generated in Android does not appear in windows Explorer
I can save the file in my micro sd but connect the mobile device on computer through a USB file does not appear in Windows Explorer. <uses-permission…
-
1
votes0
answers81
viewsOffline map on Android
I’m making an application in which using Google map and can be without internet access. Without internet access Google’s map system does not work. Questions: 1 I know you can cache some information…
-
1
votes1
answer607
viewsHow to open a local file with Xamarin?
Using Xamarin with Visual Studio and C#, I made an Android application and am creating a player using VideoView. I wonder how to access the mobile folder that contains the video. For example:…
-
1
votes3
answers359
viewsHow to assign a zero value to a variable(s) before running the program?
First of all, I’m still a little layy on the subject, hehehe I’m doing a program on Eclipse (Android) that calculates the CR of a student, through two buttons: one takes care of adding n notes and…
androidasked 8 years, 11 months ago Yan Abi-Chahin Mendes 11 -
1
votes1
answer75
viewsIs it possible to make a Swipe to open the application?
I wonder if it is possible to create an event in an application that performs this function, and if there is a plugin.…
-
1
votes1
answer308
viewsTreat exception in an Asynctask
I use a Asynctask in the app that works blz, however if the Webservice is out of the air, it returns that the application has stopped, I have tried to treat the exception in several ways but it does…
-
1
votes1
answer957
viewsError while running Android Studio emulator
I’m having a problem when emulating a device in android studio. When I try the following error happens: 15:28:24 FileNotFoundException: /home/Henrique/. android/Avd/3_2_HVGA_slider_ADP1_API_17.ini…
-
1
votes1
answer521
viewsHow to add only a few Activity navigation Drawer
I’m having a question how I can add the navigation Drawer the left side menu in some activities. I started the project by Blakactivity and now the need to add the side menu has arisen. I already…
-
1
votes1
answer295
viewsSave data to file in android internal memory
I need to record a set of variables: int var1,var2,var3 var4=new int[10], var5=new int[10], var6=new int[10] var7=new int[5][3],var8=new int[5][3] My goal was to record them all in order and then…
-
1
votes1
answer122
viewsWhat is the difference between marginStart/marginLeft and marginEnd/marginRight?
I know that this doubt is quite simple, but I have already searched and still not found an answer that was satisfactory to me. After all the marginLeft is not equivalent to marginStart? And it…
-
1
votes0
answers43
viewsSocket X Android
I’m doing a study of socket on Android (A app of chat with some more functions on other screens) but due to the little knowledge at the time I was 'stuck' at one point. How can I create a single…
-
1
votes2
answers2390
viewsUnderline a word within a Textview
As I can underline, leave in bold/italic a single word within a TextView? for example: <TextView android:text="Abelha Barco Casa Dado" android:layout_width="wrap_content"…
-
1
votes1
answer551
viewsButton effect pressed
I have several buttons on an app and wanted them to have the same effect as Button when pressed, because there are several buttons, I would like to create a code in JAVA for this and not by the…
-
1
votes2
answers182
viewsWhen you do not write anything, do not appear "Type a name"
I’m working on an Ionic app. There, when I search for a photo in Google and select it, the name field is filled with the word that did the search. Now, when I select an image of the phone, the field…
-
1
votes1
answer127
viewsCode displaying decimal value in C# for Java/Android
I have a code that rounds up a value like decimal for homes I want, and would like to implement it on Android in Java however I’m having some difficulties, follows below the code in C#. public…
-
1
votes1
answer115
viewsAndroid Volley Multiple Requests in Parallel
I’m developing an application where I have to make several Volley requests in parallel to fill out spinners, and there are two times I call this screen. The first time is for a new registration,…
-
1
votes0
answers33
viewsDoubt about the Actionbar Tab
When my app opens, the Tab appears like this: But if I open a new one View and return to the home screen, it already appears like this: Does anyone know why? And how do I always show up with the…
-
1
votes0
answers33
viewsHow to use Javascript in Textview?
I have a Webview that accesses a certain site, I need to recover a value using javascript getElementById and pass this value to a Textview, how can I perform this procedure ? Follows the code:…
androidasked 8 years, 11 months ago Diego Kappaun 524 -
1
votes2
answers1860
viewsProblem with Hyper v virtual machine emulator
The Hyper-v of my computer is active, and yet the error appears: The emulator was not started because the hypervisor is not running, probably because hardware-assisted virtualization is not enabled.…
-
1
votes2
answers75
viewsHow can I share an image via Mail, Bluetooth, etc?
I own a ImageView that has a drawable that was edited during the use of the app, wanted to take this final edition and send it by Email, Bluetooth, etc.. The way I’m doing, when I send by email for…
-
1
votes1
answer68
views -
1
votes2
answers68
viewsComo Release App
I finished my app now leave ready for Play Store I saw on the website that I have to set up Gradle, add the release code. I took this code and I still don’t understand how to use it. release {…
-
1
votes1
answer781
viewsProblem to connect my device to Android Studio via Wi-Fi
I’m developing an application that needs the USB port of the device is not connected, so not to disturb the tests, I need to connect the phone in Android Studio through Wi-Fi, in the past had…
-
1
votes0
answers66
viewsHelp to configure Toyvpn Server Android
Hello, I have a problem and I’m already 3 days looking for a solution, I hope someone can help me. I’m trying to test the example of Android Toyvpn, but I’m not succeeding in server settings. The…
-
1
votes2
answers1205
viewsCall Another Layout
When entering email and password the app should call another layout. I just can’t seem to do it... Intent intent = new Intent(this, R.layout.activity_estado); startActivity(intent); Informs the…
-
1
votes2
answers285
viewsAndroid do authentication constantly with external server
Staff would like to know how to do for the application I’m developing make authentication constantly. For example the watts if you don’t have access to the internet and try to send a message it is…
-
1
votes1
answer351
viewsAndroid Listview customized in a Fragment
I have an app layout was made in tabs and in one of them I would like to implement the ListViewcustomized, but I could not because the JAVA class tab extends the class fragment and to make the list…
-
1
votes1
answer1104
viewsAndroid - Generate Apk
How do I generate apk in Android Studio? 1.0 - I went to Build -> Build APK. 1.1 - When finishing I put it on the smartphone and gave the following error: There is a package analysis problem. 2.0…
-
1
votes1
answer100
viewsHow to adapt an Activity to Fragmentactivity
I’m making a NavigationDrawer, and then I have to make some adaptations, because I’m extending Fragment, but I need to use int’s for Activity to work, I tried calling inside OnCreateView the…
-
1
votes1
answer1010
viewsLayout does not occupy full screen
I’m putting together a layout and the layout isn’t occupying the entire screen. I’ve tried it in many ways, but it’s never possible that it will, so it’s not fitting everything I need. Problem…
-
1
votes1
answer585
viewsHow to turn a "Unity5 Project" into apk, for Android
I’m following Youtube video game development classes with Unity5. After creating a project in Unity5, I would like to convert it to apk and test on a mobile phone, but in the middle of the…
-
1
votes1
answer108
viewsHow do I send a message telling the user the start date is longer than the end date?
I spent all afternoon making this code but I couldn’t get it to work properly. What do I do to send a message to the user saying that the start time cannot be longer than the end time? xml: <?xml…