android

Android: Hide child dividers in ExpandableListView

Hi! I need to completely remove dividers from ExpandableListView. As for parent items it's a setDividerHeight method where I can pass a zero value. But there's no similar method for child divider. Is there any way to hide it? ...

Java Observer Problem

I am having some trouble with implementing my own observer in Java on the Android platform. I have created a class call NetworkPathJni that uses an Observer interface class called NetworkPathJniObserver to notify other objects of changes. Here is the code for NetworkPathJni.java public class NetworkPathJni { NetworkPathJniObserver ...

Reuse default android contact search in 3rd party application - Possible?

Hello. At the moment I am trying to evaluate if it is possible to reuse the android contact search in a 3rd party application. I got the problem that I have to implement a contact list/picker including a filtering possibility for the contacts list. That means that the standard android picker opened by an intent does not help me. So I...

Null pointer exception when using Bundle to pass data

Hey guys, I've got a float array camObjCoord declared as.. public static float camObjCoord[] = new float[8000]; I'm then filling it's indexes in a class that does something like the following.. camObjCoord[1] = 2.5; I'm then calling makeview() public void makeview() { Intent myIntent = new Intent(this, GLCamTest.class); ...

How to get rid of horizontal scroll bar in tabhost?

I want to get rid of horizontal scroll bar in TabHost. It's there even if TabWidget is on top. Below is my xml layout. <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" > ...

shape draw in imageview

I am trying to follow http://developer.android.com/guide/topics/graphics/2d-graphics.html and draw a shape on top of the imageview my class is package com.bayer.glucofacts; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.OvalSha...

Problem dynamically drawing a cube

Hey guys, I've got a float array camObjCoord declared as.. public static float camObjCoord[] = new float[8000]; I'm then filling its indexes in a class that does something like the following.. public void addcube(float highx, float lowx, float highz, float lowz){ //Constructing new cube... System.out.pri...

double click event in android

Can anybody tell how to implement double click event in android without using gesturedetector? ...

Writing EXIF metadata to images in Android

Hi, I want to store some metadata in images. My camera application gives me a bitmap, which I store in the storage (MediaStore) device. In addition to this, I want to add a few tags to the picture in its metadata. I think EXIF is a good way of doing this. But I couldn't find good references on how to do this. If there are some tools to ...

Android Multiple Animations.

HI, When trying to show more than one animation at the same time sometimes one of the animations "hickups" and just seems to jump right to the end position. What im trying to achive is have a Gallery baseed mebu that changes the current view in a ViewFlipper, the Gallery changes the current view on the setOnItemClickListener. if i don'...

Alternative way to grab progress on multipart/form upload (Android)

As described in this answer you cannot grab a progress of a multipart/form POST upload in Android using only the Android SDK, because there is an issue with the stream buffering when using HttpURLConnection which will be fixed post Froyo (see http://code.google.com/p/android/issues/detail?id=3164#c6). Since the Apache HttpClient 3.1 was...

Is it possible to set the transparency of a view in Android?

I would like to change the transparency of a whole View in Android. How can I do that? The View has a nontransparent background. ...

Access SQL database from Android?

I understand that to access a SQL database from Android I need to create a web service that will run on the SQL server and will process requests from the Android application, what I need to know is how to create this web service and how to access it from Android. If anyone can point me in the right direction then this would be greatly ap...

iPhone PNG image displays differently in Android TextView drawable

I have a PNG file formatted for the iPhone I used in a TextView drawable. The image is just two words in black text on a white background, when you view it. On the iPhone it shows as two words in white text on a black background. On the Android it shows as two words in black text on a transparent background. Can someone tell me how t...

how to set the Style Attribute Programmatically in Android?

I have to set the style for a TextView. Which is created by Pro grammatically. I have to implement this attribute style="@style/test" by programmatically. How to do it?I Checked this link. But i did not get any answer. Any Idea? ...

starting activity on uncaughtException() call

I want to start a new activity from my UncaughtExceptionHandler when an uncaught exception appears. Is this possible? I think the current activity can't start a new child activity in its "error" state because I always get this errors: 07-14 14:34:06.075: INFO/ActivityManager(74): Starting activity: Intent { flg=0x10000000 cmp=de.rwth/s...

Why is AppWidgetProvider created each time I add an app widget?

Hello guys'n'girls :) I'm slighty puzzled about how android's AppWidget machinery works. I reimplemented the AppWidgetProvider's constructor like this: public class MyProvider extends AppWidgetProvider { public MyProvider() { Log.d("TEST", "Creating...") } public void onUpdate(..., int[] appWidgetIds) { // updati...

How to enable logging for apache commons HttpClient on Android

To enable logging for apache commons HttpClient in normal Java application I used: System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true"); System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wir...

How to change textColor on press Even in Android?

Is it possible to change the text color of a textview if the textview is pressed? I want to achieve a flashing effect with the color change only lasting as long as the button is pressed. I know how to change the background of the textview with a selector list and the correct state but how can I change the color of text if the user pushe...

Do you need to display an EULA when using Flurry/Google Analytics?

Hey everyone, i hear different things from different people on that topic and nobody is really sure. Also a quick google search doesn't reveal anything informative. The question is: when using Flurry Analytics (or Google Analytics or whatever analytics tool) in an Android App. Do i need to inform the users in form an EULA or something si...