[android-developers] Re: ExpandableListView with certain top-level elements expandable and others selectable

2010-06-23 Thread patbenatar
class is using com.android.internal.util.ArrayUtils which I don't believe is open to developers—anyone know how to use ArrayUtils? Thanks, Nick On Jun 21, 1:44 pm, TreKing wrote: > On Mon, Jun 14, 2010 at 6:15 PM, patbenatar wrote: > > Is this possible with an ExpandableLi

[android-developers] ExpandableListView with certain top-level elements expandable and others selectable

2010-06-14 Thread patbenatar
Hey all- I would like to have a ListView where certain elements are expanding elements so when selected they will reveal more sub-items (just like an ExpandableListView) and other elements that are only single-level so selecting one of them would act as a regular ListView. Is this possible with an

[android-developers] Any standard "Available on Android Market" graphic?

2010-06-13 Thread patbenatar
Hey guys- I'm wondering if there is any sort of standard "Available on Market" graphic, similar to Apple's "Available on the App Store" graphic.. Or does every dev just make their own? Thanks! Nick -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: Creating Menu Problem

2010-05-09 Thread patbenatar
On Thu, May 6, 2010 at 9:16 PM, ChunKuen Lee wrote: > Any IDEA? help me~ Plz. LOL What's so funny? This may be what you're looking for... http://developer.android.com/reference/android/widget/ExpandableListView.html -- You received this message because you are subscribed to the Google Groups "

[android-developers] Re: Extracting colors from Themes?

2010-04-29 Thread patbenatar
ll see an orange > background behind a selected list item, on an HTC sense device it would be > green instead. > > Also as themes look so central to me, I was kind of hoping that I just > missed the relevant documentation and that somebody else would point me to > RTFM ;-) > >

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-27 Thread patbenatar
s just want to navigate to the activity in the > > bottom of the stack, i.e, the first view the see, the main view I > > assume. They are not intent to leave my application. > > > That's why they ask for a confirmation when they leave by back button. > > > On Ap

[android-developers] Re: Error getting GPS location on Droid + android 2.0 sdk

2010-04-27 Thread patbenatar
Please post the code in your Activity in which you register this listener with the system. The above code appears to be correct. -Nick On Apr 27, 6:32 am, mudit wrote: > Hi all > > I am trying develop an application which shows user current location. > To find user's current location i am usi

[android-developers] Re: Extracting colors from Themes?

2010-04-27 Thread patbenatar
Do you need to be doing this programatically? You could always take a screenshot of your phone [either using DDMS on a non-rooted device or the PicMe app on a rooted device] and then grab the colors using Photoshop or any image editing software. Another option, again not programmatic, would be to d

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-27 Thread patbenatar
Wait I'm a bit confused... If the user wants to hit the back button to go back to the previous Activity, I'm assuming you're talking about a previous Activity within your app? This functionality is native to Android and should be maintained throughout your app. If you start an activity for result a

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-27 Thread patbenatar
You can override onBackPressed in your Activity. This is called when the user presses the back button, before your Activity is finished by the system. You could pop a dialog asking the user to confirm this action, if they hit yes you call through to the super and the Activity gets finished, if they

[android-developers] Re: Aren't focus states supposed to bubble to child Views?

2010-04-25 Thread patbenatar
Anyone willing to explain how bubbling of focus states works? Basically, how to get a child View to be focused when its parent is focused. Thanks, Nick On Apr 19, 1:31 am, patbenatar wrote: > Hey all- > > When using a View within a View, for example an ImageView within a > Linear

[android-developers] Re: 14-year-old Android Developer:

2010-04-22 Thread patbenatar
On Apr 22, 10:22 am, chris harper wrote: > That kid will probably know more about software engineering by the time he > is done with High School than I did when I graduated collage. It's nice how technology has this ability to motivate and inspire kids to achieve success--let's hope this new indu

[android-developers] Re: 14-year-old Android Developer:

2010-04-22 Thread patbenatar
Congrats to your student! And good idea on your part, Josh, it's nice to see kids being taught something relevant in this field--rather than what I remember from school: car = new Car("blue"); haha... On Apr 21, 5:26 pm, joshbeck wrote: > Hello, > > I'm writing a curriculum this year that is de

[android-developers] Re: Load CSS Styles in a Textview

