android

Get all TableRow's in a TableLayout

I've been looking for hours on how to get all TableRow's in a TableLayout. I already know how to add and delete rows dynamically, but I need to loop over all the rows and selectively delete some of them. I think I can come up with a work around, but I'm trying to avoid crude hacks in my app. ...

Is there SASL implementation that works on Android?

Android has no SASL by default. Curious, if there some 3rd party implementation that can be used on Android? Did some one try http://www.cryptix.org/? ...

Dynamic transparent background in my Android App Java

OK, So I want to set the background to a transparent image and change the color of the background on an event firing. I can set the background image to a resource in an xml file, and I can also change the color of a TextView on event firing, but for some reason I can't do both at the same time. Do I need to create a drawable or something...

Android Configuration Change

What happens to the width and height params declared in LayoutParams on configuration change? For eg: if I have an ImageView declared with, new LinearLayout.LayoutParams(30, 40); On Configuration Change, does the width become 40 and height 30? Thanks Chris ...

How can I add a decorator image on top of my image view

I have an ImageView in my android layout. And I would like to add a 'decorator' image at the lower right corner of my image view. Can you tell me how can I do it? I am thinking of doing with a FramLayout with 2 image views as its child, but how can i make one image the lower right corner of another? <FrameLayout> <ImageView .../> ...

Parse a Text File using Java

Hi could you point me to an example where I can find more information about how to parse a text file in Java and extracting a particular String or reg ex out of It. ...

How can I align radio button in android

HI, I am trying the following example in using radio group/radio button in my android application. http://www.androidpeople.com/android-radiobutton-example/ But the radio button is on the left side of the label (text). Can you please tell me how can i configure it so that the radio button is on the right side of the label? and text is...

Android VideoView scaling

I have a VideoView inside a LinearLayout. I want the video to scale so that in portrait, it shows up as the original width and height of the video, but in landscape, it should fill the screen as much as possible, leaving space on top for any other view above the Linear Layout. What parameters can I use? Thanks Chris ...

find Faces Camera android

Hi Im working on and Augmented reality app for android 2.2 but i want in integrate a face recognition module... i try to use the findFaces method from FaceDetector class but it recive a bitmap... and i want to send a camera preview any idea? thnks ...

Periodically check if android GPS has new data

I have successfully been getting GPS data through the registerLocationListener() and onLocationChanged() methods. The only problem with this is that the speed reading of my app freezes if there is no more GPS data (e.g. when I go indoors, enter a tunnel, etc). The behavior I want for my app is that the user is somehow notified that the s...

Voice, SMS and MMS Detect/Capture/Copy on Android 1.5+

Hi There, These questions have been asked it various ways, but I haven't seen a definitive answer - or at least one recently (like in 2010). My client wants an app to capture/record incoming and outgoing Voice Calls, SMS and MMS messages on Android phones. Ie - all types probably starting with 1.5. I know about the legalities of voice...

android image wrapped by text

Hi, I would like to insert image into text, for example: I would like to show the text likie this: "To edit picture you should click on" [image] "button." Where [image] is real image (e.g. ImageView) ...

[Android] Need guidance in making the game's logic supporting multiple screens.

Hi. I've read the article "Supporting Multiple Screen" on Android developers site. But that doesn't apply to game logic. Let me get straight to the point. My situation is as follows: I'm creating a game using LunarLander code as a base. In my game, there'll be an object flying up from the bottom of the screen. The object will fly in ...

how to troubleshoot a device I don't have?

I've created a nice app widget that I could not find on the market, and even took the time to publish it (more details at http://code.google.com/p/frequentcontacts/ ). I've been contacted by people having problems with this widget, and I don't know what to do about them. It work great on the emulator, and on my Nexus One, but one user re...

android sharedpreferences set value

I have preferences page. It has field 'Show info screen' (as checkbox). I have also info page which also should have checkbox 'Show me again'. As I've understand, I can get value from preferences page via PreferencesManager.getDefaultPreferences(context) ... But how I should set preferences value for the checkbox on info page? I tr...

How to read manifest file from dependent JAR in Android ?

Hi all! Does anyone know how to read values from MANIFEST.MF from my custom dependent JAR in Android ? I`ve tried many ways but it seems that they do not work for Android environment. ...

What are the advantages & disadvantages on using Samsung Corby for Android App development?

I want to use Samsung Corby to develop a location-based app. I want to know the things that this phone model can offer and the possible issues that I might encounter with it. It's a cheap phone and is available in our country, that's why I chose it. Thanks a lot! ...

How to click or tap on a TextView text

I know this is so easy (doh...) but I am looking for a way to run a method on tapping or clicking a TextView line of text in an Android App. I keep thinking about button listeners and anonymous method listener calls, but it just does not seem to apply to TextView. Can someone point me at some code snippet to show how clicking or tappin...

Load image from url in Android, only if small

I'm using BitmapFactory.decodeStream to load an image from a url in Android. I want to only download images below a certain size, and I'm currently using getContentLength to check this. However, I'm told that getContentLength doesn't always provide the size of the file, and in those cases I would like to stop the download as soon as I ...

Speeding the Android edit-debug cycle

Developing applications for Android in Eclipse, press F11 to run the program in the emulator. However, this means waiting for the emulator to bootup (and then unlocking the emulator's screen) each time you want to test changes to your program. Is there any way around this delay? ...