**** BEGIN LOGGING AT Sat Jul 20 02:59:58 2013 Jul 20 03:06:12 Koush's Ion library with a custom cookie store or shared prefs, anyone? Jul 20 03:14:29 Afzal: is that even a question ? maybe it is, i dont know, no idea what the 1st two words are :) Jul 20 03:14:58 Koushik Dutta's Ion networking library, based on the nio java package Jul 20 03:15:33 even then, are you offering it to people ? like … cheese cake .. anyone? Jul 20 03:15:35 :) Jul 20 03:15:39 no lol Jul 20 03:15:54 I want to have the cookies stored in shared prefs Jul 20 03:16:20 i know one way is to just put/store cookies at every request but I'm hoping for a more built-in solution Jul 20 03:17:02 I almost finished implementing volley and then I noticed that it has a tiny bug where it doesn't get/use the whole "set-cookie" value and hence can't use it. Maybe I should try and fix that bug :p Jul 20 03:18:24 I think your talking sense into yourself Jul 20 03:18:26 :) Jul 20 03:18:31 fun to watch too :) Jul 20 03:18:41 that's a good thing, right? Jul 20 03:18:56 little of A, little of B :) Jul 20 03:19:37 mix them in a pot and end up with a fusion... Jul 20 03:19:41 no, Jul 20 03:37:18 hm, mapdb seems to be getting better and better. Jul 20 04:21:37 Hey guys Jul 20 04:24:12 I have just downloaded the aLogcat app in hopes of tracking the logs of my app I'm developing but I but it's not showing the logs for it Jul 20 04:24:21 Any ideas on why it's going wrong? Jul 20 04:24:57 on newer OS versions - possibly 4.2+, possibly 4.1, I can't remember - apps can only see their own logs Jul 20 04:25:06 enwary: adb conneted and running? Jul 20 04:28:03 Is there any way around that? Jul 20 04:28:06 My phone is rooted Jul 20 04:28:43 you can't use a PC to debug? Jul 20 04:29:09 I can but at times i want to test it without being connected to it Jul 20 04:29:30 Especially when I'm doing user testing i can't tll all the users to stay next to a computer Jul 20 04:29:39 enwary: adbwireless? Jul 20 04:30:50 @Bleeptech oh nice I'll look into that thanks Jul 20 04:31:28 enwary: It's on the play store. Jul 20 04:39:04 Anbody awake with JSON experience? Jul 20 04:39:06 Yep I downloaded it the instructions are: Go to the tools folder in the android sdk, run the command shown on home screen Jul 20 04:39:19 I've got a decent amount Bleeptech Jul 20 04:39:23 What's up? Jul 20 04:39:55 The ever popular 'org.json.JSONException: No value for success' Jul 20 04:40:30 Btw I feel like they missed an instruction in the adb wireless thing Jul 20 04:40:34 how do i run a command? Jul 20 04:40:48 * Bleeptech is dyslexic and probably missing something obvious... Jul 20 04:40:59 enwary: What OS? Jul 20 04:41:25 With the json file what are you tryin to do exactly? Jul 20 04:42:04 4.2 Jul 20 04:42:22 I've got the standard JSON register/login thing and was perverting Er converting it for AsyncTask.. Jul 20 04:42:32 Bleeptech: can you pastebin your json? Jul 20 04:42:42 and the code which fails - should just need a snippet Jul 20 04:43:34 http://pastebin.com/kNurVPY4 Jul 20 04:43:48 There's the JSON parser. Jul 20 04:45:09 enwary: You need to run the 'adb connect xxx.xxx.xxx.xxx' on a pc.. Jul 20 04:45:35 It lets you use logcat from anywhere on your network. Jul 20 04:46:01 I know that but they tell me to go to the tools folder Jul 20 04:46:04 and then to run the command Jul 20 04:46:11 Pretty sure there missing an instruction Jul 20 04:46:13 Actually it lets you do anything from your network. :) Jul 20 04:46:29 Where do i run this command? Jul 20 04:46:56 enwary: ?? I just clicked the icon.. Jul 20 04:47:18 Bleeptech: a) that's not the json b) that's not the code that fails Jul 20 04:47:26 The icon for what though lol Jul 20 04:48:04 enwary: adb can connect over USB or network - presumably that adbwireless is just enabling the network mode Jul 20 04:48:20 Leeds: Yes! Jul 20 04:48:26 i understnd that but they are asking me to run the 'adb connect command' but where do i run the command Jul 20 04:48:34 once it's enabled, you need to tell adb on your PC to connect over the network, and then it works just the same as it does regularly, but without a wire Jul 20 04:48:43 um... in your shell Jul 20 04:48:50 or 'DOS box' if you're not running a real OS Jul 20 04:48:51 enwary: From the command line on a PC.. What OS is your PC? Jul 20 04:48:59 windows Jul 20 04:49:17 enwary: 'START>RUN>CMD' Jul 20 04:49:46 enwary: That'll give you a dos window. Jul 20 04:50:01 yep but that isn't a shell Jul 20 04:50:31 enwary: Close enough.. LOL Jul 20 04:51:15 enwary: Then CD to where you installed adb and then run the 'adb connect' Jul 20 04:52:58 i just did that Jul 20 04:53:29 hold on trying somethin dif Jul 20 04:53:58 enwary: Now try 'adb shell' from teh same window. Jul 20 04:54:15 Bleeptech: in the meantime... your code and json? Jul 20 04:54:48 Leeds: I'm still trying to find the JSON.. Jul 20 04:56:13 Leeds: Here's the code for the activity. Jul 20 04:56:17 pastebin.com/ASuGK55a Jul 20 04:57:35 Leeds: WTH do I find the JSON? Jul 20 04:58:00 um... wherever you're getting it from? Jul 20 04:58:25 you have to be able to look at the data in order to tell if you're processing it correctly, surely? Jul 20 04:59:31 Actually I'm updating this from where it was working on 2.x.. Jul 20 04:59:59 Correction.. Trying to update this.. LOL Jul 20 05:02:08 Leeds: Actually I'm never seeing it hit the server in the httpd access_log Jul 20 05:02:22 I'd call that a bad sign - wouldn't you? Jul 20 05:03:11 Either that or I'm looking in the wrong logfile.. :D Jul 20 05:04:33 Thanks guys I got it working Jul 20 05:18:30 Leeds: Aha! Dumping my JSON with json.toString returns'{}' Jul 20 05:20:45 I'd call that a really bad sign :) Jul 20 05:21:08 part of the point, of course, is breaking down the problem... Jul 20 05:23:24 I'm working on that now that I figured out how to dump the json. :) Jul 20 05:24:23 Damn the emulator is slow on this machine.. I guess 8 cores and 16gig of RAM just doesn't cut it anymore.. Jul 20 05:24:49 it should be fine as long as you're using the Intel image Jul 20 05:27:03 unless his cpu or drivers aren't Jul 20 05:27:39 intel image isn't much faster unless you actually have haxm working Jul 20 05:28:23 pragma-: Ding! Amd/ATI mobo with an nVidia card slotted in.. It's a right botch.. :D Jul 20 05:42:50 So, I'm being recommended to set my targetSdkVersion to 17, despite that I target API 7. I'm being recommended this for two reasons. 1) Because the Greystripe Ad-SDK refers to classes that was introduced in API 17, and 2) Because of some menu-button-issue one will see in e.g. HTC One X. Jul 20 05:42:56 But then I read here: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Jul 20 05:43:02 It says: "When you are developing your application, you will need to choose the platform version against which you will compile the application. In general, you should compile your application against the lowest possible version of the platform that your application can support." Jul 20 05:43:33 So.... outdated page? New policies? Or what's up? Jul 20 05:51:20 THE FINAL COUNT DOWWWWN Jul 20 05:54:22 mr_lou: You need to decide the oldest version of android you want the app to run on.. Then set your MinSdkVersion to that. Jul 20 05:55:37 Bleeptech, So in other words, the page at developer.android.com is wrong. Jul 20 05:56:40 We should not "compile our applications against the lowest possible version of the platform that our application can support", as it states. We should infact compile it against a higher API level, and instead put the lowest possible version of the platform that our application can support, into the MinSdkVersion parameter. Jul 20 05:57:01 how are your views on developing android on phonegap ?? Jul 20 06:00:47 android on phonegap : is waste i have spend hours wasting on it. Jul 20 06:01:25 i think i am talking to myself Jul 20 06:02:47 ace_striker: Dunno.. WTH is phonegap? Jul 20 06:07:57 Your build target doesn't really matter, as long as the APIs you need are available Jul 20 06:11:19 build target sets flags on device for certain behaviors Jul 20 06:11:36 No, that's target sdk Jul 20 06:11:53 Build target doesn't matter at all at runtime Jul 20 06:11:57 setting it the same as min version makes it easy to detect missing apis Jul 20 06:12:28 for all intents and purposes, build target is the same as sdk target Jul 20 06:14:07 SimonVT, That's what I thought too. But now I'm being told (by the author of Proguard actually) that I should infact also set targetSdkVersion to the API level that contains the classes (dynamically) referred to by my app. I am currently using a library from Greystripe that fetches a fullscreen ad and displays it. This library apparently checks for android.webkit.JavascriptInterface - which wasn't introduced before API 17 - but Greystr Jul 20 06:14:07 ipe states that it should run on API 7. Therefore, the typical approach is to just add -dontwarn com.greystripe.** in the proguard config. I couldn't get that working at first though, but finally did manage to get it working. Runtime log still shows a warning though, but the app is running. Jul 20 06:14:46 Yeah, but not really. It's important to know the difference between build target and target sdk Jul 20 06:14:59 Oh Jul 20 06:15:08 Yea, I kinda thought they were the same. Jul 20 06:15:45 Target sdk is just an int in your manifest that tells android which compatibility behavior to apply, if any Jul 20 06:16:07 Set that to the highest api level you tested on Jul 20 06:16:20 Build target tells your compiler which APIs are available at compile time Jul 20 06:16:21 Hm, I was sure that if I changed build-target in my IDE, then it would set targetSdkVersion to the same for me. Jul 20 06:16:28 I'd imagine that's what he's talking about Jul 20 06:16:45 targetSdkVersion defaults to minSdkVersion if it's not set Jul 20 06:16:56 Yes I know. Jul 20 06:17:25 I can see that he's really been talking about build target version then. Jul 20 06:17:33 At least I'm not the only one mixing them up. Jul 20 06:18:26 I wrote about it once: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Jul 20 06:19:01 yeah, it's very confusing when it comes to the build systen Jul 20 06:19:35 easiest to set the compile target to the lowest value and manifest target to the highest Jul 20 06:19:54 but, the type Jul 20 06:20:13 typical android setup doesn't make it easy Jul 20 06:20:58 ie eclipse and adt Jul 20 06:22:07 That's the easy way (since there's no chance of accidentally using new APIs).. I usually just set it to the highest I can test on as well Jul 20 06:22:11 So the way I understand it (now) then, is: I should compile against API 17 (because the greystripe lib jar refers to classes in that API), but still put targetSdkVersion=7 in the Android Manifest. I will try that. Jul 20 06:22:43 Your targetSdkVersion should always be >= 14 at this point Jul 20 06:23:21 Aha! Anybody got a clue how I force an activity to wait for a doInBacground to finish? Jul 20 06:23:33 You don't Jul 20 06:23:34 SimonVT, How come? Jul 20 06:23:46 mr_lou, because of compatibility behavior Jul 20 06:23:52 Like menu button on phones Jul 20 06:25:25 Set it to the highest API level you test on, but never lower than 14 Jul 20 06:25:37 mkay Jul 20 06:26:04 That'll be API 15 then. I will have to see that menu-button issue for myself some day. Jul 20 06:29:29 This menu button issue... will I be able to see that if I run my API 7 app on an API 17 emulator? Jul 20 06:30:59 Sure, as long as you enable soft keys Jul 20 06:31:13 Phone emulators have hardware keys by default Jul 20 06:31:16 iirc Jul 20 06:35:11 SimonVT, And it doesn't matter that I only use strictly Canvas and is catching all key inputs myself? (Meaning the only reason the user can exit the app, is because I've coded the back button myself to exit the app. Same goes for the menu button). The issue will still be there then? Jul 20 06:36:03 No, it doesn't matter Jul 20 06:36:31 If your target sdk is <14, there'll be a compatibility menu button on devices without a hardware menu button Jul 20 06:37:27 hey yall Jul 20 06:37:39 SimonVT, Ok. Thanks a lot. Jul 20 06:39:04 so, i'm trying to get the google play services library into my project, i've downloaded it, i'm trying to "import existing android code" into my workspace as directed, but clicking the finish button doesn't do anything... Jul 20 06:39:15 what am i doing wrong here, i feel retarded Jul 20 06:40:06 SimonVT, Um.... just to be sure I get it. Using a build target (in my IDE) of 7, will not matter, as long as I set targetSdkVersion to >14 ? Then the menu issue will also be gone? Jul 20 06:40:18 Yes Jul 20 06:40:31 Build target is just which APIs are available at compile time Jul 20 06:40:49 Tho you should set a higher build target and use some of the newer APIs when available Jul 20 06:40:51 Ah, so that's what it feels like when the pieces fall into place... Jul 20 06:40:59 Yes. Jul 20 06:42:04 If you want to know a bit more about the behavior changes, read Build.VERSION_CODES Jul 20 06:42:07 E.g. https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH Jul 20 06:47:49 Thanks SimonVT Jul 20 06:48:32 ffffff Jul 20 06:49:02 if i take screenshots can someone point out where im fucking this up? Jul 20 07:02:14 I'm back Jul 20 07:06:28 does anyone know if its possible to stream audio from PC to android phone over bluetooth and it will be heard from phone's speaker ? its like using phone as headset Jul 20 07:50:02 anyone know what cookie spec is widely used? Netscape or RFC 2965? Jul 20 08:13:58 ,k Jul 20 08:14:17 is it possible that i can send data to heroku and after processing there through node.js , i can get the result and view it ? Jul 20 08:20:00 kroot: morrildl romainguy is it possible that i can send data to heroku and after processing there through node.js , i can get the result. Jul 20 08:22:46 morning all Jul 20 08:24:06 if i call getSystemService(DOWNLOAD_SERVICE) on a device prior to api 9. does it return null or does something worse happens??? (DOWNLOAD_SERVICE is >api9) Jul 20 08:24:50 lint doen't complain which surprised me Jul 20 08:41:20 hey guys. I'm debugging and I'm looking at an ArrayList called data. In the debugger, this arraylist has 170 Objects, however data.size() returns 0. Am I missing something? Jul 20 08:43:27 code snippet here: http://pastebin.com/WvmzESA2 Jul 20 08:43:43 i'm having a problem because the size of the toArray() is also 0 Jul 20 08:44:10 even though the docs say that using .toArray(Type[0]) will simply resize Type[] to the appropriate size (170 in this case). It doesn't do that either. Jul 20 08:52:34 BluetoothService.DAQ_CHANNEL_COUNT is not 1 ? Jul 20 08:52:46 correct Jul 20 08:52:49 it's 5 Jul 20 08:52:57 i might have just discovered the problem Jul 20 08:53:03 i think it's a concurrency issue that i didn't think about before Jul 20 08:53:17 the update object is passed to the GUI by reference as a background thread empties it and fills it again Jul 20 08:53:32 that would explain the absolutely random size of the arraylist Jul 20 08:53:43 you can use a blocking array Jul 20 08:53:52 size was stored as 46 just now, but there are over 200 elements in the arraylist by the time it reaches two lines after Jul 20 08:53:57 hmm Jul 20 08:54:22 wouldn't that cause an ANR for the UI thread? Jul 20 08:54:38 cuz that'd effectively tie the background thread to the GUI execution right? Jul 20 08:54:56 tasty net splits tonight Jul 20 08:55:09 err i mean synchronize the reading of the array list so the background thread will wait to update while its being read Jul 20 08:55:24 lasserix, yeah i like the sound of that Jul 20 08:55:31 what type of data structure might you recommend? Jul 20 08:55:47 or should I just synchronize(this) a bunch of stuff Jul 20 08:56:36 that would probably work, depends on how often you are refreshing Jul 20 08:56:59 it's pretty fast, but it's not really important if i slow down the BG thread. the UI is the bottleneck here Jul 20 08:57:21 the idea is that the bg thread will wait if it can't obtain the lock Jul 20 08:57:29 and let the UI thread lock whenever its reading Jul 20 08:57:34 excellent Jul 20 08:59:42 lasserix, i'm gonna take a gaming break. Thanks for the advice Jul 20 09:08:12 any one know about appyet.com ? Jul 20 09:08:24 heh no problem, i guess i was assuming the ui would poll. because if it doesn't, you can just have a callback in the bg to the ui that tells the ui data is available, while the ui reads lock it, (so the bg will wait), and then notify when the update/read is done on the ui Jul 20 09:08:31 can app created here be published in google play ? Jul 20 09:09:14 t2mkn, seriously? the Engadget app was created with this?1 Jul 20 09:09:16 *?! Jul 20 09:09:43 ahh this is only for RSS Jul 20 09:11:03 narekb: i have no idea. Jul 20 12:59:29 I'm trying to find device background for app screenshots for promotion graphics such as this (https://lh5.googleusercontent.com/-CIvipQzln0s/UdcPe3wFK7I/AAAAAAAAC4A/P5G66QZG-6M/w1024-h500-no/banner-notelist-1024_500_limited_time_offer.png) Jul 20 12:59:37 Can anyone point me in the right direction? Jul 20 13:00:31 Amorgos: I dont understand what you're looking for? Jul 20 13:01:06 "device background" ? Jul 20 13:01:13 The images of the devices themselves so you can overlay screenshots on them. I have come across this type of thing in the past, but I can't recall where Jul 20 13:01:29 oh you just mean a phone temple Jul 20 13:01:49 google will have them on android.com I would think Jul 20 13:02:17 ok. I will have a good browse. must be under the design guidelines somewhere Jul 20 13:02:53 Amorgos: I would say more of a marketing thing Jul 20 13:02:59 like the sms application is showing amount of new messages in the icon, how would i do that on my own app? Jul 20 13:03:23 been googling for dynamic icons and such Jul 20 13:03:32 but not even sure if that's the way to go Jul 20 13:05:12 lime: not sure I understand what you mean Jul 20 13:05:28 Amorgos: Here http://developer.android.com/distribute/promote/device-art.html Jul 20 13:05:47 you know, when you recieve an sms, your application icon for text messages shows a little (1) in the icon Jul 20 13:05:52 kjeldahl: thats what i was trying to find. Thanks :) Jul 20 13:05:57 whatsapp does it too Jul 20 13:07:06 ah yeah Jul 20 13:07:08 Amorgos: I figured, recently used it myself on http://killermatch.com/ ;-) Jul 20 13:07:28 lime: well the messenging app is open source Jul 20 13:07:31 so have a look Jul 20 13:07:47 kjeldahl: Yeah. I came across it AGES ago. Fantasic for total photoshop amateurs like myself Jul 20 13:07:55 oh, how would i find the source? :o Jul 20 13:08:55 is that a serious question ? Jul 20 13:08:56 omapzoom.org hosts the Android source Jul 20 13:09:04 .. Now I just need to learn photoshop for the rest of the shit I have to do lol Jul 20 13:09:15 lol, yeah it was.. but i'll just google for it, nevermind Jul 20 13:09:16 lime it must be in platform/apps Jul 20 13:09:35 Amorgos. Not necessarily, there's Gimp, but you'll face similar challenges. :-) Jul 20 13:10:54 lime: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.2.2_r1/com/android/mms/MmsApp.java?av=f Jul 20 13:10:59 kjeldahl: I would rather stick to photoshop tbh as I know it a tiny bit. But I'm still looking at graphics and going "I wish I knew how to even begin to do that effect" Jul 20 13:11:08 click files on the left pannel Jul 20 13:11:12 thanks alot StingRay_ :) Jul 20 13:11:13 tis all there Jul 20 13:11:47 Amorgos: pick an effect and ask me Jul 20 13:11:49 :) Jul 20 13:12:05 * StingRay_ is a 17 year vet. GFX/VFX person Jul 20 13:12:59 lime: if/when you find out, tell me, cause I'm interested now :) Jul 20 13:13:10 haha, ok Jul 20 13:14:24 StingRay_ lol ok. Well give me a while and i'll send you a message :-D cheers Jul 20 13:29:54 Hello all /Czesc/ Jul 20 13:36:25 Google Play doesn't really make major use of the Promo graphics anymore :-/ Jul 20 13:36:58 seems it all about the icon now :) Jul 20 13:37:29 Yeah. Could you critique my icon for me Stingray? :-) Jul 20 13:37:36 any chance to get newbie help here? :) about android dev? :) i install eclipse / adt today... first time :) Jul 20 13:37:37 and in all honesty, maybe harder (from a designers POV) to get done right Jul 20 13:38:15 promo graphic for my app was going to be both easy and fun Jul 20 13:38:21 icon … less so :( Jul 20 13:38:23 :) Jul 20 13:38:34 Amorgos: sure Jul 20 13:56:22 Amorgos: Dare link to it and prepare for what's coming! Jul 20 13:56:48 kjeldahl: https://www.facebook.com/pages/Chesspresso/189974461047772 Jul 20 13:58:02 "Correspondence chess", it that like play-by-mail? Jul 20 13:58:07 yeah Jul 20 13:58:42 Well, 1. I'm no gfx specialist/expert. Jul 20 13:59:22 Current v1 is on play at https://play.google.com/store/apps/details?id=chesspresso.client.android.p but very dated atm Jul 20 14:00:46 looks very nice Amorgos Jul 20 14:00:58 The icon looks better in the small format than the big; the large one is a bit fuzzy (edges). I think it's possible to have shallow 3D, but still crisp edges. Also, maybe add something to make it more chess like, could be added element or possibly colors (for chess that probably means less colors.. ;-). Jul 20 14:02:02 i'm still pissed about the play redesign; when i look at that page - its no fault of your own - i see a number of problems with the grid Jul 20 14:02:16 things not lining up , sloppy Jul 20 14:02:25 google keeps screwing up Jul 20 14:03:36 Please take a look at this: http://pastebin.com/JajEZy0S . If the constructor is called twice (with isLocked=true the first time). Shouldn't the second call wait for unlock() to be called before running the rest of the code in the constructor? Jul 20 14:04:11 Yeah.. Bit pissed off actually that they got rid of the promo graphic. I liked that Jul 20 14:04:23 But it's a good icon; easily distinguishable and clean. I doubt you'll win any color matching contests (the "mathematics" of colors), but then again that makes you even more unique. Jul 20 14:05:58 Thanks. Yeah I'm kind of happy with it, I just need someone to take it and make it stand out and more modern. Jul 20 14:06:02 If you want to play up to the name a bit, maybe colors that are more coffeelike, but then you need something to stand out (there's a million coffee/brownish good looking icons). Jul 20 14:08:01 kjeldahl: If you look at https://play.google.com/store/search?q=Chess&c=apps it actually stands out IMO. But i want to make it stand out even more Jul 20 14:08:07 Ah, when I scroll down on the Facebook page I understand why the icon on the top is fuzzy; It's probably (naively) scaled down from a bigger version. Jul 20 14:08:36 oh don't look at that icon. Facebook upload has messed it up. Look at the one on google play Jul 20 14:08:43 Considering making sure you get it in vector format so scaling doesn't fuzzy it up as much. I've used inkscape with success... Jul 20 14:09:01 Ah, much better! Jul 20 14:09:45 :) Jul 20 14:09:51 And my comment about coffee colors was spot on as well (may similar, hard to stand out). Jul 20 14:10:50 "Chess presso Mult..." is the lowercase "presso" a mistake? But that's nitpicking! Jul 20 14:11:11 Or a space too many? Jul 20 14:11:39 The name is actually Chesspresso, but believe it or not it effects the search results quite a bit if i leave it like that Jul 20 14:12:49 (And on Nook marketplace it doesn't even show up if i dont have a space lol) Jul 20 14:14:01 Yeah, I've played similar games for my own app. Hell, I'll give it a try myself, maybe change "Killermatch.." to "Killer Match..", even if it feels a bit silly. Jul 20 14:15:21 If I search for "tennis match" now my app isn't even showing. I'll change it and check again in a new hours. Jul 20 14:15:25 kjeldahl: But your is slightly different, in the way that users probably won't be searching for "Killer" or "Match", unlike "Chess" Jul 20 14:15:45 I reckon you have to get the word tennis in there Jul 20 14:15:50 it will effect it a lot. Jul 20 14:18:05 Amorgos: I did have it there, but I've tried with others as well, so I may have left it in that state by mistake. My assumption is people will search for "tennis match tracker" and similar, or even lazy "tennis match". I score ok on tracker already, but I'll add tennis back for sure. Jul 20 14:20:07 But really though kjeldahl it's really a personal tennis diary wouldn't you say? Jul 20 14:20:50 Amorgos: Oh, is that the correct term for it. *blush* Jul 20 14:20:55 the word "tracker" is something I wouldn't personally associate with your apps capabilities... But Diary or Log would be Jul 20 14:21:51 Sorry to be critical ;-) Jul 20 14:22:00 but.. "Killer match" sounds like a game.. Better be honest and maybe call it "My Tennis Diary" Jul 20 14:22:23 (10% revenue please) Jul 20 14:23:16 Amorgos: No worries, appreciate all suggestions. I chose Killermatch because it is not associated to just one sport. Believe it or not it started as a personal poker league application... Jul 20 14:23:40 (and it still has code for it which I'm not currently using; would probably be a separate app anyway) Jul 20 14:24:25 kjeldahl: That's even better. But people look for specific apps for their goals. So why not create an app for each and every use: Tennis, Squash, Poker. etc? Jul 20 14:24:45 make it a framework and not an app that attempts to be a catch-all Jul 20 14:24:52 Ok, as an experiment, I'm going all SEO whoring. It is now called "Killer Match - My Tennis Diary", and I've added log+logger keywords in the description as well. Jul 20 14:24:57 If i was looking for squash app, i'd be searching for squash Jul 20 14:25:01 Amorgos: True, I'll consider it. Jul 20 14:25:36 Have you tried searching for squash diary? Lol. it's probably a very small market compare to tennis. Jul 20 14:26:22 Squash diary comes up with nothing relevant at all Jul 20 14:26:31 exactly Jul 20 14:26:42 yes.. exactly! :-D Jul 20 14:26:52 your Killermatch app should be there mate :-D Jul 20 14:28:26 Tennis diary doesn't have much related either. I'll remove diary and change it back to "KM - Tennis, squash" and see what happens. The keeper/tracker/logger terms are related to the running apps of course, which is why I'm using them. Jul 20 14:29:12 I used to appear on at least the first page for "tennis tracker", and always on the first page for single word squash, badminton etc. Jul 20 14:29:18 Remember it takes many hours for the name change to propogate around all the various localised versions of Play Jul 20 14:29:43 It could be my messing with the entries temporarily takes me out of the index or something. Yes, I'm aware of propagation time. Jul 20 14:30:50 Well I wouldn't mess with it too much. IMO if you change the same, it will take a few hours for it to propogate yes, but many many days or even weeks to prove that it's done a difference in the index Jul 20 14:30:58 same=name Jul 20 14:31:53 squash tracker or squash keeper give fairly good results though, even though the terms are more copycat names from popular apps. Jul 20 14:32:24 Right i'm going for a beer. I'm sick of android tonight :-) Jul 20 14:32:35 Amorgos: Have fun, thanks for helping out. Jul 20 14:32:40 u2 Jul 20 15:15:28 I notice PagerAdapter is in a ‘support’ package. What's the modern way to create a tabbed layout with the tabs containing Fragments? Jul 20 15:15:52 can someone help me out with this http://stackoverflow.com/q/17749798/1546713 please? I didn't get any answers thanks! Jul 20 15:23:43 using the PagerAdapter Jul 20 15:26:03 pfn: I don't even seem to have a package android.support.v13.app, which is what the Internet is telling me to use if I don't care about pre-v4 android Jul 20 15:27:55 Twey, support-v13 is only for some accessibility stuff Jul 20 15:27:58 Twey, you want the support-v4 lib Jul 20 15:28:08 Twey, and you use PagerAdapter regardless of version you're supporting Jul 20 15:29:25 pfn: If I use the support-v4, don't I also have to use the support-v4 Fragments instead of the native v4 Fragments, and FragmentActivity instead of Activity? Jul 20 15:30:00 Twey, no Jul 20 15:30:10 Twey, pageradapter and viewpager are agnostic to Fragment version Jul 20 15:30:21 just implement your own FragmentPagerAdapter if there isn't one available alreay Jul 20 15:30:24 Oh good Jul 20 15:30:37 (copy paste the existing and replace android.app for android.support.app) Jul 20 15:30:59 I seem to be lacking the whole package, though: ‘error: package android.support.v4.app does not exist’ Jul 20 15:31:10 Twey, you need the support lib Jul 20 15:31:21 Oh, it's separate? Jul 20 15:32:13 Got it, thanks! Jul 20 15:33:16 I'm surprised that something that's the modern way of doing it is in a package marked ‘support’, though Jul 20 15:33:27 Are they going to be doing that with all new features from now on? Jul 20 15:33:31 I'm integrating kindle inapp purchases, and I have a java.lang.NoClassDefFoundError problem. The class "Inapps" is in com.cubicfrog.edukitchen, sameplace as EduKitchen.java, my main activity. It seems there at compile, but at runtime I get that exception. I'm using eclipse. Jul 20 15:33:39 for all new features that are backward compatible, yes Jul 20 15:33:47 e.g. the nav drawer is also in the compatlib Jul 20 15:33:53 Aha Jul 20 15:34:20 I'm much better at c++ than this java stuff hehe, porting some stuff to kindle Jul 20 15:35:13 so, yay for NDK :) Jul 20 15:35:38 QcMat: You'd have to give more information than that. What are you doing that causes the NoClassDefFound? Are you sure you've specified the package name right in both packages? Jul 20 15:35:50 I'll go confirm that Jul 20 15:36:04 package com.cubicfrog.edukitchen; Jul 20 15:36:07 at the top of both files Jul 20 15:36:37 QcMat: But the fact that you've got a runtime NoClassDefFound error means you're trying to get the class at runtime somewhere; where's that happening? Jul 20 15:36:42 in java build path, in settings, the folder where this class is in, is there , linked source Jul 20 15:36:53 oh, it happens in onStart of my main activity Jul 20 15:36:57 pfn: How do I modify my project to see the support lib? Jul 20 15:37:18 by dropping the support-v4.jar in Jul 20 15:37:19 that way Twey : PurchasingManager.registerObserver(new Inapps()); Jul 20 15:37:27 and that compiles fine Jul 20 15:37:29 pfn: To libs? Jul 20 15:37:29 or if you're using gradle or sbt, importing com.android.support support-v4 13.0.0 Jul 20 15:37:54 and that's where I get the exception, on the class Inapps, saying it cant find the definition Jul 20 15:38:04 No, just the default ant project Jul 20 15:38:32 ill paste a pastie , one sec Jul 20 15:38:34 Works now, thanks Jul 20 15:39:41 Twey: on Eclipse you can right click the project, then go on Android Tools submenu, then "Add Support Library" Jul 20 15:40:04 main activity (EduKitchen.java) : http://pastie.org/8158845 Inapps.java : http://pastie.org/8158840 Jul 20 15:40:11 it will automatically download the latest version of the support lib (currently on version 13 of support-v4) Jul 20 15:40:17 rottz: I'm not using Eclipse, but thanks for the tip ☺ Jul 20 15:40:22 oh :) Jul 20 15:41:07 and both of those classes are in the same folder on the harddrive Jul 20 15:47:46 Twey, building from commandline? try out my sbt plugin, much better Jul 20 15:48:15 Twey, on a mac? or something deb-based? Jul 20 15:48:59 pfn: Nope, Gentoo Jul 20 15:49:26 hmm, dunno if they make sbt packages for gentoo Jul 20 15:50:27 void addPreferencesFromResource Jul 20 15:50:32 huh, what's the non-deprecated way to do that Jul 20 16:30:43 pfn: The support package has infected my code with tons of ‘android.support.v4.…’ ☹ Jul 20 16:31:10 you only need the viewpager and pageradapter imports... Jul 20 16:31:50 If I want to copy/paste a class Jul 20 16:32:04 I'm not decided on which is the greater evil :þ Jul 20 16:38:34 it seems like every three months or so eclipse breaks and i spend a day trying to sort out how to get it and all of its plugins for android dev working again. am i better off ditching eclipse or sorting it out routinely? Jul 20 16:43:01 My IDE is called noeclipse.sh and I'm perfectly happy with it. Jul 20 16:43:29 min_ch, and that launches vim or something? Jul 20 16:43:57 vim is in a secin tmux window Jul 20 16:44:07 second Jul 20 16:45:11 min_ch, well, that's more my normal speed. i tried using eclipse off and on for years. it wasn't until the android sdk plugins gave me enough reason to actually use it. now i'm just getting frustrated. the thing is, i haven't done any android development outside of eclipse. Jul 20 16:46:07 timemage: I dropped Eclipse after the last update broke it.. Switched to Android Studio.. Jul 20 16:46:30 Bleeptech, that's based on visual studio, yeah? Jul 20 16:47:08 timemage: IntelliJ Jul 20 16:47:24 Bleeptech, ah, ok. sounds like a good reason to change its name. Jul 20 16:48:29 min_ch, is the build process involved? what do you do with layout files, just manual editing or do you have a substitute visual editor? Jul 20 16:51:30 timemage: It compiles using ant. Layout XML files I'm doing manually, taking care to keep things simple. Which I think is a good thing anyway. Jul 20 16:52:05 Sometimes I miss what eclipse offers there. Jul 20 16:52:22 min_ch, i'd trade for stability. Jul 20 16:52:56 Yes I think the time I spent fighting eclipse was a waste. Jul 20 16:53:08 Is ActionBarSherlock and the ActionBar that comes builtin any different? Jul 20 16:53:56 min_ch, well, i guess i'll go looking for an example ant file. i've been put onto sbt for some other porjects so i might just try that assuming there isn't too much to converting. Jul 20 16:55:22 Which do most of you use? Jul 20 16:55:34 Bleeptech, at some point i'll look into android studio too. i'm just worried that in the end i'll end up in the same place. Jul 20 16:56:22 timemage: I haven't had any issues other than learning a new IDE.. Jul 20 16:56:42 Bleeptech, how long have you been using it? Jul 20 16:57:06 I haven't run into any problems with eclipse so far Jul 20 16:57:17 i hope it stays that way Jul 20 16:57:23 sulaiman, good luck with that. Jul 20 16:57:34 Couple of weeks.. Eclipse ate itself after an update here.. Jul 20 16:59:17 sulaiman: ABS works on 2.2 and up. Jul 20 17:01:08 timemage, I have an android sbt plug in that works awesome Jul 20 17:02:03 timemage, that plus sbt-idea is wonderful (and ideavim) Jul 20 17:03:41 pfn, ideavim is what, an eclim counterpart for intellij ? Jul 20 17:04:07 no, eclim is a pain Jul 20 17:04:19 ideavim is a key bindings plug in Jul 20 17:04:20 pfn, =), that's why i asked. Jul 20 17:04:26 pfn, ok. Jul 20 17:05:38 it works great Jul 20 17:06:10 needs some settings tweaking to work well, but yeah its very nice V's eclipse Jul 20 17:06:28 pfn, i'll keep it in mind, but will probably pass. if android sbt plugin is sbt support for android tasks, sort of like what they seem to have done in terms of ant tasks, i'll probably look into that first. Jul 20 17:06:52 pfn, otherwise it just seems like i'm building up a fragile dev. env. again. Jul 20 17:07:18 github.com/pfn/android-sdk-plugin Jul 20 17:07:41 and it's not fragile Jul 20 17:07:53 using AccountManager.newChooseAccountIntent, I wonder if I could pass the permissions I require from the account aswell Jul 20 17:08:20 it looks like addAccountRequiredFeatures would be it, but there's no documentation for the way it should be used Jul 20 17:21:18 Has anyone here successfully added BaseGameUtils and Play Services to an Android Studio project? Jul 20 17:30:02 pfn, "fragile" was referring the other layers. intellij and ideavim and all that. i'll look into your sbt plugin. Jul 20 17:52:32 Is it possible for the user to forge GPS coordinates Jul 20 17:52:34 ? Jul 20 17:53:57 I suppose they can using DDMS? Jul 20 17:56:35 on any of the apps that do it Jul 20 17:56:41 easy to do really Jul 20 17:56:45 deadmund: The user controls the device; they can forge anything they like. Jul 20 17:57:33 Unless you're planning to do an Apple and only hand out locked-down devices Jul 20 17:58:03 Maybe put some mustard gas in the case, just to be safe :þ Jul 20 17:58:25 Twey: StingRay_ I mean, modifying the firmware on the GPS module would probably be quite difficult, perhaps there is some way to identify if the GPS coordinates from LocationManager came from the GPS module or? Jul 20 17:59:49 basic programming question here, why would converting a Long toString give something like "1.374342E12" that cant really be parsed back to a long Jul 20 18:00:07 or just tell me the search terms I should use, cause I have little to no idea Jul 20 18:00:15 deadmund: If they have root, they can hook your app's syscalls and do whatever they like Jul 20 18:00:26 StingRay_: Why would toString() want to return something that can be parsed back in? Jul 20 18:00:47 That's not part of its expected behaviour. It's supposed to be human-readable (insofar as possible). Jul 20 18:01:04 If you want to read it back in later, use Serializable. Jul 20 18:01:04 i mean, how does Long.toString(someTimeInMillis) produce that ? Jul 20 18:01:17 as a valid long number Jul 20 18:01:49 StingRay_: Er, it just formats it in scientific notation and returns the resulting string Jul 20 18:01:56 Twey: StingRay_: To these fake location apps require root? Jul 20 18:02:08 deadmund: to be undetectable yes Jul 20 18:02:10 StingRay_: 1.37... * 10 ^ 12 is a long number in scientific notation Jul 20 18:02:14 StingRay_: thanks Jul 20 18:02:57 deadmund: http://dandoonan.blogspot.co.uk/2013/03/mock-locations.html Jul 20 18:02:59 so how the hell did I get that number from System.currentTimeMillis() Jul 20 18:03:35 StingRay_: It's a whole number, equal to 1374342000000 Jul 20 18:03:41 Twey: thanks Jul 20 18:04:06 StingRay_: That's a valid number of milliseconds in my book Jul 20 18:04:11 StingRay_: currentTimeMillis() is the number of milliseconds passed since Jan 1. 1970 or something like that. It's a big number. What are you trying to do? Jul 20 18:04:22 Twey: so how would I convert back to a long ? Jul 20 18:04:37 I jsut want to store the current system time to compare Jul 20 18:04:59 StingRay_: Then store it as a long, don't convert it to string first Jul 20 18:05:23 StingRay_: yeah, long var = System.currentTimeMillis(); (duh) Jul 20 18:05:44 it goes and comes from a string log Jul 20 18:05:47 StingRay_: then later: long timePassed = System.currentTimeMillis() - var; Jul 20 18:06:43 StingRay_: You can use Double.valueOf(s).longValue() to parse it if you must Jul 20 18:06:46 heh, d.apple.com is back up. wonder if anyone is getting fired Jul 20 18:07:35 g00s: What is d.apple.com? Jul 20 18:07:35 Is there a way that I could clear app permissions to my accounts? Jul 20 18:07:39 so that they ask for authorization again Jul 20 18:07:58 Twey the apple developer poral Jul 20 18:08:01 *portal Jul 20 18:08:03 Aha Jul 20 18:08:06 Still down for me Jul 20 18:08:19 haha, i saw this and thought "project butter" http://i.imgur.com/VpHytZS.gif Jul 20 18:08:51 Haha. Jul 20 18:34:49 hesperaux so, how did rrdtool in android work out ? Jul 20 18:49:47 https://github.com/gdoteof/androidcam i am trying to (at this point) add a rectangle "on top" of a surfaceview that has a camera being previewed in it. i created a basic extenstion of the View class and *tried* to add it to the activity's XML, but it is 'failing to expand' Jul 20 18:50:16 i am sure i didn't do it right, it's not clear to me how to add views to a layout or stack things on the Z axis Jul 20 18:51:20 what is the right mechanism to notify the SimpleCursorAdaptor after inserting an entry into the contentprovider? Jul 20 18:51:33 gdoteof: Welcome to tha amusing and confusing world of Android development ?? Jul 20 18:52:15 Bleeptech: thanks? there are just so many moving parts, and i haven't written any java in like 9 years Jul 20 18:55:09 gdoteof: Yeah, I told a friend of mine that learning android was like learning a foreign language.. And that I had progressed from asking 'Where is the bathroom?' to telling dirty jokes.. Jul 20 19:22:51 What do I need to do, to display my apps icon in the Settings -> Apps overview? I've included 4 sizes for app icon, and the icon displays fine in launcher menu, but why not in the Settings -> Apps list? Jul 20 19:23:28 <_deXter_> Woah, just felt an earthquake! O_O Jul 20 19:23:32 <_deXter_> Damn the tremors are still going on Jul 20 19:23:46 mr_lou: make sure you have the android:icon in your manifest for your kevinb, Aah... Jul 20 19:23:58 Thanks Jul 20 19:24:05 the launcher will use the activity's icon, but Settings > Apps will use your Applications. (If you activity doesn't have an icon then it will use the applications) Jul 20 19:24:42 is it fine to run 2 simultaneous AsyncTasks in android app? Jul 20 19:25:02 kevinb, Well that's it then. But will it work the same way? Will it pick the right icon from the 4 sizes I've supplied? Jul 20 19:25:11 yes Jul 20 19:25:29 Groovy. Jul 20 19:25:34 Will try that right away. Thanks kevinb Jul 20 19:29:11 why can't I start 2 asynctasks simultaneously in android? Jul 20 19:29:38 i tried to add a view to my xml to draw a rectangle and am getting this error: http://pastie.org/8159268 code for the whole project is here: https://github.com/gdoteof/androidcam Jul 20 19:30:48 kevinb, Yup, that did the trick. Thanks again. :-) Jul 20 19:30:58 no problem Jul 20 19:31:06 Very similar to JavaME there. Jul 20 19:31:26 JavaME also has an icon for the MIDlet Suite + icons for each MIDlet in the suite. Jul 20 19:36:09 ttom you should be able to. just need to set up the executor correctly Jul 20 19:36:50 g00s: thanks ... i just found that out ... so counter intuitive Jul 20 19:37:34 i think I will fall back to using the regular java threads ... don't see any point in asynctask Jul 20 19:38:54 generally: how do i add a view called RectangleView to an activity's XML ? Jul 20 19:42:33 gdoteof: you just want to draw a rectangle? Jul 20 19:43:12 ttom: baby steps, i guess. i want to be able to place a rectangle of arbitrary size in an arbitrary place Jul 20 19:43:20 but for now, just drawing a rectangle will help me understand what is going on Jul 20 19:43:44 that is, i want to draw a rectangle *on top* of a surface view which contains a camera preview Jul 20 19:44:09 i already have the surfaceview with preview working, but my attempts to do the drawing are giving me runtime exceptions that crash the app Jul 20 19:45:05 can I call java functions from c++ Jul 20 19:45:50 michaelmath, that question would be better asked in a channel for c++ Jul 20 19:45:57 i know java has a natives interface thing Jul 20 19:46:20 ttom asyntask is just a quickie for returning the result back to the main thread Jul 20 19:46:20 yea I can call my c++ code from java with the ndk Jul 20 19:46:29 ndk is an integral part of android devving Jul 20 19:46:34 yes you can call java code from c++ Jul 20 19:46:37 gdoteof: can't you just use the frame layout, and hide your surfaceview by another object? Jul 20 19:46:44 provding said library is loaded by java through jni Jul 20 19:47:35 ttom: i have no idea. like i said i am just trying to figure out what is going on and am piecing together different tutorials Jul 20 19:47:39 this is my attempt: https://github.com/gdoteof/androidcam/blob/master/res/layout/activity_display_camera.xml Jul 20 19:48:11 where RectangleView is defined here: https://github.com/gdoteof/androidcam/blob/master/src/com/vmx/vmxapp/RectangleView.java Jul 20 19:48:55 michaelmath http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/implementing/method.html just one example Jul 20 19:49:36 michaelmath, well all i know is how to go from java to c++, not c++ to java Jul 20 19:49:45 gdoteof: if you want to learn about layouts I would advice you to look at the book called "Android UI Fundamentals". It is just that you are a long way to go, really. Jul 20 19:50:06 gdoteof: you might look also at the following project, on how they do it: http://code.google.com/p/spydroid-ipcamera/ Jul 20 19:50:33 ttom: a long way to go just to write a rectangle on top of a video you mean? Jul 20 19:51:04 gdoteof: are you trying to hide the whole video surface? Jul 20 19:51:08 ttom: thanks. i will take a look at the book. i am hesitant to delve to deep because my needs are actually quite basic i think Jul 20 19:51:33 ttom: no, just put something on top of it.. unless 'hide' means something specific in android then the answer i think is no Jul 20 19:51:35 gdoteof: if you do, it would probably not work, cause the surface's onDraw will never get called Jul 20 19:51:45 and i just want to draw directly onto video Jul 20 19:52:01 or, as ai understand it.. have a transparent widget on top of the surfaceview that i can draw to Jul 20 19:52:01 gdoteof: are you using eclipse? Jul 20 19:52:05 ttom: yeah Jul 20 19:53:10 ttom: the whole thing is basically this: display camera preview. periodically send frames of video stream to external server which replies with metadata, use that metadata to draw rectangle(s) Jul 20 19:53:36 gdoteof: wait a sec please ... Jul 20 19:57:16 hi, could someone help me understand why OAuth2ResponseHandler doesn't get called for the second time (after acquiring user authorization) ? Here is my code http://pastebin.com/0KtmfiTd Jul 20 19:57:49 it starts with chooseAccount() Jul 20 19:58:08 sorry, the procedure starts with authenticate() Jul 20 20:05:03 Hey guys - Can I upload a new version of my app and make it only available to a certain android version and above? Jul 20 20:07:35 tjbiddle: yes, change the android:minSdkVersion value in your AndroidManifest and re-package an apk then change the android app publishing console into advanced mode and upload the new apk Jul 20 20:08:36 good morning Napalm Jul 20 20:08:42 evening Jul 20 20:08:43 :) Jul 20 20:08:47 :D Jul 20 20:09:18 Napalm: Awesome. So people who are on gingerbread for example, if I release for 3.0+ that already have the app installed will still be able to download the old version? Or will it just disappear for them? (Regardless I'm assuming an update won't show up for those who already have it installed) Jul 20 20:09:39 they will still have it Jul 20 20:09:47 and still be able to use the old version Jul 20 20:10:12 Kick ass. Thanks :) Jul 20 20:17:33 it looks like most of this API was written by C++ programmers rather than Java programmers Jul 20 20:17:51 lol Jul 20 20:18:41 nb-ben which api? Jul 20 21:08:36 Hello! Quick noob-ish dev question, I'm just starting out. I followed the instructions here: http://developer.android.com/training/in-app-billing/preparing-iab-app.html and the pasted the aidl into my src folder. But I get an error when I try to build. Jul 20 21:08:38 Thanks eclipse, I didn't want you to work anyways. Jul 20 21:09:02 Error: Description Resource Path Location Type Jul 20 21:09:02 interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl. IInAppBillingService.aidl /LifeBoat/src line 45 Android AIDL Problem Jul 20 21:09:52 What am I doing wrong? Jul 20 21:09:57 I followed the instructions. Jul 20 21:12:17 I used the right-click and import function. Jul 20 21:16:47 Any reason why the whitelist popup to enable usb debugging wouldn't show when connecting to a computer? "adb version" shows version 1.0.31 Jul 20 21:28:07 How can I make it so that my app requests authorization again for an account after I have already authorized it? (I want to clear the authorizations I allowed my app) Jul 20 21:41:14 Error: Eclipse has decided it hates you. Go die. Jul 20 21:43:15 oh my Jul 20 21:57:21 what are the most important things to know to develop great android applications? (yeah, stupid generic question, but maybe I'll get some interesting answers xD) Jul 20 21:57:51 and on another issue, what are the bottlenecks of android apps in general? how to make a really smooth and responsive app? Jul 20 21:58:24 gavilan2, you must know java for a kick off Jul 20 21:58:54 You could always learn C# and use Xamarin Jul 20 21:59:13 exotic:) Jul 20 21:59:28 brx_: I kindof know java..... Jul 20 21:59:36 I'd take that route, in the event that you already work with C# Jul 20 21:59:41 You could always learn C# and use Xamarin ---> Why would that yield a better app? Jul 20 21:59:51 The problem is that you have to pay for Xamarin :( Jul 20 22:00:18 If you're more well acquainted with C#, that would probably yield a better app, since you're already familiar with programming in that ecosystem Jul 20 22:00:29 gavilan2, cool,did you make any apps yet? Jul 20 22:00:45 If you're not- then go with Java. Jul 20 22:00:45 seitensei: I'm trying to get familiar with the android ecosystem :) Jul 20 22:01:03 the android mess :) Jul 20 22:01:09 brx_: Actually, I'm currently maintaining an existing app... So the language is not really a choice :p Jul 20 22:01:19 if you pay a bit of money and avoid banging your head against an API for 40 hours….is it worth it? Jul 20 22:01:21 calling it an ecosystem is an affront to all ecosystemd Jul 20 22:01:34 gavilan2, nice, what is the natue of the app? Jul 20 22:01:46 etcetera: Why would I band my head against an API? Jul 20 22:02:14 brx_: shopping app... Jul 20 22:03:04 because you'd be relearning all the apis associated with http (rest, soap), json, xml, sqlite. Jul 20 22:03:17 on top of the Android View APIs. Jul 20 22:04:20 ive only ever written apps using the sdk and java...do these cross platforms give you full access to the api or is everything a bit generic? Jul 20 22:04:31 etcetera: I'd need to learn the same stuff on C# Jul 20 22:05:53 gavilan2: if you use C# you likely already use things like RestSharp, Json.NET, etc. if not it's less useful. Jul 20 22:06:05 hehehe Jul 20 22:06:20 I'm probably one of the few people that know a lot about C# and yet don't know how to use that stuff... Jul 20 22:06:22 The real benefit that basically everything that isn't specific is also portable to iOS. Jul 20 22:06:46 still... The app is in JAva.... so.... Jul 20 22:06:49 database access, web services, and all business logic. Jul 20 22:06:57 How to make it really fast, smooth... Jul 20 22:07:05 optimize it Jul 20 22:07:16 Make sure you aren't using any code that you don't need Jul 20 22:07:18 The current app is really slow... is there any profiler or any good tool to discover why? and how to optimize it? or where? Jul 20 22:08:01 gavilan2: the sdk has several built in tools Jul 20 22:08:07 including a profiler Jul 20 22:08:08 Compared to Instruments, the Android profiling tools are abismal. Jul 20 22:08:11 though I don't know how to use it Jul 20 22:08:25 etcetera: Instruments? what's Instruments? Jul 20 22:08:32 iOS profiling tools Jul 20 22:08:52 Tells you the line of code that is making your app slow, memory usage, IO usage, etc. Jul 20 22:09:00 k Jul 20 22:10:23 theres heap analysis tool too Jul 20 22:10:56 but really you should look through the code and check things like threading and the UI, make sure nothing heavy is going on on the UI thread Jul 20 22:12:27 are views recycled, are objects nullified for garbage collection Jul 20 22:14:11 brx_: views recycled? Jul 20 22:14:23 ye, say like in a listview Jul 20 22:14:28 ok Jul 20 22:15:34 if the UI is slow then often its a threading issue, some heavy work being done in a click event for example Jul 20 22:17:20 although the visual on-screen draw analysis in android 4.3 is nice Jul 20 22:17:42 well, looks nice Jul 20 22:18:14 not seen that StingRay_ Jul 20 22:24:19 g00s, you asked me if rrdtool worked out - i chose not to use it because it didn't perform the task i needed. Jul 20 22:24:46 yeah, close but no cigar Jul 20 22:24:51 g00s, rrdtool summarizes old data to compress its footprint. i need all the historical data Jul 20 22:25:02 that was my problem oo Jul 20 22:25:04 *too Jul 20 22:25:11 what i think i'm gonna do now is limit the window size of the chart Jul 20 22:25:27 and for huge files, use a randomaccessfile to seek the window size and only that much into the chart Jul 20 22:25:44 the trick for this is i have to figure out how to link scrolling and zooming of the chart object to a background RAMfile Jul 20 22:26:07 its a tough problem, i haven't figured out a good solution Jul 20 22:26:17 but before i get there, i was trying to optimize chart load times...lol. i ended up screwing my app over Jul 20 22:26:38 now i have some more concurrency issues going on with that xD Jul 20 22:27:05 it is a tough problem Jul 20 22:27:11 i guess when i'm done it will be worth something (hopefully) Jul 20 22:27:19 if you could afford it, i would go with perst Jul 20 22:27:33 since they index time domain data nicely Jul 20 22:27:38 hmm Jul 20 22:27:44 just googled it Jul 20 22:27:57 http://stackoverflow.com/questions/14765053/java-based-library-for-sensor-data-collection Jul 20 22:27:57 that's another thing on my list - set up a time base for the data Jul 20 22:28:08 right now it's just a sequence number... Jul 20 22:28:29 it gets even more messy for me because i need to resample Jul 20 22:29:03 heh, that's fun Jul 20 22:29:06 let me know what you come up with; i haven't really been working on this problem lately Jul 20 22:29:17 i'm gonna have to do some filtering as well, mainly to detect heart beats and such Jul 20 22:29:22 i'll let you know what i get Jul 20 22:29:26 ;) Jul 20 22:29:26 i'll probably open source at least part of it Jul 20 22:29:42 if i was a good programmer i'd extend the GraphView library to link to huge data files Jul 20 22:29:46 and everyone would love me Jul 20 22:29:52 but i am no where near that experienced or good at java Jul 20 22:29:57 brb Jul 20 22:30:05 hm, i wouldn't worry about the graph Jul 20 22:33:44 why is lint complaining about a view in a xml layout that is part of a jar? Jul 20 22:34:25 even the android tools complain about the android tools Jul 20 22:36:21 hehe good one Jul 20 22:42:35 g00s, what do you mean? Jul 20 22:42:53 hesperaux the graph should be agnostic of the data its looking at Jul 20 22:43:09 sure Jul 20 22:43:12 so there shouldn't be any secret sauce there Jul 20 22:43:24 but if the viewport is linked to the data file, that would be nice wouldn't it? Jul 20 22:43:54 i.e. you scroll in the graph, and it "scrolls" in the file Jul 20 22:43:59 you would have to impl probably one or more buffers between the file and view Jul 20 22:44:00 so that it doesn't need to load the entire file into ram Jul 20 22:44:35 only if you plan on doing 1:1 between view and data, with no zooming out Jul 20 22:44:57 my thought was that zoom actions would change the window size, and therefore the size of the seek buffer in the RAMfile Jul 20 22:44:59 if you zoom out you would have to calculate an average for the data no longer visible between samples Jul 20 22:45:15 g00s, i didn't think of doing that...hmm Jul 20 22:45:27 the library as it stands just displays each and every point in the viewport Jul 20 22:45:39 if you zoom out, it simply shows more points Jul 20 22:45:47 which is why it rages hard when you zoom out on 12K data points Jul 20 22:46:10 that would be a tricky business Jul 20 23:20:19 Hey - I'm playing around with json data - What's the best way to visualize this so I can debug? Going off of: http://stackoverflow.com/a/9606629/1125714 Jul 20 23:21:09 visualize what? Jul 20 23:21:11 tjbiddle, not sure what you're asking. what do you want to visualize? Jul 20 23:21:13 heh Jul 20 23:21:28 Heh Jul 20 23:22:14 The actual json data I'm getting. Looking at what it should be returning in a browser it's an array of results. But I'm not entirely sure what JSONObject is giving me. I was expecting I could do something like results[0].get('text') and be set Jul 20 23:22:22 Hopefully that's phrased better? lol Jul 20 23:23:21 if you want to see the json data it sends back, you can capture it in a browser or whatever and use a json formatter to view it. Or to see what your program sees, maybe try the debugger and put a breakpoint at the jsonobject. Jul 20 23:23:25 tjbiddle: what does the original json field look like? Jul 20 23:24:46 tjbiddle: you can traverse the JSONObject by use of the iterator that keys() gives back or just print it with toString() to see it Jul 20 23:25:20 Napalm: You'll have to throw this into jsbeautifer so it's legible, but: https://gist.github.com/thomasbiddle/1fe636a5d76e8311b188 (Twitter results for a user). Jul 20 23:25:52 hesperaux: Let me go look up how to work with the debugger in eclipse :). Xabster Looking as well Jul 20 23:26:08 tjbiddle, you double click the line number and an icon appears there Jul 20 23:26:13 then click the debug button Jul 20 23:26:25 i recognise this Jul 20 23:26:28 when it stops in the program, you can hover over objects in that scope and see their values Jul 20 23:26:38 its a twitter feed result from their v2 api Jul 20 23:27:38 Napalm: 1.1 actually - Are they on 2.0? I just followed their docs page: https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline Jul 20 23:27:39 this is not valid json Jul 20 23:28:15 woops, perhaps it was v1.1 Jul 20 23:28:32 i know it wasnt the original version. Jul 20 23:28:37 Napalm: How so? It's what they threw me (More specifically, I have a php script that's authing and echoing out the results - So I don't have to have my auth secret in the app) - But should be verbatim what they send me Jul 20 23:28:55 fields are suppose to be enclosed by speech-marks if i remember correctly Jul 20 23:31:00 tjbiddle: one moment, i will dig out my passing code Jul 20 23:31:13 Napalm: Yeah - you're right. Let me check into it Jul 20 23:32:12 Napalm: Alright - Ignore the missing quotes - It's giving me quotes, just I have a chrome extension to pretty prints it - Apparently removing the quotes. But the actual result has them. Jul 20 23:33:30 hesperaux: Debugging - But I don't see anything obvious that I should be looking at. I have a breakpoint under `JSONObject twitterFeed = getTwitterFeed();` but the variable doesn't show up in the debugger. Should I be looking anywhere specific? Jul 20 23:34:01 tjbiddle, hovering over twitterFeed? and btw, you might want to put the breakpoint just affter it is assigned Jul 20 23:34:29 hesperaux: Ah. And yeah I do. Null apparently - Will check into it. Jul 20 23:34:37 tjbiddle: gimme a moment Jul 20 23:42:50 Is getMessage(); the most informative way to get info after an exception? (Sorry for the noob questions - Haven't touched Android dev in a year and was minimal at that :-) ) Jul 20 23:43:46 i think e.printStackTrace() is better Jul 20 23:43:50 more info Jul 20 23:48:09 hesperaux: Much better. Thanks! Jul 20 23:49:05 tjbiddle, no prob. glad it helped Jul 20 23:49:11 So looks like a NetworkOnMainThread exception is being thrown. I remember reading something about wrapping network calls in async something - I'm assuming that's the solution? (Also - First issue was I was using httppost and not get, heh) Jul 20 23:52:51 tjbiddle: https://gist.github.com/slightfoot/6046900 Jul 20 23:54:11 Napalm: If you just wrote that in this short bit of time I think I should quit, lol Jul 20 23:54:37 this is v1 api code i made back in feburary adjusted a little Jul 20 23:55:30 it was prototype code, so its got plenty of bugs Jul 20 23:55:41 but it should point you in a direction Jul 20 23:56:37 Napalm: Heh. And awesome, thank you :) - Recommend Gson? Jul 20 23:56:53 yea, its pretty good Jul 21 00:00:47 Napalm: I like this - This is clean. Thanks again Jul 21 01:50:04 http://www.technologyreview.com/view/516816/human-motion-will-power-the-internet-of-things-say-energy-harvesting-engineers/?utm_campaign=newsletters&utm_source=newsletter-weekly-energy&utm_medium=email&utm_content=20130715 Jul 21 01:51:15 i notice no mention of masturbation Jul 21 01:51:32 thats gotta be 1MB/s Jul 21 01:53:00 what do people here think of https://play.google.com/store/apps/details?id=com.marco.numbersnap ? Jul 21 01:55:39 Ever gotten a person's phone number and forgotten what they look like the morning after? Jul 21 01:56:26 Great lead in Jul 21 01:57:13 lasserix: i helpled someone with some camera code the other day.. was that you? Jul 21 01:57:25 The idea is sound but an entire app devoted to that one thing is a little contrived? Jul 21 01:57:31 no i dont think so Jul 21 01:57:42 err i wasn't doing camera stuff the other day Jul 21 02:06:38 my app has a download file feature, and occasionally it will time out in an ssl read routine. Curiously, after this happens the rest of the app's network access also freezes (in particular, loading pages in a webview from the same host), but this will never happen without doing the download. Jul 21 02:07:21 and I'm positive the host isn't unreachable because I can still load pages on my tethered laptop Jul 21 02:07:57 anyone have inside knowledge of how app network access works that might shed light on this? Maybe some kind of throttle? Jul 21 02:11:53 My app cannot resolve R my gen folder is empty. I have removed import android.R I cannot build because R cannot be resolved in my Main.java file what is going on? Jul 21 02:12:55 deadmund: xml error ? Jul 21 02:13:09 syntax or reference Jul 21 02:13:27 deadmund: in eclipse yes ? Jul 21 02:13:50 StingRay_: in eclipse, yes. Reference error, all instances of R "cannot be resolved to a variable" Jul 21 02:14:08 well the point is R is not being built Jul 21 02:14:32 so xml error is top of the list, you tried a full project clean ? Jul 21 02:16:49 Tried cleaning, made no difference. Not sure how "full project clean" is different then regular cleaning. Jul 21 02:16:59 I also don't have the menu to edit AVD ? Jul 21 02:17:30 hang on... might have found an xml error Jul 21 02:17:35 :) Jul 21 02:18:45 I accidentally erased my error log! Now I can't read the error I thought I saw regarding xml Jul 21 02:18:59 How can I get the error to come back? I tried running, closing and reopening the project... ? Jul 21 02:19:18 tbh in eclipse ? I can remember Jul 21 02:19:32 In eclipse... Jul 21 02:19:32 ugh Jul 21 02:19:52 can you do a command line build Jul 21 02:19:57 and it tells you ? Jul 21 02:20:17 btw that was 99% a question Jul 21 02:20:18 what is the syntax? I can't remember how to command line build Jul 21 02:20:38 http://developer.android.com/tools/building/building-cmdline.html Jul 21 02:22:39 where is the sdk is ant ?? my build-tools is empty? Jul 21 02:23:49 where in* the sdk is ant ? Jul 21 02:25:25 ant isn't in the SDK Jul 21 02:25:44 Leeds: yeah... I see that. Jul 21 02:25:55 Leeds: StingRay_ hang on, apparently my sdk needs updates Jul 21 02:26:10 I get fully up-to-date before wasting your guys' time Jul 21 02:32:49 fully updated, got ant, ran ant debug in the root of my project. I get this error: Buildfile: build.xml does not exist! Jul 21 02:35:21 getting this output from the ant: https://gist.github.com/santosh/032d34d1c2f995e880c5#file-ant-txt. Can anybody tell what error i am doing? Jul 21 02:35:35 following suggestion number http://stackoverflow.com/questions/5572304/problem-building-android-sample-project I generated a build.xml (maybe with the wrong name) Jul 21 02:39:21 Now all Android related stuff is missing from eclipse? Jul 21 02:39:26 WHAT is happening?! Jul 21 02:42:33 * deadmund reinstalls eclipse after removing .eclipse folder Jul 21 02:42:48 wat Jul 21 02:44:46 anybody to my problem? Jul 21 02:46:02 * santosh is going to ask this on stackoverflow Jul 21 02:55:55 Fixed it, my eclipse had multiple releases in the help -> install new software thingy **** ENDING LOGGING AT Sun Jul 21 02:59:58 2013