[android-developers] Re: Activity and view inflation

2010-05-05 Thread Michael Scott
the views, you may use methods like getChildAt() 2010/5/4 Michael Scott gebat.s...@gmail.com Well, I could I guess, but what I was looking for was a way to iterate through the views in a layout to do some common stuff to them. Say for instance that I would like to set the background

[android-developers] Re: Activity and view inflation

2010-05-03 Thread Michael Scott
is: why doesn't onCreateView() get called? /Michael On 3 Maj, 01:34, TreKing treking...@gmail.com wrote: On Sun, May 2, 2010 at 2:39 PM, Michael Scott gebat.s...@gmail.com wrote: I have an Acitivity and I would like to fiddle with the views upon creation Can't you just findViewById(int

[android-developers] Activity and view inflation

2010-05-02 Thread Michael Scott
I have an Acitivity and I would like to fiddle with the views upon creation. I thought that the way to do this would be to hook in on onCreateView during inflation. But the method just doesn't get called, no matter if I use setContentView(id) or onCreateView(view) with a View I inflated with

[android-developers] Re: AppWidgets and permissions

2010-02-23 Thread Michael Scott
bump! On Feb 19, 3:54 pm, Michael Scott gebat.s...@gmail.com wrote: Hi, I've developed anappWidgetby inheriting AppWidgetProvider and adding it to the manifest as a receiver with theappwidget-metatag. Works fine. Two questions though: 1. It seems that the only reason to add

[android-developers] AppWidgets and permissions

2010-02-19 Thread Michael Scott
Hi, I've developed an appWidget by inheriting AppWidgetProvider and adding it to the manifest as a receiver with the appwidget-metatag. Works fine. Two questions though: 1. It seems that the only reason to add APPWIDGET_UPDATE to the intentfilter of the receiver is to let the widgetpicker

[android-developers] TextView StaticLayout

2010-02-01 Thread Michael Scott
Hi, I'm trying to calculate whether a string will fit into a textview or not, using a StaticLayout and the trimming the string to fit. But cannot figure out what the actual width and height of the printable textarea of the textview, how to subtract(?) padding, margins etc from the height and

[android-developers] Re: RemoteViews setSelected

2010-01-29 Thread Michael Scott
Great! Thank you! /Michael On Jan 28, 4:19 pm, Mark Murphy mmur...@commonsware.com wrote: I am trying to do aRemoteViews.setBoolean(R.id.a_text_view, setSelected, true) on a text view in a homescreen widget to select the view, but I only get the textview to display a text like error

[android-developers] RemoteViews setSelected

2010-01-28 Thread Michael Scott
Hi, I am trying to do aRemoteViews.setBoolean(R.id.a_text_view, setSelected, true) on a text view in a homescreen widget to select the view, but I only get the textview to display a text like error expanding view(!). The log says: android.widget.RemoteViews$ActionException: view:

[android-developers] Re: Logs from framework.jar

2010-01-04 Thread Michael Scott
, jotobjects jotobje...@gmail.com wrote: Can you provide more detail about the scenario - what are you running on the device, what logging are you expecting, and how are you examining logcat? On Jan 2, 10:10 am, Michael Scott gebat.s...@gmail.com wrote: Anyone? On 29 Dec 2009, 19:29

[android-developers] Re: Logs from framework.jar

2010-01-02 Thread Michael Scott
Anyone? On 29 Dec 2009, 19:29, Michael Scott gebat.s...@gmail.com wrote: Hi, Why does no logprints from theframework-code (Telephony) show up in logcat? Is there a setting somewhere I should turn on or something? Thanks, Michael -- You received this message because you are subscribed

[android-developers] Logs from framework.jar

2009-12-29 Thread Michael Scott
Hi, Why does no logprints from the framework-code (Telephony) show up in logcat? Is there a setting somewhere I should turn on or something? Thanks, Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] DynamicLayout and StringBuilder

2009-12-11 Thread Michael Scott
Hi, I am writing a custom View that uses a DynamicLayout to write text on the screen. The DynamicLayout is constructed with a StringBuilder that I use to change the text. This works fine, but my problem is that when I add linebreaks to the string, sb.append(\n), they show up as squares on the

[android-developers] Tapping activity after startActivityForResult

2009-11-23 Thread Michael Scott
Hi, I have two buttons in an activity/view A0, b1 and b2 that respectively starts (for result) the activities A1 and A2. After tapping/clicking b1 I quickly tap b2 aswell. The result will be that both A1 and A2 are launched. Is there any obvious way to not have this behaviour, i.e. to lock A0? I