[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
> 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, visit this group at > http://groups

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

2012-05-16 Thread Matthias Böhmer
so, is there kind of a best practice so solve this? On May 16, 2012 11:24 PM, "Dianne Hackborn" 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 found if there ar

[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 subscrib

[android-developers] TeamCity and monkeyrunner

2011-09-08 Thread Matthias Braun
eep(5). Stacktrace <http://pastebin.com/JsG1uxT1> Can 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 Goo

[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-

[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 t

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] Android Library including source folder

2011-02-11 Thread Matthias Stock
you have another idea on how to include (system independent) java classes into an Android Library project? Thanks for reading. I wasn't able to make it short... Hopefully, I made it clear at least. Btw.: This is for a bachelor thesis, no commercial stuff. Best regards, Matthias -- You received t

[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 bet

[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 re

[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 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] 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: Spawning dialogs in ActivityUnitTestCase fails

2011-02-08 Thread Matthias
test-case thread)? > > On Feb 8, 11:47 am, Matthias 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 cal

[android-developers] Spawning dialogs in ActivityUnitTestCase fails

2011-02-08 Thread Matthias
ption 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&

[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
CT_EVENTS permission, 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 Go

[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@googl

[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.co

[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 > Hi, > I implemented a splash screen activity in the following way. > > [...] > >

[android-developers] onConfigurationChanged whielk splash scrren i shown

2010-04-14 Thread Matthias
ange the handler add 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 p

[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 G

[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 wrote: > I dont want title bar in my application, how to remove that ? in my > activity ? > > Jagat -- You received

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

2009-11-25 Thread Matthias
On Nov 24, 5:28 pm, Romain Guy 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 natively 565. You me

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

2009-11-25 Thread Matthias
On Nov 24, 5:28 pm, Romain Guy 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 natively 565. You me

[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
-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 G

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

2009-11-10 Thread Matthias
re is no way to scroll it. So do I need to wrap it in a ScrollView after all? 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 unsubsc

[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] Multipart file uploads using Apache Mime4J still not working

2009-10-23 Thread Matthias
).getValue()); 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

[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 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

[android-developers] Managing background uploads

2009-10-21 Thread Matthias
fference at all. 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@google

[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 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-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: Dialog cannot fill whole screen

2009-09-04 Thread matthias
that size 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 wrote: > The dialog theme, as part of its nature, sets the top-leve

[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" 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 dynamically and you don't want

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

2009-09-01 Thread Matthias
that I already 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] Re: Customing the look&feel 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" wrote: > Hi Guys, > > I'm seeking a way to customize the look&feel of DatePicker and TimePicker. > But I couldn't find any theme attribute to be related to these two > widgets... Any help is greatly appr

[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 De

[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 WindowManager.LayoutParam

[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: in Gallery1.java: // See res/values/attrs.xml for the that defines // Gallery1.

[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 co

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

2009-08-31 Thread Matthias
entation, so I guess 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-develop

[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-develop

[android-developers] TextView always loses focus after orientation change

2009-06-11 Thread Matthias
uring 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 a

[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 thos

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

2009-06-10 Thread matthias
mand 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

[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: 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-develop

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

2009-06-05 Thread Matthias
}); however, the onclick 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 beca

[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@googlegr

[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-develop

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

2009-06-04 Thread matthias
Hi Mark, On Jun 4, 5:57 pm, "Mark Murphy" 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 wouldn't it be more clever

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

2009-06-04 Thread Matthias
I don't really see how it would help. It says in the documentation that this can be used for optimizing performance when the configuration changes, e.g. for passing around objects that are expensive to construct or serialize. However, it is mentioned that this is not a replacement for onSaveInstan

[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 th

[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

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

2009-05-28 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 onDestro

[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-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 (ACTIVITY_SERV

[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 "Andro

[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 a

[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@googlegro

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

2009-05-19 Thread matthias
han say, dom4j, AND does everything you actually need, then that's cool. I didn't see myself re- inventing the wheel though. On May 19, 5:14 pm, Zero wrote: > as much as i love dom4j (and i do!), how is performance on the > hardware ? > dom4j tends to suck in  a lot of memory,

[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 --~--~-~--~~~---~--~

[android-developers] -ing views into RelativeLayouts

2009-05-18 Thread Matthias
including file. Like this: ... ... ... 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, Mat

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

2009-05-14 Thread matthias
; >> need to know that gravity means "apply gravity to the content of this > >> view" whereas layout_gravity means "apply gravity to this view within > >> its parent." So on a TextView, gravity will align the text within the > >> bounds of the TextVi

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

2009-05-14 Thread Matthias
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: 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 pas

[android-developers] Re: in TableRow

2009-05-13 Thread matthias
com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/transparent"> ... ... ...

[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-develop

[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 sharedPre

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

2009-05-07 Thread matthias
prefFiles = 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. T

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

2009-05-06 Thread Matthias
I am trying to set up XML parsing using JDOM/Jaxen, but as soon as I call XPath.setXPathClass(org.jaxen.jdom.JDOMXPath.class); Android throws a "VerifyError" on that JDOMXPath class. Any idea what is causing this? Does anyone do XPath on Android? Cheers

[android-developers] OAuth on Android

2009-05-06 Thread Matthias
com/p/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

[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-

[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 unsubs

[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: http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="14dip" android:p

[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 whene

[android-developers] Re: Fling on ListView

2009-04-01 Thread matthias
may be different), giving 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 wrote: > > Doesn't look like fling support as known from the iPhone was ever > > meant to be part of Android'

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

2009-04-01 Thread matthias
ribly 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, Mat

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

2009-04-01 Thread Matthias
er to resize 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

[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 gr

[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 Develo

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

2009-03-31 Thread matthias
you have consumed 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,

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

2009-03-31 Thread Matthias
t;; android:id="@+id/list_dialog_list" android:layout_width="wrap_content" android:layout_height="wrap_content" /> Any ideas? Cheers, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed

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

2009-03-30 Thread Matthias
ne, almost 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 "And

[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: testing using EasyMock

2009-03-29 Thread matthias
ndroid 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 are subscr

[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 (i

[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 state

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

2009-03-27 Thread matthias
ton 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 wrote: > > > okay, one

[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 por

[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
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-26 Thread matthias
Hi, On Mar 26, 4:04 pm, Streets Of Boston 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), then close your app

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

2009-03-26 Thread matthias
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.

[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 k

[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-

  1   2   >