[android-developers] Hello I want to publish my first App and have a few questions
I was busy learning and developing my first hobby app project in the last few months which is almost ready for release. I plan to include ads with AdMob if/when the app reaches enough downloads to make it profitable. Then I would need to register a small business in my country (Germany). Also a inapp purchases to remove the ads are planned, and further an ingame coin system where you can buy additional coins through ingame purchases. Now my questions: 1. When I publish the app as a free app in the beginning, can I include and add inapp-purchases anytime after the release? 2. Can I change my Developer Name that is shown in the Play Store? 3. What account information do I have to specify when I register for the Google Play Developer Console and does something need to be changed after I register my small business (/is it changable)? 4. Is what I plan to do generally possible or did I miss something (I mean to add business information after the release and make the app profitable)? :) I would be really thankful if you could help me (as I could not find any Google support yet)! :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/f9f63870-21a2-4e0c-8403-70b9f754cc75%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Scale centerCrop on Activity windowBackground drawable
Any luck with this? Den fredag 9 april 2010 kl. 07:17:59 UTC+2 skrev patbenatar: > > Hey all- > > I'm trying to make my loading screen [for while data is fetched from > the Web] display faster by using a background drawable on the Activity > instead of a full-screen ImageView. This works as it should, as in the > image is displayed right away by the system instead of showing the > default theme background before loading in my ImageView. The problem > is I need to be able to scale this image using scaleType="centerCrop", > which works great on but apparently not on > [although Eclipse doesn't have any problems with me setting it as an > attribute of ]. > > Here's a portion of my theme.xml where I set the background drawable.. > This works. [I am declaring a custom theme and setting my Activity to > use this theme in my manifest.] > > @drawable/splash_bg > > And here's the contents of splash_bg.xml [excluding the top doctype > line]. > > http://schemas.android.com/apk/res/android; > android:src="@drawable/grub_truck_splash" > android:scaleType="centerCrop" /> > > Any help would be great! > > It would be much preferred to do this in the XML rather than > programmatically.. I don't think I could get the same instant display > of the image effect if I were to do it programmatically, anyhow. > > Thanks, > Nick > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a453b382-7fff-43bb-b65c-d2f36e7ff415%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Published App not visible in PlayStore
Hi, a few days ago we've published our second android game. When I search it in the PlayStore it is not visible. The only way to get on the store entry is by clicking on our first game on "other apps developed by..." The game is called "Highway Race" from Maikor Studios. Does anybody has a guess or hint why the app is not visible? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/d071ef6c-38b5-4eac-893b-667ee159db54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Using custom xsd besides xmlns:android
In my custom XML files (located in res/xml), I want to use the Android Namespace (xmlns:android="http://schemas.android.com/apk/res/android;) to be able to use attributes like android:text. However, I also want to set my own XSD-File for validation purposes (for myself only. So Android Studio reports errors when I make a typo or forget about tags) For some reason, whenever I add another xmlns, it says that xmlns:android is no longer valid (URI not registered). Is there a way to do this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5a7822a8-209c-46de-bef9-bad037a9f4fa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Referencing string resource in custom XML resource
I have custom xml files saved in my res/xml folder which use my own schema. Example: 1 Hello! How are you? Now I am trying to replace the string in the `text`-tags by a string resource (e.g. @strings/dialog_text_1). However, this does not seem to work. Is this even possible and if yes, how? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/81696466-0b43-4fa5-84ce-a14b976c96e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Scenario where initLoader() does not call onLoadFinished()
Hello Rainer, currently struggling with the same issue and already tried nearly every possible solution out there (besides using the SupportLoaderManager) Your solution does not work in my case, after configuration change i still get no onLoadFinished-callback and therefore the data-field stays empty. . I'm using an activity with a single fragment that contains all the loader-stuff in onActivityCreated (also tried this in other lifecycle methods), any other solutions found in the meantime? (API 21, Lollipop) Thanks in advance Am Donnerstag, 4. Juli 2013 20:16:41 UTC+2 schrieb Rainer: Etienne, your solution is nearly correct. This is the working solution public static T void initLoader(final int loaderId, final Bundle args, final LoaderCallbacksT callbacks, final LoaderManager loaderManager) { final LoaderT loader = loaderManager.getLoader(loaderId); if (loader != null loader.isReset()) { loaderManager.restartLoader(loaderId, args, callbacks); } else { loaderManager.initLoader(loaderId, args, callbacks); }} On Friday, July 27, 2012 12:00:17 AM UTC+2, Etienne wrote: Actually it should be: Loader loader = getLoaderManager().getLoader(-1); if (loader != null !loader.isReset()) { getLoaderManager().restartLoader(-1, null, this); } else { getLoaderManager().initLoader(-1, null, this); } You should only restart the loader if the loader is NOT reset. So the second condition in the if condition changes to the negated version. I got this to work for me. On Thursday, January 12, 2012 10:47:58 PM UTC-8, David Wu wrote: Hi there, I ran into a very similar problem and solved it by replacing the following line in onActivityCreate() getLoaderManager().initLoader(0, getArguments(), this); to Loader loader = getLoaderManager().getLoader(0); if ( loader != null loader.isReset() ) { getLoaderManager().restartLoader(0, getArguments(), this); } else { getLoaderManager().initLoader(0, getArguments(), this); } Not sure if it addresses your problem. I hope it helps. On Dec 13 2011, 3:29 pm, kaciula catalin.moro...@gmail.com wrote: As I said, the initial bugs were fixed by revision 4 of ACL. However, there is still a bug present in both the ACL and Android. I've tested it with Android version 3.2 and 4.0. Check out the updated project athttps:// github.com/kaciula/BugRetain I think this is a pretty important bug. The scenario is this: From activity A, go to activity B, switch once the orientation and go back to activity A. As a consequence of this bug, I can't write an app with fragments that use setRetainInstance and is available in both orientations. I really need a workaround until the Android guys fix the issue. Thoughts? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Choreographer regularly skipping frames during OpenGL Render
Are you using TextureView? Do you see the same issue with a GLSurfaceView? You could also try using http://developer.android.com/tools/debugging/systrace.html to see if anything strange is going on in the system when you drop frames. OpenGL-wise it looks pretty simple. Tobias Den tisdagen den 15:e april 2014 kl. 06:00:24 UTC+2 skrev Dave Smith: Thanks for the response, Doug, but we're talking about two different things. I'm not referring to the errors that show up the log tagged Choreographer when the frame warning limit is triggered on the main thread. I'm talking about actually using the Choreographer API to render OpenGL content locked to VSYNC. These delays are on the rendering threads. While I understand frames dropping periodically when the system is servicing other work, the inability to manage even a few second without skipping several VSYNC intervals indicates to me that something else is wrong with the GL code. Thanks again, Dave Smith, PE Double Encore, Inc. On Sunday, April 13, 2014 12:51:07 PM UTC-6, Doug wrote: Bear in mind that anything could be causing main thread delays. It could be your code. It could be other threads in your app's process. It could be other apps running on the device. It could be Android itself. It could be any combination of these things. This is to be expected with multitasking multiuser operating systems and the wide variety of devices out there and their hardware capabilities. The Choreographer itself doesn't start complaining about skipped frames in logcat until after 30 frames have been skipped: private static final int SKIPPED_FRAME_WARNING_LIMIT = SystemProperties.getInt( debug.choreographer.skipwarning, 30); So maybe you can lighten up your own acceptable threshold for frames skipped (unless you're actually observing the jank that you're trying to avoid)? Doug On Friday, April 11, 2014 10:37:39 AM UTC-7, Dave Smith wrote: Hello all - I am working on an application that is using Choreographer and OpenGL to render flash patterns on the display. Our GL calls are quite simple, simply toggling the display back and forth between white and black using glClearColor() based on the frame time and status of the pattern we want to apply. The timing of this pattern if very critical, and I am having severe issues getting consistent behavior out of the timing pulses we received from Choreographer to do the rendering. For simplicity sake, I have basically copied the Basic Dream application in AOSP, so 95% of my code looks exactly like this sample: https://android.googlesource.com/platform/packages/screensavers/Basic/+/master Our only change is that, where they call mSquare.draw() inside of doFrame(), we have another method called drawFrame() that does the following: private void drawFrame() { final boolean nextBit = mPattern[mIndex]; if (nextBit) { glClearColor(1.0f, 1.0f, 1.0f, 1.0f); } else { glClearColor(0.0f, 0.0f, 0.0f, 1.0f); } glClear(GL_COLOR_BUFFER_BIT); return true; } However, for the purposes of this discussion, you can see the *exact same behavior* by simply running the AOSP sample as an application (i.e. changing the Colors class from a DreamService to a launcher Activity). The problem is that on a regular basis (at least once per second, often many times), the debug logging returns that the frame callback took 33ms (instead of 16ms), and in many cases 50ms+! I can understand skipping a rare frame here or there, but skipping 3-4 frames at once seems like I'm missing something big here. Not all devices do this, but high-end devices like the Nexus 5 and GS4 do. Devices we've tested like the Note 3, GS3, and Moto X don't seem to do so nearly as often. Example typical logcat over a period of 30 seconds: 04-11 11:35:43.918 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (49865722 ms) frame 2 04-11 11:35:43.948 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33264161 ms) frame 3 04-11 11:35:43.988 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33233641 ms) frame 4 04-11 11:35:44.018 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33233644 ms) frame 5 04-11 11:35:45.860 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33264161 ms) frame 115 04-11 11:35:46.881 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33233641 ms) frame 175 04-11 11:35:47.692 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33233642 ms) frame 222 04-11 11:35:48.242 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33264160 ms) frame 255 04-11 11:35:49.373 10441-10455/com.android.dreams.basicgl V/ColorsGLRenderer﹕ JANK! (33233643 ms) frame 322 04-11 11:35:53.908 10441-10455
Re: [android-developers] Re: How to calculate a tablets resolution before purchasing the tablet
I found this dpi/ppi calculator to be useful: http://www.sven.de/dpi/ It will give you the actual physical dpi. Taking this value and then rounding it to the closet dpi bucket (http://developer.android.com/reference/android/util/DisplayMetrics.html) would be a good bet, even though the manufacturer could choose a different bucket. Tobias Den onsdagen den 16:e april 2014 kl. 09:14:48 UTC+2 skrev Simon Giddings: Thank you Marina for your reply which is much more useful. Even if it means that I am stuck at this point. After all, as independent developers, we are not all sufficiently rich to be able to purchase a number of tablet devices to be able to run our tests. Thank you again Marina, I won't be wasting my time searching further. On Tuesday, 15 April 2014 15:27:10 UTC+2, Marina Cuello wrote: You can search for/make an app that detects the bucket and install it, if you have access to the device. A quick search gives me https://play.google.com/store/apps/details?id=com.pmc.android.checkscreensize, but there are plenty. Otherwise, as far as I can recall it depends on the manufacturer's decision which bucket it takes. So no, you can't calculate the bucket given the physical screen size and dpi specs. Marina On Tue, Apr 15, 2014 at 4:06 AM, Simon Giddings mr.s.g...@gmail.comwrote: The effort I made did not reveal this result and it certainly does not answer the question ! My question was more general, if you hadn't noticed. Given that most tablets will give a horizontal and vertical pixel size as well as a diagonal size in inches, is it possible to determine the density bucket (to use googles term) ie: MDPI or HDPI or XHDPI, etc From what you have managed to find, this device would appear to fall between two buckets - HDPI and XHDPI because - HDPI screens are ~240dpi - XHDPI screens are ~320dpi (according to Supporting Multiple Screenshttp://developer.android.com/guide/practices/screens_support.html ) So the question remains open On Monday, 14 April 2014 20:21:31 UTC+2, Chris wrote: Googling the exact phrase Toshiba eXcite Pro AT10LE-A-10D screen DPI yields in the first result a screen DPI of 300. At least give it an effort. - C On Tuesday, April 1, 2014 3:28:39 AM UTC-4, Simon Giddings wrote: I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which boasts a screen resolution of 2560 x 1600 pixels for a screen diagonal of 10.1. Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc ? I haven't been able to find any form of developer support on the toshiba web site, which could have helped. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Proxy support for ALL apps (when?)
Hey guys, one of the most important features for using android devices at universities, companys, governments etc. is still missing in android! *It's proxy support (with authentication) for ALL apps and not just the browser...* There are a few issue-threads on google code ( https://code.google.com/p/android/issues/detail?id=36481, https://code.google.com/p/android/issues/detail?id=35930), where many people beg for proxy support, but no one seems to care about! So i opened up this thread to gain some more attention on this issue and i hope it will finally be integrated into the next version of android, that will be presented at google io 2013. I really hope, that some folks from google (eg. JBQ) read this and pass it over to their developers, if not already done... This feature is essential for some of us, and it's sad to see that iOS has support since 4.3 (it's just one simple checkbox labeled Use this proxy for all apps), while android still doesn't! I'm sure this isn't a big deal for the great devs at google, so please finally implement it, we really need this in android 4.3. PS: none of the root solutions (eg. proxy droid) worked for me and this must be possible WITHOUT root, as rooting your device is not allowed at some companies etc. -- -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 11 Topics
-- -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers]
-- -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
Hehe, yeah. 2013/1/17 b0b pujos.mich...@gmail.com On Wednesday, 16 January 2013 10:43:37 UTC+1, Kostya Vasilyev wrote: Heh. Looks like it *is* intentional. https://android.googlesource.**com/platform/frameworks/base/+** /refs/heads/master/services/**java/com/android/server/** NotificationManagerService.**javahttps://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java That change is really stupid. Another incentive to replace Toast with a custom implementation whose behaviour will not change over time. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
Definetly a bug, no one would be stupid enough to do that on purpose. Or at least I hope so. 2013/1/15 Kevin Duffey andjar...@gmail.com Indeed that is important.. why would a toast notification be blocked by that setting? Obviously a bug.. I can't imagine they meant to do that. On Tue, Jan 15, 2013 at 2:09 PM, Mark Murphy mmur...@commonsware.comwrote: Wow. That's an important find. Thanks for pointing this out! On Tue, Jan 15, 2013 at 4:31 PM, Harri Smått har...@gmail.com wrote: Hi, There's a bug filed on Android bug database; http://code.google.com/p/android/issues/detail?id=35013 In other words, if you disable application notifications, Toasts also are disabled for that particular application. Could this be the reason for behaviour Tobias is facing? -- H On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote: I have also tried this with the Galaxy S3 and 4.1.1, and the Toast shows fine. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
That is really strange, if the user should have the option of disabling it should not be bulked with push notifications. 2013/1/16 Kostya Vasilyev kmans...@gmail.com Heh. Looks like it *is* intentional. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java Lines 693-707: final boolean isSystemToast = (android.equals(pkg)); if (ENABLE_BLOCKED_TOASTS !isSystemToast !areNotificationsEnabledForPackageInt(pkg)) { Slog.e(TAG, Suppressing toast from package + pkg + by user request.); return; } Line 114: private static final boolean ENABLE_BLOCKED_TOASTS = true; Commit diff: https://android.googlesource.com/platform/frameworks/base/+/0da673f02e542c644c300568807c80e196296860%5E ! -- K 2013/1/16 Tobias Lindberg tobias.e.lindb...@gmail.com: Definetly a bug, no one would be stupid enough to do that on purpose. Or at least I hope so. 2013/1/15 Kevin Duffey andjar...@gmail.com Indeed that is important.. why would a toast notification be blocked by that setting? Obviously a bug.. I can't imagine they meant to do that. On Tue, Jan 15, 2013 at 2:09 PM, Mark Murphy mmur...@commonsware.com wrote: Wow. That's an important find. Thanks for pointing this out! On Tue, Jan 15, 2013 at 4:31 PM, Harri Smått har...@gmail.com wrote: Hi, There's a bug filed on Android bug database; http://code.google.com/p/android/issues/detail?id=35013 In other words, if you disable application notifications, Toasts also are disabled for that particular application. Could this be the reason for behaviour Tobias is facing? -- H On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote: I have also tried this with the Galaxy S3 and 4.1.1, and the Toast shows fine. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
True, will do. 2013/1/16 Raghav Sood raghavs...@gmail.com @Tobias Now that you've found the problem, it'd be nice if you could close your question on StackOveflow as well. I posted the answer for now, but it would probably be best if you posted it from your own account and accepted it. Raghav Sood http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 On Wed, Jan 16, 2013 at 6:11 PM, Tobias Lindberg tobias.e.lindb...@gmail.com wrote: That is really strange, if the user should have the option of disabling it should not be bulked with push notifications. 2013/1/16 Kostya Vasilyev kmans...@gmail.com Heh. Looks like it *is* intentional. https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/services/java/com/android/server/NotificationManagerService.java Lines 693-707: final boolean isSystemToast = (android.equals(pkg)); if (ENABLE_BLOCKED_TOASTS !isSystemToast !areNotificationsEnabledForPackageInt(pkg)) { Slog.e(TAG, Suppressing toast from package + pkg + by user request.); return; } Line 114: private static final boolean ENABLE_BLOCKED_TOASTS = true; Commit diff: https://android.googlesource.com/platform/frameworks/base/+/0da673f02e542c644c300568807c80e196296860%5E ! -- K 2013/1/16 Tobias Lindberg tobias.e.lindb...@gmail.com: Definetly a bug, no one would be stupid enough to do that on purpose. Or at least I hope so. 2013/1/15 Kevin Duffey andjar...@gmail.com Indeed that is important.. why would a toast notification be blocked by that setting? Obviously a bug.. I can't imagine they meant to do that. On Tue, Jan 15, 2013 at 2:09 PM, Mark Murphy mmur...@commonsware.com wrote: Wow. That's an important find. Thanks for pointing this out! On Tue, Jan 15, 2013 at 4:31 PM, Harri Smått har...@gmail.com wrote: Hi, There's a bug filed on Android bug database; http://code.google.com/p/android/issues/detail?id=35013 In other words, if you disable application notifications, Toasts also are disabled for that particular application. Could this be the reason for behaviour Tobias is facing? -- H On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote: I have also tried this with the Galaxy S3 and 4.1.1, and the Toast shows fine. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
My carrier is a Danish carrier called Tre (Three) but I dont have a carrier dependent phone, I ordered it over the internet. 2013/1/14 bob b...@coolfone.comze.com Who is your carrier? On Monday, January 14, 2013 7:06:36 AM UTC-6, Tobias wrote: I have a toast displayed in the following way: Toast.makeText(context, The message, Toast.LENGTH_LONG).show(); I am 100% I am displaying the toast from the UI thread and I can add that it worked fine for many devices including older updates of Galaxy S3 but after latest update no one of my toasts are being displayed. Have anyone else experienced this and have a solution? Thanks, Tobias -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
My carrier is a Danish carrier called Tre (Three) but I dont have a carrier dependent phone, I ordered it over the internet. On Monday, January 14, 2013 5:38:53 PM UTC+1, bob wrote: Who is your carrier? On Monday, January 14, 2013 7:06:36 AM UTC-6, Tobias wrote: I have a toast displayed in the following way: Toast.makeText(context, The message, Toast.LENGTH_LONG).show(); I am 100% I am displaying the toast from the UI thread and I can add that it worked fine for many devices including older updates of Galaxy S3 but after latest update no one of my toasts are being displayed. Have anyone else experienced this and have a solution? Thanks, Tobias -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
That must have been it, it started working today and by coincidence my boss came and told me that there is some issues with push so I went and checked there and it was not enabled and well yeah, enabled it and without connecting it it started working again and now when u mention this it makes total sense. Cheers for the reply :) 2013/1/15 Harri Smått har...@gmail.com Hi, There's a bug filed on Android bug database; http://code.google.com/p/android/issues/detail?id=35013 In other words, if you disable application notifications, Toasts also are disabled for that particular application. Could this be the reason for behaviour Tobias is facing? -- H On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote: I have also tried this with the Galaxy S3 and 4.1.1, and the Toast shows fine. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
I have a toast displayed in the following way: Toast.makeText(context, The message, Toast.LENGTH_LONG).show(); I am 100% I am displaying the toast from the UI thread and I can add that it worked fine for many devices including older updates of Galaxy S3 but after latest update no one of my toasts are being displayed. Have anyone else experienced this and have a solution? Thanks, Tobias -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
I am using an Activity context. As mentioned it works on every phone I have in the office but the Samsung Galaxy S3 and it used to work on Galaxy S3. To me it seems like Samsung have broken Toasts in their latest update. On Monday, January 14, 2013 2:27:46 PM UTC+1, Mark Murphy (a Commons Guy) wrote: What Context are you using? Is it the Activity, or something else? If it is not the Activity, try switching to that and see if the behavior changes. I wouldn't expect that to have an impact, but, then again, I wouldn't expect your problem, either. On Mon, Jan 14, 2013 at 8:06 AM, Tobias tobias.e...@gmail.comjavascript: wrote: I have a toast displayed in the following way: Toast.makeText(context, The message, Toast.LENGTH_LONG).show(); I am 100% I am displaying the toast from the UI thread and I can add that it worked fine for many devices including older updates of Galaxy S3 but after latest update no one of my toasts are being displayed. Have anyone else experienced this and have a solution? Thanks, Tobias -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
I tried for e.g. the Alarm app and ofc the Toast worked there but I still find it strange, I haven't made any changes and it worked bofore and when I am trying on e.g. my HTC wildfire S that I got here as well it works fine. On Monday, January 14, 2013 2:55:09 PM UTC+1, Mark Murphy (a Commons Guy) wrote: On Mon, Jan 14, 2013 at 8:48 AM, Tobias tobias.e...@gmail.comjavascript: wrote: I am using an Activity context. As mentioned it works on every phone I have in the office but the Samsung Galaxy S3 and it used to work on Galaxy S3. To me it seems like Samsung have broken Toasts in their latest update. Do any other apps, already on the device, display toasts as they used to? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
Yes, I have a print out both before and after the Toast that I can see so the code is definitely executed. Have you tried it on S3 with latest update? On Monday, January 14, 2013 3:09:46 PM UTC+1, Mark Murphy (a Commons Guy) wrote: Have you used a debugger, or Log statements, to confirm that the code paths in which you raise the Toast is still being executed? On Mon, Jan 14, 2013 at 9:05 AM, Tobias tobias.e...@gmail.comjavascript: wrote: I tried for e.g. the Alarm app and ofc the Toast worked there but I still find it strange, I haven't made any changes and it worked bofore and when I am trying on e.g. my HTC wildfire S that I got here as well it works fine. On Monday, January 14, 2013 2:55:09 PM UTC+1, Mark Murphy (a Commons Guy) wrote: On Mon, Jan 14, 2013 at 8:48 AM, Tobias tobias.e...@gmail.com wrote: I am using an Activity context. As mentioned it works on every phone I have in the office but the Samsung Galaxy S3 and it used to work on Galaxy S3. To me it seems like Samsung have broken Toasts in their latest update. Do any other apps, already on the device, display toasts as they used to? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
To bad, got any more clues on what could be wrong, this is making me crazy. Galaxy S3 is a too popular phone to ignore =/ On Monday, January 14, 2013 3:59:03 PM UTC+1, Mark Murphy (a Commons Guy) wrote: On Mon, Jan 14, 2013 at 9:24 AM, Tobias tobias.e...@gmail.comjavascript: wrote: I have a print out both before and after the Toast that I can see so the code is definitely executed. Have you tried it on S3 with latest update? I don't own one -- a problem which I may need to rectify. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best open source ImageView pinch zoom project
There is a bunch of open source projects offering pinch zooming in an ImageView. Here is a few of them: - TouchImageView by MikeOrtiz (https://github.com/MikeOrtiz/TouchImageView) - ImageViewZoom by sephirot74 (https://github.com/sephiroth74/ImageViewZoom) - PhotoView by chrisbanes (https://github.com/chrisbanes/PhotoView) - gesture-imageview by jasonpolites (https://github.com/jasonpolites/gesture-imageview) It is hard to say which one is the best and even if I have mentioned the best and I would like to ask what other people thinks. It need to be able to do pinch zooming, panning as well as work together with a ViewPager. Thank you in advance, Tobias -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Best open source ImageView pinch zoom project
I already went for the third one PhotoView and it seems to work well. Supports pinch zoom, panning inside a ViewPager. Still not sure if it's the best one but it seems to work well but hopefully this discussion will grow to a conclusion. On Friday, January 4, 2013 2:09:21 PM UTC+1, Mark Murphy (a Commons Guy) wrote: I can tell you that the first one meets your criteria, though it is not packaged as an Android library project. However, since it is a single Java class with no other dependencies, you can just drop that class into your project hierarchy if you wish. I have not tried the other three, though the third one (PhotoView) looks intriguing. On Fri, Jan 4, 2013 at 7:45 AM, Tobias tobias.e...@gmail.comjavascript: wrote: There is a bunch of open source projects offering pinch zooming in an ImageView. Here is a few of them: TouchImageView by MikeOrtiz (https://github.com/MikeOrtiz/TouchImageView) ImageViewZoom by sephirot74 ( https://github.com/sephiroth74/ImageViewZoom) PhotoView by chrisbanes (https://github.com/chrisbanes/PhotoView) gesture-imageview by jasonpolites (https://github.com/jasonpolites/gesture-imageview) It is hard to say which one is the best and even if I have mentioned the best and I would like to ask what other people thinks. It need to be able to do pinch zooming, panning as well as work together with a ViewPager. Thank you in advance, Tobias -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best open source ImageView pinch zoom project
Does it support everything I mentioned? - pinch zoom - panning - and doing this inside a ViewPager On Friday, January 4, 2013 3:36:55 PM UTC+1, b0b wrote: - ImageViewZoom by sephirot74 ( https://github.com/sephiroth74/ImageViewZoom) I'm using this one and it works great. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color
Okay, I will try this but after all, it happens in OpenGL 1.0 as well and there is no chance to change the shader there. What could I do there? And why did it work on older phones/android versions like the S1 and the S2 with Android 2.x? Am Dienstag, 7. August 2012 09:08:57 UTC+2 schrieb Romain Guy (Google): Hi, You should output your colors with premultiplied alpha. Your code should look like this: vec3 color = clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0); color *= 0.5; // premultiply by alpha gl_FragColor = vec4(color, 0.5); On Mon, Aug 6, 2012 at 4:21 PM, Tobias Reich tobias...@gmail.comjavascript: wrote: I'm working on a new Galaxy S3 and found a problem that didn't occur on other phones like my old Galaxy S1 or the Galaxy S2 - which has almost the same GPU as the S3. When drawing my OpenGL models on top of my camera image like this: mGLView = new GLSurfaceView(this); mGLView.setOnClickListener(InputManager.getInstance()); GameRenderer renderer = new GameRenderer(kamera, this); InputManager.getInstance().currentActivity = renderer; mGLView.setEGLContextClientVersion(2); mGLView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); setPreserveEGLContextOnPause mGLView.getHolder().setFormat(PixelFormat.TRANSLUCENT); mGLView.setZOrderOnTop(true); mGLView.setRenderer(renderer); setContentView(new CameraView(this), new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); addContentView(mGLView, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); So the GLRenderer should be transparent. It actually is. It works fine for all the objects that are opaque as well as the background (where I see the image of the camera) My problem is, when I make the pixels semi-transparent in the fragment Shader I get a weird result. The brightest pixels seem overexpose when blending together. And it looks like they got clamped after so the value that brighter than white - loosing probably the first bit - got dark again. So only the brightest pixels are affected. It happens even if I use a simple call like: gl_FragColor = vec4(clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0), 0.5); So the actual GL-Fragment is clamped and I'm pretty sure it comes from the camera preview itself. Here is an image that describes my problem: https://lh6.googleusercontent.com/-XhUolY4rNXA/UCBQnwRqb6I/AAM/YgzaE-KfGZs/s1600/glProblem.jpg I get more and more convinced that it is an overflow for the values but how can I change this? By the way - perhaps it helps - this effect gets stronger the lower the alpha value of the fragment (the gl rendered one) is. So somehow it looks like something is compensating/normalizing the semi transparent values. Is there any way of clamping both values together since in the Shader I can only clamp the actual rendered fragment somehow without asking for the camera preview values. :-( Thank you very much! I hope it is not a severe problem, Tobias Reich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com javascript: -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color
Alright. I got it. Now it works. I simply didn't multiply the values! Man, you helped me a lot! Really! How can I thank you for this??? I was working on that problem for... ages! It doesn't explain why it worked perfectly fine on older machines nor does it explain what to do in OpenGL 1.0 but at least it is a solution! Thank you very much! Tobias Am Dienstag, 7. August 2012 09:08:57 UTC+2 schrieb Romain Guy (Google): Hi, You should output your colors with premultiplied alpha. Your code should look like this: vec3 color = clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0); color *= 0.5; // premultiply by alpha gl_FragColor = vec4(color, 0.5); -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color
So than it was just pure luck it worked fine with all the previous versions? What changed? Why can't it just be like it was before? I mean, its okay now and not really a big problem. - even though I don't know where I could have seen that information in the API. Thanks anyway! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color
I'm working on a new Galaxy S3 and found a problem that didn't occur on other phones like my old Galaxy S1 or the Galaxy S2 - which has almost the same GPU as the S3. When drawing my OpenGL models on top of my camera image like this: mGLView = new GLSurfaceView(this); mGLView.setOnClickListener(InputManager.getInstance()); GameRenderer renderer = new GameRenderer(kamera, this); InputManager.getInstance().currentActivity = renderer; mGLView.setEGLContextClientVersion(2); mGLView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); setPreserveEGLContextOnPause mGLView.getHolder().setFormat(PixelFormat.TRANSLUCENT); mGLView.setZOrderOnTop(true); mGLView.setRenderer(renderer); setContentView(new CameraView(this), new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); addContentView(mGLView, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); So the GLRenderer should be transparent. It actually is. It works fine for all the objects that are opaque as well as the background (where I see the image of the camera) My problem is, when I make the pixels semi-transparent in the fragment Shader I get a weird result. The brightest pixels seem overexpose when blending together. And it looks like they got clamped after so the value that brighter than white - loosing probably the first bit - got dark again. So only the brightest pixels are affected. It happens even if I use a simple call like: gl_FragColor = vec4(clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0), 0.5); So the actual GL-Fragment is clamped and I'm pretty sure it comes from the camera preview itself. Here is an image that describes my problem: https://lh6.googleusercontent.com/-XhUolY4rNXA/UCBQnwRqb6I/AAM/YgzaE-KfGZs/s1600/glProblem.jpg I get more and more convinced that it is an overflow for the values but how can I change this? By the way - perhaps it helps - this effect gets stronger the lower the alpha value of the fragment (the gl rendered one) is. So somehow it looks like something is compensating/normalizing the semi transparent values. Is there any way of clamping both values together since in the Shader I can only clamp the actual rendered fragment somehow without asking for the camera preview values. :-( Thank you very much! I hope it is not a severe problem, Tobias Reich -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL ES on Camera Preview
Huh, sorry, might be that I made a mistake when compiling. Please try it again. Do you have a Galaxy S3? And there are no distortions in the lower grey area? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL and Camera Problem
Huh, that is strange. So it worked and than it crashed? And it looks like it was crashing at the setParameters(); That is a place where it shoudln't crash at all!! Which Android Version do you have? Did you take the complete project? So there is no mistake in the Manifest (e.g. for the Camera rights)? Thank you anyway. I just got some other replys that it didn't work on other phones as well. So I wonder what was changed. Does anyone know a working Augmented Reality App for the S3? Anyway, thank you for your help, Tobias -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Sending file using Android built-in OPP Bluetooth transfer
Hi Diego! First of all, thanks for a nice example. Iam able to send files from my android device no a non-android device. But thats not exactly what I am looking for. I have a device which supports the OBEX OPP, this has an send function for sending files to other bluetooth enabled devices. I want this device to send a file to my android phone. Do you know how I can do so? I've tried the Android Bluetooth chat example, but when I try to open a BluetoothServerSocket to this device, I only got a IOException. Could you help me? I've been trying this for weeks now, with no luck. I'd appreciate very much! Thanks in advance kl. 19:40:03 UTC+2 tirsdag 16. august 2011 skrev Diego følgende: Hello, I'm trying to send files using Bluetooth on Android without any user interaction (except for the mandatory ones for the first setup). I know that: - the reccomended method is using the ACTION_SEND Intent, but that requires user interaction; - there is no API to do so; - there are APIs for direct Input/OutputStream communication (Serial Port Profile); - the system application (packages/apps/bluetooth) implements OPP profile with OBEX; - there are applications that implement file tranfer over current APIs (Androbex, Bluetooth File Transfer); - there seems to be a way to send files exploiting the bluetooth system service (packages/apps/bluetooth): http://stackoverflow.com/questions/5577481/sending-a-file-using-bluetooth-obex- object-push-profile-opp Has anybody been able to make the suggestion in the previous link to work? I've attached the code of an example application that should do the same thing as the description, but nothing happens. If you want you can try the code (just remember to change the device name to one known by your smartphone). This approach seems to exploit how the system application internally works: http://tinyurl.com/3h2jfmv but doesn't seem to work (at least not in all the cases). I've tried also removing all the dependecies off the system bluetooth application, but it's not really easy, even if I think it's possible. Thank you for any help! Regards, Diego -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ICS Emulator does not display webcam picture
I just created an r15 avd. Every time it starts on my sony laptop I can select my (internal) webcam from the list. But neither the camera active led turns on nor I see a picture from webcam in the camera app. Skype works just fine with the camera. If I type emulator -webcam list -avd Test I can select my camera but then it does not return anything. Somebody has a good idea? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GPU emulation and hardware acceleration for self-build android + android kernel (goldfish) builds
Hi, I've been trying to get GPU emulation and hardware acceleration working for my self compiled android intel builds on Mac OS X but it just won't work. As soon as I turn GPU emulation on I see graphic artifacts and the visual is completely unusable. For hardware acceleration I don't see HAX is working and emulator runs in fast virt mode on emulator's console output. Both works fine with ready to use images from Google or Intel for the x86/Atom platform. Do I have to pass certain options in either androids environment's or the kernel's build setup to have decent support for either feature? I need self-compiled versions of both because I need to modify them. Thanks in advance, Tobi -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hardware accleration slow down every Canvas app. Why?
Would it be possible to have the framework batch rendering operations automatically by using some kind of retained mode rendering, to make life easier for developers? /Tobias On 17 Jan, 00:47, Romain Guy romain...@android.com wrote: I Romain I really appreciate your effort to help me, really thanks for this but I don't know if you are trying to avoid to admit an android flaw or if you are convinved of what you are saying. I am not avoiding anything but you have failed to far to provide me with something I could use to find such a flaw and fix it. I'm quite graphics oriented (console, pc, tablet, mobiles, embedded devices) and I never seen a platform that needs 20x the horse power for a doubled resolution :) Me neither, but you could be bandwidth limited for instance. Again, the CPU has nothing to do with performance of the GPU so this discussion is really not helpful. If your performance in software is good enough, there is no point in drawing a comparison with other devices that also run in software. My apps draws line and rect as I saied and uses StaticLayout to write on canvas with the correct wrapping. this simple codes require double the time for (i = 0; i 640; i++) { g.drawLine(0, alt + i, 360, alt + i, paint); } This piece of code is exactly what I was talking about in previous message. Sending 640 rendering instructions to the GPU is extremely expensive. The CPU will perform a lot better at this. Changing this loop to a single drawLines() will likely fix the issue. On my feature phone this code is drawn at the light speed, on galaxy nexus it is slow not tested but surely slower with hw acc on. See why above. Your suggestion is great and reasonable but why we should use something that we don't need with such a huge amount of horse power? Don't you think if a feature phone, a bada phone, a windows phone, a blackberry phone, can do this also android should do this? Again, the problem is that a GPU performs very differently from a CPU. Batching rendering operations is one of the best optimizations you can do when running on the GPU. In any case on the android documentation (API Level 11) I finded that drawLines() doesn't support antialiasing: http://developer.android.com/guide/topics/graphics/hardware-accel.html why do you call this a bug? This documentation is out of date. Antialiasing is supported with drawLine() and drawLines() as of API level 12 or 13. -- Romain Guy Android framework engineer romain...@android.com -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Where has the menu button gone on the Actionbar?
Same issue here and no solution. I think it is awful to change the origin menu key design. Why not just leave it at the bottom of the screen. You can force the device to display the menu key as a soft-key by setting the target-sdk in your manifest to something lower than 10. Not the nicest of workarounds though. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: minSdkVersion and update app on market
Haven't tested this, but the upload function of the Market tells you in this case something like: The version of the App that you are uploading is available for less devices than the previous version that you've published. Users of devices that are not supported by your latest version will therefore not get an update. So I'd guess Android 1.6 users will simply not receive your latest version, nor will they be notified of the update. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Where has the menu button gone on the Actionbar?
Maybe the menu button on ActionBar is forcibly concealed on devices with hardware keys? Quote from the Android documentation on the Action Bar: The overflow menu is revealed either by the device MENU button (if provided by the device) or an additional button in the action bar (if the device does not provide the MENU button). This would mean the answer to your question is yes. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SurfaceHolder.Callback.surfaceCreated not being triggered when surface is re-created
Had exactly the same problem. As it looks like, the issue is not that the callback isn't fired, but that when Android creates a new SurfaceView, it also creates a new holder. Check if this helps you: http://groups.google.com/group/android-developers/browse_thread/thread/3514e1890ed958e2/8874eff5e487553a?hl=deq=surfaceview+callback+create -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to move an android market app from an old account to a new account?
You can contact the market team via this support link http://www.google.com/support/androidmarket/developer/bin/request.py?contact_type=contact_policy A thread that's related to your question: http://www.google.com/support/forum/p/Android%20Market/thread?tid=4e3d0dbf24d46167hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Action Bar
There are no 3.0/3.1 -large devices. The ~7 tablet size was not supported until Android 3.2. From what I can see Google TV runs on Android 3.1, and is reacting as a large device. Not to sure on this though as there are a number of devices out and I don't know how all of them react. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Action Bar
So what's the verdict on this? I have an app that runs in landscape. Running this even on a large size phone with Ice Cream Sandwich (on the Emulator right now for lack of access to a real device), the Action Bar takes up a major amount of space on the screen. Add an AdMob Banner to this, and there is very little space left on the screen for your application. You can design different layouts - one for xlarge screens using the Action Bar, and one for all smaller screens, using regular menus. Unless your device has a hardware menu-key, this will leave you however with the issue that the user will never be able to invoke your menu as Android won't display a menu button (as confirmed on a real device by String's post above). So unless you can live with the significantly smaller screen-real- estate that the Action Bar will leave you with, the only solution seems to be to leave the target-SDK setting at 9, as to ensure Android will always display a menu key on the screen. How are you guys planning to handle 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 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
[android-developers] ActionBar for Tablets, Stacked Menu for Phones?
Looking for some guidance on whether to use the ActionBar or not. The problem is that the ActionBar takes away a major amount of real estate on the screen. That's not a problem on tablets. It is on phones though for my app. With Ice Cream Sandwich bringing ActionBars to phones, I'm in trouble: I need a way to use the ActionBar on tablet size devices, while using the regular way to display menus on phones. I can think of two ways to handle this: 1: Resolution specific menu.xml This has the problem though that there are phones that have higher resolutions than tablets. So this won't work. 2: Implement a preferences setting to hide the ActionBar I can implement a preferences setting for my App to go for full screen display and hide the ActionBar. This works well. The bummer here is that once the menu is hidden it stays hidden. A user can only reach the preferences via the menu again - but I've hidden that so he can't. Once I disable the ActionBar on a Honeycomb tablet, there is no way the user can himself invoke the menu again. How are you guys handling this dilemma? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ratingBar - strange problem
Hello, I have a strange problem. I want to use the standard ratingBar in my app. I want to put in in an alertdialog, like it is done in the android market app. In the emulator it looks quite good. Same as I run the API demo ratingBar1. But if I run it on my Desire froyo it looks strange. Between the stars is a lot of space. So I can see only 3 stars on the screen. And also the stars are slightly cut off at the bottom. Especially if I rotate the screen. The same problem occurs with the API demo rantingBar1 on my htc desire. But the google market rating dialog with the 5 stars looks great. The stars a lot of smaller. Can someone plz give me a hint! Here is the code: AlertDialog.Builder builder5 = new AlertDialog.Builder(this); builder5.setTitle(test); builder5.setCancelable(false); builder5.setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { function code } }).setNegativeButton(Abbrechen, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); LinearLayout layout1 = new LinearLayout(this); // layout1.setOrientation(LinearLayout.VERTICAL); ratingBar = new RatingBar(this); ratingBar.setPadding(0, 0, 0, 50); // ratingBar.setRating(5.0f); ratingBar.setOnRatingBarChangeListener(this); ratingBar.setNumStars(5); ratingBar.setStepSize(1); layout1.addView(ratingBar); builder5.setView(layout1); dialog = builder5.show(); -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ratingBar strange problem on htc desire
Hello, I have a strange problem. I want to use the standard ratingBar in my app. I want to put in in an alertdialog, like it is done in the android market app. In the emulator it looks quite good. Same as I run the API demo ratingBar1. But if I run it on my Desire froyo it looks strange. Between the stars is a lot of space. So I can see only 3 stars on the screen. And also the stars are slightly cut off at the bottom. Especially if I rotate the screen. The same problem occurs with the API demo rantingBar1 on my htc desire. But the google market rating dialog with the 5 stars looks great. The stars a lot of smaller. Can someone plz give me a hint! Here is the code: AlertDialog.Builder builder5 = new AlertDialog.Builder(this); builder5.setTitle(test); builder5.setCancelable(false); builder5.setPositiveButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { function code } }).setNegativeButton(Abbrechen, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); LinearLayout layout1 = new LinearLayout(this); // layout1.setOrientation(LinearLayout.VERTICAL); ratingBar = new RatingBar(this); ratingBar.setPadding(0, 0, 0, 50); // ratingBar.setRating(5.0f); ratingBar.setOnRatingBarChangeListener(this); ratingBar.setNumStars(5); ratingBar.setStepSize(1); layout1.addView(ratingBar); builder5.setView(layout1); dialog = builder5.show(); -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Multicast through virtual router of the emulator
Hello, I am trying to set up a application that sends out a multicast message. The problem is, that the virtual router of the emulator cant handle the multicast packet and drops it. What can I do? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wevservices (WS-*) with Android using DPWS
hello, I want to create an App based on webservices (using Soap), I dont want to use REST. There is a posibility to use ksoap2, see here: http://www.jkoeber.de/2010/03/13/android-webservice-soap-xml-rpc/ But I want to use dpws (for java you can use ws4d) I also found something about dpws for android: http://homejinni.com/products/DPWS But there is nothing about how to use it. Can you help me to create a webservice client for android, which is able to communicate with a dpws based server using wsdl? Thank you! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to load a file from assets directory in native code?
Hello, I have placed a directory named Data in my assets directory and written in my Android.mk file the following line: LOCAL_ASSET_DIR += $(call find-subdir-assets) in my C code i want to load from this directory in the following way: char *file = Data/the_file; load_file(file) my full Android.mk file looks like this: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE:= libbuffer LOCAL_SRC_FILES := buffer.c include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE:= libpicture_buffer LOCAL_SRC_FILES := picture_buffer.c LOCAL_STATIC_LIBRARIES += libbuffer LOCAL_LDLIBS := -Lbuild/platforms/android-4/arch-arm/usr/lib -llog LOCAL_ASSET_DIR += $(call find-subdir-assets) include $(BUILD_SHARED_LIBRARY) My c-code doesn't find this file on the device and I'm wondering what I am missing, do I need to add something in the c-code so that it knows that it is supposed to look in the assets directory? I am using cygwin for my make if it makes a difference. Best regards, Tobias Lindberg -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Launch the WebBrowser with intent with a Button gives NullPointer Exception
Hello, I have trouble launching the WebBrowser with an Intent with a Button Click. I try doing this in the onCreate Method of my Activity: final Button getTheButtonBtn = (Button) this.findViewById(R.id.ButtonTheButton); getTheButtonBtn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // Browser oeffnen mit url Intent i = new Intent(Intent.ACTION_VIEW , Uri.parse( http://www.url.com) ); startActivity(i); } }); Its in the View like this: Button android:text=@string/button_ButtonTheButton_hint android:id=@+id/ButtonTheButton android:layout_width=wrap_content android:layout_height=wrap_content/Button When i launch the Activity i get a force close with this in the log: 08-22 12:47:35.832: ERROR/AndroidRuntime(1826): Uncaught handler: thread main exiting due to uncaught exception 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.APPName/com.mycompany.APPName.EditYourSettingActivity}: java.lang.NullPointerException 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.os.Handler.dispatchMessage(Handler.java:99) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.os.Looper.loop(Looper.java:123) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.ActivityThread.main(ActivityThread.java:3948) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at java.lang.reflect.Method.invokeNative(Native Method) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at java.lang.reflect.Method.invoke(Method.java:521) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at dalvik.system.NativeStart.main(Native Method) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): Caused by: java.lang.NullPointerException 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at com.mycompany.APPName.EditYourSettingActivity.onCreate(EditYourSettingActivity.java:43) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231) Any Ideas what I do wrong? Thanks so much, Toby --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Launch the WebBrowser with intent with a Button gives NullPointer Exception
Hello Mark, thanks for looking into that with me. The problem is the Button Object which does not get instantiated correctly, i guess this is what null is. i can let it crash now like this: theButtonBtn = (Button) findViewById(R.id.ButtonTheButton); Log.d(EditYourSettings,Before accessing ID); Log.d(EditYourSettings,+theButtonBtn .getId()); // it crashed here - first access to the Button Object. Is there anything I do wrong getting the Button? How do you actually debug an android app with eclipse? Can you step through the code and check if a variable is null? Like on a normal java app? When i click on debug and set a breakpoint, it never stops. It just installs it on the device. Toby On Sat, Aug 22, 2009 at 6:59 AM, Mark Murphy mmur...@commonsware.comwrote: Tobias Eisentraeger wrote: Hello, I have trouble launching the WebBrowser with an Intent with a Button Click. I try doing this in the onCreate Method of my Activity: final Button getTheButtonBtn = (Button) this.findViewById(R.id.ButtonTheButton); getTheButtonBtn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // Browser oeffnen mit url Intent i = new Intent(Intent.ACTION_VIEW , Uri.parse(http://www.url.com) ); startActivity(i); } }); Its in the View like this: Button android:text=@string/button_ButtonTheButton_hint android:id=@+id/ButtonTheButton android:layout_width=wrap_content android:layout_height=wrap_content/Button When i launch the Activity i get a force close with this in the log: 08-22 12:47:35.832: ERROR/AndroidRuntime(1826): Uncaught handler: thread main exiting due to uncaught exception 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.APPName/com.mycompany.APPName.EditYourSettingActivity}: java.lang.NullPointerException snip 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): Caused by: java.lang.NullPointerException 08-22 12:47:35.942: ERROR/AndroidRuntime(1826): at com.mycompany.APPName.EditYourSettingActivity.onCreate(EditYourSettingActivity.java:43) Look at line 43 of EditYourSettingActivity -- it should be in onCreate() -- and figure out why you are trying to use a null pointer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Launch the WebBrowser with intent with a Button gives NullPointer Exception
Mark, That was it, i called findViewById() before calling setContentView() , thank you so much. Toby On Sat, Aug 22, 2009 at 11:02 AM, Mark Murphy mmur...@commonsware.comwrote: Tobias Eisentraeger wrote: Hello Mark, thanks for looking into that with me. The problem is the Button Object which does not get instantiated correctly, i guess this is what null is. i can let it crash now like this: theButtonBtn = (Button) findViewById(R.id.ButtonTheButton); Log.d(EditYourSettings,Before accessing ID); Log.d(EditYourSettings,+theButtonBtn .getId()); // it crashed here - first access to the Button Object. Is there anything I do wrong getting the Button? Most likely, either: 1. Your layout XML file does not contain a widget with android:id=@+id/ButtonTheButton, or 2. You are calling findViewById() before calling setContentView() on the activity How do you actually debug an android app with eclipse? Can you step through the code and check if a variable is null? Like on a normal java app? When i click on debug and set a breakpoint, it never stops. It just installs it on the device. I don't use Eclipse, but you can debug with it, AFAIK. Unfortunately, there is little documentation for it on the Android developer site. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Trouble with signing apk
Hello group, I created a little app and uploded it to the Market, it is online, its the Locale Http Request Plug-in. I signed it with Eclipse using the build in creation of the key file, gave it 35 years lifetime. But when I install it with the Market on my phone, it downloads it and then gives the Error that it was not signed correctly. Is there anything besides whats in the Dev Guide what I could have made wrong? Thanks for your suggestions, Toby --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble with signing apk
Ok, the only thing i did not find in eclipse is how i compile in release mode. I think i did the rest correct. How do i compile in release mode? Thanks, --- Toby 9. Aug 2009 10:11 vorm. schrieb am adam jones adjo...@googlemail.com: Hello Tobias, Yes you can follow the process as mentioned in http://developer.android.com/guide/publishing/preparing.html You can generate the key manualy or you can generate using eclipse- http://developer.android.com/guide/publishing/app-signing.html#ExportWizard Let me know if you still facing any trouble. Re, adag On Sun, Aug 9, 2009 at 3:41 AM, Tobias Eisentraeger teisentrae...@googlemail.com wrote: Hell... --~--~-~--~~~---~--~~ You received this message because you are subs... --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble with signing apk
Thanks - I got it working now. I manually deleted the old version off the phone, increased the version nr, recompiled, resigned with same key reuploaded it and that was it. --- Toby On Aug 9, 2009 5:30 PM, Jack Ha jack...@t-mobile.com wrote: Right-click your project in the Package Explorer and select Android Tools-Export Unsigned Application Package. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and st... On Aug 9, 2:34 am, Tobias Eisentraeger teisentrae...@googlemail.com wrote: Ok, the only thing i did not find in eclipse is how i compile in release mode. I think i did the... 9. Aug 2009 10:11 vorm. schrieb am adam jones adjo...@googlemail.com: Hello Tobias, Yes you can follow the process as mentioned inhttp:// developer.android.com/guide/publishing/preparing.html You can generate the key manualy or you can generate using eclipse- http://developer.android.com/guide/publishing/app-signing.html#Export... Let me know if you still facing any trouble. Re, adag On Sun, Aug 9, 2009 at 3:41 AM, ... teisentrae...@googlemail.com wrote: Hell... --~--~-~--~~~---~--~~ You received this message because you ar... --~--~-~--~~~---~--~~ You received this message because you are subs... --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---