**** BEGIN LOGGING AT Mon Dec 17 02:59:58 2012 Dec 17 03:06:49 anybody using guava in their project? Dec 17 03:06:53 eventbus in particular Dec 17 03:11:32 Maziz: I haven't used it, I've been using Otto Dec 17 03:11:49 otto? hmm Dec 17 03:12:10 https://github.com/square/otto Dec 17 03:12:16 it is a fork of the guava eventbus Dec 17 03:12:34 ah Dec 17 03:13:00 with an emphasis on Android. Dec 17 03:15:59 compatible with all android version Dec 17 03:16:07 interesting. but Otto only includes the event bus component Dec 17 03:16:15 correct? Dec 17 03:16:39 Maziz: yes, otto is just the event bus Dec 17 03:18:54 cool. Thanks michaelnovakjr Dec 17 03:21:13 Maziz: no problem. It is a cool library. Dec 17 03:53:04 somehow my onclick function from a textview behaves really strange. you can see the problem here: http://pastebin.com/paLXbCR2 Dec 17 03:55:52 illmat: what is value? Dec 17 03:56:15 it's a string Dec 17 03:56:55 System.out.println(value.equals("OK")); // says true as you can see in the output Dec 17 03:57:10 inputDest must be null Dec 17 03:57:51 no, i receive the "back pressed" output Dec 17 03:58:00 so it passes the first if statement Dec 17 03:58:29 why not determine the button via the id? Dec 17 03:58:50 i created it on the fly Dec 17 03:59:05 but somehow between those 2 executions, it must become null, there's no other way though that code Dec 17 03:59:54 yeah ;\ Dec 17 03:59:58 you can create an ID in an XML lije this: Dec 17 04:00:03 then assign it to the view Dec 17 04:00:31 ok, sounds like a good idea Dec 17 04:00:54 just courious what's going on there Dec 17 04:01:04 or inflate your buttons from another layout file and add them to where you want them Dec 17 04:02:47 it's my first android project, i bet i'm doing so much things the wrong way ^^ Dec 17 04:04:46 the android training section on developer.android.com has some pretty good starter examples. Dec 17 04:05:33 michaelnovakjr: does otto optimization brings substantial performance in comparison when using guava? maybe you have any benchmark or something? Dec 17 04:06:32 Maziz: I'm not sure, I didn't switch from guava. Dec 17 04:06:43 hmm Dec 17 04:06:51 ok Dec 17 04:07:22 michaelnovakjr: thanks, i know i still have to read alot, but my game is nearly finish ;) Dec 17 04:34:59 I'm following this tutorial: http://tinyurl.com/7ynwnez, but the application is force closing with these errors: http://pastebin.com/6yf0AekQ. Dec 17 04:35:37 I am trying to connect the app with my MyBB forum MySQL database, database name: reboch_slave and the table name: mybb_users Dec 17 04:44:16 I'm following this tutorial: http://tinyurl.com/7ynwnez, but the application is force closing with these errors: http://pastebin.com/6yf0AekQ. I am trying to connect the app with my MyBB forum MySQL database, database name: reboch_slave and the table name: mybb_users, would anyone have any idea why this isn't working? Dec 17 04:45:04 MasterZuFu: whatever JSON you are expecting is malformed. Dec 17 04:45:23 E/JSON Parser(995): Error parsing data org.json.JSONException: Value Table of type java.lang.String cannot be converted to JSONObject Dec 17 04:46:10 one thing I noticed which looked wrong to me, it says it's looking at the table reboch_slave.users, but shouldn't that be reboch_slave.mybb_users? Dec 17 04:46:44 I've checked and checked again three times, the information for the database login is correct in my data files. I however, don't have any idea how to fix that JSON error... Dec 17 04:51:38 MasterZuFu: I have no clue what mybb even is. This definitely isn't an Android related issue. Dec 17 04:54:34 mybb is a forum software, i read somewhere online that the server might only accept xml? would that be something that could cause this issue? and if it is, would you have any idea how I could fix this? I barely know coding, and I'm justing going off this guy's tutorial Dec 17 04:55:26 I've been out of the android-dev scene for while (just a hobbyist), but I was wondering what the proper way to show "loading" is now. Used to open up a little ProgressDialog in a fragment (so it wouldn't crash trying to call dismiss() after an orientation change), but I get the feeling that I should display it on the activity itself now. Dec 17 04:55:43 Should I use a fragment if I expect long loading times during which there may be an orientation change? Dec 17 04:55:49 Or do I even need to worry about that anymore? Dec 17 04:55:57 JavaDog: I cna't think of a reason that would be bad Dec 17 04:56:04 fragments are still pretty much "the way" Dec 17 04:57:10 The fragment will end up filling 100% of the activity, so it seems kind of silly (seems like fragments were designed with multiple-paneled interfaces in mind) Dec 17 04:57:23 and that I'd just be using them to work around some silliness Dec 17 04:59:21 JavaDog: fragments weren't designed exclusively as interface elements. Dec 17 04:59:31 What I'm really asking is, is there any reason to just use an activity on its own without a fragment in it? Dec 17 04:59:51 nope. using a fragment I think is much better. Dec 17 05:00:07 Huh, alright then Dec 17 05:00:09 thanks Dec 17 05:23:33 can i test my emultaor with a local server Dec 17 05:23:40 to test network functionality of my app Dec 17 06:15:11 Hey Guys Dec 17 06:15:19 anyone has experience with HoloEverywhere Dec 17 06:15:20 ? Dec 17 06:15:54 Hello! Dec 17 06:16:24 I'm having some trouble u=with using dynamic radio groups Dec 17 06:17:33 <_yakubMobileDev> Hello Dec 17 06:17:47 The behavior im seeing is seemingly random. The code is http://pastebin.mozilla.org/2001312 Dec 17 06:18:13 <_yakubMobileDev> I have small device connected to my android tablet using USB Port can i listen to the device continuously using the port Dec 17 06:18:36 _yakubMobileDev: you can basically do anything libusb can do, though the api isn't exactly the same Dec 17 06:18:45 so yes, you can configure it and then have a thread doing bulk read Dec 17 06:19:54 <_yakubMobileDev> dragorn: like my device scans for another devices and when the device found it will send on message to the tablet Dec 17 06:20:00 <_yakubMobileDev> so how to capture it.... Dec 17 06:20:29 look at the api section of developer.android.com, they show how to set up usb Dec 17 06:20:52 sounds like you'll need a service doing usb work that sends an intent when whatever USB thing happens Dec 17 06:21:19 have you tried ftdi? Dec 17 06:21:20 beware, usb on android is pretty wonky between manufacturers. galnex, n7, n10 work well. n4 does not and never will, moto is broken in weird ways Dec 17 06:21:42 s2 on sprint doesn't work, s2 on other platforms may but can't confirm Dec 17 06:22:23 there are libraries for ftdi, but if all you're doing is a serial link, you'd probably be better off going bluetooth Dec 17 06:22:27 ftdi has usb drivers for rooted devices Dec 17 06:22:28 unless you have very specific reasons you can't Dec 17 06:22:59 GMDynamics: I suppose but as soon as you require root you're out of having any generic user base Dec 17 06:23:12 there are userspace ftdi libraries out there Dec 17 06:23:15 Some android bluetooth stacks dont support bluetooth Dec 17 06:23:24 I assume you mean rfcomm Dec 17 06:23:36 <_yakubMobileDev> no i haven't tried... Dec 17 06:23:41 and yes, but the number with broken rfcomm is fewer than the number of devices with broken usb Dec 17 06:23:45 <_yakubMobileDev> ftdi Dec 17 06:24:33 you should try the audio port serial method Dec 17 06:24:36 <_yakubMobileDev> my device will send a a number using so that thing i need to capture with my android app Dec 17 06:24:43 _yakubMobileDev: If you have control of the hardware, I'd go bluetooth Dec 17 06:25:08 You can get really cheap bt serial adapters, if you buy in bulk you can get linvor for about the same price as a ftdi chip Dec 17 06:25:31 and you'll work with a LOT more devices than USB Dec 17 06:25:44 Using the audio port approach guarantees compatabilty with all android devices, and the only external hardware is an opamp Dec 17 06:26:05 Also if you're devoted to USB and are sending simple data, don't bother with a FTDI, they're really expensive and the protocol is hard Dec 17 06:26:37 Just get a lpc1343 or something and write your own endpoint; your usb code will be way simpler Dec 17 06:27:00 and you can get a full arm proc w/ usb support built in for less than a ftdi Dec 17 06:27:20 are you sure about that? ftdi is just usb to serial Dec 17 06:27:21 <_yakubMobileDev> means do i need to have a separeate chip Dec 17 06:27:23 you'll need a 12mhz crystal on it, but you'd need a crystal on whatever your micro is anyhow Dec 17 06:27:29 GMDynamics: I am Dec 17 06:27:44 GMDynamics: It is, but there is no "just usb to serial" protocol. I suppose CDC ACM. Dec 17 06:28:10 GMDynamics: So ftdi has a whole pile of cruft on it for gpio, advanced serial stuff like dtr/rts, etc, that you generally don't need Dec 17 06:28:36 the ftdi drivers use cdc acm, but the user only sees a serial buffer Dec 17 06:28:39 GMDynamics: If you're not trying to send "real serial" data, and just use it because your mcu can talk serial and you have a ftdi... then put a mcu w/ real usb support in Dec 17 06:28:48 <_yakubMobileDev> iam completly new to this area please let me know.. As i have the information that...There are some device placed some where in the ground and a reader for them will be connected to android tablet via usb port Dec 17 06:28:51 GMDynamics: no, ftdi isn't cdc-acm. it's their own protocol. Dec 17 06:29:12 The cost per unit for an ftdi cant be hisher than a usb arm Dec 17 06:29:46 <_yakubMobileDev> when that attached device detected it it will send 12 digit number to the app so i need to listen to the reader connected to the tablet Dec 17 06:30:11 the lpc11xx with usb is the lowest I can think of and even that is complete overkill for what he wants to do Dec 17 06:30:51 I can get lpc1343 for $0.01 more than a 232rl Dec 17 06:31:12 If he's the only guy writing the usb drivers for it on android, then that's well worth it Dec 17 06:31:52 Headphone based communication is slowing becoming a psuedo standard for small perifs for tablets and phones Dec 17 06:33:23 <_yakubMobileDev> any more suggtions how can i achive this? Dec 17 06:33:55 _yakubMobileDev: those are your options. write a ftdi driver stack in userspace (or find one), write your own usb protocol (much simpler), use headphones, or use bluetooth Dec 17 06:34:33 what hardware are you using right now yakub? Dec 17 06:35:47 <_yakubMobileDev> actually this is the requirement i got from client Dec 17 06:35:58 if it were me, I'd use bluetooth, headphone, or my own usb protocol. I've had good luck with linvor, I'm switching to rovingnetworks because my manufacturer can get them even cheaper and the footprint is slightly smaller. Dec 17 06:36:12 <_yakubMobileDev> i dont know what hardware they provide Dec 17 06:36:19 You can go as complex as you feel like coding w/ usb, I've got a full wifi driver working in userspace Dec 17 06:36:21 what is sending the data Dec 17 06:36:39 _yakubMobileDev: well... finding out what hw you're supposed to interface with is pretty damn important, so... figure that out. Dec 17 06:38:07 <_yakubMobileDev> i am on the way .....dragon Dec 17 06:38:17 <_yakubMobileDev> finding out the device they are providing... Dec 17 06:39:21 yeah, if your getting data from a small mcu, you probably should just go with the bluetooth SPP device. That should be a good comprimise between android compatability, and simplicity of hardware outside of the tablet Dec 17 06:40:55 hey. I'm trying to do an http multipart response from my phone using the phone as the server. I can't use Apache's MultipartEntity since I'm streaming jpegs in realtime (and that class needs to have all it's entries determined by the time of executing the response). I also can't use the com.oreilly.servlet.MultipartResponse since that requires javax.servlet which isn't in android. Any Dec 17 06:40:55 suggestions of how I should approach the problem? Should I try writing to the socket directly? Dec 17 06:41:03 I usually just go with a small arm router running a linux distro like openwrt. When you want to finalise the design, you can always get cheap chinese pcbs with the same hardware. The only problem I tend to have is with adhoc Dec 17 06:41:59 MercuryTW, your trying to stream jpegs? Dec 17 06:42:06 even if no one knows the answer, if anyone has any clue as to what I should even look for I'd appreciate it. Dec 17 06:42:11 yes GM Dec 17 06:42:39 I'm reading them out of a PriorityBlockingQueue Dec 17 06:43:02 use java to get a buffered socket then pipe that to an android socket Dec 17 06:43:28 <_yakubMobileDev> dragorn: its RFID reader which will scan a card and send thought the data on COM port Dec 17 06:43:35 does that mean I'll have to roll my own HTTP response? Dec 17 06:44:01 is it one phone to one phone? Dec 17 06:44:23 It's phone to brownser a la the IP Webcam app, if you're familiar with it Dec 17 06:44:41 yup Dec 17 06:44:50 At the end of the day it will be phone to a GStreamer souphttpsource Dec 17 06:45:25 Are you continuosly streaming video? Dec 17 06:45:28 yes. Dec 17 06:45:59 and I'd prefer not to use RTSP (forgive me if I got the letters on that wrong) if possible Dec 17 06:46:40 Using an android serversocket, you can skip http altogether Dec 17 06:47:30 Yes. That's one thing I tried. But I still need to properly format the multipart response, right? Dec 17 06:48:18 wait skip http? Dec 17 06:48:39 yeah. send bytes straight to the client Dec 17 06:49:22 the client buffers them Dec 17 06:49:53 would a browser be able to handle that properly? I ran IP Webcam, and connected with Fiddler, and it definitely has some HTTP multipart response header information Dec 17 06:50:30 this, if you're interested: http://pastebin.com/k8WkCGV9 Dec 17 06:51:10 The experience I had was Direct X Screen Capture > Direct X Surface > A8R8G8B8 > TCP Socket on Server > TCP Socket on CLient > Java library that rebuilt the stream Dec 17 06:51:45 Is using a browser a requirement? Dec 17 06:51:55 I think thats the part I misunderstood Dec 17 06:53:36 Because Android can generate an avi stream. The stream would contain the data usually contained in an http response. Dec 17 06:54:12 I thought thats what IP Webcam did in "vlc" mode Dec 17 06:55:45 sorry, my network is patchy here Dec 17 06:56:17 no problem. I just said :Android can generate an avi stream. The stream would contain the data usually contained in an http response. Dec 17 06:56:21 thought thats what IP Webcam did in "vlc" mode Dec 17 06:57:27 hm ok Dec 17 06:58:38 so I'd just decode the avi stream instead, clientside. How would I go about making that stream? Dec 17 06:59:25 android ffmpeg Dec 17 06:59:40 oh lord I spent 5 days trying to get that to work Dec 17 06:59:53 I loled :D Dec 17 07:00:01 i cried. Dec 17 07:00:21 use this https://play.google.com/store/apps/details?id=com.netcompss.ffmpeg4android&hl=en Dec 17 07:01:23 Is that an app? I can't use an app. I'm doing an AR game. Im just sending the video out for remote image processing Dec 17 07:01:50 Its a library inside an app Dec 17 07:03:09 Android apps can access each others classes so you just use their classes Dec 17 07:04:34 neat. I'm reading about it now... yeah I went postal and tried porting ffmpeg like this guy did :www.roman10.net Dec 17 07:06:13 could I set it up to write out to a LocalSocket/LocalServerSocket ( i don't remember which ) that I could link to my server socket? Dec 17 07:06:39 I never tried that, Ill take alook Dec 17 07:06:53 theyve added features since I used it Dec 17 07:07:32 actually I'd need both input and output to be sockets. I don't want to incur the overhead of writing to a tmp file if I can avoid it Dec 17 07:07:50 for my AR to work I need to keep my framerate as high as possible Dec 17 07:08:37 This is going to sound dumb so bear with me ... Dec 17 07:09:12 because i'm totally about to call out the guy who's helping me out :P Dec 17 07:09:25 im open to *anything* Dec 17 07:10:18 :D at a glance, it seems the most hackish but simple way to use that app would to stream your output to a local udp socket and use the command ffmpeg -i udp://127.0.0.1:8090 -f mp4 /dev/null Dec 17 07:11:32 and then pull it back ffmpeg -i udp:XXXXXX -f mjpeg udp:YYYYYY ? Dec 17 07:12:18 exactly :D I have no idea if it would actually work so Ill try to find a better way before I even suggest trying it Dec 17 07:12:22 or could I hook it straight into the socket I opened? ffmpeg -i udp:XXXXXX -f mjpeg http:YYYY Dec 17 07:12:42 no, calling the intent is a separate process... Dec 17 07:13:36 That would have been cool :D Dec 17 07:15:14 Also, im sure you have a good reason, but are you sure you need a pc for the AR processing? Im thinking about this and it seems your running into a speed vs quality problem here Dec 17 07:15:31 Because encoding is slow on android Dec 17 07:16:13 But without encoding you get massive amounts of data that will get bottlenecked by wifi/bluetooth/etc. Dec 17 07:16:48 each frame (at 320x240 ) I kick off a new worker thread out of a pool that converts the image to RGB, and compresses it as JPEG quality 30%, and puts it in a thread-safe priority queue Dec 17 07:17:16 conversion takes about 2 seconds, but it's pipelined so the bottleneck is the thread synchronization at the queue pop & push Dec 17 07:17:45 theoretically, it's nearly as fast as the output writer Dec 17 07:18:23 But the 2 second latency doesnt affect your AR? Dec 17 07:18:56 no, it's two seconds of latency serially. Since I've got multiple threads operating concurrently, only the first couple frames will be slow Dec 17 07:19:14 because it's parallel, you know? Dec 17 07:19:20 Oh! Because if it doesnt, using FastCV, OpenCV, or even Vuforia would be a great step up in speed Dec 17 07:20:47 actually the real bottleneck is the garbage collector, but I can iron that out later Dec 17 07:28:05 so let's say we're going with ffmpeg4android reading from udp Dec 17 07:28:30 what's it reading? I can't just start sending jpegs as datagrams can I? Dec 17 07:29:43 so let's say we're going with ffmpeg4android reading from udp Dec 17 07:29:57 what's it reading? I can't just start sending jpegs as datagrams can I? Dec 17 07:31:15 you could get a byte array Dec 17 07:33:05 Thinking the through, I think the best way to do this is to have android send raw,unprocessed images Dec 17 07:33:38 then write a tiny java app on your client to recieve the data and encode it locally Dec 17 07:37:25 Never mind Im stupid. 50mb a second is a "little" too high Dec 17 07:37:40 I figured it out now. Promise :D Dec 17 07:39:18 First declare an ArrayList that will act as a buffer for your Queue Dec 17 07:39:19 lol Dec 17 07:39:22 okay Dec 17 07:39:50 Then run queue.drainTo(bufferArray) Dec 17 07:40:07 Youll now have an ArrayList with jpegs in it Dec 17 07:41:38 then what? Dec 17 07:42:55 BitmapFactor will decode an image to a byte array Dec 17 07:43:31 I'm pretty much doing all that. Dec 17 07:43:44 Excelent! Dec 17 07:44:39 Then use the ByteArray to Make a ByteArrayOutputStream Dec 17 07:45:27 hello Dec 17 07:45:35 Socket clientSocket = new Socket(address, 8000); OutputStream out = clientSocket.getOutputStream(); Dec 17 07:45:56 Will give you a window to an outside address Dec 17 07:46:24 then use out.write(byteArrayStream) Dec 17 07:46:35 Ill type it out in a pastebin Dec 17 07:49:52 What class are your jpeg in before they go in the que Dec 17 07:50:32 I just want to make sure I can cut out the overhead of bitmapfactory Dec 17 07:51:02 they're jpegs when they go in the queue Dec 17 07:51:32 I need some help to comprehend this: http://developer.android.com/training/articles/perf-tips.html#GettersSetters and this: http://www.vogella.com/articles/AndroidSQLite/article.html Dec 17 07:51:36 my queue elements are ordered (Comparable) jpeg byte array containers Dec 17 07:51:42 vogella uses a model with getters/setters Dec 17 07:56:10 on phone with camera http://pastebin.mozilla.org/2001441 Dec 17 07:57:25 seriously lousy internet connection. Dec 17 07:57:34 did I miss anything? Dec 17 07:57:39 same here Dec 17 07:57:47 one sec Dec 17 07:57:54 sure Dec 17 07:59:41 http://pastebin.mozilla.org/2001445 Dec 17 07:59:47 goes on the phone Dec 17 08:01:55 so you're suggesting I turn the images into a GStreamer-readable stream remotely. Dec 17 08:02:18 hmm Dec 17 08:02:48 I feel like that's going to give me the same issue serverside Dec 17 08:03:32 right? because the consumer would then have to take the images and turn them into a video stream of some sort Dec 17 08:05:02 http://pastebin.mozilla.org/2001446 Dec 17 08:05:09 yeah got it backwards Dec 17 08:05:21 this is the recieves side Dec 17 08:07:43 hmm Dec 17 08:07:46 did my drivle make any sense? :D Dec 17 08:08:34 no I totally see what you're doing, it's just that I think it needs to be converted into a stream at some point Dec 17 08:08:41 * converted into a video Dec 17 08:09:20 The reciever side can do that with the jpeg Dec 17 08:10:10 by using some library or something? Dec 17 08:10:34 yeah. one the pc/server side its really easy Dec 17 08:11:17 I can do that even though I'm still recieving jpegs? Dec 17 08:11:32 er, that is, in realtime Dec 17 08:12:21 yeah, the reciver goes in a thread Dec 17 08:13:27 then fills a buffer whch is processed. Also depending on your library, you may be be able to juse the array for processing Dec 17 08:16:27 I think that might just work Dec 17 08:17:57 yeah I dig it. Dec 17 08:18:10 awesome. Thanks so much GM. Dec 17 08:18:17 I'll go try that Dec 17 08:18:47 glad I could help Dec 17 08:18:50 one of these days I'm going to have to figure out how IP Webcam does it's magic, but I'll do that when Im under less of a time constraint lol Dec 17 08:19:21 i went throug the source, they used jni and c++ Dec 17 08:19:51 whaat where'd you get the source? Dec 17 08:20:16 man I was really close trying it with the NDK Dec 17 08:20:27 http://code.google.com/p/ipcamera-for-android/source/browse/#svn%2Ftrunk%2Fdroidipcam%2Fsrc%2Fteaonly Dec 17 08:20:48 that's a different app, I'm pretty sure. i've seen it Dec 17 08:21:18 lol yeah I spent quite a while pouring over that source Dec 17 08:22:04 I wasnt too sure either, but they had the same function. Ive never had a good time with jni, let alone ndk Dec 17 08:22:06 he uses an insane amount of sockets Dec 17 08:22:52 yeah, i wouldnt use that over 3g! Dec 17 08:23:46 I think his model goes Camera -> [[localsocket] localServerSocket [localSocket]] <-> [[socket] server socket [socket]] -> inet Dec 17 08:24:16 he connects the two server sockets once the connection to the client is established Dec 17 08:25:03 i guess that make sense. sounds like game logic to me Dec 17 08:25:27 the socket all the way on the right has it's InputStream passed back in an http response Dec 17 08:39:55 anyone here using IntelliJ? Dec 17 08:40:15 I sometimes run into odd behavior when renaming my main Activity Dec 17 08:40:38 I changed the name through refactoring and changed it in the manifest Dec 17 08:40:54 but it still tries to launch the old Activity, what file did I miss? Dec 17 08:45:14 belgianguy, when you run the application from idea? Dec 17 08:45:24 Zharf: yes Dec 17 08:46:00 check the run configuration Dec 17 08:46:57 Zharf: good thinking, that was indeed it Dec 17 08:47:18 instead of launching the one I had in manifest, it kept holding on to this old name Dec 17 08:47:43 probably because it was set to run that one by default instead of the default activity Dec 17 08:48:59 Zharf: correct, I now set it to launch the default Activity instead Dec 17 08:49:04 and all is well :) Dec 17 08:49:08 :) Dec 17 10:11:51 I need a good tutorial on SimpleCursorAdapter :) Dec 17 10:12:08 to display custom list with contents from database Dec 17 10:27:22 squ: http://mobile.tutsplus.com/tutorials/android/android-sdk_content-providers/ Dec 17 10:27:37 I like those tutorials, but many here seem to find them bad, so YMMV Dec 17 10:28:24 Hey Guys, How to check if my has a new update on market place Dec 17 10:33:13 MenuItem cancelItem = menu.add(Menu.NONE, ID_CANCEL, 0, R.string.menu_cancel); Dec 17 10:33:50 how to set android:actionMenuTextColor on this Dec 17 10:42:28 anyone here who has a tablet (7") that doesnt have the combined nav + status bar? (nexus 7 like, that has navigation and statusbar split Dec 17 10:49:37 timroes, I can enable nav bar on my phone if you need Dec 17 10:49:53 don't know. I would like to know how nexus 7 behaves if you tilt it Dec 17 10:49:58 perhaps anyone knows Dec 17 10:50:26 in landscape mode, does it have a combined nav + status bar (like 10" tablets), or does it (like on phone) have the vertically right side navbar and the statusbar on top Dec 17 10:50:30 or something completely different Dec 17 10:50:44 I guess it simply moves the navbar to the side Dec 17 11:05:16 hi , i am facing a issue with galaxy s3. I set the path of the image while calling the camera intent in my activity . onActivityResult i check the bitmapUri is null . Dec 17 11:05:50 Any sample code or pointers on how to solve the issue Dec 17 11:13:22 argh. spinner's .setAdapter function causes program to crash :-/ Adapter has just been cleared and filled with new data. Spinner not null and adapter has been notified of changes. ARGH! Dec 17 11:16:52 tneva82: is that an oblique way of asking for help? Dec 17 11:17:39 well doubt anybody can help me with this one so not really. more of having to let off steam at yet another problem that doesn't seem to make any sense Dec 17 11:22:42 tneva82: what kind of error ? Dec 17 11:23:27 why are linear layouts such bs :( Dec 17 11:25:16 are they really? Dec 17 11:26:06 nah, some people are just linearly challenged ;) Dec 17 11:29:33 >_< Dec 17 11:29:55 like the last elements always have a slight pixel offset Dec 17 11:30:59 5 elements in a row, each one has a 1dp padding and the last two are shifted up slightly Dec 17 11:31:13 not apparent on an s2 bus visible on a nexus 7 Dec 17 11:34:31 hmm. never seen that myself. wonder if my 3.7" screen is too small for that or is that issue on some specific android or am I simply "don't care" about such tiny mistakes they are invisible for me :D Dec 17 11:37:55 so like anyone ever have the prob of deleting a big file from their sd and its gone, but android didnt give ur space back? hella lame, i had a 6.6g hd movie on my internal and deleted it, but it never gave me back my space, when u look in storage in the settings, it says theres just 1g left, when there should be almost 8, and ive tried using like diskusage and shit like that to look over Dec 17 11:37:55 the whole internal sd card and the biggest thing it found was another 1g file, a video, but i have no clue how to get my almost 7g back(which i need cuz im outta space lol) other then just doing a factory reset and flashing a new rom/reflashing same rom, just wish i could fix it another way cuz the rom im running atm is running well on my 101 atm :/ Dec 17 11:50:27 =/ im going insane Dec 17 11:51:05 this isnt supposed to happen is it, if i just stick all of my views in the linear layout and give them all a weight of 1 they should be spaced evenly Dec 17 12:10:04 Hmm, I have a layout as defined: http://i.imgur.com/hUMA5.png But upon launching the layout is blank: http://i.imgur.com/jUFeL.png Logcat and console show nothing, onCreate in activity has a layout defined. Dec 17 12:10:10 Any ideas why this could be? Dec 17 12:13:11 how do you define the layout in oncreate Dec 17 12:13:46 mikedg: setContentView(R.layout.activity_main); Dec 17 12:14:19 mikedg: onCreate posted: http://pastie.org/private/gq75ieajmyk18uowqqlca#1-7 Dec 17 12:17:50 mikedg: Any idea how I'd go about debugging that bit? Dec 17 12:18:14 comment out everything but setconentview Dec 17 12:18:18 put a breakpoint on setcontentview Dec 17 12:18:39 make sure it gets hit Dec 17 12:19:02 if that gets hit then load up hierarchy viewer and see if you see nay views that might be hidden, not drawn, invisible Dec 17 12:19:11 mikedg: Well, need the super. yeah? Dec 17 12:19:50 yeah, everything after setcontentview can be commented out though Dec 17 12:19:59 i doubt it;ll have an effect but its s start Dec 17 12:20:04 mikedg: Hmm, breakpoint didn't hit, but the console popped up with "[2012-12-17 04:19:30 - ABEasyDialer] ActivityManager: Warning: Activity not started, its current task has been brought to the front " Dec 17 12:20:27 sounds like eclipse idn't rebuild it for somereason Dec 17 12:20:33 I'll try uninstalling the APK and cleaning Dec 17 12:20:42 did you click debug/ Dec 17 12:20:47 Mhmm Dec 17 12:20:48 becausedebug should force that Dec 17 12:20:58 doesn't uninstall from the AVD though Dec 17 12:21:00 and otherwise that happens when eclipse did not detect any changes Dec 17 12:21:02 the AVD is pretty crap :x Dec 17 12:21:46 Debugging now (again) Dec 17 12:23:29 mikedg: Mhmm, debug view opened and setContentView line is green. Dec 17 12:23:32 Seems the breakpoint was hit. Dec 17 12:24:14 ok thats 'good' Dec 17 12:24:21 hit continue Dec 17 12:24:26 and lets open up hierarchy viewer in eclipse Dec 17 12:24:47 Upon "resume" (no continue? Button is Resume in this version, very odd.) the app seems the same as the above screenshot (no layout). Dec 17 12:24:55 Right, loading viewer Dec 17 12:24:58 resume yeah Dec 17 12:26:13 mikedg: Type Hierarchy, and some other one.. both not it, where'd Hierarchy Viewer be? Dec 17 12:27:39 (Little new to having to deal with this kind of stuff, android dev and general "code not working as expected".) Not new to Java by a long shot, but 99% of things I've ever had to debug have been simple mistakes Dec 17 12:28:12 hi guys i just want to know what i can do if i want the main Activity to be launched every time user launches the app through recent app button? Dec 17 12:28:29 mikedg: Oh I see, Hierarchy Viewer is a standalone in ADT now. Dec 17 12:28:55 Android03: the recent app is for switching back to an existing application/stack Dec 17 12:29:00 i have searched a lot and found setting android:clearTaskOnLaunch to true will do the trick but it is not working Dec 17 12:29:38 overriding that to go to a single activity is as annoying as apps that keep switching back to the same activity even after pressing back Dec 17 12:29:39 mikedg: Right, I have the viewer open. Dec 17 12:29:55 Anoia : can't we handle that behavior for our app Dec 17 12:30:13 I'm saying you shouldn't Dec 17 12:30:21 always keep UX in mind Dec 17 12:30:23 I expect you can as other apps do stupid things with it Dec 17 12:30:30 and what your users expect that will happen Dec 17 12:30:45 don't start freewheeling with the conventions Dec 17 12:30:55 mikedg: http://i.imgur.com/ZGBci.png Dec 17 12:30:55 (unless you have a very good reason) Dec 17 12:31:46 Anoia : but the requirement is to launch splash Activity i.e main activity because it has to route from other activities from the splash i need the splash to be launched everytime Dec 17 12:31:50 mikedg: Hierarchy: http://i.imgur.com/Zwb1U.png Dec 17 12:31:55 Seems as expected really Dec 17 12:32:29 Android03: you're missing the point, the application is already open Dec 17 12:32:53 IF the activities have been closed, then it will relaunch the main activity again Dec 17 12:33:24 Anoia : yes i know but how can i achieve my requirements ? Dec 17 12:33:26 mikedg: Might have found the issue in question: http://i.imgur.com/waNx6.png Dec 17 12:33:36 by showing the splash onResume? Dec 17 12:33:38 Anybody has an idea when I use ANT for running my tests in Intellij 12 with R21 I get the following? Dec 17 12:33:39 Pre-Dexing .../android-sdks/tools/support/annotations.jar -> annotations-aa6faf6a4b5510809c5ab1f1a25f88a2.jar Dec 17 12:33:40 Seems that Android likes to completely hate my layout, even though it's only a linearlayout. Dec 17 12:33:40 I don;t want to get several activities deep, have to take a call (it is a phone after all) and find that switching back takes me back to the very beginning Dec 17 12:33:42 might very well be very annoying Dec 17 12:33:52 It's fitting the entire LinearLayout of my application in the freaking action bar Dec 17 12:33:54 Why would it do this?> Dec 17 12:34:16 I don;t know how to, I tend to stick witht he expected conventions Dec 17 12:34:31 rather than thinking I knwo better Dec 17 12:34:58 Anoia: There are reasons why Android03 would want to do this, look at Dropbox. Dec 17 12:35:02 if your application has been exitied then it will do exactly as you want Dec 17 12:35:06 Anoia: A great example there is the "self-locking" app. Dec 17 12:35:33 what does dropbox do? Dec 17 12:35:50 mine behaves exactly liek every other app and switches to the most recent activity Dec 17 12:35:55 Anoia: When you go back to the app after leaving it be for a period of time (in seconds, or instant) it will go to a specific activity which is a keypad, not allowing you back into dropbox until you enter the dropbox key. Dec 17 12:36:00 where back works as expected Dec 17 12:36:04 Anoia: It doesn't if you have the security enabled. Dec 17 12:36:22 ah, I trust my phone :) Dec 17 12:36:31 Anoia : and one weird behavior when i tested the app when i exit the app using back button and relaunch it again from the recent apps it launches splash in HTC one v and galaxy s3 but not in the galaxy nexus Dec 17 12:36:33 Anoia: And if you enter the key too many times incorrect it will wipe all dropbox data from your phone incase someone else is being an idiot and trying to get in :). Dec 17 12:37:11 Anywho Dec 17 12:38:00 Anyone have any ideas why Android might decide to take my application's entire layout and try to fit it in the damned action bar? See: http://i.imgur.com/u8tEO.png Dec 17 12:38:03 Can anyone tell me what Im doing wrong? If I use my lib project I get Unable to instantiate activity ComponentInfo... if I add it into the list of libraries to use (in android tab, rather than the Java Build Path tab) then I get a ton of compile errors with my app, as if I can't use JavaBuildPath at all for my other deps. What gives, how do I fix it? Dec 17 12:38:18 AlbinoGeek : you have any suggestion for me ? Dec 17 12:38:55 Android03: Sounds like a lot of "per phone" compatabilty micro-management, something that I've noticed is all-too-REQUIRED in the Android world as of yet :'( Dec 17 12:39:19 Android03: I'm new to Android Development, I'm not the one to ask. Dec 17 12:39:58 AlbinoGeek : can u explain a bit? Dec 17 12:40:03 the first question you need to ask is "do I really need this?" Dec 17 12:40:13 AlbinoGeek : ok no issues Dec 17 12:40:31 if yes, find out in the lifecycle what state your app is in Dec 17 12:40:41 Android03: it's a pain, but if you buy the top 10-20 phones you should have decent coverage Dec 17 12:40:47 and when coming back to the foreground, show splash Dec 17 12:40:47 AlbinoGeek: sorry had to step away for a bit Dec 17 12:40:49 bbiab Dec 17 12:41:10 does an ordinary android sms have properties like for example? Dec 17 12:41:12 is this device specific issue i am facing that i can't do anything pragmatically? Dec 17 12:41:23 funkbox: you have > 10 phones? Dec 17 12:41:25 :O Dec 17 12:41:52 belgianguy: no, i think we have 5 maybe Dec 17 12:42:02 we had a htc one x that we lost somehow Dec 17 12:42:04 5 is still :O Dec 17 12:42:15 I have one phone, and one tablet Dec 17 12:42:26 ah our 5 are spread out Dec 17 12:42:44 i use a s3, nexus 7 and a nexus s Dec 17 12:42:49 mikedg: Figured it out, my application's layout was "fill_parent" which apparently does nothing whatsoever. Changed it to match_parent and it shows, sadly new issues now. Dec 17 12:43:21 AlbinoGeek: I thought those two were identical in meaning Dec 17 12:43:22 yeah fill_parent is deprecated Dec 17 12:43:29 better phase out fill_parent then Dec 17 12:43:29 didnt realise it actually was problematic anymore though Dec 17 12:43:37 ^ Dec 17 12:43:44 There's a lot "deprecated" things being taught in the docs. Dec 17 12:43:47 It's rather annoying. Dec 17 12:44:05 yeah, every deprecated code I see I always try to "fix" it Dec 17 12:44:06 At the very leaste have a nice DEPRECATED: note. Dec 17 12:44:22 which leads me astray Dec 17 12:44:43 well the IDE has it, but not in XML AFAIK Dec 17 12:44:50 (in IntelliJ) Dec 17 12:45:00 Well, Eclipse didn't tell me shit. Dec 17 12:45:07 :P Dec 17 12:45:31 in IntelliJ deprecated Java/Android code gets a strikethrough Dec 17 12:45:45 intellij ftw Dec 17 12:45:49 belgianguy: Until the ADT comes stock with IntelliJ configuration, heh. Dec 17 12:46:08 AlbinoGeek: I didn't configure jack in IntelliJ Dec 17 12:46:15 it just worked Dec 17 12:46:27 (but I was accustomed to Eclipse as well) Dec 17 12:46:29 belgianguy: Nope, for me the whole Android Development experience so far has been a giant fail. Dec 17 12:46:52 AlbinoGeek: up and until I used Eclipse that was my feeling as well Dec 17 12:47:04 Oh great, now I find out that components don't even listen to marginRight over margin when marginRight was defined later. Dec 17 12:47:06 That's just sloppy. Dec 17 12:47:47 yeah, the more you dive in, the more headscratching occurs though Dec 17 12:47:50 and "why?" Dec 17 12:47:51 Not to mention the names of these attributes, "padding" "layout_margin" ; padding is a layout parameter, why is it one of the few that's not a layout_ ? Dec 17 12:48:38 decoding images, what's a good way to avoid OOMs? i have a semaphore for dling them, htinking about adding one for the actual decoding as well Dec 17 12:48:54 think a facebook timeline type of situation Dec 17 12:48:58 funkbox: the developer pages have a nice page about that Dec 17 12:49:00 or instapoop Dec 17 12:49:04 However, by the defintion of "layout_" and what it should mean, over half of the attributes for basic components should be layout_. (padding, style, orientation, background, textColor, numColumns....) Dec 17 12:49:12 belgianguy: do you know the link of the top of your heard? Dec 17 12:49:14 head* Dec 17 12:49:15 funkbox: invent the poopsicle Dec 17 12:49:21 turd on a stick Dec 17 12:49:24 frozen Dec 17 12:49:56 do android sms's have some meta info stored in them? Dec 17 12:50:15 Meiwes: Good question. Dec 17 12:50:31 funkbox: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Dec 17 12:50:36 thanks Dec 17 12:50:41 Meiwes: Albeit I'm not sure what meta you're asking about, as there is SOME meta information in an SMS as it is, android or not. Dec 17 12:52:02 AlbinoGeek:Meta as in each sms can carry some info about the sms like date received,number of the sender etc Dec 17 12:52:03 Great so, here's the ultimate question. Dec 17 12:52:05 is there a SaaS for games that just need a simple multiplayer lobby? Dec 17 12:52:13 In a GridView, how to I actually HAVE ITEMS IN IT ? :) Dec 17 12:53:34 AlbinoGeek: http://developer.android.com/guide/topics/ui/layout/gridview.html Dec 17 12:53:58 belgianguy: Did that, rather useless since it doesn't go about telling you how to add items once you have a ButtonAdapter. Dec 17 12:54:00 If I need to give a new activity access to an instance of a class, do I need to make the class parcellable and add it to an intent or is there another way without making the object's scope global? Dec 17 12:54:19 belgianguy: ImageAdapter in that tutorial of course. Dec 17 12:54:28 AlbinoGeek: does it compile? Dec 17 12:54:38 belgianguy: Yup. Dec 17 12:54:44 does getView get hit? Dec 17 12:54:48 belgianguy: But I see an empty panel where my GridView should be Dec 17 12:54:56 belgianguy: No idea, let me breakpoint and see Dec 17 12:55:31 AlbinoGeek: Do individual android sms have properties like datae sent or date received or sent by or received from Dec 17 12:55:54 Meiwes: No idea. Dec 17 12:56:05 I;d have thoguth so, the normal UI has them Dec 17 12:56:13 belgianguy: I swear, AVD is just.. I don't even get it. X: Dec 17 12:56:16 is there any one who can tell me the solution of my problem? Dec 17 12:56:42 I can boot a CentOS 6 Server in QEMU in less than 2 seconds, but AVD takes 20+ seconds on the shiny "ANDROID" word, so sad. Dec 17 12:56:44 AlbinoGeek: http://www.stealthcopter.com/blog/2010/09/android-creating-a-custom-adapter-for-gridview-buttonadapter/ Dec 17 12:56:58 belgianguy: I did that. Dec 17 12:57:02 belgianguy: Hence the "buttonAdapter" Dec 17 12:57:13 AlbinoGeek: qemu emulates with hardware help, avd interprets Dec 17 12:57:30 Anoia: Yeah, why? :/ Dec 17 12:57:30 AlbinoGeek: don't use the emulator Dec 17 12:57:46 funkbox: Yeah, tell that to LG whom really hates you trying to do anything on their droids. Dec 17 12:57:47 AlbinoGeek: I use the Intel image with KVM Dec 17 12:57:50 really fast Dec 17 12:57:58 Meiwes: you'll only get the sent one ones it's sent and received on ones it's received. there is not other context passed in the message over the network Dec 17 12:58:03 belgianguy: still doesn't compare to the ios and windows emulators Dec 17 12:58:08 funkbox: I have many physical droids I could be testing on, but all of them are just "not found" in Eclipse, even though I have all the driver packages, and I am able to ADB to them. Dec 17 12:58:10 the win8 emulator is instafast Dec 17 12:58:10 AlbinoGeek: who knows Dec 17 12:58:41 funkbox: it boots once in the morning and it's lightning fast for the rest of the day Dec 17 12:58:52 However, regarding my current issue with the GridView being a useless panel and not actually having items.. Dec 17 12:59:00 The getView isn't even being reached (method breakpoint not triggered) Dec 17 13:00:14 AlbinoGeek: then I'd do a step back and get the regular one to work Dec 17 13:00:23 and see where the current one is lacking Dec 17 13:00:52 belgianguy: i tried it and it's not acceptably fast Dec 17 13:00:58 i only use it for running unit test Dec 17 13:00:58 belgianguy: Define regular, because googling "GridView add items" shows you hundreds of adapters, no actual "how you're supposed to add items" Dec 17 13:01:12 Anoia:Thanks. Dec 17 13:01:15 just the vanilla one, not custom adapter Dec 17 13:01:34 belgianguy: Yeah, how the & do you add items in the vanilla adapter? Dec 17 13:02:08 I'll also note a blank gridview is just that, blank. Completely empty when loaded. Dec 17 13:02:17 AlbinoGeek: you do that through your adapter Dec 17 13:02:28 belgianguy: .... *facepalm* Dec 17 13:02:42 You: Use the vanilla adapter, not your custom one. Dec 17 13:02:46 Me: "How?" Dec 17 13:02:51 You: Use your custom one Dec 17 13:02:51 ? Dec 17 13:03:10 AlbinoGeek: easy there :) I'm only trying to help Dec 17 13:03:16 if it's unwanted, just say so Dec 17 13:03:23 belgianguy: Of course, I'm just rather confused. Dec 17 13:03:33 I don't understand what you're asking me to do at all. Dec 17 13:03:38 AlbinoGeek: this is very "hands on" sample: http://www.mkyong.com/android/android-gridview-example/ Dec 17 13:04:01 see the array, and how it gets inserted into the adapter? Dec 17 13:05:00 What, so what you're telling me is I can't dynamically add items to a GridView? Dec 17 13:05:08 Both of those are using a hard-coded list. Dec 17 13:05:22 AlbinoGeek: I'm not telling you that Dec 17 13:05:31 Would I have to rebuild my adapter EVERY TIME I change ANY items in the GridView then? Pass in a new one? Dec 17 13:05:31 'for the sake of simplicity' they are hardcoded Dec 17 13:05:38 no Dec 17 13:05:46 belgianguy: Of course, I get that; but I don't get where I'm supposed to add items exactly. Dec 17 13:05:52 you'd use an ArrayList Dec 17 13:06:00 and you'd add them to that Dec 17 13:06:10 and call notifyDataSetChanged on your adapter Dec 17 13:06:11 belgianguy: That's the thing, I'm already doing that. Dec 17 13:06:29 belgianguy: And Android's staring at me like a deer in the headlights and not rendering a single item. Dec 17 13:06:51 So about intents and custom classes... Dec 17 13:07:04 then I usually take a step back, because in my case that usually means I'm expecting something to happen that won't happen Dec 17 13:07:40 belgianguy: Here, I'm going to paste my adapter... Dec 17 13:08:31 belgianguy: http://pastie.org/private/9nka8pfkdjnjhom1sexhka Dec 17 13:08:33 Woops wrong button. Dec 17 13:09:25 getView is never called. Dec 17 13:11:09 Does anyone here have any idea why my GridView would refuse to render any items, given the Adapter's code http://pastie.org/private/9nka8pfkdjnjhom1sexhka ? Dec 17 13:11:16 hang on AlbinoGeek, Dec 17 13:11:25 I was looking, am building an example Dec 17 13:14:00 help me to on this http://stackoverflow.com/questions/13914870/starting-main-acitivty-everytime Dec 17 13:14:06 I think the learning curve for Android Development as of yet may have debunked that of EVE. Dec 17 13:14:31 AlbinoGeek: now don't exaggerate :p Dec 17 13:15:23 how can i build a search string for google maps that finds A or B if A is not found? Dec 17 13:15:32 belgianguy: I'm not exagerating much. The android docs are like looking at the Encyclopedia Britanica. Dec 17 13:15:49 belgianguy: It might have old definitions here and there, but it's not about to tell you :). Dec 17 13:16:10 ivdorelian: I'm not sure you can, seems you should look for A then B if A is not found. Dec 17 13:16:27 well, let me give some more detail then Dec 17 13:16:34 i am launching the maps activity with a search string Dec 17 13:16:45 if it's not found, how can i automatically search for something else Dec 17 13:23:16 @timroes Dec 17 13:24:42 I need some help here Dec 17 13:24:58 http://stackoverflow.com/questions/13302566/draw-line-along-points-using-finger Dec 17 13:26:16 I've written code to join points with finger in above code.... but it doesn't work, but no errors.... can anyone help me...???plz Dec 17 13:27:30 i've put 30 points and I want to join them with finger Dec 17 13:28:10 But only first one or two can be joined but the remaining won't join... plz let me know where i'm making mistake? Dec 17 13:28:13 warriorz: store their location and draw lines between consecutive points? Dec 17 13:28:49 @ivdorelian yes Dec 17 13:30:45 well, that's the idea Dec 17 13:30:52 you have a lot of code there, im not sure what you're doing exactly Dec 17 13:31:18 use a variable to store your previously touched point Dec 17 13:31:37 when a touch event happens, draw a line between the point in that variable and the current touch location Dec 17 13:31:46 and set that variable to the current touch location Dec 17 13:32:06 that's more or less it Dec 17 13:39:58 anybody there...?? Dec 17 13:40:35 plz...!! I heard that the guys here are masters of android.... Dec 17 13:40:55 it won't take much time for u guys.... plz Dec 17 13:41:45 just check the ontouch and appropriate methods in the code of my question.... Dec 17 13:41:58 AlbinoGeek: I just got that ButtonAdapter tutorial to work Dec 17 13:42:11 it's pretty bad, as the buttons overlap when doing it "as is" Dec 17 13:42:30 but I do have buttons, and a Toast when I click them Dec 17 13:44:27 AlbinoGeek: I'd always use a seperate layout in a getView Dec 17 13:44:36 and then cache through a ViewHolder Dec 17 13:44:54 belgianguy: Still a step closer. Dec 17 13:55:46 hello, if got some trouble with running the GridLayout on API8 Dec 17 13:56:27 i have tried the setup on the android side but always receive an NoClassDef error Dec 17 13:56:48 missing: android.support.v7.gridlayout.R$dime Dec 17 13:57:26 any ideas what is missing? .jar is in the lib folder and added to the Dependencies Dec 17 13:59:06 AlbinoGeek: think I'm almost done Dec 17 14:00:39 is there a way to quietly update the text of an existing notification? Dec 17 14:00:55 funkbox: wouldn't that defeat the purpose? Dec 17 14:01:03 think gmail. "3 new messages" then mark one as read and then have "2 new messages" appear without showing the ticker text Dec 17 14:01:20 funkbox: Actually no, it opens up and spams you Dec 17 14:01:27 funkbox: One of the things I hate about gmail Dec 17 14:01:35 yeah we got similar complaints Dec 17 14:01:35 funkbox: gmail's app * Dec 17 14:01:53 funkbox: 3 new mail. If you read one it opens a new notification "2 new mail" and a notification for each mail. Dec 17 14:01:58 It's just stuipd. Dec 17 14:02:03 stupid * Dec 17 14:06:03 i've added a slight wait before updating it Dec 17 14:06:05 works well Dec 17 14:06:10 Is there a way to attach a custom object to an intent without making the class parcellable? Dec 17 14:16:15 AlbinoGeek: I have something working Dec 17 14:16:29 but I just made up a class for ContactDescriptor Dec 17 14:18:09 belgianguy: Yeah, as did I. ContactDescriptor is just a conatiner class that has a String DisplayName, String[] PhoneNumbers and a Object ContactPhoto Dec 17 14:20:55 I did store an ArrayList with ContactDescriptor objects in the ButtonAdapter though Dec 17 14:21:01 don't know if that's bad Dec 17 14:21:42 but I use them in my getView (given the position is stable) Dec 17 14:23:58 AlbinoGeek: http://www.2shared.com/file/DCAKMFp5/MyGridView.html Dec 17 14:24:17 it's an IntelliJ project though, so I don't know if you can directly import that Dec 17 14:25:05 but when working with contacts of the phone, there are more direct ways to load those Dec 17 14:25:10 (not used here) Dec 17 14:51:12 there is any way (also with external libraries) to load a layout xml from external location? Dec 17 14:54:17 Is http://d.android.com/ the best place to get started with learning app development on android? Dec 17 14:54:26 poseidon: yes Dec 17 14:54:52 k, I'll review there. Thanks Dec 17 14:54:54 a good understanding of Java and OO also helps :) Dec 17 14:55:42 AlbinoGeek: so? Dec 17 14:55:48 found the error yet? Dec 17 14:56:00 belgianguy: Been looking at implementation Dec 17 14:56:08 belgianguy: Much multitasking Dec 17 14:56:28 such is the life of a programmer :) Dec 17 14:56:30 belgianguy: I've used java for a bunch of different uni classes, but I've been mainly using C/Go recently Dec 17 14:56:34 I'll have to brush up on java Dec 17 15:01:50 to create a layout from external resources i can parse xml from java and create views manually, there is a library can make this? Dec 17 15:02:10 not that im aware of Dec 17 15:02:39 xan_IT: that wouldn't be all too healthy Dec 17 15:02:45 nor easy to clean up Dec 17 15:02:54 why not use a dynamic layout then? Dec 17 15:03:34 what is dynamic layout? Dec 17 15:07:58 xan_IT: http://www.dreamincode.net/forums/topic/130521-android-part-iii-dynamic-layouts/ Dec 17 15:08:29 so is layout from java.... Dec 17 15:43:17 is OpenGL ES a desirable trait for an Android dev? Dec 17 15:43:53 or am I better off focusing elsewhere, and inspecting OpenGL when the the project calls for it Dec 17 15:48:08 hi. how can i mix the custom view contents with what the camera would display? Dec 17 15:51:09 does anyone have an idea why i get the following error in intellij: Illegal option: Java Dec 17 15:51:09 keytool -genkeypair [OPTION]... when trying to generate a signed APK? Dec 17 15:52:41 hmm, can the password not be over 100 bits? Dec 17 15:52:54 i made it shorter and now it worked Dec 17 15:53:38 hello everybody what imports do i need for startActivity();? Dec 17 15:54:11 lol :| Dec 17 15:54:15 you need a ocntext Dec 17 15:55:05 i have a conteext but if i type: context. not startActivity will be shown Dec 17 15:55:14 then something is broken Dec 17 15:55:38 have you tried some ADT fluid? Dec 17 15:56:17 nope Dec 17 15:56:26 that's probably an ADT leak Dec 17 15:57:00 well, what was your Intent? Dec 17 15:57:31 simple browser request wait iÄll post code Dec 17 15:57:39 Peter_Porka: pastebin Dec 17 15:57:50 http://pastebin.com/UVk1D3LC Dec 17 15:57:53 yeah for sure ;) Dec 17 15:58:20 and where is this code located? Dec 17 15:58:24 in an ... Dec 17 15:58:41 this brings no error context.getActivity().startActivity(launchBrowser); but is that right? Dec 17 15:58:58 Peter_Porka: that can be correct, yes Dec 17 15:59:14 i'll test it Dec 17 15:59:55 ugh, having coffee withdrawal symptoms Dec 17 16:00:50 LOL Dec 17 16:00:59 got get some coffee Dec 17 16:01:04 go not got Dec 17 16:01:50 it's not weird to drink coffee in the evening, right? Dec 17 16:03:00 cool Dec 17 16:03:02 this works Dec 17 16:10:40 anyone use markdownview ? Dec 17 16:16:11 Hello guys, I have a serious sick issue with a Samsung smartphone, I really hate this phone. After I start camera app from my main activity to take a shot, I return from the camera to my main activity and immediately my main activity's onDestroy() gets called! Dec 17 16:17:42 What happens is it recreates my main activity, calls onActivityResult() than destroys my Activity AND than RECREATES AGAIN! Why??? Dec 17 16:17:58 Number5: Are you calling finish() with any flags, like CLEAR_TOP or any of those? Dec 17 16:18:12 xlinearx, no Dec 17 16:18:39 Number5: Are you calling super.onActivityResult in your activity result? Dec 17 16:18:40 I assume when starting camera app, it starts a new instance Dec 17 16:18:55 xlinearx, one moment Dec 17 16:19:25 yes, I do at the end of the function. Dec 17 16:19:55 I set my main activity as "singleTop" Dec 17 16:20:06 Number5: Try it at the beginning, see if that changes anything. I know that Android likes its default handlers to be called first. Dec 17 16:20:24 xlinearx, ok I hope it works. Dec 17 16:22:22 xlinearx, I think it works?? Dec 17 16:22:31 I can't believe it Dec 17 16:22:44 Number5: Yeah... seems like Android was giving you a "soft failure" then Dec 17 16:22:55 xlinearx, what about finish() and CLEAR_TOP? Dec 17 16:23:09 Number5: Like when you call a UI method without the rest of the activity being initialized Dec 17 16:23:47 is that the answer of my question or a continuation of your previous comment? Dec 17 16:23:50 Number5: Well, that was just trying to narrow down the issue. Don't worry about it. You can return to an activity in many different ways, which is why I was asking if you did something special Dec 17 16:24:07 Number5: Nah, my last comment was the answer. Dec 17 16:24:49 typing all this on an Android tablet, so I'm slow =/ Dec 17 16:24:59 xlinearx, what was happening than, was it creating another task of my activity? Dec 17 16:25:05 oooh hahaha Dec 17 16:25:11 no problem Dec 17 16:25:16 I think it was just crashing Dec 17 16:25:19 I hope it's not Samsung's :P Dec 17 16:25:20 but, nicely Dec 17 16:25:41 nah... it's a TF700t Dec 17 16:25:46 with a keyboard =D Dec 17 16:25:58 but it's still harder to type, with the keys being all small Dec 17 16:26:12 xlinearx, what I did see (when in debugging mode) was it returned from camera and started my activity in landscape mode, than recreates it in portrait mode. Dec 17 16:26:40 and in manifest I set my activity only in portrait mode Dec 17 16:26:58 because of bad design of my software Dec 17 16:27:14 weird... I didn't think that would happen, but honestly I'm not surprised. It probably got some UI call that it couldn't handle because super.onActivityResult wasn't called first, then attempted to restart the activity as a 'fix' Dec 17 16:27:36 but why HTC sensation has no issues with that and Samsung has, alsow weird. Dec 17 16:27:49 yeah... probably different Android builds Dec 17 16:28:08 xlinearx, so it's a good practice to call super.method() first? Dec 17 16:28:26 I mean for all those override callbacks. Dec 17 16:29:12 yes, definitely. Call those first. Dec 17 16:29:26 xlinearx, did you know I was struggling with this issue for a week :( So big thanks man. Dec 17 16:29:45 Nobody knows what those methods do. But if you don't call them, Android remembers. And then it hates you. Dec 17 16:30:02 np glad I could help Dec 17 16:30:02 cool explanation bro. Dec 17 16:30:15 =D Dec 17 16:31:13 onActivityResult shouldn't actually require calling super; it sounds like the manufacturer changed the behavior? Dec 17 16:31:37 if so, you might want to note this down on b.android.com; stupid stuff like this breaks CTS and generates a "You must fix this or else" patch request from google Dec 17 16:31:42 not surprising, considering everyone likes to tweak android builds to suit their platform. Dec 17 16:31:56 The order of the super call doesn't matter either, in that method at least Dec 17 16:31:56 right, but you shouldn't tweak it to the point of breaking the public API contracts. Dec 17 16:32:05 e.g. FragmentActivity doesn't call it until the end Dec 17 16:32:28 If they required it to be called first, they'd break A LOT of apps Dec 17 16:32:37 yeah... it should be the way it is, I agree. Stupid manufacturers. Dec 17 16:32:58 For all their modification needs, they have dispatchActivityResult Dec 17 16:33:31 it's probably not a hard requirement... just for whatever Number5 was doing. Some findViewById or other API call that bothered it. Dec 17 16:34:39 It's good practice to call all of those supers first though, because then you don't have to worry about anything later in case you do a conditional return, etc. Dec 17 16:34:58 That entirely depends on what you're doing Dec 17 16:35:38 If you don't know what you're doing, you should probably call it first tho Dec 17 16:35:47 I guess, but most of the time you're not doing anything that requires your code to run first. I can't see me doing anything before super.onCreate, for instance. Dec 17 16:36:39 then again, I've worked on a single Android app my entire time, so I don't have much variety of experience Dec 17 16:36:48 {the,a} common convention is to call it first in setup flows and last in tear-down flows. protected void onResume() { super.onResume(); /* your code here */ } protected void onPause() { /* your code here */ super.onPause(); } Dec 17 16:37:19 right. that's probably the best approach Dec 17 16:37:52 SimonVT, I don't know if you followed my conversation with xlinearx, but does that sound familiar to you? Dec 17 16:38:36 Not really Dec 17 16:38:53 http://paste2.org/p/2613005 is my layout file for header, I am using it in http://paste2.org/p/2613009 file using include but header shows ok, but below content (ViewSwitcher) is showing behind header. Dec 17 16:39:19 evancharlton: didn't know that Dec 17 16:39:27 I always called them first Dec 17 16:39:48 Stuff you rely on in your tear-down code could be destroyed by the super call Dec 17 16:39:56 belgianguy: that's fine, too. It's just t--what SimonVT said. Dec 17 16:40:06 Likewise, stuff you rely on in your setup flow could be initialized in the super call Dec 17 16:40:07 After coming back from camera app, it doesn't restart, but finishes with destroy(), than recreates my activity, as if it only does that to call onActivityResult() than destroys it than recreates. Dec 17 16:40:42 (like your entire context in onCreate) Dec 17 16:40:48 SimonVT: then this tidbit should be widely communicated, as I see many "infringers" Dec 17 16:40:51 the final crecreation doesn't call onActivityResult() Dec 17 16:41:20 I can post you my logging. Dec 17 16:41:22 harpal: I'm not a layout expert, but shouldn't the include also have an alignment property for the RelativeLayout it's within? Dec 17 16:41:31 Number5: And calling super first fixes that? Dec 17 16:42:02 I'm not sure if this fix is consistent. I have to test it a few time to be sure. Dec 17 16:42:20 That makes no sense to me Dec 17 16:42:44 xlinearx: I tried giving android:layout_alignParentTop="true" to include but still same issue. Dec 17 16:44:17 Samsung: http://pastebin.com/pVTMakgc HTC: http://pastebin.com/YvZpQeMF Dec 17 16:44:56 harpal: Also, your ViewSwitcher's height is match_parent, and the parent's height is fill_parent, meaning the ViewSwitcher takes all of the screen. Naturally, the include, which is at the top of the parent, would also take some space. It's impossible for both of those to take > 100% of the height space without overlapping Dec 17 16:48:20 SimonTV, xlinearx: this is unbelievable, sometimes it works sometimes not! Dec 17 16:48:41 I bet the same is the case without calling super first :p Dec 17 16:48:41 xlinearx: then what change I should use? wrap_content in ViewSwitcher? Dec 17 16:48:55 Number5: You didn't tell the whole story. It's calling onResume before onDestroy. What happens in your onResume? Dec 17 16:49:00 SimonVT, I'm afraid so Dec 17 16:49:30 xlinearx, nothing, just logging that line Dec 17 16:49:39 it's a test app. Dec 17 16:50:03 What exactly is the issue with it doing this? Dec 17 16:50:16 I know it's not intended, but how is it causing issues Dec 17 16:50:25 It seems you get all the appropriate callbacks Dec 17 16:50:37 harpal: set your ViewSwitcher's layout_weight="1"... I think that'll fix it. Dec 17 16:50:58 Not if he's using a RelativeLayout, it doesn't have weight Dec 17 16:51:37 harpal: google "android layout use remaining space". Click on first result. It tells it better. Dec 17 16:51:38 yes, what happens is I pass my interface of my GUI to my service, when receiving some data from a network, I blink something on my UI. Dec 17 16:52:22 Now it thinks it has a reference of the first time created widget. Dec 17 16:52:40 SimonVT, harpal: Yeah, you're right... then I'm not sure if you can even do this with RelativeLayout Dec 17 16:54:47 ooh man, what a headache. Dec 17 16:54:55 xlinearx: layout_weight is showing warning and not taking any effect. Dec 17 16:55:09 Meh, why is there no "Enable hierarchy viewer" setting in dev options Dec 17 16:55:13 xlinearx: is it because I have used merge in header? Dec 17 16:56:07 harpal: You'll probably have to switch to LinearLayout instead of RelativeLayout: http://stackoverflow.com/questions/5880513 Dec 17 16:56:31 harpal: The layout_weight only applies to a LinearLayout.. sorry I gave you half the answer. Dec 17 16:57:36 Number5: You have a service and async network calls too? The plot thickens O_o Dec 17 16:58:01 yes, why? Dec 17 16:58:27 Number5: Well, when you do things asynchronously, what happens on the other thread might be the culprit Dec 17 16:59:07 Number5: You've mentioned that calling super.onActivityResult first fixed it, but only sometimes. Seems like a thread race error Dec 17 16:59:28 Was the forced portrait orientation to fix issues during orientation changes? :P Dec 17 17:00:10 xlinearx, no I don't think so, but you never know. Dec 17 17:00:13 I wouldn't be surprised. Android really messed up with that paradigm of "your Activity goes to hell whenever you tilt the screen" Dec 17 17:00:42 SimonVT, yes, I had issues of empty views, that was at a time with little knowledge. Dec 17 17:00:44 the fact that it only happens "sometimes" seems to point to bad threading Dec 17 17:01:04 belgianguy: that's what I was implying as well Dec 17 17:01:38 Well, remote the forced orientation and fix your app Dec 17 17:01:41 but I don't call UI stuff from a thread, I post these things with a handler to the main thread. Dec 17 17:01:48 I bet any issues you were having with samsungs weird behavior will go away Dec 17 17:01:54 so UI and other threads are completely separated Dec 17 17:02:35 i make all my methods spawn new threads Dec 17 17:02:43 it's called xtreme asynchronous programming Dec 17 17:02:46 SimonVT, I don't follow you well, what do you mean with remote forced orientation? Dec 17 17:03:05 remove... I think he meant remove Dec 17 17:03:14 Yep Dec 17 17:03:21 what happens when a Handler posts a message when the uI is paused? Dec 17 17:03:21 but on the internet, T == V Dec 17 17:03:25 so it's all good Dec 17 17:03:58 oooh hmmm, but my main activity doesn't rotate orientation. Dec 17 17:04:27 I set it in the manifest Dec 17 17:04:28 belgianguy: It waits. The Looper can only do one thing at a time, given its queue-like nature Dec 17 17:04:56 the looper can go back in time to be killed by itself Dec 17 17:05:13 xlinearx: ah k, so on orientation change, you get to keep the Looper? Dec 17 17:05:19 or it can loop. And it prefers to loop. Dec 17 17:05:32 Anyway, I've to go away now, I hope to see you tomorrow guys. Dec 17 17:06:30 belgianguy: I think the Looper dies at onDestroy and gets reborn at onCreate... so probably not. If a Handler call comes in after onDestroy, it just gets discarded. Dec 17 17:06:46 No.. Dec 17 17:06:50 Yeah cya... gotta go to lunch Dec 17 17:07:26 You're just getting confused cus it's usually called the ui thread Dec 17 17:07:36 It's just because the ui actions happen on it Dec 17 17:08:06 e.g. service methods happen on the same thread Dec 17 17:08:16 It's be weird if it was destroyed while a service is running Dec 17 17:08:23 SimonVT, I tested also on a basic test app, with nothing complex on it, but still occurs the problem, sometimes it does sometimes not. Dec 17 17:08:35 Without threads in the service. Dec 17 17:08:43 I'm sure it does Dec 17 17:08:51 I'm saying, handle configuration changes properly Dec 17 17:08:54 And it wont be an issue Dec 17 17:09:11 SimonVT, I have no threads in my service, I set this app up just for this stupid problem with Samsung. Dec 17 17:09:19 implementing onConfigurationChanged can be a pain though Dec 17 17:09:39 and the "retain" flag for Activities is deprecated as well Dec 17 17:09:57 Fragment has setRetainInstance(true) Dec 17 17:09:58 belgianguy, yes and I have a lot of widgets in my app, also using swipe stuff Dec 17 17:10:27 I don't use Fragments, not yet... Dec 17 17:11:19 hi, is it possible to make an update of published app with different package name? Dec 17 17:11:20 I invested some time in them, I consider them a bit more versatile then their Activity peers Dec 17 17:11:32 than* Dec 17 17:12:12 Anyway, thank you for your help, hope tomorrow with more success. Dec 17 17:13:00 belgianguy: i loved objectanimator! Dec 17 17:13:10 mbarisa: glad I could help :) Dec 17 17:13:37 it works quite fast! Dec 17 17:13:46 torniker: no Dec 17 17:13:59 yeah, and with hw accel, you can get some extra juice, too Dec 17 17:14:10 but it shouldn't be overused either Dec 17 17:14:11 SimonVT, thanks :( Dec 17 17:14:25 belgianguy: i needed it just to show image animation Dec 17 17:14:37 like 2 second animation of an image Dec 17 17:14:42 scaling Dec 17 17:14:43 mbarisa: ah, then that surely is powerful enough :) Dec 17 17:15:05 yeah, if it was something that is more complex i would consider opengl :D Dec 17 17:15:22 I've been diving into ES 2.0 the last few days Dec 17 17:15:34 hope it'll be worth it :) Dec 17 17:15:55 http://www.learnopengles.com ? Dec 17 17:15:59 yeah :) Dec 17 17:16:07 its quite great! Dec 17 17:16:27 very detailed, and at least explains pitfalls Dec 17 17:16:36 yeah i agree Dec 17 17:17:05 and late at night I watch Google IO talks Dec 17 17:17:09 hey Dec 17 17:17:15 i mispelled my project name Dec 17 17:17:19 so my launcer icon Dec 17 17:17:21 uses that name Dec 17 17:17:29 any idea how i can change the launcher icons name Dec 17 17:17:34 the text under it Dec 17 17:17:55 profligacy: in manifest Dec 17 17:18:05 in change label Dec 17 17:18:25 something like android:label="some name" Dec 17 17:18:32 well, in a perfect world, it'd be in your strings.xml :p Dec 17 17:18:50 belgianguy: there is no perfect world nowdays :P Dec 17 17:19:14 well, these last 4 days better be perfect Dec 17 17:19:18 or I'm asking a refund :p Dec 17 17:28:03 mbarisa Dec 17 17:28:04 it doesnt work Dec 17 17:29:09 hi guys Dec 17 17:29:12 anyone here with a nexus 7 :) Dec 17 17:29:14 hi Dec 17 17:29:16 not me Dec 17 17:29:27 hello, no nexus though Dec 17 17:29:39 (or another 7" tablet) Dec 17 17:30:08 oops Dec 17 17:34:34 hey... i'm having the following error: "Main] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/test/hellolib;" Dec 17 17:37:28 lucy33: don't define com.test.hellolib in more than one place Dec 17 17:39:02 i ahve a question Dec 17 17:39:51 im using HTTPURLConnection, how do i take care of the secernario that there is no wifi/internet connectioin Dec 17 17:40:06 you detect that there isn't and you prevent the connection Dec 17 17:40:06 i just want it to give a dialog saying cant be done Dec 17 17:40:15 profligacy: http://developer.android.com/training/basics/network-ops/connecting.html Dec 17 17:40:17 you detect first, then issue the connection Dec 17 17:40:38 specifically http://developer.android.com/training/basics/network-ops/connecting.html#connection Dec 17 17:43:12 cketti: i can see that it is defined 2 times, but in different files... let's say that the first one is in main.java, and the second one in CategoryActivityItem.java Dec 17 17:45:29 cketti: solved... i have two times (with different names) those .jar libs in the /libs folder Dec 17 18:06:35 doogan im using an async thread Dec 17 18:06:38 so if i dont have wifi Dec 17 18:06:47 i dont want it to go to PostExecute Dec 17 18:06:50 any way around this? Dec 17 18:07:02 do i have to put more conditions in post execute Dec 17 18:07:03 ? Dec 17 18:08:41 I have a view which has button, I want to slide in different view when I click on button. how can I achieve this? Dec 17 18:08:45 profligacy: use the return value to decide what to do (or not do) in onPostExecute() Dec 17 18:09:05 damn Dec 17 18:09:26 prob don't even start the AsyncTask in the 1st place if you don't ahve connectivity Dec 17 18:14:19 connectivity can be lost while the aysnctask is executing, so a combination of both works well Dec 17 18:15:10 why would you need connectivity in onPostExecute tho Dec 17 18:15:56 1) check connectivity in onPreExecute, cancel if no connection is available, 2) execute doInBackground and return your data or null if there was an error, 3) check your result in onPostExecute Dec 17 18:16:24 doogan i dont Dec 17 18:16:37 but i dont want it to do the postexec tasks Dec 17 18:16:40 if there was no wifi Dec 17 18:16:46 harpal, its just like any other animation. inflate the view and call startAnimation Dec 17 18:16:54 birbeck Dec 17 18:16:58 will it actually matter whether you start the task or not? Dec 17 18:17:00 can i check in preExec Dec 17 18:17:16 harpal, you can find example left to right and right to left animations in the res folder of your sdk Dec 17 18:17:18 and then tell it not to run doINbackgroudn() Dec 17 18:17:18 Wont you need to check connectivity in a thread Dec 17 18:17:22 ie, if there's no connectivity the network calls will just fail Dec 17 18:17:24 Strict mode and all that Dec 17 18:17:26 no harm done Dec 17 18:18:13 profligacy: you can call cancel(true) in onPreExecute() Dec 17 18:18:35 profligacy: you'll always have to take into account the fact that the connectivity was lost between the onPreExecute check and the background execution Dec 17 18:18:37 that cancels doInBackground() and postExec()? Dec 17 18:18:41 SimonVT: if youre not executing on the main thread, strict mode wont matter Dec 17 18:18:43 so you'll need to check it in both methods anyway Dec 17 18:18:43 birbeck: ok, Checking that Dec 17 18:19:12 maurits not much being done in my background exec Dec 17 18:19:12 birbeck: onPreExecute happens on the main thread Dec 17 18:19:16 so a check in onPreExecute is at best a small optimization Dec 17 18:19:16 just keep swimming Dec 17 18:19:17 just keep swimming Dec 17 18:19:23 profligacy: if you call cancel(true) from onPreExecute(), doInBackground() will not run. onPostExecute() will no run if the task is cancelled Dec 17 18:19:36 thanks birbeck Dec 17 18:19:40 what is cancel Dec 17 18:19:47 SimonVT: but ConnectivityManager will not throw an exception, its not using the network Dec 17 18:19:52 i can just put that in the pre fcn Dec 17 18:19:56 alright then :) Dec 17 18:19:57 cancel(true); Dec 17 18:20:12 darn, I can't get ndk-build to work ;-( Dec 17 18:20:14 profligacy: this.cancel(true). it is a method of AsyncTask Dec 17 18:20:22 thanks birbeck! Dec 17 18:20:50 knowledge by birbeck Dec 17 18:21:04 profligacy: if the task doesn't do anything what's the point of it? Dec 17 18:21:09 ;-P Dec 17 18:21:17 it doesnt do much Dec 17 18:21:28 but i was under the impression before Dec 17 18:21:38 it was good practice to do network bits in async tasks when you can Dec 17 18:21:54 still, you'll still have to take into account that there's no connectivity in the background method regardless of whether you do that check Dec 17 18:21:59 profligacy: not just good practice, required on API 9 and higher Dec 17 18:22:12 or else you'll get a race condition and your app will crash Dec 17 18:22:17 Maurits_ Dec 17 18:22:27 he said this.canel(true) doesnt run background() Dec 17 18:22:48 Required on api11 or higher if your targetsdk is 10 or higher :p Dec 17 18:22:49 yes, but the connectivity may drop after the check succeeding and doInBackground running Dec 17 18:22:53 this.cancel(true) in the preexec Dec 17 18:22:59 should I be using .c file or .cpp for my ndk code Dec 17 18:23:05 ie, check->(connectivity fails)->doInBackground runs Dec 17 18:23:25 welcome to the world of thread programming ;) Dec 17 18:23:40 actually i thought of that Dec 17 18:23:44 but for now Dec 17 18:23:47 im on a tight dealine Dec 17 18:23:47 just catch an io exception in doInBackground() and return null Dec 17 18:23:55 but i will make the necessary changes in the future Dec 17 18:24:00 oh Dec 17 18:24:03 birbeck Dec 17 18:24:04 or call cancel() and return Dec 17 18:24:14 ^ Dec 17 18:24:18 if your asynctask is cancelled, onPostExecute will not run Dec 17 18:24:24 do not worry about the pre-check at all Dec 17 18:24:29 i have these Dec 17 18:24:29 catch(MalformedURLException ex){ Dec 17 18:24:29 Toast.makeText(CreateActivity.this, ex.toString(), Toast.LENGTH_LONG ).show(); Dec 17 18:24:30 } Dec 17 18:24:30 catch(IOException ex1){ Dec 17 18:24:30 Toast.makeText(CreateActivity.this, ex1.toString(), Toast.LENGTH_LONG ).show(); Dec 17 18:24:30 } Dec 17 18:24:30 just run the task regardless Dec 17 18:24:33 is that sufficient Dec 17 18:24:51 profligacy: no, you are not returning Dec 17 18:25:10 so return aftter each toast? Dec 17 18:25:15 You shouldn't be making toasts on a background thread Dec 17 18:25:21 hey... i wonder if GoogleAdMobAds is released as open source?? Dec 17 18:25:34 SimonVT: wel thats another issue all together, but i assume thats just for debugging Dec 17 18:25:36 that was for testing ill get rid of the threads then Dec 17 18:26:02 but wait, if i return Dec 17 18:26:07 thats in backgournd() Dec 17 18:26:11 will it go to post after? Dec 17 18:26:50 if i return after those excetpions it would still want a STring Dec 17 18:26:58 lucy33, probably not Dec 17 18:26:58 yes, unless you cancel before returning Dec 17 18:26:59 http://developer.android.com/reference/android/os/AsyncTask.html#cancel(boolean) Dec 17 18:26:59 and take that String to the post() Dec 17 18:27:21 but you can return null and check the result in onPostExecute Dec 17 18:27:56 my god using a return value? that's crazy! Dec 17 18:28:46 so if i cancel Dec 17 18:28:49 it wont go to post Dec 17 18:29:10 i dont need preexec , if i check for those exceptions in the background() right and cancel before returning there Dec 17 18:29:16 profligacy: obviously if your expected result is null, either from an exception or other error, you dont want to operate on that in onPostExecute(), its a good idea to check your result regardless of what state you think its going to be in on onPostExecute() Dec 17 18:29:53 profligacy: i generally check if a connection is available first, then i can show a dialog or something Dec 17 18:30:12 but if youre catching the exceptions, its not required. just depends on what you want your ux to be Dec 17 18:30:25 ux? Dec 17 18:30:35 user experience Dec 17 18:30:45 oh alright Dec 17 18:30:51 so Dec 17 18:30:57 i have those 2 exceptions Dec 17 18:31:05 that should be sufficient Dec 17 18:31:10 with cancels Dec 17 18:31:21 no need to take care of null results in the post Dec 17 18:31:38 its sufficient for network exceptions, i dont know what youre doing Dec 17 18:31:43 gotta run to a meeting Dec 17 18:32:55 SimonVT: i heard you made a sliding menu Dec 17 18:33:11 thanks birbeck Dec 17 18:33:13 appreciate it! Dec 17 18:33:17 I did, mikedg Dec 17 18:33:39 menus by simon Dec 17 18:33:40 hi, how do i convert .apk file to source code? Dec 17 18:33:44 ill use it for 50 bucks Dec 17 18:33:54 Qalqi: you can't Dec 17 18:34:20 Qalqi: first you have to dip it into a 30% acid solution Dec 17 18:34:21 evancharlton: can't is a big word Dec 17 18:34:23 evancharlton: well.... you can.. Dec 17 18:34:23 that gets the first layer off Dec 17 18:34:25 mikedg: Sure, just paypal me the 50 bucks Dec 17 18:34:28 it's just complicated Dec 17 18:34:47 once the skin is peeling off, you grab a knife and cut through the dex Dec 17 18:35:18 careful not to leave it in too long though or the manifests will start to soak and you'll be ruined Dec 17 18:35:44 i am not doing any illegal code stealing Dec 17 18:35:45 yeah Dec 17 18:35:54 Qalqi: sounds like code raping Dec 17 18:36:02 it's illegal in most countries except the republic of congo Dec 17 18:36:07 are you from the republic of congo? Dec 17 18:36:10 we can help you if you are Dec 17 18:36:33 i only want to get source code of smspopup which is open source Dec 17 18:36:49 so get the source :) Dec 17 18:36:52 something doesn't add up with that statement Dec 17 18:36:57 much easier Dec 17 18:36:59 i am trying to learn from its sourc code Dec 17 18:37:00 Qalqi: ....what Dec 17 18:37:08 all i got is its .apk file Dec 17 18:37:16 Find the repo? Dec 17 18:37:29 its an open source project, but has no public repo or project site? Dec 17 18:37:29 https://code.google.com/p/android-smspopup/source/browse/ Dec 17 18:37:32 next time google it sucker Dec 17 18:37:35 i had to bing that for you Dec 17 18:37:48 bing wins?! Dec 17 18:37:57 bing source code, now that sounds like source raping Dec 17 18:37:59 you search for sms popup, the repo comes up first Dec 17 18:38:06 bing by birbeck Dec 17 18:38:10 skillz Dec 17 18:38:19 Qalqi: http://code.google.com/p/android-smspopup/source/browse/ Dec 17 18:39:04 pretty sure decompiling actually isn't illegal, anyway Dec 17 18:39:21 this channel is very harsh Dec 17 18:39:44 Qalqi: all it took me to find that was to google for 'smspopup' and go to the first hit Dec 17 18:39:56 so it's understandable people are a bit annoyed with you Dec 17 18:39:58 this is me right now http://www.macrobusiness.com.au/wp-content/uploads/2011/02/HAPPY-FACE.png Dec 17 18:40:08 think i managed to fix a really annoying problem Dec 17 18:40:17 What's the best practice for handling differences in configuration between development and release? Dec 17 18:40:31 what kinds of configuration Dec 17 18:40:45 enjo58, use an automated build system that always makes release builds Dec 17 18:40:48 specifically I need to vary a server URL between my development and the actual release system Dec 17 18:40:54 we are hars\h because we love you Dec 17 18:40:59 enjo58, or use BuildConfig Dec 17 18:41:02 to determine type == DEBUG Dec 17 18:41:41 mikedg: sigh. you and your microsoft love. Dec 17 18:41:47 cool. Wasn't sure if there was anything sort of android specific:) Dec 17 18:41:48 enjo58: http://stackoverflow.com/questions/7085644/how-to-check-if-apk-is-signed-or-debug-build Dec 17 18:41:56 we love you like a lobster Dec 17 18:41:58 Hi, I was requesting a landscape layout to be inflated, but it causes errors saying it can't find the resource. Dec 17 18:42:06 michaelnovakjr: the surface is the greatest tablet of all time Dec 17 18:42:11 I believe the problem was that I don't have a non-landscape version, could that be it? Dec 17 18:42:14 it feels better than a million dollars Dec 17 18:42:26 Firstmate: how were you requesting a landscape layout? Dec 17 18:42:46 mikedg: setRequestedOrientation Dec 17 18:43:14 I'm trying my first game, so after the user hit a startGame, I fire up a new activity Dec 17 18:43:19 And in it, it requests landscape Dec 17 18:43:28 mikedg: eh. doubt it. Dec 17 18:43:37 and through setContentView, a layout in my layout-land folder. Dec 17 18:43:47 michaelnovakjr: you are like obi wan kenobi Dec 17 18:43:49 such a hater Dec 17 18:44:38 Firstmate: why not set the orientation of the game activity in your AndroidManifest.xml? Dec 17 18:44:48 mikedg: is it hating when it is the truth? Dec 17 18:44:59 birbeck: I'll give that a go, but was that the source of the problem? Dec 17 18:45:31 Your app isn't in landscape orientation, and you didn't provide a layout for portrait Dec 17 18:45:47 I thought so, but I requested landscape before setContentView. Dec 17 18:45:47 Firstmate: not sure, but specifying it in your manifest will be a better route. think of what its doing. launching in portrait and then requesting to switch Dec 17 18:45:54 it will take longer to load Dec 17 18:45:56 Unless you have both port and land layouts, it makes no sense to use the qualifier Dec 17 18:46:00 But I assumed since it was originally in portrait, it would attempt to rotate back. Dec 17 18:46:38 birbeck: I see, makes sense. Dec 17 18:47:21 but as simon is saying, if you only have a layout in layout-land and none in layout-port or layout, that will cause an error Dec 17 18:47:36 Is it considered bad design to force an orientation on the user? Dec 17 18:47:43 games get away with it Dec 17 18:47:45 other apps suck Dec 17 18:47:54 it depends on the app Dec 17 18:48:01 Yes, it's a game Dec 17 18:48:08 for games it's usually considered okay Dec 17 18:48:13 Firstmate: think of it this way, ehh i was going to say something tasteless about bad things Dec 17 18:48:15 forget it Dec 17 18:48:18 Firstmate: generally yes, but if your activity will only run in a given orientation, force it to use that orientation and say your app requires it in the manifest Dec 17 18:48:52 Is having 'android:screenOrientation="landscape"' satisfactory in forcing the orientation? Dec 17 18:49:03 yes Dec 17 18:49:04 yes Dec 17 18:49:16 I see, thanks. Dec 17 18:49:23 Let me give that a go. Dec 17 18:50:20 I'm noticing another exception arising. Dec 17 18:50:28 The activity launches correctly in landscape. Dec 17 18:50:47 However, after the device goes inactive, the same exception is being raised (resource not found) Dec 17 18:51:02 did you move your layout to layout instead of layout-land? Dec 17 18:51:06 Is there something I'm not accounting for in the activity life cycle? Dec 17 18:51:08 I did. Dec 17 18:51:46 So to be specific, launch app -> launch landscape activity -> let device go inactive and sleep. Dec 17 18:52:19 Firstmate: what happens (or doesn't happen) in onResume? Dec 17 18:52:31 aren't you getting a nice error message in logcat? Dec 17 18:52:50 Have not implemented a onResume. I am getting a nice message. Dec 17 18:52:51 is it complaining about a different resource? Dec 17 18:52:56 The same resource. Dec 17 18:53:04 the layout file? Dec 17 18:53:04 My layout-land xml. Dec 17 18:53:07 Aye. Dec 17 18:53:21 I verified by the resource id. Dec 17 18:54:03 I think it's attempting to relaunch the activity in portrait. Dec 17 18:54:17 (Obviously), but I don't know why. Dec 17 18:57:00 It definitely happens somewhere between the pause and resume though. Dec 17 18:57:17 I added little stubs that logs to logcat, I get the pause message, then the error. Dec 17 18:57:50 Would the simple fix be just adding a portrait layout, though that seems hackish. Dec 17 18:58:38 You already moved the layout to res/layout/, so it'd use that for portrait as well Dec 17 18:59:11 Oh right. Dec 17 18:59:47 Hm, I'll keep tinkering with it. Thanks for the help though. Dec 17 19:00:22 Though I am interested in the lifecycle while the phone is asleep. It seems to be resuming/pausing an activity while the phone is asleep. Dec 17 19:00:24 Why is that? Dec 17 19:00:59 resource conservation would be my guess Dec 17 19:01:25 no need to drain the battery, cpu or RAM when nobody is using the phone Dec 17 19:16:08 so who is the guy in the woods anyway, why no more info on this guy ? http://www.youtube.com/watch?v=ovspEgeMXb4 Dec 17 19:19:05 k0nichiwa: please don't get into that sort of thing on the Android channels Dec 17 19:20:16 Yeah, please take it to #maninthewoods Dec 17 19:20:32 sorry most channels allow a little off-topic chatting Dec 17 19:20:38 didnt know u were so strict in here Dec 17 19:21:02 usually, but this is a very hot issue right now and i'd rather not open things up Dec 17 19:54:25 i try to start my emulator from the avd Dec 17 19:54:28 but i dont see my app there Dec 17 19:54:30 any reason? Dec 17 19:56:34 profligacy: did you install your app on the emulator? Dec 17 19:56:44 I am trying to use a bluetooth keyboard with my app. Everytime the keyboard is connected/disconnected, my app gets onPause which cause the app to restart. Any idea what causes this? I put a breakpoint in onPause override but no info on what causes it Dec 17 19:57:13 Manavan: configuration change? Dec 17 19:57:19 i did michaelnovakjr Dec 17 19:57:21 let me try it again though Dec 17 19:57:26 probably getting keyboardVisible|keyboardHidden Dec 17 19:57:34 (or whatever they are) Dec 17 19:57:53 in my Android Manifist I dont have keyboardVisible|keyboardHidden Dec 17 19:58:01 do i need to put something to change default behaviour? Dec 17 19:58:09 android:configChanges="orientation|screenSize" Dec 17 19:58:12 thats what i have Dec 17 19:58:35 Manavan: there's probably an additional configuration value for the input methods. Dec 17 19:58:59 you probably want hardKeyboardHidden in there Dec 17 19:59:48 so if i put for e.g.: hardKeyboardHidden I am telling it to ignore restarting during keyboard hidden? Dec 17 20:02:15 How would I go about implementing the activity circle example from the gmail app? (see http://developer.android.com/design/building-blocks/progress.html) Dec 17 20:02:35 is that just a full-screen fragment or something? Dec 17 20:02:47 I see so the config changes tell what config change we will handle and do not require restart in an app Dec 17 20:02:51 I am checking docs Dec 17 20:07:44 Manavan when you say restart your app you mean restart activity ? like if you had just rotated the screen etc? Dec 17 20:11:38 yes restart activity. I think it seems to work now :) I have added both keyboard and keyboardHidden in config. It is not reloading the activity anymore Dec 17 20:13:25 those are not the only times when you will be relaunched Dec 17 20:13:34 so you should really fix the problem for real, not just try to avoid some cases. Dec 17 20:14:49 what ctate said is wise to do Dec 17 20:15:05 you should account for the configChanges Dec 17 20:15:22 and handle it the way that best fits Dec 17 20:15:35 rather than ignore/bypass Dec 17 20:16:36 For a game which contains multiple levels (i.e. a screen that lets the user choose a level), is it still best to use layout files? Dec 17 20:16:45 Or to programmatically design the layout? Dec 17 20:17:25 is that not a design choice ? based on how adaptable the screens will be ? Dec 17 20:17:29 You generally want to avoid generating layouts in code Dec 17 20:17:36 and also how they are to be drawn I guess Dec 17 20:18:12 nothing wrong with code gen layouts... if there is a need and a purpose Dec 17 20:20:10 I guess I mean, the specific screen where you choose levels. Dec 17 20:20:16 cstate, StingRay. Thanks I was using keyboard thing for a custom NFC Reader. The app was handling the keyboard change it just I had to stop it from reloading. Thanks for the suggestions. Dec 17 20:20:38 Nevermind though, I think the Grid layout is the best way of doing it. Dec 17 20:39:40 there is a usability problem with an app relying on play services; i just updated "My Tracks" and it said i needed the services; ok great … tehn i click to accept some agreement which of course i'm never going to read on a phone, then it goes to update the play services and … I'm stuck in play and nothing happens. no handoff Dec 17 20:40:38 i wonder if mytracks just implemented this poorly, or what Dec 17 20:44:11 hello Dec 17 20:44:22 Sorry if anyone has answered my question, my internet died, could you repeat it if so? Dec 17 20:44:50 JavaDog didn't even see a question Dec 17 20:45:08 oh Dec 17 20:45:11 in that case Dec 17 20:45:15 How would I go about implementing the activity circle example from the gmail app? (see http://developer.android.com/design/building-blocks/progress.html) Dec 17 20:45:19 is that just a full-screen fragment or something? Dec 17 20:45:59 is that not just the progress bar ? Dec 17 20:46:34 yeah but, if I had some activity already open and just wanted to switch the screen to be the ProgressBar Dec 17 20:46:40 any of you find a 4.2 intel emulator ? Dec 17 20:46:41 without switching activities Dec 17 20:47:05 custom dialog? Dec 17 20:47:13 i see one for 4.1.2 but not for 4.2 Dec 17 20:47:30 new setContent View+progress while in async ? Dec 17 20:48:08 oh, yeah Dec 17 20:48:10 thanks Dec 17 20:48:19 would fragments be an acceptable solution also? Dec 17 20:48:23 if I'm already using one Dec 17 20:48:34 well...just for a progress indicator ? Dec 17 20:48:46 fragment good for lifecycle stuff Dec 17 20:49:06 not sure just one view element would warrent it tbh Dec 17 20:49:10 just my op Dec 17 20:49:36 eh, I guess so Dec 17 20:50:40 you can have a dialog with jus that view element I would think Dec 17 20:50:53 I uploaded a new apk to play store, but it seems to have lost my changes Dec 17 20:51:04 now it says "version 49 already exists" when I try again Dec 17 20:51:17 anyone have this problem? Dec 17 20:52:30 Maybe version 49 already exists Dec 17 20:52:43 the latest it shows is 48 Dec 17 20:52:51 I uploaded 49, saved it, and it seems to have lost it Dec 17 20:53:11 You didn't just forget to activate it? Dec 17 20:53:11 it doesn't show anymore in the list, and it lost all my new screenshots, etc, in the app details area Dec 17 20:53:18 I'm sure Dec 17 20:53:26 I'll re-export the apk as v 50 Dec 17 20:53:30 and try again Dec 17 20:53:30 oh well, upload version 50 then Dec 17 20:53:39 hi Dec 17 20:54:05 does anybody know if motorola uses a custom phone app with a different package name? Dec 17 20:54:17 I feel like a dialog popping up with a progressdialog in it doens't fit with the fancy holo style Dec 17 20:54:26 doesn't* Dec 17 20:54:52 nx5: i wouldn't be surprised if they do. why do you ask? Dec 17 20:55:07 Progress dialogs suck Dec 17 20:55:29 because I need to not pop up if it's on top Dec 17 20:55:37 Just embed it in the activity Dec 17 20:55:55 As a regular view Dec 17 20:55:58 and a user told me something that makes me think I might be, on his phone model Dec 17 20:56:47 err, why do you need to pop up at all, and how can you tell what you're popping over? this is sounding problematic from the get-go... Dec 17 20:57:06 yeah, it is, but it would be a long story Dec 17 20:57:24 heh Dec 17 20:57:34 tl;dr, you're doing it wrong Dec 17 20:58:08 do you know of any motorola users channels here on freenode? Dec 17 20:58:41 So I'm a total dunce. How can I do standard rectangular bitmap clipping manually onto a canvas? No clipdrawable for me Dec 17 20:59:47 ...it just happened again Dec 17 20:59:58 activated the new apk, saved, when to home and it still has the old info Dec 17 21:00:03 s//when/went Dec 17 21:00:05 canvas.save(); canvas.clipRect(...); canvas.drawBitmap(...); canvas.save(); ? Dec 17 21:00:13 canvas.restore() that is Dec 17 21:00:39 how do i release httpUrlConnections Dec 17 21:00:53 my second POST seems to cause me to crash (its in an async thread) Dec 17 21:01:21 and the first POST is in another async thread Dec 17 21:10:28 http://pastebin.com/Kj6ePUcz Dec 17 21:10:34 that's my stack trace Dec 17 21:12:56 dev on win7 here... build won't work because paths have a /cygwin/ prefix... any idea how to fix it? Dec 17 21:13:40 profligacy: look at lines 16 and 17 of that copy/paste Dec 17 21:13:49 it tells you exactly what the exception is, and where it was thrown from your code Dec 17 21:16:24 sdaq: what build? the ant scripts for android shouldn't hardcode cygwin anywhere. Dec 17 21:17:32 src/Android.mk:7: /cygdrive/c/Users/*******/Android/src/OpenThreads/pthreads/Android.mk: No such file or directory Dec 17 21:18:22 its putting /cygdrive/ on the front of the path Dec 17 21:19:10 sdaq: what are you trying to build? Dec 17 21:20:28 evancharlton: our app here at my company Dec 17 21:21:03 I recently installed cygwin make and now I cannot build anymore Dec 17 21:21:22 if I go to the directory in console and type ndk-build, it builds fine Dec 17 21:21:32 but if I try to build from inside eclipse it fails Dec 17 21:27:37 er Dec 17 21:28:06 yeah, idk what to suggest Dec 17 21:30:52 sdaq: you can probably switch eclipse's android build log output to verbose and see enough information to reconstruct it via command line Dec 17 21:31:04 but, like lov, I have no idea what's up with that Dec 17 21:31:07 how can i set my app to not reorientate when i turn my cellphone? Dec 17 21:31:19 i want only portrait mode Dec 17 21:31:23 evancharlton: good idea Dec 17 21:31:43 Suchorski: you can define that in the activity's manifest Dec 17 21:31:47 Suchorski: set your orientation="portrait" Dec 17 21:31:55 i set this Dec 17 21:32:00 but isnt work Dec 17 21:32:11 Suchorski: I doubt that Dec 17 21:32:12 Suchorski: http://developer.android.com/guide/topics/manifest/activity-element.html#screen Dec 17 21:32:22 openniing ide Dec 17 21:32:51 of course, remember that this may not be what you want on tablets where the natural orientation is landscape Dec 17 21:32:53 this? android:orientation="portrait" Dec 17 21:32:53 ? Dec 17 21:33:03 no Dec 17 21:33:07 read the link i pasted Dec 17 21:33:13 android:screenOrientation is the attribute to set Dec 17 21:33:27 have it too Dec 17 21:33:28 android:screenOrientation="nosensor" Dec 17 21:33:36 have 3 lines on my app manifest Dec 17 21:33:51 if you want portrait, then set it to portrait. Dec 17 21:34:00 nosensor is not the same. read the docs. Dec 17 21:34:10 ok Dec 17 21:34:11 will see Dec 17 21:34:28 hum Dec 17 21:34:31 tring this Dec 17 21:34:52 (basically, "nosensor" means you'll run in the device's natural orientation and won't rotate with the device. that means you'll get landscape on many tablets, portrait on most/all phones, but you dont' know in advance what any particular device will use) Dec 17 21:35:02 ctate have to test this orientation on vm android? Dec 17 21:35:21 have a way* Dec 17 21:35:35 i don't have a android phone now Dec 17 21:35:45 sure; set up a 10"-tablet type AVD in addition to a phone-factor AVD Dec 17 21:35:48 test in both Dec 17 21:36:13 ok Dec 17 21:36:15 testing Dec 17 21:36:34 Suchorski: you can press Ctrl+f12 to rotate the emulator Dec 17 21:38:23 tks Dec 17 21:38:29 testing Dec 17 21:49:13 ctate working well tks :D Dec 17 21:49:21 tks for the shortcut birbeck Dec 17 22:52:57 numberpad 7/9 also rotate left/right Dec 17 22:53:08 when the emulator isn't spazzing out, that is Dec 17 22:54:59 what is considered the safe way to do a FragmentTransaction after an asynchronous operation? Dec 17 22:56:34 basically -> can I trust that as long as I don't do a fragment transaction after onDetach() of the retained fragment is done, is it guaranteed not do do an IllegalStateException? Dec 17 23:03:31 SOmething I havn't figured out yet: is it possible to have two layouts (one for phones <5" and one for tablets >5") for the same activity? Dec 17 23:03:38 activity or app Dec 17 23:04:22 rynkan, http://developer.android.com/guide/topics/resources/providing-resources.html Dec 17 23:06:01 I thought that was only for drawable, cool Dec 18 00:03:31 cool; ir camera http://www.gizmag.com/ir-blue-thermal-imaging-smartphones/25486/ Dec 18 00:07:30 does anyone know whatever happened to the Nexus Q? Dec 18 00:07:43 it...didn't make it Dec 18 00:08:06 but was it cancelled? Dec 18 00:08:10 or just delayed Dec 18 00:08:14 I don't know Dec 18 00:11:04 belgianguy: everyone at I/O was given one... everyone who ordered one after I/O was given it for free, but they pulled the ordering quite quickly Dec 18 00:11:27 in theory it's gone back to the drawing board and will re-appear, but nobody has the slightest clue if or when that might happen Dec 18 00:12:18 ah, thanks Leeds, I thought it would have resurfaced by now, but alas Dec 18 00:12:52 I think that was a good idea.. I didn't really see how the Q would be popular compared to its price Dec 18 00:13:04 maybe the Ouya will move into that segment of the market as well Dec 18 00:13:34 yeah, it did *something* but didn't really fit a purpose except for ecosystem growth I guess Dec 18 00:15:16 looked cool though :/ Dec 18 00:15:51 oh yeha it looked awesome, but I dont think I would of gotten one.. im still waiting for them to release the nexus charging doc though.. Dec 18 00:16:01 pew ? Dec 18 00:16:24 gawd no, an amazon phone Dec 18 00:16:42 g00s: link ? Dec 18 00:16:45 g00s: I saw something about that.. wasnt the last one going to use Firefox OS? Dec 18 00:17:21 i heven't heard of anyone using FirefoxOS Dec 18 00:17:38 funkbox_: http://cens.com/cens/html/en/news/news_inner_42351.html Dec 18 00:18:04 g00s: maybe I am imagining it.. I dunno, but yeah I havent really seen any movement on it. Im curious how it will work out Dec 18 00:18:45 i wonder if it will have GB :D Dec 18 00:18:55 g00s: heh Dec 18 00:19:52 g00s: interesting Dec 18 00:20:53 honestly, I dont think at this point any Mobile OS could enter into the market and really get any share.. the market is dominated by iOS and Android.. and Windows Phone hasnt been able to make a decent dent Dec 18 00:21:10 drpenguin: msft is willing to spend huge piles of money Dec 18 00:21:16 i think there will be a third player Dec 18 00:21:20 it's more that Windows Phone used to have an enormous part of the market, but iOS and Android have carved most of it away now Dec 18 00:21:35 ctate: Windows Mobile* Dec 18 00:21:45 CE Dec 18 00:21:47 etc Dec 18 00:21:49 ctate: did it? I wasnt too mobile aware back in the days of WinMo and CE Dec 18 00:21:53 Windows Phone never had an enormous part of anything, except Microsoft's marketing budget Dec 18 00:22:17 it's all "Microsoft's mobile-phone os" to me Dec 18 00:22:24 it's actually not a bad OS Dec 18 00:22:26 at all Dec 18 00:22:27 if they want to shoot themselves in the foot balkanizign it, then that isn't my problem Dec 18 00:22:28 just needs apps Dec 18 00:22:52 funkbox: well, they also made it hard to be at all differentiated on the hardware Dec 18 00:22:55 funkbox: im not even sure if that will help. I see The mobile platform taking a hit due to RT.. I havent seen much good coming from that Dec 18 00:22:57 extremely tight hw requirements Dec 18 00:23:24 ctate: that's true. although the camera on the 920 is *amazing* Dec 18 00:23:37 the OS is good, the phone is a little big but very good… but no apps Dec 18 00:23:51 so if anoyne wants to buy a developer unlocked lumia 920 let me know :) Dec 18 00:24:27 @ctate: if I'm using a Worker Fragment (setRetainInstance(true)) and need it to call back to its target fragment after an asynchronous operation to do a FragmentTransaction, what is the current methodology to determine if it is okay to go ahead and do the transaction? Do I keep around a variable in the Target fragment to know when onSaveInstanceState has been called? Dec 18 00:24:31 funkbox: I believe they just rolled out a patch to make the 920 camera better Dec 18 00:24:47 Windows CE is the "small" embedded OS (compared to NT Embedded). Windows Mobile (and Windows CE for pocket PC etc.) as well as default build of WinCE was just a particular subset... and quite popular Dec 18 00:24:57 beingcasual: ah then it must be even more super awesome Dec 18 00:25:10 also, MSFT seems to have taken quite a lot of cues from Apple, the only problem I see is that they don't share the mindset Dec 18 00:25:18 it makes the camera on this galaxy s3 look like one of those cameras that came on flip phones in 2003 Dec 18 00:25:23 funkbox: it corrected an error Dec 18 00:25:25 belgianguy: their marketing strategy is quite confusing too Dec 18 00:25:26 unfortunately, the FragmentRetainInstance sample doesn't provide much info on FragmentTransactions after asynchronous operations Dec 18 00:25:43 or rather any at all Dec 18 00:26:04 MS lost a lot, really a lot, by first lack of action then by introducing WinPhone which lacked all of the features people kept buying WinMo for Dec 18 00:26:50 I don't want MS to become the dominating factor, nobody needs another IE6 or more EEE Dec 18 00:27:04 herriojr: hmm. if your'e retaining the fragment, then isn't it going to be (by definition) okay to go ahead and do the transaction at any time? Dec 18 00:27:19 but competition is fine, keeps the rest sharp Dec 18 00:27:19 p_l: I think something that is going to bite them too is the ball they dropped with windows 8. I gotta say, the metro interface is above decent with a good touch screen.. but the windows desktop still being there and necessary for accessing thing kills it. its just not really usable outside of metro Dec 18 00:27:57 drpenguin: in my opinion it's their inability to envision a product that doesn't have Windows AND Office right from the start Dec 18 00:28:02 drpenguin: I like the metro, I dislike the tiles UI and some of the stuff involved with it (also, sometimes they got label hints wrong) Dec 18 00:28:18 belgianguy: they could of made a Metro optimized Office Dec 18 00:28:32 p_l: I like it too, for touch screens. on my non touch screen pc, it was stupid Dec 18 00:28:36 also remember that they wasted a ton of time + money on the Pink project Dec 18 00:28:36 @ctate: the retained fragment isn't the UI portion Dec 18 00:28:36 drpenguin: indeed they could have, but they didn't Dec 18 00:28:41 herriojr: so? Dec 18 00:28:52 they mucked the big version and half-assed some touch controls on it Dec 18 00:28:55 oh, its target is UI? Dec 18 00:29:01 so you need to reroute it? Dec 18 00:29:22 mmmpf this is where my lack of UI-side experience shows :) Dec 18 00:29:39 ctate: elaborate Dec 18 00:29:49 metro has won so many design awards Dec 18 00:29:57 basically, I'm following a similar design pattern to the sample, however, I don't trust that it will automagically make sure a FragmentTransaction doesn't happen after onSaveInstanceState Dec 18 00:30:03 funkbox: err, i talked about Pink, not metro? Dec 18 00:30:21 Remember the Kin? Neither does anybody else. Dec 18 00:30:26 ctate: oh my bad Dec 18 00:30:30 yea hthe kin was poop Dec 18 00:30:35 LOL Kin.. that was a hilarious phone Dec 18 00:30:37 i was at msft when they were working on that Dec 18 00:30:42 it was this suepr secret big project Dec 18 00:30:57 and they bought in Danger Dec 18 00:31:04 who still had a certain amount of real talent Dec 18 00:31:10 yeah, oh the irony :D Dec 18 00:31:14 but that whole division was managed into the ground Dec 18 00:32:26 ctate: yep Dec 18 00:32:58 Kin didn't even surface here (yes, punny all around :P) Dec 18 00:33:15 I played with one at a Verizon Kiosk.. and I just thought "what?" Dec 18 00:33:21 I don't get how they could miss the boat this badly Dec 18 00:33:47 they had Apple's IP by licensing, more than 4 years to look at what iOS and Android lacked Dec 18 00:33:47 because they are cluless Dec 18 00:33:53 and they release *that* Dec 18 00:34:10 but they have a giant Research division Dec 18 00:34:36 where do those people spend their time on? Our do the good things die a death by committee? Dec 18 00:34:37 but that's their research arm Dec 18 00:34:40 not products Dec 18 00:34:49 i mean, there's Google Research too Dec 18 00:34:58 but that isn't involved in Android development :) Dec 18 00:35:04 and a lot of their research is pretty "fundamental science" kind of stuff Dec 18 00:35:14 MS Research is a very solid outfit Dec 18 00:35:17 ctate: well, I often see research papers from other depts as well :D Dec 18 00:35:24 oh sure Dec 18 00:35:24 (in Google, that is) Dec 18 00:35:27 generally, when you look at MS failure, most Business Dev people I've talked to seem to attribute it to MS reliance on Kinsey (or McKinsey??) consultants Dec 18 00:35:54 personally i'd attribute it to incompetence in mid to upper(most) management Dec 18 00:36:04 i don't see much evidence that Ballmer is at all good at his job, for example Dec 18 00:36:05 which is where those consultants are :P Dec 18 00:36:13 ctate, that would be my wild guess, but I'd guess the internal structure of Google and MSFT are totally different Dec 18 00:36:16 err, consultants are by definition not part of your company's management :) Dec 18 00:36:31 theres also that weird employee thing microsoft has Dec 18 00:36:42 Google seems to be able to come forth as young and dynamic Dec 18 00:36:42 how they punish and reward people or something? an article came out about it a while ago Dec 18 00:36:42 ctate: there's also the signal vs. noise stuff ("chinese telephone" it seems to be called in USA, I think) Dec 18 00:36:54 I'm not going to get into it because I don't know enough, I just know they basically say the consultants run the place (and into the ground) Dec 18 00:36:58 while MSFT looks like your uncle busting out dance moves on your birthday party Dec 18 00:37:02 s/say/they say/ Dec 18 00:37:24 drpenguin: the "stack ranking" debacle Dec 18 00:37:32 yeah Dec 18 00:40:12 and now all of the sudden it seems that Microsoft thought people *liked* Windows for being Windows Dec 18 00:41:11 belgianguy: no, Windows is likeed for running all the random crap people wrote Dec 18 00:41:39 which is why Vista was such flop - it had to deal with butthurt feelings of software that no longer could find emulated bugs :P Dec 18 00:41:44 one word: Dec 18 00:41:45 Word. Dec 18 00:41:46 ;) Dec 18 00:42:00 (well, Office in general, but you get it.) Dec 18 00:42:04 anyway, Active Directory is pretty impressive stuff as well Dec 18 00:43:07 EAS Dec 18 00:43:08 too Dec 18 00:43:34 I can't recall any "turnkey" solution for other OSes that compares. There's MIT Athena, but it's not easy to get running even with latest debian-based system image Dec 18 00:44:00 I never used AD, what does it do Dec 18 00:44:18 p_l: true, that might give them a foothold with their tablets in the business market Dec 18 00:44:20 Zharf: it's basically an infrastructure package for bigger systems Dec 18 00:44:40 Zharf: management of many systmes Dec 18 00:44:48 oh Dec 18 00:44:59 yeah I never did any of that stuff ;) Dec 18 00:45:15 but with Intel CPU, they can double as cooking plate Dec 18 00:45:36 I just tend to prefer windows because the main thing I do with a computer is music related Dec 18 00:45:48 and the hardware support is best there Dec 18 00:46:11 without paying ridiculous amounts for super crappy hardware at the price that is Dec 18 00:46:23 Zharf: ever tried a Linux system? Dec 18 00:46:35 linux is shite for A/V work Dec 18 00:46:35 belgianguy, yes, I used linux mainly for 8 years Dec 18 00:46:48 it sure still sucks on many depts Dec 18 00:46:48 I still use linux for most of my coding Dec 18 00:47:08 Zharf: stuff like network-stored user profiles, management of multiple workstations, user groups, single sign-on across different intranet services as well as across different branches of your company, win2k8 adds stuff like automatic VPN as soon as soon as you grab IPv6 connectivity, etc. Dec 18 00:47:17 ^ Active Directory, and that's not all of it Dec 18 00:47:24 p_l, I see Dec 18 00:47:35 ctate: till you go to highest-tier offerings, afaik :) Dec 18 00:47:42 even there Dec 18 00:48:01 unless you're talking about sealed-box products that happen to be built on it Dec 18 00:48:19 but it's getting better, although I would appreciate it if they spent some more time on the last 20%, getting those rough edges out Dec 18 00:48:23 well, there are some non-sealed, but we are talking about really specific stuff Dec 18 00:48:32 no help text starts with "open your terminal and ... " Dec 18 00:48:48 that isn't the "last 20%" Dec 18 00:48:51 that's the last 80% Dec 18 00:48:56 belgianguy: right now they are focused on breaking shit up Dec 18 00:49:19 p_l, which is why I got fed up with it some years back and didn't use it at all for two years Dec 18 00:49:20 outside of kernel, at least Dec 18 00:49:29 belgianguy: they just need to do waht they did on CSI miami: write a gui in visual basic. That solves everything if it can solve crimes Dec 18 00:49:36 Zharf: well, I avoid the drama (mostly) by using saner distros Dec 18 00:49:44 drpenguin: did they backtrace his IP, too? :p Dec 18 00:49:51 p_l, I moved to non-traditional software ;) Dec 18 00:49:59 Zharf: unfortunately, Arch recently jumped the shark, while making a salto with naked hooker on its back Dec 18 00:50:01 I use pretty much terminals only nowadays Dec 18 00:50:02 I used to use non sane distros.. now Im a debian user :D Dec 18 00:50:05 and do they all yell "Yes, I'm in" after some random keypresses :p Dec 18 00:50:30 don't remind me of VB Dec 18 00:50:42 I wouldn't call debian sane, but it's the one I know the best Dec 18 00:50:48 I'm an Ubuntu user, and had expected more animo after a less than stellar Win8 launch Dec 18 00:50:49 I had to deal recently with its most brain-damaged cousin - VBScript Dec 18 00:50:50 p_l: hey, do you remember VB? Peppridge Farm remembers Dec 18 00:50:55 been using sid since 2002 or so Dec 18 00:50:58 Zharf: whats not sane about Debian? Dec 18 00:51:15 drpenguin, recently a lot of things :) Dec 18 00:51:16 drpenguin: I never used VB itself, but I had to deal with VBS recently (HP QTP) Dec 18 00:51:27 p_l: ive never done any VB Dec 18 00:51:38 Zharf: ive used Lenny, Squeezy, and Wheezy. All fine to me Dec 18 00:51:38 yeah, VB we had at school, VB6 IIRC Dec 18 00:51:50 what a horrible thing to witness Dec 18 00:52:01 heh Squeezy.. Squeeze* Dec 18 00:52:03 if code could be sick, that's what it would look like Dec 18 00:52:40 Squeezy? Dec 18 00:52:42 lol Dec 18 00:52:56 drpenguin, my main issues are with pulsecrap and no ctrl+alt+backspace in X ;) ... also their zeroconf stuff (like with all linux distros I've used) very often do things wrong and it's much harder to actually configure it by hand than it used to be Dec 18 00:53:17 pulseaudio is shit. No need to explain with sentences Dec 18 00:53:27 Zharf: both of those are easy to deal with Dec 18 00:53:38 even alsa is purely crap Dec 18 00:53:42 of course Dec 18 00:53:45 i remember when i had to calculate the dot clock or something to get X to work Dec 18 00:53:45 sound on Linux is shit Dec 18 00:53:51 still? Dec 18 00:53:52 s/pulsecrap and no ctrl+alt+backspace in // FTFY Dec 18 00:53:55 it's a huge fail for Linux; sound Dec 18 00:54:07 g00s: as i said. A/V in LInux is shite. Dec 18 00:54:10 but ctate can be very verbose about Linux's failures on the Desktop Dec 18 00:54:13 I have to disagree with sound being bad.. Pulse is a POS, but Alsa is just fine Dec 18 00:54:15 Sicp, they're talking about a new audio framework! Dec 18 00:54:17 so I'll leave the floor to him :P Dec 18 00:54:23 VBScript - the reason why we missed PHP faults for so long Dec 18 00:54:25 Sicp: s/can /tends to be/ Dec 18 00:54:25 Alsa does its job here Dec 18 00:54:50 oi Dec 18 00:54:51 and I usually switch between laptop speakers and Logitech USB headset (which is another sound card internally) Dec 18 00:54:51 Zharf: yeah, my #1 solution for audio issues is "killall -9 pulseaudio" Dec 18 00:54:57 and alsa does just fine Dec 18 00:54:57 belgianguy, if you ever have to write any alsa related code... Dec 18 00:55:25 p_l, mine actually is blacklisting pulseaudio Dec 18 00:55:43 but then I end up compiling most of the stuff that uses audio myself Dec 18 00:56:13 I think if Linux ever wants to get a small part of the user market, those things better "just work" Dec 18 00:56:24 self compiling is a no-no for joe citizen Dec 18 00:56:43 sure, but they seem to "just work" for the common folk Dec 18 00:56:50 because the common folk doens't know the difference Dec 18 00:57:05 the secret of ubuntu's success Dec 18 00:57:41 I think the secret of Ubuntu's success is that it doesn't mean every guy and his dog have a different distro Dec 18 00:58:11 but some general idea of what is available, on which others can build Dec 18 00:58:43 (from a non-techie, consumer POV) Dec 18 00:59:39 the proof that there is a big problem with Linux on the desktop is the fact that many Linux "experts" have attained this rank by being able to get out of as much shit as they can while using Linux Dec 18 01:00:00 he who can avoid the most clusterfucks is the most learned Linux user Dec 18 01:00:16 but as for real actual benefit from this platform? how often do you see that? Dec 18 01:00:26 Desktop-ly speaking Dec 18 01:00:44 benefit? as in? Dec 18 01:00:51 getting work done? Dec 18 01:01:22 meaning "now that we've got everything set up for work...what do we do? and how do we do it in a better way than if it were to be done on X-platform?" Dec 18 01:01:37 I don't use the traditional desktop software, my work routine on linux is highly efficient Dec 18 01:01:38 Sicp: tbh I like Unity, but hate Metro Dec 18 01:01:42 I know a lot of WIndows users that can urinate on me with their knowledge in programming <-- Dec 18 01:01:43 but it's most certainly not for everyone Dec 18 01:02:03 they have grown out of the platform evangelism phase and went for the real fruit/purpose of all of this Dec 18 01:02:12 to create intelligent things Dec 18 01:02:29 I grew into the all platforms are equally shitty and I don't see a way out Dec 18 01:02:30 ;) Dec 18 01:02:54 a true warrior does not favorite one sword over the other Dec 18 01:02:55 yeah, I'm still a bit unsure about how close Android and Ubuntu will ever get Dec 18 01:02:58 it's like with programming... once you have enough experience you realise that the job is just to pick the least shitty tool out of the shitpool of tools Dec 18 01:02:58 something to that effect Dec 18 01:02:59 <_3ntr0py> helllo all Dec 18 01:03:29 the kernels seem to come closer and closer, but Shuttleworth (iirc) did say he didn't foresee Android apps running on Ubuntu Dec 18 01:03:45 <_3ntr0py> I am having an issue with Edittext. I am trying to convert the user input from edit text to Int(float) but emulator is crashing Dec 18 01:03:45 (natively) Dec 18 01:04:08 Int(float) Dec 18 01:04:11 nice Dec 18 01:04:16 <_3ntr0py> any suggestions ? float int_num2 = Float.valueOf(userInput1.getText().toString()); Dec 18 01:04:17 Sicp: that asside.. Dec 18 01:04:28 _3ntr0py: whats the exception? Dec 18 01:04:52 oh wait.. ? Is that right? wouldnt it be Float.toFloat? Dec 18 01:04:55 <_3ntr0py> it crashed. short message, it stopped working Dec 18 01:05:05 _3ntr0py: sounds like you dont know how to use ddms and logcat Dec 18 01:05:23 <_3ntr0py> let me show you another method I did use Dec 18 01:05:34 <_3ntr0py> int_num1 = Integer.parseInt(userInput1.getText().toString()); Dec 18 01:05:46 <_3ntr0py> I am sorry I kind of new around Dec 18 01:05:55 _3ntr0py: go into DDMS and get the stack trace from there Dec 18 01:06:12 <_3ntr0py> OK Dec 18 01:06:27 _3ntr0py: did you find userInput1? Dec 18 01:06:51 <_3ntr0py> yes, userInput1 = (EditText) findViewById(R.id.userInput1); Dec 18 01:06:51 because if you didn't, that's probably null, and calling methods on null, usually breaks things Dec 18 01:07:18 belgianguy: haha.. "usually" I like that Dec 18 01:07:34 SO says his conversion method is okay Dec 18 01:07:52 although I wouldn't call a float "int_num2" Dec 18 01:08:12 belgianguy: yeah.. but at this point its not a *big* deal ^^ Dec 18 01:08:27 dragorn: true, true Dec 18 01:08:52 drpenguin: * Dec 18 01:09:23 <_3ntr0py> OK Dec 18 01:10:32 <_3ntr0py> I have just checked ddms, and it gives following message: excessive delay setting brightness: 118ms, mask=2 Dec 18 01:10:46 that's usually random chatter Dec 18 01:10:56 _3ntr0py: Repeat the crash, you should see a stack trace. Put that on pastebin once you get it Dec 18 01:11:04 <_3ntr0py> OK Dec 18 01:11:09 or put a breakpoint at the line you suspect Dec 18 01:11:17 and then step over it when it hits Dec 18 01:11:45 (and look if everything has the expected values etc) Dec 18 01:12:55 I'd say logcat is probably more informative here, ddms I usually use if something really messed up is happening Dec 18 01:13:05 like leaks Dec 18 01:14:41 <_3ntr0py> OK, I trying to do that. I will pastebin it asap Dec 18 01:16:21 HI, what is the best way to store and track http session with cookies inside android application Dec 18 01:16:37 I heard that global variables are not good for this Dec 18 01:20:08 <_3ntr0py> sorry, I got disconnected Dec 18 01:20:18 <_3ntr0py> my pc is going nuts Dec 18 01:20:20 <_3ntr0py> http://pastebin.com/Ha0813eF Dec 18 01:20:42 <_3ntr0py> that is the pastebin for the error, I hope that is what u asked Dec 18 01:21:22 uhhh... no Dec 18 01:21:44 <_3ntr0py> sorry dude Dec 18 01:22:13 <_3ntr0py> how would one get the stack trace you were asking for ? Dec 18 01:22:34 do i put action listenenres in onresume? Dec 18 01:22:38 or onStart Dec 18 01:26:01 <_3ntr0py> OK, I will come back when I manage to get the correct debug output Dec 18 01:26:07 <_3ntr0py> thanks and catch you all later Dec 18 01:53:12 what's a good mac programming font Dec 18 01:53:20 inconsolata and deja vu sans mono both look like shit on mac :-/ Dec 18 01:53:22 hey guys, in this picture: http://goo.gl/u4lVQ, where is the device's screen pointing to? Dec 18 01:55:12 Guys? Dec 18 01:56:45 pfn: you could try Source Code Pro Dec 18 01:57:04 looks nice! Dec 18 01:57:44 http://blogs.adobe.com/typblography/2012/09/source-code-pro.html Dec 18 01:57:54 hey g00s Dec 18 01:58:01 hello Dec 18 01:58:05 do you know where the device's screen is pointing to in this picture? previous Dec 18 01:58:10 http://goo.gl/u4lVQ Dec 18 01:58:40 no; i haven't used these api :( Dec 18 01:58:56 can you make a guess? :P Dec 18 01:59:13 g00s, thanks Dec 18 01:59:22 let me try that one out Dec 18 01:59:27 all of my go-to fonts look like shit on mac Dec 18 02:00:38 yeah, i dont like mac font rendering much. i had to adjust the antialiasing to 'light' level 1 i think Dec 18 02:00:55 where's that setting? Dec 18 02:01:01 I can only find the one under general Dec 18 02:01:09 to "enable lcd anti-aliasing where available" Dec 18 02:01:35 man, I don't see how mac addicts can say mac font rendering is awesome Dec 18 02:01:37 it looks so terrible Dec 18 02:01:47 yeah, in the old days, there were 4 levels like gnome Dec 18 02:01:47 at least in macvim Dec 18 02:01:59 you can still get to it, from the command line … lemme see Dec 18 02:02:43 you may have to google more http://hints.macworld.com/article.php?story=20090828224632809 Dec 18 02:02:59 i think i use 1 Dec 18 02:03:05 goodnight Dec 18 02:03:18 you may have to reboot to see changes. lamesauce Dec 18 02:03:31 yuck Dec 18 02:03:32 thanks Dec 18 02:03:35 I'll check it out tomorrow Dec 18 02:03:35 np Dec 18 02:03:36 * pfn go home & Dec 18 02:06:43 * wabz invoices samsung Dec 18 02:10:01 wabz: fix their huge fucking security hole :) Dec 18 02:14:27 haha Dec 18 02:14:33 yeah that's kinda amusing Dec 18 02:14:39 this is bizarre Dec 18 02:14:52 I won some $$ prize for their global app competition Dec 18 02:15:01 and they're like "ok send us an invoice" Dec 18 02:15:09 lol Dec 18 02:15:15 that sounds so shady. Dec 18 02:15:15 wabz: congrats :/ Dec 18 02:15:41 it's weird because they already have bank details etc as part of registering to be a seller Dec 18 02:15:45 oh well Dec 18 02:16:53 chrome has been so buggy for me lately. "Update failed (error: 10)" Dec 18 02:17:06 yeah it seems to be getting worse eh Dec 18 02:17:14 more and more memory Dec 18 02:17:49 i have switched mostly to FF, but i have that thing so locked down with noscript and shit, i have to use chrome for a few ecommerce sites Dec 18 02:22:29 hey guys, in this picture: http://goo.gl/u4lVQ, where is the device's screen pointing to? Dec 18 02:34:43 is there a way to prevent glsurfaceview from destroying the gl context for the onpause event ? **** ENDING LOGGING AT Tue Dec 18 02:59:58 2012