**** BEGIN LOGGING AT Mon Jun 03 02:59:58 2013 Jun 03 03:09:27 does android have asyncronous sockets? Jun 03 03:15:23 cboyce, turn off "mobile data" and "wifi" ? Jun 03 03:16:38 Where would I look for that? The ConnectivityManager doesn't seem to let me explicitly disable network features. I can disable wifi via the WifiManager, but can't find what I need for the mobile data side Jun 03 03:20:07 damccull, yes Jun 03 03:20:09 anyone have any advice on where to get started on game-dev for android? tutorials or anything? Jun 03 03:20:32 pfn what do I look for? Java.io.sockets is blocking... Jun 03 03:20:37 system.io.sockets sorry Jun 03 03:20:42 damccull, nio Jun 03 03:21:02 pfn oic. Interestingly enough, I was JUST about to check out what that is. Jun 03 03:21:12 what is system.io Jun 03 03:21:23 oh it is java.io sorry. Jun 03 03:21:29 p getting it confused wiht my C# Jun 03 03:21:51 My question arose when I was looking at a C# code example which has a TcpClient class, which does async reads and writes with event listeners instead of blocking io Jun 03 03:22:02 and I was like, "i wonder if i can do that in java" Jun 03 03:22:19 yes, since 1.4 Jun 03 03:33:20 cool Jun 03 03:33:31 pfn so are 'selectors' like event listeneres? Jun 03 03:51:20 noob here!! trying to setup AVD for my HTC One, which technically has no SD card. Jun 03 03:51:50 I put 'internal' storage at 32 GB and 'sdcard' at 32 MB. Jun 03 03:52:33 Eclipse won't upload the .apk. says 'no such file or directory', but of course it doesn't bother to tell me what file or diretory it is looking for. Jun 03 03:53:25 I tried to bump the SD card setting on the AVD up to 32 GB (instead of MB) and the whole thing locked up (hung). Jun 03 03:54:58 I am setting up the emulator. Jun 03 03:55:24 I am trying 200 MB internal storage, and 8 GB sdcard now.. it is hung again. Jun 03 03:55:36 the mouse cursor is 'thinking'. Jun 03 04:00:56 damccull, effectively, yes Jun 03 04:01:17 Vortran, just delete and recreate a new avd Jun 03 04:01:23 and it takes about 5 minutes for a first-run to complete Jun 03 04:01:30 especially if you're not using an x86 image and hax Jun 03 04:01:32 thanks. Jun 03 04:02:21 how about internal/versus sd card? To (properly) emulate a device (HTC One / S4) with no sd card? Jun 03 04:02:58 you won't be emulating any specific device Jun 03 04:03:01 only general android Jun 03 04:03:07 just give like 500mb internal memory Jun 03 04:03:18 and a modest amount of sdcard only if the app you're developing needs sdcard Jun 03 04:04:07 ok. I'm just trying to load an example from the book I bought. Jun 03 04:04:40 I keep getting can't upload .apk to device: no such file or directory. Jun 03 04:05:11 I'm hoping it's just because I only had 32 MB of sdcard and a ludicrous (32 GB) amount of internal storage. Jun 03 04:06:21 I could see the old AVD emulator via adb shell Jun 03 04:06:25 it makes no difference Jun 03 04:06:29 shoot. Jun 03 04:06:37 then I don't know why I was getting that erorr. Jun 03 04:06:37 no such file or directory, I know nothing about Jun 03 04:06:43 try doing adb install -r yourfile.apk Jun 03 04:06:44 I'm making a new emulator device. Jun 03 04:06:48 anyway Jun 03 04:06:49 * pfn go & Jun 03 04:08:14 while googling I saw something that said the data directory should not be empty. Jun 03 04:08:29 the data directory on my AVD emulator was empty. Jun 03 04:55:53 I keep getting 'cannot access the package manager. is the system running?' when trying to install my .apk to the AVD emulator via adb. Jun 03 04:56:07 adb devices shows emulator device attached. Jun 03 04:59:37 hey, i hope someone has AndEngine experience. im getting a Parser exception upon building, do i need an XML document for using andengine? or can i just use a single file? Jun 03 05:01:42 hey guys Jun 03 05:01:49 if I have a context passed into me Jun 03 05:01:56 can I get the activity from it? Jun 03 05:02:31 ProgramMax: really quick google Jun 03 05:02:31 http://stackoverflow.com/questions/9891360/getting-activity-from-context-in-android Jun 03 05:02:39 "android get activity from context" Jun 03 05:03:21 uhh...sorry :) Jun 03 05:03:23 but thanks Jun 03 05:03:50 ProgramMax: thats cool Jun 03 05:03:50 sinistersnare - I can't help you. Jun 03 05:04:01 Vortran: :( i dont know what im doing wrong Jun 03 05:04:09 I am a noob. I am trying to load an example .apk from the book I bought. Jun 03 05:04:11 im following a tutorial, and he doesnt talk about an xml tutorial at all Jun 03 05:04:16 maybe you can help me. Jun 03 05:04:19 put it on your phone Jun 03 05:04:21 I keep getting 'cannot access the package manager. is the system running?' when trying to install my .apk to the AVD emulator via adb. Jun 03 05:04:25 adb devices shows emulator device attached. Jun 03 05:04:33 weird Jun 03 05:04:37 can you put it on your phone? Jun 03 05:04:41 and run it from there? Jun 03 05:04:49 hrmm.. Jun 03 05:04:53 I dunno. Jun 03 05:05:15 actual mobile device is in different room. Jun 03 05:05:31 idk from AVD Jun 03 05:05:31 then how are you using adb to install it ? Jun 03 05:05:39 oh emulator Jun 03 05:05:55 yeah.. Jun 03 05:06:05 emulator. Jun 03 05:06:08 well you can "push" it to the emu Jun 03 05:06:19 and push a file explorer app too Jun 03 05:06:21 I tried with eclipse, too. Jun 03 05:07:24 I can ghet the file copied. Jun 03 05:07:29 can't install it. Jun 03 05:07:57 adb -r install Jun 03 05:08:22 still says could not access package manager. Jun 03 05:08:39 well you emu and adb are not chatting then Jun 03 05:08:43 your* Jun 03 05:08:46 I can open a shell to the emu. Jun 03 05:08:55 hmm Jun 03 05:09:19 install uploads the files (x bytes/sec) but then gives the error. Jun 03 05:09:36 *file (singular) Jun 03 05:09:55 google search Jun 03 05:09:58 15 seconds Jun 03 05:09:59 https://groups.google.com/forum/?fromgroups#!topic/rhomobile/dDJMguzLUqs Jun 03 05:10:15 apparently a known freezy problem Jun 03 05:10:28 saw that Jun 03 05:10:35 what is 'rake command'. Jun 03 05:11:10 I have restarted the emu a zillion times. Jun 03 05:11:21 ok.. well, at least half a dozen times. Jun 03 05:11:48 well do what I said earlier Jun 03 05:11:53 psuh the file Jun 03 05:12:02 and push a file explorer Jun 03 05:12:14 then try shell and install local to emu Jun 03 05:12:38 is 'install' a local command? Jun 03 05:12:41 I dont really use emulators, so not all that up on the probs Jun 03 05:12:43 install Jun 03 05:12:50 I thought it might jsut be an adb command? Jun 03 05:13:07 not sure Jun 03 05:13:11 I am a total noob. sorry. Jun 03 05:13:11 I would assume install Jun 03 05:13:22 like I say, I'm not into emulators Jun 03 05:13:30 hrmm. Jun 03 05:13:36 horrid things not great for much :) Jun 03 05:13:37 well I have to sleep. Jun 03 05:13:58 well, I don't want to tie up my actual device. Jun 03 05:14:10 tie up ? Jun 03 05:14:15 but if I have to, I have to. Jun 03 05:14:20 you know it would still function right ? Jun 03 05:14:22 :) Jun 03 05:14:44 actually, I guess I do. Jun 03 05:15:05 I was running logcat last night trying to capture an error. Jun 03 05:15:25 so duh. Jun 03 05:15:33 anyway.. good night. Jun 03 05:15:48 someday I'll actually write some Android sofware. Jun 03 05:15:50 * Vortran sigh Jun 03 05:16:43 * StingRay_ thinks that too Jun 03 07:35:12 morning busy android devs Jun 03 08:04:22 Hi, is anyone aware of libraries for statistics and signal processing (percentile- analysis, cross-correlation function, FFT .. )? A flexible license like MIT would be nice, too. Jun 03 09:03:07 Hi all, question about the calender content provider. If i create a new calender on the device, can other applications insert/delete/get events from my created calender? Jun 03 09:05:15 I want to use a AsyncTask to write some data to file. The problem is the data I want to write is stored in the app sqlite database. The Question is now how do I get this data in my asynctask? Should I pass the application context to the task and do the query in there (I use a content provder for my database querries). Query the Database directly? Or do the Querry in the Ui Thread (with a loader) and pass the Cursor or a list to the Jun 03 09:05:15 AsyncTask. Any advice? Jun 03 09:13:23 saedelaere can't you just use an intent service Jun 03 09:14:03 tho i dont remember if you also have to use a seperate thread Jun 03 09:14:07 or if that's handled for you Jun 03 09:14:46 lasserix: the Problem is I want to update the Ui from the "Thread" that writes the data to a file. Jun 03 09:15:00 or better said I want to show a progress bar. Jun 03 09:15:21 so I need a way to access the main Ui thread Jun 03 09:15:50 ohh Jun 03 09:16:29 post to a handler / callback then Jun 03 09:17:05 but asyncTask should be ok for ya Jun 03 09:18:09 StingRay_: would you pass the application context to the asyncTask to perform the sql querry? Jun 03 09:18:41 no Jun 03 09:18:53 personally I would pass the cursor Jun 03 09:19:05 but warning… I'm not a programmer Jun 03 09:19:08 :) Jun 03 09:21:01 :) Jun 03 09:39:00 hi all, I'm experiencing a problem with widgets taking up different cell widths when dropped onto the home screen in either portrait or landscape. I'm using only one layout file in res/layout/. Any idea what could be causing this? Jun 03 09:42:59 maj what ver of android you doing? Jun 03 09:43:29 lasserix: 4.x Jun 03 09:44:04 seeing the problem on a 4.2 nexus 7 Jun 03 09:45:28 explicitly set them for landscape and portrait in /xml if i remember correctly? Jun 03 09:45:49 im not using separate layout files Jun 03 09:46:02 so the widths are the same Jun 03 09:47:40 i know Jun 03 09:47:48 i just though you might try to do that Jun 03 09:47:55 see if you have the problem Jun 03 09:48:12 anyways Jun 03 09:48:41 i just looked at my appwidget on n7 and it is def different too even though i have same original xml descriptor Jun 03 09:48:54 yeah Jun 03 09:49:02 and res/layout doesn't determine it Jun 03 09:49:06 the problem is more than it just appearing differently in portrait and landscape though Jun 03 09:49:11 it's the xml/appwidgetmetainfo.xml file Jun 03 09:49:30 the widget takes up different widths in *both* portrait and landscape, depending on which orientation I am using when the widget is created Jun 03 09:51:55 lasserix: the only sizes I can specify in the xml/widget_provider.xml file is minWidth and minHeight Jun 03 09:59:35 hi y'all Jun 03 10:00:12 somebody experience with Facebook API (stories)? Jun 03 10:00:49 majackson: that's your clue, you have to work from those values to determine your layout Jun 03 10:04:48 sort of going out on a limb here, but is there any kind of 'contract' manufacturers have to follow when it comes to 'low battery'? Jun 03 10:05:08 ACTION_BATTERY_LOW gets fired off on nexus devices when the battery hits 15%, but the dialog is shown at 14% Jun 03 10:05:56 if Johnny Bigbollocks Devices Inc. makes an android smartphone, and they reskin the crap out of it like TouchWiz … what if they device at 10% they'll show a dialog but report battery low at 15? Jun 03 10:06:39 is there any way to be notified of a system dialog being displayed? Looking at the SystemUI code, the window is set as a system alert Jun 03 10:21:19 lasserix: so how is the actual width calculated? Jun 03 10:37:01 maj: can't remember but its device dependent Jun 03 10:40:56 majackson: you can use DisplayMetrics to get width/height and set size of your main parent at onCreate and at onConfigurationChanged when the user rotates Jun 03 10:41:45 shmooz: nice idea. id like to figure out why this is happening to begin with first though. do you have any idea? Jun 03 10:43:16 majackson: not sure :P Jun 03 10:43:57 majackson: which widgets and what layout ? Jun 03 10:44:40 my own widgets Jun 03 10:45:03 they are appearing with a different cell width when theyre dragged onto my home screen in either landscape or portrait orientation Jun 03 10:45:12 hai :) Jun 03 10:45:38 and by that I mean when I create the widget in portrait, it appears with 3 width in portrait, 4 in landscape. when I create in landscape it appears with 4 width in portrait, 5 in landscape Jun 03 10:45:58 so the orientation when the widget is created *permanently* affects its width in either orientation Jun 03 10:46:38 although ive just noticed the google play music widget seems to be equally affected by this problem Jun 03 10:46:47 (nexus 7, android 4.2) Jun 03 10:47:42 majackson: pastebin the code where you create the widget maybe Jun 03 10:49:02 majackson: maybe you can find out the percentage of how much bigger and then detect which mode it is creating in and force size accordingly somehow ? Jun 03 10:50:40 tbh if the google play widget is also doing it, im inclined to think its either a feature or a bug thats beyond the scope of my widget to try to workaround Jun 03 10:54:55 majackson: if you need something to stay a constant size you should easily be able to override the default behaviour Jun 03 11:30:07 So what's the story with HLS streaming? Does that work? Any 3rd party SDKs I can use? Jun 03 11:36:14 * norbi says hello Jun 03 11:37:05 hello norbi :3 Jun 03 11:38:27 i have a fragment of code, that gives me NPE on the for line, can you help me to find out why is that? http://pastebin.com/XLpeCakt Jun 03 11:39:32 the onResults method is from the RecognitionListener Jun 03 11:43:28 looks like data is null Jun 03 11:45:48 sonOfRa: yes i would think so, but that method is not trigerred if result is empty... Jun 03 11:45:57 i mean, data Jun 03 11:46:13 sonOfRa: but im not sure Jun 03 11:46:38 if the nullpointerexception is occuring on that line, data is null. Jun 03 11:47:43 i should simply verify if data is not null? Jun 03 11:49:45 That's completely up to you. There might be something inherently wrong when data is null. Check for other causes too Jun 03 11:53:36 in other words, the bundle does not contain the data you think Jun 03 11:54:36 the problem is that i have low understanding on this... im just trying to acomplish what i need for school Jun 03 11:58:07 help... How can I set alpha in 0xaarrggbb format? `green | (0xaa << 6)` doesn't work Jun 03 11:59:40 oh thats horrid Jun 03 12:00:10 StingRay_: yeah, I noticed the Color class has no methods for it :( Jun 03 12:00:27 this must be a mistake, I just fired ubuntu up on one of my macbooks, looked at the software center, decided to download intelliJ and they charge for the community editition ??? WTF ? Jun 03 12:01:38 Pitel_IPEX: sorry was not commenting on your thing Jun 03 12:01:44 k Jun 03 12:01:47 was just shocked at ubuntu Jun 03 12:01:52 very shocked Jun 03 12:01:56 beyond shocked Jun 03 12:03:12 intelliJ CE is free ... Jun 03 12:03:18 erm, I know Jun 03 12:03:23 hence the shock Jun 03 12:03:34 or you mean it's free from ubuntu sw center ? Jun 03 12:03:43 I'm looking @ Software Center on my Ubuntu and it says free Jun 03 12:03:46 yes Jun 03 12:03:52 says "buy" here Jun 03 12:04:01 and takes me to payment thingy Jun 03 12:04:02 US$0.00 Jun 03 12:04:21 Takes me to TOS Jun 03 12:04:38 so I have to purchase it at $0.00 ? Jun 03 12:04:51 heh - guess they want you to get a userid Jun 03 12:05:09 on my Win machine they let me bypass that entirely Jun 03 12:05:16 i guess the error is on this line, ArrayList data = results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION); this is on line 507 and error log says NPE on 508 wich line is if (data.isEmpty()) {Log.i(TAG, "no results"); } Jun 03 12:05:26 ah ok, yeah thanks capella Jun 03 12:05:35 how can this result NPE? Jun 03 12:05:37 only half shocked now Jun 03 12:05:55 data == NULL Jun 03 12:06:33 capella, but im checking it with isEmpty() Jun 03 12:06:35 or Jun 03 12:06:37 results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION); == NULL Jun 03 12:06:51 norbi: isEmpty is not == null Jun 03 12:06:52 norbi, you can't call null.isEmpty() Jun 03 12:06:58 that's a nullpointer exception Jun 03 12:07:02 what he said ---^ Jun 03 12:07:06 :D Jun 03 12:07:17 if(data == null) { //Do what needs to be done } else { } Jun 03 12:07:22 but it shouldnt be null Jun 03 12:07:25 but it is Jun 03 12:07:27 why it is null? Jun 03 12:07:34 what can be causing it to be? Jun 03 12:07:34 ugh Jun 03 12:07:51 when you assign it Jun 03 12:07:58 the assignment is null Jun 03 12:08:10 capella: just said Jun 03 12:08:15 results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION); == NULL Jun 03 12:08:16 you figure the rest :) Jun 03 12:08:48 capella, i thought that the assignment is null, but this is the speechrekog api, it shouldnt be null.... Jun 03 12:08:57 I didnt write it Jun 03 12:09:10 :) not familiar Jun 03 12:09:54 capella thanks, anyway with that help i can start from somewhere, otherwise im watching it like a noob Jun 03 12:09:55 norbi: the docs for getStringArrayList explicitly states that the return value can be null: "Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key." Jun 03 12:10:34 appel1: that skill... how many years from now do i need to achieve that... Jun 03 12:10:50 heh - stupid docs ... NOW they tell us Jun 03 12:11:24 capella: i sincerely dont like the docs, because are incomplete for a beginner Jun 03 12:11:31 capella: yeah, when copy-paste-randomly-change-stuff until it compiles development doesn't work Jun 03 12:11:36 capella: but they arent for beginners Jun 03 12:11:51 I think the docs are for anyone Jun 03 12:11:55 as reference Jun 03 12:12:11 they assume 2 things, you already can program and that you will read all of it Jun 03 12:12:13 :) Jun 03 12:12:20 :P Jun 03 12:12:37 appel1: im not really randomly changing stuff but almost, but that way ive learned other languages and frameworks, and i can say that im good at those, now android gives me some headache and java Jun 03 12:12:42 I got in my new car but it wont drive me anywhere Jun 03 12:12:44 * StingRay_ needs a cig sooooo bad!! Jun 03 12:13:08 * norbi joins StigRay_ with one Jun 03 12:13:29 * StingRay_ quit a week ago…ish Jun 03 12:13:35 maybe longer Jun 03 12:13:37 norbi: I can't think of any languages or frameworks that doesn't require you to read documentation and understand basic language features like null Jun 03 12:13:43 after 25 years Jun 03 12:13:44 hello9 Jun 03 12:13:44 :( Jun 03 12:14:04 stingray_ good for you! I gave up booze 3 years ago Jun 03 12:14:15 oh I never drunk Jun 03 12:14:22 well not really Jun 03 12:14:22 anyone has experience with loadermanager Jun 03 12:14:23 appel1: never met NPE in C or PHP or Javascript, basic college languages Jun 03 12:14:31 all I had was smoking :( Jun 03 12:14:34 now thats gone too Jun 03 12:14:46 norbi: ... never met NPE in C? Jun 03 12:14:47 never got a NPE in c++? You're not doing it right ... Jun 03 12:14:47 da fuq Jun 03 12:15:08 NPE in C? they don't exist? Jun 03 12:15:12 what are you talking about Jun 03 12:15:24 well, C doesn't have exceptions... Jun 03 12:15:28 well its not "called" that .... more like a memory violation Jun 03 12:15:34 segfault Jun 03 12:15:36 but OS usually complains about shitting on address 0 Jun 03 12:15:48 should the onLoadFinish be called by the LoaderManager after screen rotation? Jun 03 12:15:54 yep, segmentation violation Jun 03 12:16:19 norbi said: "appel1: im not really randomly changing stuff but almost, but that way ive learned other languages and frameworks, and i can say that im good at those, now android gives me some headache and java" <---- first mistake is this "and i can say that im good at those" I cant tell you the ways that thinking that is bad Jun 03 12:16:38 but p_l, that is OS dependent and many use C for microprocessors where nothing happens or weird behaviour when you do it Jun 03 12:16:42 wow guys, yes ive never met NPE in c... that doesnt meen that i cant do stuff well in c, i guess, but maybe im ceiled to a low level Jun 03 12:16:47 there is no NPE, and no bluescreen, or crashed app Jun 03 12:17:11 Xabster: I know. But typical use of C involves a lot of issues with null pointers, even with embedded hw Jun 03 12:17:22 norbi: you never once looped out of bounds on anything? Jun 03 12:17:27 because "address 0" tends to be annoyingly special in many systems Jun 03 12:17:33 (hw systems) Jun 03 12:17:48 p_l: im learning electronics, not computer science, doing embedded, really never met NPE in embedded... Jun 03 12:18:12 norbi: ahh, silent errors. "Best" kinds of errors :) Jun 03 12:18:30 silent but deadly ;) Jun 03 12:18:40 Xabster: true, that mey be considered NPE when for 1 to 100 and the char has only size of 10 Jun 03 12:19:10 it's related, but might not be a NPE Jun 03 12:19:11 "Why did the device emit magic smoke after the warm reboot procedure?" "... We might have overwritten reinit code" "Fuck" Jun 03 12:19:47 magic smoke? Where can i get that? :D Jun 03 12:19:49 anyway i stop trolling now, i know only college level of programming, so yes im loow :D but try to learn and thanks guys for helping :D Jun 03 12:20:21 norbi: Java doesn't like nulls, so it spews Null Pointer Exceptions a lot when something is missing Jun 03 12:20:29 p_l: it feels like you have been doing hw also Jun 03 12:20:49 int x=-1; x++; x=x/x; Jun 03 12:20:57 norbi: not much, but I did took a robotics course, which was thinly disguised way to actually pound how computers work into students heads :) Jun 03 12:20:57 ^^^java hates that, too ;) Jun 03 12:20:58 i mean also, im not doing it, im in learning phase, so its uncomparable with doing it Jun 03 12:21:32 C++ doesn't like null either --- you wind up doing Jun 03 12:21:33 if (p and p.isOK()) { Jun 03 12:21:43 as part of the robotics course we had to read sparc assembly among other things :) Jun 03 12:21:59 p_l: yeah that's uggly ;) Jun 03 12:22:06 the ld/st Jun 03 12:22:58 nah Jun 03 12:23:01 that's easy Jun 03 12:23:07 I like load-store architectures Jun 03 12:23:21 p_l: im learning PIC, AVR and Arduino... not much x86, so basic micros aren't hard to program and doesnt need high level of skill in programming Jun 03 12:23:23 read some of this: http://en.wikipedia.org/wiki/Brainfuck Jun 03 12:23:33 the easy-to-forget thing is stuff like delay slots Jun 03 12:24:07 I remember telling prof that he missed the delay slot in his code example :D Jun 03 12:24:16 what's a delay slot? Jun 03 12:25:00 if (data.isEmpty()) { Log.i(TAG, "nu sunt rezultate"); } else if(data == null){ Log.i(TAG, "result assignment is null"); }else{} i cant believe that check order mathers and java compiler cant figure out for himself wich option is true here, i need first to check if data==null otherwise still getting NPE Jun 03 12:25:41 Xabster: some architectures will have already issued the next instruction by the time they process "jump" instruction, leading to an interesting case where "jmp @somewhere; add r1,r2" might actually do the addition despite the jump Jun 03 12:26:02 norbi, stop thinking of the java compiler as a "he" and it might work better Jun 03 12:26:03 :P Jun 03 12:26:07 lololol this "Brainfuck" is kinda asm :D Jun 03 12:26:27 so by rule, *normal* sparc code (and for other architectures with delay slots) have NOP(s) after jmp/branches Jun 03 12:26:32 norbi: that "check order" is used in all programming languages Jun 03 12:27:00 okay, you call NOP for a delay slot Jun 03 12:27:06 not heard it before Jun 03 12:27:15 Xabster: i know that order mathers, because if first is true it wont check for the others in case of &, but not in case of && Jun 03 12:27:30 norbi: "i cant believe that check order mathers" Jun 03 12:27:33 xabster++ always do the if NULL check before you then try to dereference the pointer ... order always matters Jun 03 12:27:53 Xabster: in this particular case i wouldnt expect Jun 03 12:28:05 norbi: what? Jun 03 12:28:15 programming is sequential Jun 03 12:28:21 it does an instruction at a time Jun 03 12:28:22 Compiler builds code based on what you feed it Jun 03 12:28:30 it doesn't look ahead and see if you later check for null Jun 03 12:28:42 Xabster: it's kinda like having the control for railway switch on the other side of the switch, so by the time you get to change the direction a railcar ("instruction") already got on the old direction Jun 03 12:28:54 Xabster: ok, then im really far from handling nulls, and didn't know that checking for null first is a strict order Jun 03 12:28:58 p_l: i got it, just never heard it called "delay slot" Jun 03 12:29:23 Xabster: http://en.wikipedia.org/wiki/Delay_slot <--- sounds pretty common term :) Jun 03 12:29:56 i see Jun 03 12:31:13 wow - I do like 5 assemblers and Ive never seen that Jun 03 12:31:47 norbi: so in your c programs you could get awai with accessing a pointer before checking if it is valid? Jun 03 12:31:50 i have seen the concept, but my teacher never called it that, i think he called it dummy instructions Jun 03 12:31:58 DEC PDP, 6502, x86, BAL, and some other stupid one Jun 03 12:32:23 capella: all ones without delay slots :) Jun 03 12:32:28 right Jun 03 12:32:30 appel1: never working with pointers in C Jun 03 12:32:34 heh :D TIL Jun 03 12:32:45 x86 can't relax much of the "designed for pocket calculator" code ;) Jun 03 12:33:07 norbi: huh Jun 03 12:40:23 capella: anyway, delay slot is nothing. Imprecise exceptions (imprecise program counter in general), that is kinda hardcore Jun 03 12:43:16 Imprecise exceptions == "we're moving fast and something bad happened but we can't tell you exactly" ?? Jun 03 12:44:56 capella: imagine a processor where "program counter"/"instruction pointer" is write-only Jun 03 12:45:08 because the cpu is free to reorder everything as long as it keeps the causality Jun 03 12:45:48 oh dear Jun 03 12:47:58 reading Alpha ISA manual, I got the impression that nearly all instruction had "in case of exception, instruction pointer might not point to correct instruction" Jun 03 12:50:01 well (maybe OT) but how do you define "correct instruction"? In BAL the IP points to next inst to execute had the exception not occurred Jun 03 12:50:45 capella: the instruction that caused the exception (or at least a reliable way to derive it from the instruction pointer) Jun 03 12:51:24 EV6 had usually 3 instructions in flight concurrently in well optimized code, no guarantees on ordering Jun 03 12:53:20 not sure I like all that ... :P Jun 03 12:53:32 Need for Speed ;) Jun 03 12:53:43 yah ... I get that part Jun 03 12:53:51 also, allowed more freedom in chip design Jun 03 12:55:04 hey Jun 03 12:55:21 is there a way to make the tomtom app think the maps are actually on *internal storagr* Jun 03 12:57:49 is there a possibility to lock down tablets for use in an educational environment? Jun 03 12:58:13 eg I don't want them to remove the class apps or to play Angry Birds when they should be doing an assignment Jun 03 12:58:55 Good testing framework for android? Jun 03 13:42:34 I've a surface view in a LinearLayout, which is child of a RelativeLayout in order to center the layout. In the LinearLayout I've a SurfaceView which shows a camera preview. My goal is to add rounded corners to this linearlayout, including to its childviews. The problem I have: the Surfaceview doesn't get clipped. Any ideas? Jun 03 13:43:21 code of onDraw in the LinearLayout: http://pastie.org/8000528 Jun 03 13:45:06 how can i keep the application awake? after few seconds it shuts down, or going into background or in sleep and that kills my camera preview, any suggestions? Jun 03 13:47:49 norbi, setKeepsScreenAwake(true) Jun 03 13:48:32 feesh: thaynks Jun 03 13:52:42 No one an Idea on how to add rounded corners to a view and clipping its childs? Jun 03 13:53:46 hi everyone, is there a way to get Manifest editor in Android Studio? Jun 03 13:58:13 * capella doesn't understand that Jun 03 14:03:24 is localBroadcastReceiver only for runtime registration within an activity or something ? Jun 03 14:03:44 as in you dont do intent/filter in manifest etc Jun 03 14:04:03 or is it also supposed to work that way too ? Jun 03 14:11:21 was that a stupid question or something ? Jun 03 14:22:24 StingRay_ I have no experience with it, but it seems so Jun 03 14:22:42 I mean, that its only for runtime Jun 03 14:22:49 thats pants Jun 03 14:23:20 cheers for answer though Jun 03 14:23:32 looked around and couldn't confirm Jun 03 14:24:13 well if you declare a receiver in xml and set the exported attribute to false, still only broadcasts sent from your own app will be received Jun 03 14:24:58 yeah, but just seems odd to have a process based broadcast that only works with runtime reg Jun 03 14:27:49 it seems to me like this local broadcast system is completely disconnected from the global broadcast system (essentially its completely its own thing, you can just use it with the pre-existing BroadcastReceiver class for convenience) so it sounds logical to me Jun 03 14:28:30 on the other hand, what is stopping you from declarding exported=false broadcast receivers in xml, and writing some code that detect these declared broadcast receivers in your own app, and automagically adds them to the localbroadcastmanager Jun 03 14:28:39 should be more than 30 lines of code and voila problem solved Jun 03 14:28:43 *shouldnt Jun 03 14:30:58 ok, well I would have thought that a local intent filter be available then Jun 03 14:31:05 in xml Jun 03 14:33:58 does anyone have an idea why i get an padding error exception in the line http://pastebin.com/jy1Jjmsh in.read? Its working in another project. Jun 03 14:34:57 it's "pad block corrupted" Jun 03 14:36:33 means your decryption is failing for whatever reason Jun 03 14:36:40 bad key, bad crypto text, bad whatever Jun 03 14:38:27 StingRay_ you must be new to the support library :-) Jun 03 14:39:56 well, it starts decryting but it seems that the last block is not working as excepted. "Total arena Pages for JIT" from 1 to 18. The output file is almost working. Most stuff is decrypted but still corrupted Jun 03 14:40:12 Chainfire: pretty much new to everything cept vfx/games 3d stuff Jun 03 14:40:26 tried AS/IntelliJ yet ? :) Jun 03 14:40:36 Hello. Jun 03 14:46:51 Using a CipheROutPutStream instead of a OutputStream didnt solve it. GBC is working. DalvikVM too but the last block throws pad block corrupted. Jun 03 14:49:49 GBC? Jun 03 14:49:53 misterli this is a complete grab in the air but have you tried writing a bunch of extra 0's to the stream Jun 03 14:49:53 wtf is GBC Jun 03 14:50:02 garbacecollector Jun 03 14:50:03 and CipherOutputStream is encrypting a new stream Jun 03 14:50:16 GC is irrelevant to encryption/decryption Jun 03 14:50:30 are you sure you're using the sasme crypto mode in both ends? Jun 03 14:50:37 yes. 100% Jun 03 14:50:43 and for that matter, ECB is the worst block chaining method to use Jun 03 14:50:56 Same key, same source file. WRITE_EXTERNAL_PERMISSIONS and READ_EXTERNAL_PERMISSION, ... Jun 03 14:51:08 the data is different Jun 03 14:51:09 Well, the source is from another app. I cannot create a new encrypted db Jun 03 14:51:11 log it out Jun 03 14:51:58 if i have a countdowntimer of 10 seconds, how can i set the onTick to be fired only in the 9th second and never before and after even if i canceled the countowntimer and started again, i want to pass aprox. 9 seconds before onTick trigers Jun 03 14:52:00 also Jun 03 14:52:20 try using "AES/ECB/PKCS5Padding" with SecretKeySpec as well Jun 03 14:52:40 ... ECB????? Jun 03 14:53:08 man, everyone should just remove ECB from crypto libraries everywhere Jun 03 14:53:39 pfn: well, it's kinda hard to remove since it's not even a "scheme"... just direct application of block cipher to a block of data Jun 03 14:54:01 sure, it can still be removed, though Jun 03 14:54:09 just take out recognition of 'ECB' from algo strings Jun 03 14:54:17 ok, that, yes Jun 03 14:54:19 if someone wants to do ecb, they can do it via manual application Jun 03 14:54:24 Total arena pages for JIT: (1-18..) which is usually when decryption works. And after a while (about 30 seconds) still Java.io.IOException: pad block corrupted. If i try it with a corrupted DB it wont even start decrypting Jun 03 14:54:43 misterli, you messed up your pad block, or your decryption is messed up Jun 03 14:54:44 that simple Jun 03 14:54:56 misterli I gave you two separate suggestions to try, did you try either ? :) Jun 03 14:54:57 particularly, if you're reading and writing a file concurrently Jun 03 14:55:49 Yes Chainfire. Tried both. Same result Jun 03 14:56:03 Oh. No, just tried the second solution Jun 03 14:56:45 key spec is prretty agnostic of blockchaining and padding modes Jun 03 14:57:25 pfn I know both suggestions are weird but both have fixed a problem with en/decryption for me at least once Jun 03 14:57:49 i have this countdowntimer: http://pastebin.com/4kvsZW5E onTick is called in each second instead of 9, why is that? im resetting the countdowntimer aprox each second but why is onTick trigering when ive set it to be 9? Jun 03 14:58:18 same result for both :/ Jun 03 14:58:36 and there's no harm in trying ... worst case it excludes some more possibilities ... and whether or not things should matter in theory is non-interesting Jun 03 14:59:06 hi Jun 03 14:59:09 norbi, why not just 9000,9000 for ctor args Jun 03 14:59:55 pfn: cuz i thought that if it goes to 9000 maybe it wont fire anymore the onTick, but it was 9000,9000 Jun 03 15:00:11 I have a question: it would appear that I need to do "ant clean" every time before compiling with ant release/ant debug Jun 03 15:00:25 Solozerk, yes, it's necessary Jun 03 15:00:30 if I do not - I believe, only when a layout was modified - I systematically have a failure upon starting the app Jun 03 15:00:42 final statics are inlined, so stuff like BuildConfig won't be reflected Jun 03 15:00:49 deleting the R.class/R$*.class does not appear to help Jun 03 15:00:50 Solozerk, same thing happens with R.java Jun 03 15:00:54 final statics are inlined Jun 03 15:01:08 misterli are you sure you should be using PKCS5Padding, btw? Jun 03 15:01:14 pfn: if i reset ctor it fires onTick also? at 0 then 9000 again? Jun 03 15:01:25 norbi, probably, I dunno Jun 03 15:01:25 or it will tick only at first 9000? Jun 03 15:01:26 try it Jun 03 15:01:59 yes Chainfire. Jun 03 15:02:14 pfn > how come something like make/Makefile can detect any change easily but something as huge as apache ant cannot ? Jun 03 15:02:28 Solozerk, make would fail similarly Jun 03 15:03:01 hmm Jun 03 15:03:15 err, no. Im not. I trying to port a Python-Script which uses just AES. -> from Crypto.Cipher import AES and code = code.decode('hex') Jun 03 15:03:19 <pfn> final statics are inlined => this suggests that deleting all my .class files and then performing the compilation would work, right ? Jun 03 15:03:29 (apologies for the color) Jun 03 15:03:32 tried several stuff in my old project and this was working Jun 03 15:03:36 Solozerk, generally, yes Jun 03 15:03:45 I'm asking because the largest time by far in my compile is the images crunching Jun 03 15:03:52 well, I'll try that then Jun 03 15:03:53 thanks :) Jun 03 15:04:26 well. Ciper using AES and SecretKeySpec using AES is exactly the same Jun 03 15:04:54 Hi every body, I had a question about ImageView setImageBitmap perf Jun 03 15:05:09 I looked at the code of the method and I see Jun 03 15:05:12 Solozerk if you're annoyed by the image crunching, do it manually, and rename all the .png's to .PNG, and the image crunch step will be skipped, I think Jun 03 15:05:34 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/widget/ImageView.java#ImageView.setImageBitmap%28android.graphics.Bitmap%29 Jun 03 15:05:53 I see that he creates a ImageDrawable at each call of the methods Jun 03 15:06:04 Have you a solution to optimize that ? Jun 03 15:06:18 I see and its not possible to reuse the object Jun 03 15:07:03 Chainfire > a cleaner way might be to add a "clean-nocrunch" target to build.xml so it'll clean all but the crunched images Jun 03 15:07:05 and perform that instead Jun 03 15:07:07 thanks Jun 03 15:07:33 if you say so, I don't use ant to build, it's just something I remembered Jun 03 15:17:11 blah, why is android:tabLayout not styleable? Jun 03 15:36:09 I'm forcing a .class clean whenever R.java changes, too Jun 03 15:36:14 in my builds Jun 03 15:36:26 seems ok so far Jun 03 15:41:39 crunch! Jun 03 16:04:05 stupid question comes: how can i add a method to CountDownTimer? without extending it? i dont want to rewrite its constructor... Jun 03 16:05:46 norbi, what exactly is your goal? Jun 03 16:06:47 i want to add a counter into it then reset that counter with a method Jun 03 16:07:11 norbi: why would you have to rewrite its constructor? Jun 03 16:08:00 evance it asks to add a constructor if i extend it Jun 03 16:08:08 so just call through to super Jun 03 16:08:31 evanc: thank you! Jun 03 16:08:33 norbi: public MyCountDownTimer(Context c, AttributeSet a, int s) { super(c,a,s); } Jun 03 16:12:09 Well Jun 03 16:12:13 time to learn custom view drawing Jun 03 16:12:13 D: Jun 03 16:12:16 Here goes nothing Jun 03 16:12:47 Brian|CB, bah, custom view drawing is easy Jun 03 16:13:12 just… don't attempt to draw EVERYTHING after you see how easy it is :P Jun 03 16:14:21 lol Jun 03 16:14:27 I've got a slightly complex situation Jun 03 16:14:29 any way to speed up the android emulator? ._. Jun 03 16:14:31 with lots of angles and SVGs and such Jun 03 16:14:36 but I digress Jun 03 16:17:34 Brian|CB: can I ask your use of SVG ? Jun 03 16:17:54 cause I have yet to find justification for it and it's weight Jun 03 16:17:56 :) Jun 03 16:18:12 although for some odd reason I do want to, just not found it yet Jun 03 16:18:49 Linkandzelda: use intel image, buy a faster machine ? Jun 03 16:19:04 StingRay_: In reality I'm hoping I can avoid all use of SVGs Jun 03 16:19:12 but at my office I'm porting some web stguff to android Jun 03 16:19:14 StingRay_: Intel Atom x86 Image from SDK? Jun 03 16:19:14 and they used SVgs Jun 03 16:19:25 but I'm gonna probably get out of using them Jun 03 16:19:26 Linkandzelda: yes Jun 03 16:19:49 hmm, well how does that work? can I still test like normal on it? Jun 03 16:20:11 Brian|CB: yeah, the weight of them is not justified for me on mobile, and I'm an artist designer who wants to make pretty things, so thats saying something Jun 03 16:20:20 Linkandzelda: yes Jun 03 16:20:30 all android versions and screen sizes? Jun 03 16:21:04 Linkandzelda: imagine if asking in the same context, over and over that these were my answers "yes,yes,yes,yes..." Jun 03 16:21:25 ok ok lol, thanks Jun 03 16:25:15 Im putting a in my xml file for my main view like in the tutorial and im getting "ClassNotFoundException: cant find class com.example.android.fragments.HeadlinesFragment" Jun 03 16:25:35 I tried making it name="com.example.app2.HeadlinesFragment" but that doesn't work Jun 03 16:25:47 The package is: package com.example.app2; Jun 03 16:26:06 spelling then Jun 03 16:26:21 guys is it possible that i dont have enough memmory, thats why my voice recognition isnt working? http://pastebin.com/KUy2pGX3 Jun 03 16:26:22 HeadlineFragment ? maybe ? Jun 03 16:27:27 I'm 100% newbie: how do I make a button do something? Jun 03 16:27:31 I'm using eclipse bundle Jun 03 16:27:59 StingRay_: Do I only need to specify the class name once (in the xml file)? Jun 03 16:28:18 huh ? Jun 03 16:28:28 well whenever you want that fragment Jun 03 16:28:51 I dont use fragments in xml, so never really used them in that way Jun 03 16:29:00 but yeah, probably just a spelling mistake Jun 03 16:29:09 check and check again and again Jun 03 16:29:13 till you see it :) Jun 03 16:30:44 I am having some serious issues trying to figure out the best-practices / most elegant way of scoping things in my android apps Jun 03 16:31:01 Right now I'm practically putting everything in the same Activity class and it's really getting on my nerves Jun 03 16:34:01 StingRay_: its even slower than before o-o Jun 03 16:34:42 Linkandzelda: I would bet against that Jun 03 16:34:56 honestly it is, 10 mins to boot up Jun 03 16:35:04 1st boot yes Jun 03 16:35:12 dont be silly and think thats it Jun 03 16:35:14 ;) Jun 03 16:35:23 after booted its unusable, slower fps than emulated arm Jun 03 16:35:41 doubt that Jun 03 16:35:55 well I can make a video lol Jun 03 16:35:59 as in out of 1000's you would be the 1st to say that Jun 03 16:36:34 did you by any chance "read" the requirements ? Jun 03 16:36:43 as in virtualization / HAX etc ? Jun 03 16:36:55 it did say HAX failed Jun 03 16:37:01 oh Jun 03 16:37:11 "HAX is not working and emulator runs in emulation mode" Jun 03 16:37:21 there ya go Jun 03 16:37:23 failed Jun 03 16:37:25 :) Jun 03 16:37:42 so no, not slower, maybe 20 times faster Jun 03 16:37:48 just your setup failed Jun 03 16:37:50 :) Jun 03 16:40:04 hmm Jun 03 16:49:41 anyone know whether or not Android will support Java 7 or 8? Jun 03 16:49:56 or could Oracle prevent that? Jun 03 16:52:33 Oracle can curl up in a corner and DIE Jun 03 16:53:13 Achillion: most certainly, but I heard a question on the IO stream (in Larry Page's Q&A) Jun 03 16:53:36 Yeah I'd like to know too, actually Jun 03 16:53:39 and I don't get what leverage Oracle could use to hurt Android without hurting Java itself in the process Jun 03 16:53:51 Maybe they just don't care Jun 03 16:54:48 I don't think Ellison cares about it Jun 03 16:56:54 oracle, java, sun, tbh i dont much care for any of them too much Jun 03 16:58:23 Hey, is there a channel for Android Studio? Jun 03 16:59:13 belgianguy, not soon Jun 03 17:00:11 Mavrik: and is that in part due to Oracle, or internal design decisions? Jun 03 17:00:43 Snicers-Work, this is probably your best bet for Android Studio Jun 03 17:02:04 is there an easy way to override the font for my app with a custom ttf? Jun 03 17:02:31 belgianguy, the devs on IO weren't clear on that :) Jun 03 17:02:43 probably a bit of both Jun 03 17:03:55 Mavrik: yeah, I feared so as well, Ellison probably wants to see $$, encumbering Android with another layer of bs license :/ Jun 03 17:04:15 Stoob: I've been trying to figure that out too Jun 03 17:04:30 repeat at nauseam until the for-pay OS is cheaper in comparison Jun 03 17:04:46 I am getting gref limit has been reached Jun 03 17:04:51 global references Jun 03 17:04:58 pjdelport: you mean re:scoping? Jun 03 17:05:12 belgianguy, honestly I think expanding language and Java APIs isn't a big priority for Android devs anywas Jun 03 17:05:15 *anyway Jun 03 17:05:15 the crash outputs this though: W/dalvikvm( 605): 1380 of com.android.server.am.ServiceRecord (1380 unique instances) Jun 03 17:05:35 what is ServiceRecord and why is it holding so many references Jun 03 17:05:35 is there anyway when onCallStateChanged to force the device to change it to a different state? what i mean is when TelephonyManager.CALL_STATE_RINGING is true(ie. when state == 1) is there anyway to change the call state to idle or offhook? Jun 03 17:05:58 Mavrik: the java language itself, probably not Jun 03 17:06:00 Stoob: one way to scope things is to decompose things by loader, into fragments Jun 03 17:06:35 Well I've already got that going on right now Jun 03 17:06:41 Is there a way to require the user to enter a value in a dialog? Right now, they can click back and the dialog goes away Jun 03 17:07:18 it's just obnoxious Jun 03 17:07:35 Stoob: how complicated are your loaders getting? Jun 03 17:07:43 not very Jun 03 17:08:12 that sound okay, then Jun 03 17:08:16 but right now literally everything's in the MainActivity which is aggravating me Jun 03 17:08:20 where are your pain points? Jun 03 17:08:45 do you have any fragments? Jun 03 17:09:16 2 of em, both in the mainactivity ;p Jun 03 17:09:20 you can try to decompose things into loader / fragment pairs Jun 03 17:09:53 and to get stuff from the mainactivity to the fragments n back is whats annoying me right now Jun 03 17:10:23 Stoob: "in MainActivity" as in inner classes, or just indirect references? Jun 03 17:10:34 inner classes though i could take em out Jun 03 17:10:41 Mavrik: lambdas would be nice though :) Jun 03 17:10:44 doesnt raelly make any difference to what im up to Jun 03 17:10:44 you can try to keep the fragments standalone Jun 03 17:10:58 belgianguy, would sell my favorite pet for those Jun 03 17:11:00 what else is left in MainActivity, then? Jun 03 17:12:01 anybody tried iscroll5 yet? Jun 03 17:12:12 everything that involves the fragments interacting with eachother, really ;x Jun 03 17:12:14 imma go sower Jun 03 17:12:15 shower Jun 03 17:13:09 showah Jun 03 17:13:28 ah Jun 03 17:14:14 you can try to push more of that logic into the fragments by defining interfaces between them, for the high-level events Jun 03 17:14:59 as in http://developer.android.com/training/basics/fragments/communicating.html Jun 03 17:16:04 ideally, the glue code in MainActivity should be limited to just plugging the relevant fragments together via an interface like that Jun 03 17:16:20 are "emulator without gpu emulation detected" error a possible cause for a slow emulator? Jun 03 17:17:19 If savedInstanceState != null, then this means the screen was rotated? Jun 03 17:17:35 Xabster: probably Jun 03 17:18:24 Miesco: it means a configuration change happened or your activity was returned to after the user pressed home, android killed it, and then they came back Jun 03 17:18:25 enabling or disabling GPU acceleration can make a pretty big performance difference Jun 03 17:18:51 pjdelport: do you know how? Jun 03 17:20:03 Xabster: check the device definition in the AVD manager: there is a checkbox for "Use Host GPU" Jun 03 17:20:46 right, thanks Jun 03 17:21:14 is there anyway to play an audio/sound to the microphone in code? Jun 03 17:21:45 oh, you mean "fake" input? Jun 03 17:22:03 yeah pretty much Jun 03 17:22:17 i know how in regular java on a windows/linux machine, but not on A Jun 03 17:25:08 pjdelport: sorry to ask again, but do you know where the AVD manager is when you download the ADT bundle and unzip it? Jun 03 17:25:17 i have it in another installation where i didn't use that bundle Jun 03 17:25:26 Xabster: you should be able to run "android avd" Jun 03 17:25:28 but i need to find the emulator stuff that eclipse uses i think Jun 03 17:26:28 as a rule, you can add $ANDROID_HOME/tools and $ANDROID_HOME/platform-tools to your path Jun 03 17:26:56 which gives you the "android" command and all the res Jun 03 17:26:57 rest, even Jun 03 17:27:15 pjdelport: i found it inside eclipse too, but it still says "without gpu" when i start it Jun 03 17:27:20 i checked the use host gpu Jun 03 17:28:42 Xabster: might be that it's not supported? Jun 03 17:28:47 I have to run now, though... cheers! Jun 03 17:28:52 perhaps, ok, thanks Jun 03 17:42:19 In general: where should I have settings/application data? Jun 03 17:42:46 I need to have some small text entries saved that come from the user, and I need to create groups of those entries and I need to save/reload them Jun 03 17:43:48 SharedPreferences ? Jun 03 17:43:55 I'm not sure what "shared" implies Jun 03 17:45:00 create it with private access and only your app can see them Jun 03 17:45:41 in SharedPreferences ? Jun 03 17:46:00 I'm looking at these 5 options: http://developer.android.com/guide/topics/data/data-storage.html Jun 03 17:46:08 SQLite and network is not what I want Jun 03 17:46:51 but I do need to create List, but I don't think I can save lists of strings in SharedPreferences? Jun 03 17:47:06 it's supposed to be used for other stuff, like settings and shit, not content Jun 03 17:47:08 i believe Jun 03 17:47:17 you could write a json file Jun 03 17:47:36 or stuff json into sharedpreferences. sql isn't worth the hassle unless you really need it. Jun 03 17:47:48 there's InternalStorage Jun 03 17:47:59 like, my own custom file Jun 03 17:48:31 is there a json parser in the ADK? Jun 03 17:50:58 JSONObject, JSONArray, etc. Jun 03 17:51:35 perfect Jun 03 17:52:01 aww yeah JSON Jun 03 17:52:03 best format ever Jun 03 17:52:17 i hate it Jun 03 17:52:26 a lot Jun 03 17:52:53 If you hate JSON you've never had to deal with legacy XML based APIs Jun 03 17:53:30 indeed not Jun 03 17:53:50 but i might hate legacy xml based apis more, and still hate json Jun 03 17:54:23 new question: what is the general approach to showing a GUI that is dependent on the data I've saved? I want to have a dynamic number of buttons created based on my JSON Jun 03 17:54:33 right now i've made buttons in the xml as static content pretty much Jun 03 17:54:57 I'll need a loop in my onCreate() i suppose, but what would I then do? Jun 03 17:56:04 Well, if you want buttons to be conditionally shown you can make then have a gone state until you want them shown Jun 03 17:56:08 and then set them to visible when you want them Jun 03 17:56:31 Xabster, you can create views programatically Jun 03 17:56:33 that's not it Jun 03 17:56:40 create Layout, then use addView(); Jun 03 17:57:06 brx_: addView is a method on Activity then? Jun 03 17:57:16 no Jun 03 17:57:21 on layout? Jun 03 17:57:21 heres a short example Jun 03 17:57:22 addView is a method on view Jun 03 17:57:27 LinearLayout ll = new LinearLayout(this); Jun 03 17:57:32 you can add child views to a view Jun 03 17:57:34 Button b = new Button(this); Jun 03 17:57:39 ll.addView(b); Jun 03 17:57:47 setContentView(ll); Jun 03 17:57:50 right, but the layout is already created via xml - how can i fetch that and add stuff? Jun 03 17:58:06 so you have a determined number of views? Jun 03 17:58:49 i'm not that far yet, right now i have a linearlayout with static buttons. I'm gonna delete those buttons and instead read in some json and create whatever buttons it says to create and put them on the layout Jun 03 18:00:00 does that make sense? a user can press "create button", is asked to enter a name, and then that button's name is saved in json and re-created when app is re-opened Jun 03 18:00:47 findViewById() ? Jun 03 18:01:03 cast to linearlayout and addview? Jun 03 18:01:24 hard to say what the best solution for you is Jun 03 18:01:29 you want to do several things it seems Jun 03 18:02:24 if you "magically" have a List at the beginning of your code (don't think about where it comes from), how would you create a button for each string onto the linearlayout that is created in xml? Jun 03 18:02:43 I wrote a six-hour app Saturday for the Seattle Hack for Change event: https://play.google.com/store/apps/details?id=com.busdrone.android Jun 03 18:03:20 get the LinearLayout with findViewById(); Jun 03 18:03:30 then in a loop use addView(); Jun 03 18:04:17 for(String s:theList){ Button b = new Button(this);ll.addView(b); } Jun 03 18:04:47 you might consider that example Jun 03 18:05:46 right, that's what i suggested too :) Jun 03 18:05:59 http://pastebin.com/2DjyqEM1 Jun 03 18:06:01 i wrote that Jun 03 18:06:29 my question was mostly on how to get a hold of the linearlayout... [20:00:47] findViewById() ? Jun 03 18:06:33 setcontentView() Jun 03 18:06:49 is it just me or is it a bit stupid that if I have a class say ExtendedFragment that extends Fragment (which is actually a mapfragment, using google maps API), to cast it to a MapFragment, I have to cast it to a Fragment first? Jun 03 18:06:53 now, that's how to set it Jun 03 18:07:19 ahh you got that, cool Jun 03 18:07:27 e.g. ExtendedFragment ef; MapFragment mf = (MapFragment) (Fragment) ef; Jun 03 18:11:16 Is there a sample of how to set up the directory structure and trigger roboelectric testing with the new build system? Jun 03 18:24:23 Stoob, did you really just double cast something? :P Jun 03 18:26:01 double-cast \o/ Jun 03 18:26:28 cast ALL of the things Jun 03 18:26:38 .o/ Jun 03 18:30:35 quick question, anyone know the proper size for Nexus 10 wallpapers? all the ones I'm finding are just for the full resolution, but that doesnt allow for the parallax scrolling Jun 03 18:34:32 Wavesonics: You might be better off trying ton #android Jun 03 18:34:38 or even reddit.com/r/nexus10 Jun 03 18:36:39 is that IO video on Gradle public yet? Jun 03 18:37:11 afternoon everyone Jun 03 18:37:17 Seems IntelliJ's structure of adding libraries isn't allowed anymore (if I read the popup right) Jun 03 18:37:23 and I have to use Gradle Jun 03 18:38:05 I am having an issue with fragments. When I display my second fragment, it overlaps the previous one. Jun 03 18:38:37 has anyone here experienced that? Jun 03 18:39:10 lou_: what's the problem? are you calling .add() or .replace()? Jun 03 18:39:24 .replace Jun 03 18:39:36 lou_: Like overlaps as it in graphically overlaps/overlays, or as it replaces the old fragment Jun 03 18:40:08 graphically overlaps Jun 03 18:40:15 lou_: put your code on pastebin.com, please Jun 03 18:40:24 the main layout is a viewpager with "FragmentStatePagerAdapter" Jun 03 18:40:38 the second view that am trying to bringup is a PreferenceFragment Jun 03 18:40:49 ok, i will paste on pastebin Jun 03 18:40:51 thx Jun 03 18:42:06 here you go: http://pastebin.com/se3FaEyQ Jun 03 18:42:46 how do I add a JAR to an Android Studio Project? Jun 03 18:42:52 I put it in the libs folder Jun 03 18:42:52 line 142 is where I am getting the preferencefragment to show Jun 03 18:43:13 belgianguy, I had to do that for JTDS jar file Jun 03 18:43:17 but I assume I need to edit build.gradle, I'm seeing another JAR in dependencies (the support lib) Jun 03 18:44:09 lou_: can I just add it to that list? Jun 03 18:45:06 well, I did it through the IDE Jun 03 18:45:21 am trying to find the option for you, hang on Jun 03 18:46:26 the IDE gives warnings that the following dialogs wouldn't work (as they did in IntelliJ) Jun 03 18:47:48 yeah, I got that too; but, it shows the jar added Jun 03 18:47:53 Is using broadcast intents with a LocalBroadcastReceiver the standard way of communicating from Services/IntentServices to Activity's? Jun 03 18:48:19 lou_: so I added it to the libs folder, and added it to the innermost build.gradle file Jun 03 18:48:28 the YouTubePlayerApi.jar Jun 03 18:48:43 dependencies { Jun 03 18:48:43 compile files('libs/android-support-v4.jar') Jun 03 18:48:43 compile files('libs/YouTubeAndroidPlayerApi.jar') Jun 03 18:48:43 } Jun 03 18:49:22 but when I try to resolve my import errors, I never get the option to include the lib :( Jun 03 18:49:59 mmmm....am sure, i'll run into these issue when I start using the library to connect to the remote DB Jun 03 18:50:11 How can I list all buttons in a dialog? getButtons returns null even though they're 2 buttons displayed Jun 03 18:50:29 evanc or Brian|CB, did you get a chance to look at my pastebin? Jun 03 18:53:12 lou_: Sadly I can't look at a whole lot right now, only can answer brief questions Jun 03 18:53:16 IRC doesn't pay the bills :S Jun 03 18:53:41 yup. no worries.lol Jun 03 18:53:58 am not sure why the preferencefragment overlays the viewpager Jun 03 18:59:19 hey belgianguy Jun 03 18:59:23 look at here Jun 03 18:59:25 http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library Jun 03 19:00:23 does anyone have any experience with autocompletetextview and accessibility? Jun 03 19:00:54 is there anyone else that can talk me through my fragments issue? I have my second fragment overlaying my viewpager obj. Jun 03 19:02:24 lou_: thans :D that was it Jun 03 19:02:50 I want to know if my view which is part of a scrollview is actually visible or not. Jun 03 19:03:35 belgianguy would you help me with my issue? Jun 03 19:05:02 lou_: issues with Fragments and ViewPager? Jun 03 19:11:01 hi all Jun 03 19:13:01 i have a question, i would like to make an app which changes a bit of default android code, i looked into the API, but it's not a setting you can just set. So i would like to create a new piece of class, or replace a bit of code.. what is the best approach? Jun 03 19:13:55 it is something in the android framework Jun 03 19:14:02 such as ? Jun 03 19:14:06 framework/android/media/ClassName Jun 03 19:14:40 i know how to change the settings by rooting my phone Jun 03 19:14:47 you cant make an app that replaces core framework stuff Jun 03 19:14:49 but i would like to keep the original Jun 03 19:15:04 with root you can do some stuffs Jun 03 19:16:33 anyone already written some code to print the contents of a Bundle to logcat? Jun 03 19:18:09 hmm is there a work around? Jun 03 19:19:06 guys how can i call exit confirm dialog on back or home button pressed in activity, when the activity is the last stack? i mean when no fragment dialogs and nothing is open only the main activity, the last back button push i want to be an exit from app Jun 03 19:20:31 keep track of things ? Jun 03 19:20:37 :) Jun 03 19:21:13 StingRay_: i dont know how to call that dialog, i have a stacktrace Jun 03 19:21:30 you dont know how to call i dialog ? Jun 03 19:21:54 google :) Jun 03 19:22:04 a dialog* Jun 03 19:22:04 StingRay_: the exit dialog on back pressed Jun 03 19:22:14 there is no exit dialog Jun 03 19:22:19 there is…. dialog Jun 03 19:22:27 StingRay_: ok, thank you Jun 03 19:35:05 dude i'm trying Jun 03 19:40:03 So whats the process to start a fragment? Override Fragment and in the onCreateView() return a view from inflating the xml file (mine has a single TextView), then in my onStart() I have TextView.setText("Miesco"), also in MainActivity I have the add().commit() Jun 03 19:40:37 I add this fragment when it starts but its not showing the text "Miesco", it shows nothing Jun 03 19:40:40 I want to use getVisibility() but also want to know if the any of the view's parent is hidden. Sort of like getVisibility to propogate. How can i do this? Jun 03 19:41:04 getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, firstFragment).commit(); Jun 03 19:41:07 I do that Jun 03 19:46:30 What happend if, i "create new views" with the same ID inside the "nodes" Jun 03 19:46:46 And then on the root, i findViewById ? Jun 03 19:53:06 What are you talking about? Jun 03 19:53:43 marrrk: If you inflate one layout. Right ? And insert that layout to the say tablelayout... Jun 03 19:54:12 I think for inserting you need to use a certain placeholder object. Jun 03 19:54:17 I don't recall it's name. Jun 03 19:54:36 marrrk: This inflated layout have "TextView" with id -> "myTextView" Jun 03 19:54:48 its* Jun 03 19:55:18 marrrk: And you inflate this layout again, and again insert it to the TableLayout. Jun 03 19:56:07 marrrk: What I should get if i do myTableLayoutObject.findViewById(R.id.myTextView); Jun 03 19:56:41 What would you like to get? Jun 03 19:57:16 hi dudes Jun 03 19:57:21 i need some of help Jun 03 19:57:35 at this moment, sorry for my horrible english Jun 03 19:57:42 i ll try to it betther than i can! Jun 03 19:58:01 marrrk: It seems that I get the first TextView with that id. Jun 03 19:58:09 I having issues with an json webservice ~250KB Jun 03 19:58:31 Well that might be possible. I would suspect it to not be deterministic, though. Jun 03 19:58:35 json response comes from memcache and solr, so its very very fast! Jun 03 19:58:39 Do you want to get all text views with that id? Jun 03 19:58:53 if i request the webservice trough CURL Jun 03 19:59:05 this takes 0:5" ~ Jun 03 20:00:01 5 seconds** ~ maybe less but, when i see apache logs its takes more than 5 seconds, also 30 " or more Jun 03 20:00:17 Is a huge problem for me, i would like to someone could help me! Jun 03 20:00:48 indiechaser: What's your question? Jun 03 20:00:59 And what does it have to do with android? Jun 03 20:01:00 marrrk: https://gist.github.com/bluesm/5700899 Jun 03 20:01:45 it does about json requests Jun 03 20:01:47 bluesm: Are you seeing the result of System.out…. anywhere? Jun 03 20:02:22 marrrk: I just try to figure out, why this method, every time insert new "view", but removes listeners and text from TextView. Jun 03 20:02:34 marrrk: https://gist.github.com/bluesm/5700907 Jun 03 20:02:59 You have a plethora of typos in the word "quote". Jun 03 20:04:01 I actually never used System.out.. so I thought you wouldn't see anything from it. I always used Log... Jun 03 20:04:34 marrrk: Actually it works. Jun 03 20:05:14 I *think* if you search for id in one view container that will contain only one view with that id you should get the correct one. Jun 03 20:05:24 I still don't get what you're trying to accomplish. Jun 03 20:06:41 marrrk: But what if there is more views of that id . Jun 03 20:06:59 You should avoid that. Id is for a unique identifier. Jun 03 20:08:32 Otherwise you can use tags on your views, I think. Jun 03 20:08:55 Unlike IDs, tags are not used to identify views. Tags are essentially an extra piece of information that can be associated with a view. They are most often used as a convenience to store data related to views in the views themselves rather than by putting them in a separate structure. Jun 03 20:15:08 marrrk: Oh. I think, it just returns the closesst one :) Jun 03 20:15:47 If that's what you want. It seems like a horrible solution, though. Jun 03 20:17:07 marrrk: No it is not what i wanted. Jun 03 20:17:19 marrrk: I understande what happened then. Jun 03 20:18:18 marrrk: TextView newStockTextView = (TextView) myRootTableLayout.findViewById(R.id.stockSymbolTextView); Jun 03 20:18:49 marrrk: In this line I get the over, and over again the same, "TextView" Jun 03 20:19:20 But you want to get the next one? Jun 03 20:19:48 marrrk: Not. I wanted to get inserted one. Jun 03 20:19:53 is it possible to send an intent for an application and before opening that application close this app totally with exit, then after the intented app is closed open from start back this one? onPause cant be used because of camerapreview Jun 03 20:19:57 This from just inserted R.layout.stock_qoute_row Jun 03 20:20:11 i was thinking about a service that maybe can handle this Jun 03 20:25:04 Has anyone else lost ratings in your apps recently? Jun 03 20:25:35 yeah, wassup with that? Jun 03 20:26:15 I'm hoping it's some temporary glitch, but it's been a few days now and they haven't come back.. Jun 03 20:27:51 maybe they did some bogus user cleanup? Jun 03 20:28:26 Possibly Jun 03 20:37:46 anyone know why Android Studio would give a "Unable to resolve superclass" error Jun 03 20:45:09 belgianguy sounds like you have a library missing Jun 03 20:45:32 do you have external .jars as libs? Jun 03 20:45:45 Snicers-Work: I'm only using two, and the support lib was already included (and the code completion is finding them) Jun 03 20:45:53 and the other one I added Jun 03 20:46:03 (YouTubePlayerApi.jar) Jun 03 20:46:10 That .jar needs to be a lib. Jun 03 20:47:04 http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library Jun 03 20:53:15 Snicers-Work: already did that, now I did the gradlew clean trick, and it says build succesful Jun 03 20:53:28 but if I then run it in Android Studio, I get link errors Jun 03 20:54:49 What is the error exactly? Jun 03 20:57:00 Snicers-Work: hang on, I just turned on Warn level, and now I saw something about android.permission.INTERNET Jun 03 20:59:26 Snicers-Work: sorry, turns out that was it Jun 03 20:59:39 would be nice if that popped up in 'Error' level as well :/ Jun 03 21:01:10 Hi! I have a weird problem. When I open an item in a list it work perfectly (data fetched from db), but if I first add a new item to the list and then try to open one of the items in the list, the cursor is 0! and I get an exception (which I catch now). What could be the problem= Jun 03 21:12:41 i want to create a dialog inside a thread, how can i do that? Jun 03 21:15:37 use a handler and post with a runnable Jun 03 21:16:09 http://developer.android.com/reference/android/os/Handler.html#post(java.lang.Runnable) Jun 03 21:17:00 nobody having an idea what can be the problem causing my cursor to be 0 sometimes? Jun 03 21:18:28 synic: the problem is that i have this interface for the thread: http://pastebin.com/FGxHFEuT Jun 03 21:18:53 norbi: and you want to create the dialog from run? Jun 03 21:20:28 synic: and here is my thread: http://pastebin.com/2WehvMn7 Jun 03 21:21:07 synic: im getting http packet that tells me to decide something, then i want to create an alert dialog to permit user to decide Jun 03 21:21:33 norbi: yeah, what i said still stands. You post a runnable to a handler that was created on the main thread Jun 03 21:26:08 Thoughts on LocalBroadcastManager -- do you guys use it? Jun 03 21:26:31 seems like a cool concept, i feel like i dont see it very often though Jun 03 21:27:43 synic: so if i add final Handler threadHandler=new Handler(); to onCreate method, and a runnable to the thread it should work? Jun 03 21:30:06 synic: here is it, but i have syntax error: http://pastebin.com/index/2WehvMn7 Jun 03 21:31:56 synic: can you take a look please? i cant figure this out Jun 03 21:33:51 I'm creating an app with some list views which load a lot of images. I'm having some trouble where the images are loading slowly because the heap is completely used up. Any performance tips for me? Jun 03 21:34:11 I set largeHeap="true", but that obviously doesn't solve an issue like this. Jun 03 21:35:23 hallas, do you load the images in a separate thread so you don't lock the main thread? Jun 03 21:35:28 meck0 yes Jun 03 21:35:39 are you loading them only as they come into view? Jun 03 21:35:49 I'm loading them with the adapter getView Jun 03 21:36:00 I dunno about about the arrayadapters to manage inview and not inview Jun 03 21:36:39 Please teach me masters! Jun 03 21:38:02 hallas: you should use the LazyList example to only load the images that appear on screen at a time Jun 03 21:39:42 shmooz I'm using Picasso to load the images Jun 03 21:43:27 hallas: does picasso implement lazy loading ? Jun 03 21:43:39 define "lazy loading" Jun 03 21:43:56 to only load what you need on the screen Jun 03 21:44:01 answer is no right jake? Jun 03 21:44:22 yes Jun 03 21:44:31 of course it does that Jun 03 21:44:49 Anyone ever seen an instance where a phone (S3) connected via USB will debug, but will not accept a push from an IDE? i can use adb push and install manually, and it works Jun 03 21:45:48 JakeWharton any idea why it could stuck, and wait for a huge GC until images start loading again? I have Picasso.with().load().into() in an ArrayAdapters getView Jun 03 21:46:06 how big are your images and how big is your imageview? Jun 03 21:48:55 JakeWharton images are 640x640, imageview is 480 pixels width, and probably same in height Jun 03 21:51:14 works fine until I scroll over a few images, massive GC, wait and all of a sudden it's ready, like it's loading images that are not in view anymore Jun 03 21:51:33 I don't expect the library to detect this, just trying to learn more about it Jun 03 21:51:41 images not in the view are cancelled Jun 03 21:51:56 but if they're currently downloading we can't really cancel the download Jun 03 21:52:29 been doing GC for 20 secs now, no images, seems strange, like I'm doing something wrong Jun 03 21:52:52 GC_CONCURRENT, so could be download Jun 03 21:53:32 yeah, you've gotta be doing something strange Jun 03 21:53:37 GC for 20 seconds? wat? Jun 03 21:53:57 downloading images and rendering into a image view Jun 03 21:54:00 just a list view Jun 03 21:54:04 hallas: I know that Jun 03 21:54:15 but you're doing that in a weird way. Have you pastebinned your code yet? Jun 03 21:54:27 coming up Jun 03 21:54:29 thanks Jun 03 21:55:11 https://gist.github.com/hallas/71821fc7361b474a7a66 Jun 03 21:59:39 silly Q: does anybody know anything about JUnit unit tests requiring an _empty_ default constructor? i.e. no code? Jun 03 21:59:52 i've heard this vicious rumor, and would like to verify/kill it Jun 03 21:59:56 jonp: afaik yes, they need them Jun 03 22:00:13 why? how's JUnit even know if the ctor is "empty"? Jun 03 22:00:42 jonp: presumably it uses reflection to instantiate it. Oh, whoops, I read "empty" as "no args" even though you clarified it. Jun 03 22:00:45 I can't imagine that's true Jun 03 22:00:49 i can't either Jun 03 22:00:55 try it and see Jun 03 22:00:57 which is why i'm attempting to confirm or kill it Jun 03 22:01:21 should be pretty easy to confirm it Jun 03 22:01:22 yes, well then it might work 90% of the time, but it's documented as "don't do that" or something, and i'll hit some random corner case... Jun 03 22:01:29 though i can't even find any documentation which mentions it Jun 03 22:04:13 that pastebin makes any sense to you guys? Jun 03 22:04:13 how can i make a delay in a thread waiting for a global variable to change? Jun 03 22:10:14 What is the difference to get the inflater via getLayoutInflater() Jun 03 22:10:25 or LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); Jun 03 22:10:45 bluesm: they're all the same Jun 03 22:11:00 hallas: well, off the bat you should be using the ViewHolder pattern Jun 03 22:11:16 evanc EventHolder class, and use setTag? Jun 03 22:11:28 hallas: if you want to call it EventHolder then yes Jun 03 22:11:31 ;) Jun 03 22:11:48 evanc can you tell me why that matters? I looked at it and didnt understand why Jun 03 22:11:59 but there's nothing blatantly wrong. Use DDMS' allocation tracker and figure out where things are allocating RAM Jun 03 22:12:11 hallas: you don't always call findViewById (which can be expensive) Jun 03 22:13:26 evanc alright thanks man, you are very helpful Jun 03 22:20:26 you also shouldn't be demarshalling a JsonObject class inside of your getView Jun 03 22:22:24 Is binding to services mainly only for communicating with services that are in a different process? Jun 03 22:23:34 shigeru: yes Jun 03 22:24:03 (since different application usually means different process) Jun 03 22:24:08 so for communicating between services and activities in teh same process, what is commonly done? Jun 03 22:24:14 localbroadcastmanager? Jun 03 22:25:01 Services and Activities? You have a few options. Intents or service singletons come to my mind. Jun 03 22:25:17 Also you *could* use IPC Jun 03 22:25:24 i wanan avoid ipc Jun 03 22:25:32 service singletons sounds weird Jun 03 22:26:00 im mainly concerned with communicating from the service to the activity/activities Jun 03 22:26:35 shigeru: The BroadcastReceiver stuff will work Jun 03 22:26:52 cool Jun 03 22:26:56 or a Messenger object Jun 03 22:27:26 that requires binding to services and stuff right Jun 03 22:27:47 yep Jun 03 22:27:58 if that's not an option, then yeah, broadcastreceiver Jun 03 22:28:14 you might want to use an event bus Jun 03 22:28:16 is that advantageous to broadcastreceivers in any way? Jun 03 22:28:21 assuming im in the same process Jun 03 22:28:27 LocalBroadcastManager is a novel of code to perform an exceedingly simple task Jun 03 22:28:39 lol Jun 03 22:29:00 i think i can tolerate the amount of code Jun 03 22:29:38 the lack of type safety is also a major turn off Jun 03 22:29:45 ah with the extras? Jun 03 22:29:54 yes Jun 03 22:29:58 assuming i cant use an event bus, is localbroadcastmanager the next best thing? Jun 03 22:30:22 i have no idea. i have never not used an event bus. Jun 03 22:30:44 JakeWharton: what is the size of the otto lib? Jun 03 22:30:53 16k? Jun 03 22:30:57 i don't know Jun 03 22:31:15 really light Jun 03 22:31:17 18.5K pre-dex Jun 03 22:32:15 I was asking because we have a size constraint but 18k it's not a problem Jun 03 22:32:16 thanks Jun 03 22:54:13 size constraint? Jun 03 22:54:15 artificial? Jun 03 23:05:37 Hi, anyone here a veteran android developer? Jun 03 23:06:13 i have 10 years experience Jun 03 23:06:51 thirty years, man and boy. Jun 03 23:12:40 we have a size constraint on libraries too Jun 03 23:17:34 androidnewb: nope. Jun 03 23:21:59 i'm an Android veteran in the sense that it's physically damaged me and forever mentally scarred me Jun 03 23:22:04 JakeWharton: PTSD Jun 03 23:24:01 actually 10 years ago Android didn't exist shigeru Jun 03 23:25:07 rallat http://i.imgur.com/fLh0JgU.gif Jun 03 23:25:32 rallat: close, android, inc was founded in 2003 Jun 03 23:26:12 founded on 2003 but probably not sdk for devs out theree :) Jun 03 23:27:20 anyone have any experience connecting adb to an ubislate over wifi? Jun 03 23:27:39 12% battery should be enough to factory reset, flash rom and gapps, right? :) Jun 03 23:27:48 on a 7000mah battery Jun 03 23:28:08 this damn thing wont charge Jun 03 23:46:54 better question, is it possible to connect multiple devices at a time to adb over wifi? Jun 03 23:54:09 Hi, anyone here a veteran android developer? Jun 03 23:55:09 androidnewb: are you handing out compensations ? Jun 03 23:55:33 androidnewb: ask your question. Don't post surveys Jun 03 23:55:34 or do you mean served in the war and can code? Jun 03 23:56:05 I survived the wars of pre-Honeycomb Jun 03 23:56:20 I prefer Cheerioes Jun 03 23:56:34 heh-tough crowd Jun 03 23:56:35 I developed android that served in the iraq war, and now they have PTSD and need help Jun 03 23:57:02 androidnewb: what is your question, anyway? Jun 04 00:40:48 Can someone remind of what it's called to have a base application that other applications can inherit from? Jun 04 00:42:36 inheretance? o.o Jun 04 00:45:18 http://ideone.com/IXrEO4 Jun 04 00:45:21 where can I get a mapping of Build.MODEL actual devices? Jun 04 00:45:22 template ? Jun 04 00:45:28 so I know what to expect for Build.MODEL? Jun 04 00:45:29 im trying to insert current date and time into database Jun 04 00:45:32 whats the problem Jun 04 00:45:52 i mean realistically at this particular point im just trying to insert a simple string Jun 04 00:45:56 I keep getting database error Jun 04 00:46:11 And how can i view the contents of the database that is on the emulator? Jun 04 00:50:21 ia9371: its telling you to import stuff Jun 04 00:50:42 i dont need to import anything Jun 04 00:51:06 i get errors on this line right heere db.execSQL("INSERT INTO timeClock (punchInTime, punchOutTime) VALUES ('test001', 'test001')"); Jun 04 00:51:20 ia9371: well first you should get rid of the 'import' errors Jun 04 00:52:08 <|0xD34D|> I think those are ideone errors Jun 04 00:52:14 <|0xD34D|> since he's using that to post his code Jun 04 00:52:45 everything is imported Jun 04 00:53:11 <|0xD34D|> so what's the exception you get then? Jun 04 00:53:24 I just get a database error Jun 04 00:53:40 <|0xD34D|> that's still a bit vague Jun 04 00:53:45 database has closes unexpectadle Jun 04 00:53:57 <|0xD34D|> is that the name of your app? Jun 04 00:54:15 no the name of my database Jun 04 00:54:26 db001.sqlite3 Jun 04 00:54:28 <|0xD34D|> look at the exception in logcat Jun 04 00:57:47 it says unfortunately dbtest002 has stopped Jun 04 00:57:50 thats the name of my app Jun 04 00:58:29 no errors in the log i have narrows the problem down to this db.execSQL("INSERT INTO timeClock (punchInTime, punchOutTime) VALUES ('test001', 'test001')"); Jun 04 00:58:37 line of code because if i comment that out it works fine Jun 04 01:00:32 ia9371: try deleting the database and rerun your app Jun 04 01:00:47 where is DDMS? Jun 04 01:00:53 i mean in DDMS? Jun 04 01:01:02 <|0xD34D|> it's now called monitor Jun 04 01:01:06 <|0xD34D|> in with the sdk tools Jun 04 01:01:27 are you using the new Android IDE Jun 04 01:01:33 or eclipse Jun 04 01:02:25 <|0xD34D|> intellij Jun 04 01:03:05 ia9371: you can uninstall the app from App Manager and Clear Data, and then run it again Jun 04 01:04:58 ia9371: do you have the WRITE_EXTERNAL_STORAGE permission in your manifest ? Jun 04 01:05:24 umm.. I havent changed in setting in the manifest Jun 04 01:05:38 put this in there ... Jun 04 01:05:50 <|0xD34D|> why? Jun 04 01:06:26 <|0xD34D|> if the DB is in the app's data directory there is no need for that permission Jun 04 01:06:39 |0xD34D|: http://stackoverflow.com/questions/6133893/how-can-we-create-a-database-in-android-using-the-sqlitedatabase-class Jun 04 01:07:54 <|0xD34D|> okay but should that not end up in /data/data/app.package.name/databases/ then? Jun 04 01:08:37 <|0xD34D|> all the databases I've created and used in apps end up in the private data directory for that app. Jun 04 01:09:28 <|0xD34D|> ia9371: since your app force closed, there should really be some sort of stack trace in the logcat that tells you what the uncaught exception was. Jun 04 01:09:56 <|0xD34D|> that's going to be a lot more helpful than taking stabs at what the real issue is and hoping something works. it will at least give you some better insight into the problem Jun 04 01:10:30 how to see the values of a bundle in location.getExtras() ? Jun 04 01:10:46 Hi Everybody! Jun 04 01:11:10 Somebody knows what can cause ArrayAdapter add items to start of listView when using addAll ? Jun 04 01:11:15 and here's the solutions where he deletes the database and runs the app again and then it works ... http://stackoverflow.com/questions/6165887/android-permission-of-creating-database Jun 04 01:15:19 <|0xD34D|> Quest: I think the only thing in that bundle is an integer with the key "satellites" Jun 04 01:15:21 damn, does anyone have a database/listing of Build.MODEL for various android devices anywhere Jun 04 01:16:33 |0xD34D|, so the key "satelites" gives just the number of satelites? Jun 04 01:16:42 <|0xD34D|> pfn: I have openbuildprop.scheffsblend.com with a shit ton of devices listed Jun 04 01:16:58 nice, thanks Jun 04 01:17:16 <|0xD34D|> np, I need to organize the data better but there are plenty to choose from Jun 04 01:17:31 |0xD34D|, iam on road of a famous city at dawn. Iam trying for one hour but i didnt got a fix. no tall buildings near me. what can be wrong? my device is looking for a fix but not geting it. bad gps hardware or bad code? Jun 04 01:18:11 <|0xD34D|> I usually use https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5lY2xpcHNpbS5ncHNzdGF0dXMyIl0. Jun 04 01:18:12 |0xD34D|, what do name and device correspond to? .DEVICE and .PRODUCT? or the other way around Jun 04 01:19:21 <|0xD34D|> from os.BUILD? Jun 04 01:19:25 yes Jun 04 01:20:27 <|0xD34D|> PRODUCT is ro.prduct.name Jun 04 01:20:30 hmm, still pretty difficult to divine Jun 04 01:20:33 <|0xD34D|> device is ro.product.device Jun 04 01:22:26 my code works.... Jun 04 01:22:29 I don't know why :| Jun 04 01:22:40 HALP HALP I NEED AN ADULT Jun 04 01:25:08 |0xD34D|, yeah, thanks, pretty hard to work with, at least for what I need Jun 04 01:25:31 <|0xD34D|> no worries. I need to find some time to add some search and sorting features Jun 04 01:25:33 I have some situations where stuff doesn't work on a galaxy s3, or an xperia something or other, or nexus 10, I guess I can figure out the model numbers for them Jun 04 01:27:16 |0xD34D|, iam on road of a famous city at dawn. Iam trying for one hour but i didnt got a fix. no tall buildings near me. what can be wrong? my device is looking for a fix but not geting it. bad gps hardware or bad code? Jun 04 01:27:42 I wonder if you can detect device and then have ads targeted to that device, like accessories for that specific device, instead of random adds Jun 04 01:27:46 <|0xD34D|> Quest: dude I heard you before and suggested an app to see what kind of lock you are getting for GPS Jun 04 01:36:18 * pfn kicks the google nexus10 page for not indicating model number crap on the devices Jun 04 01:43:30 what does the asterix next to the name of the file mean in eclipse? Jun 04 01:44:14 edited Jun 04 01:44:24 how do i get rid of it? Jun 04 01:44:48 save it Jun 04 01:44:49 check it in Jun 04 01:44:50 whatever Jun 04 01:45:07 save it in eclipse or check it in git? Jun 04 01:45:41 that's for you to figure out Jun 04 01:45:49 ?? Jun 04 01:46:39 try one, then the other Jun 04 01:52:45 |0xD34D|, oh i see. what app should i use to see it? and I am not getting a lock apparently shown by the gps icon at the top Jun 04 02:01:37 |0xD34D|, heres the log by eclipse logcat http://pastebin.com/fzdSfgtD Jun 04 02:30:49 any one home? **** ENDING LOGGING AT Tue Jun 04 02:59:59 2013