android

Looking for docs on Android browser, especially w.r.t. certificate/signature

Hi all, I'm looking for any docs for Android Browser. I'm currently looking at Chromium project and V8 project, though. Any pointer to such a resource would be greatly appreciated in advance. Besides, is there any doc on how certificate and signature work pre-/post- installation? I read "Singing your applications", but it didn't give mu...

Android: mass enable/disable buttons

I have Activity where bunch of buttons are placed inside TableLayout not unlike a dial pad. During some operations I need temporarily disable the buttons. To my unpleasant surprise doing TableLayout.setEnabled(false) has no effect on the nested buttons. Am I stuck with setting each individual button or is there a nifty (better) way to ac...

How do I change the text style of a spinner?

I'm creating a spinner in my layout xml files and setting an string array to this spinner. If I change the textstyle of the spinner the text is not affected by the changes. I read in the googlegroups that a spinner has no text and therefore the textstyle can not be changed and I have to change the style of the textview that is shown i...

How to fill 10% of the Android screen?

How can I fill the screen with 2 horizontal colors, such that the down one will get 10% of the screen? (like a toolbar)? I'm trying modify the Linear Layout example to: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_w...

Does cufon work with android browser?

Cufon is that great tool to get any font on the web before html5 will do the Job. It works on iPhone, not on Palm, could anybody say if it works on Android? http://cufon.shoqolate.com should do for checking. ...

Locking file across services

What is the best way to share a file between two "writer" services in the same application? Edit: Sorry I should have given more details I guess. I have a Service that saves entries into a buffer. When the buffer gets full it writes all the entries to the file (and so on). Another Service running will come at some point and read the fi...

Does the built-in caller ID function look for numbers in invisible groups?

We are creating an app that contains contact data. We want to store the contact data in an invisible group with ContactsContract DB. We will allow the user the option of seeing these contacts in their contacts application, but by default, they will not. However, some users have expressed an interest in seeing the name of the person wh...

Android Media Player App Song List Storage

I have written a media player app and was trying to figure a good way to store the songlist. Which is better a scrap db, a flat file, or just an array? ...

stop the following activity if home key or pressed back is pressed - Android

Hello. I have a problem and that is my SplashScreen I have. It is built as an intro and after 3 seconds it shows the main menu of the program. Anyway, if I press down Back or Home button during the time the SplashScreen shows, it closes, but the activity I have chosen to follow after the SplashScreen will still run after the three second...

Chatting in Android

Hi, I am developing a simple chat programme in Android that allows a user to load his freind list and chat with users. I have to implement this using HTTP. Does any one have any suggestions as to how to do this. I mean how to implement chat using a simple a request response mechanism. Any working example would be good. Kind Regards, Mu...

can not set up SDK.

Hi All, Please help! Thanks in advance. I loaded "android-sdk_r06-windows". I also install JavaSDK. When I click "SDK setup", I got: <<https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.>>> If I directly go to "https://dl-ssl.google.com/...

Drawing a picture in android

I want to draw a picture (bmp,jpg,png) into the canvas (using the onDraw() method) of a class that extends the View class. I would like to be able to draw parts of the picture, not the whole at once. I would really appreciate an example. ...

Android Twitter with oauth-signpost error Authorization failed (server replied with a 401).

Hello im tryin to use Twitter with OAuth but i receive this exception Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match. im using this sample http://code.google.com/p/oauth-signpost/wiki/TwitterAndSignpost Error Line: String authUrl = provider.retrie...

Static method calls to derived types over virtual implementations? (Android)

I have class A, with methods foo and bar, that are implemented by A1 and A2. The functionality in both A1 and A2 is the same. In other words: public class A { public int foo() { return 0; }; public int bar() { return 1; }; } class A1 extends A { public int AnotherFooFunction() { return foo(); } ...

How can I query Android contact based on a phone number?

How can I query Android contact (in android 2.1) based on a phone number? I used to use People.CONTENT_URI (before android 2.1) but that is now deprecated. Thank you. ...

Adding headers to an Android listview

So I have a listview and I want to add different "sections" to it. I understand how addHeaderView works and it's straight forward, but is there a way to add section headers? Like let's say I have an alphabetical list, is there a way to mark the top of each section of letters? The list is dynamic though, so I won't know when/where I'll ne...

Eclipse - HelloWorld - Android error?

I created a Hello world app but get this strange error: The project cannot be built until the build path errors are resolved I haven't changed the project, jut created it and tried to run it. ...

Reusing layout XML and the code behind

I am trying to turn a couple buttons into a reusable component in Android. I have successfully gotten the XML / UI portion working, but I can't figure out how to make code behind it reusable between activities, short of recoding it everywhere. I am new to Android, so I apologize if this is obvious. I've already reviewed this post seve...

Google Reader API request token, get 400:Bad Request

this Android code worked fine before, but i'm having problems for some reason. here is the request i'm trying to make: https://www.google.com/reader/api/0/token i'm getting 400:Bad Request as a response, and i'm not sure why. isn't this the correct URL for requesting a token? the auth token is being passed as a header in all requests...

Number Preferences in Preference Activity in Android

Hello, What I want to do is I am working on a game of life program. I want to take the time delay and make it a preference, but I want to make it available for people to type in a specific time. The number can be in miliseconds or seconds. However I'm a little stuck on how to proceed, I haven't been able to find a simple preference...