**** BEGIN LOGGING AT Fri Nov 16 02:59:58 2012 Nov 16 03:19:34 Which is called first, Fragment.onCreate() or Fragment.onActivityCreated() ? I always forget this... :-/ Nov 16 03:20:01 LordBeppo: platform? Nov 16 03:24:30 * mrenouf reviews http://developer.android.com/reference/android/app/Fragment.html (again) Nov 16 03:24:52 onCreate() Nov 16 03:37:48 Hey There. Anyone here owning Razr i? Nov 16 03:38:47 Or does anyone know about Google's influence? Nov 16 03:45:14 I created some new packets and dragged my files around in eclipse and now my manifest is broken... Nov 16 03:45:27 android:name=".activities.SplashScreenActivity" is this the valid one or is it android:name=".SplashScreenActivity" Nov 16 03:46:00 i think .SplashScreenActivity is valid Nov 16 03:46:51 ok Nov 16 03:46:53 thanks Nov 16 03:47:00 your welcome Nov 16 03:47:46 ... Nov 16 03:47:58 they're both valid, depending on the package in which your activity resides Nov 16 03:48:16 it also gave me some very invalid ones... Nov 16 03:50:09 where does the activity manager get his activity locations from? Nov 16 03:50:30 wat? Nov 16 03:50:41 im not sure you have any idea how android works Nov 16 03:51:25 apperently Nov 16 03:51:35 I get this error though: ActivityManager: Error: Activity class {net.notanumber.planes/net.notanumber.planes.GameActivity} does not exist. Nov 16 03:51:51 I moved the activity to net.notanunmber.planes.game though Nov 16 03:53:15 New package not yet registered with the system. Waiting 3 seconds before next attempt. Nov 16 03:53:22 how can I register a package with the system? Nov 16 03:53:44 wait for the install to finish, maybe? Nov 16 03:54:19 nope Nov 16 03:54:21 if it's installed and you're getting an error like that... you've probably got the manifest and/or intent wrong Nov 16 03:54:51 I would review the android docs. starting with installing eclipse and the adt-plugin. Make sure its set up correctly, then go through the beginning exercises Nov 16 03:55:59 Look at the Activity Lifecycle test app/tutorial. That gives you a good base for activities. Nov 16 03:57:00 as I said, I had it working, I did create some new packages for better file management and since then it's broken. Nov 16 03:57:29 new packages? like new projects? Nov 16 03:57:36 no just new packages Nov 16 03:57:47 it's not a problem with the lifecycle of the activity but rather a problem with the compiler not knowing where the activities are Nov 16 03:58:19 Syzygy_, pastebin the code you're using to start the activity, and your *entire* manifest Nov 16 03:58:28 lkklj Nov 16 03:58:35 hmm..try to remove the packages you added? then update you sdk and make sure you are using the update APIs Nov 16 03:58:36 android 4.2 is fucking nice Nov 16 03:58:52 ok, on it. Nov 16 03:58:53 im stuck on 2.3.4 ;( Nov 16 03:59:05 wait a few weeks and buy a nexus 4 Nov 16 03:59:43 I put 4.1.2 on my galaxy s 2 days ago Nov 16 03:59:47 I like it Nov 16 03:59:57 4.1.2 ... that's old :P Nov 16 04:00:10 canadiancow: not for Galaxy S Nov 16 04:00:14 newest I could find for the galaxy s 2 Nov 16 04:00:17 for android :P Nov 16 04:00:24 given that 4.2 ain't supported... Nov 16 04:01:04 4.1.2 is the JZO build right? Nov 16 04:01:20 Leeds, that's why i buy nexus :P Nov 16 04:01:32 oh god i'm stupid... Nov 16 04:01:39 * canadiancow refrains... Nov 16 04:01:39 well, i fixed my problem Nov 16 04:01:40 yeah, JZO Nov 16 04:01:54 4.1.2 added what...one finger notif expansion? :P Nov 16 04:01:59 and a wifi bugfix Nov 16 04:02:25 4.2's little subtle things are nice Nov 16 04:02:31 of course, it's not like most of us *can* buy an N4, even if we wanted one Nov 16 04:02:41 the new toggles that arent really toggles have actually grown on me Nov 16 04:02:58 leeds I've found google to be pretty reasonable trying to get your hands on their nexus hardware Nov 16 04:03:06 canadiancow: get on that, KTHX Nov 16 04:03:38 canadiancow, 4.1.2 feels a lot more responsive than my old ICS Nov 16 04:03:50 ronnyek: try being outside the 5 or so countries where the play store sells hardware Nov 16 04:03:50 and battery seems to last longer Nov 16 04:03:56 oh Nov 16 04:04:27 and 4.2 is even more so Nov 16 04:04:31 on my gn Nov 16 04:04:41 7 countries for n4 Nov 16 04:04:42 8 for n7 Nov 16 04:04:52 8 for n10 Nov 16 04:05:02 I wish they had a cdma n4 just because I have verizon as a carrier Nov 16 04:05:06 well, doesn't change the fact that 4.2 isn't supported on Galaxy S 2 yet Nov 16 04:05:10 but I'll take gsm Nov 16 04:05:11 ronnyek, no Nov 16 04:05:47 ronnyek: unlikely to happen after the gnex clusterfsck Nov 16 04:06:09 its all good Nov 16 04:06:20 with the price it has, I'll just activate it month to month no contract Nov 16 04:07:08 canadiancow: have you seen the reports of LG's retail pricing in non-Play-Store countries? which matches Asus' pricing of the N7 at 25% above Play Store prices here, give or take Nov 16 04:07:48 so in other words, they're charging a "reasonable" (i.e. similar to other companies) price, and google is selling it for less? Nov 16 04:07:53 yes Nov 16 04:08:01 and.... Nov 16 04:08:20 im sure google isnt sitting back saying 'well we dont want to open it up to more countries. 8 is enough" Nov 16 04:08:31 or in other words, there's a nice cheap headline price being blasted by (tech and mainstream) news outlets, but when most people try to buy, they find the price is much higher Nov 16 04:09:19 it was cheaper for me to courier-ship an N7 halfway around the world than buy one at local retail rate Nov 16 04:10:44 and given that it was almost certainly made within a couple of hundred miles of my home... that means it probably traveled about 16000 miles to get to me :) Nov 16 04:11:05 leeds you are not in england Nov 16 04:11:09 ? Nov 16 04:11:12 no, I am not Nov 16 04:11:23 they don't make tablets within 200 miles of Leeds... Nov 16 04:12:02 wat Nov 16 04:12:43 assuming where all hardware comes from he's from china. Nov 16 04:13:02 canadiancow: I know it's nothing to do with engineering, at all... but genuinely that is the impression that Google tend to give globally - "we sell in the US, Europe, Australia, and don't care about anywhere else" Nov 16 04:13:18 +canada Nov 16 04:13:29 aka "America's hat" Nov 16 04:13:30 so basically not asia Nov 16 04:13:40 its probably all about developer stats Nov 16 04:13:46 ronnyek, i doubt it Nov 16 04:14:14 I could be wrong but I'd assume nexus hardware is still incentive to developers and google probably doesnt make much profit off that shit Nov 16 04:14:34 canadiancow: again, true or not - but it's pretty clear that the hardware store is tied to the media store, that there isn't an interest in selling hardware where there's no media to sell to cover the 'subsidy' Nov 16 04:14:38 now even my music yells "nullpointer exception" D: Nov 16 04:15:07 maybe, but the n7 was available in canada when there was very little media Nov 16 04:15:10 ronnyek: nexus stopped being a developer thing a while back, really... after N1, I'd say Nov 16 04:15:20 hm, anyone know hot to scroll lock logcat in intellij or in the regular ddms gui? Nov 16 04:15:23 in eclipse it's fairly obvious Nov 16 04:15:27 I tried c-s Nov 16 04:15:35 that's not working. neither is the scroll lock key Nov 16 04:15:49 I know there is but dont remember if it was a button you clicked to lock it Nov 16 04:15:53 or what Nov 16 04:16:01 canadiancow: how closely does this list correspond to the N7 availability? http://support.google.com/googleplay/bin/answer.py?hl=en&answer=1062504 Nov 16 04:16:16 hm, i think the icon is just unintuitive Nov 16 04:16:20 i think i found it Nov 16 04:16:39 pretyt close :P Nov 16 04:16:50 but i think that's more due to "these are the countries google is allowed to sell things" Nov 16 04:17:12 bollocks Nov 16 04:17:16 one trick in intellij is to highlight something Nov 16 04:17:20 that will lock the scrolling Nov 16 04:17:27 ok maybe it is content related? Nov 16 04:17:35 who would want to buy a device in a conutry where you cant buy any content Nov 16 04:17:45 you can buy content from other sources Nov 16 04:17:54 you can buy *apps* - this is #android-dev, after all Nov 16 04:18:06 you can also >get< content from other sources Nov 16 04:18:28 PIRACY ALERT PIRACY ALERT Nov 16 04:18:29 oh Nov 16 04:19:07 the point is that content is hard... we know that, we know there are issues with Google and content companies, we accept that - it's a very difficult business to be in Nov 16 04:19:13 just saying, pretty common in those countries Nov 16 04:19:48 but it *seems* clear that Google isn't interested in selling hardware in those countries where - for perfectly reasonably reasons - they don't sell media Nov 16 04:21:10 they could at least make the hw part of play store let you choose the country if you fall outside of IP geolocation... Nov 16 04:21:17 http://goo.gl/T3aIF - "Google has launched the Nexus 7 in Korea" "Alongside the launch of the tablet... introducing movies to the Google Play store in the country" "just weeks after Google debuted Books in Korea" Nov 16 04:22:14 p_l: exactly... it's not just "not selling", it's "actively blocking people from buying" Nov 16 04:22:19 oh no Leeds , you're onto us Nov 16 04:22:55 afk Nov 16 04:23:00 bbl Nov 16 04:23:12 canadiancow: it's just disappointing Nov 16 04:23:47 Hmm, seen JakeWharton lately? Nov 16 04:25:06 p_l: the fact that I can't use my UK credit card to order a device to be delivered to the registered address of the card - because my IP isn't in the UK... Nov 16 04:25:07 meh Nov 16 04:26:57 no Nov 16 04:27:03 hey guys, do you have any idea on how to make my screen rotate faster? Nov 16 04:27:06 jake hasnt been around Nov 16 04:27:10 not on im Nov 16 04:27:37 just how slow are exceptions? I just avoided one in my code and i swear I saw a speed increase of at least a second Nov 16 04:27:54 he was here yesterday, I think Nov 16 04:28:04 well, I guess I also avoided the code path thta led up to said exception being thrown Nov 16 04:28:07 so that's a factor Nov 16 04:29:15 ah, no - not since Wednesday Nov 16 04:29:20 If I call setContentView(newFrameLayout(this)) ... does anyone know the implications for styles/theme ? I suspect this is causing a problem with ABS. Nov 16 04:30:05 "new FrameLayout(this)" I meant Nov 16 04:31:47 In canvas I can just draw over everything with a black rectangle instead of clearing it, right? Nov 16 04:32:44 Syzygy_, fillRect(canvas.getViewBounds) Nov 16 04:33:08 so yes, just draw over everything, thanks Nov 16 04:33:45 canvas.drawColor(Color.BLACK) Nov 16 04:34:01 tdignan, thats right, oops Nov 16 04:34:01 but you don't have to erase the whole canvas iirc, you can just do the indivdual parts that you've invalidated Nov 16 04:34:13 i play canvas a bit :D Nov 16 04:34:17 yes, you should strive to minimize overdraw Nov 16 04:35:37 unfortunately I will have to redraw on always every frame either way because I'm making an RPG Nov 16 04:38:27 are there any communication mechanisms in the android SDK that is intended to be used for secure communication between two apps? Nov 16 04:38:41 intents Nov 16 04:38:51 they have permissions you can set, on both ends. Nov 16 04:39:27 thanks tdignan Nov 16 04:39:53 are there any known ways to spoof an intent? Nov 16 04:39:58 did you mean apps on the same device? Nov 16 04:39:59 like have one app masquerade as another Nov 16 04:40:17 to receive an intent that it is not supposed to receive Nov 16 04:40:52 there are probably security holes if you look for tem Nov 16 04:41:01 them* Nov 16 04:41:59 no hacks needed. many apps leave their receivers, content providers, etc set to published, Nov 16 04:42:14 and have no permissions set Nov 16 04:42:30 so you can just "adb shell am broadcast " away Nov 16 04:42:37 note the change in 4.2 that content providers are no longer published by default... Nov 16 04:42:47 Leeds, oh, awesome! Nov 16 04:42:49 I see.. but if you "lock them down", then it won't be as easy Nov 16 04:42:50 correct? Nov 16 04:42:58 sleepster, correct Nov 16 04:43:11 Leeds, is that for all apps, or for apps targeting API level 17? Nov 16 04:43:17 I see.. interesting Nov 16 04:43:21 I suspect the latter Nov 16 04:43:54 yeah, would have to be or it would break many things Nov 16 04:44:36 "Applications which target API level 17 will have “export” set to “false” by default for each ContentProvider, reducing default attack surface for applications." Nov 16 04:45:05 also, I noticed that in 4.2 Nov 16 04:45:23 not that any significant proportion of users will have 4.2 for the foreseeable ever :( Nov 16 04:45:25 it is no longer possible to read other apps logs.. before you could read everyone's messages Nov 16 04:45:31 is there a workaround for this? Nov 16 04:46:00 yeah, become an haxor Nov 16 04:46:08 yeah, be root/system Nov 16 04:46:23 wait what? Nov 16 04:46:56 Oh, you mean from another app? Nov 16 04:47:05 http://developer.android.com/about/versions/jelly-bean.html#42-security Nov 16 04:47:27 mrenouf: yeah, 'user' apps now only see their own logs, not everybody's Nov 16 04:47:33 I thought that was a 4.1 change though? Nov 16 04:47:57 the read logs change was indeed 4.1 Nov 16 04:51:02 Ah, my new Google Play analysis is finished, good Nov 16 04:52:54 what did you find? Nov 16 04:53:17 It's just for free non-game apps, not paid non-game apps or games... Nov 16 04:54:15 8 apps with 100m+ downloads, 23 apps with 50m+ downloads (including the 8), 161 apps with 10m+ downloads (including the previous 31) Nov 16 04:54:38 342 apps with 5 million+ downloads Nov 16 04:55:57 I'm mostly curious what the top apps are... Nov 16 04:56:12 does the (non) API give any way of seeing when the app was initially released (not just last updated)? Nov 16 04:57:32 I used a crawler, not an API...not that I know of. I use appbrain and stuff like that, although they can be out of date sometimes Nov 16 04:57:47 There's a twitter feed that outputs new apps Nov 16 04:58:14 ah, cool Nov 16 04:58:26 https://twitter.com/NewAndroidApps I don't know how far back they go Nov 16 04:58:40 They've caught some of my apps Nov 16 04:59:10 Oh I guess that's Appbrain's feed...so Appbrain should have a vague guess Nov 16 05:00:43 looks like they show "NEW APP" in the "Changelog" section of an app Nov 16 05:01:34 but only if not too many updates have been released since it was a new app Nov 16 05:04:16 you guys know how configure screen rotation delay? Nov 16 05:05:03 whats the right way to have a viewpager re-draw all its fragments? Nov 16 05:09:52 Test Nov 16 05:35:52 honestly. why do some projects compile well with adt21 and some don't Nov 16 05:43:30 pboos: what do you see ? Nov 16 05:43:52 g00s: lots of "xyz can not be resolved to a field" Nov 16 05:43:59 weird thing is in some projects i do not get that at all Nov 16 05:44:10 and sometimes i only get it in eclipse Nov 16 05:44:18 but on jenkins i get the same problem (ant debug) Nov 16 05:44:29 wen in doubt, kick off a build from the cli … do you see it then ? Nov 16 05:44:43 all i changed on the jenkins was updating to the new version of android tools and platform-tools. Nov 16 05:45:00 g00s: as said. on jenkins it is done through ant. same problem there Nov 16 05:45:27 oh sorry, i may have joined after that Nov 16 05:45:38 oh its right there, heh oops Nov 16 05:45:53 doh Nov 16 05:46:53 oh man, they made another twilight movie Nov 16 05:47:16 weird thing is: some things show up in R.java, some things don't Nov 16 05:47:28 and nowhere it says anything WHY they are not added to R.java Nov 16 05:48:26 "Updated the build to generate R resource classes for library projects with only the IDs needed by the libraries, reducing the risk of hitting DEX file limits for fields and methods." Nov 16 05:48:35 so they did something.... Nov 16 05:52:33 yes, they did something. but i wonder why that affects me Nov 16 05:52:59 maybe nobody updated yet, or i am the only one experiencing that problem? Nov 16 05:53:00 http://www.theregister.co.uk/2012/11/15/android_sdk_fragmentation_license_change/ Nov 16 05:53:14 Leeds: yeah, i asked about that before Nov 16 05:53:24 nobody knew what the hell it was, or would not talk about it Nov 16 05:53:27 hehe Nov 16 05:53:40 i dont get it. maybe you do? Nov 16 05:54:42 or maybe it is because i use a library that depends on two other libraries? Nov 16 05:55:10 the Register analysis sounds reasonable enough Nov 16 05:55:27 of course, it does mean the SDK isn't open source... Nov 16 05:56:01 Leeds: ohoh.. that clause might change some things. that will hurt things like Ouya, Kindle, ... Nov 16 05:56:20 that is, doesn't match the Open Source definition from OSI... whether anyone cares about that or not is questionable Nov 16 05:57:34 pboos: incidentally, are you in Tokyo? Nov 16 05:57:43 Leeds: yes i am Nov 16 05:57:59 can I buy you beer on December 21st? Nov 16 05:58:38 you here in december? Nov 16 05:58:41 (random question of the day?) Nov 16 05:58:49 Leeds: would be fun to meet up yeah :) Nov 16 05:59:01 yeah, got a mad trip planned - 2 days in Tokyo, 2 days around Nagano, 2 days in Kyoto Nov 16 05:59:26 ok, this had more than the last article, mentioning Aliyun. Nov 16 05:59:31 Leeds: wow :) pretty short Nov 16 06:00:06 pboos: my girlfriend is local Chinese (we live in Hong Kong) and doesn't get much time off work, so we try to fit a lot in when we travel :) Nov 16 06:00:30 Leeds: I see :) Nov 16 06:01:29 she will be going to a Namie Amuro concert on the 21st - her favourite singer... I won't be going Nov 16 06:02:01 it could be worse, it could be a Bjork concert or something :) Nov 16 06:02:10 arg.. this problem drives me crazy... WHYYYY Nov 16 06:04:49 only 'library' I've used is admob Nov 16 06:07:48 Leeds: the thing is I use MANY libraries :) Nov 16 06:08:12 Leeds: wut? what do you do for actionbar :P Nov 16 06:08:21 g00s: I don't, at the moment Nov 16 06:08:43 well, i still have target=8, i guess i should do something about that Nov 16 06:09:24 I haven't actually built any new apps this year, only worked on existing ones... Nov 16 06:15:30 target O_O Nov 16 06:15:32 you dont get holo Nov 16 06:15:34 actionbar Nov 16 06:15:36 wat :( Nov 16 06:18:10 man i really hope they oversell my flight next week Nov 16 06:18:16 i want to take a different one :( Nov 16 06:40:34 http://online.wsj.com/article/SB10001424127887324735104578121553147711538.html Nov 16 06:40:45 DO NOT WANT Nov 16 06:41:10 DO NOT CARE Nov 16 06:41:24 are they doing this anywhere else in the world? Nov 16 06:42:02 you dont want google to be your cell service provider? Nov 16 06:42:23 no, too many privacy concerns Nov 16 06:44:36 "Tears nearly welled up in Zynga Inc. chief executive Mark Pincus's eyes at a meeting in September with Apple Inc. director Bill Campbell." Nov 16 06:44:45 canadiancow: he's really upset you left Nov 16 06:44:57 :) Nov 16 06:45:25 wait what Nov 16 06:45:45 hehe Nov 16 06:46:03 the only tears are https://www.google.com/finance?client=ob&q=NASDAQ:ZNGA Nov 16 06:46:18 a photo was shared on FB today with me for another "leaving the company" party Nov 16 06:47:34 Leeds: same here (regarding CC and country of delivery) Nov 16 07:02:36 btw. my previous problem got solved Nov 16 07:02:45 pboos: how Nov 16 07:03:00 some of my R imports where wrong :D Nov 16 07:03:09 :| Nov 16 07:03:11 I imported R from the library project Nov 16 07:03:41 you had us on a wild pboos chase Nov 16 07:03:41 And before it seems the R from the library project contained even the resources from your own project. but not anymore :) Nov 16 07:38:49 http://pastebin.com/4QHRNrrE how to refer to the upper class from inside setPositiveButton? Nov 16 08:29:55 wow, they actually updated this http://www.informit.com/store/java-virtual-machine-specification-java-se-7-edition-9780133260489 Nov 16 08:30:51 Hi. I'd like to pass an array of Bitmaps to a native method, and update them directly. How do I do that? Nov 16 08:34:23 http://pastebin.com/4QHRNrrE what to do with that code to make it Parcelable ? :) Nov 16 08:42:23 If I wanted to write something like a word processor for Android, what would be a good approach to rendering the formatted text on screen? Nov 16 08:42:38 Actually, i guess the functionality that I want to build is a little closer to a code editor/syntax highlighter Nov 16 08:57:10 on here Nov 16 08:57:10 http://developer.android.com/develop/index.html Nov 16 08:57:31 there is a tablet with some cool looking piecharts and graphs Nov 16 08:57:56 anyone have any idea if those are libraries from any 3rd party or where they are from? Nov 16 08:58:32 the "Building Great Apps for Tablets" slide Nov 16 08:59:50 well, there is achartengine Nov 16 09:00:12 its buggy though Nov 16 09:00:42 monkyfoniks, that's mint.com, it was mentioned in some of the developers live videos Nov 16 09:00:55 i beleive it's a prepietory linrary Nov 16 09:01:07 proprietary* Nov 16 09:01:26 androidplot has been been pretty iffy Nov 16 09:01:38 your best bet is to write your own Nov 16 09:19:19 mornin' gents Nov 16 09:19:22 Hey Guys, Nov 16 09:19:28 greets Nov 16 09:19:57 I need a hack, basically I want to know when onTabReselected got called because someone genuinely reselected it or when device rotated Nov 16 09:20:09 morning roger_rabbit Nov 16 09:20:43 http://pastebin.com/Rj4At35S The constructor Intent(HelloItemizedOverlay, Class) is undefined Nov 16 09:20:45 why ? :) Nov 16 09:30:01 Hello all Nov 16 09:32:32 do you have any ideas how can I remove the paired list or haw can I unpaired a paired device Nov 16 09:35:17 Hey, i'd like to respond to the device options key, the physical button. which system event should i respond to? Nov 16 09:40:56 viran: I believe onCreateOptionsMenu and onPrepareOptionsMenu Nov 16 09:41:17 you do know options key is getting depreciated, right? Nov 16 09:43:24 thanks Nov 16 09:43:43 why is it getting depreciated? Nov 16 09:44:30 Google don't like it, if you're relying on options key your code is gonna break on Nexus devices as they don't have a options key Nov 16 09:44:39 you're suppose to use actionbar Nov 16 09:45:19 viran: actually its already deprecated.. if you're relying on it your code is broken Nov 16 09:45:53 from my point of view, apps that ignore the menu button are annoying too :) Nov 16 09:45:54 im giving it as another option, it's not the only way to get into the options menu Nov 16 10:06:14 how to startActivity which will invoke finish? Nov 16 10:09:53 "Apple Granted Patent for Their Page Turn Animation" Nov 16 10:09:55 * g00s sighs Nov 16 10:18:12 how to fix emulator error could not load OpenGLES emulation library Nov 16 10:39:54 last I checked the emulator couldn't do GL Nov 16 10:46:12 I believe the emulator do GL just fine, but unless you use the x86-based emulator with support for accelerated gfx support it might be really slow (or not work at all, haven't tested). Nov 16 10:47:30 Is it possible to use a WebView inside a widget ? Nov 16 11:02:28 the emulator can do ES1.0, and ES1.1 and ES2.0 if you enable accelerated gfx (which sometimes fails. And can provide hilarious-looking display sometimes) Nov 16 11:03:01 http://pastebin.com/Rj4At35S how to get item title inside setPositiveClick ? Nov 16 11:21:57 Hi guys, any of you ever used the broadcom BLE library ? Nov 16 11:26:41 hello guys, I'm using "Intent.ACTION_VIEW" to open the browser with a choosen URL, now I'd like to add some parameters to that URL, hiding them to the user, so I can't just do something like http://www.foo.bar?ID=xxxx, but I think I need to make a POST, any hint about it? I mean, it's possible to use httppost() with Intent.ACTION_VIEW? thanks Nov 16 11:29:41 * capella finally figured out how to use the NDK to build my C code into device executables \o/ Nov 16 11:31:40 :-) Nov 16 11:32:57 can you build a nice, fast ndk X server? I'll pay $0.99 :-) Nov 16 11:33:48 heh - only free software has any value Nov 16 11:35:04 actually, depending on implementation, I may go all the way to 9.99 :-) Nov 16 11:36:30 a nice and fast ndk X server would be great Nov 16 11:36:36 http://tech.slashdot.org/story/12/03/06/1837245/x-server-now-available-for-android Nov 16 11:37:48 that needs lots of improvement Nov 16 11:38:45 for starters, it seems to use android api to draw, not ndk Nov 16 11:52:05 Hi Everybody! Nov 16 12:02:58 and no local apps Nov 16 12:11:50 WTF? http://news.cnet.com/8301-1023_3-57550824-93/google-modifies-android-sdk-to-battle-platform-fragmentation/ Nov 16 12:15:26 Can I change the UI of the current activity's contentview while a dialog fragment is showing above it? Nov 16 12:16:46 I feel like I'm missing the forest from all the trees - how the hell do I retain a gridview's scroll position without the configChanges in the manifest file? Nov 16 12:18:06 tee_pee isn't there a getFirstVisiblePosition method you can call? Nov 16 12:21:03 lasseri - ah yes, that was the one Nov 16 12:24:09 how can I pass a width of "0dp" through to a LinearLayout.LayoutParams constructor? Nov 16 12:24:41 I've tried (int) getResources().getDimension(R.dimen.auto_size) Nov 16 12:27:16 i've always wondered.. on the android dev blog they advocate using HttpUrlConnection going forward (as httpclient is no longer actively developed), but httpUrlConnection has such awful support for say, POST requests. What's the deal? Nov 16 12:28:46 isn't HttpURLConnection a java API? Nov 16 12:28:58 ollie = new LayouParams(0, 0)? Nov 16 12:29:02 java.net.HttpUrlConnection Nov 16 12:29:05 (pseudocode) Nov 16 12:29:35 stork: well, I guess they've painted themselves in a corner somewhat by using a weird version of httpclient Nov 16 12:29:59 quite the corner indeed. Nov 16 12:30:16 iirc they took the cvs code for some pre-2.0 version of httpclient Nov 16 12:30:24 and included it as the standard API in android Nov 16 12:30:40 which is now completely incompatible with any new httpclient versions Nov 16 12:30:51 so they can't really update it Nov 16 12:31:22 eurgh. Nov 16 12:32:00 what they should do imo is simply build a convenience http library on top of httpurlconnection Nov 16 12:32:08 and include it in the support lib Nov 16 12:32:13 aye, I agree. Nov 16 12:32:25 What is one step of an iteration called, the verb? Nov 16 12:32:38 or even port in a new version of httpclient, and put it under a different packagel. Nov 16 12:33:19 yeah, you can do that yourself of course, since it's a pure java library Nov 16 12:33:37 true. Nov 16 12:33:56 might be a bit much to include that in the support lib by default Nov 16 12:34:04 as it would likely make the support lib twice as large Nov 16 12:34:18 it's so damn weighty. Nov 16 12:36:15 so i'm stuck either using HttpUrlConnection and writing my own POST stuff, or an old version of HttpClient. Nov 16 12:36:47 I guess, I'd go with the former option Nov 16 12:37:04 the old weird httpclient api is a pain to work with Nov 16 12:39:27 I guess the only thing you'd need is a Map -> String function to encode something as application/x-www-form-urlencoded? Nov 16 12:40:03 that's true. Nov 16 12:45:31 hey Guys I'm using actionbar style generator to generate a light theme with dark actionbar however the options menu items have dark text on dark background Nov 16 12:50:54 I have a Fragment, with a ListView in there, and as a list-item a custom view. .. and in that custom view I have overridden "onTouchEvent()" (still returning "super.onTouchEvent(event)") this worked in a small sample project.. but now i implemented it in my larger project and it only works for my first list-item Nov 16 12:51:21 for the second list-item it gives me a NullPointer on android.view.ViewGroup.canViewReceivePointerEvents Nov 16 12:55:12 how to scroll ListView to specific position? Nov 16 12:57:17 set item Nov 16 12:57:31 I found setSelection on the internets Nov 16 12:57:41 psuedocodespeak Nov 16 13:03:59 how to send ListActivity a message to scroll to specific position? Nov 16 13:05:49 squ where's the request coming from? Nov 16 13:06:54 from a dialog inside another activity Nov 16 13:07:00 use an interface Nov 16 13:07:13 any tutorial on this? Nov 16 13:07:23 is it a dialog fragment? Nov 16 13:07:51 well actually if it is another activity, is this dialog starting the list activity? Nov 16 13:08:00 http://pastebin.com/4QHRNrrE Nov 16 13:08:02 then you can just pack it into the intent Nov 16 13:08:11 inside setPositive Nov 16 13:08:48 dialog is not from list activity Nov 16 13:09:09 ahh well you need to start the list activity on a pos click right? Nov 16 13:09:12 *positive button Nov 16 13:09:53 list activity is already started Nov 16 13:10:11 its like that: start List, then map view, then dialog Nov 16 13:10:43 from dialog I'd like to navigate to specific position in list Nov 16 13:10:46 squ same problem you have like you had with finishing it: how do you access your listview Nov 16 13:11:11 I passed reference to parent to dialog Nov 16 13:13:04 someone in #java told me its not Parceable, but it works Nov 16 13:13:05 then do some mContext.yourMethodToAccessYourList().setSelection(i); Nov 16 13:13:22 and you will need to make your context field final for this to work Nov 16 13:13:28 quick question: is the SDK also open source? i've tried to find the sources for platform-tools for hours now with no luck .. Nov 16 13:13:31 let me try Nov 16 13:14:47 timroes, where do I define that mContext method? inside what? Nov 16 13:15:04 its the line to scroll to the position Nov 16 13:15:17 I thought you want to do it in the onClick method? Nov 16 13:15:29 that "yourMethodToAccessYourList()" Nov 16 13:15:52 yes, right Nov 16 13:16:30 yeah that method you have to declare in your activity to return the lsitview Nov 16 13:16:34 that you want to scroll in Nov 16 13:16:38 and btw i forgot a cast Nov 16 13:16:59 (((YourActivity)mContext).getMyListView().setSelection(...); Nov 16 13:17:23 thank you Nov 16 13:17:25 but instead of casting you definately shouldn't only pass a context to your method, but the activity yoyu need Nov 16 13:17:44 so changing type of field mContext to your activity and pass this over, the other way would be very dirty Nov 16 13:19:17 this is what I'm doing: public MyObjectListActivity pList; inside HelloItemizedOverlay Nov 16 13:20:13 then inside MyMapActivity I do: HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay ... itemizedoverlay.pList = Nov 16 13:20:17 i guess you should make it private, but yeah now pass it in the constructor, then whenever you want to scroll call a method on your activity, that returns the listview and then scroll on it Nov 16 13:20:27 ah gosh ... Nov 16 13:20:35 make it private and pass it to the constructor Nov 16 13:21:15 how do I get activity which called MyMapActivity. The MyListActivity? Nov 16 13:21:42 Can I prevent activity start and show another activity instead? I am trying to show preferences on the first start. Nov 16 13:22:03 ah you even don't want to scroll inside a list that is in your current activity? Nov 16 13:22:33 so you want to exit the current activity and then scroll in the calling activity, you would need to start the activity and request a result, that tells you where to scroll Nov 16 13:23:02 example e.g. http://android.rahulblogs.com/android-startactivityforresult-example/ Nov 16 13:23:06 ^^ ++ Nov 16 13:24:14 squ: and besides I am sorry to tell, I must agree with what lov said yesterday: PLEASE learn Java in the first place Nov 16 13:27:24 this is what I'm doing right now :) Nov 16 13:27:37 obviously it doesn't work Nov 16 13:27:51 since you're having other people build your app for you step for step Nov 16 13:28:44 I'm so sorry Nov 16 13:30:16 just start at the basics, learn java, then start working with complex examples Nov 16 13:30:54 (and it seems you're doing awfully specific things for a tutorial, what are you trying to build?) Nov 16 13:31:23 he's building an app where you can select strip clubs on a map and find out whos working on such and such night in the listview ;p Nov 16 13:31:24 is it possible to put "this" inside activity.putExtra? Nov 16 13:31:42 Maurits_, I started with google maps tutorial Nov 16 13:32:06 https://developers.google.com/maps/documentation/android/hello-mapview Nov 16 13:32:23 yes, but you've started extending that tutorial Nov 16 13:32:23 squ do you know what 'this' is? Nov 16 13:32:35 what do you want to build on top of it? Nov 16 13:32:43 not really :) Nov 16 13:32:44 and why specifically that? Nov 16 13:32:55 you see thats one problem :) Nov 16 13:33:07 if youi dont know what this is, everything else in that tutorial is just outside scope Nov 16 13:33:32 obviously you do, since the tutorial doesn't have a listview, dialog or startActivity Nov 16 13:35:09 these 3 are basic stuff Nov 16 13:35:30 especially dialog Nov 16 13:36:04 squ the problem is you're following a recipe without any idea of what the ingrediants are so you have no real idea of how it'll come out Nov 16 13:36:27 and unfortunatly no one wants to eat a half cooked pickle cake ;p Nov 16 13:37:43 the real problem is actually, whatever you end up making, unless its just for you, may be very buggy and the app ecosystem doesn't need more poorly functioning apps Nov 16 13:37:49 it has enough working useless apps as it Nov 16 13:37:50 *is Nov 16 13:37:51 I need something to start from :P Nov 16 13:39:09 totally I was in your shoes not long ago, the key is instead of trying to finish your app so much try and get an understanding of what you've done so far Nov 16 13:39:32 I would basicly start with the tutorials in the android developer page, the BASIC ones Nov 16 13:39:48 http://developer.android.com/training/index.html Nov 16 13:40:06 this is a perfectly ordered list, with increasing complexity Nov 16 13:41:51 I did 2 already Nov 16 13:42:24 Did you have an OO programming expierence before? Nov 16 13:43:07 not much Nov 16 13:43:20 I started thinking in java too Nov 16 13:43:46 btw, anyone any ideas on that: https://plus.google.com/u/0/100465676060756056737/posts/coNokNVLuSY Nov 16 13:43:47 then you should also read some oo tutorials and java stuff so you're not using the tutorials are cookie cutters Nov 16 13:44:23 timroes: yeah sure your avater needs a moustache Nov 16 13:44:47 sorry, i wasn't detailed enough :) Nov 16 13:44:55 anyone any helpful ideas on that? :) Nov 16 13:45:17 why not just use a three column sqlite database? Nov 16 13:45:27 _id, key, value Nov 16 13:46:28 timroes: not a perfect solution, but you could simply encrypt it, stick it in assets/ Nov 16 13:46:35 and store the decryption key in code Nov 16 13:46:46 i am atm writing a framework. a developer using that, should be able to make some configuration, which I would most appreciate having done in xml (or something similiar). so the question is, where should i let the user place it Nov 16 13:47:20 Maurits_: the problem is, that in that way the developer using the framework would need to encrypt the config, he wants to use, what in my opinion is pretty much a pain in the a** Nov 16 13:47:47 At least I wouldn't be so happy if i try to use some framework, and it tells me place your config into assets/config.xml and encrypt it beforhand with tool x Nov 16 13:48:36 well, the problem with putting it in the apk unencrypted Nov 16 13:48:46 is that someone could simply unpack the apk Nov 16 13:48:57 in addition to the PackageManager on device solution Nov 16 13:48:58 i am happy as long as other apps cannot access it Nov 16 13:49:09 Mauritis: someone if they wanted too doesn't matter cause they can decompile and get the key if they wanted Nov 16 13:49:11 you get access to the apk with the packagemanager? Nov 16 13:49:23 well, resources, assets Nov 16 13:49:27 are all in the apk Nov 16 13:50:17 hooray, "setResult + onActivityResult" are great! :) Nov 16 13:50:27 so I'm guessing the packagemanager looks in the apk Nov 16 13:50:28 timroes, thanks! Nov 16 13:51:55 Maurits_: but the PackageManager might not give a user acess to look in all parts into it :) Nov 16 13:52:15 but i really guess it doesnt matter so much, since anyway how much you safe it, you can always access it... Nov 16 13:52:27 I'm pretty surprised it lets people look into other apps assets Nov 16 13:52:27 timroes, do you any other tutorial on these, besides that example you gave? Nov 16 13:52:44 you do need some scary permission to do that? Nov 16 13:53:17 time to start encryption the in-app sql databases I guess Nov 16 13:53:42 Maurits_: I haven'tr tried it out yet, but found somewhere the code lines, i am not sure if they require any permission Nov 16 13:54:41 getPackageManager().getResourecsForApplication("com.example.app") //.getAssets() Nov 16 13:55:18 the documentation doesnt state any permissions Nov 16 13:58:35 wow that seems to defeat the whole point of private content providers Nov 16 13:59:29 i guess sql data, caches and everything that is writen on the device (not inside apk) is save? Nov 16 14:00:07 true Nov 16 14:00:18 if you have a rooted phone you can pull it though Nov 16 14:01:08 timroes: there is no way getting around the fact that once the data is there it's the users. if you have web access you can pass a key to decrypt, or if not use reflection to obsfucate the key somewhere in your code Nov 16 14:01:57 I mean, everything you store clientside you have to assume is compromised anyway Nov 16 14:02:07 still, this is a little too easy :) Nov 16 14:07:40 can I add pos neg buttons to a dialogfragment using oncreateview to generate dialog's content? Nov 16 14:18:43 Hello! Is Proguard strongly compress/shrink result size? Nov 16 14:19:42 Proguard removes unused code. Nov 16 14:19:52 I have jar library(500kb jar) and want to applay proguard. Nov 16 14:20:16 http://developer.android.com/tools/help/proguard.html Nov 16 14:20:21 yes Nov 16 14:20:31 i know Nov 16 14:20:34 yep Nov 16 14:21:25 if you're wondering if it will help, I'd say try it and find out. But 500kb isn't very large for an app all things considered. Nov 16 14:21:42 so, main percent of difference in sizes connected with removing unused code or renaming& Nov 16 14:21:45 ? Nov 16 14:22:32 yes, there's no data compression involved, that's not possible. although dalvik bytecode is more compact than java bytecode so a jar will always be smaller when it's compiled into your app Nov 16 14:25:50 well, APKs *are* compressed ;) Nov 16 14:26:13 if my library actively prints logs, they will be corrupted after applying proguard? Nov 16 14:26:26 well, yeah so are .jar Nov 16 14:26:27 or only stack trces? Nov 16 14:26:56 Yauhen90, you can disable obfuscation and use it for shrinking only Nov 16 14:27:31 but there is also a tool to take the obfuscation mapping and apply it to a stack trace to recreate a usable stack trace (called retrace) Nov 16 14:27:34 and only stack traces will be obfuscated Nov 16 14:27:59 yes, i know about retrace Nov 16 14:28:06 and what about logs Nov 16 14:28:09 ? Nov 16 14:28:37 classes and fields will be renamed, but no text of your log message itself will be altered Nov 16 14:28:50 but if they print class.getName() for example, then yes Nov 16 14:29:15 Hello. I'm using a SearchView inside my actionbar. is normal that its state is not preserved across configuration changes? :S Nov 16 14:29:33 "classes and fields will be renamed" only if i obfuscate? Nov 16 14:29:53 Yauhen90: yes Nov 16 14:29:57 Yauhen90, yes. controlled by the "-dontobfuscate" flag Nov 16 14:30:51 thanks alot guys! it is very useful information for me! Nov 16 14:36:32 is there no way to position where dialog fragments appear ? Nov 16 14:36:46 one more question. my library contain dependencies in libs folder. the wont be shrinked? Nov 16 14:37:53 http://proguard.sourceforge.net/index.html#manual/introduction.html "The library jars themselves always remain unchanged." Nov 16 14:40:36 hi Nov 16 14:42:56 is there no way to position where dialog fragments appear ? Nov 16 14:49:13 lasserix, i don't know definitely, but maybe you ca use DialogActivity? Nov 16 14:51:55 i found the method Nov 16 14:55:04 maybe you can tell about this method here? ^) Nov 16 15:02:05 in whatever view you use to get an instance of the dialog fragment's view (createdialog /oncreateview) make the call dialog.getWindow().setGravity(Gravity.BOTTOM); Nov 16 15:06:56 hello Nov 16 15:09:31 I read the new t.o.c. but i have a question - does preventing fragmentation mean i have to support fragments? Nov 16 15:09:41 sorry - scratch that Nov 16 15:09:54 i mean view fragments Nov 16 15:10:02 The_Fred: er, no. Nov 16 15:10:44 ok, i was dreading having to re-write 15 apps (for 2.1 eclair) Nov 16 15:14:09 Hi all! I'm using a ViewPager that I want to populate with fragments, all displaying a ListView. Nov 16 15:14:32 I don't know at compile time how many fragments I'm going to need, as I have to make a request to a remote server first to tell me that info. Nov 16 15:14:54 I add an imageview through code into my activity view and loads a bitmap onto it. But after changing orientation, the imageview disappears. I tried configChanges="orientation" in the activity tag, it does not work. Nov 16 15:15:20 The problem is: as this ViewPager is in my main activity, I need to have a dummy fragment to display first, then load all the other fragments. Nov 16 15:15:54 How can I remove that dummy fragment? Everything I have tried now results in some way or another in an NullPointerException. Nov 16 15:16:57 napster: I've had the same problem on a previous project. One solution is to keep your bitmaps in a globally accessible cache, then reload them on activity recreation. Nov 16 15:17:29 boily: ok, ty Nov 16 15:18:48 how to refresh logcat? Nov 16 15:20:39 squ: er, refresh logcat? Nov 16 15:20:44 it just happens Nov 16 15:23:09 turn off scroll lock. make sure adb is connected. etc :) Nov 16 15:24:18 configure adb/wifi if you havent, because it might surprise you but it stays connected a lot better due to the absence of physical wear and tear on a cable and usb port. Nov 16 15:26:09 evancharlton: sometimes in eclipse I have to click on the device name in the Devices view to unstick logcat. Nov 16 15:26:36 http://pastebin.com/4QHRNrrE how to get dialog title and text inside setPositiveButton ? Nov 16 15:27:27 dialog.getTItle() dialog.getMessage()? Nov 16 15:28:11 no such Nov 16 15:28:20 yeah Nov 16 15:28:24 should I tell you why? Nov 16 15:28:27 LEARN JAVA !!! Nov 16 15:28:33 :) Nov 16 15:28:38 ok Nov 16 15:28:45 the problem is in the architecture, and its some very basic of java, that will tell you that Nov 16 15:28:47 I'm learning by this map view example :) Nov 16 15:28:50 and we had it already several times :) Nov 16 15:28:59 make the dialog variable final Nov 16 15:29:20 from within an anonymous class'es method you can only access final members of the outer method Nov 16 15:30:02 what if I make it static? Nov 16 15:30:17 I havent yet read thinking in java till final Nov 16 15:30:20 static is the root of all evil Nov 16 15:30:39 I know about static only :) Nov 16 15:30:48 Has any got Activity class error: does not exist in Intellij? I have that error but I can see the file in question, I checked all the configuration options and I regenerated the R file and I can't "upload" my project. Nov 16 15:30:53 you cannot make a variable inside a method static Nov 16 15:31:05 squ, http://programming-motherfucker.com/become.html#Java Nov 16 15:33:50 Sculptor, I need a tutorial on final Nov 16 15:35:37 timroes, do you mean final AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);? Nov 16 15:36:32 yeah Nov 16 15:36:45 ah wait its the builder not the dialog Nov 16 15:37:20 :) Nov 16 15:37:25 might work anyway Nov 16 15:37:28 nope Nov 16 15:38:51 yeah right it doesnt have such methods :) Nov 16 15:39:00 :) Nov 16 15:39:22 i guess noone who developed the api saw any need (neither do I) to retrieve the title or message of a dialog, when hitting a button Nov 16 15:39:49 since your title and message comes from item.getTitle() and item.getSnippet(), why you dont check for these methods? Nov 16 15:40:02 (again dont forget the final for the item) Nov 16 15:41:27 I will consider submitting bug report to api developers Nov 16 15:44:15 I will consider that you're using it wrong. Nov 16 15:48:18 i'll second that Nov 16 15:51:23 me too :) Nov 16 15:52:02 * squ agrees Nov 16 15:58:14 Hello, i'm really new here, I have a linear layout which contains 3 elements and I need them to be laid out like this [textfield] [slidebar][checkbox] my problem is I do not know how to create that dynamic space between the two elements, where can I read on that? Nov 16 15:59:22 matsebc: i geuss best for your case would be relativelayout (for most cases I'd prefere that), you could link the text field to the left side of its parent container, and the checkbox to the right, and the slidebar to the left side of the checkbox) Nov 16 16:00:00 timroes: instead of using the linear layout you mean? thanks I'll give that a shot Nov 16 16:00:16 matsebc: even with linearlayut, you can set text layout_gravity to left and others to right. Nov 16 16:00:18 yeap instead of the linear layout you will put a relativelayout in that field Nov 16 16:02:11 I've got a normal Java library project (not an Android library project) which I'm referencing from my Android app in Eclipse. It compiles fine, but generates "class not found" exceptions at runtime. Any idea how to fix it? Nov 16 16:03:51 I have a onSearchRequest where when the query is submitted a new class gets started, in this new class if I try to call onSearchRequested nothing happens, I don't get the search bar Nov 16 16:03:55 anyone know why? Nov 16 16:04:01 leslie: how do you reference it? Nov 16 16:04:26 HDroid, under "Projects" in the build path Nov 16 16:04:51 If you just drag it in, it has to be in the libs dir. No need to put it in the build path manually, the platform plugin will pick it up. Nov 16 16:05:25 drag what in exactly? Nov 16 16:05:30 "libs dir" being a directory called libs in the root of your project. Nov 16 16:05:54 Hm this is not a jar, I guess. Nov 16 16:06:34 nope. I guess I could create a custom build stage to copy the jar to the libs folder, I just wondered if there was a proper method Nov 16 16:06:54 I'm not sure, I've never done it that way. Nov 16 16:07:02 i did it that way the other day Nov 16 16:07:14 with regular android library projects and robolectric on ant Nov 16 16:07:27 i wrote a bash script that went into the lib projects and copied the classes.jar files Nov 16 16:07:35 ahh ok Nov 16 16:07:41 I guess that'd work Nov 16 16:07:52 you might be able to just add stuff to .classpath Nov 16 16:07:57 seems a bit strange though Nov 16 16:08:22 well its that or write an ant target to look in the appropriate places Nov 16 16:08:38 i don't find ant as easy as a bash script, so Nov 16 16:10:33 leslie: https://gist.github.com/4088569 Nov 16 16:10:44 thanks :) Nov 16 16:10:44 the way it works is it checks your project.proprties file for library references. Nov 16 16:10:55 you could add your own custom syntax instead of android.library or whatever i'm using Nov 16 16:11:04 it splits everything after the = and copies it Nov 16 16:12:15 yeah, it's line 89 you'll want to change Nov 16 16:13:50 I'll have a look at it Nov 16 16:15:36 is the goal to build an apk or something else Nov 16 16:16:51 yeah, apk Nov 16 16:16:56 but I'm using eclipse, not ant Nov 16 16:20:49 i guess copying the stuff into libs has a good chance of working. as does .classpath Nov 16 16:20:50 actually, I think I figured out how to do it in eclipse Nov 16 16:20:55 oh, nice Nov 16 16:21:34 there was a checkbox in the build order thing that wasn't checked. so I checked it, and it seems to work now Nov 16 16:23:58 awesome Nov 16 16:24:24 bbl Nov 16 16:34:17 did android say they're not going to support hard back button no more ? Nov 16 16:35:30 or was it just the settings button, or are they going to be rid of all buttons like apple and the new ms tablets ? Nov 16 16:36:22 since when has apple gotten rid of all buttons? Nov 16 16:36:41 ok except home witht the apple/ms logo Nov 16 16:37:14 I mean why bother having that either if you're getting rid of the others Nov 16 16:43:58 hello ... i'm trynig to figure out a (probbaly)basic problem ... I created a new app via eclipse, then typed in all the NotePadV3Solution bits. I added the layouts, strings, created the two extra classes, modified the MainActivity. I must be missing something becasue when I run it, the intial main activity crashes. I'm not having much luck debugging as it doesn't even creach MainActivity.onCreate() ... any ideas what I'm missin Nov 16 16:46:53 check the logcat information Nov 16 16:51:09 so, debugger is sitting at ActivityThread.performLaunchAcitivty() line 2059 ... doesn't find source ... logcat only error is error opening trace file ... no such file Nov 16 16:51:56 once I disconnect, then i get a slew of other errorss. Nov 16 16:51:58 BrokenCog: point it to the right source location? (right-click the thread in Debug view and select edit source lookup) Nov 16 16:53:17 regedit: thanks, i'll do that ... I hadn't bothered as i figured if the app is crashing in the system, I'm doing something wrong which needs to be fixed, but I'll look at the system source - it might help figure out what I'm doing wrong. Nov 16 16:53:54 BrokenCog: yup watch the local variables and Exception messages etc Nov 16 16:54:36 well, I'm not even in my app yet ... it's still in the system launch. Nov 16 16:55:45 ah Nov 16 16:56:16 I take that back. super.onCreate() was called ... my breakpoint must have been toggled sorry. Nov 16 16:56:27 so, it's in setContentView. Nov 16 16:58:21 I'm not seeing how to add the source ... right click, I see Edit.. the Default has android.jar and my app. Add button is disabled. Nov 16 17:04:04 JakeWharton Nov 16 17:04:20 crap, he's not here Nov 16 17:04:40 https://github.com/JakeWharton/ActionBarSherlock/issues/703 Nov 16 17:08:38 Is there a way to prune columuns in/out of LogCat?? Nov 16 17:11:24 didja try sprinkle logcat messages in your source to localize the error? Nov 16 17:12:43 capella: um, I want to remove columns from LogCat, remove PID, Time ... hopefully give more room to the actual error message so I can read it. Nov 16 17:12:56 yah know ... Log.W("MYAPP", "Im starting the main orutine"); Nov 16 17:12:57 Log.W("MYAPP", ...) Nov 16 17:13:14 oh ... is that an issue? Nov 16 17:13:15 I have a onSearchRequest where when the query is submitted a new class gets started, in this new class if I try to call onSearchRequested nothing happens, I don't get the search bar Nov 16 17:13:19 anyone know why? Nov 16 17:14:01 capella: an issue ... well, the formating is hard on my eyes ... I guess you could call it an issue. Nov 16 17:14:18 brokencog: my screen is superwide ... i take it for granted :) Nov 16 17:14:43 capella: most people with luxuries take them for granted ... Nov 16 17:15:17 but i code all my apps with Log.W() messages at start and end of each function ... display if a DEBUGFLAG is true in my code Nov 16 17:15:17 BrokenCog: about attaching source: browse to the 'source' folder of your sdk Nov 16 17:16:00 regedit: there is no usable browse button. Nov 16 17:16:29 what IDE? I use intelliJ Nov 16 17:17:00 BrokenCog: assuming eclipse here, edit source lookup as described above > external folder > browse Nov 16 17:17:13 okay ... I got it. I was selecting the android.jar entry ... I had to select the Default entry. Nov 16 17:17:44 not sure that has anything to do with it Nov 16 17:17:51 perhaps you need to click 'add' Nov 16 17:17:58 as in adding a new lookup location Nov 16 17:18:10 regedit: that's what I mean ... I couldn't clcik add until I selected "Deafult." Nov 16 17:18:19 weird Nov 16 17:18:30 get latest SDK bundle Nov 16 17:18:34 this is. Nov 16 17:18:47 oh well Nov 16 17:18:54 now I have to remeber whether I'm using android 14, 15 or 16. Nov 16 17:19:13 latest sdk bundle is 17 Nov 16 17:19:47 latest sdk bundle comes with eclipse (android-ized) Nov 16 17:20:28 regedit: guess I'm one back then. I downloaded a couple earlier ones to use on my old phone. Nov 16 17:20:53 ditch your entire previous android sdk and start afresh with latest bundle :D Nov 16 17:21:00 still ... the logcat wont horizontal scroll? Nov 16 17:21:03 4.2 is awfully buggy Nov 16 17:21:30 pragma-: welcome to android? Nov 16 17:21:42 capella: it was line breakting the text in horid places. I just moved the window size past the screen edge, now I can scroll. Nov 16 17:21:46 2.3.7 was the last great android Nov 16 17:22:00 * capella another reason to use intellij :P Nov 16 17:22:05 GingerBreak Nov 16 17:22:48 so, should I focus on the first or last error? first is content must have a ListView whose id attribute is android.R.id.list which seems the most promising, but I'm not sure how to fix. Nov 16 17:22:55 add a listview weher?? Nov 16 17:23:05 name the view correctly? Nov 16 17:23:28 in the layout or the manifest? let me check them... Nov 16 17:23:35 tiping korrektlee? Nov 16 17:23:58 I only give correct tips. :). Nov 16 17:24:05 trying to reference fields before inflating? Nov 16 17:25:00 I think in the layout it's complaining about this: which is what I copied from the NotepadV3Solution example... Nov 16 17:25:27 [ hey, don't hate ... ] Nov 16 17:25:35 can you name the id that way? Nov 16 17:25:52 capella: well, Android example did .... I didn't. Nov 16 17:26:09 At my level if it comes from dev.android.com I don't question it. Nov 16 17:26:28 Yes, you can name it that way Nov 16 17:26:34 capella: that's what I would expect also, but ... Nov 16 17:26:37 Tho I prefer @android:id/list Nov 16 17:26:49 evidently it's some sort of predefined list view? Nov 16 17:27:04 It's a framework id Nov 16 17:27:13 Needed for listactivity/fragment Nov 16 17:27:38 ah... Nov 16 17:27:45 not a local Nov 16 17:28:31 so, @android:id/list is equivalent to @+id/android:list ? Nov 16 17:31:27 no BrokenCog Nov 16 17:31:42 the latter is most likely a syntax error Nov 16 17:32:22 What are the steps needed to convert an activity from extends Activity to extends ListActivity? I implemented the protected methods, but what else might I be missing? does the manifest need to change? Nov 16 17:32:40 BrokenCog: no Nov 16 17:32:44 it's like x-mas learning new stuff all day long ;D Nov 16 17:33:06 canadiancow: okay. It doesn't error as bad syntax, and I didn't change it as that is how the example was. Nov 16 17:33:30 evancharlton: okay. So something else perhaps? Nov 16 17:33:44 what problems are you having Nov 16 17:34:02 did you add a listview with the id @android:id/list ? Nov 16 17:34:22 BrokenCog: hey man, something's not right with my car. What's wrong with it? Do I need to repaint it? Nov 16 17:34:45 heh wont hurt Nov 16 17:35:21 evancharlton: sorry about your car. would you like me to help ? well, since your worried about your paint color let me guess you don't know shit from shit about cars? okay no problem ... does your clunker turn on? Nov 16 17:35:38 * capella ducks Nov 16 17:35:41 evancharlton: get it? Nov 16 17:35:54 BrokenCog: I don't know, it's just not right. I followed the instructions on the tire polish but it didn't help. Nov 16 17:36:01 canadiancow: so, to summarize ... Nov 16 17:37:24 I created an app via Eclipse, then used the NotePadV3Solution example from android.com to learn about fixing cars^H^H^H^H Lists/SQL, and as a result the app crashes in onCreate()'s call to setContentView(). Nov 16 17:37:45 Hi, I'm having some trouble with devices using NuPlayer, is this the right place to ask about it? Nov 16 17:37:45 pastebin time? Nov 16 17:37:59 says thi ListView must have a id for list, which the NotePad defined in the layout as @+id/android:list ... Nov 16 17:38:00 BrokenCog: pastebin both your source and the stack trace from logcat Nov 16 17:38:05 capella: sure, which file? Nov 16 17:38:15 BrokenCog: @android:id/list Nov 16 17:38:18 start with the activity and the view xml Nov 16 17:38:19 evancharlton, o/ Nov 16 17:38:29 evancharlton: I'll switch it ... one sec. Nov 16 17:38:38 holy crap are you serious? Nov 16 17:38:43 did you add a listview with the id @android:id/list ? Nov 16 17:38:50 canadiancow: Unfortunately it's not a syntax error Nov 16 17:38:52 Tho I prefer @android:id/list Nov 16 17:39:08 you can put a colon in the name? Nov 16 17:39:23 android:id="@+id/foo" Nov 16 17:39:27 The name is still list Nov 16 17:39:35 android: just tells it it's in the android package Nov 16 17:39:41 The + is ignored since it exists Nov 16 17:39:58 @+id/android:mylistview would likely fail, since you can't add id's to the android package Nov 16 17:40:07 but @+id/android:list is valid ;O Nov 16 17:40:28 B) Nov 16 17:40:29 Activity http://pastebin.com/kgFJYViP Nov 16 17:41:05 manifest http://pastebin.com/jM0Sq3Gt Nov 16 17:42:05 ick ... spam detection hates me Nov 16 17:43:38 ahhh Nov 16 17:44:05 so, the project wizard created an activity layout for the main activity, but the exapmple has a different set of layouts. Nov 16 17:44:54 let me clean this up and try it. Nov 16 17:48:29 okay, well that seems to fix the creating of the view in setContentView, now the db part has problems, but at least I can work in the app to figure that out. Nov 16 17:48:59 I'm still a little vague on how the Activity gets associated with a particular layout ... is it only via the name of the XML file? Nov 16 17:49:28 R.layout.main_activity is just generated from main_activity.xml?? Nov 16 17:49:46 yes Nov 16 17:49:55 yes Nov 16 17:50:53 so, I created the basic app, but didn't put the exapmlpes layout in the correct file ... Nov 16 17:51:17 Yep, you did it wrong Nov 16 17:52:15 SimonVT: oh, I never doubted that ... I just couldn't see what I did wrong. As evancharlton pointed out I don't shit from shit about Android Dev ... Nov 16 17:52:41 so cool ... now you can write an app with multiple activities for your next trick to learn :) Nov 16 17:53:47 * capella bails ... hasta teach the dad how to build a website Nov 16 17:53:57 Hi, I'm having some unexpected behaivour with the NuPlayer, is this the right place to ask about it? Nov 16 17:54:18 hi Nov 16 17:55:40 can anybody help me? I've updated to adt v21 today and now my Project throws errors if i try to open the xml layout designer Nov 16 17:56:04 thinks like this Nov 16 17:56:24 Unable to find Action Set: org.eclipse.ui.tfs.actionSet Nov 16 17:56:28 LordBeppo: check which android version is selected in the layout viewer - I had a similar problem. Nov 16 17:57:02 ok, my project is api lvl 13 and the designer shows 14 Nov 16 17:57:12 BrokenCog: no, I wasn't pointing out that you don't know anything about android development. I was pointing out that you were phrasing your questions in the least helpful way possible Nov 16 17:57:27 BrokenCog: "it's not working, what's wrong?" is not a good way to ask a question Nov 16 17:58:02 Incorrect line ending: found carriage return (\r) without corresponding newline (\n) Nov 16 17:58:42 evancharlton: so, i agree. What I was trying to get at is that if I'm having a problem about something completely unknown, I can't ask intelligent questions. Hence my initial question was ... "any ideas?" ... people with more knowledge understand better where to focus ... Nov 16 17:59:03 and from there we found a solution. Nov 16 17:59:28 Step 1: pastebin your code and stacktrace Nov 16 18:00:26 SimonVT: so, I've solved the original problem of the view ... the app starts correctly and the listview is working - or would if it getWritableDatabase() worked which I'm trying to debug now :). Nov 16 18:00:50 There's probably a stacktrace for that as well Nov 16 18:01:00 SimonVT: probably :). Nov 16 18:03:35 okay. it all works. (SQL create statement had typo). Nov 16 18:10:13 \o/ Nov 16 18:11:20 I'm sure I'll be back with other questions ... Nov 16 18:15:19 yes you can paint your car to fix your tires :P Nov 16 18:44:37 does anyone know of some great resources for Android internals? Nov 16 18:44:52 there used to be a Marakana class called Android Internals where they had online videos, but it looks like those were taken down Nov 16 18:48:12 "android internals" ? Nov 16 18:49:58 "android internals" - make very sure the phone is waterproof Nov 16 18:51:16 hah Nov 16 18:51:23 no I mean like videos on how the internals works like Nov 16 18:51:38 the stack, the kernel, the stuff non-App related I guess Nov 16 18:51:44 memory management possibly Nov 16 18:51:52 they used to have a really good set of videos on this Nov 16 18:53:11 any idea why sans-serif is giving me Error: No resource found that matches the given name: attr 'android:fontFamily' Nov 16 18:54:34 Wrong build target? :p Nov 16 18:54:47 17 Nov 16 18:54:53 maybe i should just clean Nov 16 18:54:56 i dont know why i didnt try that Nov 16 18:55:04 are there any good work-arounds for the 4.2 change that does not allow apps to read the logs of other apps Nov 16 18:55:28 Don't make apps that need to read logs of other apps Nov 16 18:55:31 yeah there we go Nov 16 18:55:38 sleepster, that's a 4.1 change Nov 16 18:55:39 I am writing a security app Nov 16 18:55:59 Then you should be happy that google is securing other apps logs Nov 16 18:56:05 and the only way to safely determine where the user is browsing is to monitor the logs for chrome's URL logs Nov 16 18:56:16 I've thought of other ways to do this Nov 16 18:56:19 but that seems the safest Nov 16 18:56:25 and least intrusive Nov 16 18:56:26 VPN Nov 16 18:56:33 plus web proxy Nov 16 18:57:06 What if they're not using chrome Nov 16 18:58:29 and what if chrome stops logging URLs, as it should? Nov 16 18:59:27 thanks Nov 16 18:59:29 those are good ideas Nov 16 19:11:50 * tnzr greets Nov 16 19:20:30 Hey, I'm trying to use the TTS engine from a service. The TTS events won't happen very often and I want to be a good neighbor, when should I call shutdown()? Nov 16 19:20:57 after each TTS event or only in onDestroy()? Nov 16 19:21:23 if i haven't called shutdown(), but I'm not playing anything am I restricting use by other applications? Nov 16 19:22:51 lov, if you set an alarm in the 4.2 clock app, and it goes off, you have notification action "snooze", that appears to change the action without it "refreshing" Nov 16 19:39:25 so here's a stupid question... where on 4.2 did developer options move to? Nov 16 19:40:01 ah i see. internet to the rescue Nov 16 19:40:01 dragorn: you have to click several times on version number in about page, iirc Nov 16 19:40:04 boy that's dumb Nov 16 19:40:06 p_l: thanks Nov 16 19:40:08 or something like that Nov 16 19:40:09 p_l: that's craptastic Nov 16 19:40:11 yeah Nov 16 19:40:43 dragorn: well, it's supposedly to prevent users from stumbling there, but I'd prefer if that was only required to access the menu to switch them on or off from the old place Nov 16 19:44:30 you have to do it once Nov 16 19:44:34 its not a big deal Nov 16 19:49:53 canadiancow: so only once? good to hear Nov 16 19:50:09 * p_l doesn't exactly see a way to get N4 Nov 16 19:50:14 it permanently enables the dev options setting Nov 16 19:50:18 or any other device with android 4.x Nov 16 19:50:22 so unless you clear data on the settings app... Nov 16 19:50:30 you dont have a nexus s/galaxy/4? Nov 16 19:50:33 and cant get one? Nov 16 19:53:19 yep :P Nov 16 19:53:48 importing is crazily priced, and Google Play won't sell one to me easily Nov 16 19:54:05 maybe in a month I might have enough to account for UKs higher price plus arranging something to send it from UK to me Nov 16 19:54:28 but I think getting a replacement laptop is higher priority, and that's a 1.5k EUR undertaking if done well Nov 16 19:56:16 (and it's not worth buying a phone at other point in time that shortly after release - I made that error once, not anymore) Nov 16 19:56:51 turning developer options into an easter egg seems like a monumentally stupid idea. Nov 16 19:57:22 they were already out of the way and warning users not to use them if they didn't need them. Nov 16 19:57:27 what developer options are you referring to? Nov 16 19:58:58 does anybody know where the Developer settings menu went in 4.2? I can't find it on my Nexus 10 Nov 16 19:59:16 lol Nov 16 19:59:48 damn thing doesn't show up in `adb devices` either Nov 16 19:59:51 jonp: iirc tap several times on version number (or maybe build string?) in "About" pane of settings Nov 16 20:00:04 can't say I can verify :) Nov 16 20:00:40 *shakes fist* ... I need interfaces on Sherlock acitvities, Jake! See what you drove me to do? -> http://pastebin.com/Xw0HY1X4 Nov 16 20:00:57 p_l: that...covers the screen in jelly beans. Nov 16 20:00:59 interesting. Nov 16 20:01:04 but not hoped for Nov 16 20:01:12 Still, it's fun with the naming Nov 16 20:01:19 DR01D-Engineer: these ons: https://www.dropbox.com/s/grh1u8y6nl4fjio/screen_20121116_1959.png Nov 16 20:01:28 s/ons/ones Nov 16 20:01:46 jonp: hmm Nov 16 20:01:59 p_l: i had to tab Build number a lot Nov 16 20:02:03 well, supposedly it was one of those fields (just like the jelly bean gag), tapped 6 times Nov 16 20:02:04 or something else in the About tablet page Nov 16 20:02:12 what the fucking fuck. seriously. Nov 16 20:02:14 in my case debug mode is locked on Nov 16 20:02:16 lol Nov 16 20:02:29 i see Nov 16 20:03:14 jonp: it's the build number Nov 16 20:03:46 developer mode + USB debugging = `adb devices` works. hurrah! Nov 16 20:05:43 DR01D-Engineer: this is what it looks like after I've done my manic tap-dancing: https://www.dropbox.com/s/o9mwbsk4mzkht8c/screen_20121116_2004.png Nov 16 20:06:57 weird Nov 16 20:07:17 DR01D-Engineer: it's a 'feature' Nov 16 20:09:14 Ankhwatcher: you can't turn off usb debugging via the checkbox now? Nov 16 20:10:22 ctate: well usb debugging was already on when I updated my N7, which hid the developer settings Nov 16 20:10:34 oh heh, yeah, i getcha Nov 16 20:10:56 Should finish() "kill" the current actiivty and all child activites spawned from me? Nov 16 20:11:11 no, it only finishes the activity that calls it. Nov 16 20:11:25 (that is, the activity whose finish() method is called) Nov 16 20:11:34 How can you end the activites you've spawned Nov 16 20:11:35 there isn't really such a thing as "child" activities Nov 16 20:11:42 call finish() on them Nov 16 20:11:49 ya that doesn't work all the time Nov 16 20:12:01 I have that in the code but ranomily I'm able to go back into the old activites Nov 16 20:12:15 'back' via the back key? Nov 16 20:12:27 or via some other navigation Nov 16 20:12:29 ? Nov 16 20:12:48 I have the back key bound to finish() in my main activity, my main activity spawns a search activity that when they go back to make call finish after startActivitty but sometimes in Main when I press back I actually go to a search activity Nov 16 20:12:52 does that make sense? Nov 16 20:13:07 go back to main call Nov 16 20:13:45 heh and i already broke my n10 :P Nov 16 20:13:47 hm. Nov 16 20:13:53 <3 google for supplying factory images Nov 16 20:14:05 note that the back key *by default* executes finish() on the foreground activity; you don't need to override anything to make that happen Nov 16 20:14:28 it's safer to over ride it and force it to happen so there should be no question about it happening Nov 16 20:14:38 canadiancow: it's not a huge deal, it's just weird and kind of annoying. I'm over it. Nov 16 20:14:43 heh Nov 16 20:15:08 why is eclipse so cpu-hoggy Nov 16 20:15:12 Odd question, but i have a ListActivity which contains an AutoCompleteTextView next to the ListView. When my activity starts the TextView has focus and if I tape it the IME does not appear. But if I move forward one screen by tapping on the ListView and then tap "back" I can focus on the TextView and the IME appears. Nov 16 20:15:15 canadiancow: because reasons? Nov 16 20:15:15 What am I doing wrong? Nov 16 20:15:18 canadiancow: java Nov 16 20:15:30 canadiancow: probably b/c it opportunisticly compiles constantly Nov 16 20:15:42 docmur: if you don't override it, there's no question about it happening! Nov 16 20:17:21 I don't trust the default actions in Java, in either case I have it set to finish so there is no question about what I want the back key to do Nov 16 20:17:21 its safer to not override it Nov 16 20:17:34 if you override onBackPressed(), im going to bet you're doing something that violates a design guideline Nov 16 20:17:40 or you have no understanding of how android works Nov 16 20:17:49 I'm mostly trying to figure out how I can start my ListActivity so as to ensure the TextView is focusable Nov 16 20:17:50 I'm calling finish(); Nov 16 20:17:55 it's a search bar Nov 16 20:18:01 so that would fall into the latter of my two possibilities Nov 16 20:18:04 so the IME needs to appear for text input when tapped Nov 16 20:18:22 yeah there's no reason to override back if you want back to behave normally. at all. Nov 16 20:20:50 Well the issue isn't the back key so that doesn't matter, I still argue you should override but anyway, my issue seems to be that the finish() calls after the startActivites aren't executing Nov 16 20:25:21 Hi, quick question: When I hit the "Home" button in a mobile, while having an activity with a mediaplayer, I'm getting both an onCompleton and onError events. Is this OK? Nov 16 20:25:24 docmur: Don't be surprised when stuff like fragment backstacks, etc, stops working Nov 16 20:37:43 why would they just stop working? Nov 16 20:41:57 I'm guessing you're overriding default back button behavior without knowing what default behavior is Nov 16 20:42:51 I need the back button to kill the activity if that activity is on the parent screen so when parentID == 0 and KeyCode.KEYBACK is pressed finish() Nov 16 20:42:59 thats what I want to do Nov 16 20:43:20 sorry thats what I'm currently doing Nov 16 20:44:42 This is the code fragement: http://pastebin.com/9jeivYPS Nov 16 20:47:38 What do you do if "parentID" isn't 0? Nov 16 20:48:39 There is a series of checks to see what menu is present, it could be a remote menu, a html menu or a label menu and in each case I need to change the listView, that all works fine, I haven't had an issue with it, I used in the last app. Nov 16 20:50:57 Seems like you're just making it harder for yourself to maintain by not using the recommended ways of managing a hierarchy Nov 16 20:52:11 Hey guys, trying to learn APKExpansionSupport Library. I am trying to access an HTML file stored in my zip and load it into a WebView. I was using loadUrl() before, but now Im lost how to do it with the bob file. Any help would be really appreciated Nov 16 20:52:26 I would say that makes it easier to maintain, what ever you don't put in your leaving it up for someone to guess Nov 16 20:52:28 obb* Nov 16 20:53:38 Odd question, but i have a ListActivity which contains an AutoCompleteTextView next to the ListView. When my activity starts the TextView has focus and if I tape it the IME does not appear. But if I move forward one screen by tapping on the ListView and then tap "back" I can focus on the TextView and the IME appears. Nov 16 20:53:47 What's there to guess about, the default behavior is simple and very well defined Nov 16 20:53:50 I'm mostly trying to figure out how I can start my ListActivity so as to ensure the TextView is focusable and that the IME will appear the first time around. Nov 16 20:59:05 hi guys, i'm just wondering if theres a piece of code that'll let me upload something to the virtual SD card from my android program Nov 16 20:59:10 in eclipse Nov 16 20:59:21 programmatically i mean Nov 16 20:59:29 or in the build script Nov 16 21:01:10 virtual sd card? Nov 16 21:01:30 in the android emulator Nov 16 21:01:47 adb push Nov 16 21:02:40 adb -e push "my file" /sdcard/ Nov 16 21:03:07 cheers Nov 16 21:03:15 i can just put that into the build script right Nov 16 21:03:25 no Nov 16 21:03:38 build script?? Nov 16 21:03:39 PMF. push my file Nov 16 21:03:42 what are you... Nov 16 21:03:46 well idk, what are you doing? Nov 16 21:05:15 just developing an app using eclipse Nov 16 21:06:13 so why are you pushing crap to /sdcard ? Nov 16 21:06:18 so what do you mean build script? Nov 16 21:06:28 like with ant? Nov 16 21:07:47 so why are you pushing crap to /sdcard ? Nov 16 21:07:52 this question needs to be answered Nov 16 21:08:05 I'm creating my first custom component and every time the screen layout changes draw() is called again which draws the control in it's new location, but the previous drawing isn't removed so I end up with trails of my control all over the palce. How can I tell it to erase the previous drawing? Nov 16 21:08:28 worked it out, yeah, i've created a 'build event' jeppy` Nov 16 21:09:09 i'm in the testing process of creating an application, which requires an image instead of obtaining one from the camera Nov 16 21:09:12 chris_99, why are you pushing things to the sdcard? Nov 16 21:09:26 any better way? Nov 16 21:09:55 put it in your assets directory? Nov 16 21:10:18 that sounds much more sensible Nov 16 21:10:27 ta Nov 16 21:11:02 Or just push it once manually Nov 16 21:15:58 Hi, i'm learning android dev. I've got a problem when compiling a widget, i'm told RemoteViews is deprecated. Is it normal ? Nov 16 21:16:29 RemoteViews is not deprecated Nov 16 21:16:43 Certain methods might be, RemoteViews is not Nov 16 21:16:44 you're going to have to be more specific Nov 16 21:20:51 RV is deprecated? Nov 16 21:20:53 fuck... Nov 16 21:21:31 well, i returned a remoteview from i update service and had this error, i tried changing to returned type, it built ok, then i put back RemoteViews and it builds ok ... must be a mistake on my part. Sorry ... Nov 16 21:24:56 canadiancow: given that we just launched lock screen widgets, which are based on RemoteViews, no. Nov 16 21:27:09 i know :P Nov 16 21:27:23 given that i had three people tell me yesterday to use RemoteViews... :P Nov 16 21:29:56 oh wow the new "new android application" wizard lets you specify minSdkVersion, targetSdkVersion, and build target :D Nov 16 21:34:11 hmm, sqlitequerybuilder can only create SELECT queries can;t it? Nov 16 21:42:08 hi Nov 16 21:56:52 in my content provider, can I add an extra column to the projection array without creating a whole new array and copying everythign over? Nov 16 22:00:03 no Nov 16 22:05:34 didn;t think so Nov 16 22:06:14 Anoia: would CursorJoinder work ? Nov 16 22:06:20 *CursorJoiner Nov 16 22:06:26 There is a nice handy appendColumns static method but it uses a StringBuilder with no apparent way of passing that back into the query builder Nov 16 22:07:03 also MergeCursor Nov 16 22:07:20 g00s: not really, it's just an extra calculated column I want to add to all returned cursors Nov 16 22:07:42 in this case firstname || ' ' || lastname AS fullname Nov 16 22:08:27 I can spcifify it when calling contentresolver but was hoping it could be done directly in the content providoer Nov 16 22:09:00 I suppose I could make it a constant as with the other column names Nov 16 22:09:47 new String[] { "_id", "firstname || ' ' || lastname AS fullname", "firstname", "lastname" } Nov 16 22:30:01 I've made a little progress with my SMS app. I think "android.provider.Telephony.SMS_RECEIVED" might be a poor event to hook for receiving sms'. I say this because I can't get public static Main.Receive() to properly update the list from the contentResolver (sms inbox/outbox database) unless I put a Handler.postDelayed() on it. Any recommendations or info? Nov 16 22:32:21 You know the way 51-android.rules defines what vendors you can connect to through ADB, why not just have all of them? Nov 16 22:33:03 Well that doesn't sound like a security risk at all XD Nov 16 22:34:52 Komak57: so the limitation is for securities sake? Nov 16 22:35:05 hi, is there any way i can access the dictionary inside android / linux ? the dict file? through my app? Nov 16 22:35:25 Komak57: there is a big security benefite to connecting to any device made by a manufacterer instead of any device made by any manufacturer Nov 16 22:35:52 Komak57: when a potential attacker could just as easily fake the manufacterer anyway? Nov 16 22:38:32 The problem I am having, is that my SMS isn't added to the database until a smidge AFTER the onReceive finishes. Setting a timer won't give a stable way to update my screens, especially if the phone locks up for longer than the timer. Nov 16 22:39:23 So either I need a way to make a broadcastreceiver in the event an sms is added to the database, or another alternative must be found. Nov 16 22:40:04 I suppose I could just update with the message specifics... Nov 16 22:40:10 oh manos. I feel it's hard to justify the decision for hiding developer options in 4.2 Nov 16 22:40:50 aksu: it adds more steps for little or no benefit, surely that's justification enough? Nov 16 22:41:20 um? Nov 16 22:42:03 oh dear, my crunchbang doesn't seem to have file browser Nov 16 22:42:21 yea Nov 16 22:42:31 I feel bad about that too Nov 16 22:42:33 :( Nov 16 22:42:39 it prevents noobs from going in there and saying "O HAI GPUS ACCELERATION LETS GO FAST" Nov 16 22:43:06 its a negligible one-time inconvenience for real developers Nov 16 22:43:13 canadiancow: most noobs I know are unaware that they have settings Nov 16 22:43:37 there are a *lot* of people who have toggled thigns in there, not understanding what they're doing Nov 16 22:43:56 "protect usb storage" that sounds like a good idea! Nov 16 22:44:01 but then my definition of noobs includes a great number of people who have never signed the google play store or added a gmail account Nov 16 22:44:46 preventing newbies vs enabling developers Nov 16 22:44:54 its a negligible one-time inconvenience for real developers Nov 16 22:45:43 I think hiding developer tools falls into the catagory of discouraging developers, not inconveniencing them Nov 16 22:46:11 you google "how do i put an app on my nexus 4" and you get an answer Nov 16 22:46:16 it's the first step on the road to "you have to buy the developer version of the phone" Nov 16 22:46:31 Ankhwatcher, that wont happen Nov 16 22:46:51 too many users were doing things like checking the "protect usb storage" box Nov 16 22:46:54 causing all their apps to crash Nov 16 22:47:05 canadiancow: they already sell special easy bootloader unlocked phones for "developers" Nov 16 22:47:22 Ankhwatcher: for *firmware* developers, actually Nov 16 22:47:24 the only place these options are hidden are on those phones Nov 16 22:47:25 phones with no sideloading Nov 16 22:47:32 ... armageddon Nov 16 22:47:51 Ankhwatcher: phones without sideloading are incompatible with play store, so.. Nov 16 22:48:12 thats not true Nov 16 22:49:30 Ankhwatcher: "special easy bootloader unlocked phones for *everyone*" Nov 16 22:49:31 be that as it may, the end is near Nov 16 22:49:40 every nexus device has an unlockable bootloader Nov 16 22:49:46 those aren't just for developers Nov 16 22:50:16 JesusFreke: obviously, some eejits hidden the developer settings Nov 16 22:50:49 and? Nov 16 22:51:04 okay okay, enough trolling and prophesising doom you're all right and I'm wrong Nov 16 22:51:26 I really hate the hiding of the tool. it wastes time for developers and makes it harder for new devies to come in Nov 16 22:51:39 now someone recommend me a gnu/debian/crunchbang file explorer Nov 16 22:52:10 aksu: do you honestly believe that? the instructions are clearly on the developer getting started page on the android website Nov 16 22:52:27 and it's trivial to find how to enable it Nov 16 22:54:50 is there a nice strong typing supported android sqlite library? Nov 16 22:59:28 well Nov 16 23:00:15 we got nexus 7. and we couldn't find the developer-options as used to Nov 16 23:00:29 massive confusion Nov 16 23:02:32 by accident we got there with root4z(cannot remember the thing right) Nov 16 23:02:51 im sure if you google "where are my developer options" Nov 16 23:03:20 it's open source, so we made a small program to access the developer options intent Nov 16 23:04:18 and then we had to make a web server to actually have the devices to get the file. and then we found out that you could tap 7 times on the build-number to make it available... Nov 16 23:04:34 so rather than just reading d.android.com or searching for the answer, you wrote an app that probably took all of five minutes Nov 16 23:04:47 so fuck for hiding it Nov 16 23:05:15 but I am a noob, so I don't know where to tap 7 times Nov 16 23:05:23 ":)" Nov 16 23:05:30 and /rant Nov 16 23:08:35 but don't get me wrong, I love android Nov 16 23:08:55 hey all beginner dev here looking for any good forums to join in at? Nov 16 23:12:48 none Nov 16 23:15:37 Inside a WebView my html entities are being mangled. Nov 16 23:16:05 I need to use < and > but they appear as </> and not Nov 16 23:16:15 What might I do to fix this? Nov 16 23:23:22 Is the API17 sdk platform backwards compatible with API16? Nov 16 23:23:24 Or should I download the sdk platform for API16 as well? Nov 16 23:23:36 Thanks! Nov 16 23:26:17 As long as you don Nov 16 23:26:18 't Nov 16 23:26:27 call api's that were added in api17 when running on api16 Nov 16 23:27:50 Yeah, that makes sense. Nov 16 23:28:45 Thanks! Nov 16 23:40:45 um 'ello? Nov 16 23:40:55 Really trying to figure this whole WebView thing out Nov 16 23:41:06 when did they start mangling html entities? Nov 16 23:41:32 I have html assets that used to look fine but now all my > and < are appearing as > and < despite being written properly as html entities. Nov 16 23:42:13 neither straight >< signage nor &gt; style notation works. Something is parsing the html and making it impossible to insert entities. Nov 16 23:42:20 Does anyone know what's going on here? Nov 17 00:10:18 Where would one find a seasoned android developer who'd be interested in helping an existing open source project, for a worthy cause? Nov 17 00:10:39 An existing open source project? Nov 17 00:11:23 Yes, I am stumped and I need help with this http://code.google.com/p/openemr-app/ Nov 17 00:12:19 its for doctors, its currently installed on about 130 android devices world wide Nov 17 00:15:28 someone who understands android webkit would be most helpful Nov 17 00:15:47 and the new Holo Design Guidelines. ;) Nov 17 00:15:49 we're not getting popups when we should Nov 17 00:16:03 Doctors you say? Nov 17 00:16:05 it was our first project Nov 17 00:16:07 What is this eMR stuff? Nov 17 00:16:15 electronic medical records software Nov 17 00:16:30 I'd love to help out, but I'm not sure I can reliably dedicate the time to it currently, unfortunately. Nov 17 00:16:31 helping doctors not screw up Nov 17 00:16:46 Interesting Nov 17 00:16:53 I imagine HIPPA compliance is a real pain. Nov 17 00:16:54 we didn't do the backend, we're just trying to make an android client browser Nov 17 00:17:00 I work for an ad Agency that specializes in Pharma Nov 17 00:17:13 they've got ONC-ambulatory cert already Nov 17 00:17:17 and if we want to release anything to Doctors it takes several levels of review Nov 17 00:17:36 this is free, not ad supported Nov 17 00:17:40 gratis Nov 17 00:17:44 Well the client still needs to be secure Nov 17 00:17:52 Otherwise it doesn't matter if you don't write the back end. Nov 17 00:17:55 like I said, we're noobs and nobody was doing it Nov 17 00:18:07 If you send plain text medical info you'd run afoul of HIPPA Nov 17 00:18:11 so we tried to do something good for our first project Nov 17 00:19:03 essentially skipping "hello world" and instead trying "improve world" Nov 17 00:19:09 :) Nov 17 00:20:31 CyberCod: No offense but it sounds like you haven't thought seriously about security and complying with regulations if your response to "Are you HIPPA compliant?" is "Oh I don't write that, the other orgs do." This is like PCI standards on Credit cards, and if you don't do this right you run risk of putting yourself and anyone else writing the software to legal threats. Nov 17 00:21:09 It's a great idea Nov 17 00:21:26 and I think you should definitely pursue it if you can, but there are risks getting into highly regulated fields like medical information. Nov 17 00:22:39 sorry, having connectivity issues Nov 17 00:22:51 our 2nd project was a game Nov 17 00:23:02 That's a cool idea Nov 17 00:23:08 Might want to stick with Games Nov 17 00:23:13 lol Nov 17 00:23:22 they won't send you to jail if your software has a buffer overflow vulnerability Nov 17 00:23:36 they will if someone Man-In-The-Middle's your Non hippa compliant client. Nov 17 00:23:48 we're not recommending it for live data at this time, obviously Nov 17 00:23:59 Just saying you should get a legal guy Nov 17 00:24:10 If you're an org with a great idea someone might even do it pro-bono Nov 17 00:24:32 we're just two dudes trying to learn how to code Nov 17 00:24:39 You just need someone to take you through the important steps for HIPPA compliance. Nov 17 00:24:45 Doesn't matter, the government won't care. Nov 17 00:24:56 If you wrote software intended for use by medical professionals Nov 17 00:25:05 and advertise it as such (informal promotion counts here) Nov 17 00:25:20 if it is not compliant with all rules and regulations YOU the developer are on the hook Nov 17 00:25:37 hi. how do I enable an opengles extension? #extension foo : enable ? Nov 17 00:25:39 Well, unless you have some sort of software nonprofit org set up Nov 17 00:25:44 that sux Nov 17 00:26:01 we're not a non-profit... we're hoping to profit from our game, just not from that app Nov 17 00:26:03 Yup, I work in pharma and compliance is a real pain :-/ Nov 17 00:26:24 We have to get Doctors, lawyers, and lab techs review every line of copy in Doctor apps we make. Nov 17 00:26:45 From when I finish development to when an App is approved for distribution can be three months or more of just copy changes. Nov 17 00:27:34 no wonder hospitals charge $20 for a %#! aspirin Nov 17 00:27:44 Because everything you tell a Dr. has to be sound advice and it has to conform to a very specific sort of professional lexicon to pass FDA compliance. Nov 17 00:27:53 yeah, sucks Nov 17 00:27:56 but it does have a point Nov 17 00:28:16 it makes it hard to get involved in medicine but it usually does help keep the confusion low for the actual Doctor. Nov 17 00:28:46 not really Nov 17 00:28:55 So someone who goes through medical school and assumes that words (which may mean very different things in popular culture) mean specific things can stay safe in that assumption with the software. Nov 17 00:29:01 doctors get confused quite easily with tech Nov 17 00:29:24 Well yes, but the point is that what's even more confusing is when someone can't tell how to interpret instructions they're being given. Nov 17 00:29:44 I've done repair work for some Nov 17 00:29:45 This reduces confusion, doesn't eliminate it, but does reduce it greatly from what it could be. Nov 17 00:31:29 so what are you suggesting? can the project before I land in jail for trying to help people? Nov 17 00:31:59 Hey guys, when working with webviews is there something extra you should be aware of? Nov 17 00:32:08 Put in big bold letters that your software is currently a work in progress not intended for live use among physicians. Nov 17 00:32:22 Then put out a call for someone to give you some pro-bono advice on making your app HIPPA compliant Nov 17 00:32:29 hrmm Nov 17 00:32:44 I'll see if I can ask one of the PMs here if they know what all we have to go through for FDA compliance, hold on. Nov 17 00:34:04 the app isn't exactly in working shape right now as it stands, the server uses popups a lot, without them, a doctor wouldn't be ABLE to use it, legal or not Nov 17 00:35:09 Well the idea is Nov 17 00:35:13 until you're legally sure Nov 17 00:35:32 just make a big bold advertisement that the App is not meant to be used in live medical environments yet. Nov 17 00:36:00 That way no one can say you were trying to violate HIPPA Nov 17 00:36:08 since your app wasn't intended for live use yet. Nov 17 00:36:12 It's just a precaution really Nov 17 00:36:33 but I'm always careful about such things, anyway, still looking for a Project Manager here that might be able to break down the whole approval process. Nov 17 00:37:02 crud Nov 17 00:37:37 I came looking for help and ended up with more work on my plate :( Some days it doesn't pay to chew through the straps Nov 17 00:37:52 Sorry about that dude Nov 17 00:37:55 but look on the bright side Nov 17 00:38:06 at least you didn't find out about this after a data breach or anything Nov 17 00:38:10 that'd be really bad ;) Nov 17 00:39:40 TextView.setGravity(Gravity.RIGHT); isn't moving the textview to the right side of a RelativeLayout. What parameter am I looking for? Nov 17 00:47:26 How can I style the SearchView dropdown from the ActionBar? Nov 17 00:47:52 haven't played with that yet Nov 17 00:51:37 hi Nov 17 00:51:58 does anyone know if native code runs on the UI thread or on its own thread ? Nov 17 00:52:52 xroberx: depends? Nov 17 00:52:59 yea i dont think you know what a thread is Nov 17 00:53:21 hwrd|work: I mean if I don't create a thread in native code... Nov 17 00:53:46 i still dont think you know what a thread is Nov 17 00:53:55 canadiancow: enlighten me lord :) Nov 17 00:54:07 lmgtfy Nov 17 00:54:14 s/m/y/ Nov 17 00:55:50 canadiancow: http://lmgtfy.com/?q=native+code+UI+thread+android Nov 17 00:58:25 Anyone here know why my WebView is mangling my html entities and showing >/< instead of ? Nov 17 00:58:49 I'm purposefully displaying visual <> and using the correct syntax and instead it gets parsed out as plain text. Nov 17 00:58:51 what gives? Nov 17 01:01:35 xroberx: Then yes. Nov 17 01:01:46 xroberx: the api methods that you'll hook into are called on the main thread Nov 17 01:02:54 hwrd|work: thank you Nov 17 01:03:15 how does one open an existing java project from internet, into eclipse Nov 17 01:03:55 sylon: File->Import->Existing projects into workspace Nov 17 01:05:10 thanks Nov 17 01:05:18 sylon: or if it's a project that uses GIT, File->Import->Git->... Nov 17 01:06:23 does Eclipse support project references? for a jar project? Nov 17 01:06:30 like library Nov 17 01:07:16 sylon: for Android you have Android Library Projects Nov 17 01:09:27 guys how do i protect my webviews against xss when using setJavaScriptEnabled. Nov 17 01:09:30 to true. Nov 17 01:09:37 xroberx: yeah i have one, but can i dynamically reference the project? instead of a built jar file Nov 17 01:09:55 so that if i make a change to a file in the library project, the reference stays up to date Nov 17 01:10:37 sorry this concept is coming from C# development, maybe doesn't apply to eclipse or java, but have this concept of project references Nov 17 01:10:53 sylon: yes, but the usual Eclipse buggy system applies... so sometimes you'll need to refresh/clean/restart Nov 17 01:11:51 oh found it, Project > properties > java build path > Projects ? Nov 17 01:12:28 sylon: nope, Project -> Properties -> Android -> Library Nov 17 01:12:44 Fallout2man, if I recall, theres a URL.encode(data) feature or similar to quick-fix all those nasty WebView compatibility issues Nov 17 01:12:48 xroberx: that makes me add a jar file though right Nov 17 01:13:20 sylon: if you want to use jar libraries, just copy them to the /libs folder Nov 17 01:13:38 xroberx: no i also have the project for the library into my workspace and want to reference it Nov 17 01:14:24 xroberx: it worked when i added it to > Projects tab Nov 17 01:15:23 Komak57: So you're saying I need to URLencode all of my NON-ASCII characters for them to display properly? Nov 17 01:16:38 thats the idea Nov 17 01:16:56 you can either replace() all of them, or encode the whole thing Nov 17 01:17:07 hi Nov 17 01:17:37 Komak57: Thanks! Will give this a try. I can't use the URLEncode() method but I can pre-bake in the escaped text in my html files. Nov 17 01:21:20 Fallout2man: http://stackoverflow.com/questions/7625946/encoding-issue-with-webviews-loaddata Nov 17 01:22:26 ahh there it is... String base64 = android.util.Base64.encodeToString(data.getBytes("UTF-8"), android.util.Base64.DEFAULT); Nov 17 01:22:48 http://stackoverflow.com/questions/3961589/android-webview-and-loaddata Nov 17 01:24:18 is there a way to restrict where the webview can go and not go? Nov 17 01:30:20 how do I add an Activity that is not Main (doesn't show up in applications). This is to be called by a widget Nov 17 01:31:07 just don't put it in the launcher category and receive the MAIN launch intent action Nov 17 01:37:36 stupid question but where is the Application onCreate method? Nov 17 01:37:46 i wrote a whole app without having an Application class Nov 17 01:38:22 that means you're using android.app.Application Nov 17 01:38:26 which is perfectly acceptable Nov 17 01:38:50 don't i need to create one and inherit from it? Nov 17 01:38:58 or only if i need to override stuff inside it? Nov 17 01:39:38 Komak57: No Bueno, I'm not using loadData either Nov 17 01:39:43 I'm loading from an internal URL Nov 17 01:40:04 Komak57: mWebView.loadUrl("file:///android_asset/contact_us.html"); Nov 17 01:45:09 canadiancow: so if i created a class now that extends application, do i need to call it something specific Nov 17 01:45:16 or reference it in the manifest? Nov 17 01:48:16 in the manifest Nov 17 01:48:50 Loading from a URL huh... well then, no idea how to help you there XD Nov 17 01:58:55 Komak57: Plus this seems different, specifically the urls you sent talk about character encoding. I'm talking about HTML Entity codes not being honored. Nov 17 02:02:51 i am getting a force close with nothing in logcat Nov 17 02:02:54 any idea how to debug this Nov 17 02:03:42 Komak57: In specific < and > appear visibly as < and > and not > < like they should. In specific html entities referenced by the specification and denoted by an ampersand like   appear to be no longer functional. This is a big issue because the problem is the WebView DOES escape the characters, but it does it too well. Nov 17 02:04:15 Komak57: So now I can no longer display visual markup on my files Nov 17 02:10:18 how do I load float texture with gles20? Nov 17 02:16:23 vydd: http://stackoverflow.com/questions/1937535/floating-point-textures-in-opengl-es-2-0 Nov 17 02:20:33 TheBunny: I would restrict it to OES_texture_float devices, so that's not a problem. The problem is that I've only seen loading textures from bitmaps, and those can't have float values (right?) Nov 17 02:21:05 OH Nov 17 02:21:23 umm good question. Nov 17 02:21:44 you shoudl be able to load from any memory buffer tho Nov 17 02:22:54 are you working in JAVA? I take it Nov 17 02:23:08 yes Nov 17 02:24:08 and I'm not that good with Java :), so I'm contemplating if I can cheat it into thinking that I'm passing a bitmap when I'm not Nov 17 02:24:40 ByteBuffer bb = extract(bmp); Nov 17 02:24:58 so can you just make a ByteBuffer of N size and fill it with any data you like/ Nov 17 02:25:04 yeah, but I have to pass that to GLUtils.texImage2D, which only accepts bitmaps Nov 17 02:25:06 thats all GL cares about Nov 17 02:25:15 no Nov 17 02:25:18 no? Nov 17 02:25:23 http://tkcodesharing.blogspot.com/2008/05/working-with-textures-in-androids.html Nov 17 02:25:27 like in this code? Nov 17 02:25:44 loads a image and then get the bytes and hands them to GL normal style Nov 17 02:26:18 but that's gles10 Nov 17 02:27:38 should be roughly the same tho Nov 17 02:27:41 for this stuff Nov 17 02:27:50 don't use GLUtils.texImage2D Nov 17 02:28:01 and do you have the ES2 book? Nov 17 02:28:08 nope Nov 17 02:28:16 GLUtils is not standard Nov 17 02:28:25 it just android additions to help you. Nov 17 02:28:35 a-ha Nov 17 02:28:46 is there an ebook on amazon or something? Nov 17 02:29:51 http://opengles-book.com Nov 17 02:29:55 this is the book Nov 17 02:30:03 there PDFs floating around Im sure also. Nov 17 02:30:10 or order a copy Nov 17 02:30:13 oh. cool. thanks! Nov 17 02:30:21 it has most every shader you might need also Nov 17 02:30:29 its a good book as far as GL goes Nov 17 02:30:32 in general Nov 17 02:31:28 I've already written mine :) it's for image deformation...I just need to make it behave nicely on android Nov 17 02:31:51 thanks again! Nov 17 02:36:08 Is there an event triggerred when the soft-keyboard is shown and hidden that i can tap into? Nov 17 02:37:23 Komak57: I think onEditorAction Nov 17 02:37:33 see https://github.com/offby1/homework4/commit/d1a7a26b607ef3435fc53120828a3b0a3bdb8abd Nov 17 02:42:33 Didn't see anything in there for soft-keyboard access except the DefaultButton attribute (imeOption) Nov 17 02:43:50 yeah. I think I misunderstood you. Nov 17 02:44:29 But, reading through my onScrollChanged code, I think I can tap into onSizeChanged Nov 17 02:46:40 anyone else playing ingress? Nov 17 02:52:56 no, i'm reading about bacon though http://www.npr.org/blogs/thesalt/2012/11/16/165269866/pig-genome-project-may-pave-the-way-for-better-bacon Nov 17 02:57:22 It will taste like chicken. **** ENDING LOGGING AT Sat Nov 17 03:00:00 2012