android

How to programmatically assign a picture (Bitmap) to a contact ?

Hi all, The title says it all, I have a variable of type Bitmap and I would like to assign it to a Contact from my contact list as the CalledID picture, how would I do that? ...

Android: Simple way to call phone book and return number

Hello, I'm really new in Android programming, so I have a simple question getting a phone number from contacts in my application. The method I want to implement is that the user clicks a button in my app and will be forwarded to the contacts. In contacts user has to click on a phone number and this number should be returned to a textfie...

Displaying phone numbers in Android

What's the easiest way to display an active (initiating a call on click) phone number in an Android app? It would have been great if there was a View subclass, called something like PhoneNumberView, that has all the functionality and UI integrated. ...

Android - is <uses-feature> element necessary?

Given an Android app that does NOT require any of the features that need to be declared in the <uses-feature> element of the manifest, is it best to omit this element entirely or include it with no attributes? Will either option have any different effects on your apps visibility/availability in the market? ...

Does ImageView.setImageURI(Uri uri) work with remote files?

Can you make an ImageView load an image from a remote server through the ImageView.setImageURI(URI uri) method? ...

surfaceflinger test program

Hi All, I want to write a native application in Android for testing surfaceflinger. Is there any simple program that shows how to create surface, register buffers and post buffers on Surfaceflinger. Many thanks in advance. Kind Regards -Durgesh O Mishra ...

Android Button ==> Set highlighted image ???

How can i set the button to show a different image after it's been tapped? Either a different image, or maybe some kind of highlighting that shows the button was tapped/ Thanks ...

How do I access local web pages on the Android?

I have some web pages that I want to bundle with my Android application and display as static pages. Where do I put them? How do I access them? I'm working in Eclipse, so I want a solution that automatically bundles them. I've tried putting my web pages in res/raw, and I can read them as an input stream from there, so I could push th...

Manifest file not giving permissions as it should. Permission denied when they're given in Manifest

Hi, I'm trying to make a ticker widget for BBC News, most of it was working perfectly well last night, but I had a few issues getting the permissions for the configuration activity correct. After re-writing my Manifest nothing works at all, despite being completely how it should be as far as I can tell. Here's my manifest: <?xml ve...

Where should I store images if the user doesn't have an SD card?

There are a few G1 users reporting that my app won't display images. I can only imagine this is because they don't have an SD card. My app is heavy on images. Is it appropriate to store images on the internal memory? I don't even know if there'd be enough space. ...

How to automatically update android:versionName?

For an improved bugreporting I'd like if the tag android:versionName automatically contains the number of the revision on the svn server. Anyone knows how to do that? Thanks ` ...

Various items in a ListView row - screenshot example

Hi guys, i want to achieve this kinda of row look in my app. I already have a ImageView/TextView layout, but i want that 'positive' little image in the right always being displayed at the exact same place! Thanks! ...

using a class derived from TextView

CoreStartHere.java public class CoreStartHere extends TabActivity { : t = getTabHost(); t.newTabSpec("tTask"); t.setIndicator(...); t.setContent(new Intent().setClass(this, T1Task.class); : } t1Task.java T1Task extends Activity { : onCreate(Bundle ...) { : myListview = (ListView) findVi...

How to resize image from Uri?

Hi im retrieving image from URI and displaying in Imageview. I need to re-size image from URI to fit size of the Imageview. Pls help me how i can do this. Thanks ...

Track opengl texture memory in Android

How do I track the memory used by OpenGL textures in Android? I understand the texture memory is on the Video RAM, but do they get swapped in with the RAM? If I call glGenTextures and do not call glDeleteTextures, how does it impact the memory usage of my current process? ...

Facebook Android Intent

i have a problem with this intent. this intent is supose to send a text type of message. everything works email,sms,twitter and whatever is on the phone. but the only one that has a problem is facebook, it will try to post as a link and not a text. Intent s = new Intent(android.content.Intent.ACTION_SEND); s.setType("text/plain"); ...

android sqlight invoked from calss

I am using Gamelogic class which implements no one (just object to be honest ) and i want from him to set a data base where the game screen ask the logic questions and the last ask the sql question without all the Context usage , just to keep it simple . is it possible ? if not what is the alternative , can someone show me little examp...

Reading/writing data to server, ftp, or website

Hi, I'm writing an app that will periodically send information out to a remote server, and then get relevant information about other users from that server back to the local database. What's the best way to handle sending out this info (i.e.: XML or binary) and writing it to the remote server. Also, how can I assure that, when 500+ u...

AsyncTask threads never die (Android)

Hey everyone! I'm new to Android programming and I'm using AsyncTasks to fetch data in response to the user pressing a button. This works well and keeps the interface responsive while fetching the data, but when I checked out what was going on in the Eclipse debugger, I found out that every time a new AsyncTask was created (which is qui...

developing smartphone apps using Rhomobile.

I have been developing an Android application for about two months now, and the guy I'm writing it for wants me to use this instead of the android SDK so we can deploy the application for multiple smart phones: http://rhomobile.com/ he says you can write the application in one language and it can be deployed for most smart phones. Has a...