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
-
7
votes1
answer678
viewsHow to know which Activity prior to the current Activity was called?
I have several activities, which can call a special activity. I’d like to know how to identify which Activity called. It would be something like this: I need this because I have a user registration…
-
7
votes2
answers118
viewsMany "if" in an old game for android
When checking if someone won, I need to use the IF several times. I wonder if there’s a way to simplify the code a little bit and maybe even replace the IFs. //left, top, right, bottom are int…
-
6
votes1
answer197
viewsDisplay a dynamically loaded text/photo pad with QML for Android
I’m writing an app using the newly released Qt 5.2 QML for Android. On one of the screens I need to display an article that is loaded from a server and may change after the launch of the…
-
6
votes1
answer236
viewsBinding Facebook SDK 3.6 for Android
In my project with Xamarin, I need to use the Binding from Facebook SDK for Android version 3.6. However, I could only find the Binding of version 3.0, outdated. Does anyone know where I can find…
-
6
votes2
answers241
viewsHow to repurpose code in two similar projects
It concludes one project and I need to do another with the same context. The problem is that I know I will find bugs and I will evolve the code when I am developing the second. How do I make a way…
-
6
votes2
answers772
viewsError executing Cordova build command
I’m executing the command build cordova (after finishing the settings exemplified in this link: Phonegap The Command-Line Interface). But the Node.js returns this error: Generating config.xml from…
-
6
votes3
answers3192
viewsWhy so many folders with the name "Drawable" on Android?
I have a silly question. I already know the folders Drawable in the Android is to put the images with the relative resolutions. For example, the folder drawable-ldpi is to put images with low…
-
6
votes2
answers257
viewsAsynctask x Multithreading
When it is most advantageous to use Asynctask, and when to use Threads. For example: Download a file (e.g., JSON). Which would be more advantageous in this case and why??…
-
6
votes3
answers460
viewsHow to implement dynamic "Up Navigation"?
I’m trying to implement Up Navigation on my Android app but apparently I found no way to do that android:parentActivityName, set in the manifest, can be manipulated at runtime. What happens in my…
androidasked 10 years, 7 months ago Fernando Leal 9,770 -
6
votes1
answer4745
viewsRun shellscript on an android mobile
Does anyone know if there is a default app that reads shellscript on android mobile? Has anyone ever tried something like?
-
6
votes1
answer1808
viewsRun another application as soon as you receive an SMS
I need to call an app already installed on my mobile as soon as I receive an SMS from a certain number. All the code of this application is already ready, but I do not know how to call it from this…
-
6
votes1
answer407
viewsPhoto taken by my app does not appear in Gallery
When generating the photo through my app it correctly creates the folder and saves the photos taken there, but when I go in the Mobile Gallery is as if the photos did not exist, the default Android…
-
6
votes2
answers532
viewsHow to use CSS style in application?
I created a app for Android using the App Framework from Intel and built with Phonegap. He has the visual style of framework, but when I run it on Android device, it uses the native appearance, that…
-
6
votes2
answers1997
viewsChat with notifications in the app
I have an Android application that inside it, the user can send message to the administrator(eu). I wanted to do something more cool in this communication, I would like when I answered the message,…
-
6
votes2
answers735
viewsHow to call a method when clicking a notification?
I wanted to know how to call a method by clicking on a notification, I don’t want it to call a Activity, but only a method that has within the same class. Example: public void gerarNotificacao(){…
-
6
votes1
answer1314
viewsSoftware for obfuscating APK
I do not know this question is valid to raise here according to the policies of questions but if it is not I will remove it, a short search on the internet found several tools including sites that…
-
6
votes2
answers760
viewsHow to list and monitor the apps that are installed and/or in use?
On an Android device, where many app’s are running, I would like to enable an interface where the user can see which app’s installed and which ones are running at the moment, being possible to…
androidasked 10 years ago Pedro Rangel 2,747 -
6
votes1
answer4491
viewsMake URL open in the same Activity
I’m creating a WebView for Android. When I load the App, the imported page works perfectly, but when I click on some link page, that same link opens in another browser. I wonder how I can make all…
-
6
votes2
answers427
viewsHow to remove the Appcompat error from the app?
I had to reinstall the Eclipse and import mine app, he makes a mistake of Styles of AppCompat. I imported the AppCompat and the very AppCompat gives the same error. How can I fix?…
-
6
votes1
answer1925
viewsHow to request a trial in the java android app?
What is the best way to request an android app review? Ex. if the user chooses to rate it is directed to make a review of the app in google play.
-
6
votes1
answer460
viewsHow to use android project in Gradle in eclipse?
I’m willing to incorporate this project: https://github.com/shamanland/floating-action-button in my android app in eclipse, however I do not use Gradle. Is there any way to import it without Gradle?…
-
6
votes1
answer14394
viewsDecrypt db.crypt files
I wonder if there is any way to decrypt files with the extension db.crypt in general, on the Android platform and there is some API that does this work?
-
6
votes3
answers6396
viewsHow to display an image on the screen
I’m doubtful to display an image on the screen on android. example. to call a sound use the following code: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1);…
-
6
votes1
answer115
viewsRunning an app under development on a real device impairs its performance?
I’m worried about running my app in development on my device. Could someone tell me if this undermines performance, leaves a lot of junk, leaves doors open and vulnerable on it?
-
6
votes2
answers4369
viewsFunction that returns screen resolution
I need a Java function that returns the resolution of my Android device.
-
6
votes1
answer732
viewsDifference between scheduleAtFixedRate and Schedule in the Scheduledexecutorservice class
What’s the difference between scheduleAtFixedRate and schedule? I am developing an Android app that I want to be 50 minutes late before starting an action and repeat that action in the next 50…
-
6
votes2
answers14324
viewsCheck whether the string is null or empty
How do I check if my variable is empty or null? // Inserção Nome = tf_Nome.getText().toString(); Tipo = tf_Tipo.getText().toString(); Estoque = Integer.valueOf(tf_Estoque.getText().toString());…
-
6
votes1
answer631
viewsC# Mobile Development Need Mac?
I was researching tools for mobile development (iOS, Android) and came across Xamarin. I found the proposal interesting, especially for working together with Visual Studio. I downloaded and…
-
6
votes3
answers1383
viewsLegacy of screens - Android
Wanted to create a screen(Activity) base for the android app I’m developing, so that all other screens inherited from this base. Thus, the screen would have an area reserved for the top of the page,…
-
6
votes2
answers772
viewsHow to implement a chat in an Android app with backend Webapi
I’m developing an Android application that consumes services from a Webapi project. In one part of this application it will be necessary to develop chat between two or more people. Against this…
-
6
votes1
answer814
viewsImplement message exchange between applications
I have an app which has two versions, user version and service provider version, where in it there is a message exchange, I would like to know what options I have to implement this message exchange,…
androidasked 9 years, 6 months ago Mateus Carvalho 1,494 -
6
votes1
answer686
viewsHow to train two objects with different sizes for recognition in Opencv
Hello, I am using Opencv version 2.4.11 to train license plate recognition for a parking software. The problem is when training to identify the car plate, truck, truck where the plates used by them…
-
6
votes1
answer505
viewsHow to increase the text size of a Webview?
My app reads RSS feeds. but what bothers me is the letter that is small, I want to leave a little bigger that is visually "right" in a standard way. It’s like this: But I want to make it bigger to…
-
6
votes1
answer424
viewsEncoding problem in project import to Android Studio
I imported a project via SVN in Android Studio. Previously the project was in Eclipse and who took care of the project ended up committing files like .classpath. From then on I started having an…
-
6
votes1
answer134
viewsSwipeevent for Android app
I’m making an application to control the SwipeView but is working only the validations from left to right and right to left. Validations up and down up are not working. Could someone please help me?…
androidasked 9 years, 10 months ago Luiz Henrique Ugliano 651 -
6
votes2
answers3179
viewsRead a received SMS
An App receives an SMS and from the text performs a function. For this it is necessary to read the SMS and make the comparison in the APP, but for this must read, word by word, line by line or make…
-
6
votes2
answers680
viewsReal time update on Android apps
Looking at the API from instagram and doing searches on the internet I came across a big question, how they do synchronization of data in Real Time without having to save "photos and videos" in…
-
6
votes1
answer803
viewsHow to use parse.com?
With the parse.with it is necessary to pass my database to their website? I have a database on the company server, and I don’t intend to put it on their website. They offer the option to access my…
-
6
votes1
answer3190
viewsHow to change the image of an Imageview dynamically
Hello, I need help changing an image dynamically Follows my code: st = (ImageView) findViewById(R.id.imageView4); int RID = this.getApplicationContext().getResources().getIdentifier(Bundle_img,…
androidasked 9 years, 3 months ago Kleber Souza 451 -
6
votes3
answers465
viewsMedia Player setDataSource
The function setDataSource() works with a url, but I need you to get a file from my raw (for example). I used: Uri url = Uri.parse("android.resource://" + ctx.getPackageName() + "/" + R.raw.file);…
-
6
votes1
answer1106
viewsHow to get the battery percentage?
How to take the battery percentage and report on a battery-style chart?
androidasked 9 years, 2 months ago Yan Cavalcante 63 -
6
votes3
answers1605
viewsCan you access the bash on Android?
I’m not an expert on Linux. But if Android uses the Linux kernel, it is understood that there must be some similarities. The terminal would be one of them?
-
6
votes3
answers2268
viewsSite within App
I have a classified site, I need to create an Android app from my site, I do not program in Java, You can create an app where within it is displayed the site in mobile? Type an iframe of the site…
-
6
votes2
answers182
viewsHow to send and receive bitmap on restful server
Staff did a search and found very little content, I would like some tips because I never did it. How do I send and receive a bitmap to a server? Send with Json? Convert to Base64? What is the best…
-
6
votes2
answers864
viewsLogin to facebook using custom button
In a project I’m doing, I have to log in through Facebook. I’m already getting it, though, I can only get it through LoginButton of the Facebook SDK itself, using these methods: private static final…
-
6
votes5
answers1382
viewsNo return on method?
I have a method where its function is to read a file and store the value written in the file in a variable and return the variable,: public String addItemCreative(File f){ String line = null; try{…
-
6
votes2
answers2292
viewsHow to save a list of elements with Shared Preferences
I am creating a contact list and would like to save this list with Sharedpreferences. Example: public class MeusContatos extends Activity implements OnClickListener { int pos=0; public static final…
-
6
votes4
answers756
viewsRemove a specific space in a string
I’m having trouble implementing replace in a String in Android Studio. I need to remove a certain blank in the String. Real examples: 8 hrs 2 mins 1 day 2 mins I need the text to look like this:…
-
6
votes0
answers292
viewsSave multiline text in Blob field on Sqlite
I would like a hand in this matter of saving a EditText multiline in a blob field in the Sqlite database, because when I add ContentValue values.put(CriaBanco.OBS, pedido.getObservacao()); in the…
-
6
votes1
answer767
viewsHow to make a smooth animation in Progressbar?
I’m trying to implement a smooth animation in my ProgressBar, but, if I increase the duration time, the animation stops being "smooth". Example with 5 seconds: Example with 30 seconds: ProgressBar…