[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-12-04 Thread Matthias
. For the nitty gritty details, this file defines a PendingIntent maintained by the system and the full key used to match them: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;. .. On Fri, Nov 21, 2008 at 3:07 AM, Matthias [EMAIL PROTECTED] wrote: And to further

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-12-05 Thread Matthias
Dianne, On 5 Dez., 00:45, Dianne Hackborn [EMAIL PROTECTED] wrote: FLAG_CANCEL_CURRENT will almost certainly work.  If you look at the code, if you have the flag set it just removes any existing intent and creates a whole new pending intent with the intent you provide.  The returned

[android-developers] ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-23 Thread Matthias
looks as if the list items views are consuming the click event, so the list view never gets to it, but then again, why would it work using the dpad then?? Any help greatly appreciated. Best, Matthias --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-24 Thread matthias
Hi, On Mar 23, 7:52 pm, droozen droozenr...@gmail.com wrote: Have you tried following the Notepad tutorial and this line in your onCreate method?         registerForContextMenu(getListView()); Why would I want to do that, I do not need a context menu. Maybe I didn't make myself clear

[android-developers] Re: ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-24 Thread matthias
I found the problem: Removing the call to textView.setMovementMethod (LinkMovementMethod.getInstance()); in a TextView I use in the list item layout fixed the problem. Is that expected behavior? I think about raising a bug about this. --~--~-~--~~~---~--~~ You

[android-developers] android:ellipsize for multi-line text?

2009-03-24 Thread Matthias
Hi, I noticed that android:ellipsize will always ellipsize a single line as soon as it doesn't fit the width of a TextView. That makes no sense however for multi-line TextViews, since you will then get something like this: some very long tex... this line fits. this one does not f... you get

[android-developers] Bundles and serializable objects - what is actually stored?

2009-03-24 Thread Matthias
Hi, I was wondering about the behavior of Bundles and serializable objects. If I put a serializable object into a bundle, what is serialized then, the reference to the object or the object itself? I always assumed that the object itself would be serialized to a byte stream when calling

[android-developers] Re: Bundles and serializable objects - what is actually stored?

2009-03-25 Thread matthias
Thanks for your in-depth answer, that was really helpful. Cheers, Matthias --~--~-~--~~~---~--~~ 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

[android-developers] File size column in image database is always 0 for the newest image

2009-03-26 Thread Matthias
Hi, I am uploading images to our webservice from the phone, and thus I need to know the exact size of an image. I noticed that with some photos from the G1, the webservice always failed, and found out that it's due to the file size always being 0 for the latest image in the database. Is this a

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-26 Thread matthias
not even be a noticeable overhead to the user. But still, this is an annoyance, did you already raise a bug for this? Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-26 Thread matthias
Hi, On Mar 26, 4:04 pm, Streets Of Boston flyingdutc...@gmail.com wrote: You still may need to do this, though. With my application; if i don't do the MediaScanner thing, the 'Pictures' application will crash! You may find the same problem. Try to insert an image (with the SIZE being 0),

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
I raised a bug for this: http://code.google.com/p/android/issues/detail?id=2311 By the way, I wonder what ContentResolver.startSync() does? Maybe one has to call this in order to see an up-to-date media DB? (Its documentation is, as usual, a bit lacking.)

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
Oh and, how did you resolve a content URI to an image path? I realized that the read into memory approach does not work for me, because sometimes when I go through an open-read-close-open-read cycle for the image stream, I get an IOException (funny enough, not always).

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
okay, one solution is to do something like this: String path = Environment.getExternalStorageDirectory ().getAbsolutePath() + /dcim/Camera/ + [value of DISPLAY_NAME column for this image]; and then do a new File(path).length() but I'm not sure if that path value is

[android-developers] Re: File size column in image database is always 0 for the newest image

2009-03-27 Thread matthias
flyingdutc...@gmail.com wrote: Read my post from yesterday at 10am again :-) Execute a query using your content-uri, and use the returned cursor to obtain the physical file-path (use the ImageColumns.DATA). On Mar 27, 9:27 am, matthias m.kaepp...@googlemail.com wrote: okay, one solution is to do

[android-developers] Re: No callback when list item is touched.

2009-03-27 Thread matthias
I have a similar problem: When putting different widgets in a listview, things get out of hand. I had three custom relative layouts and a spinner in that listview, and everything worked fine. I then added another spinner and a button, and now the spinners do not update their focused/clicked

