android

Is it possible to somehow "bind' the dimensions of a ShapeDrawable to that of a View?

Specifically, I'd like to bind the height of a custom thumb for a SeekBar to the height of the SeekBar. Thanks! ...

How to dynamically set textview height android

Hi all, In my application I need to set dynamic text to my textview so I want it to get resized dynamically. I have set: < TextView android:id="@+id/TextView02" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textStyle="normal" android:layout_weight="1" android:singleLine="false" android:minLines...

Android: How to get background color of Activity in Java?

How can I get background color and text color (default for child views) of an Activity in Java? ...

Simulate low battery & low memory in Android

Hi, In order to generate the notifications i need to know about how to generate the low battery and low memory interrupts programmatically. Can any one please provide your suggestions.I am aware of Intents. ...

Thread Calling in Android

Hello Team, I am working on an Android Application where I need to work on thread which is a well known concept of Java. I am having a thread named "thrd" in my application and I want to call it in the else part of the IF...Else loop. Can anyone please tell me how can I call that thread in my loop, Sorry I am totally new as far as work...

DDMS not able to send location to emulator

DDMS is not able to send location to the emulator. I have tried sending just the location from DDMS but still the emulator is not able to receive location. The application works properly in the device but its not able to capture location data in the emulator. I am testing on Android 2.2 emulator. Can anyone let me know what can be the i...

HTTPS SSL error while installing android

I downloaded Android SDK when I run setup, it displays the following error message. Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings. Any hints? ...

Identify the View that triggered a touch-event

Hi, I am trying to drag a view over the screen FrameLayout main = (FrameLayout) findViewById(R.id.main_view); final Ball bigball; bigball = new Ball(this,50,50,25, 0xFFFF0000); main.addView(bigball); This draws a red circle on my screen. How and where do I need to implement my touchscreen-handling, if I want it only to trigger if som...

How do i get the point/coordinate the user clicked on an android view?

Hi, I have an imageview and when clicked, calls OnClickListener.onClick(View v). How do I get the exact point/coordinate that the user clicked? Thanks ...

Get my phone's Internal ip

Hi all, My phone has an IP. I would like to know how could I retrieve it? After searching in the web, I found that i can get only the current outside ip.(I want the local-perm ip of my phone) Thanks, ray. ...

Northwest and SouthEast coordinates of mapView

Hello i m Working On Application That Requires Northwest and Southeast Coordinates of Mapview when i zoom or pan around map...i want to calculate distance between this two Geopoints... Guide Me Please... Thanx.. ...

Two-pass UI Layout : Why?

I've noticed that Android, WPF, and Silverlight all follow a two-pass layout pattern. There's a recursive Measure() method that gets called to size the element, possibly multiple times. Then a recursive Layout/Arrange() method is called which lays out the exact positions of children in their parent control, and will also set the final si...

android viewflipper not changing view : HELP ! :)

Hi, Im having trouble to make work the viewflipper. I created a xml layout file view_flipper.xml : <ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/flipper" android:layout_width="fill_parent" android:layout_height="fill_parent"> <include android:id="@+id/MainView" layout="@layout/gallery_1" /> <...

Unable to connect to Bluetooth on Motorola Droid A855

Hello, I am using Android 2.1 sdk with Motorolad Droid A855 model, when try to connect to Bluetooth (Socket SPP ), I am getting the following error as per logcat, and getting exception throw in socket.conect(); 09-07 05:03:40.874: ERROR/BluetoothEventLoop.cpp(1102): event_filter: Received signal org.bluez.Device:PropertyChanged from /o...

java.lang.verifyerror in android

I have one android project.I have one class file of about 6000 lines when i tried to add more code it shows the java.lang.verifyerror please help me out ...

can we recognize statusbar already have notification icon in android?

i want display multiple notification in single icon ...

Android: Where do I find the Voicemail setting dialog widget?

Where can I find the preference widget that is used in the Voicemail number setting in the Android emulator? I'm implementing a feature with a very similar use case and would like to use an obviously already existing preference widget instead of creating a similar custom one by myself. The exact "path" to the setting I mean is: Setting...

Updating TextView

Hi, I can't seem to get things to display programatically using text views? I have a main.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" ...

How can i display image in screen center?

Hi Friends, d I want to display the image like first image but my images are displaying like second image i want to display images like first image, like center in screen and equal spaces top and bottom look first image,but my images are displaying not center in screen and no spaces in top,what can i do for display image like firs...

Android - How to download an image and use it as new resource ?

I want to download image from distant server and use it as resource. Is it possible ? How can I do this ? ...