android

Android: Move View after animation?

I'm trying to basically have a button move down to the bottom of the screen with an animation after it is clicked. I have the animation working perfectly, but the button doesn't stay at the bottom of the screen after the animation finishes. I've tried using offsetTopAndBottom(), but it only stays down there for one frame, and is redrawn...

Android "Manage Applications" shows my app name as my package name instead of a friendly name

Manage applications shows my app as "com.mydomain.myapp" instead of "My App". What do I need to change? ...

Android ListView partial pressable areas

I would like to create a ListView item layout where I can touch certain portions of a line item. This is similar to the behavior of the 2.0's Contacts Call Log where I can click on the green phone logo to initiate a call or click on the incoming call details to get more information about the contact. I don't need a behavior only impleme...

Is there a speech to text API by Google?

In Android, you can say something and it will search it for Google. Google can turn speech into text. How can I leverage this API? ...

Is it possible, in principle, for an Android device to interface with an iPhone over Bluetooth/GameKit?

(I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.) As a developer familiar with (but not specializing in) two major smartphone platforms, should I expect an Android library to come out which can spoof itself onto an iPhone app's GameKit-based network. It seems reasonable that ...

JSON exception while calling getJSONObject

IN json object if we can found if data exist by jsonobj.has("element_name") by how can we check that data is jsonarray or json object, follow error gives error if only one events element found and throws JSONexception. JsonObject jObj; if (json.has("Events")) { try { JSONArray eventsArray = json.getJSONObject("Events"); ...

Google goggles API

Does anyone know if there is a google goggles API for Android? If not, is there one coming any time soon? With an API for this thing the possibilities are endless... So far all I've been able to find on this subject is a discussion about not currently having a version for the iPhone due to it's "google labs" status (iPhone version comin...

What is the best UI Java markup language for designing applications for Google Android?

What is the best (meaning: most popular) UI Java markup language for designing applications for Google Android? So i will say something like <Application layout="vertical"> <Panel width="250" height="200" layout="vertical" horizontalAlign="center" verticalAlign="middle" title="This is a panel"> <Button label="This is a button"/> ...

Android: ViewHolder pattern and different types of rows?

ViewHolder pattern improves ListView scrolling framerate, as seen in following example: http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html Is it possible to keep this pattern while using different kind of Views for different rows? In other words, is it possible to do something ...

Is there a way to get full-resolution contact photos on Android

Is there a way to get photos from the Android contact list in full resolution? I've tried with the loadContactPhoto method but that returns a 50x50px image. I've tried querying the Contacts.Photos contentprovider and convert the Photos.DATA blob to a bitmap but that returns a 96x96px image. I'm using SDK1.5 because I would like my app...

Android XML Styling

I'm using themes to style widgets in Android. With the code: <item name="android:width">200px</item> ... i can set the width of the widget to 200px. But how can I specify "wrap_content" and "fill_parent"? Strings are not allowed there! ...

Creating ListView with check boxes...Android

Hello, I am trying to create a listview that has check box beside each item. (i am following a code from the book android), but i can't get it to work, every time i run it, it crashes. since i am very new to this android staff, i have no clue what to do to get it to work, any help is appreciated.the code is below. *i have created two lay...

Debug Android Source Builds

There's documentation to build the android source code base. But it's hard to find information on how to run the android os and its applications in the emulator environment so you can test your changes. Can anyone point me in the right direction? I am unfamiliar with Linux development. ...

How can I listen for SD card mounting in android?

I have a program that uses the SD card, so I want to be informed if the state of the card changes by registering a listener if possible. I'm aware of the Environment class and its methods, but I don't really want to be constantly polling the state. I'd rather not have my program force close when running cause someone mounted the sd card ...

Multiple Views for for a row in a ListView

I have a ListView that could have 4 different views for a row depending on the data for the row. I have the ListView working correctly overriding getViewTypeCount and getItemViewTYpe. I originally was trying to dynamiclly update the view type count as new views were inflated by forcing calls to getViewTypeCount because it was possible th...

Is there any way to put extras to Intent from preferences ?

Hi i'm launching activity from preferences screen. Activity is shared among three preferences. I wonder if i can set extras for this activity in xml <Preference android:key="action_1" android:title="@string/action_1_title" > <intent android:action="com.package.SHAREDACTION" > </intent> </Preference> i wond...

Android Multitouch - Possible to test in emulator?

Hey everyone, I recently discovered that the Android 2.0 SDK supports multitouch through new functions in the MotionEvent class. You can specify a pointer index when retrieving touch properties, and in cases where multiple fingers are on the screen there should be multiple pointers provided. Unfortunately, I only have a G1 to test on a...

How to implement a Button on an Android Widget

Hi I am just getting started with Android development and I have created a nice little widget that displays some info on my home screen. However, I now want to implement a Button on my widget that updates the info in my widget TextView. Can anyone advise how to go about doing this? Thanks ...

Can you repeatedly deploy an APK with 'adb install' without uninstalling first?

Since I'm really not a fan of Eclipse I'm developing my Android app by following the rules listed here: http://developer.android.com/guide/developing/other-ide.html When I'm deploying with the 'adb install' command I have to manually uninstall the APK from the emulator every time or else the install won't work. Is there any way to bypa...

Test app on the real device without publishing

Hi guys, Is there a way to test the application on the real device without publishing to android market ? Please advice. Thanks. ...