**** BEGIN LOGGING AT Thu Oct 04 02:59:58 2012 Oct 04 03:00:33 Maybe they started developing android on 32 bit machinery when it all started and they have never ported it to 64 bit? Oct 04 03:02:30 How can I add a fixed height header to a list view? I tried to add a layout with fixed height of 300dp, but it just wraps the content instead of filling 300dps Oct 04 03:24:56 any tutorials/whitepapers for steps involved in rooting from scratch? Oct 04 03:25:16 This seems like a dev question Oct 04 03:26:51 :( Oct 04 03:27:06 #android-root Oct 04 03:27:13 nope Oct 04 03:27:23 ok bad question Oct 04 03:27:26 yes... this isn't the right channel Oct 04 03:28:17 What do I need to learn to be a dev who understands androids enough to make my own root Oct 04 03:28:33 chat to the guys in #android-dev Oct 04 03:28:39 ;) Oct 04 03:28:47 hoping for some man pages or something Oct 04 03:28:48 this channel is for developing applications for android, not rooting Oct 04 03:29:05 CM have a channel too if you're interested Oct 04 03:29:11 CM? Oct 04 03:29:25 what code do you use for apps? Oct 04 03:29:36 cyanogenmod Oct 04 03:29:56 can I write in any language? Oct 04 03:30:00 java ( see the topic for more information ) Oct 04 03:30:14 k Oct 04 03:30:21 you can write in a few languages, but the main one is java Oct 04 03:33:12 when the size of the data i'm downloading gets slightly too big (2651 bytes), android doesn't process all of it and it crashes. here's the code i'm using: http://pastebin.com/US8aB1qN. what should i try to fix this? Oct 04 03:33:33 whomp: got a ST? Oct 04 03:33:40 ST? Oct 04 03:33:44 stacktrace Oct 04 03:36:02 here: http://pastebin.com/UxMDuXuw. the first bit is the data that it downloaded, followed by all of the unused characters in the buffer. since it cuts off abruptly, my json encoder is the first thing to throw up an error Oct 04 03:36:12 *decoder Oct 04 03:37:57 the gson decoder didn't like what it was given on line 126 of Bubble.java Oct 04 03:38:05 it probably has to do with the content of the data, not the size Oct 04 03:38:16 or a buffer getting full Oct 04 03:38:18 see what i wrote Oct 04 03:38:20 I'm an experienced java developer, trying to get into android development. I'm a command line/JDK/emacs sorta guy so I'm trying to do the same with android. Oct 04 03:38:23 and dropping the rest of the frame Oct 04 03:38:35 s/frama/data/ Oct 04 03:38:39 the buffer is 50KB. all of the weird characters are unused space Oct 04 03:38:45 I tried doing it by the book (e.g. eclipse) previously but got bogged down in learning eclipse, so... Oct 04 03:39:01 the gson decoder is fine, and the data coming to it is fine (it downloads fine via chrome). the issue is in how android is getting it Oct 04 03:40:25 Hm, my phone is a Galaxy Nexus running 4.04, the SDK appears to be downloading 4.1... is this going to be a problem? Oct 04 03:40:32 puff: you're an experienced java developer, but struggled with eclipse ? Oct 04 03:40:36 >.> Oct 04 03:41:02 g00s: Yeah, I'm a *very* experienced java developer. Back in MY day we didn't HAVE no eclipse. And Wwe LIKED it. Oct 04 03:41:06 Uphill to school. Both ways. Oct 04 03:41:19 the l33t folks like intellij Oct 04 03:41:21 puff: you can download any version of the sdk Oct 04 03:41:28 pretty sure eclipse demands to be struggled with no matter your experience Oct 04 03:41:31 Semi-seriously... I like intellij, but I still wrk best in emacs. Oct 04 03:41:44 wabz: True, I just don't like self-abuse (of that kind, at least). Oct 04 03:41:54 i do fine with android and i use emacs :) Oct 04 03:42:07 bankai_ dragorn sampullman, any ideas? Oct 04 03:42:12 sampullman: I'm sure I can download any version (though the sdk popup doesn't list 4.04, just 4.1 and then below it 4.3, etc). The question is which do I *need* to download? Oct 04 03:42:19 eclipse /is/ emacs … in java :) Oct 04 03:42:28 * puff makes a note that sampullman is an all right kinda guy. Oct 04 03:43:05 No, eclipes is vi in java :-). Oct 04 03:43:06 i just deleted a few rows that my query returns, making it smaller and it works. so there is definitely an issue with the size of the data, even though the buffer is much bigger than the data Oct 04 03:43:12 you need whatever version you want to set as the targetSdk :) Oct 04 03:43:22 which is probably the latest Oct 04 03:43:54 whomp: that doesn't look like too much data for a 50k buffer, something else is going on Oct 04 03:44:09 wabz: Again, given my phone is 4.04, if I'm going with the default of 4.1, that seems likely to cause problems. Oct 04 03:44:18 Assuming that I'm going to test apps on my phone, which I am. Oct 04 03:44:24 puff: are you only building apps for your own use? Oct 04 03:44:26 it won't cause problems Oct 04 03:44:44 Leeds: At first, certainly. Eventually no. Oct 04 03:44:47 if you make something for icecream sandwitch, with that work on all the other platforms? Oct 04 03:44:49 wabz: Thanks. Oct 04 03:45:04 wat a stupid name by the way Oct 04 03:45:13 ah ICS Oct 04 03:45:13 whomp: Okay, unless that pastebin mangled the data, it's clear your JSON is truncated, and the last bit is a string without a close-quote. Oct 04 03:46:19 sekyourbox: the codenames are just that - mostly-internal codenames... the 'public' names are either API versions (for developers) or Android release versions Oct 04 03:46:29 can you implement both OnClickListener and OnLongClickListener on a class that extends a Preference? Oct 04 03:47:13 Leeds: I'm building apps for myself for now, though if I get anywhere I'll quickly be putting them on other folks phones (most of the stuff I want to play with is multi-user). Oct 04 03:47:24 Leeds: But not on the play store for awhile, certainly. Oct 04 03:47:33 puff, it's clear that the json is truncated. that's not because the site served a truncated string, it's because java didn't download the end bit Oct 04 03:47:56 I have a DataSetObserver that I register against an adapter, which may, for example, set the currently selected listview item which the adapter is set to. But it seems that the listview may not be populated with the updated data set when my observers onChanged() is called - how can I best handle this? Oct 04 03:48:02 the json issue is just a side effect of the larger issue that android isn't handling the download properly Oct 04 03:48:23 whomp: Oh, sorry, shoulda looked closer. Oct 04 03:48:41 Leeds: so If I want to make an app with the 4.0 API, will the app work on all versions? Oct 04 03:48:51 sekyourbox: it'll work on 4.0 and above Oct 04 03:49:15 if you want it to work on lower versions, you need to make it downward compatible - there's plenty of stuff on the developer site about that Oct 04 03:49:40 Leeds: Cool, thanks. Oct 04 03:49:41 so we should program in 2.x to be the most compatible, or deal with a bunch of bloat code? Oct 04 03:50:02 depends how much you care :P Oct 04 03:50:08 sekyourbox: I suggest targeting iOS 6 and a 4" screen Oct 04 03:50:10 whomp: Okay, so the pastebin doesn't show anything related to the truncation... is it possible an exception is getting swallowed somewhere? Oct 04 03:51:18 are all environmental variables set per-process? (specifically `EXTERNAL_STORAGE_STATE') Oct 04 03:51:58 swallowed? i'm not sure what you mean Oct 04 03:52:08 Leeds: :( Oct 04 03:52:18 whomp: Something caught and did not handle the exception that resulted in the data being truncated. Oct 04 03:52:26 sekyourbox: seriously, go read the stuff on d.android.com about this Oct 04 03:52:37 if that's the case, i don't know how to see what did it Oct 04 03:52:54 whomp: The classic example would be something like try { ...useful code } catch (Throwable t) { // should put something useful here someday } :-) Oct 04 03:53:01 Leeds: seems all selling points, no tech data. I have to download the api to get the data? Oct 04 03:53:02 enth: they would be system wide variables Oct 04 03:53:07 And yes, that is the voice of long, bitter experience speaking :-). Oct 04 03:53:20 sekyourbox: selling what now? Oct 04 03:53:39 bankai_: from this question it looks like it has smaller scope http://stackoverflow.com/questions/4483001/scope-of-system-setproperty Oct 04 03:55:22 i know, but i'm not about to look through the android source code for it :) Oct 04 03:55:42 whomp: Hm... well, if you can post your code. Oct 04 03:56:11 whomp: Or rather, without seeing the buffering code, it's hard to say much. Oct 04 03:56:29 enth: it doesn't make sense for just any app to be able to change a state like external_storage ( is this what you're asking? ) Oct 04 03:57:09 Yes. It looks like the app would have to be compiled C so that it would have access to system calls outside of the Java VM Oct 04 03:57:25 Google Cloud Messaging API looks kinda cool in theory, is it turning out to be cool in practice? Oct 04 03:58:34 it's much better than c2dm :p Oct 04 03:59:04 is there a tool to "convert" android apps to iphone? Oct 04 03:59:47 sekyourbox: No. Oct 04 03:59:50 i posted it Oct 04 03:59:52 sekyourbox: you mean like a tool to convert boats to planes? Oct 04 03:59:55 puff, it's above my other pastebin Oct 04 04:00:04 java is multi platform :P Oct 04 04:00:06 How can I add a fixed height header to a list view? I tried to add a layout with fixed height of 300dp, but it just wraps the content instead of filling 300dps Oct 04 04:00:12 sekyourbox: There are several tools that aim to make it easier to devleop for both at once. How well they do this is debatable. Oct 04 04:00:30 cool Oct 04 04:00:33 sekyourbox: java is multiplatform but apple doesn't want java on their platform. Oct 04 04:00:43 lol Oct 04 04:01:01 they have their own l33t language Oct 04 04:01:02 sekyourbox: Apple actually made it against their license to put any other sort of language on... dunno what's changed now for that. Oct 04 04:01:33 I'd bet you should be able to grab the entry points from debugging both phones Oct 04 04:01:33 sekyourbox: Phonegap, rubymotion are two such that come to mind, but note that this is straying into off-topic for this channel. Oct 04 04:01:44 maybe make an app in ASM Oct 04 04:02:10 what is debugging like on the android? Oct 04 04:02:14 whomp: Just got a call from a friend who's coming to pick me up. Oct 04 04:02:18 can you step through the machine code? Oct 04 04:02:46 whomp: Try putting a try/catch around that code and print the stack trace, see if you get anyhting. Oct 04 04:02:49 tell him it can wait Oct 04 04:03:17 whomp: Also, I'm a little rusty on streams, normally you have a read loop and there isn't one there. Oct 04 04:03:46 whomp: I know streams make that less needed, but I'm wondering if maybe your buffer isn't the size you think it is. Oct 04 04:03:50 whomp: Whoops, gotta run. Oct 04 04:04:15 ok thanks Oct 04 04:05:23 sekyourbox: are you trolling now? Oct 04 04:05:45 Is it possible to set an offset to a listview? I mean I need to start the listview scroll from the half height of the screen, instead of starting from the top of the screen. Oct 04 04:06:06 you could set a header view? Oct 04 04:06:12 Leeds: I'm serious. I check google and there was a GTK debugger or something, but the link is dead Oct 04 04:06:29 wabz: But fixed height headers does not work! Oct 04 04:06:41 I want something that works like olly or immunity debugger Oct 04 04:07:16 sekyourbox: here's a hint - Android apps are bytecode, not machine code, you can't write them in assembler, and they run on a virtual machine Oct 04 04:07:22 wabz: Rather it just wraps the content. I tried setting a 300dp fixed height header to my listview. Oct 04 04:07:56 Leeds: what is the OS running the virtual machine? Oct 04 04:08:01 can we get in there? Oct 04 04:08:18 it's Linux, and no, as an app developer you run on the VM Oct 04 04:08:38 unless you're using the NDK, which bypasses most of the Android system, but is designed for things like games Oct 04 04:08:55 So app developers aren't interested in learning what the phone is doing? Oct 04 04:09:15 Guess I'll start off with higher level stuff Oct 04 04:09:55 mostly, app developers are interested in selling apps (or selling IAPs, or showing ads...) Oct 04 04:10:14 <[deXter]> IAPs ? Oct 04 04:10:50 in app purchases Oct 04 04:10:52 if you were going to sell a kickass game, I'd figure you want to know exactly how the hardare works Oct 04 04:11:16 I guess they aren't really pushing the edge with smartphone games yet Oct 04 04:11:20 if you were going to make a kickass game, you wouldn't be asking questions like this Oct 04 04:13:06 Any suggestions for an IDE? Oct 04 04:13:23 eclipse Oct 04 04:13:29 eclipse++ Oct 04 04:13:37 have you actually never even opened d.android.com? Oct 04 04:13:49 apparently there's a reference in the topic now Oct 04 04:14:32 Leeds: scroll up about an hour Oct 04 04:14:33 13:29 < sekyourbox> can I write in any language? Oct 04 04:14:42 :p Oct 04 04:14:45 been a slow day Oct 04 04:14:56 bankai_: so that's a "no, I prefer to waste people's time here" then Oct 04 04:15:14 i'd say so Oct 04 04:16:36 There's also FlashDevelop if you want to make Flash apps. Oct 04 04:17:09 i'd avoid flash at this point :) Oct 04 04:17:15 I have been there, I downloaded their api thing, it said I dont have java sdk even though I do. I checked the environment vairables, but its not set for some reason Oct 04 04:17:21 there's an interesting project for .NET on android/iphone ... i wonder how successful it is, no one really talks about it in here Oct 04 04:17:42 bankai_: its pretty expensive Oct 04 04:17:46 should I use java x86? Oct 04 04:17:55 g00s: yeah i saw that :S Oct 04 04:18:16 sekyourbox: I suggest picking up the Solaris SPARC version Oct 04 04:18:17 wtf? Oct 04 04:18:33 http://xamarin.com/ if anyone is interested Oct 04 04:18:50 monodroid Oct 04 04:19:45 well x64 is an option.. Oct 04 04:19:46 the problem with things like this is the 'style' of app they produce. ie. people will usually write iPhone looking apps ( which usually pisses android users off ) Oct 04 04:19:50 that is the one I have Oct 04 04:19:59 the back button and other iphone-looking widgets Oct 04 04:22:04 hm, http://phandroid.com/2012/10/03/rumor-google-changing-up-their-nexus-program-lg-optimus-g-nexus-debuting-in-november-and-more/ Oct 04 04:22:44 """Instead, Google could be enabling strict guidelines that must be adhered to and will allow for any OEM to see one their devices “Nexus certified.”""" Oct 04 04:23:10 great idea Oct 04 04:24:11 How can I add a fixed height header to a list view? I tried to add a layout with fixed height of 300dp, but it just wraps the content instead of filling 300dps Oct 04 04:42:06 what's the best way to implement a settings menu that's compatible with android 2.2? right now, i have a list of buttons, and each one triggers a new activity which simply has whatever setting the user is trying to edit. is there a better way? Oct 04 04:42:59 wow, um... you have an activity for each setting? Oct 04 04:43:07 you know about Preferences, right? Oct 04 04:43:14 that's when i thought, there must be a better way lol Oct 04 04:44:37 looking into it, thanks Oct 04 05:04:22 anyone ever work with ddmlib directly? Oct 04 05:04:50 when loading the add-ins, do you get eclipse warning message sayin that the package contains unsigned content? Oct 04 05:04:53 I'm getting "Error during Sync: Local path doesn't exist." errors trying to install things programmatically Oct 04 05:05:10 shouldn't the CA be working? Oct 04 05:05:15 its google for god sakes Oct 04 05:05:33 "god's sake" Oct 04 05:05:39 MEH Oct 04 05:05:49 oops, meh* Oct 04 05:06:30 it's saying that the content is unsigned, not that it's signed and doesn't match the cert Oct 04 05:06:30 has anyone here installed the ADT plugin for eclipse IDE? Oct 04 05:06:43 ok, so this is normal? Oct 04 05:06:45 yes Oct 04 05:06:49 thx Oct 04 05:07:05 whoops, nevermind! Oct 04 05:08:51 Stopping ADB server failed (code -1) Oct 04 05:09:02 after Installing Android SDK Platform-tools, revision 14 Oct 04 05:09:13 but then it says it installed Oct 04 05:09:27 It blindly tries to stop the service without checking first? Oct 04 05:10:22 is grid layout capable of being a root layout? Oct 04 05:11:23 never noticed it before, see that it's api 14 Oct 04 05:11:43 can you program the power button functionality? like require pressing the button 2x to take it out of sleep? Oct 04 05:13:08 no, apps don't get to override things like that Oct 04 05:14:32 can the API tweak anything, like overclocking and stuff? Oct 04 05:14:47 speakingcode: im pretty sure it can Oct 04 05:14:57 sekyourbox: try looking at the damn api Oct 04 05:14:59 sekyourbox: #android-root ( like i told you before ) Oct 04 05:15:14 and stop asking so many dumbass questions Oct 04 05:15:45 I looked, but i wouldn't know what category Oct 04 05:15:55 I go write my damn hello world prog Oct 04 05:16:05 yes, damn it ! Oct 04 05:17:32 . Oct 04 05:17:35 finally ._. Oct 04 05:17:40 darn registration.. Oct 04 05:18:29 So, I'm a little very new to android app creation and I basically want to make a button (checkbox) that when checked gives a message, and when unchecked also gives a message. Oct 04 05:19:04 I'm using eclipse with the android addon and downloaded a bunch of things, I know if the word is underlined I basically have to hover over it to add/import a missing bundle Oct 04 05:19:15 I'm just lost on how to do the rest.. so I need help, anyone interested? Oct 04 05:19:57 It's just I haven't found any useful youtube tutorials yet Oct 04 05:20:35 have you gone through the getting started stuff on d.android.com? Oct 04 05:20:43 is that literally the only thing you know? you're question is vague Oct 04 05:20:43 your* Oct 04 05:20:43 voila! Oct 04 05:20:43 http://thenewboston.org/list.php?cat=6 Oct 04 05:20:47 let me check Oct 04 05:21:24 which part exactly? Oct 04 05:21:39 it's pretty broad ._. Oct 04 05:21:51 http://developer.android.com/training/index.html Oct 04 05:21:54 ahh Oct 04 05:21:55 thanks Oct 04 05:22:07 the other link has youtube tutorials Oct 04 05:22:11 ahh Oct 04 05:22:14 didn't notice that one Oct 04 05:22:18 thought you had your own question Oct 04 05:22:19 >< Oct 04 05:22:20 thanks Oct 04 05:23:14 sampullman: thanks for the link Oct 04 05:23:23 i want to put radio buttons and a text editor into the same preference popup, so that if one particular radio button is selected, the text editor appears below it. is there any easy way to make this happen? Oct 04 05:34:23 sampullman, considering the video I'm watching right now (ep6) he says layout_width should be fill_parent, mine is match_parent Oct 04 05:34:32 how is that different and how does that affect the app Oct 04 05:34:37 match_parent is newer Oct 04 05:34:40 ahh Oct 04 05:34:44 fill_parent is deprecated Oct 04 05:34:48 right, because mine also says activity_main.xml Oct 04 05:34:52 not main.xml Oct 04 05:35:02 both are just a constant equal to -1 Oct 04 05:35:15 kk so no diff so I can leave mine the way it is Oct 04 05:35:17 good to know Oct 04 05:35:27 another question I have while I'm at it is, what is icicle? Oct 04 05:35:31 morning Oct 04 05:35:33 onClick(Bundle icicle) Oct 04 05:35:41 a bundle Oct 04 05:36:01 * Streusel shrugs to what that means, I suppose I'll learn it in another episode Oct 04 05:36:16 note that if you target an api lower than 8 you can't use match_parent Oct 04 05:36:25 k Oct 04 05:36:31 well I just want to get an app up Oct 04 05:36:48 I basically just want a text field, where I can write something Oct 04 05:36:50 which I already ahve Oct 04 05:36:56 a name field, which I also have Oct 04 05:37:04 a checkbox and a paste button Oct 04 05:37:11 paste being the save button Oct 04 05:37:18 weak Oct 04 05:37:22 write a game or something Oct 04 05:37:23 well also a dropdown menu button but still Oct 04 05:37:35 I first want to get into it before I do 'advanced' stuff Oct 04 05:38:00 yeah, just kiddin. just keep at it Oct 04 05:38:04 ^^ Oct 04 05:40:25 Where's @drawable/ Oct 04 05:40:25 list_section_divider_holo_custom defined in the android apps? (looking at how the Contacts app styles things, it's used in one of the styles, but I can't find where it's defined) Oct 04 05:41:35 res/drawable Oct 04 05:43:25 gotcha Oct 04 05:43:25 thanks Oct 04 05:43:54 Oh I already love this, learning in the first vid, where to place strings, yay :D thanks sampullman :) Oct 04 05:46:07 no problem Oct 04 05:47:15 is android:orientation="vertical/horizontal"; required? mine hasn't set it up on it's own Oct 04 05:47:18 so I'm curious Oct 04 05:47:41 for a linearlayout? Oct 04 05:47:49 yeh Oct 04 05:48:01 i think it's vertical by default, not sure though Oct 04 05:48:05 oh wait, I don't have a linear layout >< Oct 04 05:48:11 mine is just relativelayout Oct 04 05:48:37 rel. layouts don't have an orientation in that sense Oct 04 05:48:41 k Oct 04 06:07:54 following along with the tutorial, starting a new project keeps giving me errors in the name. I tried everything, including what they did in the tutorial. "a package must not contain 2 consecutive dots" IT DOESN'T Oct 04 06:10:01 rebooted, its working now :/ Oct 04 06:15:20 why does a listview ignore the margin values of list items Oct 04 06:17:32 oh yeah, divider height. lame Oct 04 06:18:01 sekyourbox: if some strange things happens, the first thing to do is to clean the project Oct 04 06:19:28 vavirta: the project wouldn't even create at that point Oct 04 06:19:34 aah, okay Oct 04 06:19:53 starting with 4.0 a good idea to learn? Oct 04 06:29:36 hi. by now, I understand the Activity processing path (oncreate, on start,...etc) . however, what about the constructor of a class? I think it's more prior to the onCreate. isn't? Oct 04 06:30:00 yeah, it's the first thing that happens... Oct 04 06:30:36 how do I print a text in java? public void print (string str) and define str = "my text"; ? Oct 04 06:30:44 or is there something simplier Oct 04 06:30:50 sampullman, ah thanks Oct 04 06:31:23 im not aware of a good reason to do so Oct 04 06:31:27 Streusel, use the logcat and the corresponding function Log.d() Oct 04 06:32:02 I'm very new to this, I know the logcat is a logging program for when I plug in my android and it logs the app activity but that's it Oct 04 06:32:08 Streusel, or use an object of type Toast : Toast.maketxt() Oct 04 06:32:15 k Oct 04 06:32:42 Streusel, here is an example from my work. just a min Oct 04 06:32:55 ty Oct 04 06:33:12 wish this tutorial talked about check boxes >< Oct 04 06:33:17 Streusel, Toast.makeText(this, "hi rani"+getIntent().getExtras().getString("requested_supplication_listview_index"), Toast.LENGTH_LONG).show(); Oct 04 06:33:31 need to figure out how to find out if box is checked or not to display msgs based on that Oct 04 06:33:41 ty Oct 04 06:34:04 you may remove the getintent methods Oct 04 06:34:11 right Oct 04 06:34:19 Streusel, Toast.makeText(this, "hi rani" Toast.LENGTH_LONG).show(); Oct 04 06:34:54 Streusel, don't forget the ".show()" as you type.. it won't be displayed Oct 04 06:34:57 oh, I would've let it be just "Toast.makeText(this, "Private Paste").show();" Oct 04 06:35:33 lovely errors Oct 04 06:35:38 Streusel, the default i think is short Oct 04 06:35:49 use Long Oct 04 06:36:04 gtg Oct 04 06:36:08 doesn't like the toast.long Oct 04 06:36:13 incidentally, if you're wondering why it's called 'toast' - it's because it pops up Oct 04 06:36:15 or toast. after the "" overall Oct 04 06:36:26 lol Oct 04 06:36:29 good name then Oct 04 06:36:33 and poping up is also good Oct 04 06:36:36 are you confusing toast with Toast? Oct 04 06:36:41 s'long as it disappears again Oct 04 06:36:44 hey, why API demos haves BLACK icons for notification? (iusse on 2.3+ and black status bar) Oct 04 06:36:51 I'm not a Catholic, I try to avoid poping Oct 04 06:36:59 >< Oct 04 06:37:11 hiyo Oct 04 06:37:16 how do i start the status bar intent? Oct 04 06:37:40 how do i know how much ram the whole system is eating? Oct 04 06:37:46 lol, wrong chan Oct 04 06:38:27 ahh the issue was missing , Oct 04 06:38:40 now makeText errors me Oct 04 06:38:40 ? Oct 04 06:38:52 .... Oct 04 06:38:56 doesn't like makeText inside OnClickListeners Oct 04 06:39:01 *listener Oct 04 06:39:10 Streusel: you need to supply a Context Oct 04 06:39:30 which is? Oct 04 06:39:32 ?_? Oct 04 06:39:40 well-documented Oct 04 06:40:21 usually it your activity which you can refer with this Oct 04 06:40:28 Streusel: go read android-docs 4000+ pages Oct 04 06:40:33 lol Oct 04 06:40:45 but when you are inside anonymous class, then this doesn't point to your Activity-class anymore Oct 04 06:40:47 I'll do it right after you've done it. Oct 04 06:40:56 and I believe that's your error Oct 04 06:41:15 MyActivityName.this Oct 04 06:41:21 this is what I got right now: http://upaste.me/7c3412579b69132b Oct 04 06:41:49 Streusel: do you know what 'this' is? Oct 04 06:41:54 no Oct 04 06:41:56 :x Oct 04 06:42:03 do you know what 'Java' is? Oct 04 06:42:15 it's a programming language Oct 04 06:42:36 how to start status bar intent? Oct 04 06:42:43 good... now, have you actually learned it? Oct 04 06:42:45 wat Oct 04 06:43:00 no Oct 04 06:43:01 hey Leeds, can i have +v? Oct 04 06:43:03 I'm starting out new.. Oct 04 06:43:27 canadiancow: any particular reason why? :) Oct 04 06:43:44 cause then it will be less of a change when i ask for +o :) Oct 04 06:44:54 =/ Oct 04 06:45:03 comparative bias is just a myth Oct 04 06:45:09 Streusel: good idea is first to learn Java (and object oriented programming) and the start to learn android framework Oct 04 06:45:21 i learned java with android Oct 04 06:45:27 ^ Oct 04 06:45:27 had never touched java before Oct 04 06:45:30 android:textSize="47dx" is no longer valad in the layout? Oct 04 06:45:34 4.0 Oct 04 06:45:36 dp Oct 04 06:45:37 not dx Oct 04 06:45:43 but did you know about oop before? Oct 04 06:45:46 ah, typo in the tutorial :p Oct 04 06:45:50 textsize should generally be sp Oct 04 06:45:51 not dp Oct 04 06:46:06 ah Oct 04 06:46:08 the tutorial's I've seen did dp Oct 04 06:46:15 well they're wrong Oct 04 06:46:18 just giving back what I've seen Oct 04 06:46:22 why is sp better? Oct 04 06:46:24 BUT Oct 04 06:46:26 dp should still WORK Oct 04 06:46:30 they say dp is better for compatability Oct 04 06:46:33 sp adjusts for accessibility mode Oct 04 06:46:37 oh Oct 04 06:46:42 sp == dp for most people Oct 04 06:46:48 but if you check the "im blind" box, sp gets bigger Oct 04 06:47:05 Do you think sp would add any overhead to the app? Oct 04 06:47:10 ...no Oct 04 06:47:13 assuming you wanted performance Oct 04 06:47:16 :O Oct 04 06:47:26 ok, sp it is, thanks Oct 04 06:47:37 anyway i should go to bed Oct 04 06:48:06 no sleep until i get to tutorial 200 Oct 04 06:48:23 well yes vavirta I do want to learn how to script, and java, hell I want to learn c, c++, php, html, perl and a couple of other things but I don't have the time, I want to ease myself into this first, and learning java straight away will bring me little Oct 04 06:48:40 perl is fun Oct 04 06:48:48 but its nothing like c++ Oct 04 06:48:58 neither is java Oct 04 06:49:02 nor php Oct 04 06:49:06 not html Oct 04 06:49:08 nor* Oct 04 06:49:10 first want to get this app to display a text when I check the box Oct 04 06:49:12 you can just work on learning both at the same time Oct 04 06:49:13 java and php is lile cpp Oct 04 06:49:14 lol Oct 04 06:49:26 html and php are a bit similar but still different Oct 04 06:49:32 at least they work on the same basis of web Oct 04 06:49:39 and php uses html on a frequent basis Oct 04 06:49:40 php is closer to cpp Oct 04 06:49:49 Streudel: Oct 04 06:49:50 (02:41:15 AM) doogan: MyActivityName.this Oct 04 06:50:04 ty Oct 04 06:50:23 didn't see that Oct 04 06:50:24 >< Oct 04 06:51:17 all hail the C++ sekyourbox Oct 04 06:51:26 Sek my whatnow?! Oct 04 06:53:42 secure box Oct 04 06:53:47 or secure your box Oct 04 06:55:05 can eclipse show you a list of method properties? android:method="dropdown list" Oct 04 06:55:25 we are calling it a method, right? Oct 04 06:55:47 and we are calling the value a property? Oct 04 06:55:52 dont want to mess up the lingo Oct 04 06:58:30 ok, if i delete the autoadd it will show the list, but is there a shortcut for that? Oct 04 07:00:34 content assist shortcut button or something Oct 04 07:00:56 or is delete/retype the only option? Oct 04 07:01:17 ctrl+1 looks handy Oct 04 07:01:50 urh, php :/ Oct 04 07:02:49 CTRL SPACE !!! WOO HOOO Oct 04 07:03:19 hey guys, ctrl space will auto popup the content assist, in case you didn't know Oct 04 07:03:42 orly Oct 04 07:04:07 does that mean you used to program WITHOUT IT? Oct 04 07:04:08 omg Oct 04 07:04:33 that combination isn't even in my head anymore Oct 04 07:04:37 it's in my hands only Oct 04 07:05:08 I always program without it Oct 04 07:05:16 If it would show up by itself I'd probably use it Oct 04 07:05:24 it's like driving a car, if someone asks you which pedal is the break you think too much about it Oct 04 07:05:39 I am too lazy to type everything Oct 04 07:05:46 in a round about way, this reminds me that Chrome doesn't honor '/' for search =( Oct 04 07:05:50 Well, I use it when it DOES show up by itself Oct 04 07:05:52 Like after . Oct 04 07:06:08 especially with method names or variable names Oct 04 07:06:15 no way I am going to remember the exact name Oct 04 07:06:26 i just hit 2 characters and ctrl space and take my pick :) Oct 04 07:06:27 Haha, I usually do without trying Oct 04 07:06:32 Although sometimes I have to look at them once or twice Oct 04 07:07:03 if you do it over and over you could just type it faster Oct 04 07:07:20 i can't use IRC without tab completion either :) Oct 04 07:07:27 i never type people's nicks in completely Oct 04 07:07:33 i just hit tab until I find the right one Oct 04 07:07:33 :) Oct 04 07:07:34 that is a given Oct 04 07:07:37 ^ Oct 04 07:07:37 Snuffel: Oct 04 07:07:40 this is about the same thing Oct 04 07:08:09 tab complete would work good with the manual type-in if you knew exactly what the property was Oct 04 07:08:16 or method/whatever Oct 04 07:08:42 shoot, and wont type in android Oct 04 07:08:53 anyone know how to set that up? Oct 04 07:08:55 "android"/ Oct 04 07:08:56 ? Oct 04 07:09:12 android:gravity="center_horizontal" Oct 04 07:09:24 if I start off with and nothing Oct 04 07:09:27 i hit ctrl-space by the time I have reached the first " Oct 04 07:09:39 maybe even after : Oct 04 07:09:57 it should allow you to tab complete the first part Oct 04 07:10:15 if and only brings up android Oct 04 07:11:41 "and" Oct 04 07:12:38 if i could do and gra: That would be much faster than android: Oct 04 07:13:55 if you do android: ctrl+space then you can just type n it will narrow down Oct 04 07:14:17 I guess you have to just do a true, but what if you just want to narrow down the namespace Oct 04 07:14:23 oops Oct 04 07:14:26 2 sentences :( Oct 04 07:14:28 no sleep Oct 04 07:14:41 yes, you can ctrl+space enter complete Oct 04 07:14:44 like android: h will narrow down to linear_height Oct 04 07:15:02 I guess an extra second isn't bad Oct 04 07:15:11 i have to type the full android: before ctrl+space for that to work Oct 04 07:15:22 but then i only have to type a letter of the field i want Oct 04 07:15:24 start Oct 04 07:15:26 android Oct 04 07:15:38 well that took almost 3/4ths of a second Oct 04 07:16:22 you could make a hotkey to insert android: automatically Oct 04 07:16:37 :P i was thinking that Oct 04 07:16:50 I do have a programmable gaming keyboard Oct 04 07:17:07 actually Oct 04 07:17:12 i just realized Oct 04 07:17:31 before typing anything, just hit ctrl+space Oct 04 07:17:45 then start typing the field you want Oct 04 07:17:52 or a substrng of it Oct 04 07:18:15 ah Oct 04 07:18:19 lemme try Oct 04 07:18:52 he narrows down android:height and android:layout_height, and one arrow key will move me to layout_height if that's what i wanted Oct 04 07:18:57 not too bad Oct 04 07:19:36 cool cool Oct 04 07:19:48 once you get used to doing things the shorter way, it is much easier Oct 04 07:20:01 yeah Oct 04 07:20:08 know ur toolbox Oct 04 07:20:34 i'm a .txt coder.. IDEs confuse me too much because they set everything up for you. Oct 04 07:20:37 there might be one, but a good guide on just the ADT including shortcuts and such would be good Oct 04 07:21:00 sekyourbox: it's perfectly possible to do android dev in vim Oct 04 07:21:03 emacs or vim? Oct 04 07:21:04 string searching the help file has a lot of stuff in it Oct 04 07:21:12 right, a lot more work :D Oct 04 07:21:32 well not really if you use something to generate all those functions Oct 04 07:21:47 Esc Esc Esc :q (yeah, that's makes lots of sense...) Oct 04 07:22:06 lol Oct 04 07:22:13 why does everyone hate vim so much? Oct 04 07:22:17 it's good to know how to do things manually or from a cmd line / non graphical environment for different reasons Oct 04 07:22:21 better than v :p Oct 04 07:22:23 its aight if you dont have a mouse Oct 04 07:22:25 but, heh, IDE's can save an assload of time Oct 04 07:22:33 vi* Oct 04 07:22:43 still prefer emacs keybindings any day tho Oct 04 07:22:49 anyone use xmonad or similar tiling WM? Oct 04 07:23:02 right.. last time I touched java, it was core java 2 Oct 04 07:23:21 j2se 1.3 Oct 04 07:23:23 Hi to all the android developers here :) I have some question to all of you: When you write an app, that has some kind of remote data on a server, what do you find the hardest, annoys you most or what part of your synchronization you think, android could take care about. And you shouldn't need to write it youself? Answers are very welcome :) Oct 04 07:23:41 uhhh Oct 04 07:23:53 what? Oct 04 07:23:54 people that chime in with "I use vim, or I use emacs" its a masochism thing... yeah i use both those things too... to edit fucking text files on unix boxes Oct 04 07:24:19 I prefer pico/nano. Oct 04 07:24:22 timroes: you working on something like parse? Oct 04 07:24:22 there are some people that are very proficient with emacs/vim Oct 04 07:24:22 lol Oct 04 07:24:40 intellisense and code completion isnt cheating really, it just makes life simpler and let you focus on the design not so much remembering every last package name etc Oct 04 07:24:51 and some hardcore emacs people are, well, hardcore. with all the custom keybindings and shit. of course, they are dead in someone else's chair, cause it's all custom Oct 04 07:25:04 vim isn't too bad.. Just confusing for people who havent used it Oct 04 07:25:27 true Oct 04 07:25:31 Leeds: yeah kind of. I am beginning my master thesis, and the topic isn't set too fixed yet, but will be about syncronisation for android devices Oct 04 07:25:38 i know some developers that use vim/emacs and they are faster than me with eclipse Oct 04 07:25:39 so i am catching for ideas, what is still missing the most Oct 04 07:25:40 it has high learning curve Oct 04 07:25:57 speakingcode: they must have add-ons Oct 04 07:26:13 eclipse + vim-plugin is really great Oct 04 07:26:21 plugins/ Oct 04 07:26:54 I'd actually go so far as to say vi can REALLY help you speed certain processes up Oct 04 07:27:04 i duno. one in particular i'm thinking of uses python, he has syntax highlighting (is that built in? heh) but he is just fast because he's used to it i guess Oct 04 07:27:05 but I dont think its an ide replacement in any way shape or form Oct 04 07:28:10 keyboard only, like hackers on TV Oct 04 07:28:18 i like being able to manage files, step through code and inspect things visually, edit, build, search, etc all in one place Oct 04 07:28:43 anywho, time to turn in and start again tomorrow Oct 04 07:28:53 how long to become an "expert"? Oct 04 07:28:55 ron_frown: because vi (or vim) isn't ide, it can't replace it Oct 04 07:28:59 if I do 40hrs a week? Oct 04 07:29:14 but for editing text, it is superior Oct 04 07:29:33 this stuff seems pretty easy.. Graphics might be interesting thouhg Oct 04 07:29:35 gh Oct 04 07:29:37 sekyourbox for vim or for android? Oct 04 07:29:42 o Oct 04 07:29:43 android app programming Oct 04 07:29:50 man, i dunno. you have java experience? Oct 04 07:29:59 basics Oct 04 07:30:07 i've been doing it full time for over a year now and i don't feel close to expert Oct 04 07:30:16 heh Oct 04 07:30:24 I'm an expert in reading the docs - which most people seem to fail on Oct 04 07:30:30 speakingcode: same thing here Oct 04 07:30:30 and that's with 5 years of java in school and ~12 years programming Oct 04 07:31:06 yeah, as Leeds hints, learning the documentation and how to find your answers there are key Oct 04 07:31:26 Leeds javadocs often leave a *LOT* to be desired =) Oct 04 07:31:28 video tuts are good Oct 04 07:31:29 k so I got the check box setup to display a msg when it checked and when it's not.. Oct 04 07:31:32 how do I end it? Oct 04 07:31:36 is there 'end;' ? Oct 04 07:31:42 ... Oct 04 07:31:56 wat Oct 04 07:31:56 sry for the dumb question :( Oct 04 07:32:03 End what? Oct 04 07:32:04 ron_frown true but the android docs are pretty damn good, especially if you include the dev guides and the "training" docs Oct 04 07:32:12 the function Oct 04 07:32:21 between that, here, stackoverflow and just plain trying... one can do anything Oct 04 07:32:21 speakingcode I moved away from needing most of that shit long, long long ago Oct 04 07:32:23 the way it's setup currently it runs 1 then the other Oct 04 07:32:26 let me show you.. Oct 04 07:32:27 but a lot of times theres no answers Oct 04 07:32:30 just raw references Oct 04 07:32:36 liek for example not android related Oct 04 07:32:39 Streusel: you call "this_is_the_end_oh_fuck_I_need_to_learn_Java_before_doing_this();" Oct 04 07:32:51 http://upaste.me/a7b71258d97df8db Oct 04 07:33:14 if checked it runs 'Private Paste' and then shortly after 'Public Paste' Oct 04 07:33:20 ahh fuck Oct 04 07:33:30 I just found documentation for the java lib I was looking ofr for like 4hr the other night Oct 04 07:33:37 lol Oct 04 07:33:39 Streusel, Oct 04 07:33:47 But I just want it to diplay private if checked >< Oct 04 07:33:52 http://www.perforce.com/perforce/doc.current/manuals/p4java-javadoc/index.html Oct 04 07:33:54 like that Oct 04 07:33:59 http://upaste.me/67bf125933be5b55 Oct 04 07:34:06 Here. Oct 04 07:34:09 ty Oct 04 07:34:14 theres very little in the way of examples so sure you know I need to ultimately use x class ,but dont know how to get from point a to point b Oct 04 07:34:24 ahh else functions work here Oct 04 07:34:26 that's cool Oct 04 07:34:28 well Oct 04 07:34:29 <.< Oct 04 07:34:33 This ain't Basic, yo Oct 04 07:34:45 ron_frown thats really vague, but generally i would say that's up to the developer Oct 04 07:34:48 thats the beauty of most msdn documentation on c# Oct 04 07:34:48 wait. Oct 04 07:34:52 It worked in basic, too. Oct 04 07:34:55 the docs tell you whats in the box, up to you to assemble Oct 04 07:35:04 well I know partial html, php and some messed up c mix script language so some stuff isn't new it's basic repetition. Oct 04 07:35:09 its very clean, and a lot of the time they give you the most basic examples of how to use this method Oct 04 07:35:20 as you go within a platform you get used to the patterns that emerge Oct 04 07:35:25 yes I know thats up to the developer, thus why I said a lot of the time javadocs leave a lot to be desired Oct 04 07:35:26 Streusel, that's okay, you'll get used to it. Oct 04 07:35:46 yeah, i dunno. i've only dabbled in windows dev and the docs were too, i dunno Oct 04 07:35:47 speakingcode: I would also consider the android docs the best I had yet the pleasure to work with Oct 04 07:35:49 anywya fuc it Oct 04 07:35:56 off to dreamland dreaming of my new bike =) Oct 04 07:36:17 on the other side, OpenCV definitely had the worst documentation, I ever saw :) Oct 04 07:36:25 right Oct 04 07:36:30 thanks for the help ^^ Oct 04 07:36:31 heres a bunch of examples. fuck those, i don't want to do what the example does, i want to know the interface and the general pttern . shrug Oct 04 07:36:46 no documentation is the worst dcumentation :-D Oct 04 07:37:11 speakingcode: if you ever read the OpenCV doc , you know there is worst documentation then no documentation :D Oct 04 07:37:16 haha Oct 04 07:37:24 because in fact its documentation is no documentat, but somehow you expected there to be some Oct 04 07:37:29 later ron_frown Oct 04 07:37:33 getting that ducati? Oct 04 07:37:35 example: cv::applyFilter -- Applies a filter. Oct 04 07:37:39 that was all documentation about the method Oct 04 07:37:40 Streusel, np. I won't mind helping with other simple stuff if you need anything else Oct 04 07:38:47 hmm, well I could test around this a little but if you're open to help, I just gave my checkbox a text, I however want the text to be on the left and the checkbox on the right, currently it's the other way around Oct 04 07:38:50 once i had to work with this "self documented" code for a library that works with a hardware device Oct 04 07:38:54 I suppose I could do with gravity function Oct 04 07:39:13 horrible :) Oct 04 07:39:21 ibash? Oct 04 07:39:40 Streusel: you need to slow down and learn what you're actually doing Oct 04 07:39:46 yes leeds Oct 04 07:39:57 I love jumping in though Oct 04 07:40:03 I find it easier to learn Oct 04 07:40:04 it was pissing me off cause it wasn't OO at all. had a bunch of filed members, and a bunch of methods, one callign the next at the end in a change, making changing to the fields as they go, passing nothing Oct 04 07:41:10 how do you unit test shit like that, heh Oct 04 07:41:18 great done :) similiar to the OpenCV stuff, they ported it from C, so instead of the method cvApplyFilter there was now cv::applyFilter, still you have to pass every variable to every method, no real classes :) Oct 04 07:41:36 but i heard they have improved that, in fact 2 year ago since I last worked with it Oct 04 07:41:48 luckily since then never had to touch c++ again :) Oct 04 07:44:07 cool Oct 04 07:45:59 How would the performance impact be if i create a thread in Java which calls a C Function via JNI and sends data to main thread to display vs I create a thread in C and on data availability attachThread send data to Java and detachThread Oct 04 07:53:25 Mornin' all! Oct 04 07:56:44 wow, 4.1 broke SimpleDateFormat for Amazon AWS as the date in the header is expected to have +00:00 after the GMT which changed between 4.0 and 4.1 Oct 04 07:59:54 Hey guys, Oct 04 08:04:41 I'm running a client->server->GCM->client connection, the client sends a string array to the server and according to the data on the server I want to send back a new array of strings of which the size is unknown. I want to know what will be the best way to set such string and send it back as a GCM messege Oct 04 08:05:10 a restful webservice? Oct 04 08:09:39 I'll look it up Oct 04 08:12:32 can I send an array over GCM? or just key-value pairs? Oct 04 08:12:56 sasson: just key-value pairs Oct 04 08:13:50 so when they say you can send up tp 4kb of payload... it's just for plain text? Oct 04 08:13:51 at least it was like that with C2DM ... Oct 04 08:14:24 Look at the doc here : http://developer.android.com/guide/google/gcm/gcm.html#send-msg Oct 04 08:15:27 JSON should do the trick Oct 04 08:59:01 anybody with experience on sonar+maven? Oct 04 09:15:04 hehe, subject is surprisingly helpful: thank you :D Oct 04 09:31:32 how does one create a new app store / install an additional code signing certificate? Is this possible without rooting the device? Oct 04 09:35:09 hmm, what is the best way to handle a menu layout that has some common elements, which I'd like to create and handle in common code? Oct 04 09:35:22 can .xml layout files inherit from each other? Oct 04 09:36:21 ah, Oct 04 09:41:46 erm.. how can I set the spacing between table layout columns? Oct 04 09:42:25 and also the rows too? Oct 04 09:53:53 gah I hate working with the android sql database Oct 04 09:55:04 Me too Oct 04 09:57:16 Been eyeing some of the ORM tools, haven't found the ideal one yet, though. Oct 04 09:58:49 damn, doesn't seem that works in menu XML Oct 04 09:59:08 android works on the principle of "most surprise" Oct 04 09:59:34 It's your birthday... EVERY day! Oct 04 10:00:28 erm.. how can I set the spacing between table layout columns and rows? Oct 04 10:01:49 layout:margin? Oct 04 10:02:47 g00s: heh Oct 04 10:03:01 it seems I can inflate multiple times though, http://stackoverflow.com/questions/8082540/merge-tabactivity-menu-with-contained-activities-menus Oct 04 10:03:22 ...aaaand it doesn't work Oct 04 10:03:24 * mathrick debugs Oct 04 10:04:37 ah, messed up my inheritance Oct 04 10:05:07 Snuffel, ok Oct 04 10:05:21 i googled that Oct 04 10:06:19 http://pastebin.com/8zB6uepF <- okay this gets the int field correctly but for some reason string field is shown as [Ljava.lang.String;@4055d8f0 and only after that the string value is shown Oct 04 10:06:26 what's the excess there all about? Oct 04 10:07:22 I want to make a MP game, is it madness to be willing to write the networking myself? Oct 04 10:07:34 if you think it's fun Oct 04 10:07:58 as I don't have much experience with frameworks, but have (in the past) wrote my share of clients and servers Oct 04 10:08:11 me too ..and how can I set the colors through xml? i remember something like this value : @android/color:black ? is this correct? Oct 04 10:08:57 superlinux-hp: Yep that's OK Oct 04 10:08:58 superlinux-hp: try googling that Oct 04 10:09:17 i'am Oct 04 10:09:22 cool Oct 04 10:09:27 How to you detect clicks with GestureDetector? Oct 04 10:09:41 superlinux-hp: @android:color/black will work ;) Oct 04 10:10:02 I am not working to frank... I mean in reality all i do is googling instead of really coding. Oct 04 10:10:05 what's a "click" on a touch screen? Oct 04 10:10:16 *to be frank Oct 04 10:10:23 superlinux-hp: so am I, i call it work :) Oct 04 10:10:35 heh! Oct 04 10:10:36 Snuffel: The equivalent of the onClick(View) Oct 04 10:10:52 Snuffel: well said Oct 04 10:16:48 I have a textlayout.. it has 2x2 textviews for multiple choice questions. now, if i try to keep the correct choice visible, and hide the rest, it crashes the application. so what should I do? Oct 04 10:17:43 i have given all the 4 textviews well defined id's and variables i can use them directly Oct 04 10:21:42 i found it Oct 04 10:22:00 hi, how can i close the soft Keyboard on "onCreateView" of a fragment that contains no EditText fields? Oct 04 10:22:14 i was using a linear layout object before i used the tablelayout Oct 04 10:22:33 i was using a linear layout parameters object before i used the tablelayout Oct 04 10:22:45 because I dont want to go and write it on any of the other 20 fragments that go to this view Oct 04 10:22:52 20 times over Oct 04 10:38:11 hello guys, is it possible to use an existing activity when answering to a notification? Oct 04 10:38:36 instead of creating a new one Oct 04 10:42:36 mi6_x3m, answering ot a notification? Oct 04 10:42:39 to* Oct 04 10:42:51 Blou_Aap: clicking on it, found out 'singleTop' as an activity launch mode Oct 04 10:57:32 is there honestly no other way to close a soft keyboard without using the last EditText ? Oct 04 10:58:01 I really do not want to write a global method and go ad it to 20 different fragments' EditTexts Oct 04 11:07:59 any arab over here guys? I have a trouble in selecting a font that can display this charachter "la" (ﻻ). i want a font that looks serious and official similar to Arial. the "la" is showing a dash along the letter. this dash is annoying. Oct 04 11:08:10 please help. Oct 04 11:09:30 arabice, hmm Oct 04 11:09:57 try looking for nastaaliq Oct 04 11:10:10 not official but definitely neat Oct 04 11:10:35 Hello all .. i am deeply stuk with a problem from the last 1 week .. and need some directions Oct 04 11:10:49 can some one help please Oct 04 11:10:59 Loonacy, ok Oct 04 11:11:22 Loonacy, write the name in arabic please of the font Oct 04 11:13:09 you need font for arabic or persian Oct 04 11:13:27 نسطاليق؟ Oct 04 11:13:52 nopes Oct 04 11:14:27 نستعلیق Oct 04 11:14:29 ماذا كان ذلك؟ Oct 04 11:14:33 http://en.wikipedia.org/wiki/Nasta%CA%BFl%C4%ABq_script Oct 04 11:14:44 oh Oct 04 11:15:10 شفرة سرية Oct 04 11:15:33 there is also a maktoob as well Oct 04 11:16:13 Hi! Is the package attribute in the android manifest the id under which you can find it in the google play store? Oct 04 11:16:39 bogey call, there is no font as maktoob Oct 04 11:17:59 Can we start auto-run from android to dekstop , as th eusb gets connected ? Oct 04 11:18:08 *usb Oct 04 11:20:34 kr1d: yes Oct 04 11:32:17 Hi all .. Can we start auto-run from android to dekstop , as th usb gets connected ? Oct 04 11:33:00 hi, i have a C++ library which i would like to use in an android app. The C++ code uses the __sync_lock_and_test gcc intrinsic. I was able to compile the library using ndk-build. However, during linking the library i get an undefined reference to __sync_lock_test_and_set_8. I configured APP_STL to be gnustl_shared and have LOCAL_LDLIBS:=-lgcc. What do i miss? Oct 04 11:35:53 I hope this is the right place to ask ... Oct 04 11:42:39 heller, right place, but no NDK expertise available at present, apparently. Oct 04 11:42:43 It's early yet ;-) Oct 04 11:42:55 mid of day for me :P Oct 04 11:43:34 well consider asking again in about 5 hours, when most US based devs would be awake on both coasts Oct 04 11:44:11 mrenouf: right Oct 04 11:44:12 no expert, to me it sounds like just a missed library Oct 04 11:44:21 mrenouf: i think (hope) i found my problem though Oct 04 11:44:41 __sync_lock_test is a gcc intrinsich Oct 04 11:44:44 *intrinsic Oct 04 11:44:59 shouldn't need to link against an extra library Oct 04 11:46:13 it's possible its not supported on Android? There might be a different way to do what you need? Oct 04 11:46:30 yes Oct 04 11:46:39 i used uint64_t as the lock variable Oct 04 11:47:00 and it looks like the 64 bit version of that function is just undefined Oct 04 11:47:36 which makes sense ... as it would probably perform poorly on a 32 bit CPU like the ARM Oct 04 11:54:19 how can i sort a jsonarray ? Oct 04 12:01:36 dark_element: check elements and make a array about sorted indexes Oct 04 12:06:19 Hi, I am working with latest version of actionbarsherlock... when i complile actionbarsherlock and my project on api level 15 its working without errors .... but as soon i bring the api-level down to 8 which is the minimum api i am targeting the project shows errors... .. i want an action bar on android 2.2 and above but this thing is defeating the whole purpose .. Oct 04 12:07:13 digitalfallacy, you should keep your targetsdk at 15, but your minsdk at 8. Oct 04 12:08:00 dfdar: but how to run the project on a 2.2 emulator... when i keep the target level as 15 its shows only emulators 4.03(api 15) and above Oct 04 12:08:20 did you set minsdk in the manifest.xml file? Oct 04 12:09:17 yes i did set it to 8 Oct 04 12:09:51 I guess Jake did a really good job with the ABS thing. Incredibly large number of people appear to use it. Oct 04 12:10:24 Jake did a really good job and Google done messed it up incredibly. Oct 04 12:10:54 I guess it can't be avoided: the android team doesn't do as good job as would be ideal. Oct 04 12:11:36 One would expect a multi-billion dollar company like google to be able to deal with something seemingly trivial. Oct 04 12:11:44 hell, who does. Still, I'd expect better bugfixing. For instance, I discovered a bug in ZipFile and heard it was supposedly fixed but here I am, on android 4.1 and I think it's still broken. Oct 04 12:12:17 Although I confess I haven't checked it lately. ZipFile can't read zips with more than 32768 files is the issue I ran into. Oct 04 12:12:44 due to signed expansion of short to integer, resulting in comparison to being < 0 for file count, which terminats the enumeration before it even begins Oct 04 12:13:14 Is there any other way also which can be used to port actionbar to pre honeycomb releases Oct 04 12:15:55 Just fix ABS :) Oct 04 12:16:35 HDroid: Ok Oct 04 12:17:17 JakeWharton: Nice to find you here ... you did a really great job with ABS Oct 04 12:18:12 digitalfallacy: did you know jake Wharton once wrote 100 libraries just to make a woman cry Oct 04 12:18:32 mrenouf: just for reference. it was indeed the use of uint64_t Oct 04 12:19:21 digitalfallacy, I have no problems deploying to a 2.2 emulator with ABS. Try looking at the "run configurations" menu and make sure you aren't excluding the avd you want. Oct 04 12:21:40 dfdar: In project properties > android > what have you set target build to ... i am not being able to set anything below 4.03 here or project develops errors Oct 04 12:22:30 digitalfallacy, that's correct. it needs to be API LEVEL 15 Oct 04 12:23:12 make sure your minSdkVersion="8" or whatever you want, and you will indeed be able to launch on those emulators Oct 04 12:24:30 digitalfallacy, I use this uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" Oct 04 12:28:20 mrenouf: dfdar : you do mean setting android:minSdkVersion="8" android:targetSdkVersion="15" in both ABS and my project and not just ABS Oct 04 12:29:48 the only important one is your project as far as I know. Oct 04 12:39:20 hi. why the mediaplayer crashes inside my application and the application keeps moving on? i have no try-catch clauses Oct 04 12:41:10 i have the mediaplayer server died Oct 04 12:48:57 dfdar: eclipse seems to be filtering out devices below targetsdk , as per some of the googling i did in the meanwhile. Oct 04 12:58:09 digitalfallacy: I don't think so, I've done what you're describing and eclipse let me debug my app on a 2.2 virtual device and a 2.3 phone Oct 04 12:58:49 I haven't built an application with an Anti-lock Braking System, though Oct 04 12:59:01 bah? Oct 04 12:59:19 Hodapp: bah? Oct 04 13:00:48 Hey guys. What are the preferred ways of caching HTTP responses? Currently I am doing my own caching in internal storage-. Oct 04 13:01:24 digitalfallacy eclipse is not doing what you describe to me. I think you have a different problem. Oct 04 13:01:36 raxraz: depends entirely on what can and should be cached Oct 04 13:02:16 digitalfallacy try going through this codelab, it might help: https://plus.google.com/118292708268361843293/posts/LwdBkqv9dgG Oct 04 13:02:46 deebo, json GET responses. Some should be cached ~5 min. Others for longer periods. I am using DefaultHttpClient. Oct 04 13:03:29 Ankhwatcher: anti-lock braking system? Oct 04 13:05:35 raxraz: well if you actually get cache hits, and you arent prematurely caching, just save them in a database? Oct 04 13:05:59 * mr_lou is slightly disappointed there still doesn't seem to be any preprocessing options for Android development. Oct 04 13:07:15 deebo, I am asking since I am very new android(and java). If a database is a good choice I will check it out right away - thanks :) Oct 04 13:09:27 * mr_lou wonders how developers develop the same App for multiple resolutions without preprocessing. They create multiple copies of their project and manually copy any change they make to the code into each project-copy? Oct 04 13:10:37 Hey guys Oct 04 13:10:37 Would be nice to be able to create multiple target platforms, and do some source filtering, just like NetBeans offers with J2ME development. Oct 04 13:12:13 I need some help, I want to attache a JSON object to a GCM messege... in the android dev web site they only show how to create the JSON directly as part of the GCM. I want to attach a JSON ovject already ready to the GCM... Oct 04 13:20:19 mr_lou: you mean different code for different device configs? Oct 04 13:22:16 appel1, Well... yes. That + some way of selecting different Resources for each target. Reading this at the moment: http://www.ulrich-scheller.de/2011/10/multiple-targets-from-one-android-source-the-better-way/ Oct 04 13:23:17 mr_lou: you mean this http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources ? Oct 04 13:23:49 hrm, so I have $device where I doubt any ADB drivers exist yet, and I can copy an APK to it, but I lack a file manager... Oct 04 13:24:19 appel1, No. Doing it that way includes all graphics in the same apk. Oct 04 13:24:27 appel1, I mean all Resources Oct 04 13:24:32 Hodapp: you can modify the kernel to report identification values matching existing drivers Oct 04 13:24:43 p_l: Which kernel? Oct 04 13:24:50 Hodapp: $device one Oct 04 13:24:57 mr_lou: true, but that isn't a problem in most cases =) Oct 04 13:25:06 p_l: How do you propose I get a modified kernel on $device? Oct 04 13:25:09 the USB guest is a module that contains configuration of the device Oct 04 13:25:15 appel1, Well I dont want it. ;-) Oct 04 13:25:21 appel1, Although, for icons and such, it's fine. Oct 04 13:25:25 Hodapp: well, they usually have some kind of flashing mode ;) Oct 04 13:25:38 mr_lou: sounds like a pain to manage the different apks if you split it up Oct 04 13:25:51 p_l: it's a Nikon Coolpix S800c. Oct 04 13:25:55 Hodapp: also, there's the fact that linux adb tends to work with all devices as long as they have the debug channel exported Oct 04 13:25:57 mr_lou: but I guess you'll be happy whenever they're done with the new build system Oct 04 13:25:58 I have set : android:footerDividersEnabled="true" but it will work only if I add the footer as selectable. Is there any work around for this? Oct 04 13:26:08 appel1, But I don't want to include Resources for e.g. 4 different targets, making my App up to 8 times bigger than it has to be, e.g. if we're talking different sized graphics for different resolutions. Oct 04 13:26:09 p_l: unfortunately, I lack a Linux machine at work. Oct 04 13:26:19 heh Oct 04 13:26:24 virtual machine would do the trick Oct 04 13:26:34 hmm, I suppose Oct 04 13:26:35 appel1, Maybe I won't. (I'm using NetBeans) Oct 04 13:26:50 as long as the device is supposed to support ADB, it should work Oct 04 13:27:13 you can also modify the .INF file of ADB drivers from SDK to include IDs of the device Oct 04 13:27:20 I'm going into a VM to at least try to get a USB ID Oct 04 13:27:26 if I can make VBox forward that Oct 04 13:27:28 (otherwise windows can't match the device) Oct 04 13:28:11 mr_lou: if it is 30kb * 8 I doubt anyone cares :) but if you have hundreds of mb I can understand ;) Oct 04 13:28:13 I more need to run an arbitrary APK than I need actual ADB support Oct 04 13:28:35 Hodapp: +, then go into device manager or something like that, find the device (might be listed as "unknown") then in properties you can look up USB IDs by checking device paths Oct 04 13:28:39 appel1, It's not. But even if it was, *I* would care. ;-) It's just the principle. :-) Oct 04 13:28:44 p_l: I've got it in Linux Oct 04 13:29:21 https://groups.google.com/forum/?fromgroups=#!topic/android-discuss/ky_YMMxPxQ4 hmmmmm Oct 04 13:29:30 mr_lou: you could download graphic resources when needed.. should make your apk really small =) Oct 04 13:29:56 what the hell? I suddenly started getting "insufficient permissions for device" from adb for my emulators Oct 04 13:30:02 the Wifi here is locked down, but could I tether via Bluetooth to another Android device? Oct 04 13:30:07 I didn't do anything in particular to them Oct 04 13:30:10 appel1, Yea, thought about that option..... Oct 04 13:30:16 any idea what's wrong? Oct 04 13:30:32 can some1 help me with the GCM + JSON thingy ? Oct 04 13:30:53 appel1, I do think though, after reading a bit, that I might be able to live with that proposed solution on that page I linked to: http://www.ulrich-scheller.de/2011/10/multiple-targets-from-one-android-source-the-better-way/ Oct 04 13:31:41 ooooooh Oct 04 13:31:43 I see Oct 04 13:31:44 appel1, He proposed to just put all the main code (that can be reused for all targets) into an Android Library, and then just include that library in all other projects. Oct 04 13:31:49 I connected my phone to charge Oct 04 13:32:18 dfdar: Ankhwatcher I was able to set target in my run configurations as manual with my android emulator 2.2 started and was able to run the app on 2.2 .. :) Oct 04 13:32:20 mr_lou: that works I guess Oct 04 13:33:46 sasson: what do you mean by GCM? Oct 04 13:35:03 hm, "paired but not connected" via bluetooth Oct 04 13:35:17 and don't want to wait for $slow_IT_guy to add the MAC address to the Wifi as that'll take him forever Oct 04 13:36:07 no idea if I'm succesfully tethered or not. Oct 04 13:36:34 hi, i need to write appointments to the calendar. I know of CalendarContract and its subclasses, but that only works on api >= 14. does anyone know of a calendar abstraction library that handles add to calendar events on all android platforms equally? (i know of the unsupported / undocumented contentprovider way, but it seems very unstable) Oct 04 13:37:08 appel1, Maybe, maybe not. People seem to complain a bit in the responses. :-/ Oct 04 13:37:49 appel1, I love how with J2ME development, I can just select which resources to use for each target. It's part of the Project Properties GUI. Oct 04 13:39:17 gaaah, keep getting "Paired but not connected"... freaking Bluetooth Oct 04 13:41:08 hm, and I don't suppose any way exists to just make the device use the PC's Internet connection via USB? Oct 04 13:43:40 can view the 'Downloads' dir but I don't know where on the card it maps, hrm Oct 04 13:44:37 appel1, Seems to be recommended way to do it though. http://developer.android.com/training/multiple-apks/screensize.html Oct 04 13:45:45 Oct 04 13:54:07 w00t, I can just set up my Macbook as a wireless access point, put the package up in an HTTP directory... and then get Android to tell me it cannot parse the package, whatever that means. Oct 04 13:54:43 Sometimes you've gotta try a second (!) time Oct 04 13:54:56 I.e. reclick the completed download Oct 04 13:55:08 first I'm gonna see if it's that the package really is just screwed-up Oct 04 13:55:13 or I did it for the wrong API or something Oct 04 13:55:13 Hi... I'm trying to add Facebook sharing to my app. I have place where I save shared preferences (user and pass). Now, I have 2 issues. 1) how to use saved username / password to share image on my FB Wall? 2. (I know it is not adwised) how to aviod SSO. I would like my users to be able to share images only if they have set settings within my app, I dont check if they are using FB app. Oct 04 13:58:12 installing from the APK leads to 'waiting for the debugger to attach'... what? Oct 04 13:58:37 I'm not even connected via USB, why would it be waiting? Oct 04 14:00:37 oh, guess I just needed to restart the phone, hrmph Oct 04 14:08:04 Is there any reason that I wouldn't be able to change a tab's width in an ActionBar? I can change, e.g., background color, but it seems to ignore width style settings no matter how many places I try to enforce it... Oct 04 14:09:35 Hi! can anyone help me create binary for android? Oct 04 14:10:05 FireAndIce: 100101110101101101010001110101010101110010101010111111 Oct 04 14:10:30 can some1 explain to me how to send JSON with GCM (using com.google.android.gcm.server.Sender class) Oct 04 14:12:21 siiiiigh, Android, "Wifi is not giving out addresses" is not the same as "Not in range". Oct 04 14:12:25 * Hodapp glares at device Oct 04 14:13:45 FireAndIce: or did you have some other sort of binary in question? Oct 04 14:14:01 erm, in mind Oct 04 14:14:19 I would like to thank Browser for changing the name of the APK I just downloaded, thus invalidating its signature. Oct 04 14:14:21 Leeds, I'm trying to create binary from source code and push it on android device. Oct 04 14:14:23 gaaah. Oct 04 14:14:41 sasson: find out where to send the msg, then send the msg Oct 04 14:15:28 FireAndIce: presumably this is the source code to... OS/2? Oct 04 14:16:24 Leeds, the source code is in C language and I want to create a binary android. Oct 04 14:16:53 FireAndIce: are you deliberately not giving the minimum possible information? Oct 04 14:17:44 Leeds, initally I created the binary on my ubuntu desktop and then pushed it on the device. I'm telling you all I know. Oct 04 14:18:02 what is the program? Oct 04 14:18:15 Leeds, tcpdump Oct 04 14:18:19 FireAndIce: are you using the ndk to compile your bin? Oct 04 14:19:02 FireAndIce: http://developer.android.com/tools/sdk/ndk/index.html Oct 04 14:19:06 Leeds, I've downloaded the ndk but I dont know how to configure the arm-gcc for tcpdump source. Oct 04 14:19:13 you need to use the cross-compiler tools to compile your bin. Oct 04 14:19:23 for tcpdump, I fear you'll need sources for whole system Oct 04 14:19:36 that is, a full AOSP buildsystem Oct 04 14:19:43 AOSP comes with tcpdump iirc Oct 04 14:19:47 so when you say you 'created the binary' on your desktop, you mean you compiled it for x86 and then tried to run it on Android? presumably on an ARM device? Oct 04 14:19:48 as tcpdump relies on data about system datastructures Oct 04 14:20:08 Leeds, yes.. Oct 04 14:20:17 hi , i am trying to show a street address in various maps application , this is the code http://pastebin.com/VnYQHhFU Oct 04 14:20:40 chinmaya: good for you! Oct 04 14:20:45 p_l, Are you sure I'll need the entire AOSP buildsystem? Oct 04 14:20:54 the above code does not work in google earth application but works on the google maps , how to make it work in google earth ? Oct 04 14:21:08 lov : thanks ^ Oct 04 14:23:48 Leeds, is it not possible to create tcpdump binary without AOSP buildsystem? Oct 04 14:24:17 FireAndIce: I have no idea Oct 04 14:25:00 lov, is it not possible to create tcpdump binary without AOSP buildsystem Oct 04 14:25:01 ? Oct 04 14:25:51 FireAndIce: you'll need at least the important building blocks of userland, even if you can bypass the framework itself Oct 04 14:26:44 p_l, thanks a lot for your help.. :) Oct 04 14:27:10 is using 80% of heap size a problem? Oct 04 14:27:43 im on a device where the heap size can grow to as much as 40+ and right now its at 25 with me using about 85% of that Oct 04 14:28:04 is being signficantly above 50% a problem? Oct 04 14:35:32 grrrr. Still getting "There is a problem parsing the package." on the camera; I wonder if it's mucking up the APK's filename again Oct 04 14:35:46 as I don't get a parsing problem on the Galaxy with the same APK, but transferred differently Oct 04 14:45:03 Hey all... I am getting an error in ADK when trying to create new layout version with a weird "File 'res/layout-land' already exists!" message... Oct 04 14:45:26 Wish me luck? compiling my first AOSP ROM? don't really know how this is gonna turn out. Oct 04 14:45:35 Lachezar: Does it exist? Oct 04 14:45:59 Hey Oct 04 14:46:05 yo Oct 04 14:46:26 Im having some trouble with a list view that contains a bunch of rows, the onClick listener doesn't get called until the list has been scrolled a little bit Oct 04 14:46:46 The rows are custom with a text view and an image view (neither of which are clickable or focusable) Oct 04 14:48:07 not too familiar, but aren't you supposed to use onListItemClick? Oct 04 14:48:45 dingurt, +1 Oct 04 14:48:45 that is what I am using Oct 04 14:48:49 sorry - I typed the wrong thing Oct 04 14:48:50 Hodapp: Of course it exists! Oct 04 14:48:54 ah, then no clue Oct 04 14:49:04 onListItemClick(...) is the method I'm hooked up to Oct 04 15:08:49 mornin Oct 04 15:18:27 how do I determine what build I need to create for a certain device (maguro, grouper, etc...)? Oct 04 15:19:19 huh, dingurt? Oct 04 15:19:28 or those models of handsets? Oct 04 15:19:42 sorry, for building an AOSP ROM from google source Oct 04 15:25:23 o Oct 04 15:34:02 RE. I am doing bar-code reading (personal solution based on ZXing) and I need to load data from the server for every barcode scanned. Normally I would create a queue and a background thread. What's the 'correct' way to do this in Android? AsyncTask is not really a solution. Oct 04 15:34:26 depends on what you need Oct 04 15:34:30 service with a background thread Oct 04 15:34:32 or an asynctask Oct 04 15:34:36 or a handler on a background thread Oct 04 15:35:06 Probably a service. Oct 04 15:35:50 pfn: I only need it in one activity, so Service is probably an overkill. AsyncTask is not really well prepared to handle consecutive requests, and multiple AsyncTask seems plain wrong... The Handler+Thread seems reasonable... Oct 04 15:36:59 lov: Even if I do it as a service... I still need to provide the Asynchronous part... That's what bothers me mostly... Oct 04 15:37:04 Lachezar: consider having a singleton which you can have your activity register for callbacks. Oct 04 15:37:15 Lachezar: so? Oct 04 15:37:30 Honestly, what you would "normally" do is totally reasonable. Oct 04 15:37:30 I really don't see the point of a service if there's just one activity. Oct 04 15:37:35 You just ought to do it outside of the context of Activity. Oct 04 15:37:36 It's a lot of boilerplate Oct 04 15:37:36 lov: Singleton: BLEH! Oct 04 15:37:54 HDroid: My sentiments exactly... Oct 04 15:38:07 OH NO SINGLETONS?!?!?! Oct 04 15:38:27 lov: The 'normal' thing requires a thread... I've come to suspect, that Threads shoudl be avoided in Android... Oct 04 15:38:34 no, absolutely not! Oct 04 15:38:37 The activity is a singleton already Oct 04 15:38:49 You should definitely embrace threads, just because you get your processing off of the UI thread Oct 04 15:38:52 lov: Then I have my answer... Oct 04 15:39:00 Android is a threadless language Oct 04 15:39:02 there are no threads Oct 04 15:39:04 HDroid: Activity is NOT singleton! Oct 04 15:39:07 What you should not do, however, is have your background processing tied to a particular activity. Oct 04 15:39:17 remember, your activity can be finished while your thread is still going Oct 04 15:39:18 mikedg_: ...Android's not a language though Oct 04 15:39:21 you need to handle that case. Oct 04 15:39:37 Hodapp: yes it is, beep boop bahhhhp Oct 04 15:39:44 o_O Oct 04 15:40:00 lov: Yes, I suspect I'll have to interrupt the thread in onPause() and create a new one in onResume(). Oct 04 15:40:10 Lachezar, HandlerThread + Handler = easy Oct 04 15:40:49 pfn: Is there an example/tutorial? Oct 04 15:40:54 Lachezar: open a server socket in your thread, and connect to it from the activity Oct 04 15:41:01 when the activity is destroyed disconnect Oct 04 15:41:04 Lachezar, look at apidoc to HandlerThread Oct 04 15:41:04 Oh... HandlerThread is a class!!! Oct 04 15:41:26 and create/destroy handlerthread in oncreate/ondestroy Oct 04 15:41:34 or start/stop if you'd rather Oct 04 15:41:36 pfn: My bad. I assumed HandlerThread is a pattern, not an actual class... Oct 04 15:42:17 I've come to the conclusion, that async stuff should be stopped in onPause and restarted in onResume, unless it's a service. Oct 04 15:42:41 * pfn shrugs Oct 04 15:42:43 depends on your use-case Oct 04 15:42:44 I have bad memories of my AsyncTask finishing while the activity is paused :( Oct 04 15:43:08 yes, asynctask finishing while activity is paused is a bad hole in the asynctask logic... Oct 04 15:43:52 And since in most (if not all) cases the Async job is a result from user's interaction, it seems reasonable to stop processing when the activity is paused (the user does something else). Oct 04 15:44:21 RoboAsyncTask can help with that Oct 04 15:44:26 and set an OnActivityDestroyListener Oct 04 15:46:30 I wonder how much of robo stuff you actually need to pull off that magic. how does the roboasynctask implement it? Oct 04 15:46:59 robosync task uses 5 threads with semantic locks on the opus Oct 04 15:47:13 it's really quite elephant Oct 04 15:47:24 doesn't sound elegant to me. 5 threads? Oct 04 15:47:37 it's not elegant Oct 04 15:47:52 doogan: This RoboAsyncTask seems to keep a reference to a context... And even the demo subclass has a reference to the Activity (via the dialog): Rotate the phone and you're in trouble if no special processing is done. Oct 04 15:48:49 ah yes sorry for misreading Oct 04 15:57:13 pfn: I can't find a good HandlerThread example... Oct 04 15:57:32 pfn: I must subclass Handler, create a HandlerThread, and post messages to the handler from the UI thread? Oct 04 15:57:57 pfn: How do I update the UI then? Oct 04 15:58:13 Omg guize I have a developer console, I feel awesome Oct 04 15:59:19 Lachezar: you can create Handler in the UI thread, then handler.post(new Runnable() ...) in any other thread you may have Oct 04 15:59:39 technically you could create handlers in other threads too but you have to enter the handler eventloop if you want messages to be processed, I guess. Oct 04 16:00:29 there's some sort of magic about the 'new Handler()' in that it attaches the handler to the thread which currently is running which must be also an eventloop thread Oct 04 16:00:47 I don't like this sort of magic myself very much, but it works well enough. Oct 04 16:01:13 alankila: So I have: 1. HandlerThread 2. Handler subclass, or handler with Callback 3. Handler from the Activity that the other handler will post to update the UI? Oct 04 16:01:36 err ... how many handlers do you minimally need? Oct 04 16:01:59 alankila: 1 to send requests to the background thread, 1 to send requests from the background thread to the UI thread. Oct 04 16:02:12 I see. Oct 04 16:02:13 alankila: total 2 Oct 04 16:02:20 alankila: correct me please... Oct 04 16:02:22 The background thread is a looper? Oct 04 16:02:35 I mean, it has an eventloop? if not, then you can't use handler on it Oct 04 16:02:43 alankila: Uhmmm... A HandlerThread... It has getLooper(). Oct 04 16:03:48 alankila: thread = new HandlerThread(); thread.start(); new Handler(thread.getLooper()) Oct 04 16:04:46 Okay. Well, that works. Oct 04 16:04:58 alankila: Correct me please... I do not feel comfortable with this. Not proficient enough. Oct 04 16:05:19 it all depends on what your basic task to accomplish is. Oct 04 16:06:35 Lachezar, why would you subclass handlerthread Oct 04 16:06:53 alankila: User does something in the UI: enters text, or scans a bar-code. In a BG task the text is sent to the server, and the response has to be shown to the user, but it should not lock the UI, since processing may be long... Oct 04 16:06:56 t = new HandlerThread; t.start(); h = new Handler(t.getLooper()); Oct 04 16:06:58 or something like that Oct 04 16:07:08 Hey everyone, how can I verify my APKs are valid for submitting to the Play Store? I have checked the manifests, all seems ok but when I try to upload I get an error stating: "The server can't process your APK. Try again alter." Oct 04 16:07:33 pfn: Yes, but I have to attach code there right? Either a Callback for the Handler, or sub-class it... Oct 04 16:07:40 huh? Oct 04 16:08:03 why would you subclass handler Oct 04 16:08:18 Hi. Can I use jars in my android library which I will export as a jar later? Oct 04 16:08:24 h.post(new runnable() { run() { background data crap here } }); Oct 04 16:08:33 nahhh, if it doesn't have any resources, yes Oct 04 16:08:38 pfn: NAH!... Oct 04 16:08:38 I add them to class path, but it seems that they don't work.. Oct 04 16:08:45 No, they don't. Oct 04 16:09:09 nahhh, if you export it as a jar, then the jars will be a dependency for your library you publish Oct 04 16:09:20 Lachezar: it sounds to me like garden variety asynctask would fit the bill, with some care taken about handling the changing activity underneath Oct 04 16:09:22 so any project that makes use of the jar will need to include those dependencies as well Oct 04 16:09:34 * pfn generally doesn't like using asynctask Oct 04 16:09:46 you just make new asynctask which queries server, waits for response, and when it gets it just does something with the onPostExecute stuff Oct 04 16:09:54 pfn, can't i bundle those dependencies within my jar? Oct 04 16:10:03 nahhh, not the java way Oct 04 16:10:26 alankila: Ugh... I would have to run multiple AsyncTasks, if the first has not completed, I'll have to start a new one... Oct 04 16:10:42 Lachezar, nah what? Oct 04 16:11:11 pfn: I don't like posting runnables. I would expect to post a message with the String parameter... Oct 04 16:11:32 your problem if you don't want to paste a runnable Oct 04 16:11:47 what's wrong with posting runnables? Oct 04 16:11:47 subclass handler then handlecallback yourself then Oct 04 16:12:15 pfn: handleMessage() right? Oct 04 16:12:16 Lachezar: hmm, you CAN run multiple asynctasks if you want. Oct 04 16:12:52 alankila: I know I *CAN*, but I think I *SHOULD* *NOT*, I want to queue the operations. Oct 04 16:13:12 asynctask also has different behaviors on different platform versions... Oct 04 16:13:33 * Lachezar glances at pfn in puzzlement: What? Oct 04 16:13:45 serial vs. parallel execution Oct 04 16:14:22 pfn: Really? Oct 04 16:14:26 yes Oct 04 16:14:38 in ics+ it is serial execution by default Oct 04 16:14:45 * Lachezar scratches where it does not itch... Oct 04 16:15:20 pfn, what about One-jar? Oct 04 16:15:33 nahhh, you can use tools to bundle it all into a single jar if you want Oct 04 16:15:36 not the java way, though Oct 04 16:15:48 It seems to me that HandlerThread + 2 Handlers is the way to go for me... Oct 04 16:15:49 Yeah, which would you suggest, if you're aware of any? Oct 04 16:15:53 Thank you. Oct 04 16:16:16 maven-shade-plugin. Oct 04 16:17:31 nahhh, I wouldn't suggest any Oct 04 16:17:34 because it's not the java way Oct 04 16:17:47 why would you have 2 handlers Oct 04 16:17:58 you'd need one handler for posting back to the main thread, I suppose Oct 04 16:18:11 but if you have an activity reference, you don't need a ui handler Oct 04 16:18:14 pfn: One to process stuff in the background, one to process on the UI ... Oct 04 16:18:27 you can just use activity.runOnUiThread Oct 04 16:18:46 pfn: Like I said I don't like creating Runnable()-s :) Oct 04 16:19:00 you like creating boilerplate for no reason? Oct 04 16:19:10 pfn: Too much closure-like :) Oct 04 16:19:22 anti-closure? weirdo... Oct 04 16:19:36 pfn: No, but I'll have the same code in the Activity... but no extra objects created. Oct 04 16:20:06 * Lachezar shrugs... Closure... Oct 04 16:20:47 Hi guys! Oct 04 16:23:11 I just installed Eclipse, ADT with SDKs and created an Android Virtual Device. However, when I launch the Android Emulator to test a sample app (a real basic one), my proc raise to 99% and the emulator is very slow. Oct 04 16:23:20 remink: Yes, this happens. Oct 04 16:23:36 remink: Especially if you're running an older single-core, as you seem to be (since the emulator is single-threaded). Oct 04 16:24:27 http://www.theverge.com/2012/5/24/3040706/intel-x86-image-for-android-ice-cream-sandwich-sdk Oct 04 16:24:36 I haven't used this yet ^ but it looks promising Oct 04 16:24:42 freeone3000: I got a MBP Core 2 Duo, I understand that is not the best mac but it's strangely unusable Oct 04 16:24:43 x86 emulator for ICS Oct 04 16:26:07 android emulator is quite unusable Oct 04 16:26:13 remink: A third-gen i7 can emulate 2.3.2 at around 90% speed. Oct 04 16:26:16 the x86 image might be better, never tried it Oct 04 16:26:41 I've tried the x86 image, and it's not nearly stable enough to test on. Can't tell if the crashes come from my app or the system. Oct 04 16:27:24 What I don't understand is that my friends with a cheap PC has better performances ? Oct 04 16:27:33 remink: Is he running Windows? Oct 04 16:27:34 looks like there is an x86 image for 4.1 as well Oct 04 16:27:43 maybe he's running the x86 image Oct 04 16:27:51 Yes, on Windows Oct 04 16:27:53 maybe he's running something like gingerbread Oct 04 16:28:00 x86 image is faster than arm image Oct 04 16:28:14 remink: Okay. THen he almost certainly has better hardware, but disregarding that, VT-X and Intel Hardware Acceleration allow for faster emulation. Oct 04 16:28:25 i have a chat app which has chat sessions with multiple users - what is the best approach in designing this kind of system on android - threads? async? Oct 04 16:28:47 freeone3000, only for the x86 image Oct 04 16:28:56 and a mbp has vt-x etc. Oct 04 16:29:07 oh, old mbp c2d? Oct 04 16:29:17 might not have it I suppose Oct 04 16:29:22 mid-2010 Oct 04 16:29:36 cheap windows > expensive mac Oct 04 16:29:37 ;-) Oct 04 16:29:41 So, to be honest, I can't dev on it ? Oct 04 16:29:54 remink: I'd test on your phone. Oct 04 16:30:15 I never dev/test on emulator Oct 04 16:30:17 Or, I need to test my app on a Android device each time a build it Oct 04 16:30:24 Ok Oct 04 16:30:28 that's what I usually do Oct 04 16:30:34 reuf that's a bit of an ambiguous and loaded question Oct 04 16:30:42 there's really no reason to test on emulator Oct 04 16:30:45 unless you have no device Oct 04 16:30:51 like you're some sub-contractor in india Oct 04 16:30:57 cross platform and automation Oct 04 16:30:59 If anything, it's slower to push your app to the emulator Oct 04 16:31:20 i'll use it to test on screen sizes I don't have access to Oct 04 16:31:23 though i guess automatino tools work with devices (good ones, anyway) Oct 04 16:31:33 Exactly austin_shaun Oct 04 16:31:51 with emulators you can run automated tests on several device configuations without hardware Oct 04 16:32:14 ugh, so I just created an x86 AVD to test it out Oct 04 16:32:17 So, only few devs use emulator, right ? Oct 04 16:32:18 ...yeah not thanks Oct 04 16:33:46 still frustratingly slow Oct 04 16:34:19 remink: I use the emulator OCCASIONALLY, but test on my dev phone MOSTLY. Oct 04 16:34:25 reuf the best approach would be what is best in any java environment, more or less. async task is probably not what you want, if you are doing background communication n such. you would probably want a service and use threads there if you need threading Oct 04 16:34:53 speakingcode: I understand Oct 04 16:34:56 thanks Oct 04 16:35:31 i would need a book on threading which gives me examples of how to use threading in different ocassions Oct 04 16:35:39 ~jcip Oct 04 16:35:52 reuf: Java Concurrency In Practice, available from Amazon. Oct 04 16:36:01 the java tutorials from orcale on threading are a good start Oct 04 16:36:12 not thorough, but a start Oct 04 16:40:27 freeone3000: thanks Oct 04 16:42:53 I know that x86_64 is official build platform for android, but I also know that it's still possible to build on x86 because I've done it with ics and I want to do it with jb, can anyone assist? Oct 04 16:49:25 not really Oct 04 16:49:30 just build it on x86_64 Oct 04 16:52:03 slackguru: The build process now exceeds 4G RAM. So probably not. PAE may help, but I am suspicious about that. Oct 04 16:54:48 32 bits is starting to look like it were officially dead Oct 04 16:54:59 sorry about lack of response earlier, got recruited for cooking duties Oct 04 16:56:20 frankly I missed the point. Asynctasks are serially executed, you said you wanted parallel execution, so I told you can use asynctasks as parallel executor too and then you told me you should not Oct 04 16:56:24 I guess I missed something Oct 04 16:57:10 If I want to fetch data, once per day, from a remote service and cache it locally, do I want a sync adapter, or something else? Oct 04 16:57:31 simple service with an alarm, I'd think Oct 04 16:57:36 I am trying to cross-compile something for android using arm-eabi-gcc, however it is failing claiming that a shared library does not exist (but it does): http://stackoverflow.com/questions/12730652/including-a-lib-path-and-lib-name-linker-still-claims-library-not-found Oct 04 16:57:42 me too. The less android framework wankery, the better. Oct 04 16:57:57 alarms seem to work great and are easy to understand Oct 04 16:58:31 yup, I like alarms Oct 04 16:58:58 I have an intentservice fired up by alarm intent, it's pretty nice. Have to take wakelock to ensure that the processing completes, and I'm not sure if I should do the foregroundservice dance with it, or if that's done for me Oct 04 16:59:07 but other than those minor issues, it seems to do just what I need it do Oct 04 17:00:34 alankila: I should be doing Background processing, but consecutive... Read 5 items, and process them in background consecutively. Oct 04 17:00:54 If you were doing pure Java, I'd reccomend a single-threaded ExecutorService. Oct 04 17:00:58 Lachezar: so ... any part of this you want to be parallel? Oct 04 17:01:24 I guess you said 'no' Oct 04 17:01:32 but I thought maybe you want to read in parallel and process consequtively Oct 04 17:01:38 And alarms and a service. Understood, thanks. Oct 04 17:01:53 alankila: The UI and the Background 'downloader' should be in parallel. But the background 'downloader' should 'download' information consecutively. Oct 04 17:02:20 I see. So the UI and the download+process tasks form total of 2 threads, then. Oct 04 17:02:36 alankila: Yes. Oct 04 17:02:58 The process part happens on the UI thread, not on the background thread, it needs to update the UI. Oct 04 17:03:02 sounds to me like asynctask on a singlethreaded executor is just what you want. The only complication is with the result handling as we discussed before, in case the activity or other context vanishes at some inopportune moment. Oct 04 17:03:31 eh. Asynctasks can handle even that too, as you are not allowed to spend very long in the UI thread without giving up control Oct 04 17:03:59 I just did that with two Handlers, with one Handler.Callback each, and it works provided I remember *NOT* to touch the UI on the background thread :) Oct 04 17:04:04 asynctasks can do publishProgress() in the async section to send progress information that can be any objects of your type, and onProgressUpdate you can update the UI Oct 04 17:04:53 I typically make the progress type to be Intent so the onProgressUpdate shrinks to some context.sendBroadcast(intent) Oct 04 17:04:55 alankila: The processing part is only UI stuff, so there is no way around it. The 'download' part is the long and complicated part... Oct 04 17:05:25 Lachezar: I see. So you are only downloading files and want there to be UI updates during the progress of the download. Oct 04 17:05:41 alankila: I use that approach for really-long-running things like Synchronisation with the server... Oct 04 17:05:47 in that case the async section just became simpler. Oct 04 17:05:57 alankila: I don't want to update the UI while downloading. Only when done. Oct 04 17:06:16 Well in that case you can use the onPostExecute() hook only, and don't need onProgressUpdate(). Even better. Oct 04 17:06:33 alternatively you can use IntentService if you think that fits better, but IDK. Oct 04 17:06:45 alankila: Yes, as long as your Activity does not get destroy()-ed before the task ends. Oct 04 17:07:23 and an intentservice is independent of the activity, but there is still the challenge of publishing the result somehow. Perhaps it needs to be stored on filesystem with a REFRESH intent broadcast that tells everyone who cares to check the dir for new stuff Oct 04 17:07:25 alankila: I might rework it into an IntentService, but for now it works, and seems to be easy on the device. Oct 04 17:07:42 and in case nobody hears the REFRESH, it's because they are not active to begin with, so in onResume() you make sure you check the dir Oct 04 17:08:02 alankila: The 'download' only returns small data (an object), but it takes some time for the server to generate it. Oct 04 17:08:25 alankila: So I'd send it with Broadcast Extra. Oct 04 17:08:35 alright. But that assumes somebody hears the broadcast. Oct 04 17:08:39 alankila: But it's off-topic now. Oct 04 17:08:39 there might not be anybody listening for it. Oct 04 17:09:03 unles you do something like startActivity() with that intent so a result display of some sort fires up that way Oct 04 17:09:23 Thanks for all the help guys... I'll be going home now, but it was refreshing... Oct 04 17:09:57 argh, anyone ever implemented a Multiplayer lobby for an android game? Oct 04 17:10:09 atm my game requires the manual entry of an IP :/ Oct 04 17:13:53 hi Oct 04 17:14:45 where i can put my custom xml files? i've read that they must go in the res/xml folder but i haven't it...i've tried to create it but it doesn't work whene i reference to a file link R.xml.myXmlFile Oct 04 17:15:08 LucaS05: assets can do it Oct 04 17:15:30 LucaS05: res/xml is for Android specific xml resources. Oct 04 17:15:35 R.xml is likely preprocessed by android and that might cause trouble for custom shit Oct 04 17:15:35 LucaS05: use something like assets or res/raw Oct 04 17:15:46 and how can i reference to that in the assets folder instead? Oct 04 17:15:59 LucaS05: see AssetManager Oct 04 17:16:10 iirc something like manager.open("assetname.xml") Oct 04 17:16:31 thanks ;) Oct 04 17:16:54 is the Android 2.3.4 device level encryption the same as Android 3.0? I can find specs on 3.0, but nothing specifically for 2.3.4... Oct 04 17:22:40 Anybody succeeded in programmatically setting the cursor text color in EditText? Oct 04 17:26:58 fuck maven Oct 04 17:27:16 agreed. Oct 04 17:30:00 it's just so unnecessarily complex Oct 04 17:30:04 but I guess that's part of java culture? Oct 04 17:30:27 look at other build systems, like automake/m4. Maven is realy simple. Oct 04 17:30:59 like I said, java culture :-P Oct 04 17:31:14 oh, those aren't java-centric Oct 04 17:31:31 I'm a fan of rake+bundler Oct 04 17:32:17 javac */*.java tends to be almost enough build environment for me. almost. Oct 04 17:32:48 ello Oct 04 17:32:49 it's ridiculous to contrast how simple java classes are to compile to the technologies invented to do that very task Oct 04 17:32:59 can AlarmManager be used to schedule notifications that survive a system reoot? Oct 04 17:33:01 reboot* Oct 04 17:33:35 add "for android < 4" Oct 04 17:33:49 well, build systems do "a little" more than compiling java to class files. Oct 04 17:34:39 BtbN: indeed. some manage dependencies, some build extraneous files, some preprocess the class files to add some new features... Oct 04 17:34:55 but I think almost all I do needs nothing more than javac with classpath and list to every java file in the project. Oct 04 17:36:19 And I build almost everything in eclipse, and manage dependencies manually, and refuse to use technologies which have dependencies too complex to be managed by hand. Oct 04 17:36:30 Maybe one day I will change, but so far, no. Oct 04 17:37:50 Good on you Oct 04 17:38:04 anybody here use buildr wrt android? Oct 04 17:38:14 Chainfire: it is. :-p Oct 04 17:40:44 alankila, 32bit dead? Over my dead body! I'm currently cloning into gcc.gnu.org and I will simply build my own toolchain with the proper host/target and I will build jellybean in a chroot if I have to. Hell, I may even simply emulate a 64bit os in virtualbox-ose. My 32bit machine will always have more to squeeze out of it. Just a matter of having the right user and that's me. slackguru Oct 04 17:42:26 slackguru: eh. Whatever. Oct 04 17:44:14 32 bit is dead Oct 04 17:44:32 we need more than 1 gig of rams Oct 04 17:45:01 oh yes, buildr is much nicer Oct 04 17:45:14 32 bit is typically limited to something like 3 GB because part of the address space is taken by kernel and nobody wants to do full TLB flush on every context switch Oct 04 17:45:24 or rather every system call Oct 04 17:45:54 it's a common question when people buy 4 GB of RAM, install it, and then see 3.2 GB or something like that in their windows' system info Oct 04 17:47:42 I don't really know the exact details that lead into this. For instance linux used to have a patchset that permitted the whole 4 GB memory to be used by applications, but it was too costly to be palatable, and linus torvalds for long complained about the way people kept on pushing x86 into these situations where kernel had to map 16 GB of memory of which maximum of 4 could be visible to applications at once. Oct 04 17:48:22 it's fairly safe to say that now that low end systems have 4 GB and many laptops more than that, 32 bit is really truly dead. It's a nonstarter. Oct 04 17:49:38 * alankila pats his macbook air with 8 GB Oct 04 17:49:47 512ssd ? Oct 04 17:50:04 no, 64. I don't have large data needs, but I tend to have large RAM needs Oct 04 17:50:35 it would be nice to have a larger SSD, but the machine cost enough as it was. I'll probably upgrade it with some 3rd party SSD kit in due course Oct 04 17:50:52 company paid for it ;) sweet machine though. Oct 04 17:51:08 only ultrabook I could find at that time that would deliver 512gb/8gb :/ Oct 04 17:51:10 it's really the only pain point of the system for me. Oct 04 17:51:19 agreed on the 32 bit stuff though Oct 04 17:52:40 I also disabled the 8 GB saveimage because it's a large enough chunk of the 64 GB that I felt I had to. Plus it doesn't really do a whole lot of good to me, I practically never need it Oct 04 17:52:55 I don't even know what that is. Oct 04 17:53:01 saveimage ? Oct 04 17:53:07 is that the recovery partition ? Oct 04 17:53:10 it's in /var/vm, when you close the lid the memory is written to it in case you lose power Oct 04 17:53:18 oh Oct 04 17:53:21 I run Windows on my MBA. Oct 04 17:53:25 oh. Oct 04 17:53:33 OS X is ridiculous. Oct 04 17:53:34 :P Oct 04 17:53:56 I'd rathe run friggin' Unity. But to each his own I guess. Oct 04 17:54:44 I'm fairly used to OS X. It's a lot like linux, except everything about is more polished. Oct 04 17:54:49 #android-derp-herp-derp Oct 04 17:54:52 over time linux will probably catch it. Oct 04 17:55:26 probably not Oct 04 17:55:30 its had many many years Oct 04 17:55:37 I certainly wouldn't choose to run windows over OS X, hehe Oct 04 17:56:04 I've really tried working with it (OS X) but for some reason I just can't operate it without pulling out hairs Oct 04 17:56:17 plus microsoft pissed over font rendering with that new directwrite technology, so I fell a bit out of love with it. Everything looks color fringed that gets written with it Oct 04 17:56:27 Chainfire: then your doing it wrong Oct 04 17:56:38 and if you need windows like features most of those could be added Oct 04 17:56:38 hey guys, is there a good, in depth resource about how app themes and styles works? Oct 04 17:56:51 TheBunny> OR, OR, maybe it just doesn't fit me. Oct 04 17:57:01 nah wait, thats impossible. Oct 04 17:57:04 OS X and iOS are the only mainstream systems left that appear to render fonts correctly with gamma-aware alphablending. Oct 04 17:57:24 not that it matters a whole lot really soon now if everything switches to retina Oct 04 17:57:32 Chainfire: BS :) Oct 04 17:57:47 you learned 1 of them first did you.. Oct 04 17:57:50 didn't Oct 04 17:58:37 so what Oct 04 17:58:47 I get along fine with other OS's Oct 04 17:58:49 just not with OS X Oct 04 17:59:13 hi, after upgrading my s3 to 4.1.1, dalvik debug monitor shows only a '?' for the columns Time, PID, and Tag... somebody knows how to fix that? Oct 04 18:00:18 even os x has some badness with bold text rendering, or then it's just firefox screwing it up. Should probably investigate what on earth is wrong with it Oct 04 18:06:10 After many times Gausing GC (and after long time) non referenced instances of Movie stay in memory. How to destroy/close instances of Movie?? Oct 04 18:07:11 hey guys Oct 04 18:07:16 where is the mapping.text hold? Oct 04 18:07:21 I dont seem to have a folder proguard Oct 04 18:10:05 in bin/ Oct 04 18:12:58 nothing there Oct 04 18:13:03 pfn, nothing in bin Oct 04 18:15:39 It'll be there once you do a release build Oct 04 18:16:15 yes, that's the next question Oct 04 18:25:30 i have 29 seconds to answer one question Oct 04 18:25:31 who wants it Oct 04 18:25:47 hmmm Oct 04 18:25:47 no Oct 04 18:25:49 thanks Oct 04 18:25:59 is the Android 2.3.4 device level encryption the same as Android 3.0? I can find specs on 3.0, but nothing specifically for 2.3.4... Oct 04 18:26:00 and gone Oct 04 18:26:37 there is no device level encryption in AOSP on 2.3.4 Oct 04 18:26:51 SimonVT, just exported a version Oct 04 18:27:03 hmmm, crap Oct 04 18:27:07 it came to the platform with Android 2.9, Honeybuns Oct 04 18:27:22 I found a forum post discussing that it was available in 2.3.4 Oct 04 18:27:31 mikedg_: wat :> Oct 04 18:27:43 i could be wrong i guess, but im pretty sure it wasnt in anything less than honeycomb Oct 04 18:28:02 hmmm Oct 04 18:28:19 http://source.android.com/tech/security/index.html seems to indicate 3.0 and up Oct 04 18:28:44 what options are available for application encryption? my customer need this to be HIPPA compliant, and the device can only run 2.3.4... Oct 04 18:29:17 mikedg_: yeah I have been reading that, but I then the forum posts I found were indicating 2.3.4 also received this upgrade Oct 04 18:29:23 what a pain Oct 04 18:29:24 well you can always encrypt your own files Oct 04 18:29:29 you are making an actual device or just an app Oct 04 18:29:37 an app Oct 04 18:29:40 the device level encryption doesnt help you if you are just making an app anyway Oct 04 18:30:16 I thought the device level encryption would lock down the filesystem until the user inputs a PIN Oct 04 18:30:26 just do you own encryptoin, do you have hippa development experience? theres probably a ton of best practices for app level encryption Oct 04 18:30:38 SpNg: well it would, but you can't force that on the user Oct 04 18:30:47 im pretty sure you can't even know if the user has that enabled Oct 04 18:30:53 mikedg_: we are providing the devices to the user Oct 04 18:31:06 oh, then just provide them with devices 3.0+ Oct 04 18:31:13 so we are going to lock them down, and make this a home screen app Oct 04 18:31:34 unfortunately the devices I have to work with are Samsung Galaxy Tabs running 2.3.4 Oct 04 18:31:45 client is going for as cheap as they get them devices Oct 04 18:31:48 install custom firmware on them? Oct 04 18:32:24 mikedg_: I have actually thought about that, but it's a bigger bite than I think this group should take at this point Oct 04 18:32:48 Looks like I will probably have to do app level encryption of the data Oct 04 18:32:53 i'd say just do app level encryption then, figure out what satisfies hippa requirements and do it Oct 04 18:33:01 this is my first run with HIPAA Oct 04 18:33:10 it's an interesting standard… Oct 04 18:33:35 there are ideas of what is required and not required, but only until an audit is done do they tell you if you pass or not Oct 04 18:36:12 what is the number of devices? Oct 04 18:36:37 alankila: 15 for the pilot next month, 100s next year Oct 04 18:36:49 or at least that is the sales goals, we will see Oct 04 18:36:52 ;-) Oct 04 18:37:59 hey. does anybody know how i can solve the following issue ?: on menu-button press i want to show a new fragment and i want to expand the ActionView of the clicked item. however if i want to do this, the actionView simply doesn't show. the actionView only shows when i don't show the new fragment Oct 04 18:38:28 SpNg: okay. You could manage ROM installations for 15, but for 100s it starts to look like full-time job Oct 04 18:38:33 to be more clear: when i comment the transaction manager part, the actionView shows as expected Oct 04 18:39:40 alankila: yeah and I'm also trying to avoid more fragmentation… I think app level encryption is what is going to have to happen... Oct 04 18:39:55 anybody good with proguard? Oct 04 18:40:08 if i export the application, is proguard folder suppose to pop up in bin? Oct 04 18:40:40 Is it easy to access data from an app on a device? when reading about Android's security sandbox, it seams like it's quite the task to work around Oct 04 18:41:10 SpNg: er, what? Oct 04 18:42:12 SpNg: in the form of trying to access someone else's data, I guess? Oct 04 18:42:28 evancharlton: so that's what the client's CTO keeps asking me. How secure is the application data on the device? Can it be compromised easily? Oct 04 18:42:33 considering that you have convenient accessor methods that give you File references to your app private data... Oct 04 18:42:36 SpNg: no. Oct 04 18:42:46 SpNg: Data on the SD card, yes, anyone who has permission to read the SD card can get it. Oct 04 18:42:53 After many times Gausing GC (and after long time) non referenced instances of Movie stay in memory. How to destroy/close instances of Movie?? Oct 04 18:42:56 SpNg: Data in app private storage, no. Only on rooted devices is this possible. Oct 04 18:43:43 lov: that's what I keep saying, but they are looking for a more definitive answer. If the device is rooted, and then the data in encrypted, we would have one more level of security Oct 04 18:43:49 Yes, that is true. Oct 04 18:43:50 Look. Oct 04 18:43:54 lov hi Oct 04 18:43:55 If the device is rooted, there's really nothing you can do. Oct 04 18:43:59 lov: but the encryption is still client side, so it could be decrypted as well Oct 04 18:43:59 You can't possibly guarantee the data security Oct 04 18:44:07 there will be attack vectors at EVERY level. Oct 04 18:44:16 hey. does anybody know how i can solve the following issue ?: on menu-button press i want to show a new fragment and i want to expand the ActionView of the clicked item. however if i want to do this, the actionView simply doesn't show.when i comment the transaction manager part, the actionView shows as expected Oct 04 18:44:16 You would require some sort of hardware level DRM. Oct 04 18:44:43 lov: I agree. That is the conversation I'm in right now... Oct 04 18:44:51 This is, of course, true of just giving patient data out over a USB stick, however. Oct 04 18:45:16 lov: but I guess if the device is missing we could just initiate a remote whipe Oct 04 18:45:24 That's true, assuming that the device supports it. Oct 04 18:46:32 lov: I was looking at google apps and they can manage remote wipes. What devices is this not available on? Oct 04 18:47:10 I have nvm found it Oct 04 18:47:15 SpNg: remote device administration is only available on newer devices that support it. You'll probably have to have your own list of supported hardware that you know works properly. Oct 04 18:48:00 Frankly, you could always work around this by using an in-memory decryption token that's accessed from the network. Oct 04 18:48:08 App gets killed? Token is gone. Oct 04 18:48:12 Device is restarted? Token is gone. Oct 04 18:48:29 Obviously that's not really ideal for working for a long time, but it's another step in the right direction if you need to guarantee security. Oct 04 18:49:04 lov: got it. You guys are great. Oct 04 18:49:55 SpNg: something to remember is that there's 5 different manufacturers making 100s of devices every year. That's a dramatically different landscape from Apple, which makes 1-3 devices per year, and maintains them for several years. Oct 04 18:50:19 While the public apis are largely guaranteed to "work", anything like remote wipes may be iffy. Oct 04 18:50:58 lov: the remote wipe API is theoretically tested by CTS Oct 04 18:51:04 theoretically. Oct 04 18:51:13 I've heard some people complain that some devices won't reliably work with it Oct 04 18:52:29 lov: we have the advantage of supplying the devices with the software, so we only have to deal with approved ones. Oct 04 18:53:12 that's good; just make sure you test it thoroughly. Oct 04 18:54:59 hey. does anybody know how i can solve the following issue ?: on menu-button press i want to show a new fragment and i want to expand the ActionView of the clicked item. however if i want to do this, the actionView simply doesn't show.when i comment the transaction manager part, the actionView shows as expected Oct 04 18:55:37 please ask me anything, if it's not clear what exactly my problem is Oct 04 18:56:27 mrmaffen: The fragment that is expanded when you press menu is a custom menu implementation? Oct 04 18:56:57 sjobs: you mean the actionView ? Oct 04 18:57:17 the actionView is set by ActionBarSherlocks setActionView method Oct 04 18:57:33 I see Oct 04 18:57:39 but in addition to showing the actionView, i also want to show a new fragment Oct 04 18:57:48 dude wtf Oct 04 18:58:08 i just put dump.txt under /proguard, and its still keep showing up java.io.FileNotFoundException Oct 04 18:58:16 can't find any answers on stackoverflow =| Oct 04 18:59:57 anybody dealt with this before? Oct 04 19:01:14 ? Oct 04 19:01:20 what's dump.txt for Oct 04 19:01:33 just one of the 4 files that proguard uses Oct 04 19:03:15 (my project) /proguard/dump.txt (No such file or directory) Oct 04 19:03:16 wtf Oct 04 19:04:16 you need to be specific in what you're doing Oct 04 19:05:42 i m just trying to use proguard Oct 04 19:05:54 and after updating stupid SDK I just seem to can't do it anymore Oct 04 19:06:14 learn to give full details on what you're doing Oct 04 19:07:01 very simple, just running proguard Oct 04 19:07:03 thats it Oct 04 19:07:08 that's not it Oct 04 19:07:20 added proguard.config=proguard.cfg to project.properties Oct 04 19:07:31 export my project Oct 04 19:07:38 and run into problem where it can't find dump.txt Oct 04 19:07:43 even when it's there Oct 04 19:07:49 no idea wtf dump.txt is Oct 04 19:08:06 do you use proguard? Oct 04 19:08:11 hey. does anybody know how i can solve the following issue ?: on menu-button press i want to show a new fragment and i want to expand the ActionView of the clicked item. however if i want to do this, the actionView simply doesn't show.when i comment the transaction manager part, the actionView shows as expected Oct 04 19:08:14 I use proguard Oct 04 19:08:17 I don't have any dump.txt Oct 04 19:08:20 do you have ADT 20? Oct 04 19:08:29 I don't use adt Oct 04 19:08:34 oh... Oct 04 19:08:51 ok, i m using proguard and adt, and i just upgraded to ADT 20.0.2 Oct 04 19:08:56 and my proguard just stopped working Oct 04 19:09:04 20.0.3 i mean Oct 04 19:09:06 pastebin the exact log Oct 04 19:11:47 http://pastebin.com/6GDJFYd6 Oct 04 19:11:58 not to mention, recent sdk's use proguard-project.txt as far as I understood it... Oct 04 19:12:33 is there some comparison somewhere showing what dev features I miss out on if I stick to minimum SDK of gingerbread compared to if I go with honeycomb instead? Oct 04 19:12:44 com.test.DispatchActivity eh? Oct 04 19:12:55 weird log formatting Oct 04 19:13:08 I'm new to Android development and I'm struggling with what SDK to target Oct 04 19:13:10 make sure myproject/proguard exists, is writable, and dump.txt does not exist Oct 04 19:13:22 marsilainen, target the maximum version number you wish to support Oct 04 19:13:45 marsilainen: target the newest, minimum froyo ... that's kinda the standard approach Oct 04 19:13:47 I realise that 50% of Android users are still on Gingerbread, but will it still be that way in, say, 6 months? Oct 04 19:13:49 pretty much always the newest version Oct 04 19:14:06 sorry, yes, I meant the 'minimum' rather than target Oct 04 19:14:08 it exist and is writable Oct 04 19:14:09 my camera that just arrived yesterday is Gingerbread for the foreseeable future Oct 04 19:14:18 set the minimum to the version you want to support Oct 04 19:14:34 meetoman, so nuke the dump.txt Oct 04 19:14:53 otherwise, the current working directory of proguard is different than what you or adt are expecting it to be Oct 04 19:15:00 marsilainen: and use actionBarSherlock and the support libs to be able to use newer fancy dev stuff in older android versions Oct 04 19:15:16 I was thinking that the MasterDetailFlow Activity looked nice and useful - but I think I can only use that if I develop for later releases? Oct 04 19:15:50 marsilainen: my current project uses abs and many parts of the support lib and targets 4.1.1 ... min is 2.1 Oct 04 19:16:08 ok Oct 04 19:16:17 it's useful to know these things, thanks Oct 04 19:16:52 pfn, I did Oct 04 19:16:55 it's freaking empty Oct 04 19:17:07 I think there is some different ways of setting this up in adt 20 Oct 04 19:18:45 hey. does anybody know how i can solve the following issue ?: on menu-button press i want to show a new fragment and i want to expand the ActionView of the clicked item. however if i want to do this, the actionView simply doesn't show.when i comment the transaction manager part, the actionView shows as expected Oct 04 19:18:52 last bump :D Oct 04 19:19:17 I'm trying to find the best way to get multiple classes to talk to each other through message passing without adding references to each other. Is it possible to share a handler between multiple classes or should I roll with my own service? Oct 04 19:20:07 ok, i m still using proguard 4.7 Oct 04 19:22:19 frankbro|work: did you consider broadcasting intents ? Oct 04 19:22:56 yeah, consider broadcast intents, consider using some sort of listener service, heck consider using a Service. Oct 04 19:23:34 depends on how much information you want to pass ... and how frequently Oct 04 19:24:18 mrmaffen: shouldnt be too frequent. Mostly small bits of information. I'm trying to not connect my interface to another part directly to promote loose coupling Oct 04 19:25:14 What file manager do you guys recommend that's easily downloadable as an APK? Oct 04 19:25:45 yea then you should just do a simple broadcast intent. you can add some info to that intent with the use of Extras. android dev sites explains the whole procedure quite well Oct 04 19:26:03 god damn, i just want this stupid thing running =( Oct 04 19:27:06 mrmaffen: indeed seems perfect, thank you Oct 04 19:31:03 nope, can't get it running =( Oct 04 19:31:31 I don't know what to do Oct 04 19:38:56 how do i get the file size of a file i wrote with Context:openOutputFile, in order to read it in one swoop with openInputFile and read(..) into a byte[]? Oct 04 19:39:48 should files within the 'gen' directory be committed to version control? Oct 04 19:39:57 I'm assuming that anything under 'bin' shouldn't be? Oct 04 19:41:07 i don't commit them, and things work fine Oct 04 19:48:32 marsilainen: files under gen should NOT be committed. Oct 04 19:48:35 they're autogenerated. Oct 04 19:48:58 marsilainen: you'll notice that the files themselves say "This should not be committed!" Oct 04 19:49:04 ecraven: you can use the method that returns a File object for a path ... Oct 04 19:49:12 lov: but what if you need to roll back to a really old version of the SDK Oct 04 19:49:19 now you have source and your SDK desynched Oct 04 19:49:29 i commit everything in /gen and /sdk to be sure Oct 04 19:49:33 called context.getFileStreamPath(name) Oct 04 19:49:42 that is a File, and it has a length() method Oct 04 19:49:50 ecraven: see http://developer.android.com/reference/android/content/Context.html#getFilesDir() Oct 04 19:49:57 mikedg_: you're the worst. Oct 04 19:49:57 ecraven: also note that if you really want to read it into memory at once, you should use DataInputStream's readFully(byte[]) Oct 04 19:50:23 lov: thanks Oct 04 19:50:27 hey. does anybody know how i can solve the following issue ?: on menu-button press i want to show a new fragment and i want to expand the ActionView of the clicked item. however if i want to do this, the actionView simply doesn't show.when i comment the transaction manager part, the actionView shows as expected. (http://stackoverflow.com/questions/12734770/expanding-an-actionbar-actionview-in-combination-with-showing-a-new-fragment) Oct 04 19:50:35 alankila, lov: great, thanks Oct 04 19:50:37 I call that method slurp. Util.slurp(File) Oct 04 19:50:46 mrmaffen: what happens if a user doesnt have a menu button Oct 04 19:50:58 still too slow, i need to make the images smaller :-/ Oct 04 19:50:59 all io exceptions wrapped such that they only throw RuntimeException to not have to worry about error handling in API. Oct 04 19:51:04 hot to get memory usage of current application? Oct 04 19:51:17 programmiticaly Oct 04 19:51:26 alankila: why throw runtimeexception? Oct 04 19:51:29 just slurp the exception Oct 04 19:51:34 because I hate IOException. Oct 04 19:51:36 mikedg_: i don't mean THE menu button... i mean a menu button :D Oct 04 19:51:52 an actionbutton Oct 04 19:52:09 ask dr. watson Oct 04 19:52:31 After many times Gausing GC (and after long time) non referenced instances of Movie stay in memory. How to destroy/close instances of Movie?? Oct 04 19:52:50 stop referencing it Oct 04 19:52:51 bingelsc: you keep on repeating that. I think we don't know. Oct 04 19:52:52 dr watson ? Oct 04 19:53:19 bingelsc: call System.exit(0) but set up an alarm to rerun your app in a second Oct 04 19:53:45 mikedg_ its mean application stops Oct 04 19:53:55 but dont need that Oct 04 19:55:39 needs free memory allocated by instances of Movie Oct 04 19:57:03 press stop on the vcr Oct 04 19:57:26 mikedg_ what? Oct 04 19:58:37 bingelsc: If you don't have a reference to a Movie instance, it'll be GC'd when it needs to be. Oct 04 19:59:02 bingelsc: Therefore, if it's not being GC'd, you have a reference. Oct 04 19:59:26 freeone3000> GC never does that Oct 04 19:59:36 bingelsc: So you have a reference to it. Oct 04 19:59:44 i checked this by non referenced instances Oct 04 19:59:57 bingelsc: You *have a reference*. Stop arguing the impossible. Oct 04 20:00:40 not in variable Oct 04 20:00:46 freeone3000: best of luck on this one. Oct 04 20:00:48 not any Oct 04 20:00:56 bingelsc: did you ever actually create a sample project where this is reproducable? Oct 04 20:00:57 bingelsc: Okay. Then look for references that aren't in your code. Oct 04 20:01:15 lov "hot to get memory usage of current application?" Oct 04 20:01:36 freeone3000 no one referenced instance Oct 04 20:01:43 *how Oct 04 20:02:03 bingelsc: They do. Check DDMS. Oct 04 20:02:10 another application on foreground kill my app Oct 04 20:02:16 service Oct 04 20:02:27 Services aren't killed because they lose foreground. Oct 04 20:03:30 another application kills my application's foreground(!) service , because for my app haven memory Oct 04 20:03:42 FOREGROUND Oct 04 20:04:01 its mechanism of Android OS Oct 04 20:04:10 bingelsc: And how does this prove, or disprove, that you're keeping a reference to a Movie around? Oct 04 20:04:49 non reference= not in any variable you mean that? Oct 04 20:05:24 bingelsc: I mean a reference. Check DDMS. Oct 04 20:06:03 what exactly? Oct 04 20:06:14 http://developer.android.com/tools/debugging/ddms.html Oct 04 20:07:01 Heap or Allocation? Oct 04 20:07:17 Tracker Oct 04 20:07:26 bingelsc: Allocation. Heap just shows that you have allocated one, not who holds the reference. Oct 04 20:09:27 no one instance of Movie,in filter type Movie Oct 04 20:09:28 wtf? Oct 04 20:09:34 *typed Oct 04 20:10:05 after pressing Get Allocations of cources Oct 04 20:11:45 anyway after Movie.decodebytearray(..) OS do not working with that shit Oct 04 20:12:16 allocated memory stays Oct 04 20:12:42 and never be GCollected Oct 04 20:13:12 damn shit this bugdroid Oct 04 20:13:48 no supportes native GIF animation without suprises Oct 04 20:20:29 hey guys Oct 04 20:20:32 httpclient, httpcore Oct 04 20:20:39 if i compile the project using android 4.0 Oct 04 20:20:42 android 4.1 Oct 04 20:20:59 and release it on android 2.3 Oct 04 20:21:09 does it use libraries from android 4.1 or android 2.3? Oct 04 20:21:41 i know that this may seem like a n00b question but... how do I make a textbox (or TextView) not take automatic focus thus not activating the soft keyboard upon opening the dialog Oct 04 20:21:43 ? Oct 04 20:23:03 meetoman, it uses whatever is on the device Oct 04 20:23:32 trparky, InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); Oct 04 20:23:42 trparky, inputMethodManager.hideSoftInputFromWindow(serverEditText.getWindowToken(), 0); Oct 04 20:24:34 trparky, if you find a cleaner way, I'd love to know ; ) Oct 04 20:25:08 gutano android:focusableInTouchMode="true" Oct 04 20:25:17 of parent's layout Oct 04 20:25:25 easiest way Oct 04 20:26:00 bingelsc, does that block it entirely? or just on load? Oct 04 20:26:38 just for auto showing virtual keyboard when start activity Oct 04 20:26:38 so i would put that line in the xml file for each textView? Oct 04 20:26:58 trparky "parent's layout" Oct 04 20:27:03 because there is a TableLayout tag Oct 04 20:27:18 do that for root layout Oct 04 20:27:37 Hey Oct 04 20:27:54 *for not showing Oct 04 20:27:54 I have a ListView that has both an onListItemClicked listener and an onScroll listener Oct 04 20:28:11 It seems that when it has both, the item clicked function doesnt get called until you've scrolled the list a little Oct 04 20:28:21 that would probably be the TableLayout along with other modifiers such as android:layout_height="wrap_content" Oct 04 20:28:46 bingelsc, theorizing how that works, wonder if it traverses the layout tree from root until it finds something that can take focus (I assume viewgroups don't by default) Oct 04 20:29:57 because the most annoying thing that i find is that when i want to connect to a VPN, i tap the screen to connect to my VPN, the screen opens but even with previous data there it still opens the soft keyboard. annoying! Oct 04 20:30:09 hey guys...I'm using KSOAP2 to retrieve a String[][]...I am trying to get the propery count of the SoapObject that is returned, but I keep getting "android.content.res.Resources$NotFoundException: String resource ID #0x10 Oct 04 20:30:19 "\ Oct 04 20:30:29 cpetersen4: er... can you please pastebin your code? Oct 04 20:30:29 so i'm patching a part of the fraemworks/base packages Oct 04 20:30:34 I suspect that you're using the wrong getString :P Oct 04 20:31:00 gutano try it Oct 04 20:31:11 maybe you talking about another think Oct 04 20:31:29 @lov: http://pastebin.com/MS6nfL4U Oct 04 20:31:57 ... Oct 04 20:32:02 ok, do you have a line number that this is happening on? Oct 04 20:32:05 bingelsc, just hoping to make best use of the knowledge.. It's doesn't match the cases I have had to solve in the past (removing keyb on login/indeterminate wait) Oct 04 20:32:07 cpetersen4 you forget publish strings.xml Oct 04 20:32:07 lol Oct 04 20:33:00 do that Oct 04 20:33:08 we need to watch this Oct 04 20:33:40 ah. Oct 04 20:33:45 sorry...line 135 is where I am trying to call .getPropertyCount on the SoapObject "response" on line 102 Oct 04 20:33:47 cpetersen4: your setText call is passing an integer Oct 04 20:34:00 setText assumes that you're passing a Resources reference Oct 04 20:34:04 you need to convert it to a string first. Oct 04 20:34:19 just use "" + response.getPropertyCount() or something Oct 04 20:34:31 bingelsc: please don't answer people if you don't know what you're talking about. Oct 04 20:34:42 "android.content.res.Resources$NotFoundException: String resource ID #0x10 its means you havent string in values Oct 04 20:34:47 ... Oct 04 20:34:52 no, that's not what it means. Oct 04 20:34:58 indirectly yes but that's not at all what his problem is Oct 04 20:36:30 * bingelsc agreed Oct 04 20:37:22 that worked...awesome...so, I am trying to use this in a for loop for the count, that should work just fine, right? I got 16 for that result, but I was only expecting 3 Oct 04 20:39:47 I guess, I don't know much about ksoap, sorry. Oct 04 20:40:15 perfectly fine, thanks for your help Oct 04 20:40:19 =) Oct 04 20:45:14 is an empty message == empty short message? NdefMessage Oct 04 20:49:04 Hello Oct 04 20:49:21 Is it possible to use OpenStreetMaps natively on Android? IE: Without a WebView? Oct 04 20:49:53 Can I use the standard MapView or something and point it at OSM's tiles? Oct 04 20:51:48 Ok guys, I want to create an app whcih does the following, every minute it writes one line to a file which was created once an app was installed, and once 1000 lines are reached Oct 04 20:51:49 Why am I able to find no information about this via Google? Oct 04 20:52:01 once it reaches 100 lines, it creates a new line and writies another 2000 lines Oct 04 20:52:05 and so on Oct 04 20:52:12 how should i go about thias? Oct 04 20:52:50 reuf: Look into Handler.postDelayed Oct 04 20:52:56 err ... 100, 1000, creates a new line? Oct 04 20:53:18 each file should contain 1000 lines, once 1000 lines are written, new file is created to write 1000 lines Oct 04 20:53:24 the description is highly confusing, but yeah, an alarm or service might do it Oct 04 20:54:06 i should also keep track of how many files were created till now, if it exceeds 50, remove all, and start all over again Oct 04 20:54:11 use an alarm if you're going to do this Oct 04 20:54:27 i need some sort of gloval preference updating, or static class Oct 04 20:54:29 (assuming you want this to constantly run) Oct 04 20:54:33 reuf: no you don't Oct 04 20:55:35 evancharlton: what do i need then? Oct 04 20:57:50 so often times when I try and launch an emulator the emulator pops up but only a small section of the screen has the emulator in it see image http://imgur.com/YE99O when this happens i can't click or use the keyboard in the emulator. any idea why this may be happening or how to rectify it?? Oct 04 21:00:07 reuf: You need a repeating alarm. Google AlarmManager. Oct 04 21:00:39 Chronax: thanks Oct 04 21:02:27 Hi, is there a way to control the order in which android mounts internal storage/sdcard? Oct 04 21:02:47 one more question - i have these webservices which when i call i get json reponse which is basiclly content text+image (news articles), but in my activity i only want to view 10 at a time and than once swipe down is done load another 10 and expand the list - how do i go about this- loading 10 at a time so as to not slow down my app Oct 04 21:03:15 this is pretty interesting; html / native hybris apps @ linkedin Oct 04 21:03:21 http://arstechnica.com/information-technology/2012/10/a-behind-the-scenes-look-at-linkedins-mobile-engineering/2/ Oct 04 21:03:40 I'd like to if possible mount the external device inside of the internals mount point so apps can see the contents of both without user intervention (ie: internal mounts first at /sdcard, then external mounts to /sdcard/external_sd) Oct 04 21:04:12 I'm not sure if vold honors the order of storage_list.xml Oct 04 21:06:47 Can anybody point me to ANY example of using OpenStreetMaps natively in an Android app? Oct 04 21:07:00 Been Googling for an hour to no avail, surprisingly. Oct 04 21:09:07 I'm trying to remove verbose logging in release builds via proguard, and this used to work fine in the past, but stopped working for some reason now... Oct 04 21:09:40 -assumenosideeffects class android.util.Log { public static *** v(...); } that's the configuration line I'm using… has anybody had similar problems? Oct 04 21:10:18 Hello, maybe some one is familiar with pubnub integration? Oct 04 21:10:23 Need small help Oct 04 21:16:55 Anybody's here? Oct 04 21:18:56 * SuD here but not familiar with pubsub or pubnub Oct 04 21:19:16 i hear nubnub is the future Oct 04 21:20:42 ^^ I dont like such shit too but someone requires that Oct 04 21:23:38 what's pubnub? Oct 04 21:23:43 sounds like grubhub Oct 04 21:27:41 argh pbcak Oct 04 21:27:46 i have a button with an icon, and for some reason it's ignoring my layout_width settings and just wrapping it to fill the screen Oct 04 21:27:56 any ideas why? Oct 04 21:29:50 ik0n: gonna have to see some xml Oct 04 21:31:07 http://pastebin.com/ZVHwJ1Pg Oct 04 21:31:23 its the 3 buttons at the bottom of the xml Oct 04 21:31:51 think about what this is going to do Oct 04 21:31:52 android:layout_alignParentLeft="true"        android:layout_alignParentRight="true" Oct 04 21:33:02 it just starts drawing based on the parents left edge? Oct 04 21:34:18 you're saying the left of the button should be aligned with the left of its parent, and the right of the button should be aligned with the right of its parent Oct 04 21:34:47 look at the docs for relativelayout Oct 04 21:34:47 oh... lol Oct 04 21:35:58 thanks sampullman Oct 04 21:36:07 no problem Oct 04 21:37:18 Can anybody point me to ANY example of using OpenStreetMaps natively in an Android app? Oct 04 21:39:12 Chronax: do they have a client library? Oct 04 21:39:50 i thought osmdroid was one Oct 04 21:42:59 I have just created tried to use findViewById Oct 04 21:43:01 in my class Oct 04 21:43:11 and it says that it is undefined, I have imported activity Oct 04 21:43:18 What should be wrong? Oct 04 21:43:25 your class doesn't extend activity Oct 04 21:43:48 How to fix that? Oct 04 21:44:09 I'm just learning java Oct 04 21:45:05 use findViewById in activity, or call that method on some View instance. Oct 04 21:47:25 Ankilla can you please tell me more about that? Oct 04 21:47:51 Both classes are on the same java file Oct 04 21:56:19 i've extended that and now system crashes when reaches Oct 04 21:56:24 TextView console = (TextView) findViewById(R.id.console); Oct 04 21:57:02 Boundless: crashes on what error. Oct 04 21:57:28 uncaught exeption Oct 04 21:57:29 note that you can't just take a random class and extend Activity and expect it to work. It actually has to BE an activity, used by android. Oct 04 21:57:38 Boundless: have you called setContentView(...) and stuff? Oct 04 21:57:48 Nope Oct 04 21:58:08 So I have random class Oct 04 21:58:13 how to make it work with TextView console = (TextView) findViewById(R.id.console); ? Oct 04 21:58:15 have you read the beginner guide? :P Oct 04 21:58:40 have you even created a layout file with a TextView with he id "console" in? Oct 04 21:58:43 the* Oct 04 21:58:49 Boundless: you need to pass the view root to that class and call findViewById on it Oct 04 21:58:50 Yes :) Oct 04 21:58:53 good :) Oct 04 21:59:06 iirc on an activity that was something like getRootView() Oct 04 22:00:03 it's highly unusual to manipulate android-managed objects in utility classes though. Possible, but unusual. Oct 04 22:00:35 Maybe you can tell me some method to print some output from that class? Oct 04 22:00:53 Boundless: print output where? Most people use Log.i or such for debugging messages. Oct 04 22:01:03 you would watch those with adb logcat Oct 04 22:01:14 To UI Oct 04 22:06:52 alankila, maybe you want do small programming job? I can pay you Oct 04 22:06:55 Small app Oct 04 22:07:08 Boundless: please don't recruit in here Oct 04 22:07:09 * Sicp waits Oct 04 22:07:25 Damn.. Oct 04 22:07:29 take it to /msg if you insist on talking to alankila Oct 04 22:07:32 I think I'm going to bed right now, anyway. Oct 04 22:07:43 meeting tomorrow and I need to be fresh in it Oct 04 22:07:51 Tomorrow morning is my deadline Oct 04 22:07:52 lol Oct 04 22:07:54 anyways thanks Oct 04 22:09:53 hello Oct 04 22:09:59 i have n00b question Oct 04 22:10:15 java or maybe android related Oct 04 22:10:32 which is... Oct 04 22:11:03 the world will never know Oct 04 22:11:17 how to: Settings.System.getInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC, 0) inside Settings class Oct 04 22:11:50 guys, what does this message usually mean? Oct 04 22:11:51 Only the original thread that created a view hierarchy can touch its views. Oct 04 22:12:20 exactly what it says Oct 04 22:12:35 and it always means the same thing :P Oct 04 22:12:50 how to: hack Oct 04 22:14:39 cpetersen4, it means view stuff is NOT thread safe Oct 04 22:14:53 I'm a bit green...I'm instantiating a ListView in the same thread as I am filling it with an adapter...but I get that error... Oct 04 22:15:08 views can ONLY be interacted with on the UI thread Oct 04 22:15:35 cpetersen4, yea, but it's not the thread that displays everything else, thus the problem Oct 04 22:15:46 ahhhh Oct 04 22:17:28 I'm not 100% sure how I missed that in the tutorials...but THANK YOU Oct 04 22:17:31 that helps a lot Oct 04 22:18:25 I'm learning as I hack away at it Oct 04 22:18:29 :) Oct 04 22:18:32 I appreciate it Oct 04 22:18:49 cpetersen4: View.post() can help in some cases Oct 04 22:19:54 what does that do exactly? Oct 04 22:20:07 "Causes the Runnable to be added to the message queue." Oct 04 22:20:35 allows u to add a runnable to the UI thread Oct 04 22:21:31 reto comes, reto goes :) Oct 04 22:43:15 i've got a complex view inside a horizscrollview. onlayout gets called twice, once before the parent is fully laid out, and then again afterwards. how can i know reliably which pass it was? Oct 04 22:46:00 hmm, i can hack around it by checking the parent's size, caching it, and checking to see if it changed. but that feels hacky to me. Oct 04 22:49:11 i cant believe it took me over three years before writing a simple command to deploy an apk to all connected devices Oct 04 22:49:39 canadiancow: how does it work ? Oct 04 22:49:58 its simple for me, i only have one device :D Oct 04 22:50:03 alias adball="adb devices | tail -n +2 | cut -sf 1 | xargs -iX adb -s X" Oct 04 22:50:12 alias aai="adball install -r" Oct 04 22:50:19 aai blah.apk Oct 04 22:50:26 cool Oct 04 22:50:52 its more useful for like "how does this look on a galaxy nexus and a nexus 7 and a xoom" Oct 04 22:51:13 canadiancow: totally stealing that Oct 04 22:51:26 :D Oct 04 22:51:44 i mean honestly how is this not part of adb Oct 04 22:51:53 i dont have 3 devices plugged in because im devving on one and charging the rest Oct 04 22:52:11 I hate that ADT doesn't have that feature in the launch device picker thing Oct 04 22:52:16 yea Oct 04 22:52:20 it should be pretty easy to write an ant target that uses ddmlib to do this, right ? Oct 04 22:52:28 but I don't hate it enough to write a patch Oct 04 23:12:16 Hello, is there something like a horizontal PagerView or a carousel that I can use with minimum API Level of android 2.2 ? Oct 04 23:19:36 R4md4c: if there isn't, i'll be developing one soon that i can put on github for oyu Oct 04 23:19:44 since i also have that exact same req Oct 04 23:19:56 anyone know if ContentResolver can open http/https URIs? Oct 04 23:21:03 anyone managed to use eglCreateImageKHR successfully? Oct 04 23:21:24 tophyr: I've found https://github.com/JakeWharton/Android-DirectionalViewPager . but I dont know if it can be used on android 2.2 devices Oct 04 23:21:34 R4md4c: you can use ViewPager Oct 04 23:21:38 it's in the support library Oct 04 23:22:07 please someone help me, I really really need some help here. I'm trying to a .NET webservice and using ksoap2 library to call the service but I'm having this exception: "09-27 16:29:59.641: W/System.err(312): java.lang.ClassCastException: org.ksoap2.serialization.SoapObject" Oct 04 23:22:57 I already succesfully called other methods, but the method that I'm calling now returns a complex object Oct 05 00:02:37 anyone know of any traditional "GridView" controls for Android? Oct 05 00:03:14 not the Android GridView, but the typical control with gratitious gradients and datasource that accepts List Oct 05 00:03:25 or perhaps some ArrayList Oct 05 00:06:48 hello Oct 05 00:07:42 need to build a android custom rom for  Amlogic Cortex A9  device ? what shoud i do ? Oct 05 00:09:29 etcetera: wouldn't ArrayAdapter work? Oct 05 00:09:50 leslie: no I know I could simply build it myself. Oct 05 00:10:01 But the customer wants a 3rd party control. Oct 05 00:10:11 any reason? Oct 05 00:13:17 leslie: heh, I could argue or deliver. Oct 05 00:13:20 But no, no specific reason. Oct 05 00:13:51 hm. well, I'm not aware of any third party controls, but I've never really looked Oct 05 00:20:03 etcetera: why not just use GridView? Oct 05 00:20:12 evancharlton: the requirement is 3rd party. Oct 05 00:20:13 etcetera: just copy GridView into your own project, if that's what they want... Oct 05 00:20:18 heh. Oct 05 00:20:33 they literally want it to function like one of those silverlight or wpf gridviews. Oct 05 00:21:06 I don't know how those work Oct 05 00:21:35 but GridView can definitely handle List, as long as it's wrapped in the appropriate adapter Oct 05 00:26:59 How do I add a onClick into an onListItemClick? I want it so that if my object is selected/clicked it'll open up the onListItemClick items, however my issue is that onClick has no position variable therefore my 'String time = classes[position];' won't work Oct 05 00:27:35 evancharlton: but they want to avoid having to create a separate subview for each of the rows. Oct 05 00:27:39 and then define the table header. Oct 05 00:27:51 they affectively want a proper tableview/datagrid for android. Oct 05 00:30:18 Streusel: setOnItemClickListener ? Oct 05 00:30:40 etcetera: TableLayout? Oct 05 00:30:50 evancharlton: tablelayout is not virtualized. Oct 05 00:31:01 hmm Oct 05 00:31:03 I'll try that Oct 05 00:31:03 thanks Oct 05 00:31:20 etcetera: you could add in generics but then you wind up at an inefficient GridView Oct 05 00:31:34 etcetera: I really don't understand your requirements, but I wish you luck on your quest Oct 05 00:32:29 evancharlton: I'm basically looking for a DataGrid control that inherits from ListView. Oct 05 00:32:39 something like this...but better: http://www.runrevplanet.com/index.php?option=com_content&view=article&id=250&Itemid=156 Oct 05 00:33:04 etcetera: good luck Oct 05 00:33:12 because I'm pretty sure that's not possible :) Oct 05 00:33:35 evancharlton: why not? Oct 05 00:33:55 it's just a ListView subclass. Oct 05 00:34:02 But where someone's already done the work. Oct 05 00:41:02 hmm, how can I programmatically set android:entries on a Spinner? Oct 05 00:44:29 pfn: create an ArrayAdapter I think Oct 05 00:44:39 yeah, that's pretty crappy, but I guess what I'll have to resort to Oct 05 00:45:50 you can create an arrayadapter from an array resource, pfn Oct 05 00:45:59 can you? Oct 05 00:46:20 ArrayAdapter.createFromResource(this, R.array.planets_array, android.R.layout.simple_spinner_item); apparently Oct 05 00:46:33 oh, handy, thanks Oct 05 00:48:37 pfn, http://bitgrind.com/android/android-4.1.1_r4/android/widget/AbsSpinner.html#75 Oct 05 00:49:03 leslie, oh nice. Oct 05 00:49:14 hm? Oct 05 00:49:24 didnt know about createFromResource Oct 05 00:50:19 why is it internal R.layout.simple_spinner_item Oct 05 00:50:20 grrr Oct 05 00:50:48 there's a public one Oct 05 00:51:13 so I'm trying to use the camera, and the docs refer to using getOutputMediaFile() but I can't find that in the API docs...what class is it in? Oct 05 00:52:05 pfn, or just copy it into your app, it's one line Oct 05 00:52:14 (just a TextView) Oct 05 00:52:15 mrenouf, I know, it's public, but dunno if it's the same id, or resource Oct 05 00:52:22 e.g. styling Oct 05 00:52:27 http://bitgrind.com/android/android-4.1.1_r4-res/layout/simple_spinner_item.xml Oct 05 00:53:16 ahh, nvm, found it, some helper method in the tutortial... Oct 05 01:04:39 ugh, yeah, simple_dropdown_item_1line looks like ass :( Oct 05 01:05:41 oh, nevermind, there is an R.layout.simple_spinner_item Oct 05 01:10:58 How can I detect when any application tries to access the location service ? Oct 05 01:11:28 I REALLY wish ?attr/ references would auto-complete in the layout editor Oct 05 01:11:52 CVirus, you can't Oct 05 01:12:15 mrenouf: how does this work then ? http://www.addictivetips.com/mobile/lbe-privacy-guard-for-android-monitors-access-requests-guards-privacy/ Oct 05 01:12:32 check PM, CVirus Oct 05 01:12:40 CVirus, *for rooted devices Oct 05 01:12:56 mrenouf: How is it done for rooted devices ? Oct 05 01:13:50 I can think of a few ways but really, if you have root, you can replace the location service if you want. so it's not all that complicated Oct 05 01:14:04 yeah I mean if your just trying to detect that its there Oct 05 01:14:20 there has to be a way to do that if taskkillers can pick it up and whatnot, right? Oct 05 01:16:10 mrenouf: Exano: I don't quiet get it to be honest :S Oct 05 01:27:54 I want to display a tooltip/info window kind of thing. is this basically a dialog? (looking for example image) Oct 05 01:28:16 mrenouf you can also use popupwindow Oct 05 01:28:32 Oh. Gmail after deleting a message, the undo prompt Oct 05 01:31:01 http://developer.android.com/design/media/confirm_ack_draft_deleted.png Oct 05 01:31:06 exactly that Oct 05 01:31:51 mrenouf: you can use a Toast for that Oct 05 01:32:21 a Toast with no timeout? Oct 05 01:32:46 thats not really a toast romainguy Oct 05 01:32:58 yeah. I dont think toast does that Oct 05 01:32:59 it has a button in it Oct 05 01:33:08 its also translucent Oct 05 01:33:13 it's a custom control, but i believe it's in AOSP Oct 05 01:33:23 canadiancow: you can put any view you want in a toast Oct 05 01:33:38 wait really? Oct 05 01:33:40 * mrenouf investigates Oct 05 01:33:41 well yes Oct 05 01:33:44 * canadiancow learns something new every day Oct 05 01:34:02 I figured romain knows what he's talking about :-) Oct 05 01:34:15 well I'm just guessing what Gmail is doing Oct 05 01:34:23 it might just be a popupwindow Oct 05 01:34:38 no its not a toast Oct 05 01:35:11 I was just looking for the right style to use. I think I can figure the rest out Oct 05 01:35:35 it's persistent, until focus is lost, then fades out Oct 05 01:36:04 toasts disappear after a fixed a mount of time Oct 05 01:36:20 the one in gmail is simply a view that's displayed there Oct 05 01:36:29 yeah, Toast is not what I need Oct 05 01:36:48 btw, PopupWindow vs. Dialog what's the difference? Oct 05 01:47:03 I built a shared library with the android-ndk, and I want to check the symbols in it (because I'm trying to resolve an undefined reference error), I should be using arm-eabi-nm blah.so right? But I get "no symbols" Oct 05 01:49:24 gnychis: don't forget -D as option to nm Oct 05 01:49:34 also, check out readelf and objdump Oct 05 01:51:06 p_l: a-ha, i did need that -D Oct 05 01:51:58 gnychis: build systems tend to strip symbols outside of debug builds, except for the dynamic symbols Oct 05 01:52:13 mrenouf: a PopupWindow exists inside of an existing Window whereas a Dialog has its own Window? Oct 05 01:52:19 (speculating) Oct 05 01:53:32 No, just reviewed the source, they both seem to manage a Window. PopupWindow seems a bit more bare bones (it's use for autocomplete textview, tooltips, etc), it takes an absolute size and position, or can be pinned onto a View. Oct 05 01:53:46 Whereas Dialog is somewhat laid out automatically Oct 05 01:54:18 Popupwindow can be dismissed clicking outside of it with a touchinterceptor Oct 05 01:55:04 JakeWharton: a PopupWindow is its own window Oct 05 01:55:16 And have convient methods for popping up proximal to a view, if you were doing tooltips (think these things you can do with dialog, not sure) Oct 05 01:55:27 as can Dialogs (setCanceledOnTouchOutside(boolean cancel)) Oct 05 01:55:31 is or has Oct 05 01:55:39 lasserix, yep, I saw that Oct 05 01:56:11 Diloags seem to manage their own position/size more or less. Oct 05 01:56:51 I think I'll try with a Popup window Oct 05 01:56:54 Ahh that is very true. Either way you're probably fine Oct 05 01:56:54 well, i'm glad that's the case since the name wouldn't really make sense otherwise Oct 05 01:57:01 lol Oct 05 01:57:38 Can you switch content view for a Fragment after onCreateView is called? (like setContentView of Activity) ? Oct 05 01:57:46 doesn't seem possible Oct 05 01:58:13 you can change things inside the containing view Oct 05 01:58:24 obviously... :-) Oct 05 01:58:44 I know I should be switching Fragments but its complicated Oct 05 01:59:01 I'm getting the warning "Android NDK: WARNING: Unsupported source file extensions in jni/libgpg-error/src/Android.mk for module gpg-error" .... but I don't see any unsupported extensions: http://pastebin.com/GhKk1esU Oct 05 01:59:02 you should be able to, yes, as far as I know Oct 05 01:59:31 i'd have to jump into FragmentManager again to make sure no references are cached Oct 05 02:03:51 jake abs got any ribbon nav stuff? Oct 05 02:03:58 yes :( Oct 05 02:04:06 sad face? Oct 05 02:04:22 do most of the guys in there use eclipse? or do you use something else? Oct 05 02:04:27 IntelliJ IDEA Oct 05 02:04:29 fuck eclipse dude Oct 05 02:04:33 intellij is like 100x better Oct 05 02:04:33 ron_frown: https://github.com/SimonVT/android-menudrawer is probably the best one Oct 05 02:04:36 and community is free Oct 05 02:04:36 good, so it's not just me Oct 05 02:04:38 ron_frown: I loathe the pattern Oct 05 02:04:45 ahh Oct 05 02:04:50 I agree Oct 05 02:04:52 I was just curious Oct 05 02:04:53 eclipse pisses me off too much Oct 05 02:05:01 they just added it to the design guidelines too Oct 05 02:05:02 and google acts like it's the way to go... Oct 05 02:05:04 reading through the android design site again Oct 05 02:05:12 nice Oct 05 02:05:13 so now all the idiots will be implementing it unnecessarily Oct 05 02:05:19 solving problems that never existed for them in the first place Oct 05 02:07:06 oh great, another freakin pattern. Oct 05 02:07:29 thats basically from the Google+ app Oct 05 02:07:35 Google+ and YouTube, yeah Oct 05 02:07:55 what's ribbon nav? Oct 05 02:07:57 The Twitter app I use utilizes it and I absolutely adore it because they moved every feature that I never ever used into the ribbon menu Oct 05 02:08:03 so it completely de-cluttered the UI Oct 05 02:08:08 once it's in somthing big, all the designs i get have it in Oct 05 02:08:19 and now all that's left are two action items and an indicator for their ViewPager Oct 05 02:08:25 3 in the last 3 weeks Oct 05 02:08:29 oh. see well there's problem. I never noticed it in YouTube, they treat it as an "Up" activity Oct 05 02:08:46 mrenouf: so does G+ Oct 05 02:08:51 ah, drawer? Oct 05 02:09:00 yet another thing to disambiguate the behavior of up/back Oct 05 02:09:16 because it's already a total lottery as to what each does at any point Oct 05 02:09:24 it's broken. I click "up" I get the menu. THen I can click back, and I go forward to the "main" screen Oct 05 02:09:39 I have to say that some of the apps I have seen it in work nicely, but I never noticed how they interact with Up/back (cause I only use the classic Back navigation myself) Oct 05 02:10:00 mrenouf: there's no such thing as up or back anymore Oct 05 02:10:01 I suppose it makes tablet/phone layouts a bit simpler. Oct 05 02:10:05 it's just click-and-pray Oct 05 02:10:17 add to this the task crap they introduced Oct 05 02:10:19 JakeWharton, not true. there are clear rules. I follow them. Oct 05 02:10:30 there are clear rules... that change every 4 months Oct 05 02:10:37 well, tasks are tricky. but also make sense. Oct 05 02:10:58 when back worked like a browser and up work hierarchically it all made perfect sense Oct 05 02:11:14 JakeWharton, this hasn't changed? Oct 05 02:11:30 it's "spatial" vs. temporal Oct 05 02:11:33 it's changed twice Oct 05 02:11:40 o_O Oct 05 02:11:55 great, then I didn't notice. Oct 05 02:11:59 f--- Oct 05 02:12:33 at Square we do what people think should happen and ignore the design guidelines Oct 05 02:14:03 great, and just tried the Play books app and it doesn't do that. Click a book from the widget. Back should return me to launcher. Instead it goes "Up". WTF Oct 05 02:14:06 with regard to up/back and task stacks at least Oct 05 02:14:42 i wouldn't even care if I thought the design guidelines were broken, just so long as everyone was consistent because then at least you could expect that behavior Oct 05 02:15:17 but the platform isn't consistent and the app ecosystem is orders of magnitude worse creates an uncertainty to every action Oct 05 02:35:13 grr where's romainguy when you need him Oct 05 02:36:17 damn him and his 'life' Oct 05 02:37:46 i know right Oct 05 02:37:49 i should have bugged him when he was at work Oct 05 02:37:55 :P Oct 05 02:39:57 romainguy, you busy? Oct 05 02:40:02 always Oct 05 02:40:43 p_l: so, in a source file in my library, I have Oct 05 02:41:12 p_l: a function defined, and that source file compiles with my library, but arm-eabi-nm -D doesn't show it (and I'm also getting an undefined reference for it) Oct 05 02:41:40 So... last night I unpacked the SDK and then ran android-sdk, accepted the default checked packages and installed. Took forever and I think I might have suspended the laptop before it was done. Is there any way to run an integrity check? When I run android-sdk again it doesn't have any packages checked. Oct 05 02:43:39 Found it! editbox_dropdown_background_dark.9.png <- The gmail "undo" action popup window background :-) Oct 05 02:43:59 did you take it from the gmail apk? Oct 05 02:44:07 because if so, you probably can't use it Oct 05 02:44:14 no, it's aosp Oct 05 02:44:20 ok :) Oct 05 02:44:35 I looked through all the drawables till I found it. it may not be identical, but it's pretty close. Oct 05 02:44:42 to my eye anyhow Oct 05 02:44:56 well if it looks the same, then that's all that really matters ;) Oct 05 02:45:56 puff: you aren't running ubuntu, are you? Oct 05 02:48:37 puff, if you're truely concerned, you can just check the oens that are "installed", and delete them Oct 05 02:48:40 then download them again Oct 05 02:49:32 for some reason i can only dload one package at a time through the sdk Oct 05 02:49:37 otherwise it silently fails Oct 05 02:50:57 really? Oct 05 02:51:01 never seen that Oct 05 02:51:06 have you filed a bug report? Oct 05 02:51:17 sampullman: Yeah, I am running ubuntu. Oct 05 02:51:36 sampullman: I was hoping to avoid having to redownload them :-). Oct 05 02:51:43 canadiancow: I was hoping to avoid having to redownload them :-). Oct 05 02:51:46 sampullman: sorry. Oct 05 02:51:59 i get around it by downloading one at a time Oct 05 02:52:47 i haven't filed a bug report, but i have looked into it and i think it's specific to ubuntu 11.04/11.10 Oct 05 02:53:19 im on 12.04 and do not have that problem Oct 05 02:54:56 sampullman: which is? Oct 05 02:55:04 Ah, odd. Oct 05 02:55:59 I'm running 11.04 xubuntu; my platform-tools directroy now contains: aapt adb aidl api dexdump dx fastboot lib llvm-rs-cc NOTICE.txt renderscript source.properties **** ENDING LOGGING AT Fri Oct 05 02:59:57 2012