[android-developers] Change Tab Widget icon for currently active tab

2008-12-04 Thread mscwd01
This is not so much a problem, more a question about how to achieve something... I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an exact copy but in grayscale. What I want to do is have the coloured version of the icon displayed when the tab is active i.e. being viewed.

[android-developers] Re: Change Tab Widget icon for currently active tab

2008-12-05 Thread mscwd01
at 2:45 PM, mscwd01 [EMAIL PROTECTED] wrote: Anyone? I've spent most of today on this problem and its starting to get old ;) On Dec 4, 6:43 pm, mscwd01 [EMAIL PROTECTED] wrote: This is not so much a problem, more a question about how to achieve something... I have a tabhost

[android-developers] Weird Map Problem (Controlling same map)

2008-12-07 Thread mscwd01
I have a weird issue, which is probably easily solvable - but the cause is alluding me. I have two activities, one is created as an intent from the first activity. Each activity features a MapView. My problem is that if I move the first map (i.e. navigate to a paricular city) the second map,

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread mscwd01
Anyone? I cant work out what is causing this... On Dec 7, 5:16 pm, mscwd01 [EMAIL PROTECTED] wrote: I have a weird issue, which is probably easily solvable - but the cause is alluding me. I have two activities, one is created as an intent from the first activity. Each activity features

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread mscwd01
maps state as needed? http://code.google.com/android/reference/com/google/android/maps/MapV...) On Dec 7, 2:41 pm, mscwd01 [EMAIL PROTECTED] wrote: Anyone? I cant work out what is causing this... On Dec 7, 5:16 pm, mscwd01 [EMAIL PROTECTED] wrote: I have a weird issue, which is probably

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
Okay this kind of makes sense, so to ensure the map is always showing the correct view (i.e. city), one should reposition the map each time the activity is loaded? One question though, what happens if someone clicks the back button? Does the original activity reload automatically, or do you have

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
... Just to add to my question above ... If only one MapActivity is allowed per process - I take it that means per application??? - How does one properly use 2 or more maps per application? On Dec 8, 12:17 pm, mscwd01 [EMAIL PROTECTED] wrote: Okay this kind of makes sense, so to ensure the map

[android-developers] Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread mscwd01
I need a way to create a TabHost which has an intent as the tabs content, e.g: TabHost tabs = (TabHost)findViewById(R.id.tabhost); tabs.setup(); TabSpec spec1 = tabs.newTabSpec(TabOne); spec1.setIndicator(Tab One, this.getResources().getDrawable (R.drawable.tab_icon)); spec1.setContent(new

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
I've had a look at the documentation you suggested, however I think im misunderstanding how you launch a new activity in a seperate process. Is there a demo which illustrates this? On Dec 8, 12:36 pm, Mark Murphy [EMAIL PROTECTED] wrote: mscwd01 wrote: If only one MapActivity is allowed per

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
to the first map? I believe I am making more and more map objects when I launch Activity2 again and again and not releasing resources when I finish with it? Hope I havent confused you ;) On Dec 8, 11:11 pm, Mark Murphy [EMAIL PROTECTED] wrote: mscwd01 wrote: I've had a look

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
Oh btw I purchased your The Busy Coder's Guide to Android Development book - its very helpful ;) On Dec 8, 11:30 pm, mscwd01 [EMAIL PROTECTED] wrote: Okay, one last question ;) I've noticed if I have one map in, say, Activity1 and I call another activity, Activity2 which has a map within

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread mscwd01
Anyone? I'm guessing its possible but I cant find an obvious solution... On Dec 8, 5:45 pm, mscwd01 [EMAIL PROTECTED] wrote: I need a way to create a TabHost which has an intent as the tabs content, e.g: TabHost tabs = (TabHost)findViewById(R.id.tabhost); tabs.setup(); TabSpec spec1

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
at that issue? http://groups.google.com/group/android-developers/browse_thread/thread/81631e00bd25ee83/bfb7f675eb8faadc?lnk=gstq=mscwd01#bfb7f675eb8faadc If I can get that solved, I should be fine! Thanks again! On Dec 8, 11:47 pm, Mark Murphy [EMAIL PROTECTED] wrote: mscwd01 wrote:   Hope I

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread mscwd01
PROTECTED] wrote: mscwd01 wrote:   Hope I havent confused you ;) No, but you have made my head hurt.   Oh btw I purchased your The Busy Coder's Guide to Android   Development book - its very helpful ;) My head feels better now... ;-) However what i'm asking is, is there a way to kill off

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread mscwd01
large, is there a way to define a WebView in a different class from the one creating the TabHost and just reference the WebView (from its individual class) when inserting it as content to the tab? Thanks On Dec 9, 12:41 am, Mark Murphy [EMAIL PROTECTED] wrote: mscwd01 wrote: Anyone? I'm guessing

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-09 Thread mscwd01
: mscwd01 wrote: Anyone? I'm guessing its possible but I cant find an obvious solution... Alas, I don't think it is possible, unless you fancy getting your hands dirty in the Android source code. You need the activity that is managing the tabs to be an ActivityGroup if you want one

