[android-developers] Is Google Play In-App Billing mandatory?

2016-06-09 Thread Matthias Schlesinger
Hi, I'm developing an application that includes premium content that requires a subscription. Ideally, I want to handle the subscription process and payments myself. According to this article "Google has

Re: [android-developers] Disclaimer in Android Developer Console for Google Play Market

2012-11-27 Thread Matthias Böhmer
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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Matthias Böhmer

Re: [android-developers] Multiple IntentServices for one Intent

2012-05-17 Thread Matthias Böhmer
so, is there kind of a best practice so solve this? On May 16, 2012 11:24 PM, Dianne Hackborn hack...@android.com wrote: Sorry you can't. You should basically never call startService() or bindService() with an implicit intent; you will get essentially random behavior in the service that is

[android-developers] Re: Android Library sources not found

2012-01-13 Thread Matthias
While Eclipse now finds the sources while debugging, I am still not able to click through to the source of any item referenced from my app project. Does that work for you? ^^ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: TeamCity and monkeyrunner

2011-09-14 Thread Matthias Braun
After a colleague and I have investigated the problem for three days, we could not find the source of this problem. But when we used another PC as the build agent, the issue was gone. We still don't know what caused this NullPointerException. -- You received this message because you are

[android-developers] TeamCity and monkeyrunner

2011-09-08 Thread Matthias Braun
it be that monkeyrunner and TeamCity don't go along well with each other? If anybody could point me in the right direction I would be very happy. Best, Matthias -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: adb serving a limited number of devices attached to PC via USB

2011-08-02 Thread Matthias Braun
I am also interested in the maximum number of devices adb can serve. Is there a maximum number at all? 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] Aw: Re: PackageManage: Couldn't copy package file to temp file.

2011-05-20 Thread Matthias
I see this happening with rooted G1s, was your phone rooted by any chance? In any case, I can install packages via adb and Eclipse, but not using the 'pm' command on the device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Country code from Location API

2011-05-19 Thread Matthias Böhmer
Hi, thanks! There are a lot of web services that provide country codes. But I would rather like to do it offline, directly on the device. Is there any possibility to get the country code from any API directly on the device? Am 19.05.2011 um 12:41 schrieb gaurav gupta: Hi , i can provide u api

[android-developers] Re: Emulator crashing with System Tools rev 9

2011-02-11 Thread Matthias
just out of curiosity, are you on a Mac? I found the tools to be much less stable on OSX than on Linux (don't know about Windows), although that has gotten a little better (e.g. the adb server used to crash all the time on OSX, and while the crashes are not entirely gone, it has gotten a lot

[android-developers] Android Library including source folder

2011-02-11 Thread Matthias Stock
... Hopefully, I made it clear at least. Btw.: This is for a bachelor thesis, no commercial stuff. 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@googlegroups.com

[android-developers] Re: Emulator crashing with System Tools rev 9

2011-02-10 Thread Matthias
the rev9 emulator is also very unstable for me. Whenever I send a geo fix (from DDMS or telnet), the emulator crashes and reboots. It also randomly reboots when using it sometimes. I wonder if that's related to the same issue the Nexus S has. it's also slower than previous emulators. -- You

[android-developers] Re: Spawning dialogs in ActivityUnitTestCase fails

2011-02-09 Thread Matthias
http://code.google.com/p/android/issues/detail?id=14616 On Feb 8, 6:42 pm, Matthias m.kaepp...@googlemail.com wrote: I'm pretty sure it's a bug. When running this directly in the test case, I get the same error:         getInstrumentation().runOnMainSync(new Runnable

[android-developers] Spawning dialogs in ActivityUnitTestCase fails

2011-02-08 Thread Matthias
the activity window seems to be valid, and clicking buttons and everything works fine. Are dialog interactions generally not possible in ActivityUnitTestCase? Why? Thanks a lot, -Matthias -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Spawning dialogs in ActivityUnitTestCase fails

2011-02-08 Thread Matthias
thread)? On Feb 8, 11:47 am, Matthias m.kaepp...@googlemail.com wrote: Hi, we're running into an issue here where in a unit test for an activity, we test a dialog that's part of the activity. However, as soon as control flow reaches the call to Dialog.show, the test case crashes

[android-developers] Re: Spawning dialogs in ActivityUnitTestCase fails

2011-02-08 Thread Matthias
I'm pretty sure it's a bug. When running this directly in the test case, I get the same error: getInstrumentation().runOnMainSync(new Runnable() { @Override public void run() { AlertDialog.Builder b = new AlertDialog.Builder(getInstrumentation()

[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] 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: 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] 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] 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] Re: onConfigurationChanged whielk splash scrren i shown

2010-04-14 Thread Matthias Hog
I solved.. ;) I forgot to set the android:configChanges=orientation in the AndroidManifest.xml. Never the less, thanks for reading! Best regarts Matthias 2010/4/14 Matthias matthias@googlemail.com Hi, I implemented a splash screen activity in the following way. [...] public class

[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] 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] 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] 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] 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] 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: 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] 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: 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] 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] 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] Re: TextView always loses focus after orientation change

2009-06-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] TextView always loses focus after orientation change

2009-06-11 Thread Matthias
save, but can't be found during restore. Is this a bug? I looked at the mID field of that view, and it's identical for both the portrait and the landscape layout. Thanks, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Android 1.1 virtual devices don't show up as run targets

2009-06-10 Thread Matthias
Hi, even when setting minSdkVersion to 2, any Android 1.1 virtual device does not appear in the list of run targets when launching the emulator. How come? Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Android 1.1 virtual devices don't show up as run targets

2009-06-10 Thread matthias
line tools, no difference.) If it's not visible, try to stop and restart your Eclipse tool. I probably restarted Eclipse 20 times since I created them. Didn't help :-) Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Android 1.1 virtual devices don't show up as run targets

2009-06-10 Thread matthias
I just received a reply via email; the answer is: It's not sufficient to set minSdkVersion to 2, one must also go to project -- settings -- build target and select 1.1 there. That doesn't really help though, because now the resource compiler breaks on any imeOptions attributes, even though those

[android-developers] Re: How to change the state of a stateful drawable?

2009-06-08 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: IME options behavior is inconsistent across different devices

2009-06-05 Thread matthias
I raised a bug report: http://code.google.com/p/android/issues/detail?id=2882 --~--~-~--~~~---~--~~ 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] How to change the state of a stateful drawable?

2009-06-05 Thread Matthias
handler always enters the else clause and the dump always prints W P E, which means that the call to setState (checked) has no effect... I guess? What am I missing? Thanks, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed

[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

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

2009-06-04 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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

  1   2   >