the following code is to handle ACTION_DOWN and ACTION_UP events for a button named clash. the idea is that once if/else determines that the onTouch event was caused by clash and the switch statement then determines what to do based on the action. i don't know if the problem is that the switch statements are not returning true and that...
I have a LinearLayout layout with a ListView in it. I've made the android:background of the LinearLayout (I've also tried it on the ListView) be an image that I would like for my background.
This works fine enough. However, when I start scrolling through the ListView, the background often disappears and becomes black. If I move it ar...
DELETE PLEASE My Fault
...
Hallo guys,
im here in austria how are you doing?
i have startet developing android and writing my own small app that gets files from a server to display the information in a ListView. I really spent a day to look after the best and easiest way to get files from a server. However i wrote the program and tested it - and now i have a seri...
Im trying to get an onClickListener to fire on a Spinner, but i get the following error:
Java.lang.RuntimeException is "Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead," the thing is, im sure I want to call onClickListener and NOT onItemClickListener. I found this question asked by someo...
In iOS, there is a very easy and powerful facility to animate the addition and removal of UITableView rows, here's a clip from a youtube video showing the default animation. Note how the surrounding rows collapse onto the deleted row. This animation helps users keep track of what changed in a list and where in the list they were lookin...
How can I get the volume of the audio stream coming in through the android microphone?
...
I'm attempting to programmatically create an email with, potentially, multiple attachments but have run into some difficulty. I consulted this similar question and found that the answer was do create something like this:
ArrayList<Uri> uris = new ArrayList<Uri>();
for (String file : filePaths)
{
File fileIn = new File(file);
Uri...
I'm trying to create a simple program that scans for a bluetooth headset (I'm testing with a PS3 headset) and then connect to it. I'm using the code from the bluetooth chat program example. However I cannot get it to connect to anything. It is giving me an I/O Exception when it gets to the connect().
private static final UUID MY_UUID...
Hy!
I read shoutcast stream in android, the probeleme is the following:
in VLC i get 200 kb/s inner byte speed
in android i get 50 kb/s
is it normal? i get always the VLC kb/4 in my android phone. i am using WIFI
why?
...
Hi.
I have written a custom preference class which contains a simple progress bar in it to allow setting things like volume.
The preference worked great until I tried putting two of these preference in my preference screen.
When I did that the preference screen started to act wierdly » the two custom preferences switch locations consta...
Hi Android Guru,
I need to create an application with 4 view. I need to pass from a view to an other simply by a touch and a move to the left or to the right (no button). The effect I would like is the same that you see when you navigate in the main menu of android when you pass from a page to another.
I have tested the ViewFlipper, bu...
Hello,
I know this is been answered many times but i am unable to find any good resource for this.
Can any one tell how to create Custom Alert box for android??. What i want is a nice looking alert box with few images text etc which will be basically mu application info. I know how to create simple alert box. Please point me to any sam...
I have written a simple app widget that tries to display a time chart as a sparkline using the achartengine library.
My renderer is:
final XYMultipleSeriesRenderer multipleRenderer = new XYMultipleSeriesRenderer();
final XYSeriesRenderer renderer = new XYSeriesRenderer();
multipleRenderer.addSeriesRenderer(renderer);
multipleRenderer.se...
Can anyone tell me how to make an EditText not editable via XML? I tried setting android:editable to false, but (1) it is deprecated and (2) it didn't work.
...
Hi all,
I am doing database application in android.i need to know where the data base is store,whether in Emulator or in our application.
Thanks in advance...
...
Running Android 2.2 on a Galaxy S. Host is an OS X 10.6.4 machine. DDMS in Eclipse reports no devices being connected. adb devices -- nothing.
I've tried:
Rebooting the phone
Toggling the USB development mode
Plugging/unplugging the cable
Restarting the server (adb kill-server).
The weird thing is that sometimes computer will not d...
I have an object on my main.xml layout file called thefact that is TextView. I also have a string called sharefact. I want to save what text is in the TextView into the sharefact string. I can't do:
sharefact = thefact
Or anything similar to that because it would want me to convert sharefact into a textview.
Thanks!
...
I have a widget that I've developed and it runs fine on my emulator. But when I go to and run it on my device it doesn't show up in the list
Here is what my console says:
[2010-10-14 12:43:43 - MyWidget] No Launcher activity found!
[2010-10-14 12:43:43 - MyWidget] The launch will only sync the application package on the device!**
[2010...
What's the correct way (if any) to redirect a received Intent to another BroadcastReceiver?
I have two BroadcastReceivers set to listen to the same intent. It works in development, but in production, only the first one registered in the manifest gets the intent.
Can I call the other one's onReceive() method directly, passing the same ...