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
votes2
answers1663
viewsYoutube video for a video view
I need to pass a video through the link to inside my android app , I tried this code : String video="http://www.youtube.com/embed/76JpysFZ2VM"; Uri uri= Uri.parse(video); vid1.setVideoURI(uri);…
-
0
votes1
answer51
viewsIs it possible to inflate a class instead of layout using Fragmenttab?
I made a dynamic form, so I have to inflate the class and not the layout, but I am in doubt if this is possible with Tabfragment.
androidasked 9 years, 4 months ago daniel12345smith 2,120 -
0
votes1
answer469
viewsHow to take dice from a Fragment and play in an Activity?
I have a class in java that takes all the information and assembles the entire structure of my program. Well, as I do to pick up an Edittext that is in my Ragment and play its content inside the…
-
0
votes1
answer321
viewsChange the color of the List View item if it is disabled - Android
I have a normal listview that lists the names of my users. And I would like disabled users to have the grey background of the list item. How to do this? public class Usuario { private String nome;…
-
0
votes0
answers33
viewsHow to get a variable Inside of thread?
I have a webservice Receiving data and Stores it in a String , how do I get this string Global variables doesnt work! Im using a traditional thread: new Thread() { public void run(){…
-
0
votes1
answer67
viewsHow could I send messages from the cloud to Android ?
I know of the existence of GCM , but it seems to me too complex , there is an easier way? In case you don’t know any GCM appreciate.…
androidasked 9 years, 4 months ago Tiago Coelho 739 -
0
votes1
answer150
viewsCanvas - getWidth(), getHeight() and Onclicklistener()
I’m making an app for Android using the Canvas class, but I’m having some problems. 1º. When executing the methods below, canvas.drawText("Width: " + fotoOriginal.getWidth(), 0, 10, paint);…
-
0
votes1
answer65
viewsAndroid not finding class inside a Jar. What to do?
This is the mistake:java.lang.ClassNotFoundException: br.org.projeto.precos.bean.Lista where the "br.org.projeto.precos.bean.Lista" is the Jar from which I am trying to use a class. I imported…
-
0
votes1
answer111
viewsScript for first load Xamarin Android sqlite
I need to create a first load script for our application, the problem and we have two BLOB fields in our table, it is very large with this I would like to see the best way to implement this first…
-
0
votes1
answer55
viewsMerge Listviews Android
In my application, I have two Fragments, one to load Tweets and one to Read an RSS. RSS public class RssFragment extends ListFragment { private RssListAdapter adapter; @Override public View…
-
0
votes1
answer417
viewsHow to use Listactivity with Actionbar?
You can only access a menu ListView who is without the ActionBar by the menu key in the emulator. How to display it? It is necessary to inflate by BaseAdapter? Activity of ListView: public class…
-
0
votes1
answer3258
viewsHow to access "data" folder in Android File Explorer using mobile phone as emulator?
I use a p plugin/ view the tables created in Sqlite, but I can’t access the "date" folder when I use my mobile phone as an emulator, only works when I use an AVD. Someone knows how to release this?…
-
0
votes1
answer57
viewsAmr file converted from wav other than original
I am converting a wav file to Amr using the amrInputStream library, but the original Wav file is 15s 387ms long with the size of 1.3Mb and the generated AMR file is 133kb but is 1m 25s long, and it…
androidasked 9 years, 4 months ago Laercio Bernardo 3 -
0
votes1
answer974
viewsUsing Ftpclient I cannot send file to FTP server. Problem with permission
I’m developing an android app that accesses an FTP server where I store backup files. I’m using it as a base in that tutorial. The FTP server is Cesarftp. The operating system is a Windows Server…
-
0
votes1
answer454
viewsAndroid open image by the way
We can see that there are several tutorials on how to save the path of an image, being a photo of the camera or selecting from the gallery, until then ok, but how to search again the image along the…
-
0
votes0
answers273
viewsError when resetting alarm with Alarmmanager right after cancelling it
I have an alarm set to wake up at a certain time and repeat every five minutes. But after a few repetitions, I automatically set the cancellation of the same, that is, call the method to cancel…
-
0
votes2
answers56
viewsWebview does not want to go downtown
Boa I have a Webview that does not want to go to the center of my app I leave here the example In my xml : <WebView android:layout_width="wrap_content" android:layout_height="0dp"…
-
0
votes0
answers29
viewsCould this code cause webview to not "connect" to the xml’s center_horizontal?
I have this code to upload a video to the webview , I had already made a post but I forgot to present the code . mWebView.getSettings().setJavaScriptEnabled(true);…
-
0
votes1
answer352
viewsResolve android.os.Networkonmainthreadexception error in an android application that works as a client to receive images from a server
I’m trying to make an Android app that will fetch an image from the computer. Server-side code (computer) is already implemented and operational. Using UDP, I ask the server to send me an image and…
-
0
votes3
answers1106
viewsHow to view query result in Sqlite?
To view tables I use a plugin called Questoidplugin and works very well, but and to view results of queries, has something?
-
0
votes1
answer78
viewsHow to put db data in more than one Fragment?
I want to put the database data in Fragments, in a Swipe, not a list, where each record is loaded into a different Fragment.
-
0
votes1
answer139
viewsSmsmanager sending SMS
I’m trying to send a text with the following code: final SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage("phone", null, "Message", null, null); But nothing happens, it…
-
0
votes2
answers424
viewsGreater space between spinner items
I’m creating an app that has spinner, but when opening the items are always glued together, I wonder if only by custom spinner I can give space or there is some style/theme that already has these…
-
0
votes2
answers474
viewsConsume PHP/SOAP Webservice on Android
I am developing an Android application that consumes a PHP webservice through ksoap2 library. I am currently consulting the webservice with a class that extends an Asynctask. Only because she does…
-
0
votes1
answer110
viewsButton on top of a View with Canvas
I’ve been trying for some time to put a Button on top of a View I’m using with Canvas. I looked in several places (this seems to be a common problem) but found no answer. When I try to run the…
-
0
votes1
answer80
viewsObject Product Saved on the first screen but not on the second
Hi, I’m having a problem with a little study project. I have 2 activitys, First Product and Second Product. The first instance of the object Product 1 saves it in the Sqlite bank, when calling the…
-
0
votes1
answer327
viewsError: 'Boolean java.lang.String.equals(java.lang.Object)'
This is a program, which, behind the calculator, stores files that you think are important. The error message field I believe is not his and the Super SU or Android system, because every time, in…
-
0
votes1
answer180
viewsNavdrawer using activities instead of Fragments
I’m trying to implant a Navdrawer in my app but the example that I saw uses Fragments instead of Activity that I was already using, I found a block that deals with the Fragments. Part of the code…
android android-layout android-fragment android-activityasked 9 years, 10 months ago Allan Chrystian 483 -
0
votes1
answer36
viewsElaboration of an application for publishing events
I’m wanting to make an application for events it’s in development more as I will post the posts of the events in the application type will have an event in such a corner I want this event to appear…
-
0
votes1
answer76
viewsCustom view longClickListener does not respond
I’m trying to get my view to accept long clicks, but nothing happens. I looked at other similar posts but found no solution. Any idea what might be going on? <?xml version="1.0"…
-
0
votes1
answer2435
viewsHow to list directory in a listview?
I need to list a specific sdcard directory in a custom listview. Look at how I work, the list contains a boot and a title: Adapter public class AdapterListView extends BaseAdapter { private…
-
0
votes0
answers43
viewsEclipse project error: "no Resource round that Marches The Given name"
I created a project in eclipse but has an error in Mainactivity.java, in class R, in folder res>values>Styles, already dei clear. Error: no Resource round that Marches The Given name '…
-
0
votes1
answer826
viewsPass object for error parameter - Android Studio
I am trying to pass an object per parameter, but an error occurs on the line "it.putExtra("tag", obj);": Cannot resolve method (java.lang.String, my.minhaClasse package) Follow the code Obj obj =…
-
0
votes2
answers4946
viewsHow to create a Keystore at windows prompt?
I want to sign the apk of my app that has been ready for 1 month, but I can not in any way create this 'Keystore'. I tried online, in Android Studio(zzz) and I’m trying the command prompt for 2…
-
0
votes3
answers563
viewssetOnItemLongClickListener is not working
Can someone help me by telling me setOnItemLongClickListener not being called when I give a long click on my list item? I have in the same Adapter 2 methods of type onclick, one is the…
-
0
votes1
answer438
viewsMy listview is click-free
I don’t know why , but the items don’t click. My layout: <?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent"…
-
0
votes1
answer173
viewsAndroid does not interpret command " n" of a web page
I’m creating an app that it accesses a URL page, query some data, and returns the result in a Alert dialog, however in the web code, made in PHP, I need to put some " n" to format the data, and…
-
0
votes1
answer260
viewsSend Google maps address of a messaging app to your mobile?
I am creating an app in Android Studio, and I have a problem. The app contains Google Maps where it shows us our location, but what I’d really like to do is, by pressing a button, our location is…
-
0
votes1
answer265
views -
0
votes1
answer73
viewsHow to Apply Loading Large Bitmaps Efficiently
I am using Imageview to upload images because I find lack of memory error found this method, because I am not able to use. wanted a brief explanation where I change the variables available in…
-
0
votes1
answer1466
viewsHow to increase emulator memory?
I’m with an application giving full memory error, I find no alternative to case not increase memory 02-01 17:53:07.950: E/AndroidRuntime(767): FATAL EXCEPTION: main 02-01 17:53:07.950:…
-
0
votes0
answers498
viewsInsert Checkbox value into the bank and then use it on the screen
I have a recipe registration screen that contains a Checkbox called "received", I would like to know how to insert in the sqlite a tinyint and then redeem when I want to consult this recipe. Ex : I…
-
0
votes1
answer82
viewsRun scheduled time routine on time with android
I’m working on an android app that needs to check an X URL in X times. The only way I found to schedule tasks would be with the class AlarmManager, this really would be the right way? Someone…
-
0
votes3
answers2343
viewsHow to use a Fragment button
I have a button in my Ragment fragment_main <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer176
viewsHow to add ad in app?
I’m using this code: <com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="MY_AD_UNIT_ID"…
-
0
votes0
answers19
viewsCapture to handle webview media control
How do I know that the View as the image was clicked? Using Dump in Eclipse has control media content-desc. I need to know when it was clicked to fire a method.…
-
0
votes1
answer500
viewsReturn Bluetooth devices on Android
Hello, After a lot of research and study I managed to finish a class that returns me the paired and connected bluetooth devices near an Android. The problem I’m encountering is time to update my…
-
0
votes1
answer293
viewsList View and Normal Layout in an Activity
Hello, I’m wanting a screen to have a button and, below that button, a list with several items. But it turns out that the buttons are multiplied. Behold: Activity.xml <?xml version="1.0"…
-
0
votes1
answer95
viewsPouchdb + Cordova not working
I’m developing an application using the Pouchdb and creating apps using Cordova. I already tested the application on Chrome, firefox, android browser, safari, Blackberry browser, app for Ios, apk no…
-
0
votes1
answer431
viewsEdittext with Webview URL when the page starts loading
Not much to say. I need that when loading the page the page link was started by clicking on WebView go to the EditText ,that is to say : editText_url.setText(myWebView.getUrl()); I only know how to…