android

XMPP and Android

I am trying to build a small XMPP client in android. Any ideas on what library i can use?. I have tried using Smack API, but there are some issues with it which makes it not practical. Thanks, Earlence ...

How to delete SMS from inbox in android programmatically?

Just thought I'd ping this community to see if there's any knowledge on this issue. On android phones SMS messages registered to applications also get sent to the device's inbox. However to prevent clutter, it'd be nice to be able to remove app specific SMS mesg's from the inbox to reduce the potential overflow of those messages. Ques...

Any good graphing packages for Android?

With android removing the Swing and AWT libraries from Java, I was wondering what solutions have been developed to display simple bar histograms, line graphs and other simple data visualizations in Android? There is a Google specific 2D library, was just wondering if there were any packages built atop it that allows for the easy creatio...

How do I center text horizontally and vertical in a TextView in Android?

How do I center text horizontally and vertical in a TextView in Android? So that it appears exactly in the middle of the screen. ...

What's the difference between fill_parent and wrap_content?

In Android, when layout out widgets, what's the difference between fill_parent and wrap_content? Is there any documentation where you can point to? I'm interested in understanding it very well. ...

How do I use prepared statements in SQlite in Android?

How do I use prepared statements in SQlite in Android? ...

How do you implement context menu in a ListActivity on Android?

How do you implement a context menu triggered by a long click or tap on a ListActivity that is using the built in layouts and a ListAdapter? ...

android internals and memory/processor constraints?

I'm considering creating a screen reader for Android. My questions are as follows. One how much of the internals of Android are exposed through the Java API? I'm looking for things such as system wide notification when text is displayed, notification of a new application being launched, etc. I'd rather not have to modify the kernel sourc...

Android HTTP Connection

Can anybody tell my why this doesn't work in the Android emulator? From the browser I have access and the server is internal. All I can think of is that I'm missing some configuration on my app so it can access the network layer. try { InetAddress server = Inet4Address.getByName("thehost"); //Doesn't work either //or InetAdd...

Android: Capturing the return of an activity.

I have a question regarding launching new activities. It boils down to this. I have 3 tabs on a view A) contains gMap activity B) camera activity C) some random text fields. Requirement is that the application runs in Portrait mode. All 3 tabs work as expected w/ the exception of the Camera Preview Surface (B). It is rotated 90 deg...

Where can I browse Android source code on-line?

Particularly, where can I browse the source code for the contact application? Is the only way to go to download all there is? ...

I want pan and zoom functionality (like a MapView) on my own map image

How can I get my own image to be able to pan and zoom (like a MapView)? ...

Google Android platform financially interesting already?

Good afternoon, with all the buzz around the iPhone / AppStore etc, I felt it to be a no-brainer to create a nice iPhone application for the web-application I've been putting together, but how's your experience with the Android Platform so far - is it interesting already from a sales & user-volume? I've had a quick look at the T-Mobile...

Timed popup in Android

I am creating a matching game for Android, and when the user gets a match, a dialog box should pop up saying "Match!" I cannot figure out how to do this though. If I use Thread.currentthread().sleep, the dialog never appears. android.app.AlertDialog a = new android.app.AlertDialog.Builder(match.this).setTitle("Match!").show(); Thread.c...

How do you format date and time in Android?

How do you format correctly according to the device configuration a date and time when having year, month, day, hour and minute? ...

Android : Getting file name from camera?

I have run into a small issue with something that I am probably just overlooking. I want to take a picture from the surface preview of the camera, and save it to the sd_card. This works ALMOST perfectly. I assign it a file name, and for one reason or another, it does not use the filename. This is what I have been trying to do : B...

Activity restart on rotation Android

In my Android application, when I rotate the device (slide out the keyboard) then my activity is restarted (onCreate is called). Now, this is probably how it's supposed to be, but I do a lot of initial setting up in the onCreate method, so I need either: 1. Put all the initial setting up in another function so it's not all lost on device...

How to display list of images in ListView in android?

Hi, I am new to android. I want to display the list of images using the ListView.I am dowloading the image at run time.The total number of images is not fix. ...

two questions about wifi programming in android

First, what ScanResult.capabilities actually is? Because I don't have a device, I can't know the format of it. Second, how to connnect to a specific AP? I look through the api doc but found no method to implement the function. Do I miss something? ...

Best way to show a edit text over screen?

If I have a application that has a primary layout of Portrait (It is fixed as portrait), but there is one place to type in text. I would like to launch like a popup window but in Landscape w/ the background image fogged out? I hope that makes sense. I know there is a Popup Widget, but any ideas to rotate the edittext box would be great. ...