[android-developers] Theme/Style in custom preference

2011-01-20 Thread Eric Crump
I created a custom PreferenceActivity. Doing so removed all the text style. How do I apply the default style that you would normally see in a preference activity to my custom one? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

Re: [android-developers] Custom preference

2011-01-19 Thread Eric Crump
The main problem is getting my LinearLayout to expand, not the ListView. However, it didn't occur to me that the wifi entries were settings themselves and not in a ListView. I can do it this way. Thanks for help. -- You received this message because you are subscribed to the Google Groups "A

Re: [android-developers] Custom preference

2011-01-19 Thread Eric Crump
I can't set the Layout weight. I'm doing it all in Java code and if I set the weight directly I get a null exception. If I create new LayoutParams I get a class cast exception. I've tried LinearLayout.LayoutParams, FrameLayout.LayoutParams, etc and I get the exception. I did try to set the

[android-developers] ListView in custom preference

2011-01-18 Thread Eric Crump
I need to put a ListView in a custom preference. It needs to look similiar to the WiFi settings in the OS preferences. My problem is I am unable to make it take fill the space. It only takes up the space given to a normal preferece item. How do I make the LinearLayout I return from onCreateView

[android-developers] Custom preference

2011-01-18 Thread Eric Crump
I need to create a preference that looks similiar like the WiFi selection screen in the OS preferences. That screen has a ListView that takes up the whole bottom of the screen. I have figured out how to add a ListView using a custom preference but I can't make it take up the remaining space. It

[android-developers] Custom control redraw

2011-01-06 Thread Eric Crump
I have a custom control that displays a series of image tiles. The images come in in a different thread. When they arrive the control invalidates in order to display the updated total image. This works very well the first time. However, if I hit the back button then load the activity again, not

[android-developers] Re: Downloading files with HTTPGet fails on Evo

2010-07-20 Thread Eric Crump
;) On Jul 19, 10:26 pm, Eric Crump wrote: > I am trying to download files in my application.  The functionality > has worked for many phones until now.  The Evo will not download the > files.  My following code works on the Nexus 1, Droid, etc, but not > the Evo.  There is never a

[android-developers] Downloading files with HTTPGet fails on Evo

2010-07-19 Thread Eric Crump
I am trying to download files in my application. The functionality has worked for many phones until now. The Evo will not download the files. My following code works on the Nexus 1, Droid, etc, but not the Evo. There is never anything in the entity.getContent() For downloading images: HttpCli

[android-developers] Re: Google Search

2010-04-14 Thread Eric Crump
Thanks. Anyone know how to turn off title formatting? I have a title like: Restaurant SomeName -- 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.com To unsubscribe from th

[android-developers] Google Search

2010-04-13 Thread Eric Crump
I have searched the forum and found other people in the past looking to do local searches but I didn't see an answer. I also found the documentation for the AJAX api but I'm not sure if that is what I need. I'm a little lost and I'm not sure exactly where to begin. An example would be great. I

[android-developers] Load new OS on a Droid or Hero?

2010-02-24 Thread Eric Crump
I have a stack of Droids and a few Heros. There are some changes we'd like to make at the OS level. Is it possible to load a new OS on these devices? I see directions on the site for the G1, but didn't see mention of using any other hardware. -- You received this message because you are subscr

[android-developers] Video Stream

2010-02-19 Thread Eric Crump
Can anyone point me to a tutorial or post on how to stream video from my phone to an application running on a server? Also, can I do this without displaying the video on an activity? Perhaps in a background thread? -- You received this message because you are subscribed to the Google Groups "An

[android-developers] Opening and viewing files

2010-02-11 Thread Eric Crump
I have a list of files on a server. The user needs to be able to click on one and open it and view it. The files can be .txt, .doc, .png, etc. Is there a way to launch a default viewer for a particular file type or do I need to create an activity to handle each one? -- You received this messag

[android-developers] Re: Splitting connections?

2010-02-02 Thread Eric Crump
Anyone? Beuler? Seems like this is a no. -- 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.com To unsubscribe from this group, send email to android-developers+unsubscr...@

[android-developers] Splitting connections?

2010-02-02 Thread Eric Crump
I have an app that runs on a closed network with no internet access. I connect to it through wifi. My app also uses Google Maps. Is there a way to make the MapView still pull from my 3G connection while the rest of the app uses the wifi? The issue is once connected to the wifi, maps tries to pul

[android-developers] ItemizedOverlay ArrayIndexOutOfBoundsException

2010-01-31 Thread Eric Crump
I've seen all the posts about using setLastFocusedIndex(-1). I've tried that but my app is still crashing. I don't know what else to do to fix it. Any help is appreciated. public class UnitOverlay extends ItemizedOverlay { private ArrayList mOverlays = new ArrayList (); private

[android-developers] ItemizedOverlay ArrayIndexOutOfBoundsException

2010-01-31 Thread Eric Crump
I've seen all the posts about setLastFocusIndex(-1) and I've tried that. However, my application is still crashing. I'm not sure what to try. Here's my code public class UnitOverlay extends ItemizedOverlay { private ArrayList mOverlays = new ArrayList (); private HashMap symbol

[android-developers] Re: Adding a distance to a GeoPoint

2010-01-27 Thread Eric Crump
Got it to work with this: radius = (int)projection.metersToEquatorPixels(item.getRadiusInMeters ()); Still have some rounding issues to work out though -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] Adding a distance to a GeoPoint

2010-01-27 Thread Eric Crump
I need to draw a circle on my map. I have the GeoPoint and I have the radius of the circle in meters. How do I add a distance to a GeoPoint and get a GeoPoint as a result? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: ToggleButton image

2010-01-20 Thread Eric Crump
Thanks for the info. However, I still don't understand how to put an image on a toggle button. On Jan 20, 3:24 pm, "Mark Murphy" wrote: > > I want to put an image on a ToggleButton.  If I use android:background > > to set the image then it doesn't look like a button any more, just the > > image.

[android-developers] ToggleButton image

2010-01-20 Thread Eric Crump
I want to put an image on a ToggleButton. If I use android:background to set the image then it doesn't look like a button any more, just the image. What am I missing? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Getting a view in a non-Activity class

2010-01-13 Thread Eric Crump
I need to change the visibility of a View but I need to do it from a ItemizedOverlay. How do I get a refrence to a view since I can't use findViewById ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

[android-developers] Re: getDrawable() Resourses$NotFoundException

2010-01-13 Thread Eric Crump
checked out the MapView tutorial yet? It's > here:http://developer.android.com/intl/fr/guide/tutorials/views/hello-mapv... > > There's a good example there of passing a Drawable from the Activity > to an Overlay via means of the constructor. > > On Jan 13, 9:50 pm, Eric Crump

[android-developers] Re: getDrawable() Resourses$NotFoundException

2010-01-13 Thread Eric Crump
he activity. Resources.getSystem() is for system resources. > > On Jan 13, 8:59 pm, Eric Crump wrote: > > > > > I'm trying to set a resourse in the onTable method of my map overlay. > > It throws a Resourses$NotFoundException.  I've also tried making

[android-developers] getDrawable() Resourses$NotFoundException

2010-01-13 Thread Eric Crump
I'm trying to set a resourse in the onTable method of my map overlay. It throws a Resourses$NotFoundException. I've also tried making it a class variable and setting it from the MapView but I get the same result. @Override public boolean onTap(GeoPoint gp, MapView mv) { OverlayItem item =

[android-developers] Classloader for Activities

2010-01-10 Thread Eric Crump
I'm still in the concept stage so I don't need implementation details. My question is whether it is possible is transfer a JAR file over a socket and use a classloader to launch an activity. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Androids on a new Cell Network

2010-01-09 Thread Eric Crump
We need to deploy Androids to remote locations where there is no cell service. What seems to be the only option is to create our own localized cell network (yes, we know that is expensive.) The sole purpose would be to support Android applications. What would be the requirements from a phone per

[android-developers] One service to rule them all

2010-01-09 Thread Eric Crump
I have a need to manage a large number of Androids at one time. I have a large suite of applications that I need to be able to talk to and share data with. All the management needs to take place from a central server. What I would like to do is have a service running on Android that manages my su

[android-developers] Connect via USB and consume web service

2009-12-18 Thread Eric Crump
I need to connect my phone via the USB cable to my development machine and consume a web service that is running there. What do I need to do to get my Android to see the web service? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group.