[android-developers] Re: ListView/ ScrollView : What exactly is happening in onInterceptTouchEvent()

2011-02-19 Thread AUandroid
> I know you say you don't want to hear this, but seriously: don't do this. >  These two simply do not play well together with touch scrolling and other > behavior. > > > > On Fri, Feb 18, 2011 at 1:31 PM, AUandroid wrote: > > I know that we are not supposed

[android-developers] ListView/ ScrollView : What exactly is happening in onInterceptTouchEvent()

2011-02-18 Thread AUandroid
I know that we are not supposed to put a listView inside of a scrollView. The layout and nesting of my apps views are determined at run time and I have no control over that.My situation demands it and I have a working implementation to achieve that. However I am not sure what exactly is happenin

[android-developers] Child focus intercept

2011-01-28 Thread AUandroid
I am trying to disable a Layout including all its children. I am able to intercept the click and key press events of the Layout in the dispatchTouchEvent and dispatchKeyEvent and dispatchTrackBallEvent methods of the layout. Thus, the children of this layout cannot receive any clicks or key presses

[android-developers] Disable a TabHost/Layout

2011-01-27 Thread AUandroid
How to disable a Tabhost? doing a setEnabled(false) does not seem to work. The same is true for any layouts. thanks, vk -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.co

[android-developers] Re: Button color - StateListDrawable question

2010-12-09 Thread AUandroid
thanks, I will try that way On Dec 9, 9:26 am, Mark Murphy wrote: > The StateListDrawable and nine-patch PNG resources used by a Button > are in your SDK. Copy them into your project and modify to suit. > > > > On Thu, Dec 9, 2010 at 10:24 AM, AUandroid wrote: > > I

[android-developers] Button color - StateListDrawable question

2010-12-09 Thread AUandroid
I am allowing the user to change the color of the buttons. I want to maintain the default drawables used for focused and onPressed state and apply the color only when the button is neither pressed nor focused. I am currently achieving this by checking the state of the view in onDraw() on the butt

[android-developers] Re: How to market a map overlay?

2010-09-21 Thread AUandroid
Jim, I dont think you can change the default google maps app on the device. You need to use the google maps api's. You also need to get a google maps key for you app -vk On Sep 21, 9:39 am, cellurl wrote: > I want to market an overlay for Android Maps. > It will provide the "speed limit". > > M

[android-developers] Android application Session timeout

2010-09-21 Thread AUandroid
Hi guys , 1) I am trying to have a session time out feature in my application. I want to display the login screen after a time out period. I searched around for pointers for this problem and it seems like the preferred way is to start and stop timers at onREsume and onPause(), and start the l

[android-developers] android 2.1 issue

2010-08-22 Thread AUandroid
Hi All, I have a app that runs properly on andorid 1.6 and on my test G1 phone. It is force closing on the new Android 2.1 phones.I am parsing XML( from internet) and displaying in a listview. Is the openstream() method no longer supported. If I debug the app in api level 7, xml is correctly par

[android-developers] Re: How to cite/reference free images

2010-07-31 Thread AUandroid
ces/ > citations in the About screen. > > On Jul 31, 3:39 pm, AUandroid wrote: > > > Hi All, > > > I am about to release my first app on the market for free. How should > > I reference or give citations to images I have used in my app. I have > > used

[android-developers] How to cite/reference free images

2010-07-31 Thread AUandroid
Hi All, I am about to release my first app on the market for free. How should I reference or give citations to images I have used in my app. I have used two images which are free images available at http://commons.wikimedia.org/wiki/Main_Page thanks, -vk -- You received this message because you

[android-developers] Re: Issue with continuously running thread

2010-07-20 Thread AUandroid
-getapplicationcontext.html -vk On Jul 20, 12:05 am, Kumar Bibek wrote: > Can you paste the stack trace for the same? > > On Jul 20, 9:28 am, AUandroid wrote: > > > Hi all, > > > I am continuously running a thread in my activity which fetches lat/ > > lon informatio

[android-developers] Issue with continuously running thread

2010-07-19 Thread AUandroid
Hi all, I am continuously running a thread in my activity which fetches lat/ lon information and the overlays on the map are updated dynamically through a handler. The overlays can be varying in number and can change dynamically. The thread is interrupted in onPause(). I am over riding the onTa

[android-developers] Re: "When" are the overlays drawn on the map?

2010-07-18 Thread AUandroid
thanks, yeah I was doing a expensive operation in UI. I created a AsyncTask and its working fine. Here is an example if anyone wants http://www.screaming-penguin.com/node/7746 -vk On Jul 17, 7:15 pm, Frank Weiss wrote: > If the updates don't happen until the onCreate or onClickEventHandler > me

[android-developers] "When" are the overlays drawn on the map?

2010-07-17 Thread AUandroid
What I am trying to do - I am continuously getting a stream of lat/lng positions, I want to move a overlay item dynamically on the map based on the lat/lng in the stream. I am displaying the location of moving object dynamically on the map I am putting my whole code in a while(true) loop and tryin

[android-developers] "When" are the overlays drawn on the map?

2010-07-17 Thread AUandroid
What I am trying to do - I am continuously getting a stream of lat/lng positions, I want to move a overlay item dynamically on the map based on the lat/lng in the stream. I am displaying the location of moving object dynamically on the map I am putting my whole code in a while(true) loop and tryin

[android-developers] Re: update activity/layout from within broadcast receiver

2010-07-01 Thread AUandroid
ok I found a good example.. here is the link if anyone needs it http://www.linux-mag.com/id/7778 On Jun 30, 9:02 pm, AUandroid wrote: > thanks Jeremy, I will try the onresume option. A separate thread is > not feasible. > > -vk > On Jun 30, 1:23 am, Jeremy wrote: > &g

[android-developers] Re: update activity/layout from within broadcast receiver

2010-06-30 Thread AUandroid
button to be disabled instantly when > connection is lost, you'd have to be running that method in a separate > thread over and over, which is probably worse from an efficiency > standpoint than using a receiver. > > On Jun 28, 9:13 pm, AUandroid wrote: > > > I have a l

[android-developers] update activity/layout from within broadcast receiver

2010-06-29 Thread AUandroid
I have a layout with two buttons, I want to disable or make unclikable one of the buttons when internet connection is lost and back to clickable when connection is regained. From my broadcast receiver I am calling another class(which extends activity and thus can call findViewById) which is attempt