[android-developers] WebView memory leak

2010-06-28 Thread Mathias Lin
I have an activity using an xml layout where a WebView is embedded. I am not using the WebView in my activity code at all, all it does is sitting there in my xml layout. Now, when I finish the activity, I find that my activity is not being cleared from memory. (I check via hprof dump). The act

[android-developers] Re: Strange behaviour with mediaplayer and seekTo (on start-up)

2010-06-16 Thread Mathias Lin
); vidView = (VideoView) findViewById(R.id.vidView); vidView.setVideoPath("/sdcard/myapp/main/videos/main.mp4"); vidView.seekTo(16000); vidView.start(); } } On Jun 16, 12:53 pm, Mathias Lin wrote: > I'm implementing a custom video player because I

[android-developers] Position of builtInZoomControls in WebView and MapView

2010-06-15 Thread Mathias Lin
be the only way? Rgds, Mathias BTW: this is a re-post through my email client since my post isn't searchable/visible from within the android dev group when I post through the google groups web client. Can somebody explain this weird behaviour? My thread of June 15th is obviously there

[android-developers] Strange behaviour with mediaplayer and seekTo (on start-up)

2010-06-15 Thread Mathias Lin
I'm implementing a custom video player because I need custom video controls. I have an app with only one activity, which on start-up shall starts playing a video right away. Now, the problem I have (on my Nexus One): I don't want the video to start from the beginning, but from a later position. T

[android-developers] Position of builtInZoomControls in WebView and MapView

