**** BEGIN LOGGING AT Mon Mar 18 02:59:58 2013 Mar 18 03:02:19 I removed all my code that was executed in onStart and onCreate besides the super.blah() stuff as well as everything from the xml file Mar 18 03:02:35 and my app was using 4.60mb Mar 18 03:03:35 It's like my last app. Mar 18 03:03:45 it ended up using on avg 12-13 mb of ram Mar 18 03:03:55 and I didn't have a single bmp in it Mar 18 03:05:47 well, too sleepy to think about it now Mar 18 03:05:52 will come back tomorrow Mar 18 03:31:09 If I have a RelativeLayout and two sub-views positioned side-by-side horizontally, is there any way, to get those two views to fill the horizontal space, 50/50? And center their content, but that's the easy part. Mar 18 03:31:29 I've tried layout_gravity="fill", it didn't work as I expected Mar 18 03:35:37 if there are only two subviews, have you considered using a linear layout? Mar 18 03:37:51 anybody awake and using intellij on fedora? Mar 18 04:00:06 is there a form of cron on android? I need to run a some code on a regular interval while the app is running. Mar 18 04:00:17 alarm manager Mar 18 04:00:22 use alarm manager Mar 18 04:00:49 Interesting: http://browser.primatelabs.com/geekbench2/1447629 Mar 18 04:00:49 tnzr: I did end up using a sub-layout (RelativeLayout though), but I still couldn't get them to do as I described. Best I could manage was centering them both and then putting some padding in between them Mar 18 04:01:08 dberg: http://developer.android.com/reference/android/app/AlarmManager.html Mar 18 04:01:11 tnzr: But it doesn't seem like there's a way to center them both *within halves* of the outer layout Mar 18 04:01:34 Maziz: cool, let me check Mar 18 04:01:52 Is there a way to perform percentages or arithmetic on the width of the parent layout? Mar 18 04:02:45 AlarmManager is probably not what I'm looking for. This will start the app if it's not running. Mar 18 04:03:10 I have a library project and what I want to do is run a piece of code on a regular basis while the app is running. Mar 18 04:03:27 It doesn't need to be a fixed time interval though. Mar 18 04:06:13 Hmmm, maybe Handler. Mar 18 04:40:05 Lmao... getMeasuredheight returns 976 when my screen width resolutin is 8xx lol Mar 18 05:59:35 so the height of your view is not equal to the width of your screen? Mar 18 05:59:45 cue my complete lack of surprise Mar 18 06:07:18 que? Mar 18 07:19:32 [22:59:46] cue my complete lack of surprise Mar 18 07:19:35 win Mar 18 07:20:07 cue my complete lack of surprise of JakeWharton 's complete lack of surprise Mar 18 07:20:46 how are you doing canadiancow Mar 18 07:20:59 kinda tired Mar 18 07:21:05 but other than that... :P Mar 18 07:22:21 canadiancow: Do you have any idea how hard it is to resist the urge to yell "MOOSE!" every time I see you.. LOL :) Mar 18 07:23:33 uhhh... Mar 18 07:34:38 https://en.wikipedia.org/wiki/Moose_milk Mar 18 07:34:41 hmm Mar 18 07:36:39 What gets me is rice milk .... I mean, those things dont have breasts ! Mar 18 07:37:20 better than Ass's milk Mar 18 07:37:56 Asses got breasts ? :P Mar 18 07:38:32 wait ... actual T&A? - oh dear its been a long day Mar 18 07:38:41 "A female ass gives between 0.2 to 0.3 litres of milk a day" Mar 18 07:39:00 https://en.wikipedia.org/wiki/Ass%27s_milk_%28Donkey%27s_milk%29 Mar 18 07:39:06 Oh .. ah .. I was being too literal g00s :D Mar 18 07:53:54 I have a strange problem. every time I tell eclipse to run my app it launches the debugger. Anyone know why ? Mar 18 07:54:11 I'm on OSX Mar 18 07:55:49 g00s: ... I approve Mar 18 08:01:06 p_l: :) Mar 18 08:11:52 here is the first legit use i can think of for google glasses ;) http://www.google.com/hostednews/ap/article/ALeqM5hjvniP8-_PXxQNvTlVa5RILhNyOQ?docId=46e365b1d58743e7b839dcbdcd94b4a9 Mar 18 08:23:41 this eBook is 50% off today from oReilly : 'Embedded Android' http://shop.oreilly.com/product/0636920021094.do?code=DEAL Mar 18 08:32:35 was it always the case, that when you changed some information like 'description' for an app in the dev console, that the play store page would record that date in the 'UPDATED' field at the right? I thought that only got updated when the APK itself was updated. Mar 18 08:46:10 Did anyone try to install KVM on android? Mar 18 08:58:14 Excuse me. I've a simple Question. My MainActivity is visible to configure the Service. The Service get started on boot. Which means the App is invisible. When i try to start an Activity (which has no ressource to preview) then it's invisible too. But as soon as i finish() the invisible activity it jumps to my MainActivity. Any way to avoid that? Mar 18 08:58:35 Acticity is started out of the Service with the flag FLAG_ACTIVITY_NEW_TASK Mar 18 09:10:02 misterli, can you post some code? Mar 18 09:12:42 http://pastebin.com/qWynjajr Mar 18 09:12:56 finish() in ModulCamera.java calls onResume in the MainActivity.. Mar 18 09:15:00 ok, it seems that it's not possible. finish() always calls the onResume of the parent Activity.. Mar 18 09:16:18 Is there any way to limit android in a way that the user is only able to call predetermined phone numbers, send emails or SMS messages only to specific addressee, not be able to install or uninstall apps and so on? - Essentially a way to remove or limit native android features. Mar 18 09:26:22 Anyone? As far as i see the only way to do this is by modifying android OS itself which seems quite daunting. Mar 18 09:30:42 unfortunately it is so for now, afaik Mar 18 09:31:12 some parts of it exist already (you could replace dialer and sms applications), but not sure about control of applications installed Mar 18 09:33:31 what's the best way to get records I parsed from an ASyncTask to my GUI Thread (where the Adapter resides)? Mar 18 09:33:46 atm I parse them all and store them in an ArrayList, and I return that Mar 18 09:33:51 onPostExecute Mar 18 09:34:29 alex_PP: yeah, that's where I receive that array, and then have to add the items to the Adapter Mar 18 09:34:46 atm I'm using .add(new Record(name, email)) Mar 18 09:34:55 for each item Mar 18 09:37:42 referring to Aika's question. would it be possible to remove all system apps and replace them with my limited alternatives? Mar 18 10:02:24 All right, I was panicking on Friday about the whole "why the fuck does setting margin of GLSurfaceView to 1px solve view visibility/invisibility switching of the view _on top of it_", yeah, clearly the glsurfaceview itself was responsible. Apparently just gotta hack around it with using View.GONE instead of invisible and directly requesting layout changes of something Mar 18 10:02:28 But man is this weird Mar 18 10:02:48 It's like they didn't think anyone would be using other views on top of a surfaceview Mar 18 10:03:25 How Do i build the custom compiler for building Android? Mar 18 10:03:28 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/i686-android-linux-4.4.3/+show/refs/tags/android-4.1.2_r1 Mar 18 10:38:22 Hello. I added to AndroidManifest permissions ACCESS_GPS, ACCESS_LOCATION, ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION, INTERNET, in some place of the code wrote http://pastebin.com/kk09GNJk. None of locationListener methods are called. What's wrong? Mar 18 10:46:35 hello all Mar 18 10:47:28 I've an SherlockListFragment that hosts a simple listview. Each listitem is composed by a linearlayout with a couple of textview. Overriding the onListItemClick does not work :( Mar 18 10:49:05 any idea why ? Mar 18 10:50:55 vekexasia: you maybe have a view that is blocking Mar 18 10:51:05 on top of the listview? Mar 18 10:51:14 either that or in the item Mar 18 10:51:40 very understandable if you had just put a button with default settings of some kind Mar 18 10:51:57 on top io don't think so. the layout of the hosting activity is just a linearlayout with a couple of fragments. One of these is the listview Mar 18 10:52:16 StingRay_: indeed. I already experienced this behaviour with checkboxes or other stuff like that Mar 18 10:52:22 but this is new to me :) Mar 18 10:52:37 well I think it's any view that is focusable Mar 18 10:52:50 by default a checkbox would be I think Mar 18 10:53:06 i don't have anything ... Mar 18 10:53:12 just a edittext below the listview Mar 18 10:53:38 not an editText IN the list item ? Mar 18 10:53:42 nope Mar 18 10:53:47 funky Mar 18 10:53:58 even removing the edittext under the listview Mar 18 10:54:06 doesn't affect the issue :) Mar 18 10:54:21 remove evey view in the item layout cept the background Mar 18 10:54:30 then try Mar 18 10:54:34 well Mar 18 10:54:34 no Mar 18 10:54:39 create another layout Mar 18 10:54:45 with just nothing in Mar 18 10:54:54 and use that in getView instead Mar 18 10:54:58 i'll need to chagne the adapter :) Mar 18 10:55:24 well you could just comment out the set* stuff Mar 18 10:58:21 internet gone Mar 18 10:59:42 hmm empty layout works. Mar 18 11:00:01 Is there any way to remove or limit native android features without modifying android OS itself? The goal is to limit phone functionality so that the user is only able to call specific phones and send messages to predetermined addressees… and nothing else. User should not be able to install or uninstall apps and so on. Mar 18 11:00:12 So uh Mar 18 11:00:18 I'm trying to make a submenu Mar 18 11:00:34 In a popup menu Mar 18 11:00:49 Is it normal that there is no indication that a menu item is actually a submenu? Mar 18 11:00:57 AHA! found the issue. textView.setMovementMethod(someMovementMethodThatHandlesTheClick) Mar 18 11:00:59 No arrows, nothing Mar 18 11:01:13 Looks like a normal menu item Mar 18 11:02:13 Yes, that's normal Mar 18 11:04:05 vekexasia: cool Mar 18 11:04:09 Uh... How do you usually indicate submenus then? Mar 18 11:04:35 I'd love something like an arrow thingie to the right of the text but no idea how to do that with MenuItems Mar 18 11:04:39 You don't Mar 18 11:05:17 has anybody worked on a alarm clock app here ? Mar 18 11:05:42 Android doesn't use an arrow to indicate clickability Mar 18 11:05:45 So in the off case I'd need something like that I should just, like, create my own custom menu view class? Mar 18 11:06:11 In case you need something like that, you should go re-read the design guidelines and figure out why you shouldn't do it Mar 18 11:06:20 can we access the alarms set by the system alarm clock in our application instead of rebuilding an alarm clock Mar 18 11:06:25 Well every item is clickable, but I just need something to indicate that it actually opens another menu Mar 18 11:06:33 also can we can access when a person clicks Snooze on any alarm Mar 18 11:06:42 I was actually surprised that it doesn't even open a submenu per se Mar 18 11:06:53 Just a new menu in the same spot to replace the old one, even on tablet Mar 18 11:07:10 That's how submenus work Mar 18 11:09:16 :D Mar 18 11:11:02 StingRay_: thanks for your suggestion Mar 18 11:11:06 Well I have a multi-level table of contents, I don't exactly have a lot of options in displaying that Mar 18 11:12:54 I kinda want to put a vertical seekbar in a submenu kind of thing for volume control of xmms2 servers that support it, but I don't really like it... I also can't think of any other nice way to do it -.-' Mar 18 11:14:01 menuitems aren't really meant for navigation Mar 18 11:15:30 What is, then? Mar 18 11:16:15 As in, is there something that is or just gotta build from scratch using custom views? Mar 18 11:16:46 Tabs, slide-out menus, buttons.. Mar 18 11:17:52 has anyone worked on two level sliding menu like this one ? http://stackoverflow.com/questions/15242825/android-sliding-menu-using-jfeinstein10-library Mar 18 11:18:29 Why onLocationChanged cannot be called? Mar 18 11:18:59 All right, thanks, will have to relay that to whoever is responsible for the design Mar 18 11:28:30 hello all. Mar 18 11:29:30 I have a question about expandable list view. Is there a way to get height of group header at run-time? For example, height of blue items in this pic http://tinyurl.com/355wu9p Mar 18 11:33:37 what is the purpose of the file: ueventd.u2.rc Mar 18 11:33:47 i mean ueventd.rc file Mar 18 11:38:50 would it be possible to make an app uninstallabe? not via the market obviously, but within a closed circle where i have physical access to the devices to be used Mar 18 11:40:08 Mar 18 11:40:57 should i take that as a "no" Mar 18 11:42:25 balls2thewall: is your question correct ? Mar 18 11:42:44 As in I don't think "uninstallable" is what you meant Mar 18 11:44:12 All user apps are uninstallable (i.e. can be uninstalled) Mar 18 11:44:53 If you want that not to be possible, you could root and push it to system.. But then whoever used the device could remove it the same way Mar 18 11:45:26 SimonVT: what if you replaced su with a modified su, that requires a password (standard linux su mode) Mar 18 11:45:34 that's exactly what i want Mar 18 11:45:47 SimonVT: even then use can disable it though right ? Mar 18 11:45:59 Yeah, you could still disable it Mar 18 11:46:31 clever: I don't believe su is required from recovery Mar 18 11:46:39 On all devices, at least Mar 18 11:46:59 SimonVT: put stock recovery back in, or use a custom recovery that also asks for a pw Mar 18 11:47:12 same as securing bootup on a pc, case lock, bios pw, bootloader pw, login pw Mar 18 11:48:45 i dont think you can do anything about download mode, but if the user is capable of that, youve got about as much luck stopping them as the OEM's did stopping you :P Mar 18 11:48:52 alright so what exactly does "push it to system" entail Mar 18 11:49:11 im allowed to assume the user won't go to great lengths to remove it Mar 18 11:49:18 balls2thewall: copy the apk to /system/app/ Mar 18 11:49:32 i think i tried that Mar 18 11:49:34 balls2thewall: Rooting device and then above Mar 18 11:49:35 which means going root and remounting /system rw Mar 18 11:49:44 and reboot the device fully for it to notice the change Mar 18 11:50:05 manualy putting apk files in without telling it what you did leaves it unaware of what you did, but reboot then notices Mar 18 11:50:20 ty Mar 18 11:50:42 balls2thewall: but user can still disable it if on > 4.1.X Mar 18 11:50:44 I think Mar 18 11:50:51 or maybe it's 4.2 Mar 18 11:51:00 StingRay_: only method ive seen myself was adb pm disable .... Mar 18 11:51:11 tis in app settings Mar 18 11:51:16 :) Mar 18 11:51:16 ah Mar 18 11:51:19 *looks* Mar 18 11:51:42 all ive got is force stop, uninstall, and clear data Mar 18 11:51:54 Then it's not a system app Mar 18 11:52:02 can we access the alarms set by the system alarm clock in our application instead of rebuilding an alarm clock ..also can we can access when a person clicks Snooze on any alarm Mar 18 11:52:23 SimonVT: *checks another* Mar 18 11:52:32 clever: https://dl.dropbox.com/u/100261/2013-03-18%2012.51.40.png Mar 18 11:52:50 SimonVT: force stop, clear data, clear cache Mar 18 11:53:14 mine must be too old, or amazon monkeyed arround with it Mar 18 11:53:15 clever: what OS ver. ? Mar 18 11:53:28 StingRay_: oddly, it doesnt say under device info Mar 18 11:53:36 huh? Mar 18 11:53:56 It's equivalent to pm disable Mar 18 11:53:59 only version# it gives is in the 7.x area Mar 18 11:54:16 wtf device you got ? Mar 18 11:54:17 how do i get api# again from adb? Mar 18 11:54:32 StingRay_: kindle fire hd Mar 18 11:54:36 oh Mar 18 11:54:50 thats powered of magic Mar 18 11:55:00 I don't think they're allowed to call it Android then.. Probably why Mar 18 11:55:01 and that magic just happens to include android Mar 18 11:55:13 and magic has no version ;) Mar 18 11:55:22 [ro.build.version.release]: [4.0.3] Mar 18 11:55:28 them disabling it isn't a problem. the assignment is severely restricting phone usage within a company. and i think this is the only way to go about it. remove system apps and feed it whatever apps they want to Mar 18 11:55:28 here it is, getprop|grep ro Mar 18 11:55:37 yeah I think the option is 4.1 and up Mar 18 11:58:04 erm cant understand this android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:379) Mar 18 11:58:20 something to do with library project and eclipse getting confused ? Mar 18 11:58:42 StingRay_: happens to me every time i ctrl+f11 with the activity open several deep in a task Mar 18 11:58:59 StingRay_: eclipse kills the app by force, android thinks 'oh, it crashed, let me restore the previous activity' Mar 18 11:59:03 but eclipse has locked the package for upgrade Mar 18 11:59:11 then android tries to load it anyways to restore, and FAIL! Mar 18 11:59:12 ewww Mar 18 11:59:44 the entire app crashing has the same effect as the back button Mar 18 11:59:59 it just goes to the previous activity, restarting the process as-needed Mar 18 12:01:04 StingRay_: ive brought it up in this channel before, explained it fully, and the only answer was people trying to explain that it wasnt in my app and i didnt have to worry Mar 18 12:01:16 StingRay_: but the problem, is that it re-opens the logcat pane in eclipse every single time Mar 18 12:01:25 and wont close itself until i give it some attention Mar 18 12:01:51 cheers for the info Mar 18 12:02:01 just something I have only just seen Mar 18 12:02:11 confused me a little :) Mar 18 12:03:26 StingRay_: i think hitting home on the android before ctrl+f11 will solve it Mar 18 12:04:10 well thats just part of my oddness at the moment Mar 18 12:04:11 StingRay_: and depending on your app, you can maybe cheat by making the activity your testing as the entry point Mar 18 12:04:22 I have now Mar 18 12:04:25 so your only 1 activity deep, when it crashes it restores the launcher Mar 18 12:29:10 Another stupid question from yours truly - say I have an AsyncTask that loads a Bitmap, is there any way to stop it while it's still loading a Bitmap and magically not waste any memory that was already allocated by BitmapFactory? Mar 18 12:30:26 I wouldn't care that much but when there's an AsyncTask running the GLthread lags like crazy so I'm looking for ways to cut down on the time it runs (it's a cache thingie in my app) Mar 18 12:31:33 pre-cache, or have some sort of "please wait, loading" screen Mar 18 12:31:45 No, I don't think there's a nice way to interrupt the bitmap factory Mar 18 12:33:15 Well, I am pre-caching, this is exactly why I need said asynctask, but sometimes when the user moves on quickly some of the pre-caching might've become obsolete, but bitmapfactory's still running Mar 18 12:33:26 All right, thanks, was afraid of that, but not entirely unexpected Mar 18 12:34:05 Is it possible to use something like findViewById but for menus? Mar 18 12:35:00 I don't know, is it? Mar 18 12:35:57 What I really want to do is to call "invalidateOptionsMenu" to make the menu disappear, but I am supporting android sdk 7 Mar 18 12:36:05 And its not available on sdk 7 Mar 18 12:36:11 was brought in sdk 11 Mar 18 12:42:46 The app doesnt call onPrepareOptionsMenu in one place Mar 18 12:42:54 and I would like it to do that. Mar 18 12:43:09 what is the preferred way to allow another application to call functions in my service? AIDL and same user-id? Mar 18 12:43:39 It calls it when you open the menu Mar 18 12:44:31 What happen if there's no SDCard? Where does the apps store it stuff (which can be used by other apps)? Mar 18 12:44:32 hi Mar 18 12:45:02 misterli: there is no "no SDCard" Mar 18 12:45:05 misterli: most often, there is a directory /sdcard that is just part of internal storage Mar 18 12:45:09 If you remove the sd card, there's just no external storage available Mar 18 12:45:12 on 2.x devices this might happen Mar 18 12:45:31 Yeah, currently i use Environment.getExternalStorageDirectory() to get the current Path of Sdcard (usually /storage/sdcard0/... or similar) Mar 18 12:45:40 But what happen if it's a device without SDCard (for example Nexus)? Mar 18 12:45:49 misterli: read what Ge0rG wrote Mar 18 12:45:58 ah, okay. I see Mar 18 12:45:59 They still have external storage Mar 18 12:45:59 misterli: a part of the flash memory is mountet as storage Mar 18 12:46:05 Okay, cool Mar 18 12:46:12 External storage != removable storage Mar 18 12:46:22 only rare devices - e.g. the motorola defy with 2.1 might run without an sd-card Mar 18 12:46:32 It's just annoying. (For example Whatsapp) store it's database crypted on /sdcard/WhatsApp/Databases/msgstore.db.crypt but it's not there on all devices Mar 18 12:47:08 whatsapp is annoying, yes. :P Mar 18 12:47:09 misterli: /sdcard as hardcoded path is in general a very very very bad idea Mar 18 12:47:13 Ge0rG: ;) Mar 18 12:47:20 I dont do that. Environment.getExternalStorageDirectory() of course Mar 18 12:47:26 ahh, the good ole external store stuff Mar 18 12:47:39 And what happen if the Device has TWO Sdcards? Mar 18 12:47:50 just use getExternalStorageDirectory Mar 18 12:47:51 misterli: you are doomed then. Mar 18 12:47:53 thats it Mar 18 12:47:56 misterli: then you have /mnt/sdcard/externalcard or something Mar 18 12:48:00 misterli: ah, this is a fun one. Mar 18 12:48:01 you cannot and should not target the external sd card Mar 18 12:48:09 Yeah, but there's no Alias for that? Mar 18 12:48:12 misterli: our solution is to examine /proc/mount and use the largest valid mount point Mar 18 12:48:16 which is fucking horrible Mar 18 12:48:22 but hey whatever Mar 18 12:48:24 misterli: well run "mount" - parse the result Mar 18 12:48:33 lov: yeah something like that Mar 18 12:48:42 it's up to the manufacturer, and when a customer eventually emails just tell them Samsung doesn't use the external sd for Play Store apps! Mar 18 12:48:46 I want to find a file on the Device. It is usually on Environment.getExternalStorageDirectory + File.Sperator + "/whatever/whateverfile" but it's not always there. And i could not figure out why Mar 18 12:48:46 that's the "freedom" of an opensource OS Mar 18 12:48:53 About the BitmapFactory.decode cancellation, I actually found a BitmapFactory.Options.requestCancelDecode () method, while not ideal there is a bit less lag, so there's that at least Mar 18 12:49:09 Anonyneko: neat. It's worth a shot. Mar 18 12:50:16 Now the biggest lagger is gluTexImage2D, but that sadly can't be cancelled whatsoever Mar 18 12:57:21 I have a friend who says she cannot use android in command prompt even after adding tools and platform-tools from the sdk in her PATH system variable. Any pointers on that? Mar 18 12:59:11 then it's not in her path Mar 18 12:59:15 period ... Mar 18 12:59:48 Or, if she's on windows, she didn't open a new command prompt after adding it to path Mar 18 13:02:13 She did though Mar 18 13:02:31 That the first two thing I ask her to check Mar 18 13:03:38 why not just try using adb/tools from their respective directories ? Mar 18 13:03:48 then you know if it's an env. var problem Mar 18 13:03:58 Want to use another tools that depends on ant, android and java Mar 18 13:04:15 Yes I already ask that, it works if we enter the tools folder Mar 18 13:04:29 It definitely a path problem, but I have no idea what went wrong Mar 18 13:04:33 duplicate paths ? Mar 18 13:04:34 the Path looks ok Mar 18 13:05:00 StingRay_: What do you mean? There is two paths ? Mar 18 13:05:22 she has something like this .....;C:\apache-ant-1.9.0\bin;C:\jdk-1.7\bin; C:\adt-bundle-windows-x86_64-20130219\sdk\tools; C:\adt-bundle-windows-x86_64-20130219\sdk\platform-tools; Mar 18 13:05:23 well if for some odd reason (windows is entirely odd to begin with) Mar 18 13:05:34 is there another way of using custom typeface than setting it in code per view ? Mar 18 13:05:34 When I ask her to try to remove ant from the path, ant stops working Mar 18 13:05:46 So no idea why android is not working Mar 18 13:06:01 does the cmd tools use java ? Mar 18 13:06:09 is it possible to bindService() to a service from a different app, signed with different keys? Mar 18 13:06:14 cause that jdk-1.7 wont be nice will it ? Mar 18 13:06:56 StingRay_: Yes Mar 18 13:06:57 can she run the sdk manager ? Mar 18 13:07:00 Yes Mar 18 13:07:24 She can run android from the tools dir with no problem Mar 18 13:07:46 Just taht why the path is not working. It looks ok in my eyes Mar 18 13:07:57 Maybe it doesn't like spaces before c? Mar 18 13:08:14 SimonVT: I'm thinking about that too. Will try to ask her to remove it Mar 18 13:11:58 Solved it. Weird indeed. It works when she put the android path in user variable and not in system variable. Mar 18 13:20:58 good morning jellybeaners Mar 18 13:22:22 thanks for the pointers SimonVT StingRay_ Mar 18 13:22:23 ich bin ein jellybeaner Mar 18 13:24:37 I know 2 german words: ausgang and auchtung :D Mar 18 13:25:08 "achtung" Mar 18 13:25:35 ah even that I got it wrong Mar 18 13:31:19 what's the best location object to store a parsed georss:point (from XML) in? Mar 18 13:31:33 for use in Maps For Android v2 Mar 18 13:31:36 your butt Mar 18 13:31:48 lov: there's barely any place left there Mar 18 13:31:56 that's your problem, not mine. Mar 18 13:31:58 then your mom? Mar 18 13:32:10 I could ask mom Mar 18 13:32:15 oh snap Mar 18 13:32:27 but she's not here atm, and the client doesn't really know her that well Mar 18 13:32:42 that never stopped your mom Mar 18 13:32:42 so that might cause issues down the road when the API changes again Mar 18 13:32:52 lov: you should know Mar 18 13:32:55 zing Mar 18 13:32:57 is it worth upgrading from maps v1 to v2? Mar 18 13:33:03 Ge0rG: yes Mar 18 13:33:13 do you like fragments? Do you want to use fragments? upgrade. Mar 18 13:33:24 lov: no; no! Mar 18 13:33:35 the fragment is fine, really Mar 18 13:33:43 all my apps are tablet-ignorant as of now Mar 18 13:33:59 >implying there is a tablet market Mar 18 13:34:01 ;p Mar 18 13:35:14 LatLng seems to be the ticket Mar 18 13:35:18 thanks all Mar 18 13:35:23 Ge0rG: fragments are good for phones as well. Mar 18 13:36:24 lov: code-reuse yadda-yadda, yeah... the honest truth is, I didn't have enough time yet to refactor my apps :> Mar 18 13:36:26 ^ truth Mar 18 13:36:33 (that was for lov's statement) Mar 18 13:37:19 I have plans to add ABS and viewpager and what not... as soon as I have some more time Mar 18 13:38:10 Ge0rG: that's a dangerous premise, no? Mar 18 13:38:18 Opening up Eclipse today and all the Android integration is gone - no updates that I recall (the android+eclipse stuff is installed via another package manager and thus not part of regular updates) Any ideas? Mar 18 13:38:23 belgianguy: indeed it is Mar 18 13:38:35 so, does the new API allow offline downloading of map data for a given region? Mar 18 13:39:00 AeroNotix: that might happen if your android sdk and eclipse adt versions don't match any more Mar 18 13:39:04 Ge0rG: no idea, just getting started with more interaction Mar 18 13:39:13 Ge0rG: ok, I'll take a look Mar 18 13:39:54 AeroNotix: Help -> About Eclipse (or About ADT) Mar 18 13:39:59 lov: ty Mar 18 13:39:59 verify that there's still little android icons Mar 18 13:40:11 check the version codes if so Mar 18 13:40:27 No android icons Mar 18 13:40:29 if the SDK/ADT versions don't match, the ADT should complain loudly, so I don't know how it would just go away Mar 18 13:40:40 ok, well, your version of eclipse doesn't have the ADT installed for whatever reason. Mar 18 13:40:43 No, i don't know why this happened. Mar 18 13:40:47 Dammit Mar 18 13:40:51 If you have multiple versions of eclipse on your machine, check which one you opened Mar 18 13:41:15 Only one opened Mar 18 13:41:18 installed& Mar 18 13:41:43 ok, well, the ADT mysteriously isn't present for whatever reason. Go to d.android.com and follow the instructions to install the plugin for eclipse. Mar 18 13:45:03 Doing that now... Mar 18 13:45:27 Thanks for the help Mar 18 13:45:34 Not familiar with Eclipse really Mar 18 13:45:56 usually I just use emacs + shell to code. But Java development seems really geared around The Holy Toolchain Mar 18 13:46:48 "Hand me the holy hand-grenade!" Mar 18 13:47:34 ONE...TWO... Mar 18 13:47:46 not four nor two Mar 18 13:48:02 hmm, even the repo has gone from inside Eclipse. Maybe it did get updated somehow without me noticing. It's horseshit that it'd lose all this Mar 18 13:48:15 I'll pin this package if needed be but....really? Mar 18 13:48:55 Hmm, the packages won't be installed because they are already installed. Mar 18 13:48:57 wut Mar 18 13:49:36 AeroNotix: well that's just bizarre. Mar 18 13:49:52 You could always try asking in #eclipse for help but it might be simplest to just download the newest version of eclipse and pretend that this never happened. Mar 18 13:49:59 I hate doing that Mar 18 13:50:06 but I guess it may be the best option Mar 18 13:50:07 To be fair, you don't HAVE to use eclipse, it's just that once you pass 10,000 LoC you do need the functionality of an IDE. Mar 18 13:50:43 with java, you need an IDE when you pass 10 LoC... which is right after creating your empty android project... Mar 18 13:50:59 Ge0rG: haha Mar 18 13:51:10 * norbi says respectfull hi to everybody! "Nice to be here again!" Mar 18 13:51:19 hi guys Mar 18 13:51:32 lol Ge0rG Mar 18 13:52:07 there's no comparison though, with an IDE i can code and look at docs simultaneously without having two screens or searching for docs Mar 18 13:52:14 the best solution to any eclipse problem is to install intellij idea Mar 18 13:52:22 kaneda^: I can do that with emacs Mar 18 13:52:37 AeroNotix, you can, you can do it with vim too, but yuo still need something to manage this for you Mar 18 13:53:03 AeroNotix: so, does emacs also provide stubs for anonymous abstract class implementation methods? Mar 18 13:53:04 kaneda^: indeed, but it's a case of bottom up plugin additions, rather than top down where the ide installs a GIGANTIC blob of stuff Mar 18 13:53:08 Ge0rG: ho ho. The same thing applies to C++ or any other programming language. Once your project becomes too large to keep in your head, you really do need the help. Mar 18 13:53:22 Ge0rG: so far I've not got a good set up for java but I wouldn't be surprised Mar 18 13:53:26 AeroNotix, eh, the future has become the present, no one cares that eclipse is heav any more Mar 18 13:53:46 * Ge0rG wonders if any other programming language even has the concept of "anonymous abstract class implementation methods"... Mar 18 13:53:52 lov, really? I have a few hundred kloc c and c++ projects that I only use vim with Mar 18 13:53:58 Ge0rG: C++ does Mar 18 13:54:00 well Mar 18 13:54:03 AeroNotix: if you really, really don't want to use eclipse, consider another IDE like IDEA or IntelliJ. Apparently they have decent Android integration at this point Mar 18 13:54:03 no Mar 18 13:54:16 intelliJ++ Mar 18 13:54:20 i was searching over the Net for some Matrix examples, but couldnt find any usefull, im working with the front camera that has face recognition and creates face object, those objects have Rect member that is in some magic coordinate system in [-1000,1000] interval but changing.. yet dunno determined by who and how can i find out what are the params for that, but i have to translate that Mar 18 13:54:20 matrix to my view diemsions and i also do that but i have no idea how to handle that matix and wich way i can access values of it... Mar 18 13:54:21 lov: vim and ctags is all you need for large c++ projects ;) Mar 18 13:54:22 Zharf: hey, whatever works for you. I'll be over here hitting the "refactor" button and having 100 classes change magically (and correctly) Mar 18 13:54:25 lov: I'll give it a g Mar 18 13:54:25 lov, idea is intellij :> Mar 18 13:54:48 ... I knew that. Mar 18 13:54:48 any ideas related to Matrix, and any good example of usage? Mar 18 13:54:48 lov, i've never had good luck with eclipse and refactoring Mar 18 13:54:50 (I didn't know that) Mar 18 13:54:56 lov, there is no working c++ IDE though, like there is for Java Mar 18 13:54:58 hm. actually, I should replace "vim" with "rm" and "ctags" with "-rf" Mar 18 13:55:08 java is pretty much the only language with a proper IDE out there Mar 18 13:55:34 Zharf: this is due to the fact that java is barely usable as a language without an IDE Mar 18 13:55:44 Ge0rG, partly I guess Mar 18 13:55:55 it's also much easier to write one for java than say c++ Mar 18 13:55:55 Supposedly, XCode + ObjC work very well together because of clang/llvm Mar 18 13:56:24 * lov rolls his eyes Mar 18 13:56:27 Also, I never faced any problems using Eclipse and "Refactor...". I used it a lot and it worked well. Mar 18 13:57:01 i've had it stop half-way through and tell me it couldnt continue after finishign half Mar 18 13:57:13 Do iOS Devs also make the switch to Appcode by JetBrains? Mar 18 13:57:25 kakazza, you should probably be askin that in #ios Mar 18 13:57:43 kaneda^: ;p Mar 18 13:57:48 #iphonedev btw Mar 18 13:57:55 Maybe I will!!1 Mar 18 13:58:02 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11111111111111111111111111111111111111111111ONWE Mar 18 13:58:06 ok!!11!!1!!1#@#! Mar 18 13:58:10 wut Mar 18 13:58:12 :D Mar 18 13:58:40 get out. Mar 18 14:03:33 awesome - reinstalled everything. Still not working but I get the android icons in Help>About Mar 18 14:03:52 so, where to go from here? I assume this is a version mis-match or it can't find a binary on my path Mar 18 14:03:53 ? Mar 18 14:04:05 try just downloading ADT from android Mar 18 14:04:26 lov: ßtalk dirty binary to me!!!!!! Mar 18 14:05:09 monsti: 0110100100100000011010000110000101110100011001010010000001111001011011110111010100100000011011010110111101101110011100110111010001101001 Mar 18 14:05:42 kaneda^: I am getting it from the android site Mar 18 14:05:49 sounds good Mar 18 14:05:56 kaneda^: https://aur.archlinux.org/packages/ec/eclipse-android/PKGBUILD here's the build script my package manager is using Mar 18 14:06:02 it downloads it straight from android Mar 18 14:06:24 did you double check those deps at the beginning? Mar 18 14:06:29 depends=('android-sdk>=r21.1' 'java-environment>=6' 'eclipse>=3.6.2' 'eclipse-wtp') Mar 18 14:06:34 it won't install without those Mar 18 14:06:46 are you sure they're all installed CORRECTLY? Mar 18 14:06:52 configured, etc Mar 18 14:07:11 last time I didn't have to do any special config. Wait a sec, RL things to take care of Mar 18 14:08:47 AeroNotix: Arch Love <3 Mar 18 14:16:35 guys what are you using more, asyncTask or normal Threads? Mar 18 14:17:30 I would have to say Threads since AsyncTask is a wrapper around a thread anyway. Mar 18 14:17:47 by definition you'll always use as many or more threads :> Mar 18 14:18:20 lov yea but you know what i meant:P Mar 18 14:18:45 i wondered if you usually wrap around threads with Asynctask Mar 18 14:18:51 :> Mar 18 14:19:09 Use an AsyncTask when you need to care about the UI thread. Use a regular thread or Executor otherwise. Mar 18 14:22:33 join #wordpress Mar 18 14:22:37 fuck Mar 18 14:22:38 woops Mar 18 14:22:41 forgot the slash Mar 18 14:22:51 lov thanks! Mar 18 14:23:24 coco89: get out. Mar 18 14:23:48 no u Mar 18 14:24:16 can i ask you something, im "coloring" the UI of this irc client, can you address to me somthing like norbi lorem ipsum dolor etc to can see if color changed on addressing and sound ? Mar 18 14:24:34 good morning everyone :> Mar 18 14:24:36 no u lol Mar 18 14:24:52 norbi: dorkum ipsum Mar 18 14:25:05 lov, thanks, it wont change the color .. ffs Mar 18 14:25:40 norbi: I would recommend http://slipsum.com/ in the future for your lorum ipsum needs Mar 18 14:26:34 lov hehe, this is better then lipsum.com :)) its funnier and richer text:)) Mar 18 14:26:59 samuel l. ipsum :))) Mar 18 14:27:32 lov a simple website like this can be so creative and funny, this made my day, thanks :)) Mar 18 14:27:40 norbi: glad I could help. Mar 18 14:28:57 can you recommend a good irc client? that is personalizable in color and sounds? i hate that i cant distinct topic from inline chat and no sounds when someone writes to me Mar 18 14:29:39 uh, I use irssi. That's probably not what you want. Mar 18 14:29:43 you might want to ask elsewhere. Mar 18 14:31:24 anyone got GridLayout working in IDEA ? the icon is grey and dragging it in a layout gives an internal error Mar 18 14:31:48 lov haha this irssi is funny also :)) that video :)) http://www.irssi.org/ man you are a funny guy finding funny stuff:)) Mar 18 14:32:15 norbi: the hell? Mar 18 14:32:32 oh, the terrible Numb3rs clip? Mar 18 14:32:33 yeah. Mar 18 14:32:39 lov aha :)) Mar 18 14:32:41 Go look for "two idiots one keyboard" for NCIS. Mar 18 14:33:23 I need to update my adt plugin to 21.1 but check for update says "no updates were found". Any pointers Mar 18 14:33:42 lov OMG ROFL :)) Mar 18 14:34:28 lov man i have a huge smile on my face, it hurts already :)) Mar 18 14:35:03 your smiley needs like 3 or 4 chins I guess Mar 18 14:35:06 :))))))))))))))))))))))))))))))))))))))))))))))) Mar 18 14:35:10 oh god unbounded parenthesis Mar 18 14:35:37 :> Mar 18 14:35:45 thx lov for kicking my a** :P :)) Mar 18 14:36:26 http://www.youtube.com/watch?v=2CjLd9o_Pno&NR=1&feature=endscreen Mar 18 14:40:28 how can i have my gridlayout use equal width for all columns regardless of their content? Mar 18 14:41:32 :DI will not allow censorship! ass ass ass Mar 18 14:41:46 Why is there a smiley Mar 18 14:41:50 ლ(゚д゚ლ) Mar 18 14:45:11 Hello, I have problem with my emulator on linux server. "emulator: ERROR: Could not load OpenGLES emulation library: lib64OpenglRender.so: cannot open shared object file: No such file or directory" Mar 18 14:46:35 Partysun, do you have the lib? Mar 18 14:47:10 Partysun: what linux distro ? Mar 18 14:47:42 ubuntu 64 stable server Mar 18 14:48:18 you using the "accelerated drivers" that actually install that as a dependancy ? Mar 18 14:48:31 as in display drivers Mar 18 14:49:48 Partysun, you should find the .so file in android-sdk/tools/lib/lib64OpenglRender.so Mar 18 14:49:56 I find it. Mar 18 14:50:03 It exist. Mar 18 14:50:16 emulator @awesome-device -gpu off -no-window -noaudio -no-boot-anim Mar 18 14:50:17 Failed to Initialize backend EGL display Mar 18 14:50:37 Partysun: note that "no such file or directory" isn't necessarily the actual cause; it's possible that an error occured when attempting to load the file; you'd have to use strace or something to actually see that though. Mar 18 14:50:40 try with -qemu with it Mar 18 14:51:13 either that or check your LD_LIBRARY_PATH Mar 18 14:51:18 -qemu don't solve it. Mar 18 14:52:24 echo $LD_LIBRARY_PATH - nothing. Mar 18 14:52:41 make sure LD_LIBRARY_PATH knows where that lib is Mar 18 14:53:05 http://www.youtube.com/watch?v=Wp-uKlhXvmo Mar 18 14:53:07 How do I fix it? Link to lib64OpenglRender? Mar 18 14:53:28 ive been there, like the guy in the video, but i was the caller :D Mar 18 14:53:33 and over IRC :)) Mar 18 14:53:34 Partysun, something like, export LD_LIBRARY_PATH=/home/Partysun/android-sdks/tools/lib:$LD_LIBRARY_PATH Mar 18 14:54:15 kaneda^, 1 min... Mar 18 14:57:02 Lol message. = emulator -avd @awesome-device -gpu off -no-window -noaudio -no-boot-anim Mar 18 14:57:03 PANIC: Could not open: @awesome-device Mar 18 14:57:20 PANIC! Mar 18 14:57:26 Can I use "-" in and name? Mar 18 14:57:28 * kaneda^ grabs his copy of HHGG Mar 18 14:57:50 Partysun, '-' is a legal character i believe Mar 18 15:02:35 http://pastebin.com/CQx4vjGJ Mar 18 15:06:37 Partysun, the "@" is being taken literally Mar 18 15:06:43 as though the "@" itself is part of the device name Mar 18 15:06:58 you probably didnt intend this Mar 18 15:08:00 Name = device. Mar 18 15:08:01 http://pastebin.com/zDgrHqqQ Mar 18 15:12:25 hey guys, what exactly is 'context' Mar 18 15:12:34 i've checked documents but i dont get it Mar 18 15:14:59 anyonee Mar 18 15:15:21 http://developer.android.com/reference/android/content/Context.html Mar 18 15:15:23 kaneda^, last fix - Failed to Initialize backend EGL display Mar 18 15:15:24 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. Mar 18 15:15:53 coco89[a]: how can you not get it from the description ? Mar 18 15:15:54 coco89[a], it's literally the current application context, it holds relavent information about the application state Mar 18 15:16:03 or rather the class overview Mar 18 15:16:05 Partysun, and you disabled gpu? Mar 18 15:16:33 what information about the current application does it hold Mar 18 15:16:39 and how does it do it :S Mar 18 15:16:46 why does it need it etc Mar 18 15:16:49 look at the class Mar 18 15:17:08 all the calls/methods/properties etc Mar 18 15:17:27 coco89[a], that's where the docs come in, to explain waht it contains and how you can utilize it Mar 18 15:19:35 kaneda^, yes. Mar 18 15:19:49 Interface to global information about an application environment. Mar 18 15:19:52 it's vague Mar 18 15:19:59 Partysun, i duno, check google code/groups for more info Mar 18 15:20:36 Hi, I did some development with NDK, and I am getting the following message as soon as I start my application on the device: Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]: 89 cannot locate '__aeabi_ldiv0'... Mar 18 15:20:40 kaneda^, ok. Thanks. Mar 18 15:23:06 LuigiBairesDev: your library is getting compiled or linked incorrectly, possibly you're missing libgcc which gcc normally links in to binaries that need it Mar 18 15:25:13 zinx: I am building with the NDK, what else should I get ? Mar 18 15:25:26 how can i find out the width of a textview when i have not placed it in a container yet? all props are set i just need to know in advance how wide it will be Mar 18 15:25:36 (using wrap_content) Mar 18 15:27:27 LuigiBairesDev: nothing, but you do need to use it properly, i have no idea what your makefiles are like or where you're using division that needs a function helper :/ Mar 18 15:28:51 zinx: Sory, I forgot to tell you that it works on a samsung galaxy sIII with android 4.1 while it doesn't (by throwing this same error) on any other device I tryed ? (galaxy s2 with 4.0.3, motorola xoom) Mar 18 15:30:28 LuigiBairesDev: maybe it's an ABI change then Mar 18 15:33:29 zinx: the funny thing is that I first built it with android-14 and then tryed on android-9, and the same happened with both versions Mar 18 15:33:48 hmm, does anyone have any good resources on implementing a refresh button in the action bar? Mar 18 15:33:58 zinx: maybe I should use a differente toochain version? like arm-linux-androideabi-4.4.3/ instead of arm-linux-androideabi-4.6/ ? Mar 18 15:34:05 LuigiBairesDev: __aeabi_ldiv0 seems to be a division by zero handler, you can just provide your own >_< Mar 18 15:37:19 LuigiBairesDev: yeah, using 4.4.3 would 'fix' it too, idk why libgcc.a isn't getting linked in though, silly NDK Mar 18 15:39:42 Someone, please point me some article that talk about lazyadapter. I'd be really appreciate that :) Mar 18 15:39:59 zinx: Thanks, guess I'll try that... I actually was trying to avoid it because it takes like 2 hours to re-build the entire project, jhehe Mar 18 15:40:53 I managed to get the menu item setup, but pressing it doesn't refresh the page, was looking for articles/tutorials online, but they are all on the animated refresh Mar 18 15:41:09 and I'm not sure I follow exactly how they are sending the command to refresh Mar 18 15:41:21 xviv, that lazyadapter better get off it's lazy butt and do something Mar 18 15:42:26 haha watch this programmer http://www.youtube.com/watch?NR=1&v=Rvn6mCzRRpU&feature=endscreen he burns the scammers a** off :)) Mar 18 15:45:46 Rob|boR, that's completely dependent on what your app is/does Mar 18 15:45:55 like how did you load the page in the first place Mar 18 15:45:58 do that again :P Mar 18 15:46:25 so reload the activity? Mar 18 15:46:41 norbi: I'm going to gently recommend that you take "LOL VIDEO" to #android or somewhere else. Mar 18 15:46:42 i dont know what that means Mar 18 15:46:55 I'm going to give it a try >:] brb Mar 18 15:47:01 moooooooooooo Mar 18 15:49:50 Is there a list of valid themes by API version? e.g. is there a Theme.Light for API 7? Mar 18 15:50:53 https://developer.android.com/reference/android/R.style.html Mar 18 15:50:57 Theme_Light API 1 Mar 18 15:52:22 Thanks Mar 18 15:58:42 I want to have a LinkedHashMap() (or similar) of fragments to use in a ViewPager. Can I populate the Map in the Activity constructor? Mar 18 15:58:45 I had an idea about passing the Fragment classes as references, to be instantiated in the ViewPagerAdapter, but I can't figure out how to do that in Java Mar 18 15:59:38 .newInstance() Mar 18 16:00:07 so, pass 'new Fragment()', then do .newInstance() on the fragment instance? Mar 18 16:00:37 no, it's one or the other, newInstance() implies some sort of factory class or reflection Mar 18 16:00:57 you can pass a reference to the Class (e.g. MyFragment.class) and then just invoke .newInstance() on it Mar 18 16:01:01 So what would my LinkedHashMap look like? Mar 18 16:01:04 ah Mar 18 16:02:03 hey guys I got some imageButtons that I wanna add an effect too when pressed.. the most places I find Mar 18 16:02:15 they suggest I make 2 images.. one for pressed one for not pressed Mar 18 16:02:34 but is there no standard features? was thinking about padding it Mar 18 16:02:40 like go 10 up then 10 down after half a sec Mar 18 16:03:12 I wanted to add more of an effect of it being pressed.. not just another image Mar 18 16:03:13 I have a a listview that data from info it gets from the web. I managed to implement the refresh button in the action bar, but when I press it, it reloads that list view, and it basically keeps the original listview + the one it just retreived. so it's just adding to it, it's not deleting the old one... Mar 18 16:04:12 the refresh button should update the contents of the adapter Mar 18 16:04:21 you shouldn't have to touch the UI, it will take care of itself Mar 18 16:04:35 this is how I currently have it http://pastebin.com/XTrajc5L Mar 18 16:04:53 that shows me nothing related to your problem Mar 18 16:04:58 oh.. Mar 18 16:04:59 what do you do in your onPostExecute of the task? Mar 18 16:07:12 I think I know where you are going with this. so the refresh button is doing what is in the postexecutte? Mar 18 16:12:23 wondering about MediaPlayer, when I call start() and it starts playing the video, which process is actually doing the decoding work? AFAIK start() is non-blocking, right? Mar 18 16:19:10 http://pastebin.com/ArXyJgmr i need to create an activity with maps, centered in my location with some markers. this code works but in map i doesent see the cursor of my location with circle if are in coarse localization, what wrong? Mar 18 16:24:50 Why do we need pending intent filters when writing to an NFC tag? Mar 18 16:29:14 StingRay_ Mar 18 16:29:51 coco89: Mar 18 16:30:05 P3nnyw1se Mar 18 16:31:25 hmmm so that was interesting Mar 18 16:32:00 hiya guys, i run an app in emulator and set the internet off by pressing F8. Is it normal when eclipse start another new emulator to run the apps again, while i already set network on by pressing F8 again? Mar 18 16:32:08 coco89: no idea, not played with NFC Mar 18 16:32:18 but would assume to know when it's done Mar 18 16:32:18 Ah Mar 18 16:36:00 So just to double check, a pendingIntent is actually an Intent that would be sent somewhere else, we just don't know where Mar 18 16:36:53 just about every intent works like that Mar 18 16:36:59 except for the explicit intents where we actually specify the class Mar 18 16:38:16 completely offtopic, I've tried out IDEA for a bit. Is there no "workspace" like Eclipse so I can work on several project at the same time in one window ? Mar 18 16:40:23 Chainfire: dunno but when I spent 10 minutes figuring out that it doesnt organize that way, I reverted to eclipse Mar 18 16:41:39 yeah it's a dealbreaker for me if it's not present Mar 18 16:43:50 so a pendingIntent is.. ? And how come we create a new Intent within a pendingIntent I don't get that Mar 18 16:45:10 coco89: Pending Intents are meant to be given out to external applications. For example, when you create a Notification, you're providing a pending intent for your notification which the NotificationManager will process for you. Mar 18 16:45:16 similarly, the Alarm Manager, etc. Mar 18 16:45:16 coco89: the docs on PendingIntent are pretty clear Mar 18 16:45:20 ^^ Mar 18 16:45:24 read the docs. Mar 18 16:45:53 hiya guys, i run an app in emulator and set the internet off by pressing F8. Is it normal when eclipse start another new emulator to run the apps again, while i already set network on by pressing F8 again? Mar 18 16:46:33 lol sorry this is irrelevant to android programming.. English is a second language to me.. is there a term for like Mar 18 16:46:38 miniature model landscapes like Mar 18 16:46:44 a railroad track with a tiny train Mar 18 16:46:48 or santa's workshop whatever Mar 18 16:47:09 P3nnyw1se: like a diorama? Mar 18 16:47:41 yeop thats probably it :P Mar 18 16:47:43 evanc: I would never go to a model shop and ask for a trains for my diorama Mar 18 16:47:57 heh Mar 18 16:48:01 StingRay_: I don't know why he's asking Mar 18 16:48:05 to me being english, it's just a model train set Mar 18 16:48:12 or model something Mar 18 16:48:13 ^ Mar 18 16:48:17 yeah Mar 18 16:48:27 but he obviously already knows the word "model", haha Mar 18 16:48:31 * evanc shrugs Mar 18 16:48:47 hahaha this guy already knows one word.. so he should as a direct result know it applies to every situation Mar 18 16:48:50 ..... Mar 18 16:48:57 English here, too. It's a model train set. Mar 18 16:48:58 xqdzn: when eclipse starts another emulator instance, it's because it doesn't realize that there's already a valid AVD running for some reason. Mar 18 16:49:02 xqdzn: as to how to solve that, I don't know. Mar 18 16:49:03 I thought a diorama was an action blaaa depiction of some sort Mar 18 16:49:21 I think the US just invented the word diorama Mar 18 16:49:23 :) Mar 18 16:50:05 i have never heard of a diorama, i read that as diaphragm Mar 18 16:50:08 thank you lov! :) Mar 18 16:50:30 birbeck: I have on US tv shows, school projects etc Mar 18 16:50:34 its my experience that the US never invented anything Mar 18 16:51:12 lov: adapter.enableForegroundDispatch(this, pendingIntent, writeTagFilters, null); so here the pendingIntent is getting sent to the adapter? Then when something happens an Intent gets sent back? :S Mar 18 16:51:48 US should stop altering our language!! making stuff up!! Or create their own language to butcher Mar 18 16:51:49 :) Mar 18 16:51:55 * StingRay_ hides Mar 18 16:52:58 well that depends what you mean by your language Mar 18 16:53:20 isn't English just from old germanic -> russian something Mar 18 16:53:20 ? Mar 18 16:53:46 coco89: so, uh, have you read http://developer.android.com/reference/android/app/PendingIntent.html , in particular the part marked "Class Overview" yet? Mar 18 16:53:49 well is an evolution of every language that invaded us Mar 18 16:53:57 coco89: please do read it and come back. Mar 18 16:53:58 before we ruled the seas Mar 18 16:54:12 StingRay_: and france! Mar 18 16:54:17 erm no Mar 18 16:54:36 Being danish.. I can relate to invading England Mar 18 16:55:01 I'm not saying it was easy, I'm just saying 50 vikings got in a boat and suddenly they had a country Mar 18 16:55:16 you know, this stuff happens. Mar 18 16:55:27 you get blackout drunk and you wake up hungover as fuck with a crown Mar 18 16:55:33 and you're like "wait what did we DO last night?" Mar 18 16:55:36 did you know.. and this is no bullshit Mar 18 16:55:57 that the viking used to make slaves eat poison mushrooms.. the slaves might die from it.. then they would drink the slaves urin.. Mar 18 16:56:06 to get these bloodrages.. without suffering the consequences of death Mar 18 16:56:10 ... Mar 18 16:56:20 aaaand we've veered completely offtopic. Mar 18 16:56:23 is it possible to obtain a reference (intent) to an NFC tag that is currently connected to the phone, without removing the tag or turning off the screen? Mar 18 16:56:30 are we lov? are we really off topic Mar 18 16:56:34 what would be the best way to test if my app and associated services might be keeping the phone awake? it always shows the app is using very little battery usage. but some are reporting the app maybe keeping their devices awake Mar 18 16:57:08 * lov rolls his eyes Mar 18 16:57:19 Ge0rG .. if you have an NCR tag you should turn it over to the legion. they will most likely pay 20 gold for each of them Mar 18 16:57:23 toastcfh: adb shell dumpsys power Mar 18 16:57:24 * P3nnyw1se goes back to tv Mar 18 16:57:40 lov thanks Mar 18 16:57:49 * StingRay_ goes off to watch new history channel series Vikings Mar 18 17:01:26 Hi everyone, i'm new here, can anyone tell why i'm getting an error on line 24 and 26 http://pastebin.com/H92uBPnx ? Mar 18 17:01:27 lov i take it id see it holding a wakelock of some sort. Mar 18 17:01:28 thanks Mar 18 17:01:37 nothing tho Mar 18 17:01:44 placebo maybe Mar 18 17:03:31 Geneller: your items are in the wrong place Mar 18 17:03:52 setListAdapter(new ArrayAdapter(this, Mar 18 17:03:55 android.R.layout.simple_list_item_1, items)); Mar 18 17:04:40 toastcfh: yeah, wakelocks should be shown there Mar 18 17:05:39 what a silly mistake, thank you birbeck Mar 18 17:05:45 I'm guessing I need to clear the list in the postexcute if I want to have a refresh button. I copied snippets of the code to show where I'm having issues http://pastebin.com/XJxkx02C Mar 18 17:05:53 i still having the error on line 26 Mar 18 17:05:58 having issues with invalid index on gridview: http://stackoverflow.com/questions/15465019/viewpager-with-gridview-invalid-index-error Mar 18 17:06:52 my refresh is currently showing doubles after hitting the refresh button Mar 18 17:07:33 please disregard line 60 Mar 18 17:08:08 Geneller: i dont see a problem with line 26, maybe that id doesnt exist in that view, but you do have a problem with the id of your listview. it needs to be android:id="@android:id/list" Mar 18 17:10:26 ugh sometimes i wish there wasnt a ListActivity/ListFragment/etc Mar 18 17:10:36 why? Mar 18 17:10:36 shrug, I never use those Mar 18 17:10:49 * pragma- puts his own listview in his own activity/fragment layout Mar 18 17:10:54 because it leads to problems like this Mar 18 17:10:57 im with pragma- Mar 18 17:13:27 :( Mar 18 17:14:02 Rob|boR: you answered your own question Mar 18 17:14:50 ohhh god Mar 18 17:14:52 the horror Mar 18 17:14:58 anyone here following 'the walkin dead' ? Mar 18 17:15:05 dont tell me!!! Mar 18 17:15:15 I wont but.. aww man Mar 18 17:15:16 I have yet to watch latest with g/f Mar 18 17:15:24 I'm sorry I'm starting to get really angry with this show.. I wont spoil it Mar 18 17:15:34 read a book. Mar 18 17:15:35 List{Activity,Fragment} are stupid Mar 18 17:15:43 I answered my own question? Mar 18 17:15:44 alright this info won't spoil anything at all stingray but listen to this and see if you notice it Mar 18 17:15:53 StingRay_: quick, /ignore him Mar 18 17:16:01 P3nnyw1se: /j #android-offtopic Mar 18 17:16:11 Rob|boR: clear it Mar 18 17:16:12 or #thewalkingdead or something Mar 18 17:16:18 if only I was capable of answering my own questions lol Mar 18 17:16:22 evanc really ? Mar 18 17:16:33 fortunatley #thewalkingdead is completely off-topic for this network Mar 18 17:16:37 Rob|boR: you "add" is adding :) Mar 18 17:16:43 on my screen.. without scrolling I can see the last 1½ hours Mar 18 17:16:48 sorry to spam this crazy busy channel Mar 18 17:16:49 okay let me check again Mar 18 17:16:53 so either clear it or just add the difference Mar 18 17:17:14 hello, so I have made a custom listview, in this listview each row has a button, hot to notify the activity parenting the listview that the button is clicked? Mar 18 17:18:00 Hey, P3nnyw1se Mar 18 17:18:04 can you knock off the random chatter Mar 18 17:18:16 thanks :3 Mar 18 17:18:18 tardy to the party Mar 18 17:18:21 I know ._. Mar 18 17:18:25 clear it in the postExecute? Mar 18 17:18:32 speaking of which I saw your thing on reddit pragma- Mar 18 17:18:34 pretty neat Mar 18 17:18:39 * pragma- smiles happily. Mar 18 17:19:05 because I tried clearing it in the onOptionsItemSelected, but items were still repeated Mar 18 17:19:39 InfernalBug: why you don't set listener for button? Mar 18 17:20:01 Rob|boR: clear what ? Mar 18 17:20:01 you opped yourself to appear more threatening when you asked me to not random chatter ? :D Mar 18 17:20:04 haha.. I like it Mar 18 17:20:15 xqdzn that's not the problem, but I want to make changes to the database then notify the activity to update other things on it Mar 18 17:20:20 the arrayOfList ? Mar 18 17:21:05 just a sec, customer. Mar 18 17:21:24 InfernalBug: now that's out of my knowledge, i'm new here. Sorry i can't help you :| Mar 18 17:21:54 InfernalBug: besides, i've got C in my english class :| Mar 18 17:21:56 xqdzn you had my hopes up high :( Mar 18 17:23:12 InfernalBug: can you draw it? i can't get the visual from your text. did you mean change item in listview after pressing the button? Mar 18 17:23:35 yes xqdzn let's say that Mar 18 17:24:24 I know it'll sounds silly. But why not calling a method that do it in button listener? Mar 18 17:24:58 the problem is that the method I want to call isn't in the adapter, it's in the activity that parents the adapter Mar 18 17:26:29 did you mind to paste it to some site so i can see your script? Mar 18 17:26:31 InfernalBug: could use a clickListener or callback passed into the contrructor Mar 18 17:26:49 in a viewpager with fragments, could there be any disadvantages of having a static shared cache in the fragment, vs a cache defined by the hosting activity. Mar 18 17:27:23 eg new myListAdapter(context,list,onclickFromActivity); Mar 18 17:27:27 StingRay_ thanx i will try that Mar 18 17:27:45 then just set it in the getView Mar 18 17:30:21 okay I'm back Mar 18 17:30:44 I was clearing listView.setAdapter Mar 18 17:31:02 clear the dataSource Mar 18 17:31:13 not arrayOfList, I'm guessing I need to clear arrayOfList in the Postexecutre Mar 18 17:31:16 then notifyDatasetChanged on the adapter Mar 18 17:31:21 when you have changed that data Mar 18 17:31:30 just make sure your using the same instance Mar 18 17:31:42 but if you clear() then add() you are doing Mar 18 17:32:47 ok Mar 18 17:32:58 so in short, arrayOfList.clear(); arrayOfList.addAll(new data); yourAdapter.notifyDatasetChanged(); Mar 18 17:35:27 is there a some form of standalized effect you can add to an imagebutton to make it appear 'clicked' to the user? Mar 18 17:35:37 all the places I read they suggest creating another image and replacing when its clicked Mar 18 17:35:56 just thought there had to be some effect rather than that Mar 18 17:36:24 P3nnyw1se: well that depends on what the button is to begin with right ? Mar 18 17:36:40 bitmap, shape … etc Mar 18 17:37:04 adding effects to an image button depends on the bitmaps and shapes ? Mar 18 17:37:10 of the source ? Mar 18 17:37:18 well if your using a custom button Mar 18 17:37:25 I'm using imageButton Mar 18 17:37:27 and it's a bitmap Mar 18 17:38:04 so you have a button image "bitmap" ? Mar 18 17:38:45 I have an imageButton with a png 128x128 source Mar 18 17:39:45 well what effects can you do to that ? Mar 18 17:40:09 you can have transitions in state lists I think Mar 18 17:40:34 well I like to have a 'clicked' effects you know.. hard to explain doesn't matter if its a change in padding or color change Mar 18 17:40:38 but when I read about this Mar 18 17:40:46 they suggest I make another image and then use for when its clicked Mar 18 17:40:57 but I would rather not edit that png file.. its good quality Mar 18 17:41:05 and I dont make good quality pictures Mar 18 17:41:32 then your probably limited to shape/layer drawables that use it Mar 18 17:41:40 but wont be great looking Mar 18 17:42:05 StingRay_! Finally somebody with a modicum of patience has shown up.. :) Mar 18 17:42:10 I just thought the button might have some standalyzed effect when it was hit but it doesn't obviously Mar 18 17:42:30 I tried first changing padding you know so it jumps up and then jumps back down.. but looks like shit and its not sliding or anything Mar 18 17:42:38 + it changes the size of the view Mar 18 17:43:04 P3nnyw1se: send me it, I will do you a pressed version if you want Mar 18 17:43:18 take about 30seconds to 90seconds Mar 18 17:43:23 I think Mar 18 17:43:35 alright thx well no rush I have a guy making new icons for my app and they aren't here untill thursday friday. Mar 18 17:43:42 the ones I use now are just temporary Mar 18 17:45:53 Bleeptech: thats a really odd thing to say Mar 18 17:48:26 Not at all.. You've pointed me in the right direction more than once without resorting to saying "R.T.F.M.".. LOL :) Mar 18 17:49:08 yeah but I'm sure if you asked a question that was directly in the manual I would have said that Mar 18 17:49:13 StingRay_: in this channel it seems like a totally valid thing to say :D Mar 18 17:49:34 timroes: was really the motive rather than context Mar 18 17:49:40 Dyslexia ++ Java Documentation == Extreme confusion most days.. Mar 18 17:50:03 cause A) I know very little about android dev and B) I dont think I have much patience Mar 18 17:50:44 actually yeah, I probably do have lots of patience for others…. just not for myself Mar 18 17:50:49 StingRay_: from what i've seen in this channel yet, you are definately one of the patient and polite helpers :) Mar 18 17:51:24 StingRay_: Well too bad and too late.. You opened your trap and now you're stuck with it.. ROFL Mar 18 17:51:31 only with people who actually put in effort Mar 18 17:52:00 I never liked deligates that wanted to learn with no effort when I was an instructor Mar 18 17:53:06 * Bleeptech put in lots of effort.. Unfortunately most of it ends up commented out and then cut as useless.. Mar 18 17:54:45 StingRay_: Right now I'm trying to figure out how to get an @string to propagate? inherit? down from an activity into an external class. Mar 18 17:55:44 you mean a string resource ? Mar 18 17:56:26 Hey, I have a couple questions. Is it possible to have a test with more permission than the actual app itself? Mar 18 17:57:06 I'm pretty sure it can't but I'm hoping that there is a way around it Mar 18 17:57:36 I think so.. declared in res/values/strings.xml as http://192.168.254.23/ Mar 18 17:57:54 jsum: sure, why not? Mar 18 17:58:11 jsum: Let your test application be a different project Mar 18 17:58:43 lov: I think it already is a different project Mar 18 17:59:02 and right now I'm trying to give just the test permission to change network connectivity Mar 18 17:59:11 while the main app doesn't have the permission to do so Mar 18 17:59:38 when i don't include the permissions in the main app's manifest, and then run the test. It tells me i don't have the permissions Mar 18 17:59:50 did you add it in the test manifest? Mar 18 18:00:26 StingRay_: I can get it at the Activity level with @string/server_string but I want to get to it like a C global. Mar 18 18:01:43 StingRay_: And I'm not geting how Context works to be able to grab R.strings.server_string. Mar 18 18:01:55 if a handler is a field of an Activity, will things posted to it run after the activity has stopped running? trying to figure out where to setup a handler Mar 18 18:01:57 Bleeptech: this is probably not something you want to do. Trust me on this. Mar 18 18:02:12 Bleeptech: strongly consider not storing the server IP in the xml resources Mar 18 18:02:16 lov: yes i have added the permissions into the test manifest Mar 18 18:02:23 jsum: huh. Maybe you can't :( Mar 18 18:02:41 will addView() trigger an onLayout ? Mar 18 18:03:00 lov: yea :P so far from reading, apparently google designed it so that test permission can only be a subset of the actual app's permissions Mar 18 18:03:16 lov: was hoping that i was wrong though haha Mar 18 18:03:16 lov: Then where should I put it to make dealing with a variable network topology easier? Mar 18 18:03:54 lov: does it matter where it is though ? still find it easy Mar 18 18:04:22 Bleeptech: context.getResources().**get whatever you want ** Mar 18 18:05:22 I'm gonna be faced with looking at server connection security soon :( not something I want to do either Mar 18 18:06:22 i have little OOP and java skill, and now i want to learn how to make app for android. is it okay if i learn oop and java while i also learn android programming? Mar 18 18:06:35 My second question is, does anyone know how to open a web view during a test? I built a test activity that does it and then tried to launch that but i keep getting "Intent in process com.lookout resolved to different process com.lookout.tests" Mar 18 18:06:42 xqdzn: i think thats fine Mar 18 18:07:20 xqdzn: android programming just uses oop and java, i don't see many conflicts of learning them together Mar 18 18:08:54 xqdzn: hald of android is stuffing bundles, no oop required for that Mar 18 18:08:58 *half Mar 18 18:09:02 jsum: how about knowing the concept from android? eg, i have some difficulties when i try to understand about AsyncTask in the first time. i thought it is because my poor skill in java and oop. Mar 18 18:09:32 lov: Or should I just leave myself a bunch of comments in strings.xml during dev pointing to where they're buried? Mar 18 18:09:44 is there such a thing as a parcelable string ? Mar 18 18:10:26 * g00s was looking to see if he could buy this Micromax A51 in the US, but it seems like its only India Mar 18 18:10:54 what kind of view should I use if I want to display a 3D animated list of pictures, for the user to select one Mar 18 18:16:23 Okay, so here goes I'm going to begin writing my NFC tag reader app. I used a demo NFC writer app to write a string to the tag, I didn't really change any code in it. I was just wondering, would I need to change something so that when the tag is discovered, my reader app will be the one that opens up? Mar 18 18:17:00 coco89, yes and this is where the intent filters come in Mar 18 18:17:34 nseidm1: so i'd need to change the intent filter in the tag writer app? Mar 18 18:17:59 xqdzn: the concept and flow of android will have a separate learning curve. It would be good for you to understand how threads, processes, and synchronization work. Mar 18 18:18:02 your pending intent needs to match up with the intent filters you setup in ur manifest Mar 18 18:18:43 nseidm1: in the reader or writer app? Mar 18 18:18:49 has anyone ever used android:fragment in a ? Mar 18 18:19:06 StingRay_ , thank you for the assist. Mar 18 18:19:34 however you define the pending intent you supply to the tag, make sure it has a filter in ur manifest for a particular activity Mar 18 18:21:00 nseidm1: so if there's already a string stored in the tag, I could just create a reader app which will supply a pending intent that will open up my reader app's activity/ Mar 18 18:21:21 but how will it know to open my app in the first place Mar 18 18:21:45 the intent filter Mar 18 18:22:06 nseidm1: yes, but my app would haev to be open already right? Mar 18 18:22:18 no Mar 18 18:22:21 oh right Mar 18 18:22:30 so what i said above is correct Mar 18 18:22:37 okay i think i understand Mar 18 18:22:40 StingRay_: the whole "Context context = this;" has been confusing me.. Mar 18 18:22:57 Bleeptech: read the class description Mar 18 18:22:58 so i dont hvae to realy mess around with the writer app's intent filter so long the intent filter in my reader app is compliant with the pending intent Mar 18 18:23:16 is there a way to hook to activity notifications? I would like to receive onResume notifications in my library project. Mar 18 18:23:27 nseidm1: is that correct? Mar 18 18:23:29 it's just a rather big thing that stores access to the app/system stuff Mar 18 18:23:46 just put an additional intent filter on your launcher activity Mar 18 18:23:55 does anyone know how to open a web view during a test? I built a test activity that does it and then tried to launch that but i keep getting "Intent in process com.lookout resolved to different process com.lookout.tests" Mar 18 18:24:31 nseidm1: in the reader app, not in the writer app though? Mar 18 18:24:41 make it the same app!@ Mar 18 18:25:21 jsum: I had a similar problem.. Make sure all your names match in your manifest.xml. Mar 18 18:25:33 nseidm1: Do I have to? I'm creating an app that will read already set tags Mar 18 18:25:57 ur decision Mar 18 18:25:58 Bleeptech: I think they all do Mar 18 18:26:09 but what names should be matching? Mar 18 18:26:11 I am trying to get my brain around use of themes for various API targets... Suppose I want to theme android 2.1 and 2.2 as 'Light' but for Holo capable, I want Holo Light. Should the 'values' folder have the holo theme? or the legacy theme? and then should I specify values-v11 with holo theme? or should I have values-v7 folder with the older theme? Mar 18 18:26:24 nseidm1: So I can just set the intent filter for the reader app? :) Mar 18 18:26:37 why not Mar 18 18:26:52 Hi guys, during the process of building android, i tripped on a file named uimage_recovery, does anyone can telle me chat it is for ? Mar 18 18:27:07 what, not chat, sorry... :oooops: Mar 18 18:27:13 H3bus, chat it is for what it is not Mar 18 18:27:43 nseidm1: yes, sorry about that Mar 18 18:27:57 care to elaborate on how far you tripped? Mar 18 18:28:13 as in missing? Mar 18 18:29:26 nseidm1: not at all, I'm just looking for some info Mar 18 18:29:40 jsum: Issue I had was with the "package=" line.. i was combining 2 test apps and had to change a bunch of package statments. Mar 18 18:29:49 H3bus: it's the root filesystem for the recovery image Mar 18 18:29:49 as in what is it for ? does this integrates the kernel sort of ? Mar 18 18:30:52 allright, because I have built the source code from scratch for my device, and the file has to be present on my SD card to be able to install my ROM Mar 18 18:31:24 Bleeptech: ahhh ic, I'm trying to keep the test package separate from the actual app, so the package names needs to be the same. And i don't know if i can run the test activity while its running tests on the actual app activity Mar 18 18:31:29 H3bus: that makes no sense to me, but whatever. :) Mar 18 18:31:56 JesusFreke: Ok, thanks. Could it be possible that the Android kernel is inside this file ? Mar 18 18:31:59 hey nseidm1 Mar 18 18:32:07 doubtful Mar 18 18:32:24 nseidm1: i see your revisiting.. i guess you like it here :P Mar 18 18:32:28 hey folks Mar 18 18:32:29 JesusFreke: Allright, so where could it be ? Mar 18 18:33:01 anyone know where I could go to find out compatibility of cyanogenmod 10.1 with a specific device? (AT&T Note 2) Mar 18 18:33:05 H3bus: on second thought, that's not what I thought it was. Mar 18 18:33:09 yes, it's probably the kernel Mar 18 18:33:44 nseidm1: One more thing I just want to know exactly how the writing app works. So basically the way I get it is.. onResume is called when the activity is in the front, which calls writeModeOn() where enableForegroundDispatch is called whilst sending a pendingIntent to the ?thetagIthink?. This basically says it's listening out for an intent. When a tag is discovered, it receives an intent Mar 18 18:33:44 from the pendingIntent which starts up the Activity. Now we can write to the tag? Mar 18 18:33:46 JesusFreke: hey, did you used to have a Sharp Zaurus ages ago? Mar 18 18:33:47 Have I got it all wrong/ Mar 18 18:34:19 verxion: no Mar 18 18:34:38 JesusFreke: maybe it was back when the g1 was "the thing" that I saw you around Mar 18 18:34:44 JesusFreke: Allright thanks a lot man, very helpfull Mar 18 18:34:50 verxion: yes :) Mar 18 18:34:54 ahhh, ok Mar 18 18:34:55 :) Mar 18 18:35:02 I haven't been in the android scene since then Mar 18 18:35:03 :) Mar 18 18:35:08 exactomundo, after the nfc is hit the pending intent goes through the system and will find your filter defined in the manifest Mar 18 18:35:56 nseidm1: I see Mar 18 18:36:03 If anyone have sources on how the android recovery actually works, what verification are made during the installation of Android, and basically everything about that sorts of topic, i'd be glad to read it Mar 18 18:36:48 nseidm1: you should really add a notification/highlight to your irc client :P Mar 18 18:36:54 nseidm1: I think I understand, thanks :) I'll give it a shot! Mar 18 18:37:17 coco89, excellent because I don't really understand Mar 18 18:37:42 huh? lol Mar 18 18:43:15 H3bus: source.android.com Mar 18 18:43:24 H3bus: also, you might get better results in #android-root and #android-platofrm Mar 18 18:43:27 argh Mar 18 18:43:33 #android-platform Mar 18 18:43:44 Yesterday i battled with maven, eclipse and actionbarsherlock for 2 hours. I can't wait to see what the ADT team comes up with the gradle integration. Mar 18 18:43:52 It would also be nice to have real apklibs Mar 18 18:45:48 how do you define text color and shadow for a textview in a style? somehow, I don't grasp the difference between android:textAppearance="" and style="" Mar 18 18:47:47 style refers to a styles resource Mar 18 18:47:49 which has items Mar 18 18:47:51 I have a service which has a broadcast receiver and in my GCMIntentService I send a broadcast but I get some exceptions like this: Error receiving broadcast Intent ... has extras ... Mar 18 18:47:58 #ffffff Mar 18 18:48:30 mystiiq, welcome to the world of the logcat Mar 18 18:48:45 here kitty kitty Mar 18 18:49:10 nseidm1: yeah, but if I want to base a style on e.g. android:TextAppearance.Medium.Inverse, do I need to set its parent or set ?android:attr/textAppearanceMediumInvere within? Mar 18 18:50:02 Ge0rG , go take a peek at that style and see what it looks like Mar 18 18:50:41 in the source Mar 18 18:51:42 yeah, "read android source code" seems to be the default way of handling this Mar 18 18:52:47 Ge0rG, for example, what from android:TextAppearance.Medium.Inverse do you want to inherit, and what do you want different? Mar 18 18:53:16 When I run my app from eclipse it works, but if I click on the launcher icon it says "App isn't installed" (ics), how to fix/debug this? Mar 18 18:53:34 Ge0rG , color, size, bold/italic, there isn't much to inherit. Mar 18 18:57:19 also, am I the only one for whom Ctrl+F11 does not work when editing XML (as opposed to Java files) Mar 18 18:57:21 nevermind, something in the manifest file was wrong, I still don't know what and will never know but at least it works now Mar 18 18:57:49 nseidm1: there are several different notations for styles/attributes, and that is what confuses me Mar 18 18:58:47 hello, can anyone help me understand why this happens? http://i.imgur.com/vE2wm6X.png how can i force wrap the left layout? http://paste.ubuntu.com/5626056/ Mar 18 18:59:46 loin: you really should be using XML for the list item layouting Mar 18 19:00:03 yes Mar 18 19:00:19 i was also thinking the same thing Mar 18 19:00:32 but i want to get it rolling first Mar 18 19:00:41 then i can concentrate on rewriting it Mar 18 19:00:43 it's easier to do in xml :P Mar 18 19:01:06 basically, you want to set a non-0 weight on the "Few showers" textview, and also a width of 0 Mar 18 19:01:46 that way it will use all remaining screen space Mar 18 19:01:48 i want the temperature one to take priority Mar 18 19:01:53 to grow as much as it needs Mar 18 19:01:58 and the second one to wrap if necesary Mar 18 19:02:01 loin: that will happen automatically Mar 18 19:02:06 and i just told you how to do that Mar 18 19:03:27 the second one dissapeared Mar 18 19:03:34 the temperature view Mar 18 19:03:55 ok set its width to wrap_content Mar 18 19:04:54 now that view is gone Mar 18 19:05:00 you want every width to be wrap_content except the outer linearlayout (which should be match_parent), and the "Few Showers/Wind" one (which should be 0) Mar 18 19:05:20 and you want to specify a weight on the Few Shwoers textview, and no other views Mar 18 19:07:24 canadiancow, that seemed to work out very nicely Mar 18 19:07:25 thank you Mar 18 19:17:06 Ge0rG: regarding your textAppearance question. there is no real difference except that textAppearance is limited to the properties you can apply.. see TextView source. But this means you can apply both a style and textAppearance. You can also overrride the default theme textAppearance attributes and gain a better global control of how your font styles are used Mar 18 19:17:43 so I could also combine different styles with different textAppearances? Mar 18 19:20:21 If I add android:permission="android.permission.BIND_WALLPAPER" to my application and click the launcher activity it says "App isn't found", without it the app is found o_O Mar 18 19:20:23 Ge0rG: yes Mar 18 19:20:59 nifty Mar 18 19:21:46 Waynes: adding that says "only people with the BIND_WALLPAPER permission can launch my app" Mar 18 19:21:51 is that what you want? Mar 18 19:23:07 evanc: but why does it launch when I run it over eclipse? Mar 18 19:23:58 because you're launching it via an explicit intent to am Mar 18 19:24:07 launcher isn't the activity manager Mar 18 19:24:10 launcher is just another app Mar 18 19:24:27 adb shell am for more info Mar 18 19:24:47 Im trying to secure my app from lucky patcher, in this answer: http://stackoverflow.com/questions/13582869/does-lucky-patcher-resign-the-app-it-patches-and-does-google-api-validate-sha1 suggest that add the google lvl code in a jar and call from an assets directory, how to do it? Mar 18 19:24:51 ok, now I have to find out why it doesn't have permission Mar 18 19:26:22 WE TOLD YOU WHY. Mar 18 19:26:43 Waynes: The launcher doesn't/won't have the BIND_WALLPAPER permission. that is not in your control. What are you actually trying to do by preventing apps without that permission from launching your activity? Mar 18 19:26:50 lov: "but why??? whyyy???" Mar 18 19:27:06 whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy Mar 18 19:27:12 lol Mar 18 19:27:30 so how do I make it work? Mar 18 19:27:58 solve the problem? Mar 18 19:28:09 >_< Mar 18 19:28:10 how do I solve the problem? Mar 18 19:28:24 Waynes: see kevinb's comment Mar 18 19:28:29 the answer that comment Mar 18 19:28:32 then we'll tell you how to fix it Mar 18 19:28:36 ah wait, it's the other way round, now I got it :D Mar 18 19:28:39 whhyyy??! Mar 18 19:28:42 WHYYYYYYYYYYYYY Mar 18 19:28:43 HOWWWWWWWWWWWW Mar 18 19:28:44 * Bleeptech thinks IntelliJ might be a nice IDE if he could afford to throw a newer machine at it.. Mar 18 19:28:59 I thought android:permission would grant permission instead of denying it Mar 18 19:29:05 10 PRINT "HELLO" : GOTO 10 Mar 18 19:29:08 no, you want a different tag. Mar 18 19:29:14 monsti: I'd print a different phrase here, personally. Mar 18 19:29:20 it is decidedly angrier. Mar 18 19:29:38 why is a question of penetration ;) Mar 18 19:29:51 but without that permission "Set Wallpaper" just stopps and does nothing :/ Mar 18 19:29:58 * lov sighs Mar 18 19:30:17 http://developer.android.com/guide/topics/manifest/uses-permission-element.html Mar 18 19:30:22 did you, perhaps, want this tag? Mar 18 19:30:42 ah, no, you didn't. Mar 18 19:30:44 nevermind Mar 18 19:30:48 yeah, so Mar 18 19:30:53 Right, I already have that. Mar 18 19:31:02 you add that permission for the intent filter for your wallpaper Mar 18 19:31:07 not for your entire app Mar 18 19:31:42 http://developer.android.com/guide/topics/manifest/service-element.html#prmsn Mar 18 19:31:49 not the intent filter, the service tag rather Mar 18 19:31:59 * lov can't think straight today Mar 18 19:32:41 lov: well the weather is getting warmer and the skirts are getting shorter - i know what you mean! Mar 18 19:33:07 does anyone know how @Hide is implemented? Mar 18 19:33:12 I would like to use something similar in my code Mar 18 19:33:25 when an annotation and a compiler love each other very much... Mar 18 19:33:57 and eclipse is the observer! Mar 18 19:34:20 sleepster: I don't know where the annotation is implemented, sorry. Mar 18 19:34:28 :) Mar 18 19:34:29 hah Mar 18 19:34:31 np Mar 18 19:34:39 I am looking through the code that uses it Mar 18 19:34:47 and I don't even see it imported Mar 18 19:34:50 guys in one activity should not appear 2 surface views right? Mar 18 19:35:03 lov: if I add it globably eclipse underlines it with red and says "permission is only granted for system apps" and if I add it here eclipse says that it must be a direct child of the root manifest Mar 18 19:35:26 ah I see how they do it Mar 18 19:35:28 interesting Mar 18 19:35:32 it's actually a javadoc Mar 18 19:35:39 they must use some pre-processor Mar 18 19:35:41 to rip it out Mar 18 19:35:43 like perl Mar 18 19:35:46 python Mar 18 19:35:49 * lov sighs Mar 18 19:36:01 Waynes: I want you to look at the link I gave you Mar 18 19:36:03 sleepster: you are slowly moving towards flooding Mar 18 19:36:14 Waynes: then, scroll up to the top of the page, and see where that link is referenced Mar 18 19:36:19 karlsve: sorry, I'll put more than one work on a line Mar 18 19:36:21 hint: you don't add a tag as an inner tag. Mar 18 19:36:24 *word Mar 18 19:36:27 hint: it's an annotation Mar 18 19:36:34 lov: oops, sorry Mar 18 19:36:55 sleepster: so what exactly are you trying to do? Mar 18 19:37:28 karlsve: I have an interface with 5 or 6 methods.. and I would like to create 3-4 new interfaces that extend it but do not need 1-2 of the base interface Mar 18 19:37:41 so intead of creating one interface per method, and then just glue the new interfaces together Mar 18 19:37:55 it would be nice just to extend the bigger interface, and hide the methods I do not need Mar 18 19:38:16 make sense karlsve ? Mar 18 19:39:18 more or less but why? Mar 18 19:40:30 I'm trying to put a ViewPager inside a ViewPager. Mar 18 19:40:51 sorry, let me give you an example using a network interface. so I have one base interface that has: setSrcAddress, setDstAddress, setSrcPort, setDstAddress, setProtocol... then I have other interfaces that I went to extend from this that do not need all 5 methods.. for example, I have one interface that has setSrcAddress, setSrcPort... another one with setDstPort, setDstAddress Mar 18 19:40:53 I'm having trouble finding the right FragmentManager for the innermost ViewPager Mar 18 19:41:02 karlsve: different permutations of the base interface Mar 18 19:42:17 I was thinking that it would be nice just to have one base interface, and then have them all extend it, but hide the ones they are not implementing Mar 18 19:42:32 hope that made better sense Mar 18 19:42:39 sleepster: i got that yeah Mar 18 19:42:52 I was looking into design patterns for this Mar 18 19:42:54 wow my internet just got even slower although i didnt think that would be possible -.- Mar 18 19:43:06 hah Mar 18 19:43:20 android is using @hide as a way of hiding documentation and SDK access for methods that are not officially part of the Android API. you're looking to make interfaces extend other interfaces without actually extending them. that's not how java works. Mar 18 19:43:39 kevinb: I see. yeah that's what I though :( Mar 18 19:43:58 kevinb: so when I try to use a method though that is "hidden", it actually is hidden though Mar 18 19:44:03 so it seems more than just documentation Mar 18 19:44:15 kevinb: oh wait.. you said that Mar 18 19:44:18 wooooot.... Ping statistics for google.de Mar 18 19:44:18 Packets: Sent = 4, Received = 1, Lost = 3 (75% loss), Mar 18 19:44:39 kevinb: sorry :) hmm. so I would like to do the same thing though. these interfaces are part of my sdk Mar 18 19:44:54 guys, i have design question. But i see there's only two nick in #android-design. May i ask here? Mar 18 19:45:20 xqdzn: ask in there Mar 18 19:45:24 I guess it's impossible to have the innermost Fragment both a Fragment and a FragmentActivity, as it seems to be needed that the parent of each ViewPager should be a FragmentActivity, correct? Mar 18 19:46:03 StingRay_ : Well, okay.. Mar 18 19:46:15 sleepster: then your SDK would be inconsistent. if i had a ExtendedInterface and I cast it do a BaseInterface, which is completely legal and part of the advantage of using subclasses and interfaces, then i'd have access to those methods you are trying to hide Mar 18 19:46:16 I can't find any good resources on how to create a simple non-interactive slideshow/carousel in android. Mar 18 19:46:43 xqdzn: your not even in there Mar 18 19:47:06 kevinb: hmm good point Mar 18 19:47:15 kevinb: is there a popular design pattern for this? Mar 18 19:47:36 kevinb: I guess I could just create one new interface for each different permutation Mar 18 19:47:52 what is #android-design? Mar 18 19:48:02 sleepster: yeah, i think multiple interfaces. maybe you still have a base but it's very basic and then extend in one direction and extend in another, and in some cases implement multiple interfaces Mar 18 19:48:05 * g00s joins to find out Mar 18 19:48:19 k thanks kevinb Mar 18 19:48:24 I'll give it a shot Mar 18 19:49:25 has anyone tried this? an app in /system has some system permissions. You update this app (so an old version in /system, new version in /data), will the new version maintain the system permissions? I'd suspect yes, but interested to know if anybody has experience :) Mar 18 19:50:04 I strongly suspect yes Mar 18 19:50:08 Chainfire: yes, as long as the new version still requests the permission the old version being on /system is enough to get a system only permission Mar 18 19:50:11 Chainfire: yes. Mar 18 19:50:18 due to the whole fiasco of samsung preloading an app which didn't actually have the packagename reserved for it on play Mar 18 19:50:25 * Bleeptech is momentarily blinded when the WW-II surplus arc-light goes on in his thought balloon. Mar 18 19:51:01 you could enclose those thought bubbles with light filtering materials, for your own safety Mar 18 19:51:20 Wow.. After runing back and forth between Eclipse and IntelliJ some of this is actually starting to make sense.. Mar 18 19:51:30 lov> no matching signature required ? Mar 18 19:52:09 i hadn't heard of the fiasco but i'm betting it was unsigned Mar 18 19:52:29 Chainfire: As in SuperSU? Mar 18 19:52:32 in the same corner, is changing ro.build.fingerprint on a Nexus enough to disable system updates? or is there some other prop that needs changing ? Mar 18 19:52:48 Srsly lov? Wow Mar 18 19:52:49 Chainfire: best way to observe this is on a custom rom updating the supersu ;) Mar 18 19:52:50 Bleeptech no Mar 18 19:53:07 or the google market / play store Mar 18 19:53:18 Chainfire: Damn.. Was gonna say "Nice app man!".. LOL Mar 18 19:53:44 Bleeptech yes I am that same person, but no this is not about that. Thx :) back on-topic Mar 18 20:00:47 Anybody here using IntelliJ 11.1? Mar 18 20:01:24 intelliJ++ Mar 18 20:02:03 capella: Is there a font size control? Mar 18 20:02:33 hmm i should dig into fragments Mar 18 20:02:40 capella: Like for the whole thing? or at least the editor.. Mar 18 20:03:21 Chainfire: you switched to intelliJ ? Mar 18 20:03:22 Settings -> IDE Settings -> Editor -> Colors and Fonts - > Font ? Mar 18 20:03:54 StingRay_ not as of yet Mar 18 20:04:08 capella: That would be great if I had SETTINGS.. :) Mar 18 20:04:30 funny thing that, in trying to find what everybody said was so great about IDEA, I've found a lot of counter-arguments teaching me new tricks to improve Eclipse :) Mar 18 20:05:03 chainfire: thanks for http://su.chainfire.eu/ ! Learned a lot! Mar 18 20:05:45 bleeptech: File -> Settings no work? Mar 18 20:07:11 capella: Aha! Thank you.. That's where I was missing it.. I was hunting through View and Window Mar 18 20:07:30 mmm hmm ... ok Mar 18 20:07:38 lov: did you ever get Waynes to tell you what he's actually trying to do? Mar 18 20:08:17 evanc: yeah, he was trying to make a wallpaper, so he needed to set the BIND_WALLPAPER permission for his service tag. Mar 18 20:08:24 ah yeah Mar 18 20:08:33 however, he didn't quite get that tags could have permissions, so he flailed until I strongly hinted how to solve it Mar 18 20:08:40 gmail update :) Mar 18 20:08:41 o/ Mar 18 20:08:44 \o/ Mar 18 20:09:04 \o Mar 18 20:09:16 \m/, Mar 18 20:09:25 /o\ Mar 18 20:09:26 Chainfire: indeed, many arguments go along the lines of "intellij is great because eclipse sux" Mar 18 20:09:33 o|o Mar 18 20:09:53 --o-- Mar 18 20:09:57 g00s: which is why I haven't tried intellij (I don't really have a problem with eclipse) Mar 18 20:11:16 lov: actually I still failed after you strongly hinted that and I just copy&pasted some stuff from stackoverflow :P Mar 18 20:11:56 * Bleeptech is suddenly very scared.. Mar 18 20:12:19 I cranked the font size up and I can read the code I've butchered.. LOL Mar 18 20:12:38 I'm addicted to Pixel Dungeon :( Mar 18 20:12:48 :( Mar 18 20:13:00 tnzr, is that where they lock up chromebooks? Mar 18 20:13:05 haha Mar 18 20:14:01 I´m writing my domain model to a file in the internal storage every 5 seconds. Is this a bad idea/ Mar 18 20:14:02 ? Mar 18 20:14:11 In a separate thread from the UI, ofcourse Mar 18 20:14:16 is there a reason you have to write it every 5 seconds? Mar 18 20:14:26 auto save my game :) Mar 18 20:15:17 why not just auto-save in onPause or something? Mar 18 20:15:21 well, do what you have to do I guess. Mar 18 20:15:22 yeah Mar 18 20:15:29 I´m not sure if this strains the device resources a lot, or the battery Mar 18 20:15:36 probably both Mar 18 20:15:45 Sounds expensive Mar 18 20:16:05 Well, onPause seems not to work in all cases, so sometimes I would start a game, close the game, and the progress is not saved Mar 18 20:16:23 that sounds like a bug in your code Mar 18 20:16:30 maybe Mar 18 20:16:41 is onPause guaranteed to be called? Mar 18 20:16:49 yes Mar 18 20:16:55 canadiancow: only new notifications in the update? Mar 18 20:16:57 well define "guaranteed" Mar 18 20:17:01 if you pull the battery, no Mar 18 20:17:04 birbeck, and faster search Mar 18 20:17:05 Unless you crash Mar 18 20:17:06 and bug fix galore Mar 18 20:17:11 yeah, not included that :P Mar 18 20:17:12 cool Mar 18 20:17:12 or drop it in a water pool Mar 18 20:17:27 canadiancow: did you see Paul Burke's mock? Mar 18 20:17:32 huh? Mar 18 20:17:34 well then, I´ll see if I wrote a bug somewhere Mar 18 20:17:37 thanks Mar 18 20:17:47 hes mocking a new gmail design Mar 18 20:18:08 looks pretty, but from his blurred out teaser pic, it looses some functionality Mar 18 20:20:25 link me Mar 18 20:20:33 see pm Mar 18 20:20:41 oh. yeah. thanks Mar 18 20:23:30 evanc: what version of eclipse are you using? i'm still using 3.8.2 and its fine Mar 18 20:23:47 eventually i guess its time for me to check out 4.2.x Mar 18 20:23:49 g00s: 3.8.something on one machine and 4.2.something on another? I think? Mar 18 20:23:56 k, thx Mar 18 20:24:01 I don't know, I've been using eclipse for years and never really had a problem Mar 18 20:24:07 intelliJ 12.0.4 Mar 18 20:25:07 i wonder if my good experience with eclipse has partially come from the fact that i only get the platform runtime (the smallest download) and just add the ADT. that will bring in the JDT, but its very slim install Mar 18 20:26:36 where do you even find the platform runtime? the smallest package i can ever get is eclipse for java developers Mar 18 20:28:09 just use ADT Mar 18 20:28:12 birbeck: about 1/2 way down http://download.eclipse.org/eclipse/downloads/drops/R-3.8.2-201301310800/ Mar 18 20:28:12 and buy a better machine Mar 18 20:28:14 problem solved Mar 18 20:29:01 thats 3.8.2 of course, maybe you want 4.2.x instead Mar 18 20:29:50 i dont use eclipse all that often Mar 18 20:30:34 mikedg: You want to send me a fat stack of cash so I can buy a better machine too? Mar 18 20:31:28 dont need a fat stack of cash Mar 18 20:31:42 only if you want a glowing apple logo Mar 18 20:32:17 Yeah I do.. got to pay the power bill for the slow toad I've been heating this room with doing dev.. LOL Mar 18 20:34:13 slow toad would make a great hooker name Mar 18 20:38:30 mikedg: It was a machine name here last year.. slow-toad, boat-anchor, doorstop.. I name then according to their abilities and usefulness Mar 18 20:39:14 sounds like hooker naming conventions to me Mar 18 20:41:08 well in some ways they are similar Mar 18 20:41:24 I dunno man.. I don't mess with the local hooker.. I don't want to catch anything or get beaten with a sack of quarters.. :) Mar 18 20:41:26 you name hookers after their abilities and usefullness too Mar 18 20:41:55 Bleeptech: when I worked for an edu we had a student name the antivirus db server 'coathanger'. When asked why, "because it gets rid of problems." ... We had to make him change the name. Mar 18 20:42:38 dragorn: i actually like the idea :D Mar 18 20:43:18 dragorn: Ouch!.. ROFL.. Mar 18 20:43:20 karlsve: I would have let him keep it but i was overruled ;P Mar 18 20:43:32 cupholder Mar 18 20:43:33 ^^ Mar 18 20:43:34 Then again I named one of my servers 'nailbunny'. Someone finally figured out what comic it was from and freaked out Mar 18 20:45:35 so, I'm trying to build an app using the sdk... it keeps saying "Error: The project either has no target set or the target is invalid." and i'm not quite sure how to fix that. Mar 18 20:45:58 which SDK? Mar 18 20:46:09 4.2.2. I'm following https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project Mar 18 20:46:13 are you using eclipse? Mar 18 20:46:15 aha Mar 18 20:46:19 yeah Mar 18 20:46:25 look at the project.properties file Mar 18 20:46:27 dragorn: O.K.. Mar 18 20:46:35 does it reference something sane? Mar 18 20:46:46 target=android-17 ? Mar 18 20:46:48 ok Mar 18 20:46:58 hmm. Mar 18 20:47:04 do you have api level 17 installed on your sdk? Mar 18 20:47:10 * Pilif12p looks Mar 18 20:47:15 * Bleeptech wonders... Is it just me? Or do all programmers have a warped and twisted sense of humor?.. Mar 18 20:47:19 also, is that the same SDK that you're using to build? Mar 18 20:47:24 Bleeptech: no, it's pretty common. Mar 18 20:47:47 yeah, API17 Mar 18 20:48:25 d'oh, maybe because they're not installed. Mar 18 20:48:31 Pilif12p: hmm. can you pastebin your local.properties file, your project.properties file, and the command line Mar 18 20:48:34 oh ok :> Mar 18 20:48:47 swore i installed them lastnight, but i guess this is what happens when you try to make your first app at 2AM Mar 18 20:49:44 totally cromulent Mar 18 20:49:57 is this just for your build server, or your development? Mar 18 20:50:01 if it's the latter, https://developer.android.com/tools/index.html Mar 18 20:50:05 and Mar 18 20:50:05 https://developer.android.com/training/index.html Mar 18 20:50:15 also, https://developer.android.com/tools/projects/index.html Mar 18 20:50:21 and https://developer.android.com/tools/building/index.html Mar 18 20:52:40 i'm going to *try* to set up either Jenkins or Tavis to build and package, mostly to see what they can do. in the end, i'll probably just end up compiling it with eclipse and putting the apk on github Mar 18 20:53:10 oh, uh, use jenkins. Mar 18 20:53:17 ESPECIALLY if you work on a team Mar 18 20:53:24 having a continuous integration and build server is a godsend Mar 18 20:54:37 Why does IntelliJ require the Java JDK when Eclipse does not? :P Mar 18 20:54:59 on your app's page in the play store, is the 'UPDATED' field when you last updated the apk, or when any metadata was updated like project description ? Mar 18 20:55:03 Eclipse actually comes with a JDK built-in :< Mar 18 20:55:06 (iirc) Mar 18 20:55:25 it's mostly just for me to play around with, this app is just a webabb for Firefox OS wrapped in PhoneGap Mar 18 20:56:14 g00s: its the last time you clicked 'Publish' afaik Mar 18 20:56:28 you can change description and assets, etc and it will not change the last updated date Mar 18 20:57:11 birbeck: it just did that - thats why i ask - seems like the behavior has changed Mar 18 20:57:26 it changed the last updated date? Mar 18 20:57:41 i just updated the description and the 'UPDATED' thing changed. yeah, new console interface Mar 18 20:57:53 yeah, i've seen the last updated date change just because of description changes Mar 18 20:58:03 i wonder then if users get notified of an update Mar 18 20:58:04 and i think it's actually changed just by uploading a draft APK but i'm not 100% sure on that Mar 18 20:58:14 birbeck: they don't Mar 18 20:58:37 phew Mar 18 20:58:57 because when i change anything in 'Store Listing' the button on top changes to 'Save and Publish' Mar 18 20:59:16 it used to just be save Mar 18 20:59:42 i always worry when uploading drafts now that i'll accidentally release a beta Mar 18 20:59:56 but i need to upload the drafts for LVL to work for beta testers Mar 18 21:00:03 you upload betas as drafts? Mar 18 21:00:22 there should also be a cancel button next to Save and Publish Mar 18 21:00:31 oh, yeah, lvl and gcm Mar 18 21:04:26 AsyncTask's callbacks run on the *main* thread, right? not necessarily the thread that called .execute()? Mar 18 21:04:47 wrong Mar 18 21:04:52 er Mar 18 21:04:53 rawr Mar 18 21:05:00 it runs on the thread that the classloader ran on that initialized AsyncTask Mar 18 21:05:07 wait, really? Mar 18 21:05:10 yes Mar 18 21:05:19 canadiancow: has it always been that way? Mar 18 21:05:20 the onPostExecute won't pop onto the UI thread by default? Mar 18 21:05:22 huh. Mar 18 21:05:24 yes Mar 18 21:05:57 ok Mar 18 21:05:57 hm Mar 18 21:06:09 there are static fields in AsyncTask that control this Mar 18 21:06:17 so wherever those are initialized is where your callbacks will happen Mar 18 21:06:41 i am reminded of a lesson i learned a long time ago... "Threading is hard. Period. Trying to make it easy, only makes it harder." Mar 18 21:06:47 canadian cow is correct Mar 18 21:06:53 this is why we need API jeopardy Mar 18 21:06:58 actually the docs are wrong Mar 18 21:07:02 lol Mar 18 21:07:04 I'll take fragments for $200, mike. Mar 18 21:07:08 "whose result is published on the UI thread" Mar 18 21:07:10 lov++ Mar 18 21:07:13 actually Mar 18 21:07:17 I'll take iamricher for $200 Mar 18 21:07:34 lololol Mar 18 21:07:47 I was interviewed by CNET bitches Mar 18 21:07:58 I'm not sure whether you should be proud of that. Mar 18 21:08:00 Iirc ui thread is guaranteed on ICS or jb Mar 18 21:08:56 Older platforms, not so much Mar 18 21:08:59 really? Mar 18 21:09:11 Yeah, pretty sure Mar 18 21:09:13 and by that i mean "really it was 'fixed'" Mar 18 21:11:06 sigh Mar 18 21:11:51 i am beginning to feel like i am facebook... pursuing hackery to an absurd level in order to get my current direction to work, when what i probably need to do is just step back and re-evaluate the goal Mar 18 21:12:05 you're right SimonVT Mar 18 21:13:22 \o/ Mar 18 21:17:13 SimonVT: i'm looking at the latest source.. how does it guarantee that? Mar 18 21:17:45 hey, when creating a custom view, what's the purpose of onMeasure() ? Mar 18 21:17:51 No idea :p canadiancow? Mar 18 21:18:02 To measure your view Mar 18 21:18:28 so that's the place i get the size of my view? height and width? Mar 18 21:18:48 viran: http://developer.android.com/reference/android/view/View.html Mar 18 21:18:55 the "layout" section, at the top Mar 18 21:19:15 If an explicit size has been set. If it's wrap_content, that's where you tell it the size Mar 18 21:21:13 ok, so its for telling the system the size the view needs? Mar 18 21:21:26 it looks like AsyncTask sets up a final Handler, that uses Handler's default-looper constructor, which just uses Looper.myLooper() Mar 18 21:21:47 so unless something guarantees that AsyncTask is loaded on the main thread, it's still gonna use whatever thread loaded it as the callback thread Mar 18 21:22:24 SimonVT: does ABS have the ActionMode stuff? Mar 18 21:23:19 i'm trying to figure out, if my Froyo/GB versions still need the old context menus Mar 18 21:23:54 Yes Mar 18 21:25:29 maybe i should just write a simple android 4 app and get familiar with the newer things, and then worry about what can be backported Mar 18 21:25:38 all my stuff is android 2 still :) Mar 18 21:26:12 well, plus support lib Mar 18 21:28:08 so, when creating a custom view. at which point the view has it's size? i need to do my initializations for onDraw() and im not sure when can i do that Mar 18 21:28:40 viran: onMeasure() Mar 18 21:28:44 is there any service that lets me communicate with other project members.. say i work with a designer and every now and then he updates designs, i'd like to easily see them in a project setting.. if that makes sense Mar 18 21:29:29 tophyr: if you want to guarantee that, just instanciate a dummy AsyncTask in the onCreate of subclassed Application class Mar 18 21:30:58 bubbleguuum: that was the idea i had.. testing it out now to see if it solves the prob i'm facing Mar 18 21:31:13 what is your problem ? Mar 18 21:31:32 deadlocks in an overly-complicated system :p Mar 18 21:36:45 SimonVT, i dont know, but i wrote a program that should have crashed and it didnt Mar 18 21:37:44 congratulations Mar 18 21:38:37 xorgate: you mean pretty much every source control system ever? Mar 18 21:39:09 evanc well something a bit more like Wave maybe Mar 18 21:39:33 gmail? Mar 18 21:39:41 wave is open source isnt it? Mar 18 21:40:59 guys, in order to be able to access the camera from a webserver(broadcasting the camera over the internet or local network) and in same time using camera preview in activity i need to create a service? and class Camera itself is a service listener to the hardware, should i repeat that? Mar 18 21:41:27 i didn't realize Wave still existed Mar 18 21:41:39 apache wave now Mar 18 21:42:00 in my group we use source control, or Box Mar 18 21:42:06 anyway i'm looking for something less formal than regular version control Mar 18 21:42:16 although tbh, nobody i know except PMs and designers pay attention to Box Mar 18 21:42:29 as far as i'm concerned if it's not in git it doesn't exist Mar 18 21:43:09 but Box, Dropbox, Drive et al all have decent history tracking if that's what you mean by "project setting" Mar 18 21:45:41 guys anyone with any idea regarding the camera service? Mar 18 21:46:32 canadiancow: you told SimonVT he was correct about AsyncTask's callbacks being guaranteed to run on the UI thread on ICS+ - how did you verify that? i've confirmed that the problem i'm seeing is due to AsyncTask trying to run its callbacks on an IntentService thread i've got, which is itself waiting on the AsyncTask Mar 18 21:46:32 tophyr: Box rules? Mar 18 21:46:44 and i've seen similar behavior on an S3 Mar 18 21:47:11 rendar: .. is that a statement or a question? Mar 18 21:47:55 tophyr: question Mar 18 21:47:55 :) Mar 18 21:48:14 AsyncTask runs in whatever thread the first Asynctask class was loaded Mar 18 21:50:27 bubbleguuum: that's what i'm seeing.. but up above SimonVT noted that on ICS+ it should be guaranteed to run on the main thread, and canadiancow later said he was right. just wondering how that was checked, because looking at the code the parts that set up the Handler doesn't go any differently Mar 18 21:50:54 tophyr: as you say the cdoe speak for itself Mar 18 21:50:59 doing the Application fix you mentioned for the time being Mar 18 21:51:09 I know that fix works, i use it Mar 18 21:51:59 theorically Asynctask are not supposed to instanciated in something else than the UI thread, although if you know what you are doing, you can Mar 18 21:53:39 given the depths i've had to dive to in order to get through the stuff i'm working on i probably would qualify as knowing what i'm doing... but then again given the fact that i'm doing what i'm doing at all, may make that debatable, lmao Mar 18 21:54:38 beware that if you instantiate AsyncTask in another thread than the UI thread, onPreExecute will be executed in the other thread Mar 18 21:55:26 Does anyone here know a lot about getWidth and getMeasuredWidth? Mar 18 21:56:03 tophyr: Just remember.. All new projects are 10% Inspiration, 30% Perspiration and 60% Fornication Because something will F-Up sooner or later.. Mar 18 21:56:11 bubbleguuum: i did see that, thanks. not using onPreExecute so not really a concern tho Mar 18 21:56:20 Bleeptech: lol Mar 18 21:57:05 Bleeptech: well that's because i prefere software projects and i hate hardware projects ;) Mar 18 21:58:10 getMeasuredWidth doens't return the correct width if in my onCreate even though I tried using measure.... but if I place getWidth after the view is drawn it will return everything perfectly. How come this is the case? the value getMeasuredWidth is greater than my device's width Also is there any way to force draw the view in the onCreate?Should I just make a constructor instead of using onWindowFocusChanged since the view will Mar 18 21:58:26 Hi, question about ndk: when I ran in a shell "android list target" the "android-9" is missing, but "android-10" is present, but in my $NDK_ROOT/platforms it is android-10 which is missing while android-9 is available Mar 18 21:58:26 * Bleeptech has found that applies to ANYTHING more complicated than fire.. Mar 18 21:58:40 IntelliJ IDEA made some files gray (to be deleted) after refactoring (swaping the names of two files) and my Android app has some troubles with resources. How can I fix it? Mar 18 22:01:34 3+++++ Mar 18 22:01:40 so um, when are we going to be able to comment on reviews? i just noticed a pattern of unusual buying activity for may app (rapid purchase, cancellations) that I've never seen before. i'm anticipating the worst Mar 18 22:01:52 Ooops.. Cat. Mar 18 22:02:19 also, android sdk manager is missing API-9, goes from 8 to 10 Mar 18 22:02:44 g00s: I thought that got launched recently? http://www.slashgear.com/google-play-store-update-allows-developers-to-reply-to-all-review-10264791/ Mar 18 22:03:06 Hey guys, I'm trying to add a pinch zoom functionality to my gridview. I now looked at some examples and managed to add zooming to a custom view class that draws a single picture, but how can I apply that to my actual activity view (the respective xml file so to say)? do I have to draw that whole thing somehow in a custom class? Mar 18 22:03:23 g00s: I was given the ability to comment on reviews a few days ago, without asking for anything Mar 18 22:04:33 ray122: there is a sample in the GDC2012 source cide Mar 18 22:04:52 -i+o Mar 18 22:05:09 evanc, bubbleguuum ah ok, thanks - when i read the new console was out of beta, there was some confusion about this. but how? i dont see anything in the console under 'Ratings & Reviews' Mar 18 22:06:02 tophyr, from asynctask docs: The AsyncTask class must be loaded on the UI thread. This is done automatically as of JELLY_BEAN. Mar 18 22:06:26 g00s: I think they are gradually granting access to commenting Mar 18 22:07:02 g00s: I have no idea; I don't see anything either Mar 18 22:08:01 SimonVT: there's a (super gross) hack to make sure that happens - do a Class.forName("android.os.AsyncTask") in your Application#onCreate() to make it load the class on the main thread Mar 18 22:08:45 Yah, think he's doing that now Mar 18 22:09:13 super annoying Mar 18 22:09:20 (that you have to do that) Mar 18 22:09:32 evanc: this might not be sufficient on all version of Android. I had to use: new AsyncTask() { protected Void doInBackground(Void... params) { return null; } }; Mar 18 22:10:32 * g00s just uses HandlerThread ;) Mar 18 22:12:29 monsti: hm kinda stuck? where to get the source from? Mar 18 22:16:16 i did what bubbleguuum posted in order to load it Mar 18 22:16:36 hmm. screen lock and orientation change result in destoryed and recreated activity, yes? Mar 18 22:17:18 java spec indicates that the class gets loaded when a static method is called, a static var is set, a non-const static var is accessed, or an instance is created. first three aren't available for AsyncTask so i just made a dummy subclass. Mar 18 22:17:23 bubbleguuum: yeah, that would work, but so would the Class.forName hack Mar 18 22:17:55 I think referencing AsyncTask in any way would work. You could probably just do a Class foo = AsyncTask.class; and that'd be sufficent Mar 18 22:17:59 what happens if i have a switch and case and nothing is true Mar 18 22:18:09 Class.forName hack didn't work when I tried it some time ago, I think on 2.x Mar 18 22:18:11 will it return an error? Mar 18 22:18:16 agy2154: nothing will happen unless you have a default Mar 18 22:18:30 bubbleguuum: hmm; it worked for me but I tried it on 4.x Mar 18 22:18:30 speakingcode-wor: that's cool thanks! Mar 18 22:18:45 bubbleguuum: I'll make a test app later today and see what happens Mar 18 22:20:46 guys, i've been using viewstub as button container and inflate whenever list is clicked. But someone told me that i shouldn't use viewstub for that purpose. What should i use then? i mean, for making dropdown menu like twitter for android timeline. Mar 18 22:20:50 tophyr, all i did was a very simple asynctask test, and it worked Mar 18 22:20:58 you should verify it if you're concerned Mar 18 22:21:01 ah, ok Mar 18 22:21:29 i think i've got it fixed Mar 18 22:22:24 not sure there are many things i <3 more than having complete source access to the APIs heh Mar 18 22:33:47 What's a good way to finish() an Activity from a Service? Mar 18 22:34:05 Also, there might be multiple instances of that Activity, so I need to find the right one :) Mar 18 22:34:20 The Service is also starting the Activity Mar 18 22:34:34 Quacked, use an event bus to the base activity Mar 18 22:35:05 Quacked: app-local BroadcastReceiver or bind to your service Mar 18 22:35:37 uhm Mar 18 22:35:41 Quacked, or even an observer observable pattern, fun fun fun Mar 18 22:35:57 for a read NFC tag app, does it need an NfcUtils class? It can't seem to find it? Mar 18 22:36:40 no Mar 18 22:37:00 evanc: hm? Mar 18 22:37:47 evanc: so send a broadcast and have the activity finish() when received you mean? Mar 18 22:38:08 Quacked: yeah, and have the activity register/unregister a receiver in onResume/onPause Mar 18 22:38:37 Quacked, can get messy if you don't have a base activity so that's a big recommendation Mar 18 22:38:39 why do you need to finish an activity from the service? Mar 18 22:38:40 coco89: no, you don't need an NfcUtils. The example it sounds like you've copy-pasted might need one, though Mar 18 22:39:03 evanc: I can't seem to find an example of a read only NFC app that doesn't use it sir Mar 18 22:39:22 wait, I don't need this.. I can just finish the activity onPause I guess Mar 18 22:39:45 tophyr: the idea was to finish the Activity (popup) when alarm sound was complete Mar 18 22:39:47 coco89: I don't know what you're looking at, but there's no such NfcUtils in AOSP Mar 18 22:40:46 evanc: oh.. how do I do it without it hmm Mar 18 22:41:00 evanc: i'm looking at this http://www.jessechen.net/blog/how-to-nfc-on-the-android-platform/ the read tag part Mar 18 22:41:08 and also this http://www.tappednfc.com/wp-content/uploads/TAPPED-NFCDeveloperGuide-Part2.pdf Mar 18 22:41:59 coco89, use http://developer.android.com/guide/topics/connectivity/nfc/nfc.html scroll to the bottom Mar 18 22:42:17 coco89: it says right there that: NfcUtils is my handy utility class for all things NFC. Mar 18 22:42:37 I see, damn Mar 18 22:42:48 What should i do lol Mar 18 22:43:01 hmmm that was easy: https://www.google.com/#hl=en&output=search&sclient=psy-ab&q=NfcUtils Mar 18 22:43:04 you should ask irc what to do Mar 18 22:43:07 oh, wait. done! Mar 18 22:43:16 lolol Mar 18 22:43:18 JesusFreke: what should I do to ask irc what to do? Mar 18 22:43:32 evanc: have you tried asking irc? Mar 18 22:43:41 let me irc that for you Mar 18 22:44:00 heuhuehue Mar 18 22:44:17 fascinating Mar 18 22:44:43 if they're using a class then surely it's because without the methods in those classes it would be pretty complicated ? Mar 18 22:45:53 coco89: generally, any class with "Util" in the name does that Mar 18 22:46:07 meh.. cant do it onPause.. it breaks the disableKeyguard Mar 18 22:46:47 evanc: does what Mar 18 22:48:17 evanc, I dont think I can unregister the receiver onPause, because I need to finish() the Activity even if it's not in focus Mar 18 22:48:58 thats the issue, I have a popup when my alarm sounds, but if the user hits home button, it will show the next time the main app is opened Mar 18 22:49:12 main Activity* Mar 18 22:50:13 Quacked: er, it sounds like you're solving this problem in the worst possible way Mar 18 22:50:25 very possible Mar 18 22:50:27 Quacked: your popup should be in its own task stack Mar 18 22:51:30 atm its PARENT_ACTIVITY is my main activity Mar 18 22:51:45 hmm Mar 18 22:52:21 I have no idea how your app is structured, but you shouldn't be calling finish() on an activity that's not in the foreground Mar 18 22:52:37 ok Mar 18 22:52:59 evanc: can you even do that ? Mar 18 22:53:02 Quacked: are you looking for android:noHistory="true" on your dialog Mar 18 22:53:08 StingRay_: I have no idea, but you definitely shouldn't Mar 18 22:53:24 well it's paused, so there is nothing there really ? Mar 18 22:53:27 Quacked: read through these and see if any of them do what you want: http://developer.android.com/guide/topics/manifest/activity-element.html Mar 18 22:53:38 * StingRay_ runs off to try Mar 18 22:53:38 im pretty sure its legal Mar 18 22:54:08 but as evanc says, taking it out of the back stack is better Mar 18 22:54:58 android:noHistory="true" kinda does what I want I guess Mar 18 22:54:59 StingRay_: @Override onPause() { new Handler().postDelayed(new Runnable() { run() { finish(); }}, 1000); super.onPause(); } Mar 18 22:54:59 i have no idea why he wants to do this though. remove the activity that started a dialog? seems messed up Mar 18 22:55:04 Hi. Im getting namespace errors on lines 18-20 of my file here. Can anyone tell me the problem??? Mar 18 22:55:08 http://pastebin.com/WvJ2Uq8M Mar 18 22:55:17 birbeck: I think his dialog is just a dialog-themed activity Mar 18 22:55:26 evanc: it is Mar 18 22:55:34 Sorry I didn't mention that Mar 18 22:55:47 a dialog themed activity still does not take the entire foreground Mar 18 22:56:05 the activity that called startActivity() is still visible Mar 18 22:56:20 I have a Service calling startActivity Mar 18 22:56:21 birbeck: yeah but that still-visible activity isn't in the foreground Mar 18 22:56:35 "foreground" doesn't mean "visible" -- it means "top" Mar 18 22:56:59 sorry, i just came into this, im not clear what the intent is, just sounds odd Mar 18 22:57:04 :) Mar 18 22:57:44 a service calls startActivity... from a BroadcastReceiver? cause now it sounds even worse Mar 18 22:58:49 I use AlarmManager to start a BroadcastReceiver that starts a Service that starts an Activity themed as an alertdialog :) Mar 18 22:59:34 jesus Mar 18 22:59:48 I cant even follow that sentence let alone the flow of it Mar 18 22:59:51 respect Mar 18 22:59:54 :D Mar 18 23:00:53 Quacked, I have an app that starts another app, to launch a service in the first app to start the launcher activity Mar 18 23:01:22 Quacked: whats the boardcastRec and service do in all that ? Mar 18 23:02:06 well whats the service do is my main question Mar 18 23:02:19 StingRay_: broadcastRec really just gets a wakelock, startsService and releases wakelock. I did this because someone here told me it was wise to do it like this to be sure it woke the device properly Mar 18 23:02:28 ahhhhhh, wakelock Mar 18 23:02:30 the Service plays an alarm sound for a given period Mar 18 23:02:46 ears bleeding Mar 18 23:03:04 StingRay_: and does a bunch of stuff when alarm sound stops Mar 18 23:04:15 StingRay_: such as stopping sound itself when timer period is over, killing the timer, killing a notification service and reenabling keyguard Mar 18 23:04:27 Hi. Im getting namespace errors on lines 18-20 of my file here. Can anyone tell me the problem? http://pastebin.com/WvJ2Uq8M Mar 18 23:05:10 StingRay_: I'm not confident that the broadcastreceiver step with wakelock is really necessary though.. but I did it anyways Mar 18 23:05:41 it's really just: mWakeLock.aquire(); context.startService(playIntent); mWakeLock.release(); Mar 18 23:05:45 mmm, unnecessarily creating wakelocks Mar 18 23:06:04 birbeck: cant be that bad for a few seconds, can it? :) Mar 18 23:06:09 the broadcast will wake the phone Mar 18 23:06:32 nseidm1: will a service? Mar 18 23:06:49 Hi, is it possible to launch an app from an intent and then leave it "bakcgrounded" and go back to the previous intent (better still, not show the new intent at all?) I want to launch Spotify to play music, but just display the time and scrolling text with currently playing track (tablet is to work like an info screen - just for personal use) Mar 18 23:06:52 no Mar 18 23:07:04 nseidm1: aha, so thats why I'm using a broadcastreceiver :D Mar 18 23:07:05 *backgrounded Mar 18 23:07:35 then theres probably no need for the wakelock at all Mar 18 23:07:47 correct Mar 18 23:08:05 as long as it manages to start the service before it dies :P Mar 18 23:09:10 dies? Mar 18 23:09:48 uhm, as long as it manages to start the service before device goes back to sleep Mar 18 23:10:04 the service will start (period) Mar 18 23:10:07 :D Mar 18 23:10:12 good stuff Mar 18 23:10:16 Hey guys, I have a question: When it comes to getting pre-production crash reporting/app information, what service do you use (preferably a free one)? Thanks in advance! Mar 18 23:10:31 ive used lycra Mar 18 23:10:50 Lycra? Mar 18 23:10:50 i dont know if the new testflight for android supports crash reports Mar 18 23:11:10 birbeck: It doesn't, it's upcoming in the SDK. Mar 18 23:11:38 is it possible to do that android:noHistory="true" programmatically? Mar 18 23:11:54 Quacked: yes Mar 18 23:11:57 if so I could set it when the alarm sound is complete Mar 18 23:12:04 viiralvx: maybe lycra wasnt it, im looking Mar 18 23:13:41 ACRA? Mar 18 23:14:24 yeah. i was going to say that but was trying to confirm first Mar 18 23:15:52 will be nice when/if testflight supports distribution and crash reports, but i was using acra and hockeykit with great success Mar 18 23:16:29 bugsense for me Mar 18 23:17:37 I love how fastboot asks you if you really meant to format a partition, yet continues without waiting for an answer Mar 18 23:18:07 So I've tried implementing the NFC Tag reader app and everytime I tap on a tag, the 'New Tag Collected' thing shows up and shows the string that's in the tag Mar 18 23:18:16 even when my app is in the foreground Mar 18 23:18:32 nseidm1: Yeah, I found BugSense as well, any feedback on it? Mar 18 23:18:38 try removing defaults from the other app Mar 18 23:19:13 and make sure you are specifying the correct type(s) of tags you want to read Mar 18 23:19:42 tophyr, so do you think it's not fixed? Mar 18 23:20:11 birbeck: but the other app, is literally just something that's included with android I guess. It's not an app I created :S Mar 18 23:20:28 viiralvx, other than some annoying log printouts works just fine Mar 18 23:20:38 right, but it is set as the default for reading tags Mar 18 23:20:50 or it has a more specific intent Mar 18 23:21:05 nseidm1: All right, I'm going to go with Crittercism at first, but I'm going to give BugSense a try as well! Mar 18 23:21:30 no love for acra? Mar 18 23:21:51 birbeck: but I don't know how to open it cos it's not really an app it just pops up :s Mar 18 23:21:52 hmm Mar 18 23:21:57 tbf, its the only one i have used and i didnt compare it to anything. it was also a year ago Mar 18 23:22:17 birbeck: I like seeing Device INformation as well, and keeping track of things. Mar 18 23:22:45 settings > apps > all > app name > clear defaults Mar 18 23:23:18 birbeck: okay will try Mar 18 23:24:09 viiralvx: it does that Mar 18 23:24:18 birbeck: In a nice UI? :o Mar 18 23:24:26 coco89: I've been working with NFC for a while - you just need to override the default action when a tag is scanned in your app, so it doesn't try to launch the default activity. Mar 18 23:25:54 Smashcat: how? Mar 18 23:26:37 coco89: First off you don't want any activity associated with tag reading in your app, just ensure it has permission to access the NFC hardware Mar 18 23:27:24 Smashcat: sorry to be a pain, i've just been working on this all day and i've no idea but i think this is totally wrong http://pastebin.com/ERxjkWdP Mar 18 23:28:52 coco89: Then in your main activity, make sure you call disableForegroundDispatch(this) on the nfcAdapter, so it doesn't spawn a new app to handle the scan. Took me a while to work it out too Mar 18 23:29:04 what does your AndroidManifest look like? Mar 18 23:29:30 birbeck: me? Mar 18 23:29:54 birbeck: http://pastebin.com/Um29PUz9 Mar 18 23:30:00 coco89 Mar 18 23:30:30 Smashcat: I see so disableForegroundDispatch(this), where should that be called? Mar 18 23:31:14 coco89: Here's my manifest - it's an App I did for Nissan - uses Facebook, NFC and some other stuff: http://pastebin.com/K1R1S4mP Mar 18 23:31:59 coco89: you have no metadata specified for the types of tags to read Mar 18 23:32:18 coco89: You need to cancel the foreground dispatch in the onPause() method in your activity Mar 18 23:33:07 Smashcat: I see let me try that Mar 18 23:33:12 birbeck: how do you mean? Mar 18 23:33:26 i dont have my nfc project on this computer Mar 18 23:33:31 coco89: Not worth me pasting the code from that app, as it's pretty big and it wouldn't be that clear. Mar 18 23:33:34 are you dealing with tags, or just beam? Mar 18 23:33:42 tags Mar 18 23:34:09 coco89: In my case, I'm just reading the unique identifier from cards, so I don't care about the type Mar 18 23:34:27 ah i see Mar 18 23:34:37 "If your activity filters for the ACTION_TECH_DISCOVERED intent, you must create an XML resource file that specifies the technologies that your activity supports within a tech-list set. Your activity is considered a match if a tech-list set is a subset of the technologies that are supported by the tag, which you can obtain by calling getTechList()." Mar 18 23:34:51 coco89: I have the code in there to extract other data, but it wasn't needed for the project Mar 18 23:35:06 oh, thats tech_discovered, not ndef_discovered Mar 18 23:35:16 however the tags you are reading may not be ndef Mar 18 23:35:35 most likely nfca/b Mar 18 23:35:46 birbeck: Yes, you don't really need to specify the tech if you don't care. My app is "greedy" - it just accepts anything the hardware can read Mar 18 23:36:19 Smashcat: I've implemented the onPause() method which resolved the other app from appearing, but it's not actually reading the tag Mar 18 23:36:32 ndef is very specific though, you need to find out what type of tags you have Mar 18 23:36:42 birbeck: ah Mar 18 23:36:58 birbeck: I used a demo app to write to these tags so I guess they work Mar 18 23:37:11 I'm having trouble creating a tag to read from them though Mar 18 23:37:17 *an app Mar 18 23:37:18 birbeck: Depends what you're doing - if the hardware can read the tag, it'll always call the code and the UID is always available (with any type of card I've tried anyway) Mar 18 23:37:20 the tags work, but you need to know which format to read/write them Mar 18 23:37:45 (even if the card is completely unformated, the UID is always there) Mar 18 23:38:27 So, does anyone know why my app isn't reading? I mean is it anything obvious or does everything look right? Mar 18 23:38:43 well i am pretty new to programming nfc, but i had no issues following the guide for both tags and beam Mar 18 23:39:11 ah, I'm new to NFC and android so this is really hard to get my head around Mar 18 23:39:20 but I was hoping to get this sorted by tonight Mar 18 23:39:54 coco89: I'd start off with the Google example app, then just modify it so it doesn't launch the new intent when you scan. That's pretty much all there is to it really. You can use one of the free apps from the Play store to format a card if you need data on it Mar 18 23:40:30 Smashcat: This is sort of a modified version of a demo NFC writer app Mar 18 23:40:33 (Think there's one called NFCWriter or something) Mar 18 23:41:28 Smashcat: So from my code you couldn't tell if it looks okay, or unreasonable? Mar 18 23:42:08 coco89: This is all I do in the onCreate function: nfcAdapter = NfcAdapter.getDefaultAdapter(this); nfcPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, this.getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0); Mar 18 23:43:11 ahi whcih is what i have no? Mar 18 23:43:20 coco89: I'll paste some stuff into pastebin. Hang on Mar 18 23:43:25 sure Mar 18 23:45:03 * agy2154 finally figures out where the null pointer exception is coming from Mar 18 23:48:14 coco89: I've stripped out all the code except for the NFC parts I think - http://pastebin.com/7HMdAQQ5 Mar 18 23:48:24 Smashcat: thanks i'll try it out Mar 18 23:48:43 coco89: It won't compile as it is, but you can see the steps in there Mar 18 23:49:32 coco89: I'm a bit busy on something else here at the moment ;-) Mar 18 23:49:54 Smashcat: ah right, sure this will keep me busy too for a while. I appreciate your help I wont keep you :) Mar 18 23:49:59 thanks Mar 18 23:50:16 coco89: hehe no problem, it took me a while to get it working right too :) Mar 18 23:50:46 hehe yeah, it's not easy especially for an android noob! :P Mar 18 23:51:00 i'vee just started looking into android dev like.. a month ago Mar 18 23:51:34 coco89: Ah right, yeah, maybe quite a lot all at once then. Mar 18 23:52:37 yep lol Mar 18 23:52:47 coco89: I left the code in there to get the ID from the card/tag and show it, but I don't care about anything else personally (The IDs are used to look up details using a web service - we don't store any data on the cards) Mar 18 23:54:54 Anyway, back to work - later... Mar 18 23:57:05 another question Mar 18 23:57:14 how do I actually create an apk with ant? Mar 18 23:57:31 ahh Mar 18 23:57:39 it puts it in the bin folder? Mar 19 00:00:24 does anyone know of a library that mimics the action bar overflow menu but can be used in any layout? Mar 19 00:01:04 actionbarsherlock? Mar 19 00:01:14 *ping* ;-P Mar 19 00:01:16 pong Mar 19 00:01:37 sorry Mar 19 00:03:05 it's just a ListPopupWindow Mar 19 00:04:11 IcsListPopupWindow? Mar 19 00:09:40 how can I show an Activity themed as a Dialog on top of keyguard? Mar 19 00:12:23 whatsapp can do it for instance Mar 19 00:13:24 at least they show some kind of message popup with the text Mar 19 00:14:37 Proguard 4.9 was released today Mar 19 00:15:37 is there a way to be notified of the activity lifecycle without extends an activity class? Mar 19 00:16:06 dberg: you could use a Fragment , that will get poked at predictable moments ;) Mar 19 00:16:58 how so? Mar 19 00:17:32 I'm writing a library project, and ideally I would like to be notified when onResume happens Mar 19 00:17:59 the host app initializes the lib during its activity onCreate method Mar 19 00:18:19 dunno about your case, but yeah, you could have a worker fragment that gets that onResume call. it doesn't need to have a UI Mar 19 00:18:58 fragments are in the context of activities; so as long as its following the lifecycle of the activity, yeah Mar 19 00:19:08 I'll read more about fragments. But they were introduced after 3.0 right? Mar 19 00:21:09 you can use the support lib Mar 19 00:21:22 oh, that's interesting Mar 19 00:21:40 you can add functionality from 3.0 to 2.3 for instance? Mar 19 00:21:40 where can we get the libs from? Mar 19 00:21:56 sdk manager Mar 19 00:22:23 dberg: some functionality Mar 19 00:23:47 although in web terms this sounds like a hidden iframe Mar 19 00:24:44 I could get around it running something every n minutes as long as the app is in the foreground. Mar 19 00:25:05 but ideally it should sleep when it goes to the background. Mar 19 00:25:50 maybe you need something different Mar 19 00:26:05 I just wanted to hook into an activity onResume call. Mar 19 00:27:14 or when the app goes into the foreground. Mar 19 00:29:37 should it be possible to use flags to dismiss keyguard in > FROYO? Mar 19 00:30:41 It seems I have to use KeyguardManager to disable it Mar 19 00:43:16 I really need help, i'm about to go insane Mar 19 00:44:08 http://pastebin.com/FzJKu8qK Mar 19 00:44:17 can anyone figure out why it's not reading from an NFC tag Mar 19 00:44:19 :( Mar 19 00:44:56 I just figured out what was causing the huge memory usage in my App. Mar 19 00:44:57 i've put the toast.maketext() within the if statement in onResume() but it doesn't show Mar 19 00:45:34 Apparently android caches some common things for activities Mar 19 00:45:57 like in ICS and JB that little glow when you try to scroll past the end of text Mar 19 00:47:24 coco89: forget the show() ? Mar 19 00:48:16 oh, you have it :) Mar 19 00:48:33 g00s: ya, i have it Mar 19 00:54:03 anyeone? Mar 19 00:55:09 g00s Mar 19 00:55:24 coco89: no idea Mar 19 00:55:58 g00s: the fragment idea might work. still reading. thanks for pointing that out. Mar 19 00:55:59 ahh damnn, that's okayy Mar 19 01:02:01 seems cool, but why get this over a nexus :| http://www.theverge.com/2013/3/18/4100006/why-blu-products-can-beat-samsung Mar 19 01:02:26 there's no reason to buy anything over a note2 (or wait for 3) Mar 19 01:05:41 g00s: Im actually covering an article about Blu for my blog Mar 19 01:08:09 oGMo: if its decent build quality, more stock android, and cheaper - i think there is a lot of reason to consider it :) Mar 19 01:08:55 Unfortunately, the process com.google.process.gapps has stopped. Mar 19 01:08:57 i'd rather samsung's stuff over stock Mar 19 01:09:11 and it's not oging to be higher quality or faster, and cheaper is irrelevant Mar 19 01:09:18 so no reason ;) Mar 19 01:09:35 I think GCM is pretty busted Mar 19 01:09:50 wabz: uhohs Mar 19 01:11:15 off topic but I got pretty sick/fed up with samsung after loving the galaxy note for quite a while Mar 19 01:11:26 * novie quits everything. the thought of someone out there thinking Samsung's software is higher quality is just too much to process. Mar 19 01:11:43 the sony xperia UI is pretty much just a skinned stock android, I think it's actually really nice Mar 19 01:11:54 Do their devices work with developers? Mar 19 01:12:04 Will they work with the google drivers form the SDK? Mar 19 01:12:25 novie: heh, thats like somebody telling you sausage is healthy for you :) Mar 19 01:12:38 :) Mar 19 01:13:01 because sausage is the term i hear which describes samsung's software Mar 19 01:13:04 hey guys, can anyone please help figure out why my app wont read from this NFC tag? If it helps I have a Toast.makeText() in the if statement in onResume() which isn't showing so that if statement is not working. http://pastebin.com/FzJKu8qK Mar 19 01:13:11 agy2154: sony have been really good - google have AOSP support for xperia s for example Mar 19 01:14:41 I only have a Nexus 7 and a nexus S ( I gave it to my mom) Mar 19 01:15:07 GCM isn't telling me when a device is unregistered Mar 19 01:15:49 then if that device gets a device id again, it's different Mar 19 01:16:21 Before I try this and it blows up in my face, can you use toLeftOf _and_ toRightOf in a RelativeLayout? Mar 19 01:17:14 hwrd|work: Im not sure I use align left Mar 19 01:17:16 Yes. Mar 19 01:17:22 and align right Mar 19 01:17:33 Wait, what do you mean by _and_? Mar 19 01:17:54 ohh you can't use two at once Mar 19 01:18:39 Well I don't want the views to overlap, so i effectively want Mar 19 01:18:46 ViewOne ------- View Two ------ View Three Mar 19 01:18:58 But View Two seems to be overlapping View Three when its too big Mar 19 01:19:21 hwrd|work: Can you use gravity in a realative layout? Mar 19 01:20:04 hwrd|work: you can use gravity Mar 19 01:20:05 agy2154: Well, no, right? Gravity wouldn't really make sense Mar 19 01:20:12 i believe you can use both toLeftOf and toRightOf, but make sure you are anchoring the views somehow. like viewone should be alignParentLeft and viewthree is alignParentRight then declare viewtwo to be toLeftOf and toRightOf Mar 19 01:20:19 hwrd|work: are they all in the same alignment next to each other? Mar 19 01:20:28 if you just have those views though, you can also use a linearlayout and layout_weight Mar 19 01:20:53 my bad I ment weight... lol sorry I don't know what got me thinking gravity Mar 19 01:21:02 I think LinearLayout and LayoutWeight is the correct solution, but ugh… another view group Mar 19 01:29:59 wow, the git object model is interesting. i learned quite a bit by just digging around in .git Mar 19 01:30:32 g00s: have you read the pro git book? The last chapter in particular has lots of interesting info on that Mar 19 01:30:44 http://git-scm.com/book/en/Git-Internals Mar 19 01:30:44 kevinb: hey man, could you please help figure out why my app wont read from this NFC tag? If it helps I have a Toast.makeText() in the if statement in onResume() which isn't showing so that if statement is not working. http://pastebin.com/FzJKu8qK Mar 19 01:30:54 definitely worth a perusal Mar 19 01:31:00 JesusFreke: i did, but stopped before i got to that chapter :) i'm reading the oreilly one now. Mar 19 01:31:11 the git internals chapter is particularly good Mar 19 01:31:30 cool how the first 2 digits of the sha are actually subdirs for 256 way distribution Mar 19 01:32:17 (for objects) Mar 19 01:32:42 g00s: man git | sed -n 6p Mar 19 01:33:19 hehe Mar 19 01:33:38 it's genius in it's stupidity! Mar 19 01:33:43 its sorry Mar 19 01:33:54 ..the second one Mar 19 01:37:26 could anyone please help figure out why my app wont read from this NFC tag? If it helps I have a Toast.makeText() in the if statement in onResume() which isn't showing so that if statement is not working. http://pastebin.com/FzJKu8qK Mar 19 01:55:50 coco89, I suggest logging, as we discussed in ##java. Mar 19 01:56:52 sonOfRa: I did, and onResume is being called but the if statement isn't Mar 19 01:59:22 coco89: also, Log the contents of the intent. its toString() prints a bunch of stuff Mar 19 01:59:57 g00s: how? Mar 19 02:00:39 Log.i(TAG, "blah blah " + myIntent); ? Mar 19 02:00:44 ah Mar 19 02:00:49 coco89: how good are you with java ? Mar 19 02:01:01 g00s: i'm okay but i've not done logging Mar 19 02:01:58 myIntent.toString() I suppose Mar 19 02:02:44 or does Log.d automagically call toString() on arbitrary objects? Mar 19 02:03:13 does not Mar 19 02:04:11 coco89: i haven't done NFC, but the filter setup looks weird. are you also declaring the nfc discovered intent in your AndroidManifest.xml for that activity? if not i imagine you need to Mar 19 02:05:29 sonOfRa: 03-19 02:04:37.785: D/TAG(4255): lolIntent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000cmp=com.nfc.goldtag/.MainActivity } Mar 19 02:06:02 well, there you go. your actions aren't equal Mar 19 02:06:14 from this point on, you can debug by talking to the rubber ducky Mar 19 02:06:48 kevinb: http://pastebin.com/kqgYkEmH Mar 19 02:07:07 g00s: the actions aren't equal? Mar 19 02:07:16 lolll rubber ducky :P Mar 19 02:07:47 dont make fun of the rubber ducky. i'm srious Mar 19 02:07:53 *serious Mar 19 02:08:48 oh Mar 19 02:08:49 lol Mar 19 02:08:58 okay so, i dont get what's not equal Mar 19 02:13:18 g00s? Mar 19 02:17:52 NOOOOOOO Mar 19 02:21:23 I have 2 imageviews in a gridview, and both have a longclicklistener attached to them. for some reason when i long click one, the one gets highlighted but so does the other. this only happens on pre ICS.. anyone know why? Mar 19 02:24:15 hey guys. Is there a particular tutorial series you guys would recommend for learning Android dev? I'm not worried about java or the IDE or emulator. I've got that. Mar 19 02:24:31 Just need to become familiar with the standard UI stuff like fragments Mar 19 02:24:58 (I need to change some existing UI element that has a hard-coded number of elements. It needs to be dynamic but I'm not sure where to even begin) Mar 19 02:25:51 ProgramMax: thenewboston ? Mar 19 02:26:26 Just googled it. Thank you Mar 19 02:27:40 no worries :) Mar 19 02:38:53 guys i need help **** ENDING LOGGING AT Tue Mar 19 02:59:58 2013