android

Animate Textview inside a listview row.

Hi, I have a simple problem: i have a listview with 2 TextViews one shows a number and the other shows the diff from last time the number has chnaged. What im trying to do is every time the getView is called on my adapter show an animation on the second TextView based on the change in the first Textview number. im trying to do this for ...

Android Media Player Threading/Concurrency

Hi all! I am using the default Android Media Player in an Activity, trying to play back a couple of video files. However I have a problem with programming what I want. The desired program outcome would be the following: A video file is played back After that, a dialog is shown, asking the user something A pause of 5 seconds occurs The ...

Display image from URL - sizing and screen orientation problems

I am trying to display an image from a URL, which may be larger than the screen dimensions. I have it kind of working, but I would like it to scale to fit the screen, and I also have problems when the screen orientation changes. The image is tiny, and I would like it to scale its width to the screen as well. (In both cases, I would li...

BitmapFactory.decodeStream(inputStream) always return null when some bytes are wrong.

Hi there! I'm building an android app and I'm currently having trouble retrieving a bitmap from an URL. Here is the code I'm using : public static Bitmap bmpFromURL(URL imageURL){ Bitmap result = null; try { HttpURLConnection connection = (HttpURLConnection)imageURL .openConnection(); connection.setDoInput(t...

Android Linear/RelativeLayout sizing with ImageViews

Been stuck on this for days, things just aren't working with how I'm setting this up. I have a large grid of ImageViews which are all the same size. It's made up of a Horizontal LinearLayout and within that, 5 Vertical LinearLayouts (first picture). What I want (and I don't care how, be it using RelativeLayout, Linear or Tables) is if ...

Multiple contact selection in Android

Is it possible to get a multiple contact selection activity in Android? ...

Camera Capture Without Preview in Android 2.2

Hi All, I have a requirement to Capture the image without showing the Preview.. And i want to do it in the Background as a Service. Is it possible to do that?? ...

LinearLayout height in onCreate is 0

Hello, I'm trying to dynamically adjust the height of my rows depending on the (screen height - my layout height) / list.size. Unfortunately in the OnCreate method the layout height returns null (not so when i call it in an on click listener). Is there another method I can call it in? TIA ...

Android, layout_width and width, alignBaseline, TableLayout and layout_span related questions

[First, sorry, I couldn't come up with a more intelligent question title.] Okay, hang with me while you read this long post. I am new to Android, this is my very first dummy Pizza Order application. I am playing with XML layouts and have got some questions. The editText_CardNo goes out of screen, its column isn't stretching, why? (I...

How to manage database operation using Tab in android

Hi, i want to make application in which i want to use 2 Tab. One tab will perform database inset operation while other tab perform update operation. Any help on this.. How can i do this task ...

Include a data file with my Android app

I'm creating an app that I want to seed with a data file the app will use as its initial state. In the Eclipse project structure, where do I add the data file so that when the app is deployed to the device (and emulator) the data file is deployed with it? ...

Android: I need to prepare the UI from the webservice

Hello!! I am a newbie to Android and playing around with the UI and SQLLite for a while and it looks pretty good to me . We have a requirement that for the App that all the questions would be coming from the server through REST / Web service which would be displayed on the App.. say for e.g if there are 4 questions 1) Enter your Name ...

Android activity history stack problem

Hi, In my application, I have problem with activity history stack. Indeed, consider I have 5 activities : Splashscreen SignUp SignIn ForgottenPassword Home I would see : First launch (user not logged) : 3 differents wireframes possible Splashscreen -> SignUp -> Home Splashscreen -> SignUp (already member) -> SignIn (valid log)...

C#: Android phone control

Would it be possible to control/interface with an Android phone through USB in a WinForm application? Is there any library for that, without using any original Android tool (ADB, fastboot)? ...

Is it possible to change size of the item in ListView?

I have a ListView with few items. Is it possible to change size of the selected item in the ListView. For example, I want to expand selected item to show some buttons. I appreciate you for help in advance. ...

Android SMS Capturing

I want to develop such an app. on installation of which I would have two choices while sending sms either through my app or default sms app. Is there any way through which we can capture an outgoing SMS? ...

Eclipse New class , MapActivity not found !!

Hi, I want to create new class MapActivity from Eclipse. I go File-> New -> Class on Superclass-> Browse, and when I type MapActivity there is no results. In Windows-> Android SDK and AVD Manager there is no new updates, I have installed SDK from version 1.5 to 2.2 Can some one help me with this? Thanks ...

How to start activity for Search Manager?

How can I create a startActivityForResult() for a Search Manager? Search is usually invoked by: onSearchRequested(); My app will display search results in Activity B, which will pass back data to Activity A. I want to handle this data in onActivityResult() but this will never get called because I never started an activity for search....

EditText.setMovementMethod with LinkMovement Method in ListView - loses ability to "Click" on rows in the list.

So, basically I have a custom View that contains a ListView with a custom Adapter that has the ability to read in information from the network (dumbed down HTML) and display it on a row by row basis. All of this works, but I need the text that is read in to be parsed as HTML which contains links that can be tapped on and launched in bro...

Change appearance of standard widgets.

What is the easiest way to change the appearance of standard widgets like Button, Spinners, ListView, etc? ...