[android-developers] How do you create this map pin?

2008-12-11 Thread mscwd01
I want to know how to create a map pin such as the one used in the Google Maps app, shown when you search for a particular address. The white balloon which contains short String to denote what the pin is representing. Instead of adding a drawable for my pin in an OverlayItem, I would rather use

[android-developers] Re: How do you create this map pin?

2008-12-11 Thread mscwd01
Similar to this: http://www.webmonkey.com/mediawiki/images/Android_streetview.jpg On Dec 11, 11:26 pm, mscwd01 mscw...@gmail.com wrote: I want to know how to create a map pin such as the one used in the Google Maps app, shown when you search for a particular address. The white balloon which

[android-developers] Re: How do you create this map pin?

2008-12-11 Thread mscwd01
Oh, and if its not possible - does anyone have any tips on how to emulate such a map pin? On Dec 11, 11:29 pm, mscwd01 mscw...@gmail.com wrote: Similar to this:http://www.webmonkey.com/mediawiki/images/Android_streetview.jpg On Dec 11, 11:26 pm, mscwd01 mscw...@gmail.com wrote: I want

[android-developers] Re: How do you create this map pin?

2008-12-12 Thread mscwd01
, whatever you want.) On Dec 12, 5:55 am, mscwd01 mscw...@gmail.com wrote: Anyone? On Dec 12, 1:40 am, mscwd01 mscw...@gmail.com wrote: Oh, and if its not possible - does anyone have any tips on how to emulate such a map pin? On Dec 11, 11:29 pm, mscwd01 mscw...@gmail.com wrote

[android-developers] Re: How do you create this map pin?

2008-12-12 Thread mscwd01
Anyone? On Dec 12, 1:40 am, mscwd01 mscw...@gmail.com wrote: Oh, and if its not possible - does anyone have any tips on how to emulate such a map pin? On Dec 11, 11:29 pm, mscwd01 mscw...@gmail.com wrote: Similar to this:http://www.webmonkey.com/mediawiki/images/Android_streetview.jpg

[android-developers] Re: How do you create this map pin?

2008-12-12 Thread mscwd01
Argh, is there any documentation/examples which demonstrate how to draw a pin which resizes to the short String it holds? This relatively easy problem is causing me major headaches ;) On Dec 12, 11:34 am, mscwd01 mscw...@gmail.com wrote: Thanks for your reply... One question though... How

[android-developers] Customize layout of ExpandableListView

2008-12-14 Thread mscwd01
Hey, Is it possible to customize the layout/appearance of a ExpandableListView? I wish to: - Give parents a darker background than children - Place images next to each child (children represent photo albums and I wish to place an album cover image next to each child under the photos parent)

[android-developers] Re: Customize layout of ExpandableListView

2008-12-15 Thread mscwd01
Having had a further look, im not sure if an ExpandableListView can allow me to customize its appearance. Is there another way to do this? On Dec 15, 1:12 am, mscwd01 mscw...@gmail.com wrote: Hey, Is it possible to customize the layout/appearance of a ExpandableListView? I wish

[android-developers] Re: Customize layout of ExpandableListView

2008-12-15 Thread mscwd01
Brilliant! Thanks for taking the time to show me this. I'll have a play and see what I come up with :) On Dec 15, 2:01 pm, Gnanesh Radhakrishnan gnanesh@gmail.com wrote: Sorry... you include dynamic images also to the textview. Please refer to setCompoundDrawablesWithIntrinsicBounds

[android-developers] Replacing default Menu with a Dialog

