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
votes1
answer163
viewsHow to safely use passwords within an Android app?
I’m developing an Android application where I need to authenticate the app user and return some information, but this information will be in a remote database (Mysql)then for this I have developed…
-
0
votes1
answer224
viewsError accessing method in a class
Within src I have a package called meus_utils and in this package I have the class utillog. In this class I have the method public static boolean gerouLog(Context context){ return true; } When I…
-
0
votes4
answers1377
viewsError on AVD startup - Android Studio
When android emulator starts the following error occurs: 07-22 15:14:14.669 2387-2488/com.android.systemui E/JavaBinder﹕ Uncaught remote exception! (Exceptions are not yet supported across…
-
0
votes1
answer492
viewsChanging the title color of my application
I have tried various codes to change the color of the title that is in the application’s actionbar, but nothing, I think it’s simple, but I can’t figure out how. use the "Theme.AppCompat.Light"…
-
0
votes1
answer701
viewscolor/opacity in selected view
I implemented a Navigation Drawer (no modifications to the Android Developers example) I only changed the background colors of Listview and Text of the items: layout/activity_main.xml:…
-
0
votes2
answers89
viewsHow to order Contacts by name?
I have the following code and would like to make an ORDER BY name: try { String clsSimPhonename = null; String clsSimphoneNo = null; Uri simUri = Uri.parse("content://icc/adn"); Cursor cursorSim =…
-
0
votes1
answer301
viewsChange the background color of Actionbar with Tabactivity
I’m having trouble changing the background. When I wear it like that, with the extends of TabActivity: public class HomeTabActivity extends TabActivity {... private android.support.v7.app.ActionBar…
-
0
votes2
answers9331
viewsHow to change the Text Color of a listview?
I’m trying to change the color of the text of this listview that I did by following some examples on the internet, but the most I could was the comment from row 39* txt.setTextColor(Color.GREEN);…
-
0
votes1
answer130
viewsHow to send Activity values to webview Cordova?
How do I send Activity data and redeem in Webview with javascript from Cordova/Phonegap index.html
-
0
votes1
answer522
viewsAndroid: Instagram photos of a particular user
Setting: In my app I want to show the photos of a user. I am authenticating, I have access to the token and I can log in with user and password but after logging in it says that I am not allowed to…
-
0
votes2
answers588
viewsWhat is the correct way to log in and register?
I have two Activities, the main Myactivity and Loginactivity, how do I make the application detect logged in user when opening the application? And how to do for when the user presses the back…
androidasked 10 years, 1 month ago Israel Sousa 1,362 -
0
votes0
answers133
viewsHow to know what is generating this error by this log?
I created a Navigation Drawer following an example, but I would like to know why this error, have how to know by log? http://pastebin.com/RAf5Eswz 10-27 10:50:26.045: W/Trace(18420): error opening…
androidasked 10 years ago Israel Sousa 1,362 -
0
votes1
answer1885
viewsWebservice almost 100% (Rest/json)
I have a problem that I can not solve T_T, after many searches I created a web service (test), to be consumed by an android application. The only function of it is to return a String, but I don’t…
-
0
votes2
answers1338
viewsHow to get id of an Imageview on android?
How I can get an id of an image from an Imageview. Example, for me to set an image in my Imageview I use the following code. imageView.setImageResource(R.drawable.icone_x); How do I do the reverse…
-
0
votes1
answer2120
viewsRecover data from Fragment
I have an Activity with 4 tabs, in each tab I carry a different Fragment, in each Ragment I have a flumulario, and in the last I have the Register button, when I click Register I want to get the…
-
0
votes1
answer136
viewsDelete an element from my Listview
I need to delete an element of my Listview and I’m in trouble my code is this Host = new String[] { "Host1 ", "Host2", "Host3"}; Descricao = new String[] { "Estado do Host", "Estado do Host", "Host"…
-
0
votes1
answer344
viewsAs parameter step in html to load in android Webview
I need to pass parameters in the "image" and "embed" tags to load into a webView, but the parameters should be from the Android Assets folder int height = PKViewSize.getHeightOfDisplay(context); int…
-
0
votes2
answers1068
viewsHow to insert an event into the Navigation Drawer menu item?
How to insert an event into the Navigation Drawer menu item? I was only able to do it using the option menus other than Nav. Drawer. Loginactivity.java package com.androidbegin.parselogintutorial;…
androidasked 10 years ago Israel Sousa 1,362 -
0
votes1
answer42
viewsHow to implement generic data in this case?
I am using Ormlite in my application and want to implement a generic type in the following: public interface AdminDao extends Dao<T, Integer> { ... } where "T" would be the generic. Error:…
-
0
votes1
answer819
viewsAdd bookmark on map ANDROID
Good night, I have an application with a map in a Swipe tab, but I want the map to mark a point on the map and start at that point. thanks in advance. Together send the JAVA: public class Mapa…
android eclipse api android-fragment google-maps-android-api-2asked 10 years, 3 months ago SaPires 175 -
0
votes2
answers71
viewsAnimation does not repeat in android api 8
Hi, I’m creating a simple app and I want to make a light stay flashing, so I added the following code: private void flashLight() { anim = animate(imgLight).setDuration(speeds[speed]);…
-
0
votes1
answer1646
viewsCreating a customized and animated toggle
I am creating an app for Android in which I am using a ToggleButton as one of the interface elements. I am trying to make it have images instead of the button itself and there is a transition…
-
0
votes0
answers62
viewsActivity moves on Android
I have developed an application similar to 2048 and it is working apparently well. But there’s one detail that’s bothering me. 1 - I have a screen(Activity) at the top of the screen I have several…
-
0
votes1
answer184
viewsCall Button does not work
Hello, after trying all the tutorials and some more I decided I can’t even solve the problem, I want to create a button that redirects to a call to a certain number happens is that the button does…
-
0
votes1
answer91
viewsActivity does not open
Well, I created two Activities when I clicked on the button of the first one it should open the second one with information received from the first one. But that’s not what happens, where I’m wrong?…
-
0
votes2
answers365
viewsCordova battery API does not work
I’m trying to use the Cordova Batterystatus API and I’m not getting it, neither in the Intel XDK emulator, nor in the debug on my Android and when I get a .APK. It just doesn’t happen when I run.…
-
0
votes1
answer2177
viewsRefresh Listview
When I click on my Listview, I open a dialog with 3 buttons (Edit, Delete and Return). By clicking delete, I would like to have Listview updated. At what point I must do this? public class…
-
0
votes2
answers947
viewsHide keyboard with Fragment
I’m making a mobile app that has screens on Fragment with Drawer, and in them EditText, but I’m having a problem that by clicking on EditText and then click away, or click the menu the keyboard does…
-
0
votes1
answer421
viewsContext error in Fragment
have a problem, I found a tutorial to create a Listview but is implemented with extends Activity and I’m with extend Fragment and so I have an error in the place marked with an arrow: package…
-
0
votes1
answer604
viewsHow to create a Background Service with Genexus Smart Devices on Android?
Develop with Genexus Smart Devices Ev3 U1 for Android. I need a routine to periodically run in the background and to display Notifications. Just like Whatsup does, where there is a Service of this…
-
0
votes2
answers9169
viewsError in such table. Sqlite
You’re making this mistake, I wonder if my DAO is right. Error: 08-06 14:19:53.304: E/SQLiteLog(16893): (1) no such table: proposta 08-06 14:19:53.334: E/SQLiteDatabase(16893): Error inserting…
-
0
votes0
answers616
viewsHow to validate a user in Active Directory via Android
I am trying to validate user in Active Directory with Delphi XE7 + Android. Before I used in previous versions to desktop but now I can’t do for Android.
-
0
votes0
answers619
viewsHow to send multiple sms via an android app
In my application I am trying to send several Smss, but sometimes it does not send. smsManager.sendMultipartTextMessage (telefones.get(i), null,smsManager.divideMessage("Mensagem"), null, null); try…
-
0
votes1
answer97
viewsURL_STRING does not fill correctametne
I have a problem in the consumer class of my Webservice Rest. In the project there are only two classes, Mainactivity is working correctly, but the consumption class (Consumows) is not understanding…
-
0
votes1
answer251
viewsHow to get the main color of an Imageview?
I wanted to know without having to post my code, how to get the main color of a certain point within a ImageView, for example I have a frame and within that frame has 3 colors, the color on the…
-
0
votes0
answers65
viewsAPI 21 theme errors
I’m having several errors related to the themes. Error retrieving Parent for item: No Resource found that Matches the Given name 'Theme.AppCompat.Light' There are several lines. I installed 100%…
androidasked 10 years ago Claudinei Arteman 1 -
0
votes1
answer140
viewsCustomer Rest/Erro no doInBackground()
Apparently there are no errors in the codes, but I don’t know why you’re pointing out an error in the method //if (log.loginstatus(user,pass)=="1"); Unless mistaken there is no method in the…
-
0
votes0
answers66
viewsSlide Menu using Sherlock without Actionbardrawertoggle which is obsolete
I have seen many examples to implement the slide menu using the famous Sherlockactionbar, but they all use the obsolete Actionbardrawertoggle. Someone has an example of implementing a slide menu…
-
0
votes0
answers51
viewsSqlite being accessed by GCM
I need my GCM, when receiving a message, save the information in the database, but it is giving error, must be because the application is not open. Anybody know what I should do? I have the…
-
0
votes1
answer193
viewsVariable must provide either Dimension Expression or an array initializer Syntax error on token, misplaced Construct
I am new to programming for Android and would like to troubleshoot this error: package br.pedromazer.cantoliturgico; import br.pedromazer.cantoliturgico.R.string; import android.app.Activity; import…
-
0
votes1
answer219
viewsProblems with listview text above icons
This happens on Android and IOS. When the store name or the store name is too big the text is on the image. And the client wants the image on the right side, and on the left side I don’t have this…
-
0
votes1
answer324
viewsFragment with TABS inside another fragment with Appcompat
It is possible to add a fragment with TABS (HORIZONTAL VIEW SWIPING WITH TABS) inside another fragmneto?…
-
0
votes1
answer133
viewsHow do I add a progressbar to my app?
I have a Activity calling a method in the oncreate I created that’s called criarlista(). This method creates a ListView loading from an XML, and this process takes about 3.4 seconds because it is…
-
0
votes1
answer403
viewsHow to start by genymotion in eclipse
I have two Android emulators in my eclipse, one that I installed and started using by default of eclipse, and another installed a little while ago is Genymotion, but when I run my application it…
-
0
votes1
answer136
viewsAdobe air apk does not run on android 4.4.4
I’m using version 15.0 of SDK Flex and AIR, but even so my application does not run on mobile Moto G, which has its android version of 4.4.4 Can you tell what it can be?
-
0
votes1
answer1508
viewsClear database table
use this method to delete a record from the bank public boolean delete(String id) { String where = "id = ?"; String[] whereArgs = new String[] {id}; int retorno = this.banco.delete("pessoa", where,…
-
0
votes0
answers102
viewsAndroid Googleapiclient
I need to use the Googleapiclient class but I’m not getting it. I’ve already imported the lib from google-api-java-client, but from what I saw there is no package…
androidasked 9 years, 11 months ago Alves Felipe 61 -
0
votes0
answers246
viewsProblems with Sqliteplugin Cordova/Phonegap
I am trying to create a connection to an Sqlite database created within my application and returns the following error. SQLitePlugin.executeSql[Batch](): Error=no such table: fornecedor_motorista…
-
0
votes0
answers64
viewsConnect to DVR via android
I need to create a project to study how to connect to a DVR and receive the images through android and I’m a little lost in this search, I would like some help, what should I study or some sample…
-
0
votes1
answer65
viewsAndroid and the layouts
I started programming for android a little while ago but I have some doubts about the layouts . there is how I make a canvas without layout and I tell where each object will be drawn?