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
answer195
viewsHow to make an animation on a screen of "Splash"?
Does anyone here have any idea how I create an animation cashier’s app? I’ve already created an animation with image but would like to style the app from the box. Does anyone know how it works?…
androidasked 8 years, 6 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer58
viewsHow do you get that line out of Tablayout?
Someone here knows how to shoot that green line? Thanks in advance ^^…
-
0
votes0
answers1073
viewsLoad an Activity inside a Fragment with tabHost
I’m starting with the android studio reading some things and watching some videos on youtube, basically what I intend to do is a calculation program to make my life easier in my service, some simple…
java android android-studio android-fragment android-activityasked 9 years, 4 months ago Túlio Barata 11 -
0
votes1
answer61
viewsProblem with Chronometer
In the code, there is a variable running, indicating whether the timer is running or not: boolean running = false; And there’s a method StartStopTimer, that stops or starts the timer according to…
androidasked 9 years, 4 months ago João Victor Sierra 486 -
0
votes2
answers2514
viewsAndroid layout with colorful embroidery
Hello, Someone knows how I make rounded and colored edges on an android screen(layout). I believe there should be some configurable item in XML but I don’t know which and I’m not sure if it is…
-
0
votes0
answers75
viewsUse Asynctask to capture web page data in Android app
Good morning, another newcomer in android development. Going straight to the point, I would like to know how to call an Asynctask, which captures a String in a web page, within another class,…
-
0
votes1
answer438
viewsHow to change the color of Actionbar in the eclipse?
I’m studying how to change the color of mine ActionBar, but I can’t. I’ve tried everything but without success. This is my MainActivity.java: import android.support.v7.app.AppCompatActivity; import…
-
0
votes1
answer1266
viewsHow to update an apk without uninstalling the current one?
Google play apps updating without the need to uninstall. Does anyone know how the google update works? Thanks in advance.
androidasked 8 years, 6 months ago daniel12345smith 2,120 -
0
votes1
answer123
viewsHow to call Restful Web Services on Android application?
I would like to know how to develop an application that uses Restful web services? What library do I need to create an app with Restful-like web service?
-
0
votes1
answer65
viewsHow to take another dice instead of the String that was clicked in Listview?
I have a list of countries of the type Listview, and when I click in Brazil I get the String "Brasil" with the "getItem(position)" but instead I would like to take another data, in the case the "BR"…
-
0
votes2
answers65
viewsEclipse error with android language
Good morning, I’m trying to create an Android project, more appears this message, and when I create the project I choose Blank Activity it does not create gets stuck on the main_activity screen.…
-
0
votes0
answers53
viewsHide Tablayout title line
My application has a free version, with advertising and only one type of calculation, while the paid has no advertisement and today has two calculations and I will include another. What I would like…
androidasked 8 years, 6 months ago Daniel Tibúrcio 21 -
0
votes0
answers1373
viewsAdroid to modify spinner style
Hello, follow my spinner I’d like to leave it that way Follows codes Style.xml <!-- Base application theme. --> <style name="Theme.MyTheme" parent="Theme.AppCompat.NoActionBar"> <!--…
androidasked 9 years, 4 months ago Kleber Souza 451 -
0
votes1
answer378
viewsProblems when consulting a table for a webservice
I made a web-service I can find all services when I access the localhost in the browser but opening in SOAPUI and trying to make a query by all occurs the following error in SOAPUI?…
-
0
votes1
answer1060
viewsHow to put Navigation Drawer menu under the Action Bar?
Hello, I started a new project with the standard Navigation Drawer, a standard Android project, it comes with the menu that goes over the Action Bar, so: I’d like it to look like the image below:…
-
0
votes1
answer335
viewsNews API as a service
I would like to display random news from Brazil and the world in my app while the user is processing a request. Does anyone know any service/API that can provide me with a Json of I handle?
-
0
votes1
answer23
viewsimport android.content. *
When I add the line "import android.content. *", it turns gray. Without it I can’t open another activity. I tried to create a new project, but it still has the same problem. Does anyone know what it…
-
0
votes1
answer56
viewsDoubt about content Activity
Every time I create my second Activity, is generated two layouts for her. In my case was the activity_pincipal and content_principal. Why does this happen?…
-
0
votes2
answers180
viewsApplication is closed after a while, even with service
Hello I have a service that runs in the background, this service should not be finished by the Android system, but it happens after a run time. public class VerificaCorridas extends Service {…
androidasked 9 years, 4 months ago Mateus Carvalho 1,494 -
0
votes1
answer390
viewsHelp with Libgdx
I want to know how to create an event by tapping an image using Libgdx... I’m trying to start a game and added an image as Play button.
-
0
votes1
answer116
viewsInsert soapui into a webservice
when I try to make an Insert using soapUI the following error occurs: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544347. validation error for column CON_CODIGO, value "*** null ***" at…
-
0
votes2
answers145
viewsCheck Smartphone Current Time
I am always wanting to check the current time of my device and with this display a notification. But using this code, I can only catch the time I open the app How can I do this background check, and…
-
0
votes1
answer214
viewsProblem when trying to consume the webservice on android
I am trying to make a query through android in a database Firebird, the webservice is working perfectly but when trying to make the query through the application it generates the following error:…
-
0
votes1
answer97
viewsI cannot save a query in the Database. Shows error Unfortunately
I’m almost two weeks with this problem in my android code, I already searched in some forums and nothing, so I’m kind of desperate looking for help. I’m new dealing with android, if anyone can help…
-
0
votes2
answers64
viewsHow to store different ids for Edittexts with the same name?
I have an interaction and within it create several EditText dynamically, but how to keep the id for each EditText? My code: for (int j = 0; j < vet.length; j++) { EditText nome = new…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
0
votes1
answer102
viewsMysql with android
I looked in several forums on how to integrate mysql with android, simple thing, like list the data of a table saved on an external mysql server. Using normal java I managed to do using jdbc. I…
-
0
votes1
answer149
viewsAnother class Android Bundle(Adapter)
Good evening! I have the following situation : case R.id.item_cep: corPadrao = Color.parseColor("#4DC184"); imgCircle.setColorFilter(corPadrao); nomeRoteirizacao.setText("Por Cep");…
androidasked 8 years, 5 months ago Diego Dias Mól 41 -
0
votes1
answer287
viewsHow to pass data to Activity itself after the camera is called?
I have a Activity with a EditText and a Button. When the button is clicked, the typed text is saved in a Activity and the camera is opened with the method startActivityForResult(). When the user…
-
0
votes1
answer50
viewsIs it possible to install an apk without user intervention by putting prompt commands in the codeword or something?
Actually, it’s update I need to do, does anyone know if it’s possible to do this without user intervention? I just inform that there is an update close the application and update alone. I thank you…
androidasked 8 years, 5 months ago daniel12345smith 2,120 -
0
votes0
answers60
viewsSelect day of the week
I’m making an application in which the user must select if the action will be repeat on a certain day of the week, wanted to do something similar to what we have on the alarm clock of Android: What…
androidasked 8 years, 5 months ago Vitor Rodrigues de Marques 1 -
0
votes1
answer4030
viewsjava.lang.Nullpointerexception: Attempt to invoke virtual method on a null Object Reference
I’m trying to enter some values in the bank, but you’re always giving exception. My class that inserts in the bank: private String email; private int codigo; private Button btnOkay; private Button…
-
0
votes1
answer124
viewslibpng error: Not a PNG file
After I edited the icon of my application and I went around the emulator it appears to me with the following error: I’ve searched for images in another format, I’ve reviewed my code and nothing,…
-
0
votes1
answer198
viewsChange the source via xml
I have the sources of my app on : main > Assets >fonts Is there any way to pass directly into xml? (android:typeface="") Or just via Java ?…
-
0
votes1
answer165
viewsApplication to manage database in Raspberry pi
Hello. I need to develop an application for Android, to extract and delete a mysql database in a pi Raspberry, being in the same network. I thought about doing it per ssh, however, I never developed…
-
0
votes2
answers766
viewsSearch randomly in listview through editext on android?
Hello, I’m very new in programming, actually enthusiastic, look at me I’m kind of editext search the letter or word in the text so that for example if in my string is written "Mr. Jose Ventura" and…
-
0
votes1
answer876
viewsHow to activate Logcat ?
Hello, I’m making an app where I use Alarmmanager, I need to use Logcat but I don’t know how to make it appear in Android Studio.
-
0
votes1
answer88
viewsHow to change the message "x app stopped working" on Android?
I needed to change this text from my app, someone knows how? depending on the smartphone/tablet model the message comes different. Thank you in advance.
androidasked 8 years, 5 months ago daniel12345smith 2,120 -
0
votes2
answers582
viewsChange Toolbar Back Button Color
How I change the color of Back Button (or Button up) of my Toolbar ? When I run the application it appears black.
-
0
votes0
answers52
viewsAndroid - setResult not recognized
Hello, I have a screen with a list of "Profiles". When I click on one of these profiles goes to the register where I can update or delete this profile. When I update the profile and return to the…
-
0
votes1
answer333
viewsandroid.database.Cursorindexoutofboundsexception: Index 0 requested, with a size of 0
I’m having trouble adding some products to a listview by clicking a button error: 06-09 11:30:16.963 2847-2847/realsysten.com.br.sigarestaurante E/AndroidRuntime: FATAL EXCEPTION: main Process:…
-
0
votes0
answers296
viewsWhat is the best way to hide API Keys?
When you’re sharing a repository and don’t want the person to have access to the key of some API, what’s the best way to hide?
-
0
votes2
answers970
viewsClose all applications in the background except my app
I am thinking of an application that aims to close all other applications that are running in the background, however, leave only my application running. Does anyone have any idea how to do that?…
androidasked 8 years, 5 months ago Carlos Diego 683 -
0
votes1
answer301
viewsTabbar Android how to create
Someone has example of how to create tabs on Android, Whatsapp style? Follow the example I wish: In the example, I want to create Calls, Chats and Contacts tabs And finally, in the second image, how…
-
0
votes1
answer36
viewsVariable Calendar is not recognized by android
I am declaring so in my project and can not recognize the variable "Cannot resolve Symbol 'Calendar'" Calendar calendario= new Calendar.getInstance();…
androidasked 8 years, 5 months ago Tiago Coelho 739 -
0
votes0
answers497
viewsFix position of Relativelayout in Activity
Good afternoon. I want to fix the position of two RelativeLayout on the screen, but when the user changes the text of the TextSwitcher the RelativeLayout the one it belongs to increases in size, and…
-
0
votes0
answers26
viewsAndroid does not recognize Mockito Noclassdeffounderror
I’m trying to use Mockito to perform tests on an Android app. I copied the following jars for the project: Mockito-all-1.9.5.jar, dexmaker-1.0. jar, dexmaker-Mockito-1.0.jar. Then I added it to…
-
0
votes1
answer426
viewsCard View with Scroll
People started to make my application, but I forgot to put a scrollbar for it to slide. Result, the cardview went past the screen. I tried to add the Scrollview tag at first but it doesn’t work.…
androidasked 8 years, 5 months ago Artur Mafezzoli Júnior 441 -
0
votes0
answers81
viewsHow to download and display a file without being copied
whereas I have files in the formats .epub, .mobi and .pdf hosted on a server. Is there any way to download these files internally in an Android app, so that the downloaded files cannot be copied by…
-
0
votes1
answer1696
viewsjava.io.Filenotfoundexception: /Storage/Emulated/0/mesa.csv: open failed: EISDIR (Is a directory)
I have the following screen: i even asked another question, which was having trouble loading the directory files in the spinner and has already been solved, the problem is now by clicking the Import…
-
0
votes0
answers38
viewsProblems with uploading video to ftp
I have the following class: public class CameraReceiver extends BroadcastReceiver { private Cursor cursor; private MetodosUtils metodosUtils = new MetodosUtils(); private Context context; @Override…