[android-developers] Re: Best phone for OpenGL game dev

2010-10-18 Thread EboMike
The OS market share list is here: http://developer.android.com/resources/dashboard/platform-versions.html My recommendation: Require Android 2.0 and Open GL ES 2.0, this will allow you to use vertex/fragment shaders. Check for extensions like vertex buffer objects and use them, but don't require

[android-developers] Re: Best phone for OpenGL game dev

2010-10-18 Thread EboMike
Well great, there are two threads now. Here's the other one: http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices On Oct 18, 11:48 am, EboMike ebom...@gmail.com wrote: The OS market share list is here:http://developer.android.com/resources

[android-developers] Re: Best phone for OpenGL game dev

2010-10-18 Thread EboMike
Just look at the links I posted. String extensions = gl.glGetString(GL10.GL_EXTENSIONS); -Mike On Oct 18, 2:07 pm, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:   Somewhat off topic, but is there a means to an extension from java?   How would you get the interface for the function? On

[android-developers] Re: Best phone for OpenGL game dev

2010-10-18 Thread EboMike
you which extensions exist which is pretty 101. I'm talking about extensions that introduce a new function such as the VBO extension would require glBufferData if running on OGL ES 1.0 On 10/18/2010 5:11 PM, EboMike wrote: Just look at the links I posted. String extensions

[android-developers] How do I change the textColorPrimary in a theme?

2010-06-28 Thread EboMike
I'm changing the theme of an activity in onCreate using setTheme (I'm doing that even before calling super.onCreate(), as this is supposed to be more reliable). It does work in the sense that it changes the background and foreground colors. However, my layout has a few elements that use styles

[android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-22 Thread EboMike
of providers. I'll check their policy on this. But since AdSense prohibit that, then I guess it's a bad approach after all. Thank you for your fast reply. =) On Jun 22, 12:12 pm, EboMike ebom...@gmail.com wrote: Who's the provider for your apps? If it's AdSense, then the guidelines clearly

[android-developers] Re: the android calendar api question

2010-06-21 Thread EboMike
Mark, when using the gdata API, you will need to query the user for the username and password of the gmail account to use. Is that correct? Or is there a nifty way to get an authentication token with the account linked to the phone (if there is one?). I haven't found any good samples on the web,

[android-developers] Re: Should I put Please visit our sponsors above my ads ?

2010-06-21 Thread EboMike
Who's the provider for your apps? If it's AdSense, then the guidelines clearly prohibit you from doing that: Misleading to clicks Publishers are not allowed to use language to lead users to click Google ads, such as: * Feel free to click an ad * Contribute to the

[android-developers] Re: Any tools for analyzing API level compatibility in my Android code?

2010-05-13 Thread EboMike
Why don't you simply compile your app against API 4? (It's a setting in the project properties). If you use any methods or classes that don't exist yet, you will get compile errors. Unless you're using reflection or hard-code flags, this should be a good enough test. SHOULD, just off the top of

[android-developers] Re: Does Google supply an interface?

2010-05-13 Thread EboMike
Can you elaborate? You're trying to prevent activity B from being accessed before the password check in activity A has been successful? I assume that activity B is any arbitrary activity? -Mike On May 12, 11:41 pm, gujian outspacem...@gmail.com wrote: Hello,everyone.Recently I'm doing an

[android-developers] Re: FLAG_BLUR_BEHIND extremely slow on Droid?

2010-05-12 Thread EboMike
-develop...@googlegroups.com] On Behalf Of EboMike Sent: Sunday, May 09, 2010 10:10 PM To: Android Developers Subject: [android-developers]FLAG_BLUR_BEHINDextremely slow on Droid? It seems like usingFLAG_BLUR_BEHINDmakes an activity extremely slow - every redraw takes forever, even when just

[android-developers] Re: How to activate Droid received from Google w/ my own number

