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
answers128
viewsDefaulthttpclient is decrepated in Android app
I’m doing a JSON integration in my application, but when I use DefaultHttpClientdisplays the message: 'org.apache.http.impl.client.Defaulthttpclient' is deprecated. Follow the code below: public…
-
0
votes1
answer160
viewsHow do I set up permission for testing on Androidmanifest?
I’m with a question to give permission to perform tests on an android application. I created a case of test but the next one appears on the console: does not specify a…
-
0
votes1
answer1098
viewsGenerate PDF with images on Android
I need to generate a PDF on Android with some simple fields and several images. Researching I found this question Error while creating PDF file on Android that is helping me. However I don’t know…
-
0
votes1
answer276
viewsWhy is my Listview showing just one line?
I have a Listview but only one line is appearing, and I am registering 5 data (item 1, item 2...) Does anyone know what’s going on and what I can do? Java activity. public class…
-
0
votes1
answer42
viewsClass context problem
In line 93 of "menu1_Fragment" the following error appears: "Streamingmediaplayer (android.Content.Context, Imagebutton) in Streamingmediaplayer cannot be Applied to…
-
0
votes1
answer63
viewsHow to make an image reference?
I want to make simple app where user select an image of SD card and then can save its reference in sqlite so it can be displayed in a listview, but still do not know how I can make this reference.…
-
0
votes0
answers842
viewsSend whole type data via Bluetooth connection between android and Uino
I made a method to allow sending strings from android to Arduino through bluetooth and I succeeded! However the question arose of how it would be to send data of type 'int', following this same…
-
0
votes0
answers72
viewsHow to pass variables from JSON to Fragment in android application using TABS?
I have the following code: public class ActivityCategorias extends AppCompatActivity implements MaterialTabListener{ private List<Category> categoriesList; MaterialTabHost tabHost; ViewPager…
-
0
votes0
answers52
viewsConverting Text to XML
I am building an rss reader for a blog where the xml file gives me the information of all the events that the blog presents (cultural events). recover the xml and extract the information is ok until…
androidasked 8 years, 11 months ago Jorge Kleber 29 -
0
votes0
answers247
viewsError with Fragments
I am beginner in Android programming and I’m having an error that I can’t fix it. I’m doing a project that uses Fragments. I have a small layout that works perfectly when I don’t put the Fragment…
-
0
votes0
answers461
viewsBackup and Restore Android Backup
I created an application with the Sqlite database. I would like to put the function in the application to backup and restore backup. I implemented the code of this site…
-
0
votes1
answer1525
viewsCardview Android
I am participating in the creation of a project, and I need to create a list containing several CardViews, as the number of cards it’s not exact, I can’t just do XML. Does anyone have a hint as to…
-
0
votes1
answer179
viewsCould not open '/sys/class/power_supply/genymotion_fake_path/present'
I installed the emulator Genymotion in Android Studio, but it happens that when I run my app in emulator it returns me the following error: Could not open…
-
0
votes1
answer502
viewsHow do I get a Surface to run a video using Exoplayer?
I need to run video on my Android app using Exoplayer, a google project that allows DASH, persistent cache. Official Project Page here However, the method exoPlayer.sendMessage has a class parameter…
androidasked 9 years, 6 months ago Juninho Cruz 165 -
0
votes1
answer2075
viewsHow to call a method another Activity in my Activity?
I have a activity A and a activity B. Activity A has the method metodoUm and I needed to use this method on Activity B. Does anyone know how I can do this? I would be very grateful. I’m getting…
-
0
votes0
answers62
viewsError using library listViewVariants -Error:(32, 13) Failed to resolve: com.github.Androiddeveloperlb:Listviewvariants:15fe3904fd
I’m trying to use the library Listviewvariants as it is on the site The Android Arsenal, but I’m not getting through. Compile and add the Maven of the library when I do the Sync does not work, gives…
-
0
votes1
answer158
viewsHow to create a Listview with Random items? (Android)
I’m having trouble with my Listview. I would like him to display his items in an Random way, but not to repeat the items, as is happening now. Here is the code: public class AdapterConteudo extends…
-
0
votes3
answers327
viewsLogo configuration when generating apk in Unity 5
Does anyone know why the logo Unity the apparatus is not vertical follows the image to facilitate understanding I stopped to be in vertical position the rest of the configuration did not change…
-
0
votes1
answer89
viewsMy custom Dialog only appears after the to run all
I’m having a problem to consume a custom Dialog in an Android Activity. I select the text that appears in the Dialog according to the previous answer and the accumulation of answers "yes" or "no" of…
-
0
votes1
answer40
viewsHow do I adjust the views to make them small independent of the device?
I made an application where I create part of the interface in xml and part via java code, the xml part works in any application adapting the screen size. The part via code in a 7.8 inch device is…
-
0
votes0
answers47
viewsWhat does the code line "var ? int : int"
Guys, I’m new in Android development and I came across a line of code like this: int animar = visivel ? android.R.anim.fade_out : android.R.anim.fade_in; Animation a =…
-
0
votes0
answers92
viewsHow to set the index of a spinner?
I have 3 spinners that I am using for filters, in my application each column has a filter, name, age, city, when I click on the age filter, I will choose an age, for example 12 and the age will be…
-
0
votes0
answers420
viewsUpload image + parameters Httpurlconnection
I have a Rest server and I need to upload images and also send parameters. I’ve done a lot of research, but I still can’t get the client to work. By the browser works right, via code I can send the…
-
0
votes1
answer37
viewsUpdating and publishing android app privately
I need to publish an app privately, where only those who have the address or clearance can make download and updates via Appstore, it is possible to control the application in this way? I can at…
androidasked 8 years, 10 months ago vinicius gati 145 -
0
votes1
answer205
viewsError handling in Google maps Android API
I’m running a register of people with addresses to show on the map where a person lives. When I type the correct address everything works normally, but when I error the address, it is not valid for…
-
0
votes1
answer256
viewsLayout Hierarchy
I want my Toolbar I put in place of Actionbar not inside Scroolview, but always when I take it and create a Relativelayout or Linearlayout on the outside and I put the Toolbar and then the…
-
0
votes1
answer673
views -
0
votes0
answers175
viewsTimeout when running APK on emulator
I’m having trouble running emulator on Eclipse ADT. When executing the APK, can only timeout, even increasing the time of ADB to 50000 for example. The project runs directly on mobile, only on…
-
0
votes1
answer58
viewsHow to create a variable that stores a value even if you restart the application or change scenes on Android?
How to create a variable that stores a value even if it restarts or changes application scene, I don’t know if it would be a database or if there is something simple
-
0
votes0
answers32
viewsIs there setSelection in Tablelayout or Tablerow?
Listview has the method setSelection() where you can select an index from your list to point at this index when you open the list. For example in a Listview with 100 numbers, if you put…
androidasked 8 years, 10 months ago daniel12345smith 2,120 -
0
votes1
answer64
viewsAd error adbuddiz Android
At the time you call the ad displays this error and does not show the ad E/AdBuddiz: Can't show Ad: NETWORK_TOO_SLOW. Current network is too slow. it displayed a few times and now appears this…
-
0
votes1
answer927
viewsHow to add borders to the columns and rows of a Tablelayout via code:
I created a table, but I need to add rows and columns to the table via code. Does anyone know how I can do this? Thanks in advance. How I need you to stay:…
-
0
votes1
answer323
viewsFailure error[INSTALL_FAILED_INVALID_URI] in GCC
I’ve done everything, installed the GCC C4droid by Google Store, already installed the Android Terminal Emulator and also root ei and free access to $su. However when I try to install GCC using the…
-
0
votes2
answers1861
viewsHow to place a button that performs a Alertdialog.Builder action?
I have this method where it displays a message. public void mensagenExebir(String titulo, String texto){ AlertDialog.Builder mensagem = new AlertDialog.Builder(Activity.this);…
-
0
votes1
answer62
viewsWhat is this layout composed of?
I saw this app and on this screen there are some divisions that seem to have been made with cardview, someone can say if it was really made that way or how it was made? Another detail is at the end,…
-
0
votes1
answer1756
viewsChanging color of a Checkbox
It is possible to change the color of a Checkbox via program (Runtime)? I would like to change the white color of the box highlighted in the image.…
-
0
votes1
answer52
viewsCatching Event Collapsing Toolbar Android
Is there any way to identify the Collapsingtoolbar Collapsing event? Type one onChangeCollapsingListener What I need to do is set the visibility of some screen components when the Collapsingtoolbar…
androidasked 8 years, 10 months ago Kaynan Coelho 191 -
0
votes1
answer488
viewsHow to implement a github file in Android Studio?
I would like to implement that file in the Android Studio just go in the import or have to import a specific file.…
-
0
votes1
answer1038
viewsSqlite android query() / like with accents and without
How to make a query in Sqlite for Android that searches both accented and not accented words? For example: String[]ARGUMENTOS = {"%"+argumento+"%"} query(TABELA_CIDADES, COLUNA_NOME, NOME + " like…
-
0
votes0
answers140
viewsIcon and Text in Actionbar menu
How can I always display the text icon on a button in Actionbar? I did so: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">…
-
0
votes1
answer69
viewsHow to run a notification when setting off the alarm?
There I have my class MainActivty and ReceberAlarm, the class receberAlarm is the class that must fire the notification, I ask for help. public class MainActivity extends ActionBarActivity { static…
androidasked 9 years, 6 months ago Gabriel Manuel 153 -
0
votes0
answers283
viewsIs it possible to "inflate" a layout within a View or Framelayout?
It is possible to inflate a layout (I will call A) that has its full xml inside a View or Framelayout that is contained in another layout (xml)? For example, the screen mounted through the layout A…
-
0
votes0
answers398
viewsImageview on Android is it possible to zoom in?
In the ImageView can zoom in on the image within the ImageView definite. <ImageView android:id="@+id/imageView1" android:layout_width="fill_parent" android:layout_height="fill_parent"…
-
0
votes0
answers62
viewsOauth Authentication with Volley
How can I request a Webservice that uses Oauth as authentication, and I use the Volley API on Android ?
androidasked 8 years, 9 months ago Rodrigo Lima 315 -
0
votes2
answers66
viewsUsing a map to store 1 ID for N values?
EDIT for lack of details, I have answered the question here. The question has been flagged and a moderator will delete it as soon as possible, thank you. I have the following Ids and values…
-
0
votes1
answer248
viewsAdding values to the Hashmap <Integer, List<Integer>> and fetching them through the key?
I’m making an app focused on external vendors. 1 external seller has several customers, and also several products, which is traded freely with these customers. These products do not always remain at…
-
0
votes1
answer39
viewsLoad and set bitmap asincrona
It is possible to load a Bitmap image asynchronously, but set it to an imageview before finishing? Thus : imageView.setImageBitmap(bitmap); new Thread( ()->{ //carregar bitmap }).start();…
-
0
votes1
answer96
viewsCheackbox on a Basedapter, how to use it?
Hello, I’m developing my TCC, and I don’t know how to use checkbox inside a baseAdapter. My idea is, I have a window that shows me a list of orders and at the bottom of the list this total, each…
-
0
votes1
answer1930
viewsOpen the MEGA app when a website link is clicked on the webview
I am developing an app for my site and I want that when a certain user clicks on the download link, which in this case is in the mega, open the mega APP automatically, as well as is done in Chrome…
-
0
votes1
answer1908
viewsAndroid:get value from Radiobutton
Hi, I have a problem I can’t solve. I have a dialog where I have a RadioGroup with 2 Radio Buttons and a button OK. I want to get the radio button value selected when I click OK, but I’m getting the…