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
-
2
votes1
answer92
viewsWebservice php without using Soap?
I have no familiarity with Webservice and wanted to know how to make one without the need to use Soap (to take data from the database and consume in Android Studio).
-
2
votes1
answer395
viewsCalendar.MONTH returns incorrect month
I’m developing a method where I can get the date, month and year, to create a security key to connect to the server. Only I already checked the date of my emulator and my mobile phone is correct,…
-
2
votes0
answers139
viewsRequesting running permissions on Android Marshmallow
I’m working on a app integrated into the services of GoogleMap. The app was working perfectly but I want to add the controls of permissões for use in API23 (Android Marshmallow). I studied the part…
-
2
votes1
answer91
viewsUse Datepicker in an Activity
Hello! , I am trying to make a datepicker part of the Activity layout as shown below: I’ve been searching the Internet, but all the examples I find speak of Datepickerdialog, and that’s not what I…
-
2
votes0
answers184
viewsHow to change HTML input values with Edittext using Webview?
Is there any way to change a form field by taking the Edittext value, using a Webview client ? I have an application in which accesses my site and there are 2 fields, a user and another password,…
-
2
votes1
answer825
viewsCheck if the value already exists in the txt file
I am developing an inventory application that in its freeware version will work with the data inserted in a txt file line by line, the data structure will be as follows Barcode + Description +…
-
2
votes1
answer47
viewsHow to manipulate the returned object by envelope.getresponse()?
I’m having difficulty to catch an object that resume my connection with the server, I log in and it returns me a getResponse. response = envelope.getResponse(); In this report comes the client code…
-
2
votes2
answers143
viewsSeparating a String, how do I do?
I have a: String url = intent://instagram.com/_u/fabiohcnobre/#Intent;package=com.instagram.android;scheme=https;end How do I separate her so that I get one String link =…
-
2
votes1
answer58
viewsPost my app result on Facebook
Good afternoon... my app is to follow soccer game... containing number of goals, which teams.... and when you click to save it shows to me time1 X time2 = 2 x 0 (example) and wanted to share on…
-
2
votes1
answer66
viewsAndroid app error 5
I developed an android app that works perfect, but does not run on android 5, I do not know what else to do ... Follow the log cat : 11-19 20:36:27.387 24358-24358/? I/art: Late-enabling -Xcheck:jni…
-
2
votes1
answer129
viewsAutomatic zoom
I don’t know this function is native to the Google Maps API but I’m not able to zoom in on my location map, follow my code. public class MainActivity extends FragmentActivity { GoogleMap mGoogleMap;…
-
2
votes2
answers133
viewsCheck if the installation source is from the play store
Hi, I was thinking of doing a version PRO(unannounced) from my Android App, only I would like to know how the source check works, whether it was installed by the play store or the user under the apk…
-
2
votes1
answer134
viewsHow to restart a service to call the oncreate again?
Hey, guys, let’s go I have a service and I have all his logic on Oncreate. The problem is that I need it to go through the oncreate again when I perform an interaction on my Activity. I’ve tried…
-
2
votes1
answer96
viewsksoup2 org.xmlpull.v1.Xmlpullparserexception:
I’m trying to make a query in the WEB SERVER implemented in PHP in this link. In the web service I have to send a request by passing the parameters Imei, password, operation. public class…
-
2
votes1
answer157
viewsHow do I know if the email was actually sent?
I’m using a code to send email, call the email sending service and choose a particular email that is already configured on the mobile. Everything is working normally, but I want to put one Alert…
-
2
votes2
answers304
viewsAndroid Studio - Coordinatorlayout, Appbarlayout and Floatingactionbutton
I started creating a new application, changed the project theme and got the following error: java.lang.Illegalargumentexception: You need to use a Theme.Appcompat Theme (or Descendant) with the…
-
2
votes0
answers170
viewsHow can I really integrate my SQL Server with Push on Android?
I have an order table in my SQL Server and an app on Android. Every time an order has a status change, the user receives a notification. I already created the app by GCM from Google, I took the Key…
-
2
votes1
answer65
viewsError of Nullpointerexception
Caused by: java.lang.Nullpointerexception AT dao.Database.verificaSeTemRegistroNaTable(Database.java:184) That error was presented in mine logcat. The method: public boolean…
-
2
votes1
answer73
views -
2
votes1
answer210
viewsRemove marker when adding a new one
googleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() { @Override public void onMapClick(LatLng point) { MarkerOptions marker = new MarkerOptions().position( new LatLng(point.latitude,…
-
2
votes2
answers58
viewsLinearlayout dimensions, defined in java, do not maintain proportionality between resolutions
I have a View in which I am programmatically defining its somersault and width in this way: LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) linear.getLayoutParams(); params.height =…
-
2
votes1
answer83
viewsHow to maintain the data of a variable, when starting an Actitivy, and when returning, load the value?
I’m having the following problem, and I’d like everyone’s help please. I have an Activity, in which, if you press btn1, it will happen Boolean mesa1 = true; Just like for btn2... successively. When…
-
2
votes1
answer327
viewsNotification Bar with Bigpicturestyle and 2 lines text?
I need to make a notification with that aspect: I’ve tried everything and I can’t find anything like it. I managed to put 2 buttons below the image with: .addAction(R.drawable.sim, "Sim",…
-
2
votes1
answer274
viewsCollapsingtoolbarlayout change and leave transparent
I can’t change the color of Collapsingtoolbarlayout When I roll it up it gets the image I put in and doesn’t change the color. Before: Afterward: I wanted to take the image and make Toolbar…
androidasked 7 years, 11 months ago Artur Mafezzoli Júnior 441 -
2
votes1
answer524
viewsQt and Android - Take the path of a gallery image
I’m developing a code to get an image of Galeria do Android. I’m using QtAndroid to write in Qt a code equivalent to java. I already opened the gallery, selected the image and received the path, but…
-
2
votes1
answer60
viewsToolbar repeating
Hello, I’m having a problem, my Toolbar is repeating every time I add a new record. how do I fix it? follows the codes: public class ListarReportes extends BaseActivity{ Usuario usuario;…
-
2
votes0
answers89
viewsNot doing the replace Fragment
Hello, I have an app that so when it is accessed loads a feed, Initiating an Asynctask, but if the user presses in one of the options of Drawer before the Task ends, the app does not replace and…
-
2
votes1
answer164
viewsAvoid response delay message
I am developing an application that consumes, via REST, a third party service. In some cases the service takes time to answer me and, as the application is waiting for reply, a message appears…
-
2
votes1
answer49
viewsDoes Firebase Analytics need to be initiated in all activities?
I am in an uncomfortable impasse. I am creating the habit of using Firebase in my project, but I do not understand how to use it. I need to put the Firebase Analytics code on all activities or in…
-
2
votes3
answers3550
viewsHow to make your Android virtual keyboard visible/invisible while Tedit is in focus
I use Delphi XE7, wanted to know how to treat this issue, Seto the focus on TEdit, it opens the virtual keyboard Android, Press the back it closes the keyboard and the focus stays on the TEdit, but…
-
2
votes1
answer178
viewsOkhttp only works on Lollipop
The Okhttp 2.6.0 library does not work in versions prior to Android 5. In versions prior to Lollipop always fires the exception: Exception Caused by: java.lang.Noclassdeffounderror:…
-
2
votes1
answer47
viewsAssociate two image
I wanted to create a app that clicking on an image changed your image and was waiting to click on another image. If the two images were equal (with the same value) activates a button that gave the…
-
2
votes1
answer226
viewsPass int array 2d to another Activity
I have this array: int[][] meuArray= new int[5][3]; How do I send this array for another activity? If it were a array 1d was enough to make intent.putExtra("Array", meuArray); to send and the array…
-
2
votes1
answer530
viewsScroll View on Android Studio, Basic question
I have a very basic question, how do I see the content that is below the Scrollview visible in the editor itself? Since content exceeding the selected resolution does not appear?
-
2
votes1
answer200
viewsSynchronous Creation of Android Surfaceview
I created a subclass of Surfaceview to abstract canvas operations, such as drawBitmap (among others), as shown below: public class MyView extends SurfaceView { public MyView(Context c) { super(c);…
-
2
votes1
answer42
viewsError using Lock Screen
I am trying to Block the Screen with the following code: protected void onBloquear(View view) { DevicePolicyManager mDPM = null; mDPM.lockNow(); } Source:…
-
2
votes1
answer46
viewsHow to use Realmobject class
I am working on an Android project and while trying to use the class Realmobject it is not recognized, even importing the package io.realm.Realmobject. This class is no longer available?…
-
2
votes0
answers484
viewsRead sqlite3 database in Assets folder
Most examples and tutorials of Android applications out there assume that you want to create and populate your database at runtime and will not use an independent database with your application. I…
-
2
votes1
answer1139
viewsHow to create a class with a Navigationdrawer to use in multiple Activities?
I started studying Android development a little while ago, I saw that to use a Navigationdrawer the recommended is to use fragments to change a Framelayout in the main Activity, but in the new…
-
2
votes3
answers531
viewsUsing Activity Methods in a Fragment
I am trying to use some methods of an Activity in a Fragment, however I am not succeeding, someone can tell me if it is possible? public class updateMarker extends Activity { TextView uid; //URL to…
-
2
votes2
answers871
viewsHow to put notifications in an Android app?
I would like to know how to develop notifications for a app Android, so it can be updated online. That is: Every time there is an update of app, I would like to see a similar notification to that of…
-
2
votes2
answers1296
viewsGenerating Bitmap of photo taken
I’m trying to generate a bitmap of a photo taken: public void onClick(View v) { final Runnable runnable = new Runnable() { @Override public void run() { Intent cameraIntent = new…
-
2
votes1
answer99
viewsRadio Button does not change text
I created a simple project, and I realized that the RadioButton does not change the text when rotating the screen. I created 2 functions a call setText() and the other setText2() with different…
-
2
votes1
answer112
viewsCollect all the Extras from an Intent
Is there any way to find out what all the Extras of an Intent are! CONTEXT: I have an app that gets url’s shared by other apps: if (Intent.ACTION_SEND.equals(action)) { final String url_ =…
-
2
votes3
answers1031
viewsHow to insert markers (Marker) into a map in another Fragment?
I’m developing a app Android where you insert a courier task list (pick something up on the dot A and bring to the point B) and these dots are shown on a map. The App has two fragments:…
-
2
votes1
answer1552
viewsOpen Facebook Profile in the app
I would like to know how to open the facebook application when clicking on the link. In the searches I did would be like this, but I did not give: <a href="fb://profile/PerfilPessoa" /> but…
-
2
votes1
answer616
viewsHow to capture camera photo and delete from gallery
I’m getting the image of the camera and saving it in the bank. To get the image is very widespread code, there is nothing new. However the image is also in the gallery, and I would like to delete…
-
2
votes2
answers185
viewsRead XML file with only one Parent Node
I need to import an XML file that has the following structure: <?xml version="1.0" encoding="UTF-8"?> <Registos>3</Registos> <Socios> <id>1</id>…
-
2
votes4
answers304
viewsLeave part of the APP in library
I have an APP with a separate package(Package) for PUSH notification, I would like to take this package and turn it into Library, so that in future apps only add to Library in my project. How can I…
-
2
votes1
answer2545
viewsWhat’s the difference between a Toolbar and an action bar?
I’ve researched a lot about it and I haven’t found anything that could explain it. Is there a difference or is the same thing?