android

implements OnClickListener VS. new Button.OnClickListener() {};

I have a question about implementing OnClickListeners for developing with the ADT. I'm unsure of which way is more efficient, can anyone please provide me with pro's and con's of each approach? class x extends Activity implements OnClickListener { button.SetOnClickListener(this); OnclickListener(View v) { switch(v.getGetId());...

Issue adding footer to ListView android 2.1. Source not found exception given.

I am trying to add a footer to my ListView. If I create the buttons via code and add the Views I dont' have any problems. If I try use an xml file and getLayoutInflator I get a "Source not found" exception. I found a lot of similiar exceptions but none that were very helpful. Can anyone point me in the right direction? I've pulled m...

Android Get Contact Number.

Android Question: I want to select a contact and get the number of the contact when I select that person. It should then place the number in an EditText field, I have tried doing this numerous ways but they don't work for me. Any help will be greatly appreciated. ...

Android Floating popup 'window' options?

I wish to have an 80% by 80% sized view popup, grey out the background and take focus? In essence it's a "sub" view that is model. Strategies ? ...

How to change the SDK buildin tab style into better looking1

Hi, I have been banging my head against the wall for few days for this and If some one can help me I really really do appreciate it. What I want to know is how I can change the tab visual appearance style of sdk original style into something like android 2.1 contact/phone tabs or android market tabs. I attached images underneath. I have ...

Error with taking spinner data from database

Booking.java package one.two; import android.app.Activity; import android.database.Cursor; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.SimpleCursorAdapter; import android.widget.Spinner; public class Booking extends Activity { private DBAdapter db; private Spinner colourSpinner; pri...

google Apps account, can't login to voice, picasa on android

hey folks, I have a new HTC Evo, and have sync'd it to my Google Apps Email, Calendar, and Contacts. That same apps account, is associated with Google Voice and Picasa. Those two services aren't native to Google Apps of course, but they allow me to login with the same credentials. However ... on Android I can't login. Google Voice say...

Query Android SMS Log

Is there a way to access and query the android SMS/MMS log? To clarify, the SMS/MMS Log is all the SMS/MMS messages sent by the host phone. It can be aquired by reading a cursor to the message inbox. ...

while loop login

Hello android programmers! I've completed my login page. My problem now is I can only log in using the first account created. I found out that I have not complete my login page. The missing item is the while..loop code so that the application will check the other existing user instead of only looking for a match for the first user. if(...

Secret keys differ between Android and server

I'm working on a one-time password application, using the hotp algorithm (RFC 4226). I've got an Android app (via simulator) for otp generation, and a server-side app for validation. On their own, both are working fine and passing tests. However, the secret key I'm generating on my device is not the same as the secret key I'm generati...

Android Scrollview in RelativeLayout with ButtonBar

I'm trying to implement a login view where several EditTexts and a logo are displayed on the screen with a ButtonBar at the bottom, something like this: The problem is that on very small screens, especially when they are rotated sideways, the entire main view doesn't fit onto the screen. I currently have <?xml version="1.0" encoding...

Using Views in a tabbed application

Alright, so I have an application that has a tabbed interface. What I would like to know is how I can change the currently active View in the tab, and then when I'm done with that View, go back the the original View, exactly as it was. ...

R.layout.anylayoutname can not be resolved after copy-paste from another project

When I copy the Different Xml Files From Another Projects(Downloaded From the Net), The R class is not Resolving the Error, because the id is not generated in R.java.There is Some Problem In Accessing The layouts in res folders. What Should I Do in that case? ...

Efficient Way to store images in android

My application requires that when a snapshot is taken it must store in memory and next time when I restart the phone I must get a thumbnail of that photo in list of photos and the full scale photo when I click on it. There are 2 ways I know. 1. Store images directly. Concern here is every time it has to hit directory to get image whic...

Scrollable TableLayout & Column Headers

I am trying to create a basic datasheet in my application using a TableLayout. The first row contains the titles of each column. Every row thereafter is data. I would like the data to be scrollable while keeping the first title row visible (i.e. the first row would not scroll with the rest). I have tried something like the following (un...

Android - Disabling Text To Speech Logging for Data Security

My application has some data which I would like to keep secure. I have also enabled the application to use text-to-speech. Unfortunately, the application writes out whatever it says to the log file. This means that a third party application (with permissions to access the logs) could gain access to the data. Is there any way I can disabl...

Android easy switch color-scheme of application

Hi! How would you implement different color themes in your app? All I can see now is plain set color onCreate every activity and control... Also, how would you store different color schemes in xml? Just an entries of with different names? Thank you! ...

how to restrict the MIME type in Android Mail client?

I need to open attachment files from the mail client(as loke Outlook) in Android. I use android2.1 Emulator.In the manifest file if i give the <data android:mimeType="*/*" /> i can able to open all the attachment files from my application.But I need to open .ics files only from my application. I try this also <data android:mimeType="tex...

Can an Android <selector> be based on an object's state instead of a view's state?

I think this is a pretty simple question but I'm having trouble finding the answer out there... I'm developing an android application (currently developing against v1.5 API) and one of the activities use a ListView. I want to be able to set the properties of each List Item based on the state of an in memory object rather than the state ...

Draw border lines in relative layout

Hi, I want to draw border lines in relative layout. The borders which are shown in dialog box and in alert dialog box. Thanks ...