2010-05-12 Thread EboMike
Haha... I went through the same process, and it took the Verizon guys over an hour to figure it out! They need to give you a phone number for the Verizon employee number services (you need a number based on which part of the US you're in). Basically, the phone number you have is the kind that

[android-developers] accessing sqlite db

2010-05-12 Thread EboMike
Leigh, you can't just hijack an existing discussion thread and post a completely unrelated question. Please open a new thread with your question. On May 12, 11:04 am, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: Hello, I am having a problem with what some of the triangles in my static

[android-developers] Re: Contribute to Android

2010-05-12 Thread EboMike
I'm afraid this is the wrong mailing list. You may want to check out android-platform, that's where all the cool kids are who can help you getting repo and git to work. That said, you may want to re-read the instructions on source.android.com - typically, everything should work once you follow

[android-developers] FLAG_BLUR_BEHIND extremely slow on Droid?

2010-05-09 Thread EboMike
It seems like using FLAG_BLUR_BEHIND makes an activity extremely slow - every redraw takes forever, even when just editing an EditText. It almost sounds like the blur effect is being redone on the entire screen in software (actually, even that couldn't possibly be that slow with a normal blur

[android-developers] Re: Low Memory. No More Background Process

2010-05-07 Thread EboMike
1. That's a somewhat common message, but can you actually correlate it to a problem? The message says background processes, and your app is most likely not a background process. What is the exact problem? 2. Are you dealing with bitmaps at all? 3. Do you only see the problem when debugging, or

[android-developers] Re: Low Memory. No More Background Process

2010-05-07 Thread EboMike
 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: I'm not dealing with any bitmaps... No memory leak in my DB. Just retrieve data from DB and display in custom listview. On Fri, May 7, 2010 at 12:10 PM, EboMike ebom...@gmail.com wrote: 1. That's a somewhat common message, but can you

[android-developers] Re: Low Memory. No More Background Process

2010-05-07 Thread EboMike
/ActivityManager(57): Activity idle timeout for HistoryRecord{43bec310 com.android.launcher/.Launcher} 05-07 12:51:14.962: DEBUG/HomeLoaders(1031):   items cloned, ready to refresh UI On Fri, May 7, 2010 at 12:39 PM, EboMike ebom...@gmail.com wrote: Let me rephrase my questions. 1. What EXACTLY

[android-developers] Re: Confused on android stacking activies

2010-05-07 Thread EboMike
Can you be a bit more descriptive about how you launch application B? You said A. Application A starts a service and launch[e]s another application. But you mean that your application used Activity.startActivity(), so the service has nothing to do with it? In that case, it's expected behavior -

[android-developers] Re: BitmapFactory.decodeStream thread safe ?

2010-05-07 Thread EboMike
Define thread-safe. Are you asking if it's possible to decode two bitmaps at the same time? To decode a stream while something else is using the stream? To do it in a worker thread? My take is that it's re-entrant, i.e. you can run it multiple times at the same time in separate threads, but all

[android-developers] Re: Low Memory. No More Background Process

2010-05-07 Thread EboMike
wondering about all the memory allocations. Do you have several threads running? Without any idea what the code does, I can only stab in the dark. -Mike On May 7, 12:29 am, EboMike ebom...@gmail.com wrote: Judging by the many times the GC kicks in, it sounds like something is constantly

[android-developers] Random complete loss of database on Droid only

2010-04-22 Thread EboMike
Several Droid users have reported that my app's entire database just destroys itself randomly after a few days or so. This seems to be specific to the Droid. I'm at a loss. My app has a service that runs in the background to display notifications, it also supports widgets. Both of those (and the

[android-developers] Re: Test for Android SDK version? Switch code for 1.5 cupcake or 1.6 donut

2009-10-15 Thread EboMike
You can find that out with android.os.Build.VERSION, but depending on what you want to do, that sounds like a hacky way to check for availability of functions. If you're looking for the existence of a certain function, you could check that through reflection instead. On Oct 15, 5:11 pm, Brady

[android-developers] Re: How to install android market?

2009-10-14 Thread EboMike
...@gmail.com: Mike,thank you very much! If we want to install Android Market on our product(mobile phone) , must We contact Google? On 10月14日, 上午9时01分, EboMike ebom...@gmail.com wrote: luggie, it's closed source. It's not freely available. If you have a phone that came

[android-developers] Re: How to disable the soft keyboard for the EditText control in sdk1.1

2009-10-14 Thread EboMike
See this very recent thread about using functions of a newer SDK while maintaining compatibility with an older one: http://groups.google.com/group/android-developers/browse_frm/thread/a2a91988e2353dd1# On Oct 14, 6:54 pm, xingye yeas...@gmail.com wrote: I'm using sdk1.1, there is no

[android-developers] Re: How to install android market?

2009-10-13 Thread EboMike
It's a closed-source application and not freely distributed. You may not install it on an emulator. (That's actually good, the potential for abuse is quite high.) On Oct 13, 6:00 am, luggie lug...@gmail.com wrote: in emulator On 10月13日, 下午8时40分, luggie lug...@gmail.com wrote:

[android-developers] Re: How to install android market?

2009-10-13 Thread EboMike
, luggie lug...@gmail.com wrote: I want to install Android Market in my mobile device(android),how can I do? thanks! On 10月14日, 上午7时00分, EboMike ebom...@gmail.com wrote: It's a closed-source application and not freely distributed. You may not install it on an emulator. (That's actually good

[android-developers] Re: Alarm is canceled if app is stopped

2009-10-13 Thread EboMike
Task killers aside, what about if the OS decides to stop a process because memory is low? Say an app has an alarm set to happen in 2 hours, and the user decides to run Google Maps for a minute. Android might kill said app because memory runs low. Ten minutes later, the user is back on the home

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-09 Thread EboMike
want to support 1.5 SDK and also being able to use the new SmsManager class. I think the only way to do that is using the solution suggested by EboMike (with reflection), but I think is more a patch than the correct way around.  Other solution could be to compile the code to the desire target

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread EboMike
There's also a great article on the developer blog about using newer API with an old target: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html I'm extensively using 1.5 features in my app while still maintaing compatibility with 1.1. The key is to set the

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread EboMike
. On Wed, Oct 7, 2009 at 11:36 PM, EboMike ebom...@gmail.com wrote: There's also a great article on the developer blog about using newer API with an old target: http://android-developers.blogspot.com/2009/04/backward-compatibility... I'm extensively using 1.5 features in my app while still

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread EboMike
Well, there are subtle differences that can break an app that don't expect them. Like this: http://groups.google.com/group/android-developers/browse_thread/thread/3f97829b6260ead3 On Oct 6, 7:57 pm, niko20 nikolatesl...@yahoo.com wrote: What API's are you guys using that just going from 1.5 to

[android-developers] Re: mount other usb devices to android gphone

2009-10-06 Thread EboMike
You can star this issue: http://code.google.com/p/android/issues/detail?id=738 But, whatever you do, PLEASE do not add a comment with something to the effect of yeah, I agree. You will spam 233 people with a useless mail. On Oct 5, 6:09 pm, jonathan topcod...@gmail.com wrote: is it possible

[android-developers] Re: DATE_FORMAT (System.Settings) returns null since 1.6 (Donut)

2009-10-01 Thread EboMike
, Max_well maxouw...@gmail.com wrote: I think (hope) it's an emulator bug. I filled a bug btw :http://code.google.com/p/android/issues/detail?id=3973 Simon On Oct 1, 7:44 am, EboMike ebom...@gmail.com wrote: Settings.System.getString(resolver, Settings.System.DATE_FORMAT) returns null

[android-developers] DATE_FORMAT (System.Settings) returns null since 1.6 (Donut)

2009-09-30 Thread EboMike
Settings.System.getString(resolver, Settings.System.DATE_FORMAT) returns null if the user never made a selection. If the user does choose a date format and then switches back to default format, getString() will return . That was not the case before (and is breaking apps that relied on a valid

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-19 Thread EboMike
That is a very bad way of doing it. What if the user presses the HOME button? What if the user goes to a different activity using the notification bar? The camera button? What if it's a device that allows switching activities using a custom button? Relying on a button press to detect the

[android-developers] Re: Have GET_INTENT_FILTERS been supported?

2009-09-06 Thread EboMike
an intent filter if applicable? What else is expected to honor the flag? -Mike On Sep 5, 8:58 am, Dianne Hackborn hack...@android.com wrote: On Fri, Sep 4, 2009 at 11:15 PM, EboMike ebom...@gmail.com wrote: However, if you want to voice your opinion and want to tell the Android developers

[android-developers] Re: Have GET_INTENT_FILTERS been supported?

2009-09-05 Thread EboMike
on the star will increase the star count and make the issue more important.) -Mike On Sep 4, 9:22 am, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Hi EdoMike, I'm sorry to bother you. And Thank you for your kindness! -- Keiji Ariyama EboMike wrote: There is a very recent thread right

[android-developers] Re: Have GET_INTENT_FILTERS been supported?

2009-09-04 Thread EboMike
There is a very recent thread right here where this is being discussed. The last post was a few days ago. http://groups.google.com/group/android-developers/browse_frm/thread/c72762894a5663b3 In short: It's not supposed yet, and it is not an immediate priority. -Mike On Sep 3, 9:31 am, Keiji

[android-developers] Re: A way to get all apps and their activities?

2009-08-14 Thread EboMike
(pi.packageName, activityInfo.name); ) and then call queryIntentActivities() on that, but none of that gives me the actual intent filter information. -Mike On Jul 31, 9:31 am, Marco Nelissen marc...@android.com wrote: The package manager has APIs to do this. On Fri, Jul 31, 2009 at 8:52 AM, EboMike ebom

[android-developers] Re: Application doesnot quit on calling finish()

2009-06-01 Thread EboMike
It's easy to leave memory leaks, especially when static variables are involved, and especially-especially when dealing with UI-related things (where a bitmap could hold a reference to its view and vice versa). Romain wrote an article about that a while ago. That said, I'm not tempted to actually

[android-developers] Parsing Dates in other Locales

2009-05-29 Thread EboMike
I need to parse a date using a flexible date format (like MM/dd/ or dd-MMM), and so far I've always used SimpleDateFormat for that (since unfortunately, android.text.format.Time.parse doesn't support date format strings). This works fine in an US environment, but as soon as I switch to any

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread EboMike
There are several discussions about PendingIntents in this group, they're a bit confusing at first because the system identifies them only by action and data, not extras, so multiple PendingIntents with the same action and data are considered the same. You need to make them unique, either by