[android-developers] Re: custom progress indicator ?

2009-03-29 Thread matthias
that's a good question; unfortunately, drawable resources are poorly documented. You can always take a look at the Android implementation though... there should be plenty of examples. I usually simply copy over drawables from the framework and modify them to suit my needs. Android's drawables

[android-developers] Re: testing using EasyMock

2009-03-29 Thread matthias
access Android classes from outside the emulator, so you will have to use Android's Instrumentation mechanisms to run your tests. Doing so should get rid of weird class loader errors. Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Fling on ListView

2009-03-29 Thread matthias
Well, you can set a OnTouchListener on any view, including ListView, and use a GestureDetector to detect horizontal flings. So, yes, I guess. The problem with this whole touch mechanism in Android is that child views can silently consume the touch gesture, so your fling will not even propagate up

[android-developers] Performance: pre-instantiate activities on app launch? Good practice or not?

2009-03-30 Thread Matthias
any application goes through a loading process when starting up. Any thoughts on best practices and solutions here? Thanks for your input, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] ListView elements in Dialogs never expand to full width

2009-03-31 Thread Matthias
android:layout_width=wrap_content android:layout_height=wrap_content / Any ideas? Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Long click on list activity item

2009-03-31 Thread matthias
the event, so it won't propagate up to the normal click handler. Cheers, Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Discussion on localizing-android-apps-draft

2009-03-31 Thread Matthias
Setting the locale in /data/locale as described here doesn't work for me in 1.1 R1. Has the process changed? This used to work for me in pre-1.1 releases. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: ListView elements in Dialogs never expand to full width

2009-04-01 Thread matthias
anyone? I still cannot sort this one out. --~--~-~--~~~---~--~~ 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

[android-developers] How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread Matthias
if necessary? Thanks! Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Re: Performance: pre-instantiate activities on app launch? Good practice or not?

2009-04-01 Thread matthias
useful information if you want to see the big picture, however (i.e. get answers to questions such as: how much time does the app spend in which parts of the code base?). Are there any plans to make traceview a tad more capable? That would be great news! Cheers, Matthias

[android-developers] Re: Fling on ListView

2009-04-01 Thread matthias
navigation in the platform an inconsistent feel. That's what I meant with messy and fragile. Cheers, Matthias On Mar 29, 8:16 pm, Romain Guy romain...@google.com wrote: Doesn't look like fling support as known from the iPhone was ever meant to be part of Android's UI design. Making your app react

[android-developers] Re: How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread matthias
Well, I found a really ugly workaround. That workaround is based on my observation that the problem described does only occur if the ListView's layout height is set to WRAP_CONTENT. So, since I use a custom list adapter, I now call listView.getLayoutParams().height = LayoutParams.FILL_PARENT

[android-developers] Re: ListView elements in Dialogs never expand to full width

2009-04-01 Thread matthias
Okay, I found (once again), a rather ugly workaround for this: Putting the textview in layout object does the job. Like this: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

[android-developers] Discussion on localizing-android-apps-draft

2009-04-01 Thread Matthias
Xavier, very helpful! thanks for sharing, works perfectly. --~--~-~--~~~---~--~~ 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

[android-developers] Speed difference between DOM and SAX parser for small documents

2009-04-08 Thread Matthias
, Matthias --~--~-~--~~~---~--~~ 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-developers

[android-developers] Discussion on localizing-android-apps-draft

2009-04-11 Thread Matthias
in case not everyone noticed, this article has been updated and now contains the correct instructions. Thanks Justin! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Managing background uploads

2009-10-21 Thread Matthias
. What would you suggest doing in my case? Cheers, Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Re: Managing background uploads

2009-10-22 Thread Matthias
Hey James, good to know, thanks! -Matthias On Oct 21, 9:30 pm, James Yum j...@google.com wrote: Hi Matthias, Thank you for the good question (shows you're thinking). Check the Application Fundamentals dev guidehttp://developer.android.com/guide/topics/fundamentals.html Near the bottom

[android-developers] Multipart file uploads using Apache Mime4J still not working

2009-10-23 Thread Matthias
()); response = httpClient.execute(request); PhotoStreamBody inherits from InputStreamBody. The only thing it does is overwriting the getContentLength() method, because Android has another bug which reports wrong content sizes... Does anyone know what is causing this? Thanks, Matthias