2008-12-17 Thread mscwd01
Hi, I wish to replace the default Menu with a Dialog that consists of several TextViews. Creating the dialog is easy, however how does one override the defualt Menu and have the dialoge show and dismiss in the same manner as the default menu? Currently I create the dialog like this: @Override

[android-developers] Re: How can ExpandableListActivity be customized?

2008-12-18 Thread mscwd01
See here for a solution: http://groups.google.com/group/android-developers/browse_thread/thread/2781fddf7d9a429e On Dec 18, 10:32 am, Luke w hit...@gmail.com wrote: and the images dynamic, I get it by an id refers to the bmp files in /res/drawable/id.bmp Thanks very much BR, Luke Wang

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-18 Thread mscwd01
That worked nicely, thanks. On Dec 18, 1:19 am, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: I wish to replace the default Menu with a Dialog that consists of several TextViews. I suspect what you mean is: you want to display a Dialog that consists of several TextViews when

[android-developers] Synchronizing Maps and Map Overlays - ConcurrentModificationException

2008-12-23 Thread mscwd01
I am getting the following exception: 12-24 00:29:25.922: ERROR/AndroidRuntime(267): Uncaught handler: thread main exiting due to uncaught exception 12-24 00:29:25.960: ERROR/AndroidRuntime(267): java.util.ConcurrentModificationException 12-24 00:29:25.960: ERROR/AndroidRuntime(267): at

[android-developers] Re: Synchronizing Maps and Map Overlays - ConcurrentModificationException

2008-12-24 Thread mscwd01
Hello, anyone help me with this please... On Dec 24, 12:42 am, mscwd01 mscw...@gmail.com wrote: I am getting the following exception: 12-24 00:29:25.922: ERROR/AndroidRuntime(267): Uncaught handler: thread main exiting due to uncaught exception 12-24 00:29:25.960: ERROR/AndroidRuntime(267

[android-developers] Re: Synchronizing Maps and Map Overlays - ConcurrentModificationException

2008-12-27 Thread mscwd01
hmmm, bump. Still havent worked this out. On Dec 26, 11:59 pm, mscwd01 mscw...@gmail.com wrote: Okay, hope everyone had a nice christmas and has had their fill of Turkey ;) Now can anyone help me with this? On Dec 24, 11:53 am,mscwd01mscw...@gmail.com wrote: Hello, anyone help me

[android-developers] List and Expandable List Combo

2008-12-27 Thread mscwd01
Is there a way to have a list view which comprises both expandable lists and normal rows? I.e. List - Row 1 - Row 2 - Row 3 - Row 3 Child 1 - Row 4 - Row 4 Child 1 - Row 4 Child 2 - Row 5 E.g. Row 1, 2 and 5 are simple rows, maybe just TextViews, and Rows 3

[android-developers] Dynamic Map Overlays

2008-12-28 Thread mscwd01
I have a map with ten overlays which signify map pins. Occasionally I would like to reposition the overlays to mark a different location on the map. How do I change the GeoPoint position of a map overlay after I have already created it and added it to map.getOverlays() ? I have spent absolutely

[android-developers] Re: Dynamic Map Overlays

2008-12-29 Thread mscwd01
focus. Is there a better way of doing this than this hack? Thanks On Dec 28, 6:14 pm, mscwd01 mscw...@gmail.com wrote: I have a map with ten overlays which signify map pins. Occasionally I would like to reposition the overlays to mark a different location on the map. How do I change

[android-developers] Sharing a MapView between two Activities

2008-12-30 Thread mscwd01
I have encountered memory issues in the past when using more than one MapView in a given application. However in the application I am currently working on I require two activites to use MapViews. Instead of creating a new MapView object in each activity, is there a way to create one MapView and

[android-developers] Set Window Titile