[android-developers] Re: Why can't I see this on my G1?

2009-05-22 Thread EboMike
I suppose the developer chose to enable copy protection for it. That means that rooted phones cannot download it. On May 22, 11:00 am, Bill Zimmerly billzimme...@gmail.com wrote: I have the developer's G1 with Cupcake 1.5 and am trying to download this application...

[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-21 Thread EboMike
He said FINAL sdk, and no, the FINAL 1.5 has not been released yet. You will find several threads in this group that hint at issues that are or are not fixed in the final 1.5 SDK. On May 21, 6:43 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: Is this a joke that you don't know Android

[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-21 Thread EboMike
say final?  1.5 is already shipping on devices, so for most purposes things are pretty set in stone. On Thu, May 21, 2009 at 7:14 PM, EboMike ebom...@gmail.com wrote: He said FINAL sdk, and no, the FINAL 1.5 has not been released yet. You will find several threads in this group that hint

[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-21 Thread EboMike
? Is it by design that non-US locales do not have month names when trying to format a date), but I don't know the underlying question of the OP. On May 21, 8:10 pm, EboMike ebom...@gmail.com wrote: Bug-fixes. Example thread (I just searched for final 1.5):http://groups.google.com/group/android

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-21 Thread EboMike
You can always restart your activity, which is pretty much instantaneous. There is no other way, this requirement to re-inflate the layout for a change is rooted too deeply in how Android works. On May 21, 8:33 pm, quanghuytruongd...@gmail.com quanghuytruongd...@gmail.com wrote: Thanks Dianna

[android-developers] Re: Avoid phone locking

2009-05-21 Thread EboMike
Make sure your app has the WAKE_LOCK permission, and use PowerManager.WakeLock to keep the device powered up. You'll find details in the docs. On May 21, 10:21 pm, iDeveloper ideveloper...@gmail.com wrote: Hi I have a slideshow function in my app and if the number of images is   more, the

[android-developers] Querying ContactMethods gets me an email address for the wrong user

2009-05-13 Thread EboMike
Some users are reporting that I'm using the wrong email address when sending a mail to a contact from my app. I can't repro that locally, so I'm at a loss at how that could happen. Here is roughly what I do: Uri uri = ContentUris.withAppendedId(Contacts.People.CONTENT_URI, contactId); // Note:

[android-developers] Localizing the assets folder

2009-05-10 Thread EboMike
The instructions for my app are in HTML format in my assets so I can display them with proper formatting and hyperlinks in a WebView. Given that they're in the assets folder, not res, I can't properly localize them (i.e. something like assets-de wouldn't work). What's the proper way to localize

[android-developers] Re: Does SimpleDateFormat no longer throw a ParseException?

2009-05-08 Thread EboMike
with a changelog that I haven't seen. -Mike On May 6, 8:18 am, EboMike ebom...@gmail.com wrote: In an 1.5 environment, it seems likeSimpleDateFormat.parse() no longer throws an exception if it can't parse the string - it simply returns null. Did that change

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-08 Thread EboMike
Well, the docs make it very clear that your key is extremely important. If your laptop was stolen? Well, then your source code would be gone as well, unless you backed that up. And why would you back up your source code but not your key? You can ask a question on the Android Market forum, but I

[android-developers] Does SimpleDateFormat no longer throw a ParseException?

2009-05-06 Thread EboMike
In an 1.5 environment, it seems like SimpleDateFormat.parse() no longer throws an exception if it can't parse the string - it simply returns null. Did that change? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Android 1.5 Early look problems

2009-05-02 Thread EboMike
Jeff, is there a list of classes that are prohibited? Looks like TableLayout is also on the no-fly list. On Apr 17, 1:17 pm, Jeff Sharkey jshar...@android.com wrote: Yes, that's working as intended. There are unsolved issues with how to get EditText content back across PendingIntent

[android-developers] When is a good time to require 1.5?

2009-04-30 Thread EboMike
I'd like to add widget support to my app, but I suppose that it'll take quite a while until 1.5 is globally rolled out. I assume that widget support means that I need to compile against 1.5 and set up the minSdkVersion to 3, so I'll effectively lock out anybody with 1.1. Other than adding a

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread EboMike
). On Apr 30, 8:00 pm, EboMike ebom...@gmail.com wrote: I'd like to add widget support to my app, but I suppose that it'll take quite a while until 1.5 is globally rolled out. I assume that widget support means that I need to compile against 1.5 and set up the minSdkVersion to 3, so I'll

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread EboMike
such as a compatibility matrix. Of course you need to steer your users over to the site somehow. Happens I've set that all up (except for an 1.5-based release, has been broken by 1.5) and included a More button in the About dialog. On Apr 30, 8:54 pm, EboMike ebom...@gmail.com wrote: Yeah, I did

[android-developers] Clear All Notifications called implicitly?

2009-03-27 Thread EboMike
My app has a notification that is supposed to silence itself for a day if you click on Clear All Notifications. Every day, I see a notification pop up as expected, but after I turn my phone off for a while and then on again, the notification is done. When I check my data, I see that the silence

[android-developers] Managed filer query creates 'attempt to acquire a reference on a close SQLiteClosable'

2009-03-24 Thread EboMike
I'm creating a managedQuery in the FilterQueryProvider.runQuery() of a ResourceCursorAdapter. That works fine, but if I set up a filter, then go to a different app, then go back to the app with the filter, the app crashes with 'attempt to acquire a reference on a close SQLiteClosable' in the

[android-developers] Re: Hidden Contacts

2009-03-19 Thread EboMike
I have the same problem, but I need a better solution. I'm doing a managed query on the contacts and am already filtering out entries that do not have a DISPLAY_NAME, but I still get all the suggested contacts. I need to deal with contacts that have a name but no phone number or email address. I

[android-developers] Re: Hidden Contacts

2009-03-19 Thread EboMike
/ + Contacts.Groups.GROUP_MY_CONTACTS + /members); Works like a charm for me. I can imagine that at least part of this URL is contained in the Contacts.Groups.CONTENT_* strings, so it would be cleaner to use those. -Mike On Mar 18, 11:39 pm, EboMike ebom...@gmail.com wrote: I have the same problem

[android-developers] Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread EboMike
I'm currently hosting an app on my own server so my beta testers can test it. I've set up the apk MIME type to be application/ vnd.android.package-archive, and when I try to download the app from the emulator, it downloads the 53KB apk file and installs it. When I try to do the same thing from a

[android-developers] Re: Hosting APKs files on site works for emulator, but not device?

2009-03-17 Thread EboMike
).     Al.     EboMike wrote: I'm currently hosting an app on my own server so     my beta testers can test it. I'...     --     * Written an Android App? - List it athttp://andappstore.com/*     ==     Funky Android Limited is registered in England Wales with the     company

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-31 Thread EboMike
an OutOfMemoryError Some guys claim that this crash can be avoided by catching this error (catching an error instead of an exception is quite unusual by the way)... On Jan 18, 12:31 am, EboMike ebom...@gmail.com wrote: Hey gym, 1) You don't have to go that far. No need to close or reset