2010-06-14 Thread Mathias Lin
I noticed that the default position of the builtInZoomControls in WebView (bottom, horizontal right) is not consistent with the default position in the MapView (bottom, horizontal center). Why is the position not consistent in these two views? (In the Google Maps app the zoom control is also only

[android-developers] Re: Read local XML file

2010-05-24 Thread Mathias Lin
You could use sax parser to read the xml: http://developer.android.com/reference/org/xml/sax/XMLReader.html A tutorial is here: http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html What's the best way to store your data depends on what you want to do with it afterwards.

[android-developers] Re: where is the sdcard in emulator 2.2?

2010-05-24 Thread Mathias Lin
There is no (virtual) sdcard in the emulator. You need to create it via http://developer.android.com/guide/developing/tools/othertools.html#mksdcard On May 21, 7:40 pm, coolbanana wrote: > Hi, > > i am working with eclips with the new SDK2.2. > i cannot find the sdcard in emulator 2.2! > > thank

[android-developers] Re: Application Crash Reporting made easy - needs testers

2010-05-24 Thread Mathias Lin
Hi Kevin, I tried to include acra v2 following the HowTo2, but get a NullPointerException when acra tries to read the crash data. I filed a bug report here: http://code.google.com/p/acra/issues/detail?id=2 (I just tried to use the default silent mode for now.) Regards, Mathias On May 20, 8:35

[android-developers] Re: Android Dev Phone with 2.x?

2010-05-20 Thread Mathias Lin
Yes, you can just use the nexus one with 2.1, is SIM-unlocked. See here: http://developer.android.com/guide/developing/device.html "If you want a SIM-unlocked phone, then you might consider either an Android Dev Phone or the Google Nexus One. Both are SIM-unlocked so that you can use them on any G

[android-developers] Re: How to find memory leak?

2010-05-20 Thread Mathias Lin
Yourkit, http://yourkit.com/overview/index.jsp, is another profiler tool that could be used. In sdk2.1, you can also do it on a non-rooted device - you can create a hprov from within the app and write it to sdcard. Debug.dumpHprofData("/sdcard/myapp.hprov"); At least in v2.1, possible that this

[android-developers] Signal strength icon in Android status bar - what does it represent and how?

2010-05-20 Thread Mathias Lin
I want to show a signal strength icon in my application with the same logic as the icon is doing in the standard Android status bar. But I am wondering, what exactly does this icon represent and what kind of scale is it using? Does it represent the gsm signal strength as of signalStrength.getGsmSig

[android-developers] Re: DDMS('?' in process name field)

2010-05-18 Thread Mathias Lin
I have the same problem that sometimes my app doesn't show up in the process list properly but just with a ? I figured that it might depend on where I started the app from, i.e. from within my IDE (IntelliJ or Eclipse) or if I start if from the device, i.e. right after a fresh reboot of the device,

[android-developers] Re: anddev.org - brand new shiny forum version!

2010-05-18 Thread Mathias Lin
Nice, it's my favorite forum. I like the new skin, better than before. But agree with the contrast, it should be higher, either darker background or text font brighter. Regards, Mathias On May 18, 2:28 pm, Anthoni wrote: > > The black color background is not at all looking good.

[android-developers] Re: Market search and Top free/paid result order

2009-12-17 Thread Mathias
I am using the Android 1.6 Market. On Dec 17, 7:48 am, Mathias wrote: > What determines the market search result order? > > It doesn't seem to be downloads or rating. > > The Top free/paid listing does not make much sense either... -- You received this message because you a

[android-developers] Market search and Top free/paid result order

2009-12-17 Thread Mathias
What determines the market search result order? It doesn't seem to be downloads or rating. The Top free/paid listing does not make much sense either... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] Re: Motorola Droid -- Poor accelerometer performance

2009-12-16 Thread Mathias Agopian
UI thread (DISPLAY_PRIORITY), and therefore competes with it. This will be fixed in a future version of android. Unfortunately, there are no easy workaround. Mathias On Dec 8, 12:13 am, Heiko wrote: > With SENSOR_DELAY_GAME I get very unstable sample rates. Mostly it > averages around 9 sampl

[android-developers] Re: Motorola Droid -- Poor accelerometer performance

2009-12-16 Thread Mathias Agopian
e. I hope this helps. mathias On Dec 8, 3:16 am, Heiko wrote: > Problem solved. In case others experience the same problems: > > The constants for the sensors seem to be wrong. I used: getSensorList > (SensorManager.SENSOR_ACCELEROMETER).get(0);  which returned a handle > to

[android-developers] Which Reference System is used by the Google Maps Api

2009-11-28 Thread Mathias
Services. Kind regards Mathias -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developer

[android-developers] How to switch off Anti-aliasing

2009-11-12 Thread Mathias
Hi Is it possible to switch off Anti-aliasing for a view or the application? Thanks Mathias -- 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 unsubs

[android-developers] Re: Error Code 5: Database is locked

2009-10-14 Thread mathias axelsson
I use synchronized(ExampleDbAdapter.class){mDb.insert/update/delete/query...} in ExampleDbAdapter to avoid this. Let me know if there's a better way. On Mon, Aug 24, 2009 at 10:58 AM, Armond Avanes wrote: > > So how can I create an in-memory database? I just took a quick look at the > API and co

[android-developers] ignoring locked SD Card image (when starting emulator)

2009-09-17 Thread Mathias Lin
When I start the emulator from command line as below (on windows) I get the following warnings. C:\android-sdk-windows-1.5_r3\tools>emulator -sdcard D:\android-sdk- windows-1.5_r3\tools\sd256m.img -skin HTC_HERO -avd my_avd emulator: WARNING: ignoring locked SD Card image at D:\android-sdk- wind

[android-developers] Virtual keyboard open event

2009-09-05 Thread Mathias
How can I get an event when the user opens or closes the virtual keyboard on the G2? Thanks for your help Mathias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

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

2009-06-14 Thread mathias axelsson
Thank you!! moving super.onCreate did the trick! super.onCreate seems to call getTheme which initiates it(?). On Thu, May 21, 2009 at 9:01 PM, quanghuytruongd...@gmail.com < quanghuytruongd...@gmail.com> wrote: > > You can try to put setTheme() before super.onCreate() --> your > background wil

[android-developers] Is it possible to extend default applications?

2009-05-25 Thread Mathias Reisch
ighly appreciated! Best wishes, Mathias --~--~-~--~~~---~--~~ 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 gr

[android-developers] Re: viewing logcat from phone not possible in Android 1.5?

2009-05-05 Thread mathias axelsson
on the Android > Market. > > On May 1, 1:26 pm, fadden wrote: > > On May 1, 8:06 am, mathias axelsson > > wrote: > > > > > When running 'su', in terminal, I get 'uid X not allowed to su'. > > > 'logcat' gives permission d

[android-developers] viewing logcat from phone not possible in Android 1.5?

2009-05-01 Thread mathias axelsson
Hi, After installing Android 1.5 on my ADP I can't check logcat directly from the phone. When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives permission denied /dev/log/main. If I get an exception/force close in any of my apps I'd like to be able to check the stac

[android-developers] UnknownHostException while Connecting to URL

2009-01-27 Thread Mathias
nit.main(ZygoteInit.java:497) 01-27 17:00:18.605: ERROR/DataConnectorTS(182): at dalvik.system.NativeStart.main(Native Method) I already added the uses-permission Internet Tag to the manifest.xml (above the application tag). I can create the URL Instance but not call openStream(). Any Idea w

[android-developers] Re: OpenGL on T-Mobile G1: How to turn OpenGL on and off with SurfaceHolder ?

2008-12-26 Thread Mathias Agopian
nd make the > Surface work again with all 2D rendering? Is there a way to re-create > the surface of the View object? > > By the way, my OpenGl clean-up code is exactly same as the > GLSurfaceView sample code, it should have any problem. > > Many thanks for any suggestions! >

[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-07 Thread Mathias Agopian
plify your life]). Also, for 2D rendering, consider using the draw_texture extension (glDrawTexi), it's available on most h/w implementations and is usually faster than using geometry. Information about OpenGL and OpenGL ES extensions is available on the intertubes. Good luck! Mathias On

<    1   2