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
-
3
votes1
answer1291
viewsFolder permission only for Android application
Is there any way to make the files in a folder on sdcard accessible only from the app? (something like chown and chmod) Not necessarily read, but prevent removal and editing through other…
-
3
votes2
answers4535
viewsHow to apply internationalization in an Android app?
How to apply internationalization to an Android app? On the app’s play store publishing page, is there a tab on translations, just enough? How to apply? Or is there another way? I’m in doubt because…
androidasked 10 years, 2 months ago Thiago Porto 292 -
3
votes1
answer388
viewsProblem with android conversion
I have a date that’s being returned from a Webservice like this: Sep 22, 2014 12:00:00 AM I would like to convert it to the following format? 22/09/2014 I tried some methods using the Date Android…
-
3
votes2
answers5118
viewsUpload android images to Server folder
How can I upload an android image to a folder on the server? I have the address of the folder that I can use to save image, I am already using this address to be able to grab the images but now I…
-
3
votes3
answers1649
viewsSend email with STARTTLS porta 587
I need to send an email using client settings. Host access uses STARTTLS security using port 587. For testing I set up the following code (I changed the customer data for security): try { String…
-
3
votes1
answer198
viewsOnly the first checkbox is set from a listview by clicking anywhere in the item
good morning. I’m new to the forum and beginner to android. I created a Listview through a Base Adapter, with selectable checkbox, so far so good. But when I click anywhere on any item, only the…
androidasked 10 years, 4 months ago Marcelo Viana 95 -
3
votes1
answer1426
viewsIs it possible to create a Listview Android Horizontal?
Problem I need to implement a ListView horizontal, to create a horizontal navigation bar over my Product Gallery in my Sales Catalog. With the intention of making navigation but intuitive and easy…
-
3
votes1
answer577
viewsMultiple alarms with Alarmmanager
How to set more than one alarm with the AlarmManager? I recently created a topic about services, and not to engage too much I decided to create another: Look at the code I’m using: Calendar calendar…
-
3
votes2
answers1369
viewsConfigure "Activity" hierarchy in "Androidmanifest"
I’m trying to figure out how to set up a Activity to return to the Activity previous in AndroidManifest?
-
3
votes1
answer1352
viewsGenerate 10-character random alphanumeric code
I have today an application that is presenting data divergence because of the return time of a webservice. To get around this we created a code to prevent this particular information from ever…
-
3
votes1
answer1503
viewsHow to modify XML elements with Java?
I have never worked with XML before. I created the following XML configs.xml: <resources> <string name="ip"></string> <string name="username"></string> <string…
-
3
votes1
answer178
viewsHow to make a Listview update a title at the top, as I scroll the same?
I don’t know how to explain very well what I want without pictures, but I need to learn how to make a Listview that changes title as you go down... It’s basically like in HTML when you do long pages…
-
3
votes1
answer2284
viewsUsing Imagemview to upload gallery photo
I want to make a program that I upload a photo to a ImagemView from the Android gallery. I need a code to open the gallery and save the image as if it were a profile.
-
3
votes1
answer92
viewsManipulating buttons on list items
Guys I’m having a problem on my list. In my list is equal to the image below: Arrows should consider the number of goals of the corresponding textView, but this is not the case. Regardless of the…
-
3
votes2
answers208
viewsSend geolocation to web service and update to other devices
Well I couldn’t come up with a good title for the question. But I am with the following problem, I am wanting to make an app like Easy Taxi, I will take the customer’s location and send to the…
-
3
votes2
answers361
viewsLoad Javascripts to Webview Android Kitkat
I have a native app with Webview where I upload a set of pages with a ViewPager. For each Page I create an instance with Webview loading an html via loadDataWithBaseURL. As I depend on some…
androidasked 10 years, 3 months ago JamesMartins 97 -
3
votes1
answer1006
viewsHow is it possible to make an Activity appear only once to the user?
My plan is the following: In my project I have 2 Activitys; these two activitys are only welcome to the user, so I would need it to appear only the first time the user starts the application. I…
-
3
votes1
answer90
viewsDiscontinued setDefaultPushCallback and trackAppOpened methods
While using Parse, I noticed that some methods used in PARSE’s own site examples are discontinued (deprecated), among them the PushService.setDefaultPushCallback and the…
-
3
votes1
answer55
viewsNoclassdeffounderror when implementing Espresso Idlingresource
I need to warn [Espresso][1] to wait until my Activity is idle. For this I am using the interface IdlingResource. This is all my Activity code: public class MyActivity extends Activity implements…
androidasked 10 years, 3 months ago Androiderson 1,249 -
3
votes1
answer1628
viewsSpinner with states and cities?
How does a spinner with states and cities of Brazil? By clicking on the state, list the cities? What is the way to do this? An all-registered bank? Sqlite? Need a model ready for states and cities?…
-
3
votes1
answer293
viewsLog into android application when errors occur
Hello, I wonder if there is any way to send the application log, or perform some action when an error occurs in an android application (when the message is exeibida: "The application stopped…
-
3
votes2
answers1046
viewsProblems with using Phonegap
I’m trying to use Phonegap for the first time, but I’m having problems. I already had Nodejs installed, I was able to install Phonegap with npm install phonegap without problems. Then, as you…
-
3
votes2
answers2173
viewsChange "with.example" from an android app
I am trying to put an application in the Playstore, but the following error appears: "You have to use a different package name because "com.example" is restricted." The thing is, I’ve already…
-
3
votes2
answers442
viewsHow to add "android-support-v13.jar" to my project?
I’m following the book "Android Application Development for Dummies" and arrived in a part of the book where it says the following: Copy the android-support-v13.jar file to your project’s libs…
-
3
votes1
answer1582
viewsip camera streaming
I need to make an app to connect to an ip camera the camera I have is the dcs-932l - d-link I need some hint, research or example. tried with Videouri believe that not…
-
3
votes1
answer832
viewsStandards for Android Development
Does anyone know where I can find the standards for Android development? Since: Name of Views Class name Activities Resources
-
3
votes1
answer141
viewsError 405 when using Httppost on Android
By making a post to the server via Httppost Android get a 405 error. Other applications do the same post successfully, only when part of Android I get this error. Someone knows the reason why? My…
-
3
votes1
answer791
viewsHow to call the application "call number" in a webview?
I have a part in my application that is a webview, how to make so that when clicking on the webview phone, open the call Intent?
-
3
votes2
answers5853
viewsHow to decode a JSON Array on Android
The need to decode a JSON Array thus: output: [ [{ }, { }], [{ }, { }] ] I was doing it in a way that decoded a Array that way: output: [{ }, { }, { }] Code of how I was doing: Method to convert to…
-
3
votes3
answers3144
viewsAVD does not carry
I use android a little while and after I formatted my note and installed the eclipse/android emulator just doesn’t work. It does not load, just stands there, but does not give error or anything.…
-
3
votes1
answer1195
viewsError when another class calls an Activity method
In the monitoring it sends an SMS to a device that responds with another SMS and update the screen and at the moment it calls the method to update the screen of the error. Error log: 01-14…
-
3
votes1
answer316
viewsTouch events Swipe, swipeRight and Left do not work on android 4.4.2
The touch events do not work on Android 4.4.2 someone would know how to solve this?
-
3
votes2
answers665
viewsHow to send calculation performed in a Service for Activity?
I would like to perform a simple calculation on a Service and return the value to the Activity who called him. To take the value of the variables of Activity I call the getDoubleExtra(double) of…
-
3
votes3
answers6632
viewsFloat button
How to put a floating button, like Gmail, which is to write a new email, in the application? It is possible to change the icon of this button via programming?
androidasked 9 years, 10 months ago César Alves 293 -
3
votes1
answer1569
viewsIs it possible to join two audio files in one on android?
Example: Audio A + Audio B = Audio C. I need the sounds to come together even, not concatenate. The format may be WAV, but I would prefer MP3. I found some examples on the net, but none worked.…
-
3
votes1
answer4720
viewsHow do I put a CSS box-shadow-like effect on an Android layout?
Ex.: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:layout_marginTop="10dp" android:background="@drawable/bg_white"…
-
3
votes2
answers240
viewsHow to isolate gravity in the accelerometer
I’m developing an app in which the user needs to shake their phone to all directions and the smartphone needs to maintain stable guidance in the meantime. The problem is that all ways to achieve…
-
3
votes2
answers437
viewsClosing Previous Activity makes the app faster?
I was developing an application for Android and I came up with a question: In my main class MainActivity i have the function setContentView that initializes my screen, but if I want to open other…
-
3
votes1
answer945
viewsHow to write mathematical symbol in android xml button?
How to write mathematical symbol in Android xml button as root n of x, x high n, would have to do so typed and not with picture.
-
3
votes1
answer1046
viewsHow to work securely on an Android+API?
I need to develop an API that will receive data from a json user via $_GET with PHP, which will check the data and return a true or false value to the Android application. I am currently using AES…
-
3
votes1
answer413
viewsPrevent the exchange of orientation from updating the Activity
I have a problem, an Activity of mine has a list of multi-selectable objects, with the long click I can select several of these objects and click the remove button, when I click to remove, appears a…
androidasked 10 years, 1 month ago felipe.rce 1,969 -
3
votes1
answer608
viewsWhen you have a reference in Fragment through getActivity() should I use an interface?
My doubt is knowing the best way to work for the organization of methods, I will present 2 implementation options that I am in doubt, whenever I have in Fragment a reference through getActivity() I…
-
3
votes1
answer15733
viewsHow to change the name in the android app package?
The current name of my package is com.newapp.nomedopacote. Well, in case I want to change it to com.newapp.novopacote, without damage to the application. I tried to simply make a refactor and it…
-
3
votes3
answers2263
viewsHow do I show icon in the Bar action when item is in overflow?
I wanted the item called also to appear on your side your image: The result I would expect would be this: Activity code with help from @Alexandre Strevenski: import android.app.Activity; import…
-
3
votes1
answer1222
viewsHow to get the result of an asynchronous task on Android?
I am trying to redeem the value of my API using .get() but it’s always falling in Exception, I believe I’m not doing it properly. private static String APIAddress =…
-
3
votes1
answer5015
viewsChange "button" color by clicking on it or validating text fill
Hello guys I’m having trouble getting the button to change color when the fields EditTexts are filled and return the initial color when the fields are empty and also change color when pressed.…
androidasked 10 years ago Francisco Tavares 31 -
3
votes1
answer1419
viewsAPP Communication with Web Server
I would like to know the best way, in terms of security/performance, to make my mobile/android application communicate with a web server (apache/php, for example) to receive/send data. The idea is…
-
3
votes1
answer109
viewsHow to lock a layout on ORIENTATION_LANDSCAPE and another on ORIENTATION_PORTRAIT
I’m using the method for when change of layout change position but when start application in landscape it starts layout teste_01 landscape mode being that its format is portrait how to fix it. if…
-
3
votes4
answers3216
viewsHow to know if the app is open
I wonder if there is how to check if the application is open, with user using it or if it is in the background and he is using another application. Depending if you have it open and user using it I…
-
3
votes1
answer1604
viewsWebview on Android, modifying HTML
I’m able to upload the URL to my device, using the Webview, but the page that loads is not adapted for mobile devices. I wonder if there is a way I can access the page, but eliminating some parts of…