[android-developers] Re: exit button - or not?

2009-01-27 Thread EboMike
The Task Manager for Root Users app works just fine for the purpose, no point for every single application to implement its own custom exit functionality. That said, a task manager is somewhat of a necessity to get rid of rogue apps that feel like onPause() doesn't apply to them and have some

[android-developers] Re: exit button - or not?

2009-01-27 Thread EboMike
at 8:51 PM, EboMike ebom...@gmail.com wrote: The Task Manager for Root Users app works just fine for the purpose, no point for every single application to implement its own custom exit functionality. That said, a task manager is somewhat of a necessity to get rid of rogue apps that feel

[android-developers] Re: Instead of waiting.

2009-01-27 Thread EboMike
I shouldn't really feed the trolls, but that post has me intrigued. What is that game Google and T-Mobile are playing? First of all, T- Mobile? What do they have to do with anything? And what's said game? On Jan 27, 9:17 pm, Alexey avolo...@gmail.com wrote: So you'd rather delayed the release

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-17 Thread EboMike
the following discrepancies compared to the descriptions here, using a similar, simple application which uses Gallery, and BitmapFactory: 1) EboMike, How exactly do I run the application without a debugger attached?  I assume that closing Eclipse entirely, and launching a new emulator from a DOS prompt

[android-developers] Proper Intent for an image/jpeg picture when using addIntentOptions?

