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
-
1
votes1
answer106
viewsHow to control elements within an item in an android listview?
I have a list view that contains items, each item contains a seekBar. How do I control this seekbar? make him change the value by being moved and taking his current value? Since this seekbar is not…
-
1
votes1
answer113
viewsHow to reuse a layout?
I want to create a screen with editorial menu, as I do to "reuse" a layout to have multiple essays and fewer layout files (xml).
-
1
votes2
answers151
viewsPHP API to use in Xamarin
I am creating an API to create the Mysql connection. Can I use PHP to create this API? Can I normally use this API on iOS? I’ve seen it in many places (example) that I can use this API for Android,…
-
1
votes1
answer661
viewsUpdate Recyclerview from another Activity
I have the following class public class FavoriteListAdapter extends RecyclerView.Adapter { @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view =…
-
1
votes1
answer36
viewsClick on FAB but do not switch to new Intent
I am taking the click of a list and passing to another Intent. However when I click on the add it gives error. Code; Button cadastrar = (Button) findViewById(R.id.fab);…
androidasked 8 years, 1 month ago Artur Mafezzoli Júnior 441 -
1
votes0
answers46
viewsHow to leave two screens in an Activity, being able to exchange one of them via code
Good day, late or night!! I need to make a screen in android split in the middle, where the screen on top screen a video player, and the bottom a chat, where in a due event will be replaced by…
android android-studio android-layout android-activityasked 6 years, 1 month ago Jean Carlos Sampaio 11 -
1
votes1
answer70
viewsAndroid ormlite
I’m having a problem recording a login in the database, when I call create it returns me Null, what could I have done wrong? Remembering that when I give a LOG to see the login, it shows me the data…
-
1
votes1
answer201
viewsInsert image in Listview via JSON + SQL
I created a code that perfectly brings the results via JSON from my database and fills my Listview with Strings, but I would like the database to bring the "image" column I created, the address…
-
1
votes2
answers46
viewsAndroid - Is it good practice to use the default.xml strings for national applications?
I’m developing an app for a school autoschool, my question is on the issue of encoding files are all UTF-8 by default or is it just applied to values like values-en-rBr? My concern is only whether…
androidasked 6 years, 1 month ago Samuel Ives 1,676 -
1
votes1
answer82
viewsImplementation of the Life Cycle of an Activity
Hello. I am new to Android Development and would like to better understand how to build more robust applications for this platform. I understand how the life cycle of a Activity but wanted to…
-
1
votes1
answer73
viewsMany logs with the message "setTypeface with style : 0"
I’m making a app in the android studio, and after spending a few activities the screen becomes black and the last record of the log cat is this message. I’ve looked at the other questions about it…
-
1
votes1
answer2956
viewsConnect to Current Location Android Studio
I’m developing a App Android that contains a map and that picks up my location, but in some devices it does not activate this function, for it to work you need to click the button Local for example…
-
1
votes0
answers759
viewsReceive data from an Arduino sensor for the Android app ( Android Studio)
Good night! I need a help with the application I’m developing, I made the bluetooth connection of my Arduino with the android app and it’s all right, I can turn on and off small but I do not know…
-
1
votes2
answers1887
viewsHow do I save an image to a newly created folder by my code?
I am having problems at the time of storing my photo, I create a folder using mkdir and through a string, I take the contents of an Edittext from my application, to give the name of the folder.…
-
1
votes1
answer1116
viewsNullpointerexception: Attempt to invoke virtual method
I’m trying to pass information on a Activity to another through the position on the list, but is giving this error of nullpointer. Where I get the information - Main Activity @Override protected…
-
1
votes1
answer670
viewsUnable to instantiate Activity Componentinfo; java.lang.Illegalstateexception: System services not available to Activities before onCreate()
I have a project of a chat socket running in Swing and now I’m passing it to Android. Everything was working perfectly until I put in the code that makes the magic happen. The application closed and…
-
1
votes2
answers43
viewsApp Closes when installing when I will test
I am a beginner and already in my first tutorial I have this mistake I did the whole process as it is in the video tutorial, and when I try to test it on my phone, it compiles, installs, opens and…
-
1
votes1
answer183
viewsDoubt with correct dpi(dp) density
I am beginner in Android app development, and am with a simple question. The dpi numbers in the image below are also the maximum that an img can have in width & height(dp) in their respective…
-
1
votes0
answers26
viewsError:Execution failed for task ':app:preDexDebug'. > finished with non-zero Exit value 1
I’m trying to run the compiler of Android Studio, but it returns me this error. Error:Execution failed for task ':app:preDexDebug'. > finished with non-zero exit value 1 build.Gradle app: android…
-
1
votes1
answer683
viewsGson: Jsonobject to Jsonarray conversion error (Jsonprimitive cannot be cast to com.google.gson.Jsonarray)
I am trying to convert a Jsonobject item into an Arraylist and for that I created this function from an example I saw here in the forum: public static ArrayList<Produto> converte(JSONObject…
-
1
votes2
answers602
viewsDelete Sharedpreferences created dynamically
In order not to keep redoing requests that have already been brought from the server I persist them using Sharedpreferences... Only they are created dynamically in my app. example: // essa key é…
-
1
votes1
answer219
viewsAndroid Studio - Error:(46, 13) Failed to resolve: me.dm7.barcodescanner:zxing:1.9
Good afternoon, I have a project and I’m trying to implement a QR code reader. so when will I include his lib in the project there in Gradle he gives the following error Error:(46, 13) Failed to…
-
1
votes1
answer448
viewsHow to use the same onClickListener in more than one View?
I’d like to know the following, I have: ImageButton btneditarusuario; and a TextView editarusuario;, by clicking on either of the two starts the startActivity. You can group the ImageButton with the…
-
1
votes1
answer79
viewsI’m in error of Apostrophe not preceded by
I’m trying to internationalize my app to the English language but I end up getting this error Error:(10) Apostrophe not preceded by (in Please note, if you’re on a device with android 6.0 above, you…
-
1
votes2
answers307
viewsListview does not appear in the emulator
I am developing an application in Android Studio and trying to use a Listview, but when I run the project, the list does not appear in the emulator! XML CODE <?xml version="1.0"…
-
1
votes1
answer1497
viewsNeed to stay using android studio to program in React
You need android studio to program in React Native? My machine does not run the program well, can barely use it actually. While the emulator I can test the apps by mobile without problems. I’ve been…
-
1
votes1
answer99
viewsHow to allow an App to send notification
Hello, I am developing an app and before the person login, I ask the user for permission to the location of the same, this is already ok, but I need to put also then a permission to send…
-
1
votes1
answer59
viewsMap only click on my device
I have a map in a fragment. I already solved all as key questions, created the signed apk, is not what I want to do and I did not put any console google developer, with the name of the project. A…
-
1
votes1
answer427
viewsError in string to integer conversion
I’m trying to register a client in Android internal comic book. I have a field String where I put the user’s phone. This field I do the conversion to Integer using the parseInt…
-
1
votes0
answers106
viewsHow to run an Expokit project on a mobile phone/emulator for development?
I had a project done in Expo, but ejected it using Expokit, which creates the folders /android and /Ios, I can generate the apk however I can not emulate on my mobile for development. The command I…
-
1
votes0
answers21
viewsHas there been a change in the way of implementation of admob in Android app?
Could someone please let me know if there has been any update in the form of admob implementation on Android apps?
-
1
votes0
answers57
viewsHow to generate an android module . jar?
Hello I have an android app with a module and would like to turn it into a . jar to be repurposed in other projects. How do I do this?
-
1
votes1
answer163
viewsProblems with canvas inside a Webview in React Native
Why when changing the height > 100 and width > 640 on the canvas inside a Webview in React Nenable, nothing more and drawing? //funciona ... canvas.width = 640; canvas.height = 100;…
-
1
votes1
answer146
viewsCan I create mobile apps (.apk and .obb) using Electron?
I wonder if it is possible to generate executables that run in the mobile environment (Android iOS, Windows Phone etc) through Electron, this is possible?
-
1
votes2
answers441
viewsProblems Saving Sqlite Data - Android
I am trying to save the data in Sqlite database from a form in my app, but when I click save button, the app closes and is shown the following error. Android Studio points the error to this code…
-
1
votes2
answers620
viewsonClick in edittext that cannot be editable
How to make an event click on an edittext, enabled="false" ? (I couldn’t do it without the focus being on edittext, enabled="true") Or, an event click on an edittext that cannot be editable. Code…
-
1
votes0
answers25
viewsAdmob on the project
hello personal I am lay in the subject yet, I would like to know how do I make sure that every time the webview initializes call an interstitial admob ad. I can’t do it using a button because my…
-
1
votes0
answers56
viewsPerform an action automatically when you open the app
I am working on the development of an app and I have a question, I need my app to perform an action when opening it. Can anyone tell me how to do that? I’ve looked and I can’t find anything about…
-
1
votes1
answer290
viewsAdd months to a Calendar without modifying the original instance
I am implementing a system in which I set a specific date in a type variable Calendar and then I need to manipulate her. I would like to take the value of a few months added: Calendar calendar =…
-
1
votes0
answers41
viewsDynamic fragment
I have the following problem when the screen is changed to 3 tabs and then back to 2 tabs these two tabs are blank without content anyone could help me? The code is not showing any error, when I…
-
1
votes0
answers38
viewsPopulate Jsonarray with Sqlite3 data
I have a code that is to send my Android data to PHP in JSON, to save in Mysql. But I’m sending one at a time, I want this code to send one JsonArray at once. Method that sends data by parameters to…
-
1
votes2
answers4044
viewsShare button
And hey guys all right? I hope so with the whole Stack community. Well, I have a question that’s been killing me for a long time, and I can’t fix it. First of all I want to remember that I’m a…
-
1
votes1
answer70
viewsHow can I parse an xml that has a vector within another vector?
I have a question about how I can parse an xml that the server is sending me. I can get the data up to the tag Cobranca after this tag has another array that I can’t catch. Follows the one part of…
-
1
votes1
answer1666
viewsResize image to screen size
created a Viewa class where I take two pictures of the drawable folder and draw on the screen with draw method(); public class ViewA extends View { private Bitmap img1; private Bitmap img2; public…
-
1
votes1
answer69
viewsShare my result
Good afternoon, I created a football refereeing app... and looked on the internet to share the result I found this way(a member here of stackoverflow in English) String message = "Text I want to…
-
1
votes2
answers69
viewsHow to open a project directly from the explorer
I was left with the following doubt these days and I could not find a solution to it. Next, I have several projects in Android Studio (all have already been imported and are working perfectly),…
-
1
votes1
answer249
viewsNo suitable Parent found from the Given view. Please provide a Valid view
Good Morning, I have this mistake : No suitable parent found from the given view. Please provide a valid view. I’m entering the registration view and this returning me this message, tried to fix it…
-
1
votes1
answer41
viewsHow to remove Videoview buttons? Android
I’m trying a way to take or hide the buttons of a Videoplayer (forward, pause, back) on android, because the video is part of Splashscreen public class Splash extends AppCompatActivity { @Override…
-
1
votes1
answer84
viewsProblems sending a notification
I’m using the following code to send notification from android and not console public static void pushFCMNotification(String userDeviceIdKey) throws Exception { URL url = new…
-
1
votes1
answer83
viewsTwo Intents starting the same Activity
I have a button to include a Hint and I have another button to edit the Hint already created. I would like to use the same creation activity, when it is for editing would pull the data already…