2010-04-22 Thread patbenatar
pr 22, 12:18 am, patbenatar wrote: > To answer your question, nope. Html.fromHtml() is exactly that: HTML. > Some sort of HtmlAndCss.fromMarkup() or something would be really > useful for lazy UI designers but you need to keep in mind that using > things like HTML and CSS in a applicat

[android-developers] Re: How many Android phones have touchscreens?

2010-04-22 Thread patbenatar
Well said. I tried navigating the Maps app without touch and its useless. Panning the map is nice and all, but without touch I wasn't able to select a pin. I think if the official Google Maps app doesn't currently support it, there's no reason for us third-party devs to be going out of our way to

[android-developers] Re: Load CSS Styles in a Textview

2010-04-22 Thread patbenatar
To answer your question, nope. Html.fromHtml() is exactly that: HTML. Some sort of HtmlAndCss.fromMarkup() or something would be really useful for lazy UI designers but you need to keep in mind that using things like HTML and CSS in a application built for a certain set of devices running a certain

[android-developers] Re: Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

2010-04-21 Thread patbenatar
"but in all of the examples I've seen for android all of the methods and classes are all in one big java file" Uhh On what sites did you find these examples? On Apr 20, 2:53 pm, "~ TreKing" wrote: > On Tue, Apr 20, 2010 at 4:41 PM, Binxalot wrote: > > Is it possible to put my cl

[android-developers] Re: adding style dinamically to a TextView

2010-04-20 Thread patbenatar
This might help you: http://groups.google.com/group/android-developers/browse_thread/thread/a9ec3cbfe5bf7c27/7d92c1b26d9d5511 So because you say "format [padding]" I assume padding is the only type of formatting you are doing here? If so, why do you need a style? You can mess with the padding val

[android-developers] Re: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread patbenatar
Thanks for all the input guys-- Mark, it is indeed very strange that my Activity's onCreate is not being called here. And the reason I have chosen not to use a database or flat file is because the lifetime of this data is a maximum of 20 minutes before my app rules it outdated and fetches new data

[android-developers] Re: Defining an XML vertical line drawable

2010-04-20 Thread patbenatar
Yea my idea is largely a hack... Always better to confirm no standard method exists before pursuing hacks :) On Apr 20, 8:49 am, Caspa wrote: > Thanks for the suggestion patbenatar! > > I'm aware I could go for a 1px png drawable or draw the vertical line > as a View etc.

[android-developers] Re: REG: CSS style sheets

2010-04-20 Thread patbenatar
The above idea to use a WebView would work and be quite a quick and easy solution for styling your application. Unfortunately, your application will look like a webpage and not a native Android app. To style natively, you cannot use CSS but rather must use Android styles and themes: http://develope

[android-developers] Re: "Swipe" to next screen