2009-01-05 Thread mscwd01
How do you set/change the title of the Activities window? I am currently using this code but it has absolutley no effect: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set Window Title getWindow().setTitle(Title of

[android-developers] Re: Set Window Titile

2009-01-06 Thread mscwd01
obvious reason why I cannot set the window title? Thanks On Jan 6, 8:09 am, Dianne Hackborn hack...@android.com wrote: Try doing it after setContentView(). On Mon, Jan 5, 2009 at 6:47 AM, mscwd01 mscw...@gmail.com wrote: How do you set/change the title of the Activities window? I am

[android-developers] Re: Set Window Titile

2009-01-06 Thread mscwd01
Al, you little genius - you just solved a very long running problem in two short sentences! Thanks very much! On Jan 6, 5:54 pm, Al alcapw...@googlemail.com wrote: Is there any particular reason for using getWindow()? I've always used setTitle and it always worked for me. On Jan 6, 5:00 

[android-developers] Get reference to parent window from TabHost Activity

2009-01-06 Thread mscwd01
I have an Activity which has a TabHost, lets call this the parent Activity. Within the TabHost are two tabs whose content, are themselves, Activities, lets call them child Activities. The child activites perform several functions which can take a while to complete so I wish to add an

[android-developers] Re: How to remove an overlay from the map

2009-01-07 Thread mscwd01
Try: map.getOverlays().clear() and then call: map.invalidate() (or map.postInvalidate() from a nin UI thread) Hope that helps. On Jan 7, 2:56 pm, Sudha sudha...@gmail.com wrote: hi I have drawn the map and the overlay on it But how to remove the added overlays.. I tried to refresh the

[android-developers] Re: Get reference to parent window from TabHost Activity

2009-01-07 Thread mscwd01
Is this at least possible? I may have to find a workaround... On Jan 7, 12:25 am, mscwd01 mscw...@gmail.com wrote: I have an Activity which has a TabHost, lets call this the parent Activity. Within the TabHost are two tabs whose content, are themselves, Activities, lets call them child

[android-developers] Recognising when an app is closed

2009-01-17 Thread mscwd01
I may just be overlooking something blatently obvious here but this seems to be alluding me... I have an app which routinely contacts my server requesting updates (small amounts of data). Whilst the user is using my app I wish this updating to continue, however when the app closes (i.e. the home

[android-developers] Re: P2P Android

2009-01-17 Thread mscwd01
Im guessing you'll need a central server with which to relay files between. I dont believe phones have unique IPs which you can directly access from phone to phone - its been a while since I checked though, maybe someone else can confirm this? On Jan 17, 12:55 pm, Tez earlencefe...@gmail.com

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread mscwd01
mmur...@commonsware.com wrote: mscwd01 wrote: I may just be overlooking something blatently obvious here but this seems to be alluding me... I have an app which routinely contacts my server requesting updates (small amounts of data). Whilst the user is using my app I wish this updating

[android-developers] Re: Recognising when an app is closed

2009-01-17 Thread mscwd01
Okay, I'll have to opt for the stop/start approach each time you switch from Activity to Activity - its not a very elegant solution though. Im suprised theres not a whole application has lost focus.onPause(). On Jan 17, 3:27 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote

[android-developers] WebView as a child of an ExpandableList - Possible?

2009-01-17 Thread mscwd01
As the title asks - Is it possible to place a WebView inside an expandable list (as a child). I have tested this; having created a WebView I placed it as a View in the getChildView() of the BaseExpandableListAdapter Class. However I get the following error: java.lang.ClassCastException:

[android-developers] Re: Stackable Tabs?

2009-01-17 Thread mscwd01
I dont think it is possible with the current SDK, the problem is people have to select the tabs by touch and not by relying on a stylus or other small pointing device. Likewise you need to make sure the tabs are big enough to select on a real device, the emulator appears bigger on screen and you

[android-developers] Re: WebView as a child of an ExpandableList - Possible?

2009-01-17 Thread mscwd01
17, 4:19 pm, mscwd01 mscw...@gmail.com wrote: As the title asks - Is it possible to place a WebView inside an expandable list (as a child). I have tested this; having created a WebView I placed it as a View in the getChildView() of the BaseExpandableListAdapter Class. However I get

[android-developers] Accuracy of sensors such as electronic compass

2009-03-19 Thread mscwd01
Just a quick question... I am now beginning an app which will use the compass and tilt sensors to determine a persons heading and line of sight. Can I assume the sensors on devices such as the G1 are fairly accurate or can I expect to run into problems such as the compass being 5-10 degress off

[android-developers] Android Physics Engine

2009-03-30 Thread mscwd01
Does anyone know of, or have implemented, a physics engine which runs smoothly in Android? I have spent the last couple of days trying Phys2D and JBox2D, however both perform very poorly - I am struggling to get even a few objects to simulate smoothly as frequent garbage collection spoils it.

[android-developers] Re: Android Physics Engine

2009-03-31 Thread mscwd01
from other programs.  Though they do still happen.  Viewing LogCat I see a GC every 10 or 20 seconds because of some background application.  But between those events I get a consistent frame rate. I am using OpenGL for my rendering.     -Anton On Mar 30, 1:14 pm, mscwd01 mscw...@gmail.com

[android-developers] Re: Android Physics Engine

2009-03-31 Thread mscwd01
Oh I forgot to re-ask... Has anyone tested Phys2D or JBox2D on an actual device to see if they run better than on the emulator? I have a feeling the performance will better on a G1 than the emulator for some reason! On Mar 31, 12:51 pm, mscwd01 mscw...@gmail.com wrote: I did take a look

[android-developers] Re: Android Physics Engine

2009-03-31 Thread mscwd01
, but there are limitations. Particularly with garbage collection and memory allocation on code that gets run continuously in loops, so I don't know how optimised these physics engines are for this purpose. Would be interesting to find out though. On Mar 31, 12:52 pm, mscwd01 mscw...@gmail.com wrote: Oh I forgot

[android-developers] Re: Android Physics Engine

2009-04-01 Thread mscwd01
31, 9:17 am, mscwd01 mscw...@gmail.com wrote: Thanks for your feedback Shaun, I too unfortunately think a bespoke engine will need to be written for Android, which is a real pity as the iPhone has several physics engines which can easily handle hundreds of objects. Having said

[android-developers] Re: Android Physics Engine

2009-04-01 Thread mscwd01
source and games!  Is that too much to ask?  LOL!! On Mar 31, 12:17 pm, mscwd01 mscw...@gmail.com wrote: Thanks for your feedback Shaun, I too unfortunately think a bespoke engine will need to be written for Android, which is a real pity as the iPhone has several physics engines which can

[android-developers] Re: Android Physics Engine

2009-04-01 Thread mscwd01
overhead would be well amortized.     Anton On Mar 31, 9:17 am, mscwd01 mscw...@gmail.com wrote: Thanks for your feedback Shaun, I too unfortunately think a bespoke engine will need to be written for Android, which is a real pity as the iPhone has several physics

[android-developers] Re: Android Physics Engine

2009-04-03 Thread mscwd01
experience. On Apr 1, 2:45 pm, mscwd01 mscw...@gmail.com wrote: Thanks Lajos for pointing APE out, I hadn't heard of it until now. Unfortunately your link to your Android port is broken, can you mend it as I dont fancy spending another hour porting another

[android-developers] Re: Android Physics Engine

2009-04-03 Thread mscwd01
...@gmail.com wrote: On Fri, Apr 3, 2009 at 6:24 PM, mscwd01 mscw...@gmail.com wrote: I have thrown together a quick example of the APE Physics engine (www.cove.org/ape/) running on Android. As you can see, simulating 30 or so circles results in a solid 15fps, which looks acceptable. :( 15 fps

[android-developers] Animating a Layout

2009-04-08 Thread mscwd01
How do I animate a Layout? I have a RelativeLayout which sits in a certain position within my Activity; I want to glide it in and out from the bottom of the screen when a certain button is pressed. I have found examples of animating the children of lists etc but this is not what I want. I

[android-developers] Re: Animating a Layout

2009-04-08 Thread mscwd01
this: identityOverlayAnimationIn.start(); But it doesn't seem to work... On Apr 8, 4:53 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: How do I animate a Layout? I have a RelativeLayout which sits in a certain position within my Activity; I want to glide it in and out from

[android-developers] Re: A Gesture Recognition Library

2009-04-11 Thread mscwd01
That's really impressive and i'd guess a whole lot more intuitive to use than the virtual keyboard for quick text entry. I'll definately have a play around with it when I get a spare minute or two; when I do i'll try and provide some feedback. Thanks for sharing! On Apr 11, 11:56 am, sydnal

[android-developers] Re: how to add 3-4 items in list view

2009-02-06 Thread mscwd01
This was a little confusing to me at first so I hope this code extract will help you out: Java: -- public View getView(int position, View convertView, ViewGroup parent) { // Inflate row layout from 'list_row.xml' View row = inflater.inflate(R.layout.list_row,

[android-developers] Quick Compass question

2009-02-23 Thread mscwd01
With a normal compass you need to hold it level with the ground in order for it to work. With the compass in the G1 (and other phones I hope), are you able to hold the phone at any angle and tilt and still expect the compass to function correctly? I assume this is the case, it'd be pretty

[android-developers] Re: Quick Compass question

2009-02-24 Thread mscwd01
Simple question, only needs a simple answer... :) On Feb 23, 9:58 pm, mscwd01 mscw...@gmail.com wrote: With a normal compass you need to hold it level with the ground in order for it to work. With the compass in the G1 (and other phones I hope), are you able to hold the phone at any angle

[android-developers] Re: Request to device test the Android Application

2009-02-25 Thread mscwd01
You can test GPS with the emulator, just send it a set of coordinates or use a KML file iirc. On Feb 25, 5:24 pm, Sena Gbeckor-Kove s...@imkon.com wrote: No Problem Good luck also S On 25 Feb 2009, at 17:19, nitichandra ingle wrote: that will b fine thanks for offering ur help though

[android-developers] Re: Now ADC2 judging has begun.

2009-09-24 Thread mscwd01
The judging app is rubbish. I just keep getting a notification to download a single app mystic maggie which is 11mb to download... Cant I skip it? On Sep 24, 10:52 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: How the devil are regular users going to be to: 1. Know ADC2 exists.

[android-developers] Create always running app

2009-09-26 Thread mscwd01
Is it possible to create an app which always runs in the background and can listen to user input? To be more specific, is it possible to open your app by performing a gesture or long pressing selected text on any screen in any other running app?

[android-developers] Re: Create always running app

2009-09-26 Thread mscwd01
Hmm pity, I can see it being abused by unscrupulous developers - but it'd be a powerful feature nonetheless. On Sep 27, 12:28 am, Dianne Hackborn hack...@android.com wrote: No it is not, sorry. On Sat, Sep 26, 2009 at 3:02 PM, mscwd01 mscw...@gmail.com wrote: Is it possible to create

[android-developers] 3D MapView - Is it possible?

2009-10-20 Thread mscwd01
Is there a way to manipulate a MapView so it is given perspective? I.e. the Tiles at the bottom of the view are wider than those drawn at the top of the view? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Using Street View within my app

2008-10-07 Thread mscwd01
Anyone? On Oct 6, 3:04 pm, mscwd01 [EMAIL PROTECTED] wrote: Hey, Is there a simple way to get a Street View of a given set of coordinates (plus heading i.e. direction camera is pointng) and display it as an image within my application? Thanks

[android-developers] Re: Using Street View within my app

2008-10-08 Thread mscwd01
Is there no way to get a panoramic image of a given set of coordinates? There must be! Any help? On Oct 6, 3:04 pm, mscwd01 [EMAIL PROTECTED] wrote: Hey, Is there a simple way to get aStreetViewof a given set of coordinates (plus heading i.e. direction camera is pointng) and display

[android-developers] Re: Using Street View within my app

2008-10-10 Thread mscwd01
this be sufficient for your purposes? Peli On Oct 8, 2:08 pm,mscwd01[EMAIL PROTECTED] wrote: Is there no way to get a panoramic image of a given set of coordinates? There must be! Any help? On Oct 6, 3:04 pm,mscwd01[EMAIL PROTECTED] wrote: Hey, Is there a simple way to get aStreetViewof

[android-developers] Re: Using Street View within my app

2008-10-10 Thread mscwd01
On Oct 10, 12:06 pm,mscwd01[EMAIL PROTECTED] wrote: Am I able to embed a streetview within my app, like you would with a mapview? On Oct 8, 3:54 pm, Peli [EMAIL PROTECTED] wrote: You could call the VIEW intent on a streetview URI (seehttp://www.openintents.org/en/node/63) to display

[android-developers] Implementing collision detection (Game)

2008-10-19 Thread mscwd01
I am fairly new to android, although I have been using Java for a while. I am creating a 2d maze based game which consists of a bunch of walls and a rotating player piece (which rotates 360 degrees), while trying to get from the entrance to the exit of the maze - without touching the walls. My

[android-developers] Re: Implementing collision detection (Game)

2008-10-19 Thread mscwd01
, just call bitmap.getPixel() for the next position of your player.  If it's the wall color (let's say you use white for walls), there is a collision. On Oct 19, 5:51 am, mscwd01 [EMAIL PROTECTED] wrote: I am fairly new to android, although I have been using Java for a while. I am

[android-developers] Re: Implementing collision detection (Game)

2008-10-20 Thread mscwd01
also was careful so as to draw the absolute minimum as 2d drawing is a little expensive in android.  Overall I get a framerate around 40-45 FPS on my emulator. Also - if you're not already, use a SurfaceView. On Oct 19, 6:37 pm, mscwd01 [EMAIL PROTECTED] wrote: Thanks for your reply, So

[android-developers] Paint (fill) a Path with a texture

2009-10-30 Thread mscwd01
Hey, I currently draw Paths to the screen and fill them with a simple color; however, is it possible to take a bitmap and fill the path with this texture? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Supporting Smaller Screen Sizes supports-screens

2009-10-30 Thread mscwd01
I have had several emails from people with HTC Tattoo devices who say they cannot find my app in the Market. After reading this page (http://d.android.com/guide/practices/ screens_support.html) I believe I have to add the supports-screens tag to my manifest file. However, when I try to do this I

[android-developers] IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
Hi, I have had several complaints from people with G1 and MyTouch/G2 devices who say my application does not work correctly. The problem stems from the following code which gets the orientation of the phone: // Get Screen Orientation Display display = ((WindowManager) getSystemService

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
Hi Mark, I added this to the activity tag in the manifest: android:screenOrientation=sensor Would that make any difference? If I get it still doesn't work emails, i'll try your code. Thanks On Oct 31, 11:54 am, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: Hi, I have had

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
if the API is not supported on all devices??? I would be very greatful if someone could offer a solution to this, its just not acceptable. On Oct 31, 12:08 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: I added this to the activity tag in the manifest: android:screenOrientation

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
documentation...  but this is a pretty low priority because, again, it really shouldn't be used by applications.) On Sat, Oct 31, 2009 at 5:08 AM, Mark Murphy mmur...@commonsware.comwrote: mscwd01 wrote: I added this to the activity tag in the manifest: android:screenOrientation=sensor

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
Sorry I meant works on the HTC Hero NOT magic ;) On Oct 31, 6:11 pm, mscwd01 mscw...@gmail.com wrote: Dianne, I have used the configuration to try and determine orientation (see Method 2); however, this still fails on G1 and G2 devices. It works on the HTC magic though. If you could offer

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-10-31 Thread mscwd01
31, 6:19 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: Okay this is getting really rather annoying now. I have used both of the following methods of getting the screen orientation and both do not work properly on different devices. Method 1: Display display

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-11-01 Thread mscwd01
:( On Nov 1, 3:18 am, niko20 nikolatesl...@yahoo.com wrote: Wait- YOu are remapping the coords after rotation? Well then that's where the problem has to be, since clearly Mark has shown that the getOrientation() works correctly -niko On Oct 31, 1:25 pm, mscwd01 mscw...@gmail.com wrote

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-11-01 Thread mscwd01
phones which are the same make and model? This is really disconcerting, and needs to be explained. On Nov 1, 11:06 pm, mscwd01 mscw...@gmail.com wrote: Well Niko that may be true but it doesn't change the fact that it works fine on an HTC Hero and some G1 Magic phones. It should either work

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-11-01 Thread mscwd01
Hey Mark, I have had one user contact me by email and he had the same issues using the older version and the new version (using the orientation code you supplied), so I can rule out that being the cause *I think*. I *presume* it isn't a ROM issue as I have had 8-10 users leave comments saying it

[android-developers] Re: App name/icon problems on Hero after reboot

2009-11-01 Thread mscwd01
I have an HTC Hero, have used many of the above apps and have never seen these problems... On Nov 1, 11:47 pm, rooster 808 rich.al...@gmail.com wrote: I'm seeing this frequently on my HERO HTC, but not my G1 Google Dev phone. Almost every power off, I lose the Desktop Icon on the App I'm

[android-developers] Re: IMPORTANT - display.getOrientation() does not work on all devices

2009-11-02 Thread mscwd01
custom ROMS are trouble for developers. -niko On Nov 1, 6:31 pm, mscwd01 mscw...@gmail.com wrote: Hey Mark, I have had one user contact me by email and he had the same issues using the older version and the new version (using the orientation code you supplied), so I can rule out

[android-developers] SensorManager Query

2009-08-07 Thread mscwd01
Hi, I would like to get the orientation of the phone i.e. its compass bearing (azimuth), pitch (around X axis) and roll (around Y axis). I have found the method 'getOrientation(float[] R, float[] values)' which seems to serve this purpose, however I am unsure what I need to pass to it as a

[android-developers] Re: SensorManager Query

2009-08-08 Thread mscwd01
I'm still struggling with this, its thr roation matrix I need to supply which i'm not sure with... On Aug 7, 6:12 pm, mscwd01 mscw...@gmail.com wrote: Hi, I would like to get the orientation of the phone i.e. its compass bearing (azimuth), pitch (around X axis) and roll (around Y axis). I

[android-developers] Detecting Long Press on a Map Overlay

2009-08-13 Thread mscwd01
Hey, I want to be able to detect where a user has long pressed on my Map Overlay. The idea being to get the GeoPoint of the location the user pressed. I can detect where a user taps, but cannot find how to detect a long press. Any ideas? Thanks

[android-developers] Re: Detecting Long Press on a Map Overlay

2009-08-13 Thread mscwd01
your code. On Aug 13, 7:47 am, mscwd01 mscw...@gmail.com wrote: Hey, I want to be able to detect where a user has long pressed on my Map Overlay. The idea being to get the GeoPoint of the location the user pressed. I can detect where a user taps, but cannot find how to detect

[android-developers] Android sensors - Correct when held vertically, incorrect in the horizontal

2009-08-14 Thread mscwd01
Forgive me if I am missing the obvious here but is there an easy way to get the coorect azimuth/roll/pitch values when the phone is oriented to the horizontal position? When you hold a device certically, the compass and roll/pitch values are correct but if you hold the phobe horizontally the

[android-developers] Re: Android sensors - Correct when held vertically, incorrect in the horizontal

2009-08-14 Thread mscwd01
Sorry about that poorly spelt question - I was in a hurry earlier. ;) Basically is there a way to tell the sensors what orientation your activity is in, so if the phone is held horizontally the compass works correctly? On Aug 14, 5:51 pm, mscwd01 mscw...@gmail.com wrote: Forgive me if I am

[android-developers] Re: adc2 submission site

2009-08-19 Thread mscwd01
I'd like it postponed a month please ;) It would be good to know either way though... On Aug 17, 7:43 pm, cindy ypu01...@yahoo.com wrote: I have question too. Google should update the ADC official site to tell us what happends. On Aug 16, 11:11 am, siuying siu.y...@gmail.com wrote: Glad

[android-developers] Using sensors and orientation - lat/lon point to screen coordinates

2009-08-20 Thread mscwd01
Hi, I want to find the screen coordinates (X,Y) where a point represented by a latitude/longitude value would appear on the screen if you pointed your phone at it (much in the same way as Wikitude does). Here is my code from my onSensorChanged() method: public void onSensorChanged(SensorEvent

[android-developers] Re: Using sensors and orientation - lat/lon point to screen coordinates

2009-08-20 Thread mscwd01
/SensorSimulator On Aug 20, 4:55 pm, mscwd01 mscw...@gmail.com wrote: Hi, I want to find the screen coordinates (X,Y) where a point represented by a latitude/longitude value would appear on the screen if you pointed your phone at it (much in the same way as Wikitude does). Here is my code from my

[android-developers] Re: Using sensors and orientation - lat/lon point to screen coordinates

2009-08-20 Thread mscwd01
); SensorManager.getOrientation(outR, values); I'm assuming thats the correct way to do it. On Aug 20, 6:00 pm, mscwd01 mscw...@gmail.com wrote: The main problem is when I use the values returned by the sensor manager as is i.e. not modifying them in any way, the points are no where near where they should be. For example

[android-developers] Re: Using sensors and orientation - lat/lon point to screen coordinates

2009-08-20 Thread mscwd01
the compass, and if that works, then look into your projection routine), rather than solving the whole stack of possible error sources at once. Good luck :-) Peli On Aug 20, 7:02 pm, mscwd01 mscw...@gmail.com wrote: I should add I am holding the phone horizontally (as you would when

  1   2   >