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
answer4140
viewsReturn an address using Google Maps API
I’m finishing an application where I need to use the Google Maps API for two things: select an address from the user’s choice (example: user navigates to the desired address and chooses it) and…
-
1
votes1
answer271
viewsMaking web service calls separately
I need to finish an application I’m doing on Android, in the login step I’m doing, and for that, I have two webservices to perform it, one is the Identifier and the second is the Loginsamba. I’d…
-
1
votes2
answers524
viewsHow to know the remaining time for the alarm to ring
I am developing an alarm clock. Below I have a function to set the alarm. But I want to know how to find the remaining time for Alarmmanager to trigger Pendingintent. For example, it’s now 11:00,…
-
1
votes2
answers136
viewsSwitch ellipsis style in Textview
I am trying to change the style of the ellipsis in Textview, the default style is "...", I would like to change to "(...)". I developed a method, but it only works when the user clicks and updates…
-
1
votes1
answer4434
viewsCheck if it contains Data in Sqlite table
How to check if an Android Sqlite table contains data?
-
1
votes1
answer846
viewsPhonegap / Mysql Connection Remote without PHP
I would like to make a connection to a remote Mysql database through an application compiled for Phonegap without the need to use PHP. The bank would not be inside the device but in the network…
-
1
votes1
answer692
viewsProblems sending data from one Listview to another Activity
Questionadapter public class Questionaadapter extends Basepter Implements Onclicklistener { private List<Pergunta> lista; private Context context; public PerguntaAdapter(Context context,…
-
1
votes1
answer246
viewsHow I read an Assets file as a string
How do I read as string an Android text file that is inside the Assets folder?
androidasked 10 years, 2 months ago Leonardo Otto 2,328 -
1
votes1
answer1138
viewsSpinner shows no selected item
I’m making a private List states = new Arraylist(); I am filling it correctly and displays the values in Spinner more when I select it changes the size as if it had selected but no longer displays…
-
1
votes1
answer102
viewsWhen I press play button nothing happens
I don’t know why it’s not working... Radioplayer.java package com.example.santanateste; import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import…
androidasked 10 years, 2 months ago Kauan Kubaski 477 -
1
votes1
answer1351
viewsHow to save objects list in Android
I want to save this list (List) after exiting the application, and when running again I want to recover the instance from the list that was previously saved. private List<BluetoothDevice>…
-
1
votes1
answer172
viewsIs there a tool to help optimize the layout?
It is sometimes common to doubt which layout to use, which graphic resources consume the most memory, and how to improve the layout in which the views appear. Is there any tool to help in the…
-
1
votes1
answer1608
viewsThe Android SDK emulator is very slow(booting and running), how to improve?
The Android SDK includes a mobile device emulator - a virtual mobile device that runs on your computer. The emulator allows you to develop and test Android applications without the use of a physical…
-
1
votes1
answer5276
viewsHow using actionBar appear icon + text of items?
I declared in the Manifest android:uiOptions="splitActionBarWhenNarrow" for actionBar and set the items as showAsAction="ifRoom|withText" appear at the bottom of the screen, follows the figure…
-
1
votes1
answer883
viewsError while running Android Studio
When opening Android Studio, there was a warning screen describing: Internal error. Please report to http://code.google.com/p/android/issues java.lang.RuntimeException: Duplicate registration for…
-
1
votes1
answer184
viewsHow to create "dynamic" blocks?
How to create blocks similar to the figure below, which can be created, removed, resizable (modify its size in relation to height and width) and can be placed in different places of the layout by…
-
1
votes2
answers208
viewsUsing Dialog in a Fragment
I implemented the Dialog method but is giving error and I am not able to solve, I would like a help follows my class public class Iniciar_Host extends Fragment implements…
-
1
votes1
answer479
viewsFailure [INSTALL_FAILED_OLDER_SDK]
I want to print a "Hello World" on the screen, created a new project with any name in Android Studio, clicked on "Run" and it returned me this error... I checked Androidmanifest and everything looks…
-
1
votes3
answers623
viewsWhat is the best way to share variables between 3 Activity’s?
I have the variables: photo_path audio_path commentary And I would like Textoactivity, Send Alertactivity and Audioactivity activities to share these variables and keep the same value regardless of…
-
1
votes1
answer118
viewsProblem at the playstore
I’m having trouble updating my app on google playstore, it points error in the form of "product details" but I did not Mechi anything there, this as always has been published. but always appears…
-
1
votes1
answer90
viewsDistorted Layout on the Tablet
Can anyone tell if it is normal an application made for Android mobile, when run on a tablet with Android system, get distorted? Some of the Imageview of my application got distorted, some got…
-
1
votes0
answers27
viewsMake an Order by date
I have the following class I want to sort her values by date public class ItemListAnuncios { private String texto; private String data; public ItemListPropaganda(String texto, String data) {…
-
1
votes1
answer121
viewsUse Notificationmanager in a class that is not Activity
I’m having a little problem and I’m not making it. The problem is this: I have a Fragment in my app, and I want to fire a notification from it. The line I’m having problems with is this:…
-
1
votes1
answer468
viewsHow to list the phones of all contacts?
I’m wondering: How to list all contacts(phone number and account name) of the cell phone?
androidasked 10 years, 1 month ago Pedro Rangel 2,747 -
1
votes1
answer692
viewsJava Android Merging Projects
Sometimes I need to use one project in another like a UI framework in my application or something like that and most of them are available in repositories like github etc, I usually download and…
-
1
votes1
answer231
viewsWhen to use onCreateView() vs onActivityCreated()?
I wanted to know the questions below: -When using onCreateView() vs onActivityCreated()? -Which of these two methods should I use to fill a listview with Adapter?
-
1
votes1
answer503
viewschanged the background of the button and stopped the action effect
I changed the background of my button to #000000 (black) and stopped performing the click demonstration (turned blue when clicked) <Button android:id="@+id/btNext2" android:layout_width="0dp"…
-
1
votes2
answers1713
viewsI need to squeeze my layout when I open the keyboard
I’m wearing a TableLayout that contain EditText, and when the focus is on EditText the keyboard opens and stands in front of important information, would like to be able to squeeze the layout when…
-
1
votes1
answer77
viewsHow to take parameter from inside the popup?
I have a screen where I select the pages, and when I clicked on the page opens a pop up where I can type the value of the pages instead of going by. (In case I have 60) the page is nothing more than…
-
1
votes1
answer162
viewsuse Viewpager to increment variable
well what I wanted was for my Viewpager to increment a variable within the Activity in which it was executed. Is that possible? just find documentation for different layouts my application has 1…
-
1
votes1
answer1621
viewsHow to customize a listview (scrolling)?
Given an Activity that has an Adapter to fill a contact list: If possible wanted to get the following result as in the image below: When scrolling up and down, show the initial letter of the element…
-
1
votes2
answers831
viewsWhat do I need to do to make sure my app isn’t recognized as an "Unknown Source"?
I would like to know what is the procedure I must follow in order to post my App on my site and users can install without having to activate the "Unknown Sources" option inside the Android Security…
-
1
votes1
answer1274
viewsAdd buttons to the bar action when using Listactivity?
Well I have an application that would like to keep the standard format on all screens, i have a quick access menu with some items in the action bar, and other complete in the menu option. The…
-
1
votes1
answer228
viewsSwipe to the right after left gives ANDROID error
I am creating an application on Android in Eclipse with 3 screen with Swipe horizontal, in the last tab I have a Map Fragment. But it turns out that when doing Swipe to the right the first time…
-
1
votes1
answer103
viewsAndroid: Inputstream
There’s a way I can change: InputStream is = getAssets().open("xxx.html"); for: InputStream is = ("http://www.xxx.com.br/xxx.html"); Maybe using Httpurlconnection but don’t know how to implement.…
-
1
votes1
answer60
viewsError: Using 1.7 requires compiling with Android 4.4(Kitkat); Current using API 16
Using a switch case with a string. Eclipse made a mistake and offered to switch to compiling 1.7. I accepted, now it’s a mistake and I can’t go back. How do I fix it? I want to change the language…
-
1
votes1
answer192
viewssetVisibility for an Imageview of a Grid
I have a grid with an image on each item. On top of each image has another smaller image (visa icon, to say that the item has been selected) only invisible. I’m trying to make when the person gives…
-
1
votes1
answer1710
viewsLogcat - Does not appear
I am making the Example 5 of the cap 3 of the book Google Android 3ºed(Ricardo R.Lecheta), where applying a filter to display on the logcat. only you’re not returning anything to me. package…
-
1
votes1
answer494
viewsDisplay an Image via URL
I have an image on the link http://187.45.142.241:8080/umamaoNovo/images/u184Tulips.jpg I wonder if it takes any function to display quick post need to display images in a Listview.…
-
1
votes1
answer179
viewsCould not find any version that Matches com.android.tools.build:Radle:0.12.+
I installed Android Studio, installed JDK, configured the environment variables (JAVA_HOME, JDK_HOME, PATH). I configured my proxy (I did the test and the connection works), and when trying to…
-
1
votes1
answer525
viewsAdd Facebook sdk 3.20.0 to Android Studio 0.9.2
I’m having trouble adding the Facebook sdk to Androido Studio 0.9.2. Always returns me the following messages Failed to find: com.parse.bolts:bolts-android:1.1.2 Some solution? I imported the module…
-
1
votes1
answer300
viewsIs it possible to create an agenda on Android Eclipse?
I need to create a "private" contacts schedule (other than the mobile API itself). For example: I have the BUTTON (A) and BUTTON (B); AGENDA (A) and AGENDA (B); When the user clicks the BUTTON (A),…
-
1
votes1
answer254
viewsToast validation and seat insertion
I’m taking a risk on Android, I’m very beginner and I’m having problems with my first entry in the database. I also need to validate the fields of my form before sending. If possible, a touch of…
-
1
votes1
answer235
viewsAlarm with malfunction
Good afternoon, I am having problems regarding the Alarmmanager in my project, I programmed for him to make an action from 10 to 11, and from 16 to 17 with intervals of 1 day. So the problem is that…
-
1
votes1
answer55
viewsDebug Sharedpreferences on Android
Is there any easy way to see everything inside my SharedPreferences? Something like for example: SharedPreferences prefs = this.getSharedPreferences( "user_access", Context.MODE_PRIVATE);…
-
1
votes1
answer201
viewsMake Listview background color invisible when using scrollbar
In my application has a listview and when I roll the scroll bar the background turns white , wanted to make invisible , no color leave only the color that is already at the bottom of the…
-
1
votes1
answer59
viewsHow to delete a record without affecting the query?
I have two tables PRODUCT and CUSTOMERS. I am using Inner Join to link them in my consultations. I call the product and it displays the product, picks up the customer from the CUSTOMERS table and…
-
1
votes1
answer2014
viewssuper.onBackPressed() or Finish()?
What is the difference between the methods? in the case of super.onBackPressed() can only be used within the right onBackPressed() method?
-
1
votes2
answers75
viewsRescue only the Multipart response body
I am trying to download a JSON file, it is sent to me via Multipart, I can recover it but I don’t want to save it in a physical file, so I am taking the return and converting it into string. My…
-
1
votes1
answer357
viewsHow to prevent Multi Touch from allowing touching two Listview items at the same time
I’m developing a Sales/Budgets application, and I’m having a problem with a listview custom, where the user is able to click 2 lines at once, calling 2 times the events and causing exception in the…