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
votes2
answers142
viewsCalling the same condition in the code
//Função para verificar existência de conexão com a internet public boolean verificaConexao() { boolean conectado; ConnectivityManager conectivtyManager = (ConnectivityManager)…
-
0
votes2
answers5728
views -
0
votes0
answers54
viewsHow do I identify where the flaws that Google Analytics returns occur?
I am receiving by Google Analytics the following flaws: NullPointerException (@ViewGroup:dispatchDraw:2879) {main} NullPointerException (@ViewGroup:dispatchDraw:2859) {main} But I don’t know how to…
-
0
votes1
answer94
viewsWhy does Clear remove the R class from the Android project?
I lost an entire project because I ran a clear on the Android project as it removed the R class. Why does that happen? How do for Android project generates again the class R?
-
0
votes0
answers279
viewsPlay music on my Android app
I’m wanting to make a list with song names , and when I click on some list item play the song. Does anyone know how to do this? I was looking around on websites and I found this: public void…
-
0
votes1
answer80
viewsWill Facebook approve an Android app with facebook4j?
I decided to use the facebook4j library because it is easier for integration and even for development itself, in my opinion. My question is: facebook will accept an android app with facebook4j?…
-
0
votes1
answer887
viewsWhat is the SQLITE directory?
Where’s the SQLITE database I created in the android studio IDE? I searched and didn’t find it, and I couldn’t find it in the phone itself .
-
0
votes3
answers2766
viewsGet id of the last record inserted in the database
I was wondering if I have how to insert a record in the database and already returns the id of this record in android sqlite use this method to insert public boolean insertH(HistoricoObjeto…
-
0
votes1
answer484
viewsSetting a view at the bottom
Currently I use this code to put Adview in the Bottom, but when adding a Scrollview, it is fixed at the bottom of the list and not at the bottom of the screen. -- <RelativeLayout…
-
0
votes1
answer1521
viewsHow to take the margins of the Android layout
I want to remove those marginsazul for my line verde catch the layout and not be left with any margin, but without removing the padding of RelativeLayout It is the Actionbar vermelho who is with a…
-
0
votes0
answers33
viewsHow to put longclick menu?
Like to know, how to put those edit and delete options when we run Longclick from listview. If it is possible to at least inform me the name or give an example, I thank you.
-
0
votes1
answer612
viewsLoad spinner inside another
I wanted to know how when selecting a spinner item, another spinner is filled with an Adapter. I tried this way: @Override public void onItemSelected(AdapterView<?> arg0, View arg1, int…
-
0
votes1
answer802
viewsExpansion file stopped working when updating APK version
I recently updated an APK and chose the option to reuse the expansion file (this file contains videos). Old version 1(1.0.0) -> main.1.br.com.myapp.obb New version 2(1.0.1) -> selecionei o…
-
0
votes1
answer581
viewsAndroid app initializing with Side Drawer Menu always open
It’s a very simple question, but how can I solve this problem? Every time I start the application it is with that side menu suspended always open. public class NavigationDrawerFragment extends…
-
0
votes1
answer1201
viewsDynamic notifications, through parameters, on Android
I want to create a dynamic notification on Android, where I can change the title and the text that is displayed, through parameters. I’m actually doing it this way: Home class. @Override protected…
-
0
votes2
answers10894
viewsChanging Actionbar Color in Style
I’m studying to develop Android applications, I’m making an App, but I can’t change the color of my Actionbar. I’m developing for Android Kitkat. This is my style.xml <resources> <!-- Base…
-
0
votes1
answer683
viewsDoubt about canvases of a questionnaire (quiz)
I’m making an APP like this from the image below. My question is how to do, for example as we can see, has 35 questions and is the first being answered, in which case has to have 35 Activity? What…
androidasked 9 years, 11 months ago Emerson Moraes 323 -
0
votes2
answers1997
viewsSave user input in edittext
I’m new using Android Studio and would like to save the user entry in a edittext And even if the user presses the back button or closes the application the typed text remains on edittext I wonder if…
-
0
votes1
answer984
viewsAndroid - Application restarting after minimization
I have an android application, where I only have a screen that is a Webview. However, when the user accesses a page of the site, for example: meusite.com.br/contact and minimizes the app. When he…
-
0
votes0
answers52
viewsHow to use "setViewBinder" in my Adapter for Listview
How do I use setViewBinder in my Adapter? In Simplecursoradapter I can: SimpleCursorAdapter adapter = new SimpleCursorAdapter(getActivity().getBaseContext(), R.layout.lista_chamados, cursor, from,…
-
0
votes1
answer878
viewsUsing Intent.ACTION_SEND share text on facebook
I’m using the code below to share text with facebook. The problems is that other networks work, but facebook is blank. Someone’s been through it? Intent compartilha = new Intent(Intent.ACTION_SEND);…
-
0
votes1
answer46
viewsFirst item of a duplicated Arraylist
Hello, I have the code below that seems to be working correctly, the problem is that the first item in the list either goes blank or copies the data of the last item in the list. public class…
-
0
votes1
answer337
viewsdebug.Keystore on Mac to generate hash
I need to generate the hash of my Mac to add on Facebook and be able to continue the application I’m developing, where you need to login. I’ve executed the command in several places but when I put…
-
0
votes1
answer114
viewsError reopening Map in Fragment inside Drawerlist
I’m developing an Android app and I’m having a navigation problem between Fragments. I created a drawerList and in it I have some Ragments, in one of these Ragments I have a map, when I initially…
-
0
votes1
answer364
viewsProblem with android/java camera
When opening the Camera or trying to get photo from the album the Internet that calls these functions ends, I call with: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File f = new…
-
0
votes1
answer78
viewsDeserialize Json
How can I deserialize this json? I am learning now communication with web service and I have arisen this doubt, I managed to get the return of web service follows my code: private void…
-
0
votes0
answers567
viewsDrag list item to the side
I was going through my phone and I saw a feature that I would like to use in my apps , when I enter contacts there I pick up a contact and drag it to the left picks up an event to send sms and when…
-
0
votes0
answers1356
viewsHow to get the date that the user put in the calendar?
I’m making a program in which you need the user to put the date of their commitment, and what happens my application will send a notification to him two days before the commitment so that the user…
-
0
votes1
answer574
viewsAnimation on the Floating Action Button
Does anyone know how to do the Floating Action Button animation shown in the video below? https://www.youtube.com/watch?v=oVKQfCZ3z2g&feature=youtu.be I decompiled the apk of this app and could…
-
0
votes1
answer68
viewsProblems with Asynctask in second Activity
I have a app which must carry out the following procedure: Main_Activity has a button, that when clicking, directs to a second Activity (Checkdata). This, in turn, has a textbox which obtains data…
-
0
votes1
answer150
viewsHow to use robolectric in Android Studio
Hello, I’d like to know how I use robolectric in my projects on Android Studio. I have tried several tutorials, but none was of great help and the documentation of it is not very clear.…
-
0
votes1
answer593
viewsDifficulties with Ionic framework and android sdk?
I’m starting to work with the Ionic framework, and I’m having some difficulties when it comes to building (build) the application. when I execute the command ionic build android returns the…
-
0
votes1
answer822
views"FATAL EXCEPTION: main java.lang.Nullpointerexception" error on android
My code is so private void makeJsonArryReq() { showProgressDialog(); JsonArrayRequest req = new JsonArrayRequest(Const.URL_JSON_ARRAY, new Response.Listener<JSONArray>() { @Override public…
-
0
votes1
answer218
viewsMost suitable API - Opengl ES 2.0 x Canvas x Drawable
Good morning, I would like to make an application for Android to do the following: display the plan of a home on mobile, and the user touch a room on the screen, the color of the room change. I’m…
-
0
votes1
answer747
viewsProblem with Google Maps when creating . apk
I’m creating an app for Android that uses the Google Maps API. Just that I’m having problems when I create the . apk and install on mobile, is giving this error: 09-18 16:05:07.631…
-
0
votes1
answer384
viewsListview android , marks items wrong
I have a list where I mark the items as follows :view.setBackgroundResource(R.drawable.active_row), Every time I click it needs to set the color. When I click again, it arrow the dark line. So far…
-
0
votes2
answers3316
viewsHow to open a folder on android
I wanted to open a directory on android, I tried so: public void openFolder() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); Uri uri =…
-
0
votes1
answer270
viewsDisplay current date in Viewpager manipulated layout
When I click on a Main Activity button, a Viewpager is created that allows me to move between 7 layouts that I have. The pager is set to present first the layout called "domingo.xml" and everything…
-
0
votes1
answer2033
viewsEnable/Disable GPS via Delphi
There’s some specific code to enable the GPS, but I haven’t found it yet. What I saw online was: Post na Stack - On/Off GPS however, this code is in JAVA. Whatever he could ride in Delphi was: var…
-
0
votes1
answer128
viewsGeolocation in html
In my application I have a webview, and it has the address link, I wanted to appear the doll informing the location. As I call in html?
-
0
votes2
answers325
viewsError to call Activity
I’m having trouble calling another activity. Follows code from Activity: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes0
answers141
viewsNavigationdrawer with Expandablelistview
I need to make one Drawer as in the image below, except for header of the items. I need the list to have the items and the subitens. And only if the item has subitem show the arrow to expand. I’ve…
-
0
votes1
answer342
viewsFetch data from a particular column and display them in a Spinner
I’m searching for the Sqlite database records and displaying on a Spinner, but Spinner is displaying all the table records, and I need to display only the records of a particular column . I tried to…
-
0
votes1
answer282
viewsHow to call an Activity from a Baseexpandablelistadapter?
I would like to call an Activity from the click of a button, but it does not work because the source class is not an Activity, but a Baseexpandablelistadapter, there is a way to do this? Code:…
androidasked 9 years, 9 months ago João Filho Freire Lopes 107 -
0
votes1
answer86
viewsAndroid: Unfortunately, Sample has stopped
I’m creating an application but in case it gives problem when running to a certain point, I want to transform geoi = 0; and Mati = 0; , and when I add any number in edittext it will put that number…
-
0
votes1
answer555
viewsTake position of the arraylist that is in focus in Viewpager
I have an arraylist of images that is shown in a Viewpager, so far so good, this showing all the arraylist normally. But how do I get the Viewpager that’s in focus? That is to take the right…
-
0
votes1
answer200
viewsHow to get a Drawable id by name
I tried it like this but it’s returning 0 try { String nome_foto = itens.get(position).nome_foto; int drawableId = context.getResources().getIdentifier(nome_foto, "drawable",…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer384
viewsTextview is out of Relativelayout (with rounded edges)
I’m trying to make the items on my list look like figure 2, but they only look like figure 1. I did a lot of research on it, but I found very little about it (I don’t really know what to search…
-
0
votes0
answers294
viewsReference to objects
To what extent a reference to an object is exactly equal to it? I’ll explain my situation: Within a Adapter, i need to print a particular item in a list. The criterion for coloring that item is in…
-
0
votes2
answers5266
viewsI can’t remove the title bar from the android app
I’ve tried using android:theme="@android:style/Theme.NoTitleBar", but when I run my app it gives error.