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
votes0
answers64
viewsShare Intent imageview
Good guys I’m wanting to make one Share / Share of an image with intent, but this image is already defined with a id. How do I accomplish this share? Follow my code that is giving error: // Metodo…
androidasked 8 years, 7 months ago Jadson Planzo 1 -
0
votes0
answers379
viewsUsing XML from an Actionbar to create a Navigation Drawer menu
Good morning Everybody, My first post here. I’m with an Android project almost ready, missing just put the icons in the Menu Navigation Drawer. I used the following tutorial to put the items in the…
-
0
votes2
answers76
viewsGet photo from google plus profile
I have the following method to perform a Silentlogin with google + private void silentLogin() throws MalformedURLException { OptionalPendingResult<GoogleSignInResult> pendingResult =…
-
0
votes1
answer96
viewsProblem with Sqlite in Asynctask’s onPostExecute method
I’m having a problem running an Sqlite function in the Asynctask onPostExecute method. When I implement the same function in Activity it runs normally, but in onPostExecute it doesn’t even enter the…
-
0
votes1
answer144
viewsHow to use a class method on an Activity?
I need to use the following method, which is located in the Vodplayeradapter class in an Activity Playeractivity: public void changeVideo(Video video, boolean playWhenReady) { finalizePlayer();…
androidasked 8 years, 7 months ago Berg Ferreira 31 -
0
votes1
answer115
viewsPass an Activity company id to another and use in a database connection
I am passing a user id through an Internet and intend to use this id in the second App. Even I believe it’s correct Take a look at the code: I have to go from Activity to another user id:…
-
0
votes1
answer85
viewsHow to get gender from a Google user in an app using Firebase?
I am developing a native Android app and the way of authentication is through the Google profile. I would like to get the gender of each user, at the time of signup, to check whether it is male or…
-
0
votes1
answer1193
viewsPermission Denial: Starting Intent with revoked permission android.permission.CAMERA
Code to call camera public void TirarFoto() { final Random numRandomico = new Random(); String resultado = String.valueOf(numRandomico.nextInt(20)); Intent intent = new…
-
0
votes1
answer27
viewsDo not add to database when some value is null
How do I not add to the database when the String dia is null ? Code : public boolean insertData(String disciplina,String sala,String dia,String hora){ ContentValues values = new ContentValues();…
-
0
votes1
answer79
viewsPermanent service in background
How to run a permanent service in the background. For example I want my app to run this method over and over again : public void addToCalendar(){ myDB = CustomApplication.getDatabaseHelper();…
-
0
votes2
answers74
viewsControl video volume in Banner Interstitial Admob
I am using in my app interstitial banners admob. There are complaints from users that the volume of videos displayed in this type of banner (usually videos are about games) are high. Logically I…
-
0
votes1
answer58
viewsGet childView position in Expandablelistview
I have a Expandablelistview in my app. <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:id="@+id/myLayout" android:layout_height="match_parent"…
-
0
votes1
answer397
viewsGlobal variable data getting lost Android
Hello to all I’m creating an app that when the person logs in, the app brings the data Nome, Login, Senha and Foto(a url) of the server database, and saves that data in a Singleton so that they are…
-
0
votes0
answers193
viewsAdd Google Provided Key to my APP
Google Play suggests a license key for my app They have a public RSA key encoded in Base64 to include in your binary file. Remove any spaces. MIIBIjANBgkqhkiG9... How do I add this key provided by…
-
0
votes0
answers303
viewsFor geolocation to work on the webview
I looked at several topics on this, but as my project is a little different, I couldn’t make the adaptations. I need to enable geolocation for the map of a page of my site, which is inserted via…
-
0
votes1
answer402
viewsText in the Progressbar
Yenho a ProgressBar in my MainActivity and would like to add a text like this "Carrying...". But I’m not getting it, someone could help me? Below follows the code of my main activity. package…
androidasked 8 years, 7 months ago Felipe Edwards Vanstocher 303 -
0
votes2
answers331
viewsMy Imageview does not appear on my phone
I created a Layout and an Activity for this Layout. In Layout I only have an Imageview with a png image that is located in Resources/Drawables. When I Debug in the App Imageview does not appear on…
-
0
votes1
answer29
viewsMaps.getPhoto()' on a null Object Reference
The program I am developing compiles, does not show any error, emulo on mobile, however when opening certain screen the application shows error message and closes. In the AS terminal shows the…
androidasked 8 years, 7 months ago Carlos Diego 683 -
0
votes3
answers3605
viewsProblems with getSupportActionBar() to Home (arrow) button and back arrow
I’m having trouble giving the action to the home button, I’m managing to implement without problems the button according to the code getSupportActionBar().setDisplayHomeAsUpEnabled(true);…
-
0
votes1
answer1104
viewsHow to receive all images from Firebase Storage and display in a listview
I have several images captured via camera or gallery that was uploaded via app in Firebase Storage, using Glide I can display images, but only manually (added one by one in the hand), and my…
-
0
votes1
answer93
viewsHow to include several Radiobutton?
I was interested in making an APP with 30 personality profile questions, where each question will have two choices. I thought of using the RadioButton, but as there are 30 questions I would not like…
-
0
votes0
answers226
viewsPlay videos on all devices
I can’t get videos from a website to play on android and other devices. I used Freemake Video Converter to turn my video into all HTML5 formats. So it already works on all browsers, on computers,…
-
0
votes0
answers96
viewsProblem with POST Urlconnection
When sending parameter through the POST to a URL, I am redirected to another URL, it is redirecting me to the right URL, but it returns me: <script LANGUAGE=JavaScript>alert('Seu tempo…
-
0
votes1
answer743
viewsStream audio in android studio
I am using the following code to play a sound saved in the cloud Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW);…
-
0
votes1
answer47
viewsModified Android Studio Project name
I changed the name of the project using Refactor - Rename, but when copying this error: Logcat: 04-18 06:40:04.480 19491-19491/? D/dalvikvm: Late-enabling CheckJNI 04-18 06:40:04.680…
-
0
votes1
answer148
viewsOn Android is possible to inflate a layout inside a gridview
I’m trying to create an e-book reader, in the main Activity should appear a gridview where each position should present a thumbnail of the book cover, below appear the book name, author name and…
-
0
votes2
answers27
viewsI can’t add items to scroolview
I’m using this scroolview but I need to put new items underneath , and when I roll down it doesn’t come down, could you help me? follows xml code : https://pastebin.com/x6aVUjr…
-
0
votes0
answers122
viewsPerform action by clicking a button on another tab
I have two tabbed activity,I need a program to execute a code snippet whenever a button is clicked on another tab, but this excerpt cannot be Static! How do I do it? Here is the code that has to be…
-
0
votes2
answers161
viewsJava - parseint()
public void OK(View v) { EditText editTextView = (EditText) findViewById(R.id.editTextView); String myEditValue = editTextView.getText().toString(); int equação = Integer.parseInt(myEditValue);…
-
0
votes2
answers52
viewsSave typed email and use it in a textview?
I want to take the email that the person typed in the login to display it in a textview, how do I do that? This text is already being used to log in
-
0
votes0
answers49
viewsHow to Redeem the Position of a Sprite with Libgdx
I am unable to rescue the position of a Prite. I want to rescue the position of only one Prite as I do? public class Cubos extends Actor { Sprite azul, verde, vermelho, amarelo, cinza; public…
-
0
votes1
answer34
viewsHow do I know an audio playback arrived at the end?
So I would like to know when my audio has reached the end of the playback, follow my code to startar the audio and stop, I thank you in advance! private void startRecording() { mRecorder = new…
androidasked 7 years, 4 months ago Wallace Roberto 496 -
0
votes1
answer79
viewsNullpointerexception/ Button findViewById
Guys I have a problem with this code: every time I put: 'Button botao = (Button) findViewById(R.id.botao_id);' It stops working, no longer runs on my phone. And if I take this code ( and the things…
-
0
votes1
answer247
views -
0
votes2
answers161
viewsHow to create an ID to be used in other classes
My app will get to the first screen of the user ID, how do I use it in other activities unseen intent ?
-
0
votes1
answer407
viewsError using Retrofit 2
t={movieName}&apikey=11111" must not have replace block. For Dynamic query Parameters use @Query. This error happens when trying to fetch a movie by name, I have the codes below, but the error…
-
0
votes1
answer89
viewsHow are websites and web applications converted into mobile applications?
Many websites and web applications like Youtube, social networks, e-commerces and news sites have their versions in mobile apps, and their data are "Synchronized" (for example, when I put a video on…
-
0
votes1
answer106
viewsSetting up the Xamarin
I’m learning Xamarin and mobile development. I have seen several examples of how to set up a small application and I see that practically everyone starts like this: Blank App (Xamarin.Forms…
-
0
votes0
answers41
viewsHow to pick up data with sharedpreferences?
In my login screen I am using a checkbox for the user to choose whether they want to be logged in or not. I’d like to know how I can get user data after I’ve already entered the app.Thanks
androidasked 7 years, 4 months ago Augusto Paiva 41 -
0
votes0
answers476
viewsWhere to put PDF files in an application developed in Android Studio
Colleagues. I have a programming question for Android, see if you can help me. I am developing an APP that needs to open some PDF files that should come along with the application. The idea is to…
androidasked 7 years, 4 months ago Regilan Meira 126 -
0
votes1
answer426
viewsAndroid Webview call dialer by link
Hello, I am developing a webapp of a phone guide, on the site I have the option to click a button to open the mobile phone dialer already with the phone number. But in the Webapp does not work,…
-
0
votes1
answer1546
viewsMy Android Studio does not run the app for testing
My Android Studio does not run the app for testing, already reinstalled several times and nothing, it recognizes my mobile only that does not install the app for testing, and also does not run in…
-
0
votes1
answer73
viewsCapture in Loop the value of a variable of another Activity
In my app, I have an activity called "GpsTrackerActivity" which is constantly calculating the distance travelled by the method onLocationChanged, of Interface LocationListener. My problem is that I…
androidasked 8 years, 7 months ago Vitor Mendanha 595 -
0
votes1
answer330
viewsJobscheduler to run every x hours
I need to run an api access in an interval of hours, for example every 3 hours. I was looking for ways to do this, I read about Alarmmanager and about this Jobscheduler that seems to be the latest.…
-
0
votes2
answers29
views(Java, Android) Button - Set Click’s limit
Good, can someone tell me how to set a limit to the number of clicks on a button, and when you reach that limit, prevent the button from being clicked again? Here it is: public void N1(View v) {…
-
0
votes1
answer37
viewsMap tables to save access history
I have an application, in which I need to save at least once on the day, the date and time that user accessed the application/ system. Because we charge at the end of the month for the number of…
-
0
votes1
answer587
viewsAdd image to a collapsingtoolbarlayout
I would like to add a background image in a CollapsingToolbarLayout following this example: I tried it this way: <android.support.design.widget.AppBarLayout android:id="@+id/app_bar"…
-
0
votes1
answer150
viewsUse of External class with error (non-static method)
I created a Class external call Useful to leave some methods that I always use, but is giving error when using them, follows code from Useful: package com.hs.gui.testelayout.util; import…
-
0
votes1
answer2105
viewsPass more than one parameter through the URL
I have the following code: public interface service { @GET("?acao=R&tipo_refeicao={tipo}&data={data}") public void getCardapio( Callback<List<Cardapio>>…
-
0
votes1
answer1023
views