android

Need to play audio into a call

If my application records some audio with MediaRecorder, is it possible to play the recorded audio file into a call that was started with ACTION_CALL or ACTION_DIAL? I see that I can start calls from an application but is there a way for my application to know that the call was answered? At this point I would like to play a file of audi...

running hello world program from developer.android.com

Hi! I am trying to run the hello world program which is present on developer.android.com.I am using eclipse 3.4.1 version. But when i run the program it doesn't give me any errors, but it doesnt display hello world either. All it displays is the emulated device which i can get by running the android sdk also. ...

hide default keyboard on click in android

hi, i want to hide the soft keyboard when i click out side of editbox in a screen. how can i do this? ...

How do I tell if my textview has been ellipsized?

I have a multi-line TextView that has android:ellipsize="end" set. I would like to know, however, if the string I place in there is actually too long (so that I may make sure the full string is shown elsewhere on the page). I could use TextView.length() and find about what the approximate length of string will fit, but since it's multip...

[Android] TableLayout background from URI

How to use the setBackgroundDrawable method on tablelayout with an URI? ...

EditText's cursor coordinates

As the title suggests, how can i get the coordinates of the cursor in the EditText ? im not trying to get the cursor position here but the screen coordinates of the cursor. im trying to show a popup relative to that cursor, therefore i need to determine the cursor coordinates first. ...

Passing data to event handling class (implemented class ) and memory leaks

I have bunch of events for alertDialog, Button, Checkboxes etc in android application I have implemented the interfaces for event handling. My question is how do I pass data which I want, which is coupled with main activity, to these event handling function lets onClick(View v){ } There is method called setTag for View.What are my othe...

Android: How to send and receive data through SMS messages

I want to send some data (NOT MULTIMEDIA) through an SMS message in Android. Can this be done? I just want to send a very small amount of data from one phone to another, as XML or something. ...

Using Android robot icon inside applications (copyright laws, terms of service)

I'm writing an application where I would like to use a few backgrounds that contain the Android "green robot, and perhaps even one that says Google underneath the robot. Is this against the terms of service or does it violate any copyright laws? If it is against any laws, will it matter if the app using the icon is free or charged? Ed...

Error when debugging Android application with ant

it gives me an error when i try to debug android app with ant the error is: -package-debug-sign: [apkbuilder] WARNING: Using deprecated 'basename' attribute in ApkBuilderTask.Use 'apkfilepath' (path) instead. [apkbuilder] WARNING: Using deprecated inner element in ApkBuilderTask.Use instead. ...

Manual add/delete/edit records in sqlite database in Andorid Eclipse emulator ?

Hi, Is there way to add, edit or delete records manually in sqlite database in Android Eclipse emulator? Thanks ...

Tab View for web pages

I'm a beginning Android dev and have made a small working app that displays a web page and then has a menu to switch to about 4 other web pages. I've just completed the Tab View tutorial and have that working but I would like to display a web page for each tab that is clicked. I'm trying to merge my two successes but am having no luck....

How to prevent saving browser pages in activity stack history

User click one button on Activity#1 to start Activity#2. One button on Activity#2 start system default browser(Intent.ACTION_VIEW) to get Twitter authorized. After user allow, Twitter redirect user to Activity#2(Custom intent-filter+data) and it save the tokens. Now, if I press back key, the app back to browser, how to prevent this a...

CountDownTimer: "Can't create handler inside thread that has not called Looper.prepare()"

I know the general problem of "Can't create handler inside thread that has not called Looper.prepare()" has been asked before, but I am struggling to understand how it applies in this case. I am trying to construct a new CountDownTimer in a non-UI thread, which I guess is the cause of this error, but I don't really understand why the ...

Android camera information

Is there a way to information on the camera buit into the phone? Things like... -if there is a camera! -resolution -if a flash is present ...

Android sending data phone to phone

Can you find the IP address of a freinds phone using their phone number? ...

Can I add to an array adapter at run time

Hello, I finished the HelloSpinner tutorial and would like to try dynamically add more items into the spinner. I can understand the code for the array adapter, and i thought i could use the "adapter.add" method but it does not work. I have read another post that you cannot do that at run time, but what will be another option then? Thank...

Performance wise, what is typically better, using an image or a xml created shape as a drawable?

For example, if each row in a list had a background that was a gradient, would it be better to use a image of a gradient or to define that gradient in a shape drawable in xml? Is there is significant performance difference between the two methods? ...

File[] to String[]

The title is basically all there is too it. I have an array of file objects... File[] myFiles = myDirectory.listFiles(); And I want to convert it to an array of strings. (String[]) ...

Wrong Latitude/longitude received in Android Emulator on Mac

Ok, this is a really weird one. I'm sending Latitude/Longitude to Emulator running my App and its getting the wrong Coordinates !!! Everything I send (either via DDMS using GPX file, DDMS Manual, or telnet and using geo fix command), gets received, but when I print the latitude/longitude points received by the app, there are off by jus...