android

Adding Content to the Android Contact Screen

Hi all. New to Android Development and StackOverflow as well so my apologies if I'm going about asking this incorrectly. To make a long story short, I'd like to add an icon to the Contact Info screen, specifically to a contact's phone number. In other words, I want you to see the icon to make a call, the one to send an SMS message, and ...

user’s activity history in android

Hi All, I am new to Android development. I want to make an app, wherin I want to access following Logs: call log, message log, app usage log, media log, ... Logging data per activity: ex) call log: call direction, phone number, call duration, location, ... Are there any APIS available to achieve above mentioned Thanks in advance ...

how to parse xml data in android using saxxml parser

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <soap:Body> <LoginResponse xmlns="http://tempuri.org/QuestIPhoneWebService/QuestIPhoneWebService"&gt; <LoginResult> &lt;ROOT xm...

Identify this Android Widget.

I have seen the above marked (Encircled in Red) widget in quiet a few applications, what is it? ...

Reading binary file from sdcard using Stream classes in android.

Hello guys, Can anybody have any idea how to read a binary file which resides in sdcard using Streams, like Inputstream, CountingInputStream or SwappedDataInputStream? I am using these three streams to read a file which is currently in the Resouces folder, but now i want to move that file in sdcard but I cannot change these stream beca...

Build failures Jena on Android (Androjena)

I am currently working on a mobile application which uses OWL ontologies. I am planning on using the androjena lib which is a port of the java jena lib. http://code.google.com/p/androjena/ As instructed in the documentation, I have added the 5 .jar files included with Androjena to the build path of the Android Project. This results i...

ImageView setMargins doesn't work

I have a FrameLayout that has 2 images, a big one that that fills the FrameLayout and a very small one that I want to move around. I try to move the small one like this: xml file <FrameLayout android:id="@+id/layTrackMap" android:layout_width="wrap_content" android:layout_height=...

Latitude and Longitude of the current location.

How i can get the latitude and longitude of the current location, from android? ...

How to show a dialog on a widget?

Hi, i'd like to show a dialog, like when i use showDialog(...) on the Activity, but i need to do that on a widget, so i can't use showDialog(...). How can i do that? I tried this on my onReceive method but it crash: AlertDialog.Builder builder; builder = new AlertDialog.Builder(context); builder.setMessage("Are ...

found missing "record stores" in android from j2me

Higuys, i have an application in j2me which uses the method RecordStore.listRecordStores(). i need to implement the same application in android. does anyone know the corresponding method in android??? ...

Delay in the text display in the browser dialog box - Urgent Help

Hi, When I open the browser, I have made the settings for a proxy authentication dialog box to come up asking for user name and password. But a strange issue is being observed... When the dialog box comes up and when I type the user name using the KEYBOARD, it takes a long time for the letters to get displayed in the text box. Also ...

How can I attach a clock or a calendar to my application?

Hi folks, I would like to know how i can attach the Android clock or calendar into my application. That is when my application comes up one part of the view will be reserved for this application. Please guide me. Thanks, Sen ...

flipper problem in android

in one xml file i have created some layouts with flipper. main xml file:- <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff" android:id="@+id/la...

Problems with running Android Activity unit-testing from Eclipse

Hi Im having a problem starting or running any activity unit tests from within eclipse. Even i start a clean project and make a simple test class it always prints to the console: [2010-10-05 13:10:24 - testAndroid] Collecting test information [2010-10-05 13:10:25 - testAndroid] Test run failed: Test run incomplete. Expected 2 tests, r...

Setting up sqlite database

Hi, Sorry I am a noob, I am trying to learn about sqlite databases using linux, I cannot find any tutorial that covers what I need from setup to creating to using. At the moment tutorials I find say open a shell using adb shell command but when I open a terminal this does not work even if I navigate to the android tools folder, I can g...

How to maintain the scrolling state while orientation change in android

Hello guys I have created one custom view that contains the horizontalscrollview. Now when i changes the orientation its scroll state change to 0 every time. I got the previous scroll state by using onSaveInstanceState(Bundle savedInstanceState) and onRestoreInstanceState(Bundle savedInstanceState) . in onRestoreInstanceState i am usin...

Overriding the default Activity stack

Is it advisable to create your own Activity stack (which contains only the activity names rather then the complete activity as in the default stack) to improve the memory consumption of the application. What im basically doing is maintaining a string stack containing the activity names and override the back button functionality to launc...

android code to play the video from the sd card

I need android code to display the video listing from the gallery or sdcard and play when click on that.can anybody help.Please. I have run the following code.but it shows the application has stopped unexpectedly public class StartActivity extends Activity { /** Called when the activity is first created. */ private final static Uri MED...

Create a sqlite data base

Hi, I am currently struggling with the concept of sqlite databases in android. I cannot find a definitive guide to setting up creating and using the database, and even if I had I still haven't got a clue how to store and reference urls and map coordinates. I have found and example that creates a database of information before it start...

Where are key events created in android?

Hello, I want to be able to measure the "responsiveness" of an application automatically. So I want to get the time difference between the moment when I click a button (i.e. when the corresponding event has been created) and the moment when my onClick method is being run. Do you know what happens (what methods are being called) when I ...