[android-developers] Animating ViewStub

2009-10-23 Thread Matthias
Hi, I am trying to animate a ViewStub -- without success. My code: stub.setVisibility(View.VISIBLE); // inflate the stub Animation anim = AnimationUtils.makeInAnimation(this, true); stub.startAnimation(anim); No animation is played, the ViewStub simply appears. How come?

[android-developers] Re: M3 SDK: Click events on Map Overlays?

2008-10-15 Thread Matthias
anyone? still found no solution to 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

[android-developers] Re: MapActivity - Couldn't get connection factory client

2008-10-16 Thread Matthias
I have the same problem. Any ideas yet? --~--~-~--~~~---~--~~ 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

[android-developers] Re: Mock Location Providers in 1.0

2008-10-16 Thread Matthias
Still doesn't work for me. Playing a GPX file from that tramper site, but my app doesn't seem to receive any location updates; LocationManager.getLastKnownLocation() always returns null when using the GPS provider. I have enabled app permissions for fine grained location access (i.e. using GPS),

[android-developers] Re: Getting GPS Location in Android 1.0 SDK

2008-10-16 Thread Matthias
anyone found a solution? I am still struggling over 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

[android-developers] Re: How to query for my current location?

2008-10-17 Thread Matthias
Well, in other words, this whole location manager thing is pretty broken in Android 1.0? From what I've read and experienced myself so far, it's pretty much like this: 1) LocationManager cannot be subclassed anymore, instead you use the debug bridge to send location fixes. Unfortunately, this

[android-developers] Re: Problem with MapView

2008-10-17 Thread Matthias
darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute. On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote: Yes, I do have a location set. I think I know where the problem

[android-developers] Re: Problem with MapView

2008-10-17 Thread Matthias
, one more wasted day thanks to terrible user interface design. :-/ On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote: darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-10-17 Thread Matthias
Just to get this straight, one has to *subclass* MapView in order to enable simple things such as zooming? I can't help it, but to me it seems that with every step forward, Android takes two steps backwards. On Aug 28, 8:42 pm, marcel-182 [EMAIL PROTECTED] wrote: Hi all, I extended the

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-10-19 Thread Matthias
());                                                 zoomControls.setIsZoomInEnabled(true);                                         }                                 }); On Fri, Oct 17, 2008 at 8:26 PM, Mark Murphy [EMAIL PROTECTED] wrote: Matthias wrote: Just to get this straight, one has to *subclass* MapView in order to enable simple

[android-developers] Re: Problem with MapView

2008-10-22 Thread Matthias
.. then after it started to show the grey grid... no map those who are having the map application plz chek that agian.. is it the problem with the google server ? On Oct 17, 7:33 pm, Matthias [EMAIL PROTECTED] wrote: oh boy... I have figured out what went wrong... I used the geo command

[android-developers] Re: Getting GPS Location in Android 1.0 SDK

2008-10-22 Thread Matthias
getting location updates instead of just one location value plus the .gpx file can be used to set locations or simulate a path (cool!) @Matthias Let me know if my pointers help you or we can continue working to get this working for you as well. Thanks everyone, Gautam On Oct 16, 1:36 pm

[android-developers] Screen Only Numeric Input

2008-10-28 Thread Matthias
I'm wandering through the interwebs and the discussion boards looking for a way to input numeric text only without having to flip open the keyboard. I've fumbled my way across several options, including the NumberKeyListener, the DigitsKeyListener and the DialerKeyListener. These are all helpful

[android-developers] Re: How to use buildin email intent

2008-11-17 Thread Matthias
I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this

[android-developers] Re: How to use buildin email intent

2008-11-18 Thread Matthias
(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822); startActivity(Intent.createChooser(sendIntent, Title:)); Peliwww.openintents.org On Nov 17, 11:12 am, Matthias [EMAIL PROTECTED] wrote: I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL

