android

No animation with ViewFlipper?

I'm trying to use ViewFlipper to add an animation between views, as in following a tutorial on the subject. However, it just doesn't seem to want to work. It'll change the pages, but I get no animation -- even if I add a huge delay to push_left_in. Here's my onCreate: @Override public void onCreate(Bundle savedInstanceState)...

Can't get android:layout_weight to work

I am trying to draw some boxes in my activity, which will contain other layout elements, in XML. I want to do this using the relative dimensions, e.g. specify half of the height of the screen for each box. I understand that the correct way to do this is to set the initial height to 0px and use layout_weight, but I can't get the following...

making your app available to 3rd party applications

i want to integrate my application with 3rd party application, my understanding is that both application can agree of a action which can be used in intent filter for any activity to be exported which could be used when 3rd party app fires the intent with that particular action in it, any body has a better approach to this, thanks ...

Clear the entire history stack and start a new activity on Android

Is it possible to start an activity on the stack, clearing the entire history before it? The situation I have an activity stack that either goes A->B->C or B->C (screen A selects the users token, but many users only have a single token). In screen C the user may take an action which makes screen B invalid, so the application wants to...

Show AlertDialog on Activity start, but not on screen orientation change?

It seems when screen orientation changes, the activity's onCreate() method is called. In my onCreate() method, I have an AlertDialog which pops up when the activity is called. The problem is when I switch the screen sideways, the popup is displayed again. How can I avoid this? ...

How do I create an AVD which replicates the Dell Streak's display...

Is there a guide somewhere showing [Device] > [Settings to replicate it in AVD]?? If not, what values should I use for the Dell Streak specifically? ...

how do I make content scroll dynamically in a DIV on Iphone's safari or android's webkit?

my code: for(var myLine = 0; myLine < 100; myLine++) document.getElementById("myDiv").innerHTML += "line " + myLine + "<br>"; ............... <div style="position:...etc; overflow:auto;" id="myDiv"></div> this works without a glitch in every browser on all non mobile platforms. However... when this is implemented on iPhone (...

What is the path for Android database files on Ubuntu?[RESOLVED]

I am trying to find the path for the android database files on Ubuntu 10.4, because I want to access with SQLite Browser. Someone can tell? ...

Android: How to align ads to the bottom of screen even if the view scrolls?

I previously asked a question that I still have not been able to solve: http://stackoverflow.com/questions/3126347/android-relativelayout-how-to-alignparentbottom-when-wrapped-in-a-scrollview What I am trying to do is align a view to the bottom of the screen, using either a RelativeLayout or LinearLayout, and then wrap that layout in ...

How do I calculate the date difference?

How to calculate the date difference in Android? ...

Android Linkify stops getSelectedItemPosition() from working?

I have a ListView which has a TextView in the row. The TextView has been Linkified and has had setMovementMethod(LinkMovementMethod.getInstance()) set on it. The ListView is no longer selectable and the ListView's getSelectedItemPosition() always return -1 . Is there a way to know where the ListView has scrolled to in this case? ...

Contract between Adapter and AdapterView

Is there some place which describes the contract between Adapter and AdapterView, or between ListView and ListViewAdapter. I'm trying to create my own ListView Adapter. It is not clear to me the sequence of method invocations nor who maybe calling these methods. There appear to be several overlapping methods. getItem returns a data ...

Is there a function to calculate the difference between two times and display a relative result?

I have a DB sorted by date, and in my output, I would like to display the elapsed time between rows.. like this.. | Entry #1 on 08/10/2010 08:34 AM | Entry #2 on 08/10/2010 09:45 AM | 1 hour 11 minutes since previous entry | Entry #3 on 08/11/2010 06:57 AM | 1 day 3 hours 12 minutes since previous entry | Entry #4 ...

custom UI for drop down

i am in process of making a custom UI for my app, have almost created XML based shapes for all the controls which is fine, but spinner seems to be the main problem, is their any example for making a new shape for spinner, which could be supported on 1.5 to 2.2, i know about a tutorial that tells for custom shape for spinner but that`s fo...

Android Test Frameworks

I am new to Android test frameworks ,Would like to know the differences between existing test frameworks : Monkey , CTS ,Instrumentation Framework & Robotium ? ...

Which Version of Bluetooth does Android Froyo Support

Hi All, I wanted to know if Android 2.2 (Froyo) supports Bluetooth V3 . If any of you guys know let me know. Thank You. ...

Is it possible to have another layout in my main layout?

Is it possible to have another layout in my main layout? Such that i can set my imageview in another layout. ...

How to draw anything on image and save it to hard disk on android? please help me.

Hi everybody, I have problem need everybody help. on Android, I want to view an image on screen and sketch it (as the paint function in windows). and then save it to the hard disk. how to do that? if anybody known, please help me. thanks, Thanh Hai ...

Android: Browser back button will not fire $getJSON event

I have a test project that uses $getJSON to pull data from web services like Geonames and our own proprietary services. The index page uses two $getJSON calls, and they load fine both when you first load the page or press the refresh. However, if you navigate to another page and then hit the back button to go back to the index page, th...

Android MediaStore setting photo name to NULL

I have an app that allows the user to take and save a new picture using the Intent ACTION_IMAGE_CAPTURE. After the user accepts the newly taken picture, I create a ContentValue object to set the picture information, and then I insert the picture into the MediaStore and send a broadcast so that the user can see the photo when opening a pi...