android

Android- put a call on hold and add new call

I would like to write an app that will put the current call on hold, then add a new call. Since this can be done by manually pressing buttons, I would think there is a way to do it programmatically, but I cannot find anything in the sdk. TIA ...

Video streaming from Android

Hi! I want to live stream video from android device. I found out that ffserver (ffmpeg) can be compiled and run on android. Now i need to get video from camera in android device and get it to the ffserver in real-time. Any ideas? Regards, MM ...

Reacting to a click on a preference

I have a simple preference (not EditText preference or ListPreference). I have a method that deletes all files in a directory. I want to do this when user clicks on a preference, but i don't know how to react to a click on a preference. ...

Android Froyo WebView doesn't scroll vertically

Hi all, I have a WebView widget in my app that displays custom HTML content. This is my layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:id="@+id/main_...

Android: ListView, Last item - Show more...

Hi! I have an issues, I want to show 20 items in the list. But there is a catch: if the user scrolls down to the bottom of the list, there will be an item that says: "Show more items", and when the users click on it, more items will be added to the list. My question is how is poosible to have a last item, that has a different style a...

Android - How to copy setBuiltInZoomControls functionallity

Here is my problem: When I click on the map view , the "setBuiltInZoomControls" method displays the zoom controlls and then hides it. I want to copy that functionallity so that when I click on the map view I want to display the map, satellite and traffic buttons, but my code doesn't work. Can you help me on this? I have included my cod...

Synchronous system activities

I wanna run two system activities one after another in specific order. now as we know, startActivity is an asynchronous operation, so i cant keep on a specific order. so i thought maybe I should try to do it with dialogBox in the middle but also running a dialogBox is an asynchronous. now as i said the activities which i try to run ar...

android custrom control (button)

Hi, all! I would like to create button which contains text on left and checkbox on right (or any other component). How can I do that? As I found I can make my own View extends Button, but how should I implement onDraw method if so? Thanks ...

How to setup an alarm that would go off even if I restart my android phone?

Hi: I've been searching this site and found some answers related to setting an alarm. I've successfully been able to set up an alarm. What I do is: From an activity I set an alarm that at certain time and date will call a receiver From the receiver I call a service From the service I send a notification (on the notification bar) to...

Installing a new Location Provider

There is an entry in 1.5 of the SDK for installLocationProvider. That entry is marked: @hide. I would like to provide an alternate location provider, the why is not important, just the how. Does anyone know the "trick" for using the "installLocationProvider" entry point or where to find details of building a complete or partial solution?...

Launch Android app from within SMS/MMS message?

Is it possible to to launch an application using a URL launched from within the Android messaging app (SMS or MMS)? ...

Android Inline Activity

In Android, the TabHost object renders activities in a type of inline way. I'm wondering if there's any way I can do a similar type of thing, without using the tab-host. Suppose, i want to have a toolbar or sliding drawer that allows me to switch between the activities in the same way that the TabHost does this. In other words, I'd...

Consensus on Uri.parse("content://sms");

What is the consensus on parsing the Uri of sms messages for use with a cursor. There has to be a cross phone compatible way of getting access to sms messages. There's nothing in the sdk for something like this? What about this as a Uri string: ("vnd.android-dir/mms-sms"); ...

Displaying images on android widgets using html & TextView

I am trying to display images dynamically on a home screen widget. As RemoveViews offer a very limited set of methods to interact with the layout, I'm trying to use HTML to get the same effect. Regular HTML displays ok (<u>,<b> etc) however I can't get images to display. Instead I get a little empty square appear in the TextView. E.g. ...

SQlite DB Session- Android

There are two screens in my app. in first screen I take username and password, open DB connection and insert them, on click button in screen 1 I am bring up second screen and do the authentication by comparing stored password with current password that user inputs in screen 2. Application in emulator crashes when I click on submit button...

Android: how to listen for scrolling events?

Hi all, is there a way to establish a listener on the process of scrolling in a ScrollView or a HorizontalScrollView? ...

develop android apps in xcode

hi im trying to develop an android app in xcode. ive downloaded java, java jdk and the android sdk and have loaded a half finished (but working with no errors) app. i also changed the target to: Build Tool: /usr/bin/ant Arguments: install but when i try to build it i get Build file build.xml does not exist i couldn't figure...

Nine Patch Image in Android Game.

Hi, I am trying to use a nine patch image as a background in an android game. The image expands well in multiple resolutions but, my game has slowed down by 10 fps. I used to get a consistent 45 to 50 fps now I get 35 fps. The question is when we use a nine patch as a drawable and set it as a background in a view does it have any perfor...

Displaying activity with custom animation

I have a widget which starts an activity when it is clicked. I'd like to have some kind of fancy animation to display this activity, rather than the standard scroll-from-right of Android. I'm having problems setting it, though. This is what I have: slide_top_to_bottom.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http:...

Android XML Layout - 4 ImageViews on one screen

Hello, I thought I have understood the XML layout of Android, but it seems that I haven't. I want to have four ImageViews on one screen, to view four images at the same time. It should look like this, where A to D represents the image views: DDDAAA DDDAAA BBBCCC BBBCCC How can I do that? I tried it this way, but it's not working. The...