[android-developers] Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Matthias
used to fire it, whenever the Activity is already running? Thanks, Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Matthias
, so that the Activity does a clean start everytime it is called. Even though the Activity is completely restarted now (onStart() is called), getIntent() always yields the same intent, the one it was started with for the very first time... On 20 Nov., 14:17, Matthias [EMAIL PROTECTED] wrote: Hi, I

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Matthias
:03, Matthias [EMAIL PROTECTED] wrote: I think this may be a bug in Android. I also tried following the instructions from the docs under section Launch Modes and Launch Flags with no success. That section suggested to declare any Activity launched from NotificationManager to set

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Matthias
, PendingIntent.getActivity(mContext,       mRequestCodeIncrementor++, postIntent, 0)); I already filed a bug some months ago but no one at google read it...http://code.google.com/p/android/issues/detail?id=863 On Nov 20, 5:38 pm, Matthias [EMAIL PROTECTED] wrote: This gets weirder every

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Matthias
documentation: http://code.google.com/android/reference/android/app/PendingIntent.html On Thu, Nov 20, 2008 at 8:38 AM, Matthias [EMAIL PROTECTED] wrote: This gets weirder every minute. Just out of curiosity I just called setIntent(null) in onPause() to make sure the Intent the Activity

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Matthias
(), contentIntent); return notification; } Hope that clears up my intentions. On 21 Nov., 11:14, Matthias [EMAIL PROTECTED] wrote: Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each time I called it (I

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Matthias
Matthias [EMAIL PROTECTED] Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each time I called it (I checked the OID in the debugger), and in this new object, I always store a new Intent object. As Guillaume

[android-developers] Is TextView supposed to be able to scroll its contents?

2009-11-10 Thread Matthias
=false / /LinearLayout I then defined a really long string for testing, which I set on this text view using setText(). The text is too long for the TextView, but there is no way to scroll it. So do I need to wrap it in a ScrollView after all? Cheers, Matthias -- You received this message

[android-developers] Droid-Fu: A shared library for Android application developers

2009-11-16 Thread Matthias
-and-betterasynctask/ Source code is here: http://github.com/kaeppler/droid-fu There's more in the lib of course, most of which I will cover in upcoming blog posts. Contributions and feedback welcome! Cheers, Matthias -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: PNG optimization on packaging process

2009-11-24 Thread Matthias
how did you do the pre-dithering? our designer created a host of images with dithering enabled, but it didn't have any effect. The artifacts would only disappear when setting setDither(true) on EVERY SINGLE drawable having a gradient. This seems like a major framework fail... 16Bit graphics? It's

[android-developers] Re: PNG optimization on packaging process

2009-11-25 Thread Matthias
On Nov 24, 5:28 pm, Romain Guy romain...@google.com wrote: This seems like a major framework fail... 16Bit graphics? It's 2009, I'd sort of expect better image rendering than that of Window 3.11. Except that phone displays do not display more than 16 bits of colors. The displays are

[android-developers] Re: PNG optimization on packaging process

2009-11-25 Thread Matthias
On Nov 24, 5:28 pm, Romain Guy romain...@google.com wrote: This seems like a major framework fail... 16Bit graphics? It's 2009, I'd sort of expect better image rendering than that of Window 3.11. Except that phone displays do not display more than 16 bits of colors. The displays are

[android-developers] Re: no title bar

2009-11-25 Thread Matthias
call requestWindowFeature(Window.FEATURE_NO_TITLE) before calling setContentView() OR set it as part of a style definition (android:windowNoTitle=true). On Nov 25, 5:16 pm, Jags jag...@gmail.com wrote: I dont want title bar in my application, how to remove that ? in my activity ? Jagat --

[android-developers] java.net.HttpURLConnection throws Received authentication challenge is null

2009-08-31 Thread Matthias
it's a problem with Apache Harmony? Thanks! Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Re: java.net.HttpURLConnection throws Received authentication challenge is null

2009-08-31 Thread matthias
Hi Mark, you were right: it was a 401 causing this. The odd thing being, I got this exception *before* I was actually able to check for a 401 (it was thrown in getResponseCode()). But now knowing this error represents a 401, I was able to fix it in my code (I was not sending the OAuth verifier

[android-developers] What's the meaning of obtainStyledAttributes() and a custom attrs.xml?

2009-09-01 Thread Matthias
I've seen this in the Gallery API Demo shipping with the SDK. There is an attrs.xml holding declare-stylable tags, and the gallery adapter then does this: in attrs.xml: declare-styleable name=Gallery1 attr name=android:galleryItemBackground / /declare-styleable in

[android-developers] Resizing dialog window does not work

2009-09-01 Thread Matthias
In one of my activities, I use the Theme.Dialog style, and I can't get the window to launch at full size. What I do is this: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WindowManager.LayoutParams lp = new

[android-developers] Re: Resizing dialog window does not work

2009-09-01 Thread matthias
additional note: I even added a LinearLayout with FILL_PARENT for width and height to the activity view root, but still, the activity window is not resizing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Customing the lookfeel of DatePicker and TimePicker widgets

2009-09-01 Thread matthias
Just out of curiosity, why are you hijacking this thread? On Sep 1, 1:25 pm, Armond Avanes armond...@yahoo.com wrote: Hi Guys, I'm seeking a way to customize the lookfeel of DatePicker and TimePicker. But I couldn't find any theme attribute to be related to these two widgets... Any help is

[android-developers] How to make a RotateDrawable actually rotate?

2009-09-01 Thread Matthias
defined in the RotateDrawable... that can't be right I guess? So how do I trigger the rotation of a RotateDrawable? Thanks in advance, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Dialog cannot fill whole screen

2009-09-01 Thread matthias
Hi, I am also trying to find a solution to this... On Jul 31, 4:41 pm, nEx.Software email.nex.softw...@gmail.com wrote: Just out of curiosity, why are you using a dialog if you want it to fill the screen? simply because there are occasions where you need to replace content in the dialog

[android-developers] Re: Dialog cannot fill whole screen

2009-09-04 Thread matthias
is larger than the actual canvas (it doesn't account for menu and toolbars). Can you help me out here? Why is there no simple way to fix a dialog's size? Cheers, Matthias On Sep 1, 6:55 pm, Dianne Hackborn hack...@android.com wrote: The dialog theme, as part of its nature, sets the top-level

[android-developers] Re: How to make a RotateDrawable actually rotate?

2009-09-04 Thread matthias
Still looking for an answer, thanks! --~--~-~--~~~---~--~~ 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: How to reference (icon) drawables delivered with Android in XML

2009-09-04 Thread matthias
android:icon=@android:drawable/iconfile Cheers, Matthias On Sep 4, 11:10 am, f_heft delphik...@gmail.com wrote: Hello, I'm defining my options menu in an XML file and I want to add an icon to the menu items. Normally, this would be sth like -- (...)   android:icon=@drawable/iconfile

[android-developers] Re: Announcing RoboGuice 1.0

2010-04-04 Thread Matthias
I was thinking about using Guice myself before, but hesitated fearing to make the overall sluggishness of the platform even worse. How much of an overhead are talking about in terms of memory footprint and size of bundled libraries? Any noticeable impacts on speed or battery life? How often does

[android-developers] onConfigurationChanged whielk splash scrren i shown

2010-04-14 Thread Matthias
a new Runabel Object to queue. And the MyListActivity will be started X-times. i am thankfull for every advice. best regards matthias -- 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

[android-developers] ErrorHandler of VideoView component

2010-04-21 Thread Matthias
regards Matthias -- 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-developers+unsubscr...@googlegroups.com For more

[android-developers] Re: Emulator 2.1 2.2 reverse geocoding not available

2010-07-08 Thread Matthias
any progress on this anyone? this is really annoying, I basically can't test our app on 2.2 since we heavily rely on the Geocoder. -- 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] InstrumentationTestCase.sendKeys() fails on headless emulators

2010-07-10 Thread Matthias
, process affinity and sharedUserId, but nothing works. This basically makes our test suite useless on a build server, which are typically headless. Is this a bug or are we missing something? Thanks, Matthias -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: InstrumentationTestCase.sendKeys() fails on headless emulators

2010-07-12 Thread Matthias
Anyone? -- 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-developers+unsubscr...@googlegroups.com For more options,

[android-developers] OAuth on Android

2009-05-06 Thread Matthias
/oauth-signpost I'd like to get feedback / suggestions / contributions from my fellow Android developers (that would be you!). Cheers, Matthias PS: there is also a slightly opinionated (hence missing on the project homepage) rationale for why I started this project on my blog: http

[android-developers] Re: List All files in the directory

2009-05-07 Thread matthias
= sharedPrefsDir.listFiles(filter); for (File f : prefFiles) { [...] } } HTH. Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: List All files in the directory

2009-05-07 Thread matthias
Hi, not sure about the app dir, but for accessing e.g. the shared_prefs directory, you would do something like this (in an Activity or Service): PackageManager pm = getPackageManager(); ApplicationInfo appInfo = pm.getApplicationInfo(getPackageName (), 0); File

[android-developers] Re: Does anyone do XPath on Android?

2009-05-07 Thread matthias
anyone? --~--~-~--~~~---~--~~ 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-developers] Re: include/ in TableRow

2009-05-13 Thread matthias
ideas? Thanks, Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Re: include/ in TableRow

2009-05-13 Thread matthias
Correction: Passing the layout_* params to include works, but you MUST provide them there, not in the included view. If you pre-define them in the included view, then they get ignored, so there is no point in defining defaults and only overriding the ones you need to change; you always have to

[android-developers] gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread Matthias
That doesn't work, however. The left text is indeed aligned to the left inside its parent (the relative layout), but the right text is not aligned to the right; instead, it's placed directly to the right of the left text. Why's that? Thanks, Matthias

[android-developers] Re: gravity vs. layout_gravity? I'm lost.

2009-05-14 Thread matthias
means apply gravity to this view within its parent. So on a TextView, gravity will align the text within the bounds of the TextView whereas layout_gravity will align the TextView within the bounds of its parent. On Thu, May 14, 2009 at 5:31 AM, Matthias m.kaepp...@googlemail.com wrote

[android-developers] include-ing views into RelativeLayouts

2009-05-18 Thread Matthias
/ ... /RelativeLayout That doesn't work. The included LinearLayout is NOT positioned below the given view, but is simply attached to the top edge of the screen. What am I missing? Thanks, Matthias --~--~-~--~~~---~--~~ You received this message because you

[android-developers] XML+XPath on Android using dom4j and Jaxen

2009-05-19 Thread Matthias
Hey guys, in case you're looking for easy and powerful XML parsing on Android, you may be interested in this: http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/ Cheers, Matthias --~--~-~--~~~---~--~~ You

[android-developers] Re: XML+XPath on Android using dom4j and Jaxen

2009-05-19 Thread matthias
, Matthias m.kaepp...@googlemail.com wrote: Hey guys, in case you're looking for easy and powerful XML parsing on Android, you may be interested in this:http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpa... Cheers, Matthias

[android-developers] Application.onPause()? Is there a hook like this?

2009-05-28 Thread Matthias
the home application or when a call comes in? Thanks, Matthias --~--~-~--~~~---~--~~ 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

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
Hm, so I just peeked at the source code of the Google Maps app on Android, because they seem to get it right: if you have GPS enabled, then it will stay on if the main Maps activity is hidden by another activity of the same app, e.g. the Maps history screen, but it will turn off when pausing the

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
okay, so sActivityReference is a java.lang.ref.WeakReference, so apparently this is related to something else (memory management stuff I guess?). Any other ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
I found a workaround, but it's a hack, so I'm still open for better ideas. I found this to do exactly what I need: in the main activity of my app: @Override protected void onPause() { super.onPause(); ActivityManager am = (ActivityManager) getSystemService

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-28 Thread matthias
Well, I need to disable the listeners when the app goes into the background, not only when it terminates. I also tested this use of WeakReference, simply to see how it behaves, and it didn't work for me at all. Regardless of whether the app was paused to display another application or to display

[android-developers] Re: Application.onPause()? Is there a hook like this?

2009-05-29 Thread matthias
... It's a static reference, ie global to the process. So as activities are started the ref points to the new activity. That said, I agree the right thing to do here isn't obvious. But it's also not obvious to me why you think it's bad to unregister the listener in your apps onDestroy. I

[android-developers] IME options behavior is inconsistent across different devices

2009-06-04 Thread Matthias
Hi, I noticed that the imeOptions attribute on TextViews behaves inconsistently across different devices. For instance, setting imeOptions to normal has the following effects: 1) On the emulator and G1s running 1.5: The OSK will have a Done key and clicking it will simply close the OSK with no

[android-developers] Re: IME options behavior is inconsistent across different devices

2009-06-04 Thread matthias
This is even more messed up than I thought: It seems as if on the HTC Magic, the constant values backing the different IME options are shifted to the right by one (so to speak). That is, if you look at the different options as described in the API docs, then for example setting actionSearch on

[android-developers] Re: What's the deal with onRetainNonConfigurationInstance()?

2009-06-04 Thread matthias
Hi Mark, On Jun 4, 5:57 pm, Mark Murphy mmur...@commonsware.com wrote: onSaveInstanceState() is called in cases other than screen rotations (e.g., activity is being closed up due to low memory), and in those other cases, onRetainNonConfigurationInstance() is not used at all. yes, but

  1   2   >