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
answer692
viewsAuthentication error when integrating Facebook SDK 3.6 to Android
I’m having difficulties to integrate Facebook SDK 3.6 to Android. When trying to log into the app, the following error appears: Invalid Android Key Parameter How to solve?…
-
1
votes3
answers2188
viewsHow to implement the fixed Actionbar below, android version 2.x or higher?
I’m implementing Action Bar on android version 2.x or higher, however, I’m having difficulties with the way of displaying the elements. In version 2.x the bar appears below, but without menu names,…
-
1
votes1
answer2919
viewsTake data from BD Sqlite without using Listview
My code needs to take the data from the database, in short only the following commands are missing: if (cursor.moveToNext()) { Contato contato = new Contato();…
-
1
votes1
answer587
viewsTwo Asynctask running parallel with Httpclient request
I have two classes extending Asynctask, in which they return me a JSON from a server. I am using the following code to run them simultaneously: if (Build.VERSION.SDK_INT >=…
-
1
votes1
answer3746
viewsHow to read a CSV file using Android?
I’m a beginner on Android and was wondering how to read a TXT file to my application. That question helped me a lot: https://stackoverflow.com/questions/8499351/how-to-read-csv-file-in-android But…
-
1
votes1
answer418
viewsSimple settings menu with Checkboxpreference Android
I have a simple settings menu where I have a CheckBoxPreference. I want to set silent mode when the checkbox is checked and normal mode when it is not checked. The sound code I already have, but I’m…
-
1
votes3
answers7213
viewsClosing application (Unfortunately Myapplication has stopped)
I am doing the application below, of course Neri, but when I implement the code referring to the button the application closes alone with error Unfortunately Myapplication has stopped If you comment…
androidasked 10 years, 8 months ago JamesOrtiz 319 -
1
votes1
answer1413
viewsError - in such column
03-21 07:25:47.740: E/SQLiteLog(796): (1) no such column: name1 03-21 07:25:47.750: E/data(796): Error while searching contacts: android.database.sqlite.SQLiteException: no such column: name1 (code…
-
1
votes1
answer136
viewsMaps Public API KEY
I’m developing a app who uses the Google Maps. When I do run from the Eclipse to the smartphone, Google Maps shows no error. When I publish the app in Play Store, the Google Maps error, no map…
-
1
votes1
answer79
viewsProblem with Portuguese in ADT
I’m working on a Android App, and a friend of mine sent me the app that he worked, but had a problem, all characters in our language like "ç" became things like c'@%, evidencing problem in…
-
1
votes2
answers222
viewsProblem of cursor positioning
Logcat is accusing a problem of NullPointerException, but I can’t identify it. From my point of view, it’s right. I know there’s a problem in lines 34 and 39 of ContactRegister that lead to…
-
1
votes1
answer591
viewsHow to get the parameters of a Url on Android
In the android I have the following URL String url = "http://domain.com/page?parameter1=value1¶meter2=value2"; I’d like to take the parameters of this URL how do I do it in a simple way?…
-
1
votes1
answer164
views -
1
votes2
answers664
viewsHow to better define the minimum API for a project?
I started a project and had many problems because I chose version 2.3 as a base, now I am working on another application that will have to have: connection to online database, and save edition in…
-
1
votes1
answer1189
viewsHow to get Paramentro in a C# sent from Android web service
I’m consuming a web service developed in C#, from an application on Android. By sending simple types per parameter such as string, int or long, I can usually get the information just by placing the…
-
1
votes1
answer411
viewsActionbar and Splitactionbar on Android
I’m trying to create an Android application with a menu at the top and one at the bottom. Searching I found the SplitActionBar but when I use it the whole part of ActionBar is in the footer. It is…
-
1
votes2
answers1091
viewsI made a client/server socket application but only works by emulator
I made a client/server socket application, where the client is an android device and the server is made in java. At first this all ok, in the emulator it runs correctly, but when I install the apk…
-
1
votes2
answers1309
viewsError calling method on fragment
My code below was to do a simple task, when clicking the button change to another screen, but is giving error: Cannot make a Static Reference to the non-static method chamaCadastro() from the type…
-
1
votes3
answers1091
viewsIs it possible to attach an Android res/drawable file to an email using Javamail?
I’m looking for a two-way solution: Get the file path: I would like to get the path of an image that is in res/drawable on my Android project. I’m in need of the path because I have to send it in…
-
1
votes1
answer1988
views -
1
votes2
answers3604
viewsPassing parameters from one Activity to another
I need to pass the name of a product selected in a ListView to be presented in a EditText. I am currently on the screen that the user informs the customer and then opens the screen of new order, on…
-
1
votes1
answer746
viewsObserver Design Pattern on Android
Someone would have how to show me an Observer structure within android? I was trying to build one like the java, but I was unsuccessful. My test was done as follows: I created a class Banco and a…
-
1
votes1
answer110
viewsDisplaying Flash Video on Android 2.3?
Good already tried of all ways to run flash video on android 2.3 of 4.0 forward will easy from a webview. Searching Google and in some forums I saw people riding through Videoview. For me it did not…
-
1
votes2
answers209
viewsIs there a way to filter contacts by "organization" in the agenda of Android contacts, when triggered through other activity?
In one app for Android, I intend to open the contacts agenda from another Activity via Intent, but I would like to see only contacts that bring a specific value in the "Organization" field. There is…
-
1
votes1
answer559
viewsWhat would be an alternative to the "obsolete" showDialog function?
Explanation: I have a mobile application that uses the method showDialog() at a given time, to show a DatePickerDialog and get the date, but I see that on the following line:…
-
1
votes2
answers473
viewsHow to call the Horizontal Keyboard when clicking on Edittext?
Explanation: I have an application that has a field of type EditText used for observation, of which it is too small, because there is no room for it. If I open the screen in "horizontal orientation"…
-
1
votes2
answers816
viewsAddress conversion on Google Maps
I’m making an App to search addresses on Google Maps. Is there any way to convert a String in Location, so I can take longitude and latitude? Or is there a better way?…
-
1
votes2
answers3645
viewsHow to pass data from an Sqlite table to several Edittext fields
How to take the data from a table and present them each in one EditText? I’m developing on Android. Here I do the List of the data I need: public List<ConfiguracoesSistema>…
-
1
votes3
answers4496
viewsClick and hold the Button / Listview
How to program to click and hold down call a method other than just a normal click? I would like tips, tutorials something that can help me. I’m having a new problem using the Onitemclick method and…
-
1
votes1
answer121
viewsHow to use the same Sqllite BD with java and Cordova?
Can I use the same BD using Java and Cordova? Ex: access data with Cordova in a java-based BD.
-
1
votes1
answer865
viewsUpdate Progressbar in the background java android
How do I update the background service ProgressBar in the Android? My code: public void onClick(View v) { // inicial o progressbar progressBar = new ProgressDialog(v.getContext());…
-
1
votes1
answer507
viewsRun App in the background with phonegap
I am a PHP programmer and am venturing into the mobile world. I need to create a simple app, will just play a specific radio, the problem is: How to run the app in backgroud? When the app is…
-
1
votes2
answers3071
viewsPass information from a selected item in the list to Edittext
Hello, I’m in trouble when I select a client in a Listview, I have to pass his name to a Edittext of the other Activity and pass the address also. But when I select the Customer he is grouping the…
-
1
votes2
answers7874
views"Quit" button in application developed in the App Framework
How to create a "Quit" button or cause the app to close when using the Smartphone’s "back"? To develop my application I am using the App Framework intel.…
-
1
votes1
answer2136
viewsHow to set photo resolution or how to change to hide the entire Imageview
I am using the function of the android camera need to change the resolution of the image to occupy my Imageview completely code used public void onClickCamera(View v){ Intent cameraIntent = new…
-
1
votes3
answers1027
viewsConnect android screen
Next, I have a BroadCast and I want when it runs the screen of the mobile phone to be turned on! The phone will probably be in Sleep, so I want him to turn on the screen of the device! I think it’s…
-
1
votes1
answer102
viewsGoogle Maps v2 Marker Error
I’m trying to put a mark on the map and it’s making a mistake NullPointExeption Follows the method: private void setMapaGoogle() { if (mapa != null) { mapa = ((SupportMapFragment)…
-
1
votes1
answer7556
viewsHow to get the value of a particular item from the java android listview
How I get the value of a particular item(Textview) from listview. I’m trying something like this: public void onItemClick(AdapterView<?> a, View v, int position, long id) { Object obj…
-
1
votes3
answers140
viewsMenu as of facebook
I’m wanting to create a menu like the image (similar to the facebook) below someone would know how to develop? how should I look, sample tutorials. Thanks!…
-
1
votes1
answer321
viewsHow to know which image was clicked in java
I have 4 images in my layout, how to know which one was clicked and do conditional? my scribe: Oncreate: ImageView bancada_tv = (ImageView)findViewById(R.id.main_bancada); ImageView aguarda_tv =…
-
1
votes1
answer484
viewsHow do I display the keyboard using Cordova or phonegap?
I’m using Cordova/phonegap and would like to know: How do I display the keyboard (in android OS) as soon as the user enters, on a page that only has a text field?
-
1
votes1
answer313
viewsProblem to the popular a Listview
I need a popular ListView that is using a custom adapter in my app but nothing happens, the list simply goes blank. Here is the adapter: package adapters; import java.util.List; import…
-
1
votes1
answer328
viewsIs it possible to create and remove . properties files from Android by the application itself?
It is possible to create and remove files .properties of Android, by the application itself? Ex: after creating an annotation it creates a file .properties with the name of that note!…
-
1
votes1
answer1112
viewsSet at least one number in Edittext
My question is this:: Is there any way to prevent the click of a button if an Edittext has no number at all? I was able to limit minimum and maximum values (0 to 255), but I could not find a…
-
1
votes1
answer451
viewsUse interface implementation in a Fragment
I’m trying to implement an interface I created within a fragment, but I’m not succeeding. My fragment is being defined with the following code: package fragments; import…
-
1
votes1
answer207
viewssocket failed: EACCES (Permission denied)
He was creating an Android project that makes him communicate with a Windows machine through Sockets, being the machine the server, and the mobile device (Samsung Galaxy S3 MINI) the client. I…
-
1
votes1
answer1387
viewsInsert into two tables in Android Sqlite
How do I add data to two tables on Android in a single transaction? I have two tables Client and Address, is last with a foreign key referencing the client table, and must be registered in a single…
-
1
votes1
answer671
viewsAndroid Fixed Paging
I have a gridView I’m populating through a WebService. The problem begins when I want to trigger an event let’s say clico by sliding the screen left or right I know there is a pageview, but I don’t…
-
1
votes1
answer136
viewsSynchronization problem
This code worked on a Java IDE, but now on Android is not working. This program needs to get an XML dataset from a website and then move on to a spinner. import android.app.Activity; import…
-
1
votes1
answer379
viewsHow to make connections to a php work in the background on Android
I have a little app of chat who logs in and sends messages to the server through php + JSON, but each query crashes the app for a half second, which is really boring. I heard something called…