2009-01-10 Thread EboMike
My app deals with tons of pictures that are on an arbitrary location of the device (typically somewhere on /sdcard, presumed private to the app). The gallery has a context menu that calls addIntentOptions on them so you can send them via MMS, use them as contact pictures, etc. How do I need to

[android-developers] Re: Common code with Eclipse

2009-01-10 Thread EboMike
I've been able to get external JARs for common code (which uses the android.jar) to work. I'm using a pretty clumsy way and I'm sure there's a more elegant solution out there, but it works for me. Since it's been a while since I set it up, I might not remember the exact steps. Basically, I

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-09 Thread EboMike
it will be resolved at some point in the future. On Jan 9, 12:54 pm, fadden fad...@android.com wrote: On Jan 8, 8:06 am, EboMike ebom...@gmail.com wrote: For a simple demonstration of how BitmapFactory leaks, try this: In the debugger, add an exception break on caught/uncaught instances

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-08 Thread EboMike
to deal with, at the same time this is effectively preventing me from debugging some of my apps for a prolonged period. -Mike On Jan 6, 2:18 pm, fadden fad...@android.com wrote: On Jan 5, 1:59 pm, EboMike ebom...@gmail.com wrote: This problem seems to be particularly prevalent with exceptions

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-05 Thread EboMike
. Without a debugger attached, the memory usage is stable. On Jan 5, 1:51 pm, fadden fad...@android.com wrote: On Jan 3, 12:18 am, EboMike ebom...@gmail.com wrote: I take that back... I looked a lot more into the issue, and it seems that the leak only occurs when a debugger is attached

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-03 Thread EboMike
. -Mike On Dec 31 2008, 10:39 am, EboMike ebom...@gmail.com wrote: There is clearly something wrong. I've tried to plug a leak in BitmapFactory.decodeStream() (which is called internally by BitmapFactory.decodeFile() ), and that indeed fixed a memory leak whenever you create a bitmap (seehttp

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-31 Thread EboMike
reaches a total allocated size of 16 MB and your app needs more memory, you get an OutOfMemoryError. On Wed, Dec 3, 2008 at 11:30 PM, EboMike ebom...@gmail.com wrote: Thanks, Romain. I'm grabbing them from a server, but you're right, if anything, I should convert and re-save them

[android-developers] Re: Allocation too large for this process

2008-12-12 Thread EboMike
necessary cleanup and double check anything you might be doing with static members. Cheers, Justin Android Team @ Google On Dec 11, 3:03 pm, EboMike ebom...@gmail.com wrote: I tried using BitmapFactory.Options when calling BitmapFactory.decodePath() on Romain's recommendation to resize

[android-developers] Re: Allocation too large for this process

2008-12-11 Thread EboMike
I tried using BitmapFactory.Options when calling BitmapFactory.decodePath() on Romain's recommendation to resize the 1024x768 JPG files down to 480x320 before displaying them in a Gallery, but that didn't help at all - if anything, it made things worse. The app still runs out after viewing just a

[android-developers] Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
I've already asked this in a href=http://groups.google.com/group/ android-developers/msg/9cdbf47be2505810?hl=enThis thread/a: Here is a pretty simple Gallery setup. It seems to leak with every image that's loaded (see the original thread for details). I'm tempted to file it as a bug, but I want

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
] wrote: If the convertView is always null and all the views you create are kept in the Gallery's recycler, there's definitely a bug. I would like to know however what is the size (in pixels) of the images you load in the Gallery. On Wed, Dec 3, 2008 at 10:45 PM, EboMike [EMAIL PROTECTED] wrote

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
PROTECTED] wrote: I just checked and the bug is simply that Gallery does not convert the views. I'll try to fix it as soon as possible. On Wed, Dec 3, 2008 at 10:45 PM, EboMike [EMAIL PROTECTED] wrote: I've already asked this in a href=http://groups.google.com/group/ android-developers/msg

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
in that case. Gallery, like ListView, GridView, etc. uses a recycling heap. Every time a view is unused, it is moved to the recycler. Unfortunately, if it's never taken out of the recycler... On Wed, Dec 3, 2008 at 11:07 PM, EboMike [EMAIL PROTECTED] wrote: Thanks a lot, Romain! Question

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2008-12-03 Thread EboMike
BitmapFactory.Options or Bitmap.createScaledBitmap to load your image pre-scaled to a much more reasonable size. On Wed, Dec 3, 2008 at 11:23 PM, EboMike [EMAIL PROTECTED] wrote: Thanks a lot for the very quick replies. One last thing: Do you happen to have any remote idea about when the next SDK

[android-developers] Re: Allocation too large for this process

2008-11-29 Thread EboMike
().freeMemory() returns ~760KB. -Mike On Nov 16, 12:34 pm, EboMike [EMAIL PROTECTED] wrote: I'm reading JPGs off the storage device, and they are typically 1024x768 since they came straight from a server. The VM typically errors out allocating ~1MB of memory. (One time, it errored allocating 30KB

[android-developers] Re: Allocation too large for this process

2008-11-16 Thread EboMike
is in internal flash, or ImageSwitcher.setImageURI(new ContentURI(/sdcard/mypath/ myimage.jpg)) when loading from SD card. Just my two cent guess. Regards On Nov 15, 7:57 am, EboMike [EMAIL PROTECTED] wrote: Hey blind, you're right, I'm using Drawables -- BitmapDrawables, to be precise

[android-developers] Re: Allocation too large for this process

2008-11-16 Thread EboMike
. If you're currently at 3/4 MB, then everything's fine :)) On Sun, Nov 16, 2008 at 11:00 AM, EboMike [EMAIL PROTECTED] wrote: Thanks for your answer, Romain! How much of those 16MB are accessible to the app? When I look at the Heap view in the DDMS, I only see one heap with a total size

[android-developers] Re: Allocation too large for this process

2008-11-16 Thread EboMike
of the Bitmap you are trying to create? On Sun, Nov 16, 2008 at 11:33 AM, EboMike [EMAIL PROTECTED] wrote: Um, yes... except that I'm randomly getting OutOfMemoryExceptions when I create a new bitmap :) On Nov 16, 11:13 am, Romain Guy [EMAIL PROTECTED] wrote: 16 MB is the maximum limit

[android-developers] Re: Allocation too large for this process

2008-11-14 Thread EboMike
while releasing the ones that you do not need at any given moment. Finally, calling System.gc() when loading a new image does no harm and might help the garbage collector to stay further away from the heap limits. On Nov 13, 6:10 am, EboMike [EMAIL PROTECTED] wrote: I'm getting this error too

[android-developers] Sending and receiving files via FTP

2008-11-02 Thread EboMike
It's been six months since the last activity on any group regarding FTP, but there is still no post that explains how to solve the problem with the java.io.IOException stating Unable to connect to server: {0} whenever trying to connect to an FtpURLConnection. (The FTP use from Android thread goes