android

Android service architecture question

I'm new to Android and I'm porting an iPhone app I did. I've been reading up on Android services and they look very useful for the network component of my app. I assume there is a common pattern for what I'm trying to do, so here are the details: User1 and User2 agree to enter a virtual room. They send messages to each other and get no...

X Axis Sensor Correction - Flipped Sensor Detection - Froyo

We are trying to determine the best way to patch InputDevice.java to correct a sensor issue. The touchscreen is detecting the location opposite of the pressure. For instance, to unlock the device, I have to put my finger in the exact spot on the left side of the screen for it to register on the right side. The same thing happens for butt...

Datepicker problem using tabs (Tabwidget)

Hello all, The datepicker runs without problem. But if the datepicker is under tabwidget, it failed. Anyone has experience on that ??? and how to solve it ?? public class TestActivity extends Activity implements OnClickListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstan...

Impossible to write something on a field

Hi, I have build a sort of split view for one of my android applications. I have made an activity which is a container of a listview and a framelayout. I use the listview for a menu and in my framelayout, I load views of different activities. I have read the source code of the TabHost for building this system. Activities that I load in...

Add view to XML layout programmatically and make its z order below an existing view

I have an XML layout with some custom tabs, a heading, and a ProgressBar(main.xml). I wish to add another XML layout(home.xml) to the main.xml layout, as i wish to keep main.xml re-usable for other activity's layouts and simply add things to it as necessary. home.xml contains a ScrollView and a TextView. I am currently using my Activ...

How to implement a custom listview row with buttons?

I have an ExpandableListView that I want to populate with my custom views of type NoteView. NoteView extends LinearLayout and contains two buttons and a checkbox. I have almost everything working, the NoteView's are being populated with backing data, the lists are getting filled, and the buttons are clickable and perform the required t...

EditText in Android

I have edittext and a button below edittext. edittext has width as fill_parent and height as wrap_content. My messages covers full screen, due to this my button is not visible it hides below virtual keyboard can any one sort this problem. Thanks. ...

IPhone / Android / WP7 app?

Which one should I go after/learn? In terms of market share, prospect, market penetration, opportunity, learning curve etc. I am a .NET programmer myself. I really hope that Microsoft can do better this time. I hope I can make use of my little knowledge in Microsoft platform to achieve something in mobile apps. I am opened to any comme...

Sharing code across mobile plataforms

Is it possible to share a Java application across several mobile platforms (Android, BlackBerry, Symbian, etc) regarding of Android is a Java SE (almost compliant), BlackBerry is JavaME, etc? Thanks in advance. EDIT: I'm not talking about GUI which it won't be possible. There is another things which do I have to take care ?, i.e Vect...

OData Consumer for Android - which OData tookit/framework should I use?

I am creating a program for Android mobiles which will query, retrieve and then process OData from an OData provider via a webservice. Please can you tell me which toolkit is best for this? I have seen these: odata4j restlet Thanks. ...

Logging inside Framework?

Hello,I am trying to develop small application for reset Logging on Phone. Can some one throw some Lights on how to achieve logging in AndriodRunTimeInit whenever there is exception? I want to write into file whenever there is RunTime exception. ...

Efficiency of Parcelable for inproc communication

I want to pass a huge object (e.g. Bitmap) from one activity to another inside one process. If I put it into the Bundle like Parcelable, will Android really serialize the object or pass it by reference? ...

Is there an image design community that collaborates with developers to create applications with a better and more polished look and feel?

So after a lot of hard (and fun) work in development I’ve finally gotten fairly close to the end of my application development..or so I thought. I’m developing a game for Android (but that’s irrelevant to this post). Up until now, the images/drawables I was using were placeholders that took 5 minutes in MSPaint to create. So, now that...

Invoking Calendar on Droid X (FroYo)

As of the FroYo update, none of the "standard" intents for invoking the Calendar seem to work on the Droid X. I'm hoping that someone out there has figured out the right App/Activity pair to pull up the calendar, ideally in Agenda view. You don't need to tell me that this is outside of the official Android API, and thus not an appropri...

Android memory mapped file with vertices

I am trying to render vertices stored in a big file (approx 50Mb). The file layout is optimized so i can take a slice and give it to opengl to render a triangel strip directly. This works in the emulator, but when I run the same code in my magic (android 1.5) it crashes with a SIGBUS in libhgl.so. Sounds like a driver issue? I have tr...

android onSharedPreferenceChanged question

Hello, I have managed to create a menu using the xml and a class that extends PreferenceActivity and implements OnSharedPreferenceChangeListener, now I would like to be notified everytime the user changes a value from preferences (e.g. when a user changes the username). To do that I have registered my class using the method registerOnSha...

Why WifiInfo.getRssi() always return -200?

I made an aplication that shows actual wifi conection information. cont = act.getApplicationContext(); wifiManager = (WifiManager)cont.getSystemService(Context.WIFI_SERVICE); display.setText(cadena + "\n Rssi:" + wifiManager.getConnectionInfo().getRssi() + "\n BSSID: " + wifiManager.getConnectionInfo().getBSSID(...

Android - XML Syntax For Strings

In my XML values strings code, I have a string with some text that I want to have only a few of the words in color. I also want to have a new line for some of the text. I can do things like: < b> my bold text < /b> and that works (leading space added for this post). I try to tag the text with color but no color shows up and there a...

Progress Bar for ftp downloading.

Hello, Is there anyway to display a progress while downloading a file from ftp in order to show the download progress status ? Thank you. ...

Do iPhone / Android browsers support CSS @media handheld?

I want to change my web page CSS for web browsers running on cell phones, like the iPhone and Android. I've tried something like this in the CSS file: @media handheld { body { color: red; } } But it doesn't seem to have any effect, at least on the iPhone. How can I write my CSS to work differently on the iPhone etc, ideall...