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
votes1
answer359
viewsjava.lang.Runtimeexception: Unable to start Activity Componentinfo java.lang.Nullpointerexception
Hello, I’m new to android and when I try to run my application appears these following mistakes: 08-15 18:10:49.828: E/AndroidRuntime(1769): FATAL EXCEPTION: main 08-15 18:10:49.828:…
-
0
votes1
answer38
viewsTaking String values and separating them
Ex.: (Textview)result = "text1;text2;text3;text4" ; I want to take them in sequence and do it this way, so that I can manipulate them separately. String tx1 = "text1"; String Tx2 = "text2"; String…
-
0
votes1
answer425
viewsChange object of a listview
I have a listview populated by an object, but I wanted to know if there is a way to change the object, I managed to change the view corresponding to that Object, and not to listView entire.…
-
0
votes1
answer4810
viewsHow to Select Java Listview Item
How to use the method to work with the selected Listview item? Activity: public class ListaProntos extends Activity implements AdapterView.OnItemClickListener { ArrayList<Contact> imageArry =…
-
0
votes1
answer1222
viewsGet item data in Listview
I’m developing a college project that consists of an agenda that works with Sqlite database. It may seem trivial, but the way I’m proceeding makes things a little more complex. I want that, when…
-
0
votes1
answer1324
viewsHow to create Listview with Sqlite data in Fragment
How do I insert the Sqlite data into this listview of my code: @Override public void onActivityCreated(Bundle savedInstanceState) { String[] sCheeseStrings = {"Emerson","Simone","Samara"};…
-
0
votes1
answer726
viewsPopular Spinner
In my application I have a method returns a list of customers. How do I popular a Spinner only with the names of customers contained in the List?
-
0
votes1
answer1075
viewsHow do I make my app use the default "Gallery" to pick up the path of an image?
I’ve seen some apps who uses the default Android Gallery to grab images from a certain folder, how do I do this? Is it possible some Android come without the Gallery app? Or the person remove?…
androidasked 10 years, 3 months ago felipe.rce 1,969 -
0
votes1
answer280
viewsAndroid: Align Parent Bottom + Bottom margin programmatically
Does anyone know how I can programmatically add a Relativelayout aligned at the bottom of the parent and include a margin or padding at the bottom of that same Relativelayout? Ex.:…
-
0
votes1
answer297
viewsClick button works on emulator, but does not work on mobile
I have a button and 2 values. When I am in the emulator, everything works great.. But when I export the app and install it on mobile, the same button doesn’t work. package br.emanuel.imc; import…
-
0
votes1
answer89
views3MB Phonegap Application increases to almost 220MB. Can you explain it to me?
I’m developing my first Phonegap app for Android and I come across something that scared me a lot. The application, which so far has only interface, nothing business rule has increased its size…
-
0
votes2
answers3103
viewsCalendar in an Android app
I am trying to develop in my android app, a functionality from where I can consult, register, etc events in a calendar. I tried Calendarview and reached the point of clicking on a date and firing an…
-
0
votes0
answers266
viewsTelephonymanager Android
I wonder what is returned on android in Class TelephonyManager when I call the method getDeviceId, the device has no chip. Because I need an identifier for the device and I thought about using the…
-
0
votes1
answer565
viewsGet click id on the previous Fragment listview
I have a Fragment that loads a listview. This listview is populated with a hashmap getting the values from the bd. When I click on item 1,2,3... of the list, it opens a Fragmentb(details). How do I…
-
0
votes1
answer2756
viewsAndroid connect on Postgres
I have an application, and I want to use the postgres database, that database is on a server, and I can access that server, as I do the connection. I don’t know if I explained it right, but I think…
-
0
votes1
answer331
viewsChanging content of a Spinner via a radiobutton
I used this code to change the contents of a Spinner with a radiobutton but it doesn’t work. I ask for your help: public class ExemploActivity extends Activity { ImageView image; EditText…
androidasked 10 years, 5 months ago Sousa Junior 1 -
0
votes1
answer94
viewsAPI Level does not agree
I’m taking my first steps in developing for Android (today is my second day of study). See below my configuration files and the error I’m finding: Initially my Androidmanifest.xml was like this:…
-
0
votes1
answer89
viewsHow to send List<T> with Kvmserializable?
I am implementing Kvmserializable for communication with web service with complex types. I have a property of type List. However I am indicating the type List.class and I am not getting this list…
androidasked 10 years, 5 months ago felipearon 715 -
0
votes2
answers122
viewsandroid.permission.MODIFY_PHONE_STATE - How to assign system permission?
People need to use in my App the following permission: android.permission.MODIFY_PHONE_STATE But it shows an error in Manifest saying that permission is only granted to system apps. I need to…
-
0
votes1
answer126
viewsRemove Actionbar Tabs indicator on Android
For default Actionbar tabs comes with the blue indicator (how much is selected) and my question is how do I remove this blue indicator. I intend to use icons in these tabs, but as it is shown the…
-
0
votes1
answer2637
viewsValidate Date entered by Edittext
I have an Edittext with Mask to input a date. How can I validate whether or not the date exists? Code of my Edittext NascimentoUsu = (EditText)findViewById(R.id.edtdata_usu);…
-
0
votes0
answers217
viewsRecover Edittext from Viewpager pages
I’m having a problem here which is the following, I have an Activity (extending from FragmentActivity) who owns a ViewPager using SectionsPagerAdapter as an adapter. I can create as many pages as I…
-
0
votes1
answer151
viewsEnable click on Listview
When I insert a ImageButton in the layout of my ListView, it is no longer possible to click on ListView, ie, the click is disabled. Is there any way to enable the click ListView when you have a…
-
0
votes2
answers652
viewsCalling a function when a Fragment is closed
I have a activity who calls a fragment which is displayed in the form of a DialogAlert. But when that fragment is closed, need a method of Activity be called. What is the best way to do this? The…
-
0
votes1
answer919
viewsGoogle Maps API not working using Cordova
I am developing an application for Android using Cordova, I am doing the geo localization working with the latitude and longitude of the user, taking this data, I create the map (the position of the…
-
0
votes1
answer71
viewsPassing String between classes
I got my main class where I got ... String ola = "Hello fellas"; and I have my other class: public class NotificacaoDiaria extends BroadcastReceiver { @Override public void onReceive(Context arg0,…
-
0
votes1
answer107
viewsDelphi XE5 error
Can anyone understand why this has been happening? In fact, it’s not just that there, there’s much more, whenever I type a special character ";" or other things, he doesn’t recognize and keeps…
-
0
votes2
answers16937
viewsHow to change background color
I wanted to change the background color of an activity, I’ve seen some topics here but without success. When selecting in the spinner the activity color will be changed to black, or white. How do I…
-
0
votes1
answer60
viewsCheck if the screen is unlocked android service
I’m developing an app that has a service of AlarmManager who subsequently calls a Service. It turns out that when you start the Service I want to check if the phone is in use, IE, with the screen…
androidasked 10 years, 2 months ago Saulo Souza 13 -
0
votes1
answer952
viewsHow to use zipalign in Andriod Studio?
I work with android studio on the mac, and at the moment I use the zipalign app that comes with the ide using terminal command. Every time the app shows this image message, you can automatically set…
androidasked 10 years, 2 months ago Thiago Porto 292 -
0
votes1
answer83
viewsSyntax Highlighting no textview Android
Do you know any library or method to display source code (Syntax Highlighting) in textview? I need to do this for hundreds of codes (average of about 400), just for reading. Something similar to the…
-
0
votes1
answer1154
viewsOpen gallery, select and save address in database - Android
I was wondering how I can open the gallery in my android app at runtime, select an image and copy that image to a folder of my application in SD card and save the image path in the database, someone…
-
0
votes1
answer239
viewsHow to open an actitivity from a java Fragment
How to open an Activity after clicking on a Listview that is in Fragment, I am using: public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub…
-
0
votes1
answer656
viewsHow can I within a class extending from Broadcastreceiver make any changes to the graphical interface?
Having an Activitymain(inherits from Activity) calls a broadcast, and then the Broadcast class is started. But when performed some action in this broadcast I want to change information from the…
-
0
votes1
answer1383
viewsWhat tools (Apis, libraries, frameworks) are needed to create graphs and reports?
I’m wanting to take data for example from a database and develop charts of this type, follows the figure below: If possible in various formats in pizza, in bars etc. And then generate a report of…
-
0
votes2
answers246
viewsChange variable in a task
I have this method to read an html page, and it’s doing a toast with the result. But I wanted him to return the value read to me, or put it in some variable, but I did not succeed. private class…
androidasked 10 years, 4 months ago Gabriel Duarte 565 -
0
votes2
answers728
viewsAction Imageview in Listview
Good night, I’m developing an application for android, and I have on my main screen a Listview and an Activity with two Imageview and a Textview, this Activity is called in the main class that…
-
0
votes1
answer277
viewsHow to call the screens by the Navigationdrawerfragment in Fragmentactivity?
I have a class that extends FragmentActivity to call the map, and other classes that are just Fragment. How I do the method to call the screens by NavigationDrawerFragment?…
androidasked 10 years, 2 months ago Robson Duarte 1 -
0
votes3
answers121
viewsWaiting for remote audio extraction in Java
In my college project I have a small API in Java that extracts audio from video files, where is passed the URL of the video and is returned an MP3 file, so far so good. I would like to keep a server…
-
0
votes2
answers675
viewsHow to modify and save the new modified listview item?
I would like to know how to save multiple positions from a listview. As an example, let the user bookmark certain list items. I don’t know what would be useful to get an efficient response, so I…
-
0
votes1
answer188
viewsI get nothing from php on android
Good afternoon I have a problem. I can fetch all the information I have in the table, but when changing the code so that I only appear the information of a certain person error and returns no value…
-
0
votes2
answers3914
viewsWhat are the life cycle stages of an Activity and Fragment?
What are the life cycle stages of an Activity and Fragment? What are the differences of these stages? And how can I identify at which stage an application’s Activity or Fragment is currently?
-
0
votes1
answer248
viewsCrash when implementing tabs and swipeable views
I’m starting in android development and want to put tabs with swipeable views, I followed a tutorial from Androidhive why of google tutorial It didn’t make any sense to me. The point is that after…
-
0
votes1
answer164
viewsDifficulty with AJAX picking nodes values
I would like to separate this data with ajax, but I’m having a hard time with the nodes: <?xml version="1.0" encoding="ISO-8859-1"?> <android_ecs.xml>…
-
0
votes0
answers318
viewsTesseract, how to integrate it?
How do I integrate the Tesseract into my Eclipse app? I need to do image recognition.
-
0
votes1
answer311
viewsLimit access to the app in google play
It is possible to create some criterion that makes it impossible to update my application in the published google play? Current scenario: I have a sales force system on Android and an ERP on Desktop…
-
0
votes3
answers2626
viewsHow to exchange information between classes?
I want to pass information from one class to another for example: TextView t; I have a Textview here called t and he’s in the Main class. Now in the Main2 class: t.setText("TextView saiu da Main…
-
0
votes1
answer77
viewsHow to insert Droidsoapclient library into my Android application?
I’m having difficulty importing the library Droidsoapclient in my application, I use Android Studio to develop and I’m inserting this library in the folder Main, but it seems that the import is not…
-
0
votes2
answers353
viewsListview does not display loaded BD data
I have a query screen, where she should display the items already registered. It just doesn’t show. At first, I thought it was because the information wasn’t being recorded in the comic book, but…
-
0
votes1
answer414
viewsI can’t publish apk
I ran a store 10 years old, I’ve tried it several years ago, and nothing ever comes up: You submitted an APK signed with a certificate that expires soon. Sign your APK with a certificate with a…