2010-04-20 Thread patbenatar
I would assume this is done by having the Views you'd like the user to be able to switch between with a fling of the finger all contained within one Activity and in that Activity you can listen for MotionEvents on the currently displaying View. When you detect the event you're looking for (a swipe,

[android-developers] Re: Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-20 Thread patbenatar
ance from your activities? > not getApplicationContext() I hope... > > Have you examined the state from the debugger? There may be something > you're missing about the state of things. > > On Apr 19, 11:41 pm, patbenatar wrote: > > > > > > > Hey all- > &g

[android-developers] Re: Highlight part of the text in a textview object

2010-04-19 Thread patbenatar
You could TRY your red highlighted text On Apr 19, 12:43 pm, sebastian23 wrote: > the problem is that your solution is only for the font color, but i want to > set the font background :( > > -- > You received this message because you are subscribed to the Google > Groups "Android Developer

[android-developers] Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null

2010-04-19 Thread patbenatar
Hey all- I am using an Application object to store app-wide instance data--data that I need to remain in existence for the entire lifetime of the app, so the Application class seems like the proper place to put it. I have just finished reading this thread http://groups.google.com/group/android-dev

[android-developers] Re: notification

2010-04-19 Thread patbenatar
http://developer.android.com/reference/android/app/AlarmManager.html On Apr 19, 8:22 pm, ranjit R wrote: > h  i want to create notification based on date (i.e) notification > should  occur only on particular date. > example: birthday notification on mobile .it notifies the only on > partic

[android-developers] Re: Quick & Easy Question

2010-04-19 Thread patbenatar
Please define "link"... Are you referring to a clickable View with a click listener within your Android application? Or a link on a Website in Browser? If you're talking about a link in your application, AFAIK there is no plug-n-play audio player widget, but there is the MediaPlayer class that wil

[android-developers] Re: requestLocationUpdates() Parameters question

2010-04-19 Thread patbenatar
Oh, also... Why not just try your above code and see if it works? I think it will.. But I bet Android has some default minimum interval or something cause as said in my above post, getting updates every instant is quite pointless. On Apr 19, 10:19 pm, Nithin wrote: > Hi, > > In requestLocation

[android-developers] Re: requestLocationUpdates() Parameters question

2010-04-19 Thread patbenatar
Why would you need updates every instant? It's impossible for the user to move much more than a millimeter in that amount of time... Just use a realistic amount of time for your app, or use a distance if that makes more sense for your application. I'd recommend using a distance of like 1 meter if y

[android-developers] Re: Defining an XML vertical line drawable

2010-04-19 Thread patbenatar
You could use a 1x1 Nine-Patch PNG On Apr 18, 1:08 pm, Caspa wrote: > Hello, > > I'm trying to figure out how to define a verical line (1px thick) to > be used as a drawable. > > to make a horizontal one, it's pretty straightforward: > > http://schemas.android.com/apk/res/android"; > andro

[android-developers] Re: OutOfMemory problem

2010-04-19 Thread patbenatar
You say your error doesn't happen as often if you are plugged into your computer? Is that what you mean by VM? If so, that's likely because you're developing your code at the time and every time you run it on the device it kills and restarts your process.. leaving little time for memory leaks to le

[android-developers] Re: How to get wifi account and password in code?

2010-04-19 Thread patbenatar
I highly doubt this is possible--seems like a huge security hole to me. And I don't believe the Android system has anything in place to allow you indirect access to its saved passwords (like the OS X Keychain). What would you need this info for anyway? If wifi is on, the wifi password is saved on t

[android-developers] ImageView animation: rotate a certain amount of degrees at some set interval

2010-04-19 Thread patbenatar
Hey all- First off, I'm aware a simple hack to achieve this would be to run a Thread with a sleep for however many milliseconds I want my interval to be and rotate it a certain amount of degrees every time the Thread is run... I'm looking for a built-in way to achieve this animation effect, howeve

[android-developers] Aren't focus states supposed to bubble to child Views?

2010-04-19 Thread patbenatar
Hey all- When using a View within a View, for example an ImageView within a LinearLayout, both of which have xml drawable resources (the LinearLayout as a background) specifying PNG drawables to use for the on/off states, shouldn't children Views receive the focus state when their parent gets focu

[android-developers] Re: Avoid restarting http request on orientation change

2010-04-19 Thread patbenatar
Michael- An interesting approach indeed. Sounds a little hacky, though... Especially if the docs vaguely advise against it as you mention. A clever hack, though :) -Nick On Apr 17, 11:25 pm, Michael Elsdörfer wrote: > Depending on your specific needs, a service might make sense, but for > sim

[android-developers] Re: What's wrong with this location code?

2010-04-19 Thread patbenatar
Mike- Hahah--Word. I very much respect your position, although I do have to agree with John here... And as far as other possible location providers popping up anytime in the near future, new versions of the OS will have to accompany them, along with new versions of the SDK, which would prompt me,

[android-developers] Re: Highlight part of the text in a textview object

2010-04-17 Thread patbenatar
Sorry, bolding and italicizing is the extent of my text formatting knowledge with Android. Anyone else know more about this? On Apr 17, 5:33 am, Sebastian Müller wrote: > Thanks a lot for your answer. This works great for the Bold thing, but > background isnt changing...do you know why?? >

[android-developers] Re: install .apk file OTA

2010-04-17 Thread patbenatar
wrote: > Thanks patbenatar, > > I am trying it like this. > > On Apr 17, 11:31 am, patbenatar wrote: > > > > > > > Put it up on a webserver then go tohttp://www.yourserver.com/yourpackage.apk > > and the file will be downloaded to your phone--delivering the a

[android-developers] Re: Avoid restarting http request on orientation change

2010-04-17 Thread patbenatar
nsuming operations onPause() because the > > other activity that is trying to show won't show until your onPause() > > is done. > > > I recommend reading the Android activity life cycle docs on the > > android dev docs. > > > Enjoy :) > > > On Apr 17

[android-developers] Re: What's wrong with this location code?

2010-04-17 Thread patbenatar
> Perhaps you are forgetting about the chain and theodolite provider. Mike- What are those? The LocationManager class only has these two provider constants: GPS_PROVIDER, NETWORK_PROVIDER. Thanks! Nick On Apr 17, 2:57 am, Michael Thomas wrote: > patbenatar wrote: > > You re

[android-developers] Re: Creating A Bunch of Textviews Programmatically

2010-04-17 Thread patbenatar
Matthew- For learning to custom style your ListView, look into Android UI Styles & Themes [there's a good article over at developer.android.com on this topic]. In a way they're like CSS, allowing you to apply certain style traits to certain elements.. A great resource for learning UI is the open-

[android-developers] Re: switchTimezone

2010-04-17 Thread patbenatar
I can't answer your question as is, but I can say this: the JodaTime library is a far superior API than the standard Java date/time/ calendar classes. -Nick On Apr 15, 11:19 pm, Ajay wrote: > Hi, >    I am using the switchTimezone() method of the Time class. I am not > sure what string should

[android-developers] Re: Listview with button on same activity

2010-04-17 Thread patbenatar
I would recommend looking into the source code for the Clock app in 2.1... In the Activity in which the user sets all the options for an alarm there is code that takes the options preference list and adds a button bar across the bottom. The Android stock apps [Browser, Email, SMS, etc] are all avai

[android-developers] Re: Avoid restarting http request on orientation change

2010-04-17 Thread patbenatar
y bindings are active, and exit early out > of its loop reading the data. You couldn't do any better than this at > stopping the activity even if you were doing it in the Activity > anyway. > > On Apr 16, 9:57 pm, patbenatar wrote: > > > > > > > Hey all-

[android-developers] Re: Flinge and LongPress Drag

2010-04-17 Thread patbenatar
Also I just came across this thread that is similar: http://groups.google.com/group/android-developers/browse_thread/thread/e5ffa5a6e999155f On Apr 17, 12:15 am, patbenatar wrote: > Look into overriding OnTouchEvent, this gives you MUCH more > information on what type of touch event

[android-developers] Re: Location listener called multiple times

2010-04-17 Thread patbenatar
Are you calling removeUpdates(yourLocationListener) on your LocationManager in each Activity's onPause()? You must do this or else you will end up with LocationListeners that never end and even after your app's runtime is over your listeners will eat the user's battery life. http://developer.andro

[android-developers] Re: Highlight part of the text in a textview object

2010-04-17 Thread patbenatar
Here is the more difficult, lower-level way to do this (probably also has more functionality): http://developer.android.com/reference/android/text/Spannable.html Here is the much easier way to do this: http://developer.android.com/reference/android/text/Html.html ... This one is REALLY nice. You

[android-developers] Re: Plz need Help

2010-04-17 Thread patbenatar
Please come up with a more descriptive title next time. -Nick On Apr 16, 1:55 am, Shoby Sunny wrote: > let X and Y be the 2 activities, and X wants to send some txt to Y... > > the snippet of X should be like this: > > Code: > > private void sendTxt() > { > Intent intent = new Intent();//intent

[android-developers] Re: What's wrong with this location code?

2010-04-17 Thread patbenatar
e cell towers are few and far between, GPS is likely accessible [not many tall buildings] so you'll be able to use that accurate fix. -Nick On Apr 16, 11:38 pm, patbenatar wrote: > I have solved this problem [with much thanks to the brains on this > group] by running two LocationL

[android-developers] Re: Flinge and LongPress Drag

2010-04-17 Thread patbenatar
Look into overriding OnTouchEvent, this gives you MUCH more information on what type of touch event it was. -Nick On Apr 16, 7:19 am, androidFan wrote: > Hi Guys, > >  I am stuck with one requirement, i am involved in developing a > display >  application. > >   I need to switch between activi

[android-developers] Re: Question about the Lsit View

2010-04-17 Thread patbenatar
No divs. If you want to use HTML/CSS markup, look into WebView. For building a native Android UI, check out these links: http://developer.android.com/guide/topics/ui/index.html http://developer.android.com/guide/topics/ui/layout-objects.html That DroidDraw tip given by SheikhAman is a great resou

[android-developers] Re: What's wrong with this location code?

2010-04-16 Thread patbenatar
I have solved this problem [with much thanks to the brains on this group] by running two LocationListeners side-by-side, one fine [GPS] and one coarse [Network]. The first provider to get a location update wins and I use that location. This works for me as I don't care about the location being supe

[android-developers] Re: install .apk file OTA

2010-04-16 Thread patbenatar
Put it up on a webserver then go to http://www.yourserver.com/yourpackage.apk and the file will be downloaded to your phone--delivering the apk "OTA".. The Browser will recognize it as an apk file and if the user has Allow Non-Market Apps enabled, the user will be prompted for an install. I've nev

[android-developers] Avoid restarting http request on orientation change

2010-04-16 Thread patbenatar
Hey all- I've run into an interesting little issue.. My loader Activity fetches data from a web API, starting an http request and waiting for the result.. Now what if the user flips their phone mid-http request? The Activity is destroyed and restarted, thus the http request restarts as well. The f

[android-developers] [DUPLICATE]Re: Trying to achieve scale centerCrop with Activity windowBackground drawable

2010-04-10 Thread patbenatar
It seems my first attempt to post this did end up making it through... http://groups.google.com/group/android-developers/browse_thread/thread/59201dd5cddf7e94 On Apr 9, 1:50 am, patbenatar wrote: > Hey all- > > I apologize in advance if the list receives two copies of this... I >

[android-developers] Trying to achieve scale centerCrop with Activity windowBackground drawable

2010-04-09 Thread patbenatar
Hey all- I apologize in advance if the list receives two copies of this... I was having some issues with my Google account for the past few hours and it doesn't appear as if this post made it through. I am trying to display my splash screen image [I use the splash when fetching data from a Web AP

[android-developers] Re: applying themes to views

2010-04-08 Thread patbenatar
Hey there- I'm sorry but I can't design your GUI for you. I can, however, point you in some helpful directions: 1) Try to build your GUI using as many standard UI widgets as you can. Things like ListViews and Buttons are already styled for you. 2) This is a very good documentation of Themes and

[android-developers] Re: Crop and Scale into Square

2010-04-08 Thread patbenatar
On an ImageView, in XML, you can use android:scaleType="centerCrop" to achieve this effect. If you hope to do this programmatically, take a look at the source code for the Music app [all stock app source code is available from Google.. search for "Android source code" or something and you'll find

[android-developers] Scale centerCrop on Activity windowBackground drawable

2010-04-08 Thread patbenatar
Hey all- I'm trying to make my loading screen [for while data is fetched from the Web] display faster by using a background drawable on the Activity instead of a full-screen ImageView. This works as it should, as in the image is displayed right away by the system instead of showing the default the

[android-developers] Re: Header View height in a ListView

2010-04-08 Thread patbenatar
Hmmm You sure you're properly setting the height of the View that you're loading in as a Header View? You're doing this in XML? Have you tested this View outside of a List? I have never had any trouble with shrinking Header Views, although I've never set a height explicitly but rather allowed i

[android-developers] Re: [SOLVED]Re: sending lists from a server to client (android)

2010-04-08 Thread patbenatar
Good tutorial on setting up a RESTful client to receive JSON data from the Web: http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/ On Apr 7, 11:47 pm, Frank Weiss wrote: > "Sterilization" is not really what I had in mind. LOL > > Actually, when you parse

[android-developers] Re: Multiple Listviews in single Activity?

2010-04-08 Thread patbenatar
Really guys? How about we save our energy for answering questions, not bitching back and forth.. and that way we can hopefully improve this 50% unanswered situation. I don't know about you guys, but I read through the entire list of topics every day and if any title sounds like a questi

[android-developers] Re: find that GPS provider has failed to get location in android

2010-04-07 Thread patbenatar
LocationListeners provide some great methods for determining things like this... onProviderDisabled [so you know its completely off] and onStatusChanged [which will return one of three status codes]. Check out the docs, this should be precisely what you need. If GPS is straight off, onProviderDisab

[android-developers] Re: Listview append with new element on RUNTIME

2010-04-07 Thread patbenatar
Yea, learn about the Adapter you are using with your list. You can Adapter.add() items to the adapter and then Adapter.notifyDataSetChanged() On Apr 7, 6:58 am, "Mark Murphy" wrote: > > Hi all ! > > > Guys we need some help with the following task: > > >  My problem, I would like to append newe

[android-developers] Re: connecting to internet via app

2010-04-07 Thread patbenatar
Here's a nifty tutorial on creating a RESTful client on Android. http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/ On Apr 7, 6:40 am, theSmith wrote: > What do you mean enable? If you mean bypass the permission, then no. > But if you application has th

[android-developers] Re: How to parse JSON in Java?

2010-04-07 Thread patbenatar
Look into JSONObject and JSONArray.. Makes it real easy to parse JSON. On Apr 7, 9:12 am, Eddie Ringle wrote: > By the way, that is invalid JSON. > > On Apr 7, 5:05 am, Maxood wrote: > > > > > I have the following JSON text that i need to parse to get pageName, > > pagePic, post_id, etc. What

[android-developers] Re: Flashing the android device

2010-04-07 Thread patbenatar
Anybody know how to flash to a Motorola Droid? I don't have a dev phone, and production models do not come with Fastboot, so this may not be possible...? -Nick On Apr 7, 12:25 am, MobDev wrote: > HTC got a page for developers on which they also have some versions of > the Android OS... On tha

[android-developers] Re: Any way to get some equivalent to the adb log while the device is not plugged into computer?

2010-04-07 Thread patbenatar
Thanks so much guys! Apps like this will come in VERY handy. On Apr 7, 8:16 am, "~ TreKing" wrote: > On Wed, Apr 7, 2010 at 1:29 AM, Kumar Bibek wrote: > > There are some apps which do this. > > aLogCat as well. I'm using this one for offline debugging and it's quite > useful. > >

[android-developers] Re: Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

2010-04-07 Thread patbenatar
> It looks like your application is leaking memory somehow. You can > check out the various articles on the subject available at > android-developers.blogspot.com. > > > > On Tue, Apr 6, 2010 at 9:55 PM, patbenatar wrote: > > Romain- Thanks so much for your respon

[android-developers] Re: Need Help for Storing the Values

2010-04-06 Thread patbenatar
For learning databases, the Notepad tutorial is a great one: http://developer.android.com/intl/fr/resources/tutorials/notepad/index.html .. There's probably also some code in the Samples section... Browse around the Resources tab on the Developer site. Here are the docs for the Application class:

[android-developers] Any way to get some equivalent to the adb log while the device is not plugged into computer?

2010-04-06 Thread patbenatar
Hey all- Does Android keep an internal log that is similar or identical to the log you can view with adb logcat via a Terminal window? It's difficult when my app crashes while I test it out in the field... Any help would be great! I'm hoping Android keeps a log and there's some way I can access i

[android-developers] Re: Multiple Listviews in single Activity?

2010-04-06 Thread patbenatar
Nonsense. This group is very helpful. If you have a uber beginner's question, ask it at Stack Overflow (www.stackoverflow.com), over there Google has an official "android" tag and the general idea is beginner questions go there and more advanced questions go here. Not to say this ListView question

[android-developers] Re: Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

2010-04-06 Thread patbenatar
to 854x854 as the minimum dimension to make it fit perfectly on the Droid's pixel-packed screen... Thanks guys! Nick On Apr 6, 6:19 pm, Romain Guy wrote: > A 1000x1000 32 bits image takes 4 MB in RAM :) > > > > On Tue, Apr 6, 2010 at 6:10 PM, patbenatar wrote: > >

[android-developers] Re: Eclipse setup - how can I run the Email app from the plattform source

2010-04-06 Thread patbenatar
I'm also running into issues of missing dependencies and unresolved resources [R.id and stuff] when trying to build some of the open- source stock Android apps [like Clock and Email]. Help would be great!! Have any of you gotten these apps to build and run on your device? On Apr 5, 1:19 pm, Ralp

[android-developers] Re: UI android question/problem

2010-04-06 Thread patbenatar
    private ArrayList caption; > >                 public CaptionAdapter(Context context, int textViewResourceId, > ArrayList caption) >                 { >                         super(context, textViewResourceId, caption); >                         this.caption = caption; >    

[android-developers] Re: Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

2010-04-06 Thread patbenatar
an hypothesis, Although exactly 450-byte sounds weird :s > > If this is the case, you can either reduce your drawable size or load > it programmatically instead of via XML and then use > BitmapFactory.Options.inSampleSize or inTempStorage > :http://developer.android.com/intl/de

[android-developers] Re: Getting the url of an http response

2010-04-06 Thread patbenatar
Is your "response URL" not the same as your "url" var that you feed to HttpPost()? If I'm getting this right, this means your server is bouncing the request through to another url, your "response URL"? If this is the case, why not just send the extra params that you want as a part of the response c

[android-developers] Re: Trouble getting height of OverlayItem Drawable

2010-04-06 Thread patbenatar
itemizedoverlay so you always know the default marker drawable) and otherwise measure the height of the returned drawable. Nick On Apr 3, 2:51 am, patbenatar wrote: > Hello friends! > > I'm having some trouble getting a hold of the drawable a certain > OverlayItem is using so I can calculate

[android-developers] Re: Need Help for Storing the Values

2010-04-06 Thread patbenatar
There's no need to post the same question twice in the same 3 hour period... On Apr 6, 3:53 pm, patbenatar wrote: > That's a lot of code... no time to read it over now.. but off the top > of my head: look into either using a database, an Application class >

[android-developers] Re: Need Help for Storing the Values

2010-04-06 Thread patbenatar
That's a lot of code... no time to read it over now.. but off the top of my head: look into either using a database, an Application class (that will run the whole time your app is alive), or adding extras to the Intent bundle before starting your subactivity. These are all methods to pass data arou

[android-developers] Re: Lists tutorial

2010-04-05 Thread patbenatar
http://developer.android.com/intl/fr/resources/tutorials/views/hello-listview.html -Nick On Apr 5, 9:25 pm, raqz wrote: > Hi > > Could someone please give me a good link that teaches how to use list > view in android. > Basically I have an array with names of people which I wanna display > on

[android-developers] Re: UI android question/problem

2010-04-05 Thread patbenatar
Dig deeper in the ListView documentation... Look into adding a header view [the method is like ListView.addHeaderView(View) or something.. verify this before using it].. You can use the header view for the + Add A Place link and then the contents of the List will be the Places. Hope this helps! Ni

[android-developers] Re: Google Maps API: How to detect when the user has stopped panning the map

2010-04-05 Thread patbenatar
JP- Thanks for your feedback! It has been very enlightening. Overriding draw() sounds like a great idea that would cover any possible form of interaction with the Map. Just to make sure I'm clear on the basic idea here: you're saying create an additional, empty MapOverlay, and purely using that Ov

[android-developers] Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

2010-04-05 Thread patbenatar
Hey Androiders! I'm running into a strange intermittent issue with my app.. Basically every time the app resumes I check if its internal data [fetched from a Web API] is outdated and if it is I push off to my Splash/Loader activity while I fetch new data. This works great ALMOST all the time... Th

[android-developers] Re: Android Navigation Tutorial

2010-04-05 Thread patbenatar
First off, consider that Google Navigation Beta comes free on all Android phones inside of the Maps app... And it's an exquisite navigation program and is already integrated with the Car Mode app thingie and all. Do you see yours being that much better that user's will see a reason to switch from t

[android-developers] Re: Splash Screen Appears only once

2010-04-05 Thread patbenatar
Would onStart be a better place to do View manipulation than onResume? What is the benefit of onStart over onResume in this context? Thanks, Nick On Apr 5, 12:19 pm, Kumar Bibek wrote: > Yup, onStart is a good option. :) > > Thanks and Regards, > Kumar Bibek > > On Apr 5, 11:56 pm, Yahel wrot

[android-developers] Re: droid

2010-04-05 Thread patbenatar
> didn't bother opening/using it since i was > hoping for a nexus one. Hahahaha you are so spoiled! Want to mail me your Droid? ;-) > it seems that only droids have been sent out > so far.. I think they sent Nexus Ones to Europe and Droids to the States. -- You received this message because yo

[android-developers] Re: call onCreate each time app starts

2010-04-05 Thread patbenatar
onCreate will be called whenever your activity is being run and the system has no currently running instance of your app (say they run your app yesterday and between then and now they run Browser, Gmail, and a couple games--chances are the memory allocated to your app has been freed so the games co

[android-developers] Re: new service: link to android market from device and computer

2010-04-05 Thread patbenatar
nal redirect with something like : > market://search?q=pname:de.pribluda.games.android.colors > (this link will install my game) > > You can also wrap it by URL shortener, and then you will get funny > statistics > > regards, > > On Apr 3, 12:23 am,patbenatar wrote: >

[android-developers] Re: Fastest and most reliable Location provider

2010-04-05 Thread patbenatar
yway, but in > theory it should be possible. > > Handling this case may not be important. A long-delayed GPS fix may be > useless, for example. So as Maps API Guru says, you'll have to decide. > > On Apr 4, 3:00 am, patbenatar wrote: > > > > > Bob- You'r

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-05 Thread patbenatar
on as well...? On Apr 4, 1:06 pm, patbenatar wrote: > Phil- > > Meant to send this directly to you not post on the public group [sorry > about going off-topic on your public discussion]! > > Whoa.. Had no idea about the official 2.1 update. I rooted and > installed CM after the litt

[android-developers] Re: Behavior of "Just In" in Market

2010-04-05 Thread patbenatar
Makes perfect sense. Making it so all updates to apps show up at the top of the list opens up a wide door for fraud--as in people posting updates to their app on a daily basis simply to get it to the top of the list and increase their presence [with or without any notable code changes]. On Apr 4

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-04 Thread patbenatar
hear 2.1 is now officially on the Droid!! Is it the complete Nexus One version? What features does it have/lack? -Nick On Apr 2, 8:20 pm, Phil wrote: > patbenatar, > > Verizon started the rollout of 2.1 to Droid devices earlier this week. > If it has been halted, it's news to

[android-developers] Re: Creating Multiple Instances of a Class

2010-04-04 Thread patbenatar
Excellent idea TreKing! On Apr 3, 12:10 pm, "~ TreKing" wrote: > On Fri, Apr 2, 2010 at 5:58 PM, Matthew Patience < > > matthewj.patie...@gmail.com> wrote: > >  What I want to do is while the user is > > holding down the fire button to have it keep creating instances of the > > Laser class like

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-04 Thread patbenatar
Whoa.. Had no idea about the official 2.1 update. I rooted and installed CM after the little snafoo a few weeks back with Motorola pushing off the update again.. Glad to hear 2.1 is now officially on the Droid!! Is it the complete Nexus One version? What features does it have/lack? -Nick On Apr

[android-developers] Re: Fastest and most reliable Location provider

2010-04-04 Thread patbenatar
ldn't imagine a user running my app in the foreground for a day or so as in your application. Thanks for all the feedback, you guys are great help! -Nick On Apr 3, 5:21 pm, Ning wrote: > On Apr 3, 2:39 am, patbenatar wrote: > > > > > > > Hey all who are interested in

[android-developers] Re: Google Maps API: How to detect when the user has stopped panning the map

2010-04-03 Thread patbenatar
Alright just had a revelation on my drive home from the office... If there is no built-in functionality to handle this, here's what I plan on doing: After a finger up event, start polling the map for it's centerpoint every 50ms or so and store the point in an instance variable. Check the stored ce

[android-developers] Re: Creating Multiple Instances of a Class

2010-04-02 Thread patbenatar
> You don't "destroy an instance of a class" in Java. You let go of all > references to it, and it gets garbage collected. You sound like a beginner, so just to clear this up: letting go of all references means nullifying it. Like: laser1 = null; and if that's your only reference to the resource l

[android-developers] Re: Fastest and most reliable Location provider

2010-04-02 Thread patbenatar
Hey all who are interested in this topic- I have taken John's above advice and modified it into what I believe is a more efficient way to be doing this [although the efficiency of my method is only evident if you're going to to ensure updates from either provider throughout the life of your app].

[android-developers] Trouble getting height of OverlayItem Drawable

2010-04-02 Thread patbenatar
Hello friends! I'm having some trouble getting a hold of the drawable a certain OverlayItem is using so I can calculate the height of it and properly offset the note that shows onTap. Here is my code to try to get that drawable: Drawable marker = item.getMarker(android.R.attr.state_focused); if (

  1   2   >