android

Automatic call answering, play sound out, and DTMF on Android

Could it be possible now, which we can develop an Android application having the following requirement for its working steps Automatic receive the call, then Play some sound out to the caller, wait for DTMF response, then Record the caller sound (in the case that they permit, by pressing 1 as DTMF response) Callee can play back the rec...

how to change video orientation in MediaRecorder to portrait

When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation. How to force MediaRecorder/Camera use real orientation ? ...

clamav for android

Has anyone tried porting clamav to android?? ...

How to change font style for spinner item

Hi, I have a spinner with items, populated via ArrayAdapter. I want to change font style for some (not for all) of spinner items, both for spinner's combobox and listbox. I guess that I need to subclass something, but I don't understand what. How can I do that? Thanks! ...

android - accessing test application assets

Hi, I've an XML file in the assets directory of my test application. I want to access this file from my suite method of the test class. ie., public static TestSuite suite(){ InputStream stream = // Some code which returns the asset } Any idea how I can do this? I tried with Resources.Resources.getSystem().getAssets() but no luck ...

Android textview multiple text colours

I am using a textview to display some text and I would like different parts of the text to be shown in different colours, e.g. first half of the text in red, second in blue. I cant seem to find a way of doing this. I have heard of using Html.fromHtml() but I am not exactly sure how to do it this way. ...

What is meant by WifiHotspot in Android2.2

Android 2.2 had come up with a new feature called WifiHotspot.This feature is not available in previous versions.What is importance of this feature. What is meant by WifiHotspot ? Can anyone tell me detailed explanation regarding this feature. Where can I find information about this feature. Thanks in Advance, ...

Help with Async task, crashes on .execute()

Hello, when my Async task is executed it completely crashes the app Here is the code to the class. It sits inside of my main activity class. I'm new to threading, so sorry if I've done something ridiculous lol, I don't fully understand it. EDIT: private class TeamSearchTask extends AsyncTask<String,Void,Void> { CharSequence nf...

get Activity object while in View context

This is a followup to this post: http://stackoverflow.com/questions/3897176/findviewbyid-in-a-subclassed-surfaceview-throwing-runtimeexception Based on Romain Guy's feedback (which I'll accept shortly as it is a solution), I'd like to obtain the calling Activity from within the View, so that I can use it to obtain the desired TextView ...

Android Bluetooth

If I wanted to connect to another device via bluetooth how would I do it? Nothing I've done seems to work. The phone I'm trying to connect to is non android and has bluetooth on and discoverable. ...

How to access podcast metadata?

I'm trying to get access to the metadata about podcasts, such as the show notes/description, the show title and the icon image. I'm at least partially using ContentResolver to query for most of the AudioColumns information, but for some reason ALBUM_ART is missing, there seems to be no column for the description, and in general, it's not...

How to set Background of a TextView dynamically from Xml file.

Hi, I have an XMl file like below which I will use to set background for Textview: row.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> The above Xml I will set as background for TextView in main.xml as below: ma...

Android Gmail attachment

Hello all. I'm trying to get the name of the file attached to an email on the gmail app? Can anyone point in the direction of getting the file name ? I can get the attachemnt, just don't know how to get the original file name. ...

Google maps works on phone NOT on emulator

Google mapview does not load the actual maps in the emulator, just the grid. My overlays are displayed ok. sdk version 2.2. It works fine in a real phone. I use a debug key and trippel checked the manifest. It has been working in earlier projects. I just cant figure it out.. Any ideas, what to check? ...

How to call Java methods from C++ in JNI

So I'm writing an Android app which uses a large c++ library. I have everything working so that the java app can call the c++ delegation methods, but I'm finding myself wishing I could log messages from c++ to the Android log. This is easy from java, but I'm at a loss as to how to call a java method from c++. My searches found methods...

How do I write this Query for SQLite for android App?

I am trying to write a select query from one single table in SQLite DB in my app where data exists. This is the SQL.table has these columns - id(INTEGER), start_time(INTEGER), category(TEXT) select category from tuuserid_pref where id = (select max(id) from tuuserid_pref where start_time < '1242'); by the way I want to bind the value s...

Parse iframe source in Android WebView

I have pages that users will be accessing that contain iframes. I would like to be able to parse out the source URL for sharing. ...

Opening a connection on Android and using it via the NDK

Hey all, this is briefly what im trying to do: Im making an Android application that uses C++ libraries compiled from the Android NDK. Some of these C++ libraries create connections and act as servers to report data over a wifi connect (i am not trying to use the phones 3g connection or anything similar). The connection will be created u...

Android: "waiting for debugger" hang-up

Hi folks, This might be helpfull for the one or the other: If the debugger doesn't attach (hang-up of the screen "waiting for debugger), then you probably use the phone device and the emulator at the same time. Just unplug the phone or close the emulator and everything's fine again. Cheers, Marc ...

ACTV.dismissDropDown() doesn't seem to work on my emulator!

In my OnItemClickListener routine, I want to dismiss the dropdown and replace the entered text with a label prefixing the entered text to confirm the selection. The later part is working but the dropdown stays on the screen until the Tab button is used to move the focus. Is this correct and if so, how can I do this programmatically? thn...