android

Circular background of a layout in android.

I have 5 buttons in a layout forming a cross structure. Now I want that the background of this layout should be circle so that it should look as if the buttons are on the circle like you see buttons on TV remote. I will really appreciate your any answer. Thank you. ...

how to implement quick search function with edit text

hi i am new to android.what i did is implementing the search with the edit text for that i am writing the code as fallows. ((EditText)findViewById(R.id.EditText01)).setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if(event.getAction() == KeyEvent....

Anybody know of an Android testing community? Interested in starting one?

Hi all, my company just put me on android testing and I'm trying to get started on all levels. Android JUnit and Robotium are great but it's HARD. I've been searching for a test community but it seems like nobody got around to it yet. Does anyone have any tips? Would anybody be interested in starting a community with me? ...

Custom uses-library for our own system app

Hi, I need to make a system library (will be embedded in the system image on some phones). It needs to be used with the "uses-library" feature. (just like Sprint created such a system library for their Evo 4G front-facing camera support) My question is: - How can I create such a project? (I'll need to create a stub to link against and ...

android is it possible to get notified when a new image,video is inserted,deleted from sd?

Hello, is it possible to get notified every time a new image,video is inserted on the sd card of your android device and how? I have looked at the Media Scanner class which indexes files but I can't find how to do get notified from that only how to notify Media Scanner of a new image I have created. ...

Two independent ListViews on the same screen + TextView header

I have two ListViews, each of them containing a String[] that I created locally. I wanted to show both of them on the same screen, but still maintaining their properties (List 1 having its background color, while List 2 has its). Can this be accomplished? Also, I'm trying to add a locally created TextView to the screen; I've tried addHe...

Skip Eclipse validation of build.xml

Hello, I've followed the steps given in the Android Developer Blog to generate a build.xml for building releases for an Android Application. I need to do a custom compiling so I have overwritten the target compile of the ant_rules_r3.xml as it is said in the generated build.xml. <target name="compile" depends="-resource-src, -aidl, -p...

weird gui component edges!

Hello, I developed my application and tested it on android emulator 1.6, 2.1 & 2.2 and on HTC Magic its running PERFECTLY and the gui components look very neat... However, when I tested it on Sony Ericsson Xperia X10 the gui components are looking fuzzy :S...please have a look ...Have anyone faced such a problem? Any suggestions to ...

Can we load string resources from a resource file other than strings.xml in Android?

I want to provide different resource files to users. But I don't know how to load strings from a resource file other than strings.xml? ...

Drag marker on map

Hi, How can I drag a marker on the map? How to handle it in onTouchEvent()? I had written one code that actually drags. But it feels like the map is moving instead of the marker. That code is written below: public boolean onTouchEvent(MotionEvent event, MapView mapView) { /*Action to be taken on ACTION_UP(value=1) and ACTION_DOWN(...

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...

String to Date/Time object in Android

I have a string that contains the date/time returned from a web service like so: String dtStart = "2010-10-15T09:27:37Z" How do I get this into an object such as Time or Date? I initially want to output it in a different format, but will need to do other stuff with it later (i.e. maybe use in a different format). Cheers ...

how do i display android text views like html would floating divs

so I have three text view elements within a relative layout container. @+id/name,@+id/message,@+id/time the @+id/message is positioned by layout to right of @+id/name and @+id/time is to the right of @+id/message, it renders fine as long as the three elements dont take up the width of the screen but when it does it bunches up the last e...

FaceBook dynamic Image URL

friend's, I am working in Facebook,here i need to change the image url value string has dynamic one, here my code intent .putExtra( "attachment", "{\"name\":\"" + Html.fromHtml(title) + "\",\"href\":\"" + Html.fromHtml(url_val) ...

displaying Greek characters in android

Hi all, How to display Greek characters in android? any example.. Thanks in advance. ...

Item separator line are not shown all in ListView! maybe textSize is the reason or Bug?

As you can see in this screenshoot ListView doesn't show all item separator, seems that the problem is setting textSize for textView, if i remove textSize all work fine. Thanks in advance for any replay! This is a little testcase: ...

[Android] Nesting Relative layout inside Linear Layout

I have the following code in my layout.xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" ...

What is the "context" meaning in Android ?

I think its a very interesting question: What is the "context" meaning/concept in Android ? Almost any things/object need context to working properly. What is the "context" represented? An integer ? a block of memory ?? or ..... ...

Android shortcut intent with extra

Is there any way to put an extra into the intent launched by a shortcut? ...

how to pass parameter to new activity with tab host

Hi friends I am passing parameter to new activity using tab host in android but it showing illegal exception Intent homeintent; // Create an Intent to launch an Activity for the tab (to be reused) homeintent = new Intent(); Bundle bundle=getIntent().getExtras(); String strusername=bundle.get("strUserName...