[android-developers] Are dialogs supposed to be modal?

2011-04-14 Thread Markus Junginger
After years of using dialogs, today I got doubts that they are strictly modal after all. There seems to be a short time span in which it is possible to hit other Views AFTER show() of the dialog is called. Does this work as intended? Any ideas how to make a dialog really modal? Have a look here

Re: [android-developers] ADT 10.0.0 Issues

2011-03-02 Thread Markus Junginger
Thanks for the information, it's nice to see the ongoing effort and the increased development speed in the last months. :) I attached the thread dump, Tor requested. Hope it helps. Markus -- Markus Junginger http://greenrobot.de, http://twitter.com/greenrobot_de Dollinger&

[android-developers] ADT 10.0.0 Issues

2011-03-01 Thread Markus Junginger
Since I updated ADT, I am experiencing CPU load issues. One of the cores goes to 100% when I use the layout editor for a while. I am running Windows 7, and a friend confirmed this issue with Linux. Is there a known workaround? Also, at least when running Windows, the new palette looks shaggy due t

[android-developers] Re: OutOfMemory with 9M free heap because of bitmaps!?

2010-03-04 Thread Markus Junginger
Btw, how do SQLite databases fit in here? Does SQLite run inside an app's process and does it consume memory from the "external allocation" space? Does it have limits in memory allocation or will it just grab any memory it can make use of? (The app I wrote about earlier does not use SQLite, I was

[android-developers] Re: OutOfMemory with 9M free heap because of bitmaps!?

2010-03-03 Thread Markus Junginger
Thanks guys for all of your replies so far! > I'm not entirely comfortable with that generalization.  The HeapWorker > thread wakes up during idle moments and looks for 4K pages with > nothing in them.  When it finds them, the memory is made available to > the system again (madvise() system call).

[android-developers] Re: OutOfMemory with 9M free heap because of bitmaps!?

2010-03-03 Thread Markus Junginger
> catch( Exception e ) > { >   System.gc(); >   bm = BitmapFactory.decodeResource( resources, R.drawable.my_bm ); > > } > > I know it's not the prettiest, but I've never seen the second attempt > (after GC) fail. Interesting. So, what you are saying is that Dalvik's GC does not a good job freeing

[android-developers] Re: OutOfMemory with 9M free heap because of bitmaps!?

2010-03-03 Thread Markus Junginger
On 3 Mrz., 23:01, Streets Of Boston wrote: > Yes, you're right. I hope I am not, let's see... > The OOM exception is thrown if your process' memory would exceed > 16MByte (or 24MByte on some phones). This includes non-JVM memory such > as raw bitmap-data. That's the easy part. > You may have 9MB

[android-developers] OutOfMemory with 9M free heap because of bitmaps!?

2010-03-03 Thread Markus Junginger
Our app has some memory peaks, which let the heap grow to 13M. After the peak, there's 9M of free heap. Everything's fine until Bitmap objects come into play. Despite having 9M of free heap creating Bitmaps, which have only some 100k, now fail with a OutOfMemoryException! My theory: Allocation fai

[android-developers] Proxy support not working in Android 1.6 emulator

2009-09-17 Thread Markus Junginger
After upgrading to SDK 1.6 the emulator seems to be unable the Internet through a proxy (-http-proxy option). The same is working in SDK 1.5R3. Can anyone confirm? Did I miss something? Thanks Markus --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: WebKit capabilities

2009-09-16 Thread Markus Junginger
I am also very interested in some Android specific documentation for Android's WebKit. Just read a post from January that touch events are not supported in JavaScript, which are available on the iPhone. What about, for example, orientation events? Anyway, a clear reference for WebKits' (Chrome's)

[android-developers] Re: Scrollable area like in Robo Defense game(both horizontal and vertical)

2009-08-19 Thread Markus Junginger
On Aug 20, 2:26 am, Dan Sherman wrote: > I would imagine that robo defence is doing custom scrolling within their > application, and not relying on a UI component for that piece. They must use there own custom UI component because it's not supported by Android 1.5. Most games won't scroll any ch

[android-developers] Re: Scrollable area like in Robo Defense game(both horizontal and vertical)

2009-08-19 Thread Markus Junginger
I'm in the same boat and need a custom ScrollView capable of scrolling in both directions. Before I start it on my own, I wanted to check here first. This has probably done before a couple of times and maybe someone does not mind sharing some code? Anyone knows if Donut is going to support scroll

[android-developers] Re: Secure data storage (rooted phones)

2009-07-20 Thread Markus Junginger
Time and resources are limited, of course. :) To further clarify the objective: a single file should be encrypted. The other important point is, that there should be no user interaction like password entry. Given this, I guess a secure solution is impossible on rooted phones in a strict sense (a

[android-developers] Secure data storage (rooted phones)

2009-07-20 Thread Markus Junginger
Hello everyone, Let's say there are hard security requirements that must include the possibility of rooting a phone. So when a phone gets lost, the sensitive data on it should still be as secure as possible even if the phone is rooted. Any hints and ideas on this? The first thought was that one

[android-developers] Re: OutofMemory exception when dealing with large Bitmaps

2009-03-29 Thread Markus Junginger
On Mar 27, 5:10 pm, mark.ka...@gmail.com wrote: >    This is a common problem when using the BimapFactory.decode, there > is a bug or memory leak. We've had lengthy discussions about this in > previous threads. Using smaller bitmaps, using bitmap.recycle(), and > turning down the sample size can m

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Markus Junginger
I strongly agree with the idea that foreground processes should be preferred. Currently I develop a game, which - like most games - relies on a constant high frame rate. At first, the game pretty sloppy until I realized some background app was draining CPU resources. So I uninstalled some of them

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Markus Junginger
On Mar 27, 11:11 am, Lukasz M wrote: > I had the same problem. > I fixed it using a static sensor-reading object. Therefore while > changing between activities sensors didnt swap. But what happens when you start the app with the keyboard open? Wouldn't you have swapped values then? I think using

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Markus Junginger
Reading the bold docs in upper case is always good. :) I did not remember this info, and it's working as expected. Thanks! BUT: I use a *fixed* landscape orientation, so the orientation should not change. On the screen it does not when opening the keyboard, but if the sensor does it seems more li

[android-developers] Re: The problem about the sensor!!!

2009-03-27 Thread Markus Junginger
I can confirm this issue. Since I switched from portrait to landscape, the sensor values are messed up *sometimes* (swapped) and then I need to restart the app! Did we miss something or are the sensor values buggy in landscape mode? --~--~-~--~~~---~--~~ You receiv

[android-developers] Re: How to track memory consumption? (Bitmaps)

2009-03-27 Thread Markus Junginger
Thanks Michael for your reply. On Mar 27, 12:07 am, Michael MacDonald wrote: > AFAIK, bitmaps *are* created outside the Java heap, and there is a limit > of 16MB imposed on the *sum* of the Java heap and the total of the > allocated bitmaps. So, does this mean, that there is currently no instrum

[android-developers] How to track memory consumption? (Bitmaps)

2009-03-26 Thread Markus Junginger
How can one track memory consumption in Android? The Android "Heap" view in Eclipse and java.lang.Runtime methods seem failing for my purpose. I tried to figure out how much memory my app consumes in order to make decisions for future directions. Most of the memory goes into Bitmap objects. Just

[android-developers] Re: TERRIBLE BUG IN MARKET APPLICATION (was Re: Paid apps related questions discussion list?)

2009-03-02 Thread Markus Junginger
I wonder if it might be the same issue I ran into: http://groups.google.com/group/android-developers/browse_thread/thread/c529496c831eded2/e0e8a406084f0a24 http://code.google.com/p/android/issues/detail?id=2047 I have only free apps, but paid apps are always copy protected, right? So, if apps bre

[android-developers] Re: What happens between two View.onDraw calls? (Game, FPS)

2009-02-27 Thread Markus Junginger
Thanks for the clarification. I will switch to SurfaceView some time. Maybe I will do some comparisons in terms of performance of the two approaches. Anyone done this before? Another thought was if it would matter in terms of performance if one could directly write to hardware buffers to prevent

[android-developers] Re: What happens between two View.onDraw calls? (Game, FPS)

2009-02-27 Thread Markus Junginger
Hi Romain, thanks for your reply. On Feb 27, 10:42 pm, Romain Guy wrote: > You cannot achieve more than 60 fps because of the way the UI is > sync'd with the underlying hardware. So basically the framework waits for the next update cycle, I assume? I still wonder about what's going on behind th

[android-developers] What happens between two View.onDraw calls? (Game, FPS)

2009-02-27 Thread Markus Junginger
I am in the middle of writing an game and got curious what happens outside my code. I extended the View class with everything happing inside onDraw (updating the model and rendering it). Before onDraw is exited, a invalidate() is fired so the View gets repainted continously. With this approach I g

[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-27 Thread Markus Junginger
> I think that I've been bitten by the copy protection bug as well.  It > seems to be intermittent though. Is your app working ok now? I cannot tell for sure. However, user rating is rising again, which is a good sign. And my own tests (I uploaded 7 versions just to test it to the market) looked

[android-developers] Re: Amazon Web Services (AWS) from Android

2009-02-25 Thread Markus Junginger
On Feb 25, 1:27 pm, Sena Gbeckor-Kove wrote: > Use a proxy server or adapter? I think that does not make a difference to Amazon - they seem to disallow using the data on mobile devices, no matter where the data came from. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Amazon Web Services (AWS) from Android

2009-02-25 Thread Markus Junginger
> Don't give up on the AWS project just yet ;). What are the options? It is better to quit a project asap if you are not allowed to do it. I know of other mobile apps, which were not permitted by Amazon, and believe me, it's more frustrating to quit a project that got completed. But anyway, ha

[android-developers] Re: TERRIBLE BUG IN MARKET APPLICATION (was Re: Paid apps related questions discussion list?)

2009-02-23 Thread Markus Junginger
I had similar issues, but I do not have paid apps. By try&error I figured out it was the "copy protection" feature. So far, nobody replied to my posts or my bug report I created, however. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Amazon Web Services (AWS) from Android

2009-02-23 Thread Markus Junginger
Btw, if you are talking about "Amazon Associates Web Service": http://aws.amazon.com/agreement/#5.1 "5.1.5. Unless we have provided you our express written consent in advance, you are not permitted to use Amazon Associates Web Service in connection with any handheld, mobile or mobile phone applica

[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger
It seems that the copy protection feature in the Market is broken, so I recommend NOT to switch it on if you rely on file access. I filed a bug report against Android: http://code.google.com/p/android/issues/detail?id=2047 Again a tiny little checkbox causing so much trouble... Hope not too many

[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger
This is getting even more confusing: * canRead and canWrite are true on the file * creating new files (new names) also fails The only way to get it to work again is to uninstall and install the app from scratch again. So, right know I am totally clueless, expect it could be an Android bug. I n

[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger
I just added some logging for debugging: File fileFile = context.getFileStreamPath(file); CommonLog.i("Opening file for output: " + fileFile.getAbsolutePath() + ", exists: " + fileFile.exists()); The output shows that the file exists: Opening file for output: /data/data/de.jars.android.quicksea

[android-developers] Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger
In the Android Market, I saw that users of my app had serious problems: http://www.cyrket.com/package/de.jars.android.quicksearch After updating to a new version from the Market, the app became unusable. This line is causing the trouble: FileOutputStream fileOut = context.openFileOutput("searches

[android-developers] Re: How to add a calendar entry?

2009-02-19 Thread Markus Junginger
> Did anyone find a solution to this? Markus, did you find out how to set the > event name?? No, no progress here. Is the source code of the calendar app available git? It might be worth a look. --~--~-~--~~~---~--~~ You received this message because you are subscri

[android-developers] Re: sound effect using SoundPool

2009-02-13 Thread Markus Junginger
On Feb 13, 9:04 am, Stoyan Damov wrote: > Listen to Robert's advice, and most importantly, if you don't have a > need to manipulate the sounds during the game (e.g. Robert changes the > pitch dynamically in his game) ... How does Robert implement pitching? Is there a recommended lib? A nice sou

[android-developers] Re: Voice Recognition like in Voice Search? (STT)

2009-02-11 Thread Markus Junginger
Future APIs are one thing, using Intents to access existing functionality is another, imho. Voice search is already here, so the question for me is if there are Intents to start the voice recognition Activity and work on with the results. Thank Intents and loose coupling. :) For my purpose voice

[android-developers] Re: Voice Recognition like in Voice Search? (STT)

2009-02-10 Thread Markus Junginger
Thanks alot. I will look into this. :) --~--~-~--~~~---~--~~ 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

[android-developers] Re: Voice Recognition like in Voice Search? (STT)

2009-02-10 Thread Markus Junginger
On Feb 10, 5:53 am, "sscalp...@gmail.com" wrote: > The package android.speech.srec is in the master SDK.  It's documented > as a simple, synchronous SREC speech recognition API. Where do I find information on the "master SDK"? There's no JavaDoc in the SDK 1.1 of this package. Maybe there is an

[android-developers] Voice Recognition like in Voice Search? (STT)

2009-02-09 Thread Markus Junginger
Voice Search is new with RC33. I am wondering if the voice recognition will be part of the API 1.1. Or at least an Intent? Btw, is the SDK 1.1 JavaDoc available somewhere yet? Regards, Markus -- http://jars.de --~--~-~--~~~---~--~~ You received this message beca

[android-developers] Sensors: Does orientation depend on acceleration?

2009-02-07 Thread Markus Junginger
I played around with the G1 sensors a bit and my impression was that the orientation and the gravity sensor relate. Maybe the orientation "sensor" even just uses the acceleration data to calculate the orientation? What led me to this question: when you try keep the device in the same orientation

[android-developers] Re: How to add a calendar entry?

2009-02-05 Thread Markus Junginger
For my purpose, I resolved it partly using a different approach. There seems to be an undocumented Intent to bring up the Calendar UI and fill start and end time in advance. I found out that the ZXing Apps does it like this. Maybe this helps: Intent intent = new Intent(Intent.ACTIO

[android-developers] How to add a calendar entry?

2009-01-27 Thread Markus Junginger
I would like to insert a new event (start time, end time, and event name) in the user's calendar. How can I do that? I have the impression, that the SDK does not have the API for it (yet), but the G1 has the APIs. Would the CalendarProvider class the way to go? See also: http://code.google.com/p/