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
answer29
viewsRestart service when killed by system automatically
I am using a Service to perform a task in the background, when I starto it by startService() and I put it in the way onStartCommand() return START_STICKY; it reboots whenever the system forces the…
androidasked 7 years, 7 months ago Mateus Carvalho 1,494 -
0
votes2
answers197
viewsAccording to Like does not work Sqlite
Good, when doing a query: Cursor cursor = database.rawQuery("SELECT nome, imagem, descricao FROM Marcas WHERE descricao LIKE ? OR nome LIKE ?", new String[]{name}); It only returns results through…
-
0
votes1
answer315
viewsLoad a Listview into a Fragment from a Fragment
I’m in the following situation: I have a Tabbar with 2 Fragments (Productofragment and Carrinhofragment). Inside the Productofragment I have a Listview with an add button that triggered, adds an…
-
0
votes0
answers32
viewsRxjava receiving the data
How to separate this array into 3 arrays, like one for gradesList, one for faultList and one for classList. To use Rxjava. [Gradelist(gradesList=4.5, faultList=5, classList=Math),…
-
0
votes1
answer239
viewsReact Native shows error when I try to emulate Android
I have an app that should be tested on an Android emulator. After setting the React Native and Android environment (including the environment variable). I can’t run my app on Android emulator.…
-
0
votes1
answer709
viewsHow to make a Dynamic Listview generated with Barcodescan data?
I’m a beginner in Java/Android, and I want to make a listview is created from the "Scans" made using Zxing. In case I have the screen with the button to scan and in it is displayed the answer of the…
-
0
votes1
answer39
viewsBack to another dialogAlert
I have a process capture system on Android in which when detected something suspicious, it emits an alert window with some options. I would like to know how I do for when I open any of these…
-
0
votes1
answer2271
viewsHow to add a button in Action Bar?
I would like to put only one button in the Action Bar. follows an example image of the internet.…
-
0
votes1
answer954
viewsHow to pass a List using Intent from an Activity to or Activity
I need to pass List<Carro> carro using Intent of a Activity to or Activity. Car is a class with several elements String modelo, String categoria Double potencia…
-
0
votes1
answer135
viewsHow do I make the app icon appear in the action bar?
by default it was to appear but it is not appearing I found this question Application icon does not appear but the answer did not answer me.…
-
0
votes1
answer748
viewscreateNewFile java.io.Ioexception: open failed: EACCES
I am trying to create an excel file in a public directory with my app but am getting the following error: java.io.IOException: open failed: EACCES (Permission denied) at…
androidasked 8 years, 9 months ago Fernando Ferreira 39 -
0
votes1
answer379
viewsChanging Listview font color and style does not work
Hello, I am still a baby in programming, I can not deny that I have advanced and vcs have helped, see well I have a listview with search, that the list comes from a string array, the code itself…
-
0
votes1
answer380
viewsView Route Google Maps button automatically
I have the following method for creating the Marker in the App: private void createMarker() { MarkerOptions mo = new MarkerOptions(); LatLng latLng = new LatLng(mObjetoResumo.getLatitude(),…
-
0
votes1
answer89
viewsIonic1 + input [type=file] does not work; How does it work?
In my project, has a file type input that Chrome works correctly, Ios not tested and Android input does not work. Is there a Cordova plugin that makes the input file work or some javascript solution…
javascript android angularjs html5 ionicasked 7 years, 7 months ago Diogo Henrique Fragoso de Oliv 352 -
0
votes1
answer84
viewsError with setOnTouchListener
Eae, I’ve been getting the second error while running an app on Androidstudio /AndroidRuntime: FATAL EXCEPTION: main Process: com.example.vinicius.login, PID: 3519 java.lang.RuntimeException: Unable…
-
0
votes0
answers35
viewsHow to pass selected item between Activities
At the moment, I am doubtful to make the item clicked on that screen http://prntscr.com/eyjdzo appears selected on that screen http://prntscr.com/eyjecw…
-
0
votes0
answers47
viewsGenerating in Android Studio
I have an error in android studio and I’m not knowing what it is, you could help me? Error:Android Source Generator: [cap3] Androidmanifest.xml file not found…
-
0
votes2
answers2211
viewsHow to make INNER JOIN between tables on android Sqlite?
I would like to know how to do a more elaborate query using INNER JOIN to join two tables in Sqlite for android. I know how to query using INNER JOIN in Mysql. What I want to know is how to make…
-
0
votes1
answer220
viewsAndroidmanifest.xml error 'class' or Excepted interface
I screwed up and Manifest doesn’t recognize the Activitys name <activity android:name=".Login" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar">…
-
0
votes1
answer219
viewsError translating strings previously marked as untranslatable
Hello, has anyone ever been through this? I checked some strings like Untranslatable in the Android Studio String Editor just to speed up the release. In this update, I opened again the Android…
-
0
votes2
answers488
viewsDelay in loading Recyclerview
It is normal to take 3 seconds to load a recyclerview with data of 16 thousand records in sqlite? Is there any way to optimize the load? Code here…
-
0
votes1
answer455
viewsCustom listview
I am trying to make a Custom Listview. I have my XLM <ListView android:id="@+id/listViewCliente" android:layout_width="match_parent" android:layout_height="wrap_content"…
androidasked 7 years, 7 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer47
viewsError closing Intent.ACTION_VIEW
I preview an image with Intent.ACTION_VIEW and when closing the following error occurs, I’m guessing it is in Mainactivity.class: E/AndroidRuntime: FATAL EXCEPTION: main Process:…
-
0
votes2
answers1198
viewsSummon Fragment within Fragment
I am developing a chat. I have a Mainactivity in which I invoke a Fragment (which extend baseAdapter), where I list all contacts in a listview. By clicking on a contact, I want to open a new…
-
0
votes1
answer577
viewsSending location to webservice
Hello, I have a problem, I have a service on android that captures the user’s location in a certain range. Captured I send to the server, where it will pick up this location and save in the…
-
0
votes0
answers55
viewsFlipper with text on Android (Android Studio)
I am creating an app in Android Studio and would like to know if there is any way to do a back and forward by swiping your finger (Flipper I think) calling the next text. So far I already have…
-
0
votes1
answer28
viewsThe string did not come empty so calls another Android screen
The goal of the Android app is as follows; I statically loaded a list of people into the Person entity, so the tela_activity class would identify whether the list would come empty or filled in, if…
-
0
votes1
answer45
viewsUsing Media in Android Studio
Hello, good morning. I have an audio in the raw folder, a few seconds long. I want to use this audio when the application opens. When the app starts, it will already start with the audio playing.…
-
0
votes1
answer271
viewsElevation is not displaying the shadow
Despite defining the elevation us RelativeLayouts, the shadow does not appear in the component. What can be? Below is my layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout…
-
0
votes1
answer218
viewsNotification with Onesignal
I am using Onesignal to notify my Android users. Only that notifications only appear to those who on the day have already opened the application. Have some service that can be put into the app to…
-
0
votes0
answers32
viewsFind out if the user has printed the app screen
I would like to know how Snapchat does to know if the user gave a screen print.
androidasked 7 years, 6 months ago Rafael Silva 944 -
0
votes1
answer806
viewsjava.lang.Runtimeexception: An error occured while executing doInBackground()
Once the user informs some data about the book, the app displays a list of the Google Books API with information about the book, was doing some tests and some words correctly return the listing and…
androidasked 7 years, 6 months ago Aline Ramos 82 -
0
votes0
answers360
viewsbarcode in android printer Bluetooh
I can print anything but the barcode I currently use: byte[] cmd = new byte[3]; cmd[0] = 0x1b; cmd[1] = 0x21; cmd[2] &= 0xEF; out.write(cmd); out.write("Mensagem de teste \n".getBytes()); The…
-
0
votes0
answers90
viewsClick Framelayout does not work with Listview inside
I have the following situation: I have a main layout that contains a listview inside. This listview keeps some distance from the edges of the layout and I positioned an External Layout literally…
-
0
votes1
answer352
viewsHow to catch the state of toggleButton Android?
How to catch the state of ToggleButton if this on or off, I looked at the Android documentation only has the method of changing the state, I needed to get the status of the button to make the…
-
0
votes1
answer36
viewsIs it necessary to add Microsoft.net.http? monoAndroid?
I am trying to get my app to pass data through a web api. Try to put the Microsoft.net.http package on nugetPackage but it will backfire. If necessary, how do I fix it? The
-
0
votes2
answers70
viewsChange background color when Listview has no items
Is there any way to customize a listView besides the textView default? The screen is empty obviously, but would like to change the background color only when searching not to display the results.…
androidasked 7 years, 6 months ago Aline Ramos 82 -
0
votes1
answer167
viewsFAB + Nullpointerexception button
I suppose it’s a simple problem, but I can’t visualize the solution. I created a floating button (FAB) in a Fragment on Android, and when trying to configure Clicklistener, I get a Nullpointer…
-
0
votes1
answer111
viewsBest format to work with sum of money in android
I am having some problems when performing sums of decimal values in my application, the variations that occur are not of great difference, but as I am dealing with total amounts of money, I would…
androidasked 8 years, 8 months ago Fernando Ferreira 39 -
0
votes1
answer232
viewsTake the name of an item within an array in strings.xml
I have the following array: <array name="Codes"> <item name="Vermelho">e74c3c</item> <item name="Azul">3498db</item> <item name="Rosa">FC14E5</item>…
-
0
votes1
answer57
viewsHow to migrate from Notificationmanager to Notificationcompat in API 23
according to the title, I am that problem. I am novice at this and am not managing to migrate to API 23 (Notificationcompat). Could you help me? Follows my code: @SuppressWarnings("deprecation")…
androidasked 8 years, 8 months ago msaulohenrique 3 -
0
votes0
answers261
viewsProblems with startActivity error Channel is unrecoverably Broken and will be disposed!
My application is closing unexpectedly while doing a button event in the top menu. When this happens nothing is appearing in the Logcat I’m following the pattern like this: Within a activity I put…
-
0
votes0
answers47
viewsContext error in internal method the class that extends asynctask
Hello, I posted the full code. The compilation error occurs in the playmusic class. Thank you for your attention! public class Agendador { //Toolkit toolkit; Timer timer; public Agendador() { //…
-
0
votes0
answers169
viewsHow to open a PDF file in listview items?
I created an Arraylist list and wanted to open pdf files in it, but I am storing the pdf files in res/raw folder and when calling in String ("res/raw") the file just doesn’t open, which I do?
-
0
votes0
answers62
viewsHow to put the Accelerometer method in my app
I’m creating a Java app with my friend, and I wanted to put an image with an accelerometer that moves around the screen avoiding obstacles, but I’m having a problem the video I saw (only one I…
-
0
votes2
answers166
viewsMisaligned floatingactionbutton
Hello I have a Tablelayout created dynamically, and I want to insert a FAB on the screen. The problem is I can’t get the normal alignment in the lower right corner. Am I missing a parameter? Follow…
-
0
votes1
answer158
viewsActivity Lifecycle + system.currentTimeMillis()
This activity is about life cycle on Android, I read several materials but I’m still lost? Can someone please explain.…
-
0
votes1
answer24
viewsDisplay data from a 2d array in Reactnative
I have this array, and wanted to show the data contained within it as I do? var questions = [["test ss aa","test asdd as"],["test a","test asxc a"],["test xs aws","test scaca"]] Thank you…
-
0
votes1
answer458
viewsFragment with recyclerview closing application
Let’s go I need to make one fragment where information will come from little to little, I am using the method of RecyclerView to develop this. The whole idea is to get comments from a certain item.…
-
0
votes0
answers219
viewsStrange character bug in Android Studio UI
Has anyone ever witnessed a similar problem?…