android-sdk-2.2

Can't see the other fields for adding contacts in android 2.2?

tried to make my own custom account and i do call the native android contacts for me to add a new contact, but it only shows Firstname and lastname fields and other names.. but no number and email etc. i did declare them in the code. thanks! ...

Viewflipper Receiver not registered error while orientation change in 2.1 and 2.2

I am using viewflipper for fling gesture recognition everything works fine for 2.0 and prior but in 2.2 and 2.1 it throws exception as "java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper" below is full debug trace. java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipp...

problem during configuring android google maps API

Hi, I am trying to manually configure google maps api as I dont have access to internet to configure through eclipse. I am sucessful in configuring manually android2.1,2.2 platforms.But when I try to configure "google_apis-8_r02"platforms folder which I got from internet, SDK is not able to detect this "google_apis-8_r02" and not showi...

How to add IntentFilter in an Activity by code?

i have this activity that holds 2 intent filters and my problem is not to use this activity for devices 1.6 and before since i wanted them to use the native contacts. thanks! ...

ant_rules_r3.xml:209 & 395 ERROR

I'm running mac osx. I just cant find a answer to this error: BUILD FAILED /Users/ed_crub/Documents/Android SDK/tools/ant/ant_rules_r3.xml:395: The following error occurred while executing this line: /Users/ed_crub/Documents/Android SDK/tools/ant/ant_rules_r3.xml:209: com.android.sdklib.build.ApkCreationException: Debug Certificate expi...

Android: Setting button height in XML based on it's width

Hello, I am working on layout in android XML in which I would like to set a buttons height to match it's width when setup to fill parent. Obviously this number will change based on screen size, so I cannot use a set pixel size. Can someone help me with getting the button width based on screen size and then passing that to the height s...

Simulate a fling gesture in Android ActivityInstrumentationTestCase2

I have an Android view that I am detecting a fling gesture on to perform an operation, and I want to write some tests to verify that the gesture is working correctly. I have tried TouchUtils.dragViewTo and TouchUtils.drag (with a very small number of steps) but neither of these seem to trigger the event. Is there a way to simulate the ...

Problem with overlapping views?

I am writing an android application and am having problems with overlapping views. My layout is <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView ... /> <EditText ....

Android 2.2 - How do I detect if I am installed on the SDCard or not?

I am writing an android app that stores a lot of media files. They are not the type (and are far too many) to clutter up the users notification or other media directories, but they also must be user-updatable, so I can't put them in the resources. I can use getExternalFilesDir to get a path on the sdcard, but I only want to do that if ...

How can I package private media files for Android 2.2?

I have an android app with a lot of media files. The files have to be user-updatable, so I can't put them in the resources. I have been having to use a bash script to use adb and push out my test files every time I recompile. Is there any way to package the media so that it is installed to the applications file directory (on the SDCar...

How to load activity before loading all images?

Hi Friends, I have been struggling with this problem for many days. please help me.. In my android application i am trying to download images from remote server dynamically ( no of images dynamically come ). for downloading all images it is taking 30 to 40 seconds mean time user has to wait to see the activity . But it is the worst ca...

How to set different Layouts in 1 XML file in Android

Hi friends i have set my layout thru TabLayout within LinearLayout but still my button in the end couldn't be set properly as TabLayout divides all the fields in number of columns so can anyone help how to set 2 Layouts in one XML file means all the fields in TabLayout and remaining both Login and Register buttons in Linear Layout ore so...

How to get my layout correct for inputting coordinates in EditTexts for Maps

I need to input latitude and longitude separately in 2 EditTexts and diplay the location at the click of a button. Somehow i'm not able to get the correct layout as i precisely require 2 EditTexts aligned side by side and a button below them. Here is what i already have: <LinearLayout android:id="@+id/zoom" android:...

Windows Media Services streaming (using RSTP or HTTP) to Android

Is it possible to stream video to an Android device by using Windows Media Services? Which protocol should I use between RTSP and HTTP? Actually, I have a video file (MP4 format) at a server and I want to stream video files to an Andriod device. ...