android

How can resize the video in android..

All, When I try to attach a very big video in the message, It ask about the resizing of video. But don't want to be used Arcsoft API for resizing the video in Android because that hardware don't support it. Will you please let me know how can I resize the video in Android. please let me know some other good alternative with some dummy ...

Play sound without onClickListener

How can I play a sound in an activity without requiring the press of a button? I already know how to play the sound, but need to bypass the onClickListener. Thanks for any advice. ...

Is android:id specific to xml file or the whole project?

Is the android:id="@+id/somevalue" specific to the xml file in which it is defined, or the whole android project? If it is project-wide, it seems like I have a lot of id's to come up for text fields. For example I have to name my "title" field like "title1" and "title2" etc... ...

Why does TextView.setText cause the enclosing ScrollView to scroll?

I've got this odd problem which is happening on 1.6, 2.2, and a MyTouch 3G Slide (which is API #7, and listed as "2.1-Update1" in the Android Device Chooser). If anyone can explain what I'm doing wrong & how to fix it (or possibly confirm that this is an Android bug), I'd greatly appreciate it! The basic idea for my app is to make a st...

False positives while running layoutopt for android

When I run layouopt for my android app layouts, I often run in to this suggestion: use an android:layout_width of 0dip instead of wrap_content for better performance Is this significant enough to change or is it okay to ignore this? ...

How to listen for location updates from multiple providers?

In this code I request location updates from GPS locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,20000, 1, gpsListener); But how can I make sure it listens for Wifi or Cell ID updates too? ...

Android Robotium - How to simulate a date picker with robotium Solo class

Hi All, I'm trying to test a date picker scenario on android. I have the date picker which comes up when I click a text view(with id say v) which has a label on it along with a hint "Enter Date". The problem is that I'm trying to simulate this clicking of the text view and then selecting of the date from the date picker dialog. I canno...

Scrolling Views with static rows/cols

Hi, I'm trying to design a type of view but unsure what is possible and the best approach. I'm trying to create a timetable type view with the following properties: Time 'row' across top vertically static and scrollable horizontally Student(or day) 'column' on left side, horizontally static and scrollable vertically 'rows' for each...

Django @login_required views for JSON data API's used from iPad/iPhone/Android?

Django @login_required views for JSON data API's used from iPad/iPhone/Android? In my Django webserver, I have built JSON data API's that I want to access from mobile devices: iPad/iPhone/Android. I'm using the iPad/iPhone ASIHttp Library. How do I login users from an iPad/iPhone so my data API's can use the @login_required decorator?...

ArrayList indexOf() returns wrong index?

Hi Experts, I have a problem with ArrayList. I'm using ArrayList like this: private ArrayList<Playlist> mPlaylists; where Playlist is a class inherited from another ArrayList. I do the following: p = new Playlist(...some parameters...); mPlaylists.add(p); Later, when I use 'p' to get the index in the list: int index = mPlaylists.i...

Calling android dialog without it fading the backgorund

I have this nice dialog view I set my UserInputDialog class to: <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"&gt; <TextView android:id="...

Hello adding different images to rows in a ListView

Hello, i am quite new to android and i was wondering how i could go about adding a listview with different images and text. What i am trying to achieve is a listview with four rows which have a different Icon? I don't know how to set that up using the xml layout provided. should i build this using different multiple linear layout or is t...

Using a checkbox with a false focusable, still prevents listview clicks.

Hello I've already read quite a bit about the CheckBox/ListView problems in Android. So I've tried a number of issues. To start my layout for a row looks like this. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> ...

TableLayout column sizing

I have a TableLayout with three columns that represents a form with requiredSymbol | label | inputfield. I want the input field to fill the remaining width of the screen right to the label. So far the only solution I found is this <TableLayout android:layout_height="wrap_content" android:layout_width="fill_parent" andr...

Why is the shadow of my MapView Overlay in the wrong place?

I'm just trying to display an icon of a man with a circle under his feet in the center of the MapView. Here's my Overlay code: public class CenterOverlay extends Overlay { private Drawable d; public CenterOverlay(Drawable drawable) { final int w = drawable.getIntrinsicWidth(); final int h = drawable.getIn...

Android dropDownAnchor and popupBackground dosen't find

When I am trying to add properties to a view, I get an error; it seems like it can't find dropDownAnchor and popupBackground. Why is that, I have seen other examples that use these properties? android:dropDownAnchor="@id/search_plate" android:popupBackground="@android:drawable/search_dropdown_background" My second questions is I have ...

I cannot get ADB to see my Nexus One device

Mac OSX 10.6.4 Nexus One Android 2.2 The command adb devices will list my emulators and also my Droid Eris (Android 2.2) but nothing shows for the Nexus One I have searched extensively and failed to find any answer or suggestions, any help most welcome ...

Why are Android layout file names so limited?

It's good to have consistency in file names. MyActivity.java contains the public class MyActivity I would like the xml file with its layout to be called res/layout/MyActivity.xml But I get an error message saying "Invalid file name: must contain only [a-z0-9_.]" So two questions: Why is the character set so limited (not even upper ...

Android launching music player using intent

Is it possible to open the music app from my app in android, or is it best to write a whole new music app inside of mine. I would rather use theirs since the user will already be comfortable with it. ...

Where I can access Databases in Eclipse for Android development?

I apologize if this is a stupid question, nevertheless I need to ask. I am new to Android development and have gone through every single tutorial and reference provided. I have been doing great, with the exception of one stupid problem; I cannot find where the databases for some apps are stored. For example I would like to build my ow...