[android-developers] Re: Activity Lifecycle Cause Memory Leaking

2009-08-20 Thread brian.schimmel
I experienced similar problems. Depending on how you navigate back to your Activity, Android does not know that it should reuse the existing instance and creates a new one. You can fix this easily with the activities launch mode, which you set in the AndroidManifest.xml. Setting it to

[android-developers] Re: Close Application

2009-08-20 Thread brian.schimmel
I think this will just work fine: android.os.Process.killProcess(android.os.Process.myPid()); As far as I know, it kills the current DalvikVM right on the spot, so be careful. On 10 Aug., 20:49, jhoffman keshis...@gmail.com wrote: It really depends on the structure of your app, but one trick

[android-developers] Re: Associate app to open email attachments

2009-08-20 Thread brian.schimmel
As kevin.gaudin pointed out in reply to my bug report, it worked for me because VCard is in the list of allowed Mime Types because it fits text/*. So there is still no solution for application/*. On 20 Aug., 17:42, brian.schimmel brian.schim...@googlemail.com wrote: This is very stange... I

[android-developers] Re: Associate app to open email attachments

2009-08-20 Thread brian.schimmel
This is very annoying, so I just submitted a bug/issue at http://code.google.com/p/android/issues/detail?id=3611 You can go there and star the issue to get notified on updates. I also looked into the source of the Email app. It's completely incredible how many layers of indirection are involved

[android-developers] Re: Associate app to open email attachments

2009-08-20 Thread brian.schimmel
could not ne fetched because this type of file cannot be displayed on the phone. Maybe I need to adjust my IntentFilter to handle the file:// protocol, I'll try that and report about it. On 20 Aug., 17:28, brian.schimmel brian.schim...@googlemail.com wrote: This is very annoying, so I just

[android-developers] Re: can execute my app automatilly when android is up?

2009-08-06 Thread brian.schimmel
I think home is not the first application that is started, but it is the first visible one. So you have two options: 1. Your application can replace the home screen, but then it should do everything that a home screen does. You have to declare an IntentFilter with the Home category, see

[android-developers] Re: maps api and 1.5

2009-07-30 Thread brian.schimmel
://www.anddev.org/viewtopic.php?p=24902#24902 On Jul 21, 10:12 pm, Spiral jmri...@gmail.com wrote: Same here. On Jul 6, 8:45 pm, Georgy georgearna...@gmail.com wrote: Hello Brian, I am having your same issue. Were you able to solve it? thanks On May 25, 8:48 am, brian.schimmel brian.schim

[android-developers] Re: ListView: invisible dividers still take up space. Is it a bug or a feature?

2009-07-30 Thread brian.schimmel
Hi Romain, I think you just got me wrong. If I wanted to have no dividers at all, I would set dividerHeight to 0, of course. Indeed, I want to have dividers between enabled items, but no dividers next to disabled ones. The code in ListView.dispatchDraw() already has code for this:

[android-developers] Re: Soft references freed too early

2009-07-24 Thread brian.schimmel
Hi fadden, thanks for your answer and for looking things up in the dalvik source. Sounds very much like you are right. I didn't know of dalvik.system.VMRuntime.setMinimumHeapSize() but now tried it. Invoking that with 4 MB or 5MB has no visible effect. But invoking it with 8MB solves my

[android-developers] Re: How to style my own styleable with a style? (Custom view class with custom attribute)

2009-07-08 Thread brian.schimmel
Thank you very much, Dianne! It's alway amazing how quick and correct your answers are ;) This solves the problems I mentioned above, and some others I was not even aware of. I've seen that TypedArray-stuff in the plattform source before, e.g. in the constructor of TextView.java, but did not

[android-developers] Re: SlidingDrawer issue #1?

2009-07-03 Thread brian.schimmel
The same with me. Just filed a bug report at http://code.google.com/p/android/issues/detail?id=3162 You can go there and star the issue to get notified on changes. wbr, Brian On 19 Mai, 14:47, brindy bri...@brindy.org.uk wrote: Yep, exactly the same here. =) Cheers, Brindy On May 7, 11:27 

[android-developers] Re: List items not clickable when using ListAdapter, but clickable with SimpleAdapter

2009-06-15 Thread brian.schimmel
Mai, 19:14, brian.schimmel brian.schim...@googlemail.com wrote: Just a small update, just in case some else has the same problem... I finally found the source code athttp://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... (no idea why I did not find it before

[android-developers] Re: Getting the manifest.xml of applications from the market?

2009-05-25 Thread brian.schimmel
Thank you for your answers! Based on the assumption that I already have the apk-file, your answers are very helpful, because I was not aware of the issue with the binary file format. I've tested the aapt command and it did what you said, which is ok. But my question should have asked how I can

[android-developers] Re: maps api and 1.5

2009-05-25 Thread brian.schimmel
Hi everybody, I'm getting the same problems. Of course I have read this thread and tried everything that was suggested (and some more), but it does not work. Here are the facts: * Using SDK 1.5_r1 * Project target in Eclipse is Google APIs 1.5 * AndroidManifest.xml contains uses-sdk

[android-developers] Re: List items not clickable when using ListAdapter, but clickable with SimpleAdapter

2009-05-25 Thread brian.schimmel
Just a small update, just in case some else has the same problem... I finally found the source code at http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/SimpleAdapter.java;hb=HEAD (no idea why I did not find it before), and there is nothing inside

[android-developers] Re: already set uses-sdk but market won't accept

2009-05-20 Thread brian.schimmel
I had similar issues, read all that stuff about positioning it correctly in the XML, and did not work either. Then I upgraded to the newest SDK 1.5_r1 and everything worked. On 7 Mai, 06:05, anuraguni...@yahoo.com anuraguni...@yahoo.com wrote: ok i will try putting right under manifest but

[android-developers] Re: youtube on android

2009-05-20 Thread brian.schimmel
. On Thu, May 7, 2009 at 6:28 PM, brian.schimmel brian.schim...@googlemail.com wrote: Hi Ebin, this is actually very easy. Real phones (developer and user phones) come with a preinstalled youtube application that performs very well. On the emulator, it is not present as far as I remember

[android-developers] Re: youtube on android

2009-05-07 Thread brian.schimmel
Hi Ebin, this is actually very easy. Real phones (developer and user phones) come with a preinstalled youtube application that performs very well. On the emulator, it is not present as far as I remember. If you want to lauch youtube from within your application, maybe this thread helps you:

[android-developers] Re: API to delete SIM contacts Messages AND erasing the SD card contents

2009-04-29 Thread brian.schimmel
Hi Surendra, as far as I know, access to the SIM data is restricted to applications which are signed by the same entity that signed the system image. That is, you either have to be Google/the Open Handset Alliance, or you have to build a custom system image. Then users of your sofware would have

[android-developers] Re: How to browse deeper into /data/data/package/app_somename/somedir

2009-04-23 Thread brian.schimmel
you can only do this if running as root or the uid of the app that owns the data.  On a production G1 you can not do this from adb. On Fri, Apr 17, 2009 at 10:18 AM, brian.schimmel brian.schim...@googlemail.com wrote: I have to make some additions to what I said before: 1

[android-developers] Re: Flash Buttons

2009-04-17 Thread brian.schimmel
Currently this is not possible. Even when flash will be supported in the future, I think you can use flash in websites and maybe as standalone-applications. I don't think you will ever be able to use flash buttons inside an android app. I don't see why you would want to do this, neither. On Apr

[android-developers] Re: How to browse deeper into /data/data/package/app_somename/somedir

2009-04-17 Thread brian.schimmel
I have to make some additions to what I said before: 1. There are some typos in the folder names in my post. They are only in that post and are definitely not the cause of my problems. 2. Though there is a small chance that my folder /data/data/package/ app_mycustomname/mysubdirectory was