**** BEGIN LOGGING AT Mon Sep 08 02:59:58 2014 Sep 08 03:01:41 well aint that a thing.. I am following this guide and it states you must place the code in its own file which i have but it complains in the ide that the public type Networkchangereciever must be in its own file ? http://www.vogella.com/tutorials/AndroidBroadcastReceiver/article.html Sep 08 03:04:19 how it going Carbonflux Sep 08 03:04:56 was thinking about reading the 'locust effect' but i think thats going to make me too depressed; not sure what actionable stuff is in there Sep 08 03:06:06 hooligan321 yeah, this is basic java Sep 08 03:06:15 good to learn java first :) Sep 08 03:07:12 i know i just want to dump that bit of code in ..and be gone :) not assimilate the entire mysteries of coffee bean technology in infantismal detail Sep 08 03:09:11 well, thats the problem - you wouldn't be gone, but only maybe another 100 feet down the path passed out from hitting the next branch in your way Sep 08 03:10:43 well my app does what it needs it would of just been nice to recieve the internet lost/regained/battery events as its using the mediaplayer() Sep 08 03:11:41 hello! anyone using circleci for android here? got problem with one dependency Sep 08 03:11:53 Could not resolve com.android.support:support-v4:20.0.+ Sep 08 03:15:15 ah G .. the filename has to match the class name Sep 08 03:22:09 whats a reasonable expectation for android development costs to develop an app Sep 08 03:23:02 how long is a piece of string? Sep 08 03:23:19 ok an existing app on iphone Sep 08 03:23:22 two screens Sep 08 03:23:27 well i think i am charging my client £20 per hour based on a 8 hour day hour for 5 days maybe more and I am not even a genuine java developer Sep 08 03:23:30 one slides away exposing the other Sep 08 03:23:45 hooligan321 i'd say the client isn't getting a good deal at all :D Sep 08 03:23:59 "lets hire a hooligan" Sep 08 03:24:15 karstensrage: with no other details 5-20k Sep 08 03:24:16 the 2nd screen has static data, and you can click bottom and email, click a url and goes to browser Sep 08 03:24:17 lool :) fortunatly I have a day job and that is my day rate I am giving him Sep 08 03:24:24 he's probably a Millwall fan Sep 08 03:24:34 Crystal palace man Sep 08 03:24:41 not a faker i support my locals Sep 08 03:24:44 the first screen is just a white screen with a google authenticator like number, status line for timer, and an icon Sep 08 03:24:51 20 is not bad Sep 08 03:25:28 £20 per hour is pretty low Sep 08 03:25:35 depends on country Sep 08 03:25:46 but yeah Sep 08 03:25:51 I just calculated Sep 08 03:27:07 its like £160 a day and obviously some days your not at it for straight 8 hours so its not so bad Sep 08 03:27:22 thats like 200 us? Sep 08 03:27:58 hooligan321: I calculated how much you get per month Sep 08 03:28:04 260 Sep 08 03:28:10 geez Sep 08 03:28:12 and it's low ;) Sep 08 03:28:29 tax, cost of living in (presumably) London... Sep 08 03:28:50 so rise prices Sep 08 03:28:59 cuz you're doing bad thing for everyone else ;) Sep 08 03:31:49 trust me living in london is kind of hardcore money wise Sep 08 03:32:04 always some twat trying to extract £ from your pockets 24/7 Sep 08 03:32:38 normally Mr. Osborne Sep 08 03:32:44 lol Sep 08 03:33:26 mps get £70k month now Sep 08 03:33:33 bastids Sep 08 03:34:07 just wait until there are 10 billion people on the earth; its going to be even more fun! Sep 08 03:34:12 (for any non-Brits who may have wandered in, George Osborne is the Chancellor of the Exchequer - i.e. the economy/tax minister) Sep 08 03:34:29 Leeds oh crap, thought you meant Ozzy Sep 08 03:34:46 g00s: no, Ozzy does not have tax-raising powers... yet Sep 08 03:34:59 hell-raising maybe Sep 08 03:35:21 many dark powers, but not *that* dark Sep 08 03:35:45 http://www.youtube.com/watch?v=h35xqPAacRg Sep 08 03:38:29 http://www.youtube.com/watch?v=NOErZuzZpS8 Sep 08 03:40:52 that guy was at school with my dad :) Sep 08 03:41:25 I was thinking about Ozzy :D Sep 08 03:41:30 very upbeat :) Sep 08 03:41:53 alice cooper lived nearby i used to see him at ... REI ha Sep 08 03:42:13 and now you're... alone Sep 08 03:42:49 so Sep 08 03:42:57 nobody is using circleci ? Sep 08 03:43:13 never heard of it Sep 08 03:43:23 yeah me either Sep 08 03:43:30 until my company decided to use it Sep 08 03:43:39 heh Sep 08 03:43:41 because of rails support.... Sep 08 03:44:04 great story, but now I cannot download dependencies Sep 08 03:44:13 oh CI, interesting Sep 08 03:44:34 I'd rather use jenkins ;) Sep 08 03:48:00 gordon_ and now you're alone :( Sep 08 03:48:11 the only one using cicrcleci ... Sep 08 03:48:15 yes... Sep 08 03:48:27 btw Sep 08 03:48:39 using robolectric with gradle doesnt make much sense Sep 08 03:48:47 you need to wait 1min to get gradle started :D Sep 08 03:49:02 so I can write normal andorid tests that way Sep 08 03:57:50 hm i got a little smooth idea when the mediaplayer is active and the phone is in aeroplane mode can you force the output of mediaplayer to the earphones? Sep 08 03:59:58 actually ignore that my brain just went full retard lol my mediaplayer plays from the internet any how Sep 08 04:00:13 * hooligan321 hits self with medium sized claw hammer Sep 08 04:01:16 wifi ? Sep 08 04:02:44 does wifi stay on in aeroplane mode? Sep 08 04:03:01 the connectiontype goes to 'null' Sep 08 04:14:23 it works on my friend's phone Sep 08 04:14:42 hm whats the screen that you slide down from the top called .. i want my app to show in side that? Sep 08 04:14:48 oh Sep 08 04:14:51 thats interesting Sep 08 04:15:42 oh yeah right my emulated droid is not on wifi Sep 08 04:16:16 so yeah that might be a smooth idea after all to enforce earphones only policy Sep 08 04:17:45 does not even sport a wifi connection period lol Sep 08 04:19:43 I learned so much about my jni libraries on my Android app, I just launched a website using them Sep 08 04:20:09 But Google seems to not like it...I guess the way I detect language in Javascript or something...hmm Sep 08 04:25:22 lol? Sep 08 04:34:53 what is this supposed to mean "AbsListView extends LayoutParams to provide a place to hold the view type. Sep 08 04:34:56 " ? Sep 08 04:41:57 holy mac so many people have problems with this airoplane mode Sep 08 04:42:07 because of it getting depreciated along the way Sep 08 04:42:58 people getting stuck because they imported every thing except provider.settings; Sep 08 04:43:19 unsolved cases on stackoverflow back in 2008! Sep 08 04:54:07 o Sep 08 04:54:14 so that new moto x runs on clear andorid Sep 08 04:54:15 nice Sep 08 04:54:24 Guys, suppose i implementing im messenger, how should i implement chat view, for example should i read data (last messages from history) from sqlite every time when user opens activity (onResume)? Or are there other ways to do this? Ofcourse all this should work smoothly, transparent to the user. Sep 08 04:55:54 Because i don't know is sqlite fast enough to do this every time. Sep 08 04:58:04 xmpp ? Sep 08 04:58:13 with sqlite Sep 08 04:58:20 havent done it myself Sep 08 04:58:23 but that's my frist diea Sep 08 04:58:25 *idea Sep 08 04:59:09 gordon_, original moto x is plain android Sep 08 05:00:09 gordon_: tox Sep 08 05:00:35 gordon_: https://github.com/Astonex/Antox Here for example one client Sep 08 05:00:51 but i want to write another Sep 08 05:02:55 and sqlite operates at the speed of disk Sep 08 05:03:01 which is plenty fast Sep 08 05:03:49 my layout is a linearlayout with 2 imageview and ai am trying to put them into a GridView, constantly getting this error android.widget.AbsListView$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams - not sure how to solve this, can someone help out? Sep 08 05:05:29 olologin: so just do it Sep 08 05:06:01 good that all new phones are using the same snapdragon Sep 08 05:06:09 so most likely they will receive updates Sep 08 05:06:33 I tried to understand why https://github.com/Astonex/Antox this code so slow Sep 08 05:06:52 then go understand it Sep 08 05:07:02 I can't, lol Sep 08 05:07:13 he reads messages from db Sep 08 05:07:19 then pay someone to understand it for you Sep 08 05:07:23 and i don't know is this is problem Sep 08 05:07:54 I think that reimplementing it - best idea Sep 08 05:11:07 load to memory first ? Sep 08 05:11:10 and then to disk Sep 08 05:11:50 and pfn, dont be mean ;) Sep 08 05:13:26 pfn is the "new morotola g" plain android also ? i did read recently that moto was the fastest oem to update, but still i prefer plain Sep 08 05:13:44 you prefer windows, don't lie :P Sep 08 05:15:08 <|\|19hTVV0|F> if I made a tablet, does anyone know how I can make a ROM android for it? Sep 08 05:15:37 yeeeaah Sep 08 05:15:47 <|\|19hTVV0|F> :/ tell :) Sep 08 05:15:57 hm not convinced gordon_ if i enable airplane mode on my emulator it disabled it but then data starts to roll again after a while Sep 08 05:18:56 tired trying to boot android emulator 4.1 and above in my system - even if i wait for 2 hours the emulator still wont load and just displays me the android animation at the beginning.. i want to test my app in development which involves credit cards - is Jenny motion safe for such purposes ? Sep 08 05:19:13 i am worried whether private tools like that will steal my data Sep 08 05:19:16 inputs please Sep 08 05:19:50 Jenny won't steal your data O.o Sep 08 05:20:30 do you think the tools takes your apk and sends it to russia or something ? Sep 08 05:20:42 solofight you using x86? Sep 08 05:20:49 hooligan321: yes Sep 08 05:20:59 got the intel hax ecution accelarator thingy? Sep 08 05:21:05 <|\|19hTVV0|F> can I make a custom rom for any tablet from android source? Sep 08 05:21:07 execution^ Sep 08 05:21:16 g00s: no i am suspecting whether they take the username password or credit card details and send it to nigeria ! Sep 08 05:21:25 hooligan321: yes - no use Sep 08 05:21:34 strange .com Sep 08 05:21:44 Jenny :D Sep 08 05:21:58 hooligan321: got it installed - but whenever i run an emulator it says HAX not working Sep 08 05:22:10 ah your cpu might not support virtulisation Sep 08 05:22:19 hooligan321: how do i find that out ? Sep 08 05:22:24 cpu-z Sep 08 05:22:31 or cat /proc/cpuinfo Sep 08 05:23:09 Amds is called vtd-x and intels is called amd-v Sep 08 05:23:14 er other way round Sep 08 05:23:14 hm Sep 08 05:23:29 stop it mad sleep depraved brain Sep 08 05:23:30 !! Sep 08 05:23:32 Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1 Sep 08 05:23:43 but I got compile 'com.android.support:support-v4:20.0.0' Sep 08 05:23:56 ah dammit, wrong dependency.. saw that when pasted Sep 08 05:24:46 ah and another thing solofight Sep 08 05:24:59 you need to install the intel hax stuff in the tools directory of the SDK Sep 08 05:25:08 enabling it alone is not enough Sep 08 05:25:52 hooligan321: i use windows so il download this to find out whether my CPU supports virtualization http://www.intel.com/support/processors/tools/piu/sb/CS-014921.htm Sep 08 05:26:11 thats fine Sep 08 05:27:21 hooligan321: when i download the HAX installer sits inside /sdk/extras/intel/hardware_acceleration_manager/ now i need to install the software inside sdk/ is that what you are saying ? Sep 08 05:27:43 yeah Sep 08 05:27:58 get it from the sdk manager and install Sep 08 05:28:51 hooligan321: i think i did the same - but let me try again Sep 08 05:28:55 if you can support it you will notice a dramatic improvment Sep 08 05:29:09 with out its so slow you can drive to the moon and back Sep 08 05:29:39 shame there was not something to accelerate arm too Sep 08 05:29:42 hooligan321: mine supports Intel(R) Hyper-Threading Technology and Turbo boost technology :) Sep 08 05:29:52 * solofight feels lucky Sep 08 05:29:55 core I? Sep 08 05:30:13 you need vt-x Sep 08 05:30:26 Intel Core i7-3470QM CPU @ 2.70 Ghz Sep 08 05:30:29 core I sounds like a Freudian concept Sep 08 05:30:33 hooligan321: ^ Sep 08 05:30:43 gooat me ? Sep 08 05:30:48 g00s: at me ? Sep 08 05:31:18 solofight yes Sep 08 05:31:19 you most probably got that Sep 08 05:31:29 on a i7 most definitly Sep 08 05:31:48 make sure its enabled ;) Sep 08 05:34:17 g00s: its enabled :) Sep 08 05:34:45 my layout is a linearlayout with 2 imageview and ai am trying to put them into a GridView, constantly getting this error android.widget.AbsListView$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams - not sure how to solve this, can someone help out? Sep 08 05:34:52 hooligan321: when i install the HAX it is nto asking me where to install ! Sep 08 05:35:12 it automatically installs in some location... the only parameter it asks me is how much space to allocate Sep 08 05:36:12 you dont need to care Sep 08 05:36:29 just go forth and multiply inside the virtual device manager now Sep 08 05:40:06 multiply inside the virtual device manager now ? you mean create a AVD and test it ? Sep 08 05:40:11 hooligan321: ^ Sep 08 05:41:36 hooligan321: ah now, it says HAX is working in fast virtual mode Sep 08 05:41:40 let me check how fast it loads Sep 08 05:53:15 hi Sep 08 05:53:32 i have a photo gallery where user can do multi selection, after he selets few photos i want to change the action bar and show a send button there. how is that done ? Sep 08 05:56:23 argh Sep 08 05:56:29 why did windows 8 want to reboot Sep 08 05:56:32 to install telnet Sep 08 05:56:33 ffs Sep 08 05:56:39 fucking animal Sep 08 05:57:15 * hooligan321 remember putty Sep 08 05:57:25 thank god ;) Sep 08 05:58:03 .... Sep 08 05:58:10 I see OS is your problem too Sep 08 05:58:56 Os is my problem ? you mean cause I am not using linux? Sep 08 05:59:32 I am very good friends with g++/gcc :) Sep 08 06:00:05 and still using windows 8 Sep 08 06:00:27 for my games :) I am have 8 core machine comming for my linux box Sep 08 06:00:34 http://tiny.pl/hv5nw Sep 08 06:01:09 * hooligan321 has been looking for that Sep 08 06:03:30 seriously tho I have a nice new 8 core machine with 16GB of ram on the way why would i take this pathetic i5 with 8GB of ram and run linux on it when I use it for games, others use it for gaming and internet as well .. Sep 08 06:05:54 hooligan321: its still loading :( Sep 08 06:06:05 trust me you have no idea who you are dealing with I have been using and developing under linux for like nearly 20 years mate :) I run and build my own BFS /grsecurity custom kernels for example I've repaired driver modules and also made a root kit kernel module in the past stuff like that Sep 08 06:06:51 hooligan321: you hacked systems with the root kit ? Sep 08 06:07:44 solofight with a nick like hooligan321 .... Sep 08 06:07:53 nah would have to rebuild the whole kernel on the victum machine at the time even if that was my intent my code for 2.6 while 2.4 was current Sep 08 06:08:42 ooh, nearly 20 years... Sep 08 06:08:53 hooligan321: any idea why my emulator still refuses to speed up ? Sep 08 06:08:57 17ish Sep 08 06:08:58 how do i debug it Sep 08 06:09:06 solofight logcat Sep 08 06:09:43 hooligan321: if i launch from IDE then logcat - what if i launch using AVD manager ? Sep 08 06:10:19 logcat is part of Eclipse Sep 08 06:10:30 well integrated into Sep 08 06:11:28 18 tests completed9 tests completed, 1 failed20 tests completed Sep 08 06:11:35 100%BUILD SUCCESSFUL Sep 08 06:11:39 this is not what I wanted :D Sep 08 06:11:53 hooligan321: i use android studio, so le tme try to launch avd from there to see the log Sep 08 06:11:54 thanks Sep 08 06:13:06 np Sep 08 06:14:07 the best tool i ever made for linux was tcpblap.c Sep 08 06:14:29 that was a increadibly fun tool Sep 08 06:17:58 going back many many years but a friend of mine had hes server hijacked and brutalised some dicks tried to run a irc server on it so we remote rooted it and used tcp blap to demolish there irc clients .. they crippled the machine any way Sep 08 06:19:12 after that we just rm -fr / and rung the DC for an appointment Sep 08 06:19:14 hehe Sep 08 06:54:10 hm I cant stop my app from running two instances of it self Sep 08 06:54:31 i tried SingleInstance SingleTask Sep 08 07:01:39 ah just need a simple logic switch in onResume() Sep 08 07:01:42 woot Sep 08 07:01:46 my app rawks lool :) Sep 08 07:10:49 hi guys/girls i want to make api for my android app so that user can login to foursquare using uname/pass, i've looked fsqr documentation but couldnt figure it out how to do it, i would appreciate some help Sep 08 07:17:27 <_flip> Vasquez: https://github.com/foursquare/foursquare-android-oauth Sep 08 07:19:22 ive seen that, but its done on the client side, i want to do it on server side Sep 08 07:19:51 blow mind Sep 08 07:20:05 you're asking on android channel for some server that you want to write ? Sep 08 07:20:26 <_flip> are you running an android server? :) Sep 08 07:20:36 gordon_: I think the term is "Mind blown" Sep 08 07:21:21 http://idioms.thefreedictionary.com/blow+mind Sep 08 07:21:40 <_flip> depending on how you are implementing the server you might have OAUTH library available that will do most of the heavy lifting for you Sep 08 07:21:48 but thanks for correction anyway Sep 08 07:21:58 you are right wrong place to ask a question Sep 08 07:22:50 Is there any way of getting a user's public G+ photo without prompting for permission for access to their G+ account? I want literally no other data from G+. Sep 08 07:23:06 Just something that's already publically available anyways. Sep 08 07:23:19 I'm trying to implement an account chooser of sorts. Sep 08 07:23:38 I have the emails associated with the accounts on the phone. Sep 08 07:23:40 you literally want data from g+ so ask for the permission Sep 08 07:24:27 I'd like not to ask for permission to ask for permission. Sep 08 07:25:05 MicronXD G+ profile photos aren't public Sep 08 07:25:29 you needn't have that person in your circles, but you yourself must be on G+ to see it Sep 08 07:26:32 I just opened an incognito window, and pasted the URL to my profile. I can see my profile picture. It looks pretty public :P Sep 08 07:39:07 does anyone know of a tinder style animation library? my cio thinks we MUST have this feature ... if not we can roll our own just wondering if there was one out there Sep 08 07:41:35 http://grishma102.blogspot.in/#useful-links-for-designers Sep 08 07:41:54 i think that guy has a link to something like that on that page Sep 08 07:45:59 MicronXD: Isn't there some sort of documentation you can follow? Sep 08 07:47:47 hey all, just switched java home from openjdk to oracle's, now android studio says it can't find java environnement, and I can't find the settings page to change it Sep 08 07:48:07 help me ? :) Sep 08 07:48:33 switch back :p Sep 08 07:48:51 Well Android Studio prompted the change, so is there no other way? Sep 08 07:50:56 Found it (under file > other settings > default project structure) Sep 08 08:01:23 when adding a background to a WearableNotification — is there a "standard" way of viewing only this image? Sep 08 08:02:04 I'm on Windows 7 on my desktop, adb devices correctly lists my connected phone, but when I do adb shell and enter the adb shell, it cannot find my phone anymore Sep 08 08:02:12 Any idea why that is? Sep 08 08:02:49 hello i face a very strange situtation Sep 08 08:03:13 i pass an object as parcelable to an activity which has an int Id field Sep 08 08:03:43 this field has a value but when i pass it is has zero value Sep 08 08:03:53 what is going wrong? Sep 08 08:04:01 Ok, this is even weirder.. it does not list my phone in devices, but I can cd /system and any sub-directories just fine Sep 08 08:04:08 Shows all files and their permissions, etc. Sep 08 08:04:15 But when I try to push a file to it Sep 08 08:04:23 It says no device found Sep 08 08:04:31 resu01: post some code Sep 08 08:05:04 intent.putExtra(tag, myObject); Sep 08 08:05:32 and when i get the object via intent.getParcelableExtra(tag); Sep 08 08:05:38 soryr i have to leave Sep 08 08:12:36 z16, try stop adbd snd then start adbd, but make sure you do it ON THE DEVICE ;) Sep 08 08:13:11 and* Sep 08 08:16:10 Mrdarknezz: I'm not sure. If there is, it's not in any of the places I've looked so far. AccountPicker only seems to provide email and type (com.goog for google accounts iirc). I'm just now reading up on the Contacts documentation. It's looking promising so far, but I'm not sure if a user is automatically added as a contact in his/her own Contacts. I'll be experimenting with it for a bit and will report back if I find Sep 08 08:16:10 anything interesting. Sep 08 08:18:33 hm i think i am starting to like java ;/ Sep 08 08:18:59 welcome to the dark side. Sep 08 08:20:08 I like the the way it goes round fixing stuff for you .. cracks me up.. like the ide knows what you want when you dont know what the hell happened :) Sep 08 08:23:27 ravilov: on the device? <_< Sep 08 08:38:29 Hey, how can I get this working? http://pastie.org/9535738 Sep 08 08:39:39 I'd like to use an array rather than list them one by one, but I keep getting errors with the initialization Sep 08 08:44:41 Oh well it works if I assign it to a variable. Can I not do it without storing it? Sep 08 08:44:53 SASDOE: getStringArray already creates an array so you can't use the result as an element of a String[] array. That your problem? Sep 08 08:45:48 appel1: Oh yeah cool thanks Sep 08 08:52:27 I got problem with debugging with andorid studio Sep 08 08:52:34 cannot see local variables in method Sep 08 08:52:51 anyone got that problem before? Sep 08 09:04:03 z16, yes Sep 08 09:04:08 android term or whatever Sep 08 09:05:24 guys if you were to make the classic 'memory' game as an app.. how would you make the layout? .. I can't figure out if I should do fragments for every 'field' .. make a table of some short of whatever.. Sep 08 09:05:26 you know this game: http://mppl.org/kids/files/2011/09/Memory-Game-Final.jpg Sep 08 09:05:51 GridView maybe Sep 08 09:05:59 For the cards at least Sep 08 09:06:22 Or GridLayout* I mean Sep 08 09:06:23 hmm Sep 08 09:06:37 dont make fragments work like controls Sep 08 09:06:55 fragments are collections of controls that make up a screen Sep 08 09:06:57 http://stackoverflow.com/questions/20271171/android-debugger-hides-local-variable Sep 08 09:06:59 or parts of the screen Sep 08 09:07:00 I *knew* it Sep 08 09:08:01 fair enough.. so gridview with what? .. 20 pictures.. 10 turned around.. 10 frontside up.. each user input changes has the gridview take in new images ? Sep 08 09:10:39 I can´t remember how the game worked, didn´t it start with all images facing down? User picks 2 cards each time, if they´re a match they stay facing up if not they turn back again after a second or 2 Sep 08 09:10:57 well i am not going to design your entire app :P but if it was me i would have made controls with values(apple, tree) and state(front, back) and then just change the data containted in the adapter for the gridview and then notifiyDataChanged() Sep 08 09:12:25 makes sense.. do you feel like you designed the app now ? ;) Sep 08 09:12:42 heh no that is why i just gave you ideas Sep 08 09:13:22 He´ll claim 50% of your profits once your game is #1 in the store Sep 08 09:13:24 but mostly when i give insight more questions follow heh Sep 08 09:14:14 and then all the questions bundle up = fully designed heh Sep 08 09:15:14 i created a custom layout for a notification contianing only an ImageView and added a RemoteView as second page to my notification. but swiping to this page it still displays an empty white box which would contain the notification-text. any ideas how to get rid of this empty box? Sep 08 09:15:40 #1 in the store is a myth Sep 08 09:17:01 I don't understand what swiping and pages have to do with notifications Sep 08 09:18:17 P3nnyw1se, I would do a gridlayout with a custom view for each card Sep 08 09:18:50 why a custom view? Sep 08 09:19:26 because it seems the most efficient Sep 08 09:21:50 1) to my knowledge no stock view is designed to hold two pictures at the same time (front and back of card), by having a custom view you can do this most efficiently; 2) you can easily recycle/reuse views and just shuffle them in an array or something if you only have one set of pictures; 3) if you plan to change the set of pictures, you can load new drawables/bitmaps into existing views instead o Sep 08 09:21:56 f recreating a bunch of new views Sep 08 09:22:05 plus a ton of other benefits that don't come to mind right now Sep 08 09:24:07 * ravilov is still amazed at how people praise intellij/android studio and hate on eclipse so much, and yet the official download page [ http://developer.android.com/sdk/index.html ] still has a big blue button to download eclipse+adt with AS just being a side link Sep 08 09:24:39 that's because AS is still technically a pre-release Sep 08 09:25:02 so technically and officially I should still be using eclipse Sep 08 09:25:07 which I am ;) Sep 08 09:25:18 ECLIPSE4LIFE! Sep 08 09:25:21 but people hate on it with such passion Sep 08 09:25:28 and I just don't get it Sep 08 09:25:54 IDEA really is that much better than Eclipse, is the difference Sep 08 09:26:00 and AS is based on IDEA Sep 08 09:26:14 but it is not official Sep 08 09:26:30 if I was a fresh android developer, I would totally go with what is the official recommended download Sep 08 09:27:28 also the grey box for AS on that page is funny - the blue text "Learn more about..." is not actually a link Sep 08 09:27:37 I guess they *don't* want me to learn more, lol Sep 08 09:28:25 (I know the topmost blue text *is* a link, but why make some text look like a link but it not be a link? maybe that just speaks of the highly beta stage of the software itself ;) ) Sep 08 09:29:16 someone who knows how to import the facebook sdk in android studio? Sep 08 09:30:24 Click66, always use the proper import paperwork or else they might give you trouble at the customs Sep 08 09:33:07 ravilov: But eclipse doesn't have support for gradle? Sep 08 09:33:58 what's your point? Sep 08 09:34:16 are you saying I can't make apps without it? Sep 08 09:35:33 Hello guys, I tried to change the background of the actionbar, but what happens is it changes the background of almost the whole view :S This is how I thought I should do it: http://pastebin.com/AC5uWv3Z Sep 08 09:37:14 ravilov: I don't see why you want to use an inferior solution? Sep 08 09:37:15 I only want to change the background of the top bar and the color text, can someone provide me a good link or an example. I do use AppCompat library. Sep 08 09:37:32 Mrdarknezz, because it is the OFFICIAL and RECOMMENDED by google itself Sep 08 09:38:32 ravilov: google also sells personal information to the NSA Sep 08 09:38:33 can Android Studio do off-device unit tests yet? Sep 08 09:39:16 Mrdarknezz, what has that got to do with anything? by that token, why look at android at all? Sep 08 09:39:35 ravilov: Googles opinion does not always have to be the correct opinion Sep 08 09:39:42 that's just dumb Sep 08 09:39:45 Because if it still can't do that, android studio is useless as ever Sep 08 09:40:09 if I make a piece of software and an API for it, then I probably know best how to utilize the API the best possible way Sep 08 09:40:16 ravilov not really sure what point you're trying to make between the two. Google will also tell you that ADT support has been effectively frozen, and is being steadily phased out as Studio gains features and stability Sep 08 09:40:30 Eclipse /can/ do off-device unit-tests, and the last time I checked (though that was some time ago), AS couldn't do that Sep 08 09:40:33 and that going forward you should migrate to Studio when possible Sep 08 09:40:48 sarbs, my point is that google is being inconsistent here, at best Sep 08 09:40:52 and that's kind of a dealbreaker on an IDE Sep 08 09:40:55 running tests Sep 08 09:41:11 ravilov heh.. are you gonna next tell me that the sky is blue? Sep 08 09:41:25 sonOfRa: you mean with robolectric or classes without context, dont you Sep 08 09:41:52 No, I mean testing code that doesn't interact with android at all on a system JVM, rather than launching an emulator Sep 08 09:42:01 yeah without context. Sep 08 09:42:20 sarbs, apparently what I'm talking about is obvious to you, why is that so upsetting? Sep 08 09:42:23 Google is one of the largest software companies in the world, and Android is a very significant portion of it. "inconsistent".. so what? there are two officially-supported-by-Google dev environments. one is in pre-release, one is in end-of-life. developer's choice which to use. Sep 08 09:42:26 AS cant do that? wow. Sep 08 09:42:42 It couldn't the last time I checked Sep 08 09:42:59 wondering why they stripped that one off from intellij Sep 08 09:43:25 It's probably more of a gradle thing, the gradle test target just runs whatever is in the test directory on the device Sep 08 09:43:27 sarbs, also, it says nowhere on the official download page that eclipse+adt is in end-of-life state. NOWHERE. Sep 08 09:43:52 * sarbs shrugs.. Sep 08 09:43:53 ok Sep 08 09:44:06 i'm not upset by any of this.. you seem upset Sep 08 09:44:18 jw why it's such a revelation Sep 08 09:44:25 Personally found my projects build a lot faster in Eclipse than they do in Android Studio, till Android Studio is a stable build I´ll stick with Eclipse and probably a while after that too, it does the job just fine Sep 08 09:44:29 use one or the other, who cares Sep 08 09:44:41 ^ +1 Sep 08 09:44:42 hell i use Sublime Text and makefiles for much of my development Sep 08 09:45:29 it is not a revelation, it is astonishment - eclipse+adt is still the official and recommended download, it says nowhere on the page it is about to be terminated, and yet people like to hate on it so much and as soon as you mention you're using it they give up on you Sep 08 09:45:44 Plus I found Gradle to be a pain in the ass at the start Sep 08 09:45:52 which, if you want to get into it, is also an "official" build method, seeing as how that's AOSP's build method Sep 08 09:46:04 ravilov: i think the "give up on you" is only because lots of them are not using it. Sep 08 09:46:14 how should I help you when I cant use the tool Sep 08 09:46:20 +1 danijoo Sep 08 09:46:25 yeah you can, you just choose not to ;) Sep 08 09:46:46 there are some things eclipse can't do (or at least makes difficult) Sep 08 09:47:07 sarbs, and the other way around - I'm sure each has its pros and cons Sep 08 09:47:08 all this eclipse / AS / intellij always reminds me of those kids sitting in forums and fighting arround if iPhone or android is better ^^ Sep 08 09:47:21 and, bluntly, i've largely forgotten most of the eclipse knowledge i used to have, so if someone comes in with an eclipse prob, i won't offer solutions Sep 08 09:47:31 psh, it's nothing like that, danijoo :p Sep 08 09:47:39 ravilov absolutely it does. point is, just pick one and deal with it heh Sep 08 09:48:37 if you want to bitch, work on my project. I use real IDEA (not Studio), maven-android-plugin, Sublime Text, make, and AOSP's .mk additions ;) Sep 08 09:49:18 sarbs: thats exactly my situation. I used eclipse a lot in the past, but once i switched to intellij+gradle I just know nothing about eclipse anymore. So if anyone comes in and want to get help with adding a support project or whatever im just out Sep 08 09:49:26 the reason I've mentioned any of this is, my eclipse+adt setup on linux works astoundingly well and I have no reason or intention on replacing it anytime soon, but I have no environment set up on windows, so I decided to give this miracle wonderchild everyone keeps talking about a try Sep 08 09:49:44 danijoo totally Sep 08 09:49:47 ravilov ahhhhh Sep 08 09:49:56 when i switched from eclipse to studio, i swore for weeks Sep 08 09:50:10 my prediction is, it won't stay here long ;) Sep 08 09:50:15 my personal opinion is to stay away from AS until its feature complete though. Sep 08 09:50:56 danijoo, thing is, I don't really care about my windows setup all that much, that's why I'm okay with trying it out :) Sep 08 09:51:17 There´s plenty of help to be found by Googling if you have issues using basic Eclipse functions though danijoo because Eclipse has been the standard for Android development for years unlike Android Studio Sep 08 09:51:47 VnM: Yeah i never said its bad. I just dont like the overcrowded menus :) Sep 08 09:51:49 where do you put buttonListeners.. onCreate? Sep 08 09:52:16 VnM, but for AS you have this wonderful channel, where people are eager to help out with embracing "the new standard" ;) Sep 08 09:52:17 P3nnyw1se that's where i put em Sep 08 09:52:24 faitr Sep 08 09:52:25 -t Sep 08 09:52:56 danijoo, you're using menus?! whatever happened to real programmers that only ever use keyboard shortcuts... :p Sep 08 09:53:15 hello Sep 08 09:53:20 ravilov: please show me the keyboardshortcut for adding library project :p Sep 08 09:53:25 Plus unlike Android Studio, Eclipse will be more widely used in companies which means it´ll be easier importing and running other type of projects without build files mocking up, that is if you do more than just Android development Sep 08 09:53:58 How to alter table if field doesn't exist? I'm using this, but with no results "IF COL_LENGTH('"+Users.TABLE_NAME+"', '"+Users.LANGUAGE+"') IS NULL BEGIN ALTER TABLE " + Users.TABLE_NAME + " ADD " + Users.LANGUAGE + " TEXT END" Sep 08 09:54:15 danijoo, I will once I'll be dealing with library projects ;) Sep 08 09:54:23 never have so far Sep 08 09:54:32 ravilov: I wont forget that :p Sep 08 09:54:48 fair 'nuff :p Sep 08 09:55:21 vegetablesalad19, try ADD COLUMN ? Sep 08 09:55:41 also I'm not sure you can run such dynamic SQL outside stored procedures Sep 08 10:02:54 are Intenets the same as permissions ? Sep 08 10:03:06 or permissions of intents Sep 08 10:04:17 huh? Sep 08 10:04:18 no Sep 08 10:05:00 yh no sorry nm.. they are actions in the intent filter .. but how do i add intenets to Eclipse ? Sep 08 10:05:27 what are intenets? Sep 08 10:06:25 i duno some type of permision to recieve system broadcasts Sep 08 10:06:54 that's not even a word Sep 08 10:07:31 o ;/ better chop off my hand for my minor typo Sep 08 10:08:16 you're making no sense at all Sep 08 10:08:27 heh Sep 08 10:08:34 k tnx bye Sep 08 10:12:38 nobody left Sep 08 10:12:55 that was four minutes ago and i am dying to see the parting msg Sep 08 10:13:06 but nobody left after the kthxbi Sep 08 10:13:43 i left and went back to my editor and you left you alone Sep 08 10:13:57 thats the only thing that got "left" Sep 08 10:14:03 did you mean Intents? Sep 08 10:14:06 oh. so anticlimactic Sep 08 10:14:52 yeah intents is what i ment Sep 08 10:16:00 bottom line can I add them in eclipse or do i have to edit androidmanifest.xml by hand? Sep 08 10:16:20 permissions you add to androidmanifests Sep 08 10:16:34 intent's aren't the same as permissions Sep 08 10:16:36 if that's your question Sep 08 10:16:43 (*intents) Sep 08 10:17:09 yep i kind of worked that out by looking at the manifest ....no no in Eclipse you create "uses permisions" and other types of "other" as it classifys it but Sep 08 10:17:48 but i did not see any thing for intents Sep 08 10:18:26 intents have nothing to do with android manifest Sep 08 10:18:37 ravilov: sure they do Sep 08 10:18:48 intent filters might ;) Sep 08 10:18:51 you mean specify intents? Sep 08 10:18:59 intent-filters, w/e Sep 08 10:19:04 yeah yea Sep 08 10:19:45 add them manually I suppose Sep 08 10:20:22 guess that's a problem if he can't even figure out what exactly they are called, lol Sep 08 10:20:41 Intenets Sep 08 10:21:00 it's not even about some "minor typo" Sep 08 10:22:18 oh jesus christ Sep 08 10:22:38 do the world a favor ;) Sep 08 10:23:07 dude, how exactly do you expect help with this kind of attitude Sep 08 10:23:24 hooligan321 https://developer.android.com/guide/components/intents-filters.html favor done Sep 08 10:23:41 what attitude Sep 08 10:23:42 ? Sep 08 10:23:48 uhhuhh Sep 08 10:23:59 all you people do is bitch and whine about some other persons non perfect typing Sep 08 10:24:04 get a grip Sep 08 10:24:07 get over your self Sep 08 10:24:15 .... that attitude Sep 08 10:24:16 *that* kind of attitude Sep 08 10:24:23 nah Sep 08 10:24:25 you started it Sep 08 10:24:26 now you can suck it Sep 08 10:24:28 nope Sep 08 10:24:33 you're the one doing it all Sep 08 10:24:39 the problem you face is that you don't fully understand how to use intent filters Sep 08 10:24:51 *and* that you are unable to ask a question clearly enough that we understand what you need Sep 08 10:24:52 what ever Sep 08 10:25:53 yeah, exactly Sep 08 10:26:10 I wouldn't expect any kind of warm welcome in here if I was you Sep 08 10:26:40 (talk about living up to your nick there) Sep 08 10:26:54 ESTEL! Sep 08 10:28:36 no reason to be rude .. Sep 08 10:28:58 bruv do your self a favour and shut up ;) .. my nick is my nick you wouldnt go up to some one called barbarian and start saying you wont get a warm welcome here and there.. because you decided to you wanted berate the person over there typing / spelling /grama skills on a irc chat room Sep 08 10:28:59 god you are actually pathetic b Sep 08 10:29:36 calm down, he didn't mean to attack you personally because of spelling Sep 08 10:30:39 hooligan321, your spelling and your nick have nothing to do with how you're welcomed here; your aggressive attitude and poor manners do though Sep 08 10:31:02 lol, best software dev of the day Sep 08 10:31:10 yeah you poor skills of perception took you down that road Sep 08 10:31:21 your poor judgement Sep 08 10:31:26 * ravilov summons SimonVT Sep 08 10:36:19 good summon him let him see how your trolling Sep 08 10:42:29 i'm off to bed. good luck hooligan321; hopefully your reading comprehension skills are better than your social graces, as i fear that's the only way you'll find the answers to your questions at the moment Sep 08 10:42:50 "calm down, calm down" Sep 08 10:45:36 take a look in the mirror bright spark Sep 08 10:47:21 exactly rgr they should Sep 08 10:47:25 i am happy person Sep 08 10:56:15 ok wow, this is insane - downloaded a 300+ MB file that is AS, took almost 700 MB after installation, started my first project... and now it needs to download gradle Sep 08 10:57:40 Enjoy! Sep 08 11:03:04 q: if I may, please :) ... should I be using try/catch inside a Timer ? when i got 1 running it crashes after a little while if i got 2 running then a little while comes a bit quicker and it crashes with a exception in Main Sep 08 11:03:28 no you should probably fix the crash :) Sep 08 11:03:42 ^^ Sep 08 11:03:44 fix the crash? the one that goes away if i take the timers out? Sep 08 11:03:52 yes Sep 08 11:03:54 that one Sep 08 11:03:55 lol Sep 08 11:04:57 normal operation I would assume is not to cause exceptions … so a fix maybe a good goal in your case Sep 08 11:05:18 but try catch would get me closer to why its having a problem right? Sep 08 11:05:28 say its corner case Sep 08 11:05:37 not enough resources or what ever at that moment in time Sep 08 11:05:38 it's kind of scary when you realize your IDE has a "power saving" mode... Sep 08 11:05:42 well no more than the exception that is thrown Sep 08 11:06:10 hooligan123 so no, a try catch does nothing unless you dont know the exception …which would be a bit odd Sep 08 11:06:50 ok i will show logcat Sep 08 11:07:14 well, no, read the logcat, and learn how to read it and find your own fixes Sep 08 11:07:16 StingRay_, use caution, he's been aggressive, rude and offending earlier Sep 08 11:07:41 learning is by far the best way, absolute answers are worth very little in comparison Sep 08 11:08:17 ravilov really ? does seem like this channel is getting more aggressive … maybe android dev is getting more frustrating :) Sep 08 11:08:42 and human race getting much more lazy Sep 08 11:08:44 :) Sep 08 11:10:00 nah, he's just special - he was incapable of explaining what he wants and then he got angry at others over it Sep 08 11:11:49 and your just a troll still going on and on like frekaing ariston Sep 08 11:12:25 see? Sep 08 11:13:29 see what? exactly all people can see is you behaving like a child trying to lure me in a proper row with you and its not going to happen so jog on kitty Sep 08 11:13:43 ;) Sep 08 11:33:04 http://www.mopri.de/2010/timertask-bad-do-it-the-android-way-use-a-handler/ <-- timertask is the problem not the code thank you. Sep 08 11:33:19 right pack up!!! where going down the pub :) Sep 08 11:38:20 *we're Sep 08 11:38:32 :) Sep 08 11:38:48 curse my dyslexia ;) Sep 08 11:39:17 still could of been born with no toes or worse ;) Sep 08 11:39:22 had to do it... :) Sep 08 11:39:26 i have a customer who wants to connect a custom usb device to android powered devices - anybody got experience with that? what do i need to know about to get this done? Sep 08 11:39:30 Is it possible to setup an activity intent filter for when bluetooth is enabled? I'm not talking about polling the BluetoothAdapter. Sep 08 11:39:50 how can i get the menu object from a fragment ? Sep 08 11:39:56 i want to dynamically change an item in it Sep 08 11:39:58 dnl_tp, a kernel module/driver might be necessary - ask in #android-root Sep 08 11:40:15 ravilov, thx Sep 08 11:41:02 shmoon_ : override onCreateOptionsMenu Sep 08 11:41:39 can i do that in fragment Sep 08 11:42:22 Ah, found something that I'll try out: http://stackoverflow.com/questions/9693755/detecting-state-changes-made-to-the-bluetoothadapter Sep 08 11:46:53 hi, how do I add android project as a library? Sep 08 11:47:01 I followed this http://stackoverflow.com/questions/24135842/creating-android-library-project but can find any project after clicking "add" button. Sep 08 11:49:08 shadej then you either did not import it or it is not marked as a lib project Sep 08 11:49:19 iirc, not used eclipse in quite some time Sep 08 11:50:08 StingRay_: I have imported it. may be your second reason. Sep 08 11:50:17 how do I mark it as a library? Sep 08 11:50:45 in properties/setup somewhere Sep 08 11:50:47 dont remember Sep 08 11:58:24 could this be a bug Sep 08 11:58:41 i get 1 from getCheckedItemCount() on a gridivew object when no itemis checked Sep 08 11:58:50 in the onclicklistener event Sep 08 11:58:56 onitemclicklistener Sep 08 11:59:25 unlikely Sep 08 11:59:35 more like, you get the state BEFORE anything changed Sep 08 12:00:18 hm how can i get the state after it changed? Sep 08 12:01:00 Hello ! Is it possible to set margins of the title bar of my app ? Sep 08 12:01:09 on* Sep 08 12:01:47 works well on layouts but i cant find how to do that on titlebar Sep 08 12:04:01 shmoon_, not sure, for testing purposes you can try posting a delayed runnable to some handler to check if this is even the problem Sep 08 12:04:28 mactar`, you might need to supply your own layout for the titlebar and then tell the window manager to use it Sep 08 12:04:57 ravilov: um, it seems like as soon as I tap an item it gets checked, is that how its supposed to behave? Sep 08 12:05:45 when mode is set to CHOICE_MODE_MULTIPLE Sep 08 12:05:47 seems so Sep 08 12:06:08 no idea how it's supposed to behave, I'm just guessing here Sep 08 12:06:12 trying to give you ideas Sep 08 12:06:15 shmoon_ yes Sep 08 12:06:21 ya thats the thing ,got it :) Sep 08 12:06:27 StingRay_: cool Sep 08 12:06:30 why would it not check it if your in multi select ? Sep 08 12:06:32 :) Sep 08 12:06:59 so basically i am showing a tick mark on itemclicklistener based on the isitemchecked value (but only after a longpress) Sep 08 12:07:14 so before the longpress if i tap anything it gets checked, hence the count is more than 0 always Sep 08 12:07:28 its taking quite some time to build an android app :S Sep 08 12:08:15 it will at first Sep 08 12:08:33 should be eaiser and quicker once you grasp the basic concepts Sep 08 12:08:45 i hope not a lot changes after the L release (which is probably by when I'll get done with the app) Sep 08 12:09:15 does it matter? android is and has always been fully backward compatible Sep 08 12:09:45 the only danger is if you are one who lets google design your app Sep 08 12:09:54 the more you do that the more it will change :) Sep 08 12:10:14 true but you always have to cope up with new design changes, like i heard action bar is getting deprecated with the new release which is something I am using Sep 08 12:10:28 never used it Sep 08 12:10:37 you don't *have* to cope with any of that Sep 08 12:10:42 it's counter productive in many cases Sep 08 12:10:53 your app will still work as expected and look reasonably decent no matter what Sep 08 12:11:36 ok cool Sep 08 12:11:40 people get this weird idea that the more they adhere to latest trends and "standards" the cooler and more accepted their app will be Sep 08 12:11:57 i think it happened with ios7 flat design Sep 08 12:12:08 ravilov the more it will be the same and indistinguishable from anything else Sep 08 12:12:18 yep Sep 08 12:12:26 also called "consistency" by google ;) Sep 08 12:12:39 ravilov but google needed to do that, cause programmers were doing crap visual design Sep 08 12:12:57 they can still do crap design, nobody's stopping them :) Sep 08 12:13:06 but it's a standard to stick to if you can design an app…so it's a good thing there Sep 08 12:13:17 visually design I mean :) Sep 08 12:13:25 yeah I mean that too :) Sep 08 12:13:38 can/cant Sep 08 12:13:52 cant visually design an app is what I meant Sep 08 12:14:00 yeah gotcha Sep 08 12:14:39 personally, I just stick to whatever the default design is for my target API, I care more about functionality and logic Sep 08 12:14:57 StingRay_: okay I got it Sep 08 12:15:20 I feel only poorly structured apps have the need to hide behind a "cool" design Sep 08 12:15:23 little tick box ? use as library or something ? :) Sep 08 12:17:37 ravilov the worst thing is a novelty in android l is the touch feeback stuff… adding a delay for a visual aesthetic is not really a great design decision on a whole … having to click 3 things to do what you want now takes up to 4 times longer ? really ? Sep 08 12:17:43 great! :) Sep 08 12:19:43 it's totally worth it so you can enjoy that lovely slide animation or whatever, right? :p Sep 08 12:21:55 StingRay_: yeah Sep 08 12:22:19 shadej knew it was there, just forgot where and what name :) Sep 08 12:23:24 StingRay_: It was the vitamio lib I were importing. I imported it successfully but I only see a black screen, any idea? Sep 08 12:23:44 I am trying to stream from a network. Sep 08 12:23:50 no idea what that lib is… Sep 08 12:24:35 StingRay_: it is lib for streaming. Sep 08 12:24:58 it's basically ffmpeg Sep 08 12:25:10 so it turns out after all this effort I still can't actually run my first hello world project in AS Sep 08 12:25:37 because after all these ginormous downloads on top of more downloads... it STILL didn't download the system images for the emulator Sep 08 12:25:40 Each time a notification arrives I set a new object to a pending intent, so I can get this object in in called activity when the user clicks the notification. The problem is that this object is not refreshing when multiple notifications arrives. I'm always setting a new object in the pending intent creation but when I retrieve this object in the activity the extra value is not updated Sep 08 12:30:39 ravilov: you get the emulator through the SDK Manager , not AS Sep 08 12:30:40 shmooz: any idea on how I can debug my problem? Sep 08 12:32:27 shadej: no idea, try different URL's to see if one works Sep 08 12:32:58 shmooz: the URL is correct I tried it in vlc Sep 08 12:33:50 shmooz: it supports rtmp protocol right? Sep 08 12:33:59 Hello! I use universal-image-loader and GridView. How load bitmaps not to ImageView src but in ImageView background, function displayImage Sep 08 12:34:57 problem solved using PendingIntent.FLAG_CANCEL_CURRENT Sep 08 12:36:01 shadej: I know this link works in my VideoView http://twit.cachefly.net/video/aaa/aaa0177/aaa0177_h264b_640x368_256.mp4 Sep 08 12:36:06 NDK: i have a project with many small static libraries and one big shared in which all the small static libraries will be linked into. Now i want to define a JNI function in a static library (the function is in the libABC.a as T) but after the linking it's not present in the libXYZ.so, what do i have to change that they are included Sep 08 12:36:17 shadej: can you hear any sound ? Sep 08 12:37:10 shmooz: wait a second .. Sep 08 12:37:32 Hi, anyone knows if i can use putStringSet for older devices than api 11 ? Sep 08 12:37:50 i use putStringSet here: Sep 08 12:37:51 http://pastebin.com/gvEksYu3 Sep 08 12:39:20 BulleTime: http://developer.android.com/reference/android/content/SharedPreferences.html#getStringSet(java.lang.String, java.util.Set) Sep 08 12:39:38 rayo: hard to say without any actual code Sep 08 12:39:49 static libraries are generally a problem, because they can never be loaded at runtime Sep 08 12:39:55 shmooz: no I dont hear or see anything Sep 08 12:40:06 why would accessing different parts of the app that need bluetooth permission start to hang when that permission is denied by the user? Sep 08 12:40:24 because no permission? :o Sep 08 12:40:27 after Deny, the app hangs for like 7 seconds before you can press anything Sep 08 12:40:36 Sicp: initiating the bluetooth service somewhere else and waiting on it to be done? Sep 08 12:40:59 shadej: if you're not hearing anything either, than it probably can't play that URL Sep 08 12:41:00 no Sep 08 12:41:30 shadej: try the URL I showed you Sep 08 12:41:31 there's one activity where I dont initialize the service, and it happens there too Sep 08 12:41:42 I had to use a flag in order to stop the prompt from appearing after choosing Deny, also Sep 08 12:41:48 shmooz: yeah I tried your URL and it doesn't work Sep 08 12:41:51 otherwise it doesn't go away, keeps prompting you to enable Sep 08 12:42:32 shadej: which Vitamio example are you learning from ? Sep 08 12:42:36 Sicp: Are you sure you are not trying to instantiate somewhere else too? like your flag not being set properly? Sep 08 12:42:44 dude Sep 08 12:43:00 shmooz, well that's a shame, because SDK Manager downloads are blocked by my corporate firewall Sep 08 12:44:02 shmooz: http://blog.enbake.com/streaming-video-android/ Sep 08 12:44:13 dude = how you dare to ask that? ^^ Sep 08 12:44:14 do you see the behavior I'm talking about concerning denying bluetooth permission causing the dialog to reappear endlessly until Allow is pressed? Sep 08 12:44:43 it's impossible that this is the default behavior Sep 08 12:44:52 danijoo: what do you mean? Sep 08 12:45:08 he's talking to me Sep 08 12:45:14 sonOfRa: but it should work if i make a static library with a Java_com_... function and then make a shared library and tell the linker it should include the static library. the Java_com_... function should still be exported in the shared one right? Sep 08 12:45:15 okay Sep 08 12:47:51 rayo: look at it with the needed elf-tools Sep 08 12:48:04 elfread etc. Probably a linker problem, nothing android specific Sep 08 12:48:16 if the static library isn't compiled with position independent code, you're screwed Sep 08 12:48:40 compiling static libraries into dynamic libraries is generally problematic. Can't you get a shared version of libABC.a? Sep 08 12:50:35 i use the ndk to build these, include $(BUILD_STATIC_LIBRARY) at the end of the Android.mk (libabc.a will be created) and in the shared library LOCAL_STATIC_LIBRARIES := abc and it automatically should include that (using include $(BUILD_SHARED_LIBRARY) at the end) Sep 08 12:51:18 say, how does one spacing between buttons and other elements even? https://dl.dropboxusercontent.com/u/21637985/Screenshot_2014-09-08-15-44-58.png Sep 08 12:51:32 libabc.a will be created? so there's abc.c? Sep 08 12:51:35 ..make Sep 08 12:51:39 Why not directly create a shared library? Sep 08 12:51:58 sq: equal margin between them Sep 08 12:52:11 I've never used the Android.mk shite, it's always been way too unflexible. I build my native code in a separate project with CMake, and drop the libraries in the code Sep 08 12:52:17 in the project, not in the code Sep 08 12:52:24 danijoo: all margins are 0 Sep 08 12:52:29 also paddings Sep 08 12:52:40 i adapted the project from different platforms (embedded and windows) and both used that system, many small projects and the link them together at the end Sep 08 12:52:48 sq: then there is 0 margin between them Sep 08 12:52:57 (if you are in a relative layout) Sep 08 12:53:02 see screenshot Sep 08 12:53:39 as long as i'm not missing anything, blue stuff is borders of objects Sep 08 12:53:45 not sure what the red thing is Sep 08 12:53:51 i see your screenshot. but you didnt write if this is the current behaviour or the expected nor did you give any layout file to check where your problem is Sep 08 12:54:21 one second Sep 08 12:55:03 https://gist.github.com/anonymous/9cee338de4b5cc9e89c7 layout Sep 08 12:55:28 and this is current layout, not the expected one Sep 08 12:55:57 sometimes it does it, sometimes it doesn't Sep 08 12:55:58 ... Sep 08 12:56:12 the hell of the what Sep 08 12:58:16 shmooz: This is my code : http://pastebin.com/aKSvyV11 Sep 08 13:04:18 shadej: no idea what's wrong, I haven't tried vitamio but I have used the native android VideoView and it works with that URL for me Sep 08 13:05:54 shmooz: okay let me use the videoview try your url again.. Sep 08 13:06:51 shadej: yeah, then you need to comment out the vitamio imports and use the native android imports Sep 08 13:07:24 shmooz: it worked Sep 08 13:07:45 so it's a vitamio problem Sep 08 13:08:20 yeah shmooz may be my device does not support it Sep 08 13:08:55 shadej: you have to install Vitamio separately depending on device Sep 08 13:09:33 the older devices need like version 6 and the newer like version 7 or whatever Sep 08 13:09:36 shmooz: what do you mean? it is lib and I haved included in my app Sep 08 13:10:00 shadej: yeah, Vitamio needs to be installed on user's devices separate from the app Sep 08 13:10:25 shadej: goto google play store and install the appropriate version of Vitamio for your device Sep 08 13:11:11 shmooz: it is not an app Sep 08 13:11:28 shadej: I know that, it's a lib that other apps will use Sep 08 13:11:45 I have installed apps that require Vitamio before Sep 08 13:12:12 and I was going to use Vitamio for my app, but because I have to tell the users to separately install Vitamio, I changed my mind Sep 08 13:15:22 shmooz no change. Sep 08 13:15:22 shadej: instead, when I have time, I will try to use ffmpeg lib directly, which is what Vitamio wraps itself around Sep 08 13:16:00 shadej: did you make sure you installed the correct version for your device ? Sep 08 13:16:36 shmooz: google play says it is compatible with my phone Sep 08 13:17:45 there are 3 versions now, ARMv7+NEON, ARMv7, ARMv6+VFP Sep 08 13:18:21 shmooz: wassup man Sep 08 13:18:30 I once tried the library Sep 08 13:18:39 hi Looney :) Sep 08 13:18:40 used https and the shit hit the fan Sep 08 13:19:51 well I have used a few apps that worked fine like TVGo Live Sep 08 13:20:01 that use Vitamio Sep 08 13:20:40 well, I tried building ffmpeg on my own Sep 08 13:20:47 chose wrong linking Sep 08 13:20:55 shmooz: If I have to install the plugin what is the purpose of including the lib? Sep 08 13:21:10 shadej: that's what sucks about Vitamio Sep 08 13:21:13 i think I chose static instead of using shared or the other way roun Sep 08 13:21:24 linker won't stop complaining Sep 08 13:21:31 unless by now they made it possible to make it transparent to install the Vitamio lib Sep 08 13:21:46 hmm Sep 08 13:21:50 I stopped because one simply doesn't waste time on hobby project Sep 08 13:22:01 when you can get paid work done Sep 08 13:22:13 Looney: yeah building ffmpeg is much harder, you gotta have the right version of linux and dependencies Sep 08 13:22:15 any other lib? Sep 08 13:23:02 nope, problem is to have right compiling and linking of openssl Sep 08 13:23:16 real pain in 'you know where' Sep 08 13:43:15 any android client lib for online video streaming? Sep 08 13:43:33 as in sending video or receiveing it? Sep 08 13:46:14 Mavrik: receiveing it Sep 08 13:46:55 to play or to process_ Sep 08 13:46:56 ? Sep 08 13:47:22 shadej, for playing, you have Google's opensourced YouTube player: https://github.com/google/ExoPlayer Sep 08 13:47:29 Mavrik: to play Sep 08 13:48:03 Mavrik have any good starter tutorials for GL surface stuff so I can do my own vid processing ? as in is that what I should learn ? Sep 08 13:48:13 guh. Sep 08 13:48:34 StingRay_, here's a demo I wrote if it helps: https://github.com/izacus/AndroidOpenGLVideoDemo Sep 08 13:48:56 cool will take a look, thanks Sep 08 13:48:58 https://www.virag.si/2014/03/playing-video-with-opengl-on-android/ Sep 08 13:49:09 I had to do a pixelization effect Sep 08 13:49:16 it's very rudimentary tho, but hopefully it'll help you :) Sep 08 13:49:53 I just like the idea of using fragment shaders Sep 08 13:49:55 :) Sep 08 13:50:19 I take it most live wallpapers are done this way…. actually are live wallpapers still a thing ? Sep 08 13:50:29 Still, just Sep 08 13:50:53 Muzei is a live wallpaper, isn't it? Sep 08 13:51:03 gonna say isn't the market like … 30% wallpaper :) Sep 08 13:57:24 Mavrik: any tutorial abt that Sep 08 13:57:34 Yep, Muzei is awesome Sep 08 13:57:42 Muzei uses RenderScript though with a Surface Sep 08 13:58:11 shadej, em, the developer guide linked in readme? Sep 08 14:02:19 Mavrik: I dont think that supports rtmp protocol which is what i need Sep 08 14:23:14 interesting you put the sleep in the render loop. Doing that with normal canvas writing caused me all sorts of stuttering. I found it better to leave it running and drawing when availble. It was capped at 60fps anyway by the surface holder mechanism. Sep 08 14:48:50 (since nobody is talking) Argh. I feel like an idiot. I completed a contract for a customer and don't remember how many days we agreed on. Now, I have to ask the customer. I feel like an idiot. Sep 08 14:49:14 wow, apparently "I feel like an idiot." twice. Must be true :D Sep 08 14:50:58 Aren't your contracts in writing... Sep 08 14:51:28 or at least e-mails/quotes/po ? Sep 08 14:55:18 "'scuse me, how many days was the project supposed to take? I need to know so I could estimate how much I can rip you off and get away with it" :p Sep 08 14:55:30 hi, is it able to switch between window and fullscreen (no titlebar ) after content is created ? Sep 08 14:56:14 pfn, usually yes. But this was just a quick 3 day thing. For a company that I have worked with before. Sep 08 14:56:55 StingRay_, Most stuff was in emails. Except for one thing... The actual number of days. Sep 08 14:57:12 I can see when I started, how long it took, etc. Sep 08 14:57:20 But that doesn't tell me what I quoted them Sep 08 14:57:37 a "3 day thing"? sounds to me you know how many days you agreed on ;) Sep 08 14:58:03 ravilov, yeah, the day that we over estimate, it will rain tequila! Sep 08 14:58:23 ravilov, the problem is.. 2, 3, 4? I don't remember which I said. Sep 08 14:58:34 Like I said, yes, I feel like an idiot :-/ Sep 08 14:59:27 argh. Sep 08 14:59:51 ravilov, and yes, I basically had to email them what you said... Sep 08 15:00:15 BulleTime, yes... but that depends on the OS version. Sep 08 15:00:34 BulleTime, different versions use different techniques to do that Sep 08 15:00:36 is there a way to know when the soft keyboard is done animating off the screen? -.- (I suspect no... or maybe with layout measurement change callbacks...) Sep 08 15:01:15 BulleTime, Here's a trick, start a new project in Android Studio with the wizard, create the full screen app, and look at how they do it Sep 08 15:02:06 ouch Sep 08 15:02:08 Hi I have this problem using FLAG_ACTIVITY_CLEAR_TOP, could someone please help? Sep 08 15:02:12 http://stackoverflow.com/questions/25716737/whats-the-best-way-to-clear-an-existing-task-to-top-without-changing-launchmode Sep 08 15:04:17 How do you scroll inside the device preview in AS? Sep 08 15:05:37 look at the dates in git... Sep 08 15:06:05 oh you forgot your estimate. well if its not in email then they dont know either ;) Win. Sep 08 15:06:27 rgr, I had to send them an email... sigh. Sep 08 15:06:31 I am looking for some example NFC code... any sugestions for GIT I can check out? Sep 08 15:08:21 Mrdarknezz, I'm trying.. can't do it either. Sep 08 15:09:35 Mrdarknezz, good catch. Did you tell Alex Ruiz about this? Sep 08 15:16:30 <|\|19hTVV0|F> anyone was able to change the splash image for a chinese tablet Sep 08 15:18:30 |\|19hTVV0|F: in your app? Sep 08 15:19:45 I think he means the boot image. Sep 08 15:25:47 flan3002 cant do, cause it would be a silly place to ask if he did Sep 08 15:26:11 Since when do people care if it's the right place to ask? Sep 08 15:29:54 Is there a way to have Android Studio’s tab completion work akin to bash’s, where it’ll insert up to the first differing character? Sep 08 15:30:29 This is android-dev, it has nothing to do with the boot image Sep 08 15:30:55 For instance, if I have .setFontSize() and .setFontWeight(), and I type “.setF”, I want it to insert “.setFont” instead of .setFontSize() Sep 08 15:31:57 no love for my FLAG_ACTIVITY_CLEAR_TOP question? :-/ Sep 08 15:52:00 if I setTranslationY(thisMuch) then, to return the view back to the old Y position, I should just setTranslation(-thisMuch), right? Am I missing something here? Sep 08 15:53:36 You're setting the absolute translation, not offsetting it Sep 08 15:54:21 SimonVT, in that case, I should just be able to store the original Y and set that again? Sep 08 15:54:56 yes Sep 08 15:59:00 Hi guys. Had a question about the play store, maybe someone here could help me out. I want to transfer 1 app to another account. Once transferred, that app would retain it's (public) install numbers and ratings & reviews, correct? Sep 08 15:59:55 I didn't even know that you could transfer an app... Sep 08 16:01:41 SimonVT, hmm, seems like I have to do old_y_position / 2 Sep 08 16:02:50 Mike: you can. It just doesn't exactly tell what that precisely entails Sep 08 16:03:32 setTranslationX/Y is absolute. If you set it to 10, it'll be 10. Previous translations doesn't matter Sep 08 16:04:27 ThomQ, I would _think_ that it's like you said. Since it's a built in functionality. But that's just my thought Sep 08 16:05:31 SimonVT, but.. file:///Users/afzal/Dev/android/android-sdk-macosx/docs/reference/android/view/View.html#setTranslationY(float) Sep 08 16:05:36 gah sorry Sep 08 16:05:58 http://developer.android.com/reference/android/view/View.html#setTranslationY(float) Sep 08 16:06:54 Yes? Sep 08 16:07:11 "relative to its top position" so it's not absolute Sep 08 16:07:12 Translating a view moves it relative to its layout position Sep 08 16:07:33 If you set translation to 10, then back to whateverThePreviousValueWas, it's where it always was Sep 08 16:09:51 Ah, correction I think. If you set it to 10 and then to 0, it's where it always was. Sep 08 16:10:19 SimonVT, if it was at 90, and you set it to 10, I believe it will go to 100 Sep 08 16:10:28 MikeWallaceDev_: Nope Sep 08 16:10:31 that's what it sounds like Sep 08 16:10:39 If translation was 90, and you set it to 10, translation will be 10 Sep 08 16:11:01 yes, but a _translation_ of 10 means that it will go to 100 Sep 08 16:11:05 If top it 90, and translation is 10, then yes, the view will be positioned at 100 Sep 08 16:11:15 That was not the question tho Sep 08 16:11:17 ? That's what I said :D Sep 08 16:11:43 lol, so basically, setTranslationY is always relative to what the original layout position was? Sep 08 16:11:56 and not the current position. would that be correct? Sep 08 16:12:10 Yes, relative to top Sep 08 16:12:10 it sounds like the first thing that Afzal said is correct. -thisMuch Sep 08 16:12:45 MikeWallaceDev_, lol nah, the latest statement is correct. -thisMuch doesn't work Sep 08 16:17:57 Is it possible to import a class from a project package in the build.gradle of the project? Sep 08 16:18:34 I can get it to resolve imports for any of the maven repositories, but not for the local classes in the project Sep 08 16:20:25 MikeWallaceDev_: Setting translation does not change top Sep 08 16:47:57 I'm using the graphics layout editor in Eclipse, and my layout appears very different on e.g. Nexus 4 and Nexus 10. I'm particularly puzzle why my "100dp" offset looks tiny on the Nexus 10". Isn't "100dp" supposed to scale and look similar on both? Sep 08 16:50:45 100dp will be the same physical size on all devices Sep 08 16:54:02 You're a physical device Sep 08 16:57:36 SimonVT you sure there is no variance there :) Sep 08 16:58:05 I know of some manuf. that set dpi based on what they want rather than pixels/inch Sep 08 16:58:15 StingRay_: If he doesn't know how dp works, it's easiest just to say it's the same size Sep 08 16:58:28 there is a, ~5% variance in dp sizes physically Sep 08 16:58:36 There's some variance because px are calculated based on density bucket, not device density Sep 08 16:58:40 pfn thell that to samsung Sep 08 16:58:41 some early pre 3.0 devices didn't set dp density properly Sep 08 16:58:42 But that's neglible Sep 08 16:58:44 tell* Sep 08 16:58:55 StingRay_, such as? Sep 08 16:59:04 their 1st tablet Sep 08 16:59:08 unless it's one of the 2.x galaxy tabs, that hasn't been a problem Sep 08 16:59:11 like I said, pre 3.0 devices Sep 08 16:59:33 you said that after what I said :) Sep 08 16:59:39 especially re tablets, no one knew what they were doing Sep 08 16:59:40 so yeah, was a gb device Sep 08 16:59:48 pfn> some early pre 3.0 devices didn't set dp density properly Sep 08 16:59:50 I said that first Sep 08 17:00:36 I said it first!! Sep 08 17:00:39 oh not on my chat Sep 08 17:01:07 [17:58:40] pfn thell that to samsung Sep 08 17:01:07 [17:58:41] some early pre 3.0 devices didn't set dp density properly Sep 08 17:01:10 :) Sep 08 17:01:22 whatever Sep 08 17:01:27 and considering it's within 1s Sep 08 17:01:32 it's basically same time Sep 08 17:01:39 pfn, correct answer was "whatevs" Sep 08 17:01:45 hang on your a programmer and you just said that ? Sep 08 17:01:47 wow! Sep 08 17:01:49 considering your ping is 2.638 seconds Sep 08 17:01:52 :) Sep 08 17:01:59 and my ping is .187s Sep 08 17:02:11 it's much more likely that my message came first Sep 08 17:02:38 I thought the chicken came first? Sep 08 17:05:13 Right, so 1 device out of thousands is messed up.. Guess there's no knowing what size dp will be then Sep 08 17:05:44 Is there an easy way to include another layout and have it be animated like a fragment on fragment transactions? Sep 08 17:06:02 I was hoping to have the contents already in my FrameLayout animate out when I replace them, but that's not happening. Sep 08 17:08:19 I guess I can just manually setup the animation on the previous contents. Sep 08 17:09:00 SimonVT I actually think they did it with the next 3 tablets also Sep 08 17:09:30 I have a tab 8.9 and tab 7(2nd) and very odd stuff there for the display Sep 08 17:10:18 well the 8.9 did, and I loved the size of that thing, perfect tablet size :) Sep 08 17:12:09 wow, AS is just... so STUPENDOUSLY slow Sep 08 17:12:28 Guess we'll have to resort to calculating everything at runtime Sep 08 17:12:33 does anyone know of any presentation lib, for basic intros etc ? Sep 08 17:12:57 I would have started eclipse fresh, made some changes, compiled the project, started the emulator, and deployed it in there... all by the time AS loads up Sep 08 17:13:18 I'm not even kidding Sep 08 17:13:57 ravilov something maybe wrong ? 1st thing I noticed when going from eclipse to AS was a speed increase Sep 08 17:14:28 dunno Sep 08 17:14:55 it could be the fact eclipse is on my private, highly optimized linux install... while AS is on a corporate win7 with full disk encryption :) Sep 08 17:15:11 both are on SSD though Sep 08 17:16:00 finally downloading 4.4 system images Sep 08 17:21:57 <|\|19hTVV0|F> bootlogo or splash screen, anyone knows how to change it (.rle file isn't exist) Sep 08 17:22:25 |\|19hTVV0|F: this channel is for app dev, try #android or #android-root Sep 08 17:25:07 <|\|19hTVV0|F> SimonVT everyone tell me to go to somewhere else :D Sep 08 17:25:23 guess why Sep 08 17:25:37 Well, now you know it's not this channel Sep 08 17:31:33 alright so I've found it, the app hangs when bluetooth is not on because the activity is doing what sonOfRa said earlier, trying to initialize a service Sep 08 17:32:01 http://pastie.org/9536843] Sep 08 17:32:05 without the left bracket Sep 08 17:32:33 when the hang is over, the "SERVICE CONNECTED" log appears Sep 08 17:32:55 what can I do about this Sep 08 17:34:02 what do you mean "do about this?" Sep 08 17:34:17 let it know that it's futile to wait Sep 08 17:34:20 SimonVT: Same physical size on all devices. Makes sense. Thanks. Sep 08 17:34:32 I dont even know why it's waiting, nothing in the code of oncreate or anything before it waits for anything Sep 08 17:34:43 I still haven't wrapped my brain entirely around Android's sizing yet.. Sep 08 17:34:44 ok so... downloading the 4.4w images is proving to be not the best choice ever Sep 08 17:34:46 let the activity know to give up on the service? Sep 08 17:40:27 What would be a good approach to place something 2/3 down the screen so it looks the same on all devices? Sep 08 17:41:01 vertical LinearLayout with three layouts inside with equal weight? Sep 08 17:43:00 hi all; can someone tell me if there's an option in Android Studio to ignore missing translation strings? Sep 08 17:43:04 Ztal i think if you use density independant pixels, most of it should be taken care of. they are like virtual pixels ya? Sep 08 17:43:34 That's what I thought.. Sep 08 17:43:40 Zta1, hmm, that's usually the wrong way to go about it on Android Sep 08 17:43:47 lordgreg, isn't that just a warning? in which case you can just ignore it mentally Sep 08 17:43:52 but you might hack it together with LinearLayouts Sep 08 17:44:08 ravilov: no, it stopped compiling. Sep 08 17:44:18 Zta1, however just making the content offset from bottom of the screen for some constant works way better Sep 08 17:44:58 lordgreg, that is weird... as a hack, you can add translatable="false" to all the strings it's complaining about, but that's probably a very bad idea Sep 08 17:45:49 ravilov: just found out you have to update build.gradle to include lintOptions { abortOnError false } Sep 08 17:46:09 Mavrik: So absolute positioning with dp should be the way to go? Of course, of something really should be centered, I'll center gravity. Sep 08 17:46:28 Zta1, it's way easier, way faster performance wise and usually scales better on different devices Sep 08 17:47:01 Zta1, of course, if by absolute positioning you mean positioning of the type "100dp high, 16dp margin off bottom, wide as screen" Sep 08 17:47:14 not "x 158, y 384, width 40dp, height 40 dp" Sep 08 17:48:15 dp and you might decide to use relativelayout to say "view" is to leftof "otherview" for example Sep 08 17:48:29 Mavrik: I get good results on most devices (when looking in Eclipse's graphical layout with all devices enabled), but 7" and 10" screen are looking weird. My offset from the bottom, that should place something on the lower 2/3 of the screen looks more like the lower 6/7 or something.. Sep 08 17:48:53 mhm, true Sep 08 17:49:08 How's that? Sep 08 17:49:21 for 7" and 10" I usually do separate layouts Sep 08 17:49:28 since mostly phone layouts don't apply to tablets Sep 08 17:49:42 ah Sep 08 17:49:46 so that's not the issue I usually contend with Sep 08 17:50:00 Zta1, but yes, you can use a linearlayout with weight if you want to achieve that Sep 08 17:51:52 I guess I'm just trying to understand what's going on. Sep 08 17:53:21 in what way? :) Sep 08 17:55:54 what I dont understand is with a 7 inch device like nexus, It appears bigger. I guess because its at a density of 213 for example to make things appear bigger. But then you find the action bar is too big or your views arent scaled properly. Not sure abbout that. Sep 08 17:56:14 I need to have two ImageViews inside one View. I would assume I make a compound view. So I need to have about 4 of those compound views inside one fragment and have different images in all of them. How can I do that because when I change the Image of one of the ImageViews, within the compound view, that will change the ImageView for all of the compound views in the fragment Sep 08 17:56:38 works Sep 08 17:56:47 final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); Sep 08 17:56:47 that call Sep 08 17:57:18 being called prematurely Sep 08 17:57:23 oh wow... apk size with support-v7 = 840k, apk size without support-v7 = 55k Sep 08 17:57:48 which support v7? actionbar? Sep 08 17:57:53 yeah Sep 08 17:57:55 55k is still way too much since this is a simple hello world app Sep 08 17:58:00 yeah, there's images and 9patches in there Sep 08 17:58:07 to make the actionbar on 2.3 :) Sep 08 17:58:14 yeah I know : Sep 08 17:58:15 :) Sep 08 17:58:16 ...Nevermind I figured it out Sep 08 17:58:21 I don't even need or want it really Sep 08 17:58:32 ProjectN, hmm, what exactly appears bigger? Sep 08 17:58:33 can't I get the same thing with ABS? Sep 08 17:58:46 something 48dp in size should be approximately the same physical size on all devices Sep 08 17:58:55 (ignoring the deviations inside density buckets) Sep 08 17:59:07 ravilov, yep, ABS is slightly bigger tho afaik :) Sep 08 18:00:29 oh is it? nevermind then :p Sep 08 18:01:13 found out why my trivial hello world app is 55k in size - 45k of it is in various sizes of the app icon :) Sep 08 18:01:56 *shrug* Sep 08 18:02:12 you'll probably have to include Play Services sooner or later Sep 08 18:02:30 so that's gonna be moot point :) Sep 08 18:02:54 what, play services for hello world? well that would be an overkill, lol Sep 08 18:03:05 nah, I'm just trying out AS, so far I'm not impressed by any bit of it Sep 08 18:03:27 Mavrik, what i mean is on a 10 inch tablet you have all your menu items showing there, but then you run the app on a nexus7, The action bar doesnt have room for the menu items. Sep 08 18:03:32 Anyone know how to get which column is the primary key from a cursor object? Sep 08 18:03:44 ProjectN, yes, because screen size in dp is different Sep 08 18:03:54 all phones will have approximately same dp size of the screen Sep 08 18:03:59 while tablets have it larger Sep 08 18:04:08 they also have different density and text scale Sep 08 18:04:14 lasserix, cursors don't have primary columns, tables do Sep 08 18:04:20 lasserix, it's almost always _id in sqlite Sep 08 18:04:22 cursors can be a result of a complex multi-table join Sep 08 18:04:51 given a cursor object, since i can iterate over the columns and get their names and types, is it possible to get which is the primary key, given that's its not a joined cursor Sep 08 18:05:18 probably not Sep 08 18:05:27 this is not what cursors are meant for Sep 08 18:05:38 the best you could get is the row number Sep 08 18:05:55 android Sep 08 18:06:47 is it possible to get from the sqliteopenelper? Sep 08 18:07:21 lasserix, all of that is on a different abstraction level Sep 08 18:07:43 yeah yeah i know but its what i am working with Sep 08 18:07:49 so either i can get it or i have to make a condition Sep 08 18:08:04 i can auto gen the columns and their types from a cursor Sep 08 18:08:19 problem is i need primary key and short of parsing the create table string Sep 08 18:08:26 then best you can do is just make assumptions Sep 08 18:08:30 right Sep 08 18:08:49 like, if it's called _id and is integer, then maybe possibly that could be it Sep 08 18:09:28 or you could query the info on the database given the table name Sep 08 18:09:31 I think Sep 08 18:10:00 gah, when will google fix "getDisplayName" for Android Wear :/ Sep 08 18:10:50 StingRay_: nah seems not Sep 08 18:10:54 StingRay_, I think the best you could get out of a sqlite db is the full CREATE TABLE string, which then means tedious parsing ;) Sep 08 18:11:12 hmmm… gimme a sec Sep 08 18:12:10 * ravilov waits for StingRay_ to come up with some magic Sep 08 18:12:46 http://www.tutorialspoint.com/sqlite/sqlite_pragma.htm Sep 08 18:12:50 http://boards.4chan.org/g/thread/44030929/tutorialguidehow-to-root-phone-model-working Sep 08 18:12:51 lél Sep 08 18:13:05 there will be a way if you can do that, to get attrib field of [pk] Sep 08 18:13:24 never done it but think it should be possible Sep 08 18:13:37 hmm Sep 08 18:13:56 this doesn't seem promising Sep 08 18:14:01 but good luck to anyone willing to ty Sep 08 18:14:02 try* Sep 08 18:14:07 lasserix PRAGMA table_info(tablename) Sep 08 18:14:37 ref : http://stackoverflow.com/questions/10472103/sqlite-query-to-find-primary-keys Sep 08 18:14:42 hmm Sep 08 18:14:43 thanks! Sep 08 18:16:20 letsss ssee Sep 08 18:16:21 well whaddayaknow Sep 08 18:16:39 not sure how that translates to API access Sep 08 18:17:00 it's a query…so erm…. rawQuery() ? Sep 08 18:17:02 :) Sep 08 18:17:30 oh wait or execSQL whatever one gives you the cursor Sep 08 18:17:40 cant really be bothered to look Sep 08 18:17:48 yeah and the result of pragma does look like a normal table Sep 08 18:17:50 but who knows Sep 08 18:18:14 * ravilov just got smarter, thanks StingRay_ Sep 08 18:18:31 fk ravilov dont blame me :) Sep 08 18:18:52 I just happened to have done things with table properties before for some reason I forget Sep 08 18:18:54 can't stop me :p Sep 08 18:19:01 problem is you get a cursor back but again, doesn't contain pk info Sep 08 18:19:07 just column name / column type Sep 08 18:19:27 yeah admittedly all I ever did was make SQL backups of databases, so the raw CREATE TABLE actually came in handy :) Sep 08 18:19:35 hey guys. I am trying to implement a runnable that will always check if a Queue has values and if it is true it will prompt the first user in the queue to make a question. I used a runnable to make sure it wont be interrupted. Here is my dummy code. Any comments for improvement are welcome. http://pastebin.com/zUVQCdDJ Sep 08 18:20:13 err maybe not lets see Sep 08 18:20:15 lasserix, I think at this point you should stop and ask yourself - is it worth it? :) Sep 08 18:20:17 time to pull out the cursor probe Sep 08 18:20:23 ravilov: yeah i have to Sep 08 18:20:29 hm tough Sep 08 18:20:31 boss wants more robustinitialization of our sqlite connector Sep 08 18:20:39 lasserix I'm pretty sure it has the info you need Sep 08 18:21:00 yeah Sep 08 18:21:12 i see now the columns are all the pragma details Sep 08 18:23:32 atheodor: maybe read something on java blockingqueue Sep 08 18:24:01 does this mean that my approach is wrong or that blockingqueue is a better one? Sep 08 18:24:10 i will check on it althought :) thanks Sep 08 18:24:49 blockingquue means each runnable will block subsequent runnables Sep 08 18:25:09 so if each runnable represents a question being asked, then it'll block subsequent till those questions are asked Sep 08 18:25:26 well i dont like while(true) it seems like it would be checking millions times per second. its a waste Sep 08 18:25:50 make sure when you use while loops like this, or in general when you do multithreading, to make sure your run { } contains a check to make sure the thread hasn't been interrupted so it can die if the system wants to kill it (ie the user quits your app) Sep 08 18:25:59 that's my way of telling the runnable that someone already speaks. but yeah it will check a billion times. It should block when someone speaks Sep 08 18:26:12 blockingqueue looks like the treat Sep 08 18:26:15 while (true) seems like a very good way to a lovely ANR Sep 08 18:26:16 Ashiren: yeah you are right Sep 08 18:26:32 afaik BlockingQueue.take() blocks when its empty Sep 08 18:26:43 atheodor: use an Executor service + runnable Sep 08 18:27:01 so if some other thread put something there, it will run Sep 08 18:27:17 too much information. thats good though. i will check your suggestions and come back to you with a 2.0 version. thanks so much guys Sep 08 18:27:18 whats the best wat to get the location and load a fragment (as you need to wait for location to get fragment data)? i mean, it would be better a single library for location and load from fragment or implement locationlistener on the main activity Sep 08 18:28:48 atheodor: make sure to use an executor so you don't create unnecessary threads Sep 08 18:29:10 if you just back your current queue with an executor that takes runnables when the question is answered you should be fine Sep 08 18:29:26 *executor as newFixedThreadPool(1) Sep 08 18:29:35 yeah the runnable i showed you would use an executor anyway Sep 08 18:29:46 then once a question is answered just do exectur.execute Sep 08 18:29:54 and grab the question of the quue Sep 08 18:30:00 *off queue Sep 08 18:30:06 so i can stick with my code as long as i stop the executor while some speaks Sep 08 18:30:13 some1* Sep 08 18:30:14 argghg! The wear app uninstalls from the watch every time I install it on the phone >_< WHY GOOGLE WHY? Sep 08 18:30:27 it used to work fine Sep 08 18:30:35 yay threading problem! i was struggling with it just today as well Sep 08 18:30:48 you are not alone mate Sep 08 18:30:51 :) Sep 08 18:30:54 when my adapter's list was constantly updated from other thread Sep 08 18:31:01 atheodor not sure what you mean but you can just check whether it is time to ask another question or wait, if wait, have a callback on the event speaker ends speaking to check whether queue is empty and if not begin execution Sep 08 18:31:22 then each question has a similar callback to the check queue if empty Sep 08 18:31:58 ok, enough AS for me, rebooting into linux and eclipse :) Sep 08 18:32:05 how to check what version of webview i have? (android 4.4.2) Sep 08 18:32:12 ravilov: why not intellij? Sep 08 18:32:20 1000x better than eclipse Sep 08 18:32:30 i resisted changing too... ;p Sep 08 18:32:33 so lasserix the isEmpty check should be done in the executor and not in the runnable Sep 08 18:32:56 or the !speaks check Sep 08 18:33:07 atheodor: i would set it up so you make a class that implements runnable with a superclass method that has onExecutionFinished/onQuestionAnswered Sep 08 18:33:16 got it Sep 08 18:33:22 let me do that :) thanks mate Sep 08 18:33:29 that method checks if the queue is empty / if someone is speaking, if not execute the next question Sep 08 18:33:42 then do the same thing for the speaker speaking on finished speaking Sep 08 18:34:40 *i say superclass if you want to subclass your runnables to be like QuestionRunnable SpeakerRunnable Sep 08 18:35:05 that way you can also have a superclass execute method that checks class type and throws it on a different executor/thread pool if you want Sep 08 18:35:12 have you tried the beta Android Studio btw? Im sick of Eclipse too Sep 08 18:35:23 yeah its great Sep 08 18:35:43 i think i ll stick with superclass. you had gave me a very good example last time if recall Sep 08 18:35:54 atheodor: make sure to shutdown your executors and i tend to wrap my execute(runnable) in RejectedExecuitionException just in case Sep 08 18:35:56 if you * Sep 08 18:37:00 lasserix, I thought intellij is basically the same thing as AS, seeing as AS is based on intellij Sep 08 18:37:17 in any case, no matter what anyone says, I really don't have a single problem with my eclipse setup Sep 08 18:37:27 and have no intention on switching Sep 08 18:37:33 i didn't either, but intellij is faster and cleaner Sep 08 18:37:35 hi Sep 08 18:37:35 * ravilov is starting to sound like a broken record :) Sep 08 18:37:58 as has gradle built in which is where it deviates from intellij (gradle is not built in) Sep 08 18:38:02 lasserix, I just tried AS which is based on intellij, it is slow as heck and to me personally uncomfortable to use Sep 08 18:38:19 I just don't feel good in it Sep 08 18:38:25 i gather speed wise intellij > eclipse > AS Sep 08 18:38:31 ravilov, lol slow as heck? ... yeah, I can't agree with that Sep 08 18:38:33 ^^ Sep 08 18:38:42 as soon as you add gradle to mix, its all over Sep 08 18:38:44 you have to run it a couple times i think before it caches Sep 08 18:38:46 too much "smartness", I don't like my IDE trying to think for me Sep 08 18:38:55 ravilov: you can configure all that ;p Sep 08 18:39:07 I spent several hours today configuring, lasserix ;) Sep 08 18:39:12 I have very strange behaviour. My activity loads fragment to it which at first show progress ring and after it loads data from web it shows some list. However when I press back button and exit application, after returning to it progress ring isn't visible Sep 08 18:39:20 and it occurs only with back button Sep 08 18:39:38 pressing home and resuming = progress ring is visible Sep 08 18:39:43 lasserix, in either case, why bother when I already have my eclipse all set up and ready to go, and above all it's comfortable to use (to me) Sep 08 18:39:57 (my app has service which works still after exiting this activity) Sep 08 18:40:40 uhm this must be a stupid question, but how do i make my layout do not enlarge when background drawable is too large? i just want it to be clipped Sep 08 18:40:47 my Eclipse decided to freak out when updated to 4.4W and i had to redownload it. Also many times im getting errors that aren't marked until I restart the workspace. Im downloading AS atm Sep 08 18:41:46 background is layer-list with bitmap set to repeat Sep 08 18:41:47 people stating Eclipse has no bugs are liars or Eclipse Developers :P Sep 08 18:42:48 sq have you tried setting a max width-height? Sep 08 18:43:01 atheodor, all of the IDEs mentioned have bugs, that's not even the point Sep 08 18:43:11 in fact AS might have the largest amount of bugs Sep 08 18:43:23 the point is to be able to work comfortably despite all those bugs Sep 08 18:43:27 atheodor: layout is variable height (and the height is what gets bigger) Sep 08 18:43:30 yeah but at least they are honest enough to call it a Beta don't u think? Sep 08 18:44:09 you make it sound as if eclipse devs purposely ignored the copious amount of bugs and decided to call it a stable release anyway Sep 08 18:44:18 ---> sq : then max height? Sep 08 18:44:34 well yeah thats what im trying to say :$ Sep 08 18:45:16 atheodor: uhm.. it's variable height.. if i set max height it will limit the uh variableness of the layout Sep 08 18:45:18 ok, that's your opinion Sep 08 18:45:22 to each their own :p Sep 08 18:46:56 sq you are right. forgot what i said Sep 08 18:47:11 forget* Sep 08 18:47:12 i'm on the second page of google Sep 08 18:47:44 does google have pages? Sep 08 18:47:46 seems like a very common problem but no results that work :| Sep 08 18:47:46 :P Sep 08 18:50:31 sq you want the background to be clipped ? Sep 08 18:50:40 yes yes yes i do Sep 08 18:50:48 well the view has to support it Sep 08 18:50:56 so something like an imageView would Sep 08 18:51:06 or if you did a customDrawable you could Sep 08 18:51:20 but this would seem like very bad design ? Sep 08 18:51:44 but but.. it's not like supporting clipping is more work than not Sep 08 18:51:59 NOT supporting clipping is more work Sep 08 18:52:25 surely all views can clip background.. Sep 08 18:52:27 so why do you need clipping? I sure hope you're not trying to use http logic where all images are joined into a single bitmap and used in various elements via clipping :p Sep 08 18:52:35 er, surely they can't Sep 08 18:52:50 ravilov: i have a repeating pattern Sep 08 18:53:03 ok? Sep 08 18:53:13 use it via an xml drawable Sep 08 18:53:25 that's what i'm doing Sep 08 18:53:29 can you share ur xml? Sep 08 18:54:04 this is what I used to get a checkerboard background Sep 08 18:54:14 Sep 08 18:54:35 the checkerboard_pattern is just a png with 2x2 squares of alternating grayscales Sep 08 18:54:38 well, https://gist.github.com/anonymous/60f96c9707e2ee0e58f8 Sep 08 18:55:00 @drawable/pattern is 128x128px png Sep 08 18:55:21 hmm, didn't know you have to tell the framework it's a 9patch Sep 08 18:55:26 thought it is autodetected Sep 08 18:55:48 what happens if you replace nine-patch with bitmap? Sep 08 18:56:33 i think the 9 patch is used to achieve the pattern Sep 08 18:56:58 it gets stretched Sep 08 18:56:59 or he probably used the nine patch tool to create it Sep 08 18:57:05 if it's a bitmap Sep 08 18:57:15 I see Sep 08 18:57:18 (just checked) Sep 08 18:57:23 I didn't expect that behavior Sep 08 18:58:19 http://stackoverflow.com/questions/3904852/android-layout-broken-with-9-patch-background Sep 08 18:58:26 is this ur issue? Sep 08 18:58:59 anyways, this thing works just fine in action bar, in layout with a fixed height but it enlarges the height of a variable-height layout Sep 08 18:59:10 my issue is not with 9-patch.. Sep 08 18:59:15 9-patch works fine. Sep 08 18:59:58 the 9-patch is like 1x4dp Sep 08 19:00:31 @drawable/pattern is bigger than the view :| Sep 08 19:05:49 is it normal that notifyDataSetChanged make my View visibile even though it was set to View.GONE? Sep 08 19:10:30 who ever said that comment about me not being able to read logcat earlier can go take a running jump as well Sep 08 19:12:10 you can't Sep 08 19:13:41 hokkaido, took a running jump... now what? :) Sep 08 19:13:44 er. Sep 08 19:13:51 bah. :D Sep 08 19:14:01 sorry hokkaido Sep 08 19:17:10 yacek19: notifydataset change invalidates your dataset, so the views will be rebuilt and that view.GONE no longer applies Sep 08 19:17:23 unless you mean the lsitview itself had the view gone Sep 08 19:17:38 I mean whole gridview Sep 08 19:17:55 you set View.GONE on the gridview itself? Sep 08 19:18:09 yes Sep 08 19:18:24 point is, I never set it to be visivle Sep 08 19:18:28 visible* Sep 08 19:18:44 it is in definition set in xml to be gone Sep 08 19:19:15 I think it is error in implementation of StaggeredGridView Sep 08 19:21:34 Visibility is used to swap between the grid and the empty view Sep 08 19:21:56 When the dataset changes, it'll set visibility Sep 08 19:22:10 of whole gridview? Sep 08 19:23:03 you can just override notifydataset Sep 08 19:23:13 call super then call setVisible Gone on your gridview? Sep 08 19:23:17 Yes, it sets visibility on the gridview and the empty view Sep 08 19:27:16 it's error in StaggeredGridView implementation.Standard GridView behaves properly Sep 08 19:42:31 hi guys.. I wanted to do an animated background, I have like 25 picture files that make out a gif.. anyways I load it in as an ImageView, and --> Sep 08 19:42:32 AnimationDrawable frameAnimation = (AnimationDrawable)img.getDrawable(); Sep 08 19:42:47 this works.. but, something I hadn't expected happened Sep 08 19:43:14 it follows when I switch Activities.. this animated background stays there.. is that suppose to happen.. and how do I stop it ;) Sep 08 19:51:57 no view should progress with you into another activity I dont think :) Sep 08 19:51:58 cause that would be wicked, though I think it's a new feature in android L Sep 08 19:52:51 so turns out.. the simple fact I had the gif files added into one imageview animated them Sep 08 19:52:58 I dont need the AnimationDrawable Sep 08 19:54:13 didnt know about that.. but I guess it makes sense. I'm very bad when it comes to allocating code Sep 08 19:54:17 should it be in Java or in XML Sep 08 20:00:40 more useful in code Sep 08 20:23:06 if you submit phone and 7 inch screenshots to the Play store, will those 7 inch screenshots show on 10 inch tablets? Sep 08 20:29:23 mattblang_: I think they show on the phone, too, so I'm going to guess yes Sep 08 20:29:47 if i use event bus then it would be possible to set a listener on my activity and trigger the onevent inside a fragment? Sep 08 20:30:38 noi listener, the eventbus declaration i mean Sep 08 20:30:58 well the fragment would subscribe Sep 08 20:31:09 or are you wanting to control that from the activity side ? Sep 08 20:31:35 could a fragment be on the eventbus and create an event? I don't see why not. Sep 08 20:32:10 oh right you mean have the fragment as the producer and the activty as the subscriber ? Sep 08 20:32:27 well let me explain Sep 08 20:33:16 please tell me how would you make GridView with "loading more" progress ring below it? Sep 08 20:34:14 yacek19 whats the problem ? as in what are you stuck with ? Sep 08 20:34:41 StingRay_: how to display this progressbar? Sep 08 20:34:56 footer I would guess Sep 08 20:35:02 or any viewGroup below Sep 08 20:35:08 loads of ways Sep 08 20:35:13 i have a mainactivity that implements locationlistener. so i want dbus to trigger the onActivityResult inside the fragment, not the activity Sep 08 20:35:55 StingRay_: footer, but how in GridView? Sep 08 20:36:04 in ListView it would be easier Sep 08 20:36:19 eventbus Sep 08 20:36:27 damn names Sep 08 20:36:33 yacek19 just a viewGroup anything Sep 08 20:37:43 its possible? am i getting wrong the right implementation of load data in fragments after getting location? Sep 08 20:38:20 or should i implement a custom locationlistener in every fragment Sep 08 20:38:49 or instantiate a custom locationlistener inside every oncreateview Sep 08 20:38:54 StingRay_: ok, but then this progress ring doesn't act like real footer to GridView, only as last item in ViewGroup, so when scrolling up GridView, it won't behave as appearing from down to up. Sep 08 20:38:59 cliffreich you know you can call methods directly on those fragments though ? Sep 08 20:39:24 yacek19 yes, but you detect the end scroll and do what you want Sep 08 20:39:33 you dont have to have it there all the time Sep 08 20:39:40 just when user is at the end Sep 08 20:40:25 StingRay_: of course, but then I can setVisibilty of this progressBar forcing it to show instantly, instead of smooth appearing from down to up Sep 08 20:40:25 yes i know sting, but what if fragment is running and location still not ready Sep 08 20:40:54 thats a design issue, nothing to do with running logic, and it depends on context Sep 08 20:41:15 fragment running what ? Sep 08 20:42:48 yacek19 I dont know, the api's allow you to do anything… up to you if you learn how…in which case yes you can Sep 08 20:43:04 lets say i use methods inside the fragment... the fragment started and its visible to the user, but still no data from onLocationChanged Sep 08 20:43:13 StingRay_: ok thanks for help. I will try Sep 08 20:44:30 so i need that eventbus or something trigger the onActivityResult inside the fragment when onLocationChanged Sep 08 20:44:43 cliffreich I think you maybe a bit confused Sep 08 20:45:20 onActivityResult has nothing to do with eventBus, and there is no reason why, if you had to, you would not call it direct Sep 08 20:45:45 so when would you ever do baseLineAligned=true Sep 08 20:46:29 im trying to do something like this http://awalkingcity.com/blog/2013/02/26/productive-android-eventbus/ Sep 08 20:47:19 cliffreich oh if your just following a tutorial then yeah do whatever it says Sep 08 20:47:32 often it's more about learning that actual implementations and design Sep 08 20:50:37 hm, pretty nice article on modern app architecture Sep 08 20:50:38 http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Sep 08 20:51:46 oh well ill keep trying Sep 08 20:52:17 g00s i love clean way articles Sep 08 21:00:40 g00s i'm skimming article.. is it just re-presenting the three-layer model? Sep 08 21:01:01 yeah i'll bookmark it for newbies Sep 08 21:01:20 guys whats that game called.. when you got like from 1-9 .. and I pick 3... then StingRay picks 3-5 .. then I go 3-5-2 .. then he goes 3-5-2-X Sep 08 21:01:24 yeah, definitely a good intro to it Sep 08 21:01:38 any one here familiar with imeicert on samsung devices @0x18162c ? Sep 08 21:01:52 although i have to say - maybe i just suck or something, but the ideal in the article always seems unreachable. Sep 08 21:02:16 scatterp not sure what you're after but maybe try #android-root, sounds like that kinda topic Sep 08 21:02:16 often wind up with some stupid coupling to an api at a layer i don't want Sep 08 21:03:25 sarbs trying to create an application to rebuild nv_data the file containg an imei on samsung s series Sep 08 21:03:36 I want to support Android 2.2. Do I target it or do I target API 20? Sep 08 21:03:47 g00s enforcing the ideal model often places strong restrictions on development, adherence to it should be a "flexible" goal like any ideology Sep 08 21:04:02 Kake_Fisk please dont ask 2 second google search questions :) Sep 08 21:04:18 oh, sorry Sep 08 21:04:35 you really build against latest and min whatever you want Sep 08 21:04:45 but 2.2 ? Sep 08 21:04:55 is that not…well….very dead now ? Sep 08 21:04:56 2.2 is like .4% market share Sep 08 21:05:01 if even that Sep 08 21:05:51 scatterp yeah definitely sounds like an #android-root question. this chan is almost entirely framework-and-up-specific Sep 08 21:06:25 Kake_Fisk: at least go for 2.3. Literally nobody has 2.2 anymore Sep 08 21:06:28 k know any more samsung specific channels really i was looking for helroz Sep 08 21:06:49 i don't, sorry. not sure what helroz is Sep 08 21:07:02 sarbs: 2.2 is at 0.7% :) Sep 08 21:07:08 ahhh, so close Sep 08 21:07:12 yeah :p Sep 08 21:07:13 But If I were to target 2.3 would it be able to run on 4.1? Sep 08 21:07:23 I'm grabbing a JSON from the internet. One of the values in the JSON is a date (ex. 9/21) and it displays it like 9/21 when I run it in Java. When I run it in Android it turns the data in to 9\/21.. is there any reason behind this? Sep 08 21:07:28 yes, any lower version will run on higher version Sep 08 21:07:43 unless you specify a maxSdkVersion, which, i dunno why you'd ever do that Sep 08 21:07:47 Kake_Fisk: set min sdk to what minmal level you want to support. everything up will work Sep 08 21:08:19 But then I don't understand what I would want as my targetSDK Sep 08 21:08:34 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Sep 08 21:08:43 Kake_Fisk: target sdk is what sdk is used for building Sep 08 21:09:03 https://developer.android.com/training/basics/firstapp/creating-project.html Sep 08 21:09:05 i usually set it to the sdk of my test phone Sep 08 21:09:14 I just pick a random from the list? API 17 for example? Sep 08 21:09:18 ah, okay Sep 08 21:09:26 is there any way to get the UI preview when doing dynamic fragments with FrameLayout? if not, that would be really awesome Sep 08 21:11:12 mattblang_ fraid not Sep 08 21:11:20 so thats awesome, right O.o ? Sep 08 21:11:24 StingRay_ sad face Sep 08 21:11:32 Sorry new at this, I dont understand... I make a Gridlayout, and then I set columcount and rowcount to 3 each... which should be 3x3 cells then right?.. but when I try and dragndrop a button there it gives me like 90 cells Sep 08 21:11:35 well yeah… mattblang_ it's called the emulator or your phone :) Sep 08 21:11:46 StingRay_ lol Sep 08 21:15:41 P3nnyw1se: thats because the drag and drop feature allows you to interactivly add rows/columns Sep 08 21:15:52 shit man, this is depressing. linkedIn keeps telling me 'coporations' are looking for candidates like you, and all the suggestions are in SF. Is there any way to tell linkedIn i don't want to go to SF :| Sep 08 21:15:56 it will adjust your set rows/columns number Sep 08 21:16:05 so if I wanna drag'n'drop and keep the things.. I need to do it all by typing Sep 08 21:16:10 ? ;) Sep 08 21:16:20 P3nnyw1se: or drop it in the right cell Sep 08 21:16:34 man.. I dont have that well an aim Sep 08 21:16:56 if you set it to 3x3 and drag in [1][3] thats fine. it will only change it if you drop it in lets say [90][90] Sep 08 21:17:09 P3nnyw1se: also drag and drop sucks :p Sep 08 21:18:35 P3nnyw1se: You should really learn how to write your layouts by hand. It'll help you produce layouts faster and more precise. Also, it will make you understand more about how it works. And you can always use the realtime preview... Sep 08 21:18:47 once you got familiar with xml styling, youll see that the drag and drop feature is very... limit Sep 08 21:18:50 limited Sep 08 21:19:16 First of all... saying DragnDrop sucks is basicly saying.. Settlers.. Sim City.. sucks... secondly.. I'm gonna write it Sep 08 21:19:50 not sure what drag and drop in xml has to do with sim city .. okay o.O Sep 08 21:20:17 What the...? Sep 08 21:21:02 when I say sucks, i actually mean "not as feature rich and precise as writing it down key by key". maybe you are more confident with that definition :) Sep 08 21:25:01 g00s i know a couple places in seattle looking Sep 08 21:25:28 i wonder why linkedIn never gives me seattle recommendations, hmmm Sep 08 21:25:35 maybe there is something i can set in the profile Sep 08 21:25:51 -Detroit, -SF :) Sep 08 21:26:01 lulz Sep 08 21:26:55 oreilly's 50% off everything back to school sale is almost done, crap i have too much in my cart :| Sep 08 21:27:16 g00s I dont think things like that are centric to you :) Sep 08 21:27:16 more the pro/business subscribers Sep 08 21:27:16 as always, whomever pays the most, gets the highest spam ranking :) Sep 08 21:27:51 when i started linkedIn 2009 ish it was actually useful Sep 08 21:28:22 i'm curious about this book http://shop.oreilly.com/product/9781119942900.do Sep 08 21:28:32 Design for Software: A Playbook for Developers Sep 08 21:30:07 StingRay_ back then, they didn't try to make you visit the site every day. thats when huge changes happened ... they tried to make everyone visit every day by pushing stupid notifications, etc Sep 08 21:30:29 for those people who get suckered into wanting to be a live node in that network Sep 08 21:30:41 maybe it worked, dunno :| Sep 08 21:30:45 hrmpf Sep 08 21:30:53 I just get indian and Uk recruiters for some reason Sep 08 21:31:12 yeah i hate recruiters that want to connect but i have no idea who they are Sep 08 21:31:28 which of course i always deny :) Sep 08 21:31:37 :D Sep 08 21:31:57 Android does not recognize the String "9\/22" as "9\\/22". why? Sep 08 21:32:10 Java does Sep 08 21:32:32 martiallaw is it in xml or code ? Sep 08 21:33:42 the String that contains 9\/22 is from a JSON Sep 08 21:33:57 well, maybe other stuff is going on there Sep 08 21:34:09 put it in code and see if it works ;) Sep 08 21:34:43 im curious why Java seems to recognize but Android doesn't Sep 08 21:35:08 ARM or INTEL cpu for emulator? Sep 08 21:35:13 dam, looking at io7 android really hasn't caught up yet :( Sep 08 21:35:13 I mean UI from a use/user point of view, other than that android wins at everything :) Sep 08 21:35:25 Java is a language, Android is an operating system. Both can't recognize your string. Sep 08 21:35:34 g00s: well it's converted to a String, shouldn't it not matter Sep 08 21:35:34 StingRay_ io7? Sep 08 21:35:46 martiallaw well by a json library, etc Sep 08 21:36:04 flan3002: i'm aware dude, surely you understand what I mean Sep 08 21:36:17 g00s yeah 7.1.2 to be exact :) Sep 08 21:36:28 what is io7 Sep 08 21:36:53 iOS 7 ? Sep 08 21:37:09 g00s oh sht I missed an "s" Sep 08 21:37:09 ios7 Sep 08 21:37:45 StingRay_ also, android still doesn't win at everything, like bluetooth :) Sep 08 21:38:08 or audio (or so I've heard) Sep 08 21:38:09 i can't stress how important that is, because it enables whole ecosystems Sep 08 21:38:16 audio latency, in particular Sep 08 21:39:16 iOS 7 yeah Sep 08 21:39:41 does it not ? I remember apples BT stack being , somewhat limited from a user pov Sep 08 21:40:41 if you are a producing a BLE gadget, you're in quite a pickle with android. BLE on 4.3 is pretty much not worth it. but 4.4 its passable. Now, you have to sipport 4.4 and L so you have 2 major versions to bridge. I wouldnt be suprised if oems just wait until L Sep 08 21:41:45 Hey does anyone know why my code holds references to variables I set in the previous onStart of my activity. Basically I'm creating a ProgressDialog in onStart, and hiding it later on. But when I bring the app into the background, and reenter, I re-set a new ProgressDialog, but my code later references the one from the previous run Sep 08 21:41:49 StingRay_ Apple's BLE stack is first class. Their BT 3 edr/dr rfcomm stuff requires mfi certification, etc - nobody uses that Sep 08 21:42:48 especially since BT 4.1 l2cap has connection oriented channels, for streaming which is like a slow low power rfcomm without the GATT data model Sep 08 21:43:07 will be around 5-15KB/s Sep 08 21:43:32 maybe a little faster sinc ethere is no GAT protocol overhead Sep 08 21:45:24 hello, I've a question regarding the camera2 preview api Sep 08 21:46:20 I'm currently trying to start up the camera on a nexus 7, but I'm getting a CameraAccessException. The error code for it corresponds to DEPRECATED_CAMERA_HAL Sep 08 21:46:46 is there any way to resolve this problem, or is it a hardware issue? Sep 08 22:11:26 nice, Comedy Central has an official android app Sep 08 22:11:37 Daily show here i come :) Sep 08 22:12:42 hello, my app is getting broadcasts form camera_button when it is on the background, however i only get it after a long press, is there a way to get the short ones as well? Sep 08 22:14:18 hm, i didn't know caterpillar made phones http://www.gizmag.com/cat-s50-rugged-smartphone/33721/ Sep 08 22:14:23 actually looks pretty good Sep 08 22:14:43 wet finger tracking too Sep 08 22:15:13 id buy that for a dollar Sep 08 22:15:26 g00s I did and I know JCB do too Sep 08 22:16:16 i've used one of these what we call "tradie phones", they aren't great, but that one looks alright Sep 08 22:17:11 hiya, i needed some help with using a viewpager Sep 08 22:17:32 the question abotu where is the best call to make the http call and how do i pass the data to each of the fragments Sep 08 22:18:39 same data to each fragment ? Sep 08 22:18:42 android-bhoot, ive been wondering about this as well. It appears as though the fragment has to be recreated Sep 08 22:21:32 Im hopefully wrong. But ve tried to "interact" with a created fragment but it seems the object is null Sep 08 22:21:41 android-bhoot best way to make a http call is with httpClient ? or a async http lib Sep 08 22:21:54 ProjectN I think you are very wrong Sep 08 22:22:15 good Sep 08 22:22:16 i am using volley to make calls and hence its an async call Sep 08 22:22:38 ProjectN: have a look at getSupportFragmentManager.getFragments() Sep 08 22:22:38 i am currently making the volley call in the Fragment that contains the viewpager view Sep 08 22:22:40 android-bhoot then do a few tutorials with adapters etc so you can ask specific questions Sep 08 22:23:15 StingRay_ or you could help me with some pointers more specific Sep 08 22:23:16 ;) Sep 08 22:23:25 pointers for what ? Sep 08 22:23:43 wht's the context of your comment to use getFragments() Sep 08 22:24:04 the problem is that i don't know when the http request will finish, the fragment in the viewpager is loaded by then Sep 08 22:24:10 how do i hook that all up Sep 08 22:24:47 rxjava :) Sep 08 22:24:53 you are asking too much Sep 08 22:25:08 almost like, how do I do make an app Sep 08 22:25:47 android-bhoot aha, my first victim! http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Sep 08 22:26:13 g00s classic :) Sep 08 22:26:38 why does that getitem method show that fragment being returned as a newInstance then? Sep 08 22:26:55 rxjava ftw Sep 08 22:27:02 rxjava + retrolambda Sep 08 22:27:10 = epicness Sep 08 22:27:25 g00s Sep 08 22:27:27 http://rpm2.com/ Sep 08 22:27:56 jug6ernaut did you work on that ? Sep 08 22:28:06 naa a buddy of mine Sep 08 22:28:18 oh yeah, the insoles Sep 08 22:28:24 yeah Sep 08 22:28:24 thanks Sep 08 22:28:28 np Sep 08 22:28:39 finally got to ask him, he was out of office all last week lol Sep 08 22:28:42 ProjectN getItem in the adapter ? Sep 08 22:28:48 question: say Sep 08 22:28:50 StingRay_, yeah Sep 08 22:28:50 oops Sep 08 22:28:56 returns whatever you do with it Sep 08 22:29:29 if you had multiple gif files loaded in as single pictures in imageviews and youwanted each animation to last the same what would you do? Sep 08 22:29:44 Im thinking about taking like 2000ms.. and dividing whatever number of pictures each view has to set each one Sep 08 22:29:53 question: say I have some layout, I want to put it in a linearlayout or something so that it would clip the inner layout so as to have rounded corners, any way to do this easily? Sep 08 22:30:06 How bad you think would it be to have some sort of model store in my app? Even using parcels im getting slowdowns as my model object is quite large Sep 08 22:30:28 I.e a global service to put and retrieve my objects rather than going object>parcel>object in bundles Sep 08 22:30:36 desmin88 http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Sep 08 22:30:38 \o/ Sep 08 22:30:43 i read it Sep 08 22:30:46 enjoued it Sep 08 22:30:48 enjoyed* Sep 08 22:30:53 looking at the examples now Sep 08 22:31:24 oooh Sep 08 22:31:37 I like. Sep 08 22:31:43 whats the difference between the LocationListener from Google Services and the regular API? why would i use the GoogleServices one? Sep 08 22:32:03 cliffreich they prefer you use google api for lock in Sep 08 22:32:20 oh Sep 08 22:33:17 g00s is that your post or someone elses Sep 08 22:33:58 ravilov, I would think you might use a framelayout and composite the views Sep 08 22:34:58 Hmm, why is chrome taking forever to switch between tabs Sep 08 22:35:05 For you too? Sep 08 22:35:12 desmin88, you're oom Sep 08 22:35:24 impossible Sep 08 22:35:26 paging makes chrome take forever to switch tabs Sep 08 22:35:31 ProjectN, thanks, I'll look into this Sep 08 22:35:40 Im at 2.4gb/16 Sep 08 22:36:06 well, that's your answer regardless of what you think your memory usage is at Sep 08 22:36:16 hmm Sep 08 22:36:18 Funnily, I feel like tab-switching got way slower on my N5 and my laptop at the same time. On my laptop, it's usually >= 1s. :/ Sep 08 22:37:49 This is odd because chrome://memory is saying its using 928k total, and I have only this and irc open. Sep 08 22:38:25 desmin88: Desktop/Laptop or Android? Sep 08 22:38:29 Just to make sure... Sep 08 22:38:33 This is my desktop Sep 08 22:38:42 Do you by any chance use ArchLinux? Sep 08 22:39:00 No im on 8.1 Sep 08 22:39:17 8.1 what? Sep 08 22:39:23 windows 8.1 Sep 08 22:39:33 Oh. Eww. Sep 08 22:39:45 ive disabled the flat ui so its just desktop, i like it Sep 08 22:39:59 linux user looking down on a windows user. Sep 08 22:40:04 stop the press ;) Sep 08 22:41:39 Well apparently I deleted all my bookmarks and it switchs just fine now Sep 08 22:42:00 That might be a reason... :/ Sep 08 22:42:05 So my timer is quicker on one phone than another...this is obv problematic when having highscores based on time and the time is different on different devices... Sep 08 22:42:23 Something added one bookmark per startup to mine... Sep 08 22:42:30 g00s, they said google API is more simple with better performance Sep 08 22:42:38 :^) Sep 08 22:42:46 hah Sep 08 22:43:14 cliffreich probably. especially things like geofencing which never seemed to work right in the platform apis Sep 08 22:44:06 but you need to ask if you want to add another 20k methods to your apk ;) Sep 08 22:44:26 for just getting a location, its not hard to use just platform apis Sep 08 22:44:32 1/3 of your 64k limit, gone. Sep 08 22:44:54 i'm surprised they havent unbundled some things so you can pick and choose Sep 08 22:45:04 its a huge monolith Sep 08 22:45:15 full of stars ... Sep 08 22:45:16 they need tight little packages for specific functions Sep 08 22:51:49 So my timer is quicker on one phone than another...this is obv problematic when having highscores based on time and the time is different on different devices... Sep 08 22:52:27 your timer is 'quicker? Sep 08 22:53:57 https://gist.github.com/px-amaac/5c81f738ba7660e3fb4b I have a gSon Problem. Sep 08 22:54:05 I have a model that is used by retrofit to parse JSON. Sep 08 22:54:16 I have 2 API calls. Sep 08 22:54:26 one api call returns a list of my object2 called results and a list of my object1 called locations. Sep 08 22:54:26 The other API call returns just a list of my Object1 called results. Sep 08 22:55:31 is there a way to use one class for this? giving them different names in the instance but the same key to look for? Sep 08 22:55:43 does it really have a 64k limit? I thought it would split into multiple packages if you run out Sep 08 22:58:34 cant I do folders inside drawables?.. put 10 pictures inside a folder and put the folder into drawable-mdpi Sep 08 22:58:40 errors if I try and use any of the pictures Sep 08 22:59:07 no folders Sep 08 22:59:18 well through gradle trickery you can Sep 08 22:59:28 theTextPaint.setTypeface( Typeface.BOLD ); Sep 08 22:59:33 why is that not working? Sep 08 23:00:25 desmin88 oh you mean collapse out at build time ? Sep 08 23:00:26 no folder.. man Sep 08 23:00:29 I got like 120 pictures Sep 08 23:00:30 :(/ Sep 08 23:01:08 StingRay_ that or you can have set res src to different folders inside a parent folder Sep 08 23:01:38 but still just the one folder ? Sep 08 23:01:49 not like it can link 2 folders ? Sep 08 23:02:18 Structure would be something like this layouts -> activities/layout, fragments/layout, blah/layout Sep 08 23:02:43 hmm Sep 08 23:02:56 I gotta ask, apps that use hundreds of pictures how do they do it Sep 08 23:03:01 they cant just have them all there in one big pile? Sep 08 23:03:10 download them from the internet Sep 08 23:03:16 P3nnyw1se example ? Sep 08 23:03:40 3d games Sep 08 23:03:45 oh Sep 08 23:03:50 so you mean textures ? Sep 08 23:04:01 I guess, Sep 08 23:04:08 well depends on the engine really Sep 08 23:04:27 many will combine into texture pages Sep 08 23:04:40 but it dont really matter that much about having 100's Sep 08 23:05:18 though some may use container formats to combine many into a single level resource Sep 08 23:05:33 rather than many different read/loads etc Sep 08 23:06:06 but speaking from an artist point here, I never really have had anything to do with code side stuff on engines Sep 08 23:06:21 well besides some tech input for visual stuff like animation etc Sep 08 23:08:07 hmm just seems silly to be homnest, why shouldnt it be able to handle folders Sep 08 23:10:08 hmmm I have 26 ppl using my app right at this moment, just need to add a few zeros to that :) Sep 08 23:10:18 hehe Sep 08 23:10:31 StingRay_, you too? Sep 08 23:11:03 Hi all. Question about Tween animations for a view; How do I keep the view in the Tween's end state after running the anim? Sep 08 23:11:58 ThomQ think there is a fill state or something Sep 08 23:12:19 fillAfter Sep 08 23:12:35 http://developer.android.com/reference/android/view/animation/Animation.html Sep 08 23:14:06 Q: so if you have a fair to medium quality app with some nice functionality… how do/have you guys advertised ? adWords an option ? Sep 08 23:15:13 I'm about to do all the marketing images and fluff … and starting to think how do I take the 15k downloads and make it 1.5 mil Sep 08 23:15:24 well my app is for a network of facebook pages and websites with a large userbase so adveritsing is easy Sep 08 23:17:08 advertising* Sep 08 23:18:06 StingRay_ thanks, yeah that must be it. Unfortunately for me, it doesn't work. http://pastebin.com/MQRfkDan Can you see what I am doing wrong? Sep 08 23:21:44 ThomQ looks fine, not if you can screw up a single tag that much though :) Sep 08 23:22:01 maybe something else you are doing with it causes the issue Sep 08 23:22:05 StingRay_, I dont know how well it would work but depending if there are similar apps like yours you could do a blog and review them along with yours. Sep 08 23:23:03 I would put my app up against other apps in the same category I think (like evolveSMS hancent 8sms and all that fluff) :) Sep 08 23:23:15 but I would want others to review them not me lol Sep 08 23:23:56 have 1 major issue left to solve though, t-mobile US!!!! Sep 08 23:24:07 I hate them….all of them Sep 08 23:26:22 wow g00s cool link Sep 08 23:27:50 right lasserix? im doing some major refactoring and code changes right now Sep 08 23:31:13 I cant force gridlayout cells to have equal size? :/ Sep 08 23:31:33 yes..just sec Sep 08 23:33:11 someone in here suggested me to use gridlayout and now Im just sad Sep 08 23:34:14 http://stackoverflow.com/questions/15261088/gridview-with-two-columns-and-auto-resized-images SquareImageView seemed to solve that for me. Sep 08 23:35:44 P3nnyw1se there are many opinions in here, based of different experiences, you should always take any answer as 99% a question :) then use it to learn till you dont have to ask :) Sep 08 23:36:04 Ive learned I cant use gridlayout if I wanna add weight Sep 08 23:36:27 having a screaming baby interfer every20th minute Sep 08 23:36:32 weight is to do with free space ? Sep 08 23:36:34 gets in the way of learning :P Sep 08 23:38:09 never used weights to fraction views before.. Sep 08 23:39:53 how have you done it Sep 08 23:40:18 me? Sep 08 23:40:26 yes Sep 08 23:40:53 I have always had at least 1 variable and 1 static, so never had to really consider the space shared Sep 08 23:41:11 erm Sep 08 23:41:11 so always had a remainder/free for the weight to work on Sep 08 23:42:02 eg… take away my weighted views and there would be a space left by the reminder views Sep 08 23:49:58 So if I had like 36 pictures of various sizes.. but wanted them to be displayed 6 columns 6 rows.. same size all of them ? Sep 08 23:50:00 what would you do Sep 08 23:50:50 depends on the pictures Sep 08 23:51:01 and how I wanted the small state to be viewed Sep 08 23:51:03 actually this is exactly how I would want to display it Sep 08 23:51:04 http://developer.android.com/guide/topics/ui/layout/gridview.html Sep 08 23:51:29 the whole picture in a square ? Sep 08 23:52:06 are they all 1:1 aspect ? Sep 08 23:52:08 yes .. make them share equal portion of the screen and if that means formatting pictures down, thats fine Sep 08 23:52:27 what is "formatting pictures down" ? Sep 08 23:52:44 you mean cropping them to square aspect and resizing ? Sep 08 23:52:50 yes Sep 08 23:52:55 how are you doing that ? Sep 08 23:53:08 Im not :P Sep 08 23:53:10 I want to Sep 08 23:53:36 Hello there! Sep 08 23:53:41 hi everyone Sep 08 23:53:48 oh then yeah, also need to make sure there is not a mem issue with that many Sep 08 23:53:49 Hello where!? Sep 08 23:54:31 i i have to solve a little problem and i need an advice Sep 08 23:54:58 i am still very noob in android dev and perhaps i need to know the best way or the more convenient Sep 08 23:56:10 can someone read me? Sep 08 23:56:32 yes Sep 08 23:56:34 tksko place your hands flat on the table and think of a card Sep 08 23:56:42 lol Sep 08 23:56:45 StingRay_ green! Sep 08 23:57:01 i dont get the joke :S Sep 08 23:57:25 tksko you didn't give me time to get to my crystal balls thats why! Sep 08 23:57:42 lol ok here we go Sep 08 23:57:54 sorry for me english first Sep 08 23:57:55 where we going? Sep 08 23:58:19 i have an app with a map and i track some devices on the map Sep 08 23:58:37 (every 10 seconds y get info from a server with anajax request and i put some dots in the map) Sep 08 23:59:08 now, i want to add an alarm system, where the user set a point with a raidus and select 1 of the "tracked items" in the map Sep 08 23:59:25 and i want to play a sound or something when the tracked item enters the radius zone Sep 08 23:59:41 P3nnyw1se so yeah I would have some kind of image loader that I gave a decode size to, then do some center crop or fit bounds type crop to give me squares of XxY size… then just set them I guess Sep 09 00:00:14 my question is which is the best way to keep the app running in backgoround to check evert 10 seconds the data and decide to launch the alarm.. Sep 09 00:00:17 okay.. gonna take a look at tomorrow, a bit annoyed at this now.. thought I could just make grids somehow Sep 09 00:00:19 P3nnyw1se, the link I showed you. SquareImageView just subclasses ImageView and measures for you. You can specify the size in the layout. easy Sep 09 00:00:24 a service?? thread? Sep 09 00:00:37 is there any way to get the app run in the backgground? Sep 09 00:00:47 will take a look thx Sep 09 00:03:22 tksko: umm you should read and google before asking here but afaik there is a whole class devoted to alarm scheduling Sep 09 00:04:50 but i need to keep something running to make the http request every 10 seconds Sep 09 00:05:08 its a heavy task Sep 09 00:06:18 so you make a server with a thread that does that Sep 09 00:06:27 or make a service with a handler that post delayed itself Sep 09 00:06:29 and does that Sep 09 00:06:58 but doing that every 10 for how long ? tksko Sep 09 00:08:08 until the device shuts down due to drained battery, lol Sep 09 00:09:02 it depends on the user choise Sep 09 00:09:03 so 2 or so hours then :) Sep 09 00:09:11 30 minutes.. Sep 09 00:09:16 1 hour max i though Sep 09 00:09:24 but normally 30 minutes Sep 09 00:09:36 I think thats really really bad design Sep 09 00:09:45 yes i dont want to kill the users battery Sep 09 00:09:59 y not Sep 09 00:10:01 but its an app to track buses Sep 09 00:10:10 you should maybe look at "push" rather than "pull" Sep 09 00:10:10 and geoFencing Sep 09 00:10:12 people normally use it to see where the buses are Sep 09 00:10:15 but dont know enough about your app, only that I would never use something that did that :) Sep 09 00:10:31 :( Sep 09 00:11:20 hmmm, why run in the background ? for when a bus is approaching ? Sep 09 00:12:04 I mean what data is it reading that it needs to know every 10 seconds ? Sep 09 00:15:57 top secret data Sep 09 00:21:03 the position of the bus in the map Sep 09 00:21:11 look Sep 09 00:21:27 go to this site: http://www.gpsurbana.com/ Sep 09 00:21:43 you only need to pull data while the map showing current location is is running Sep 09 00:21:53 in the top right corner, choose for example 505 Sep 09 00:22:29 i take the info from that page and do the same but in an android app Sep 09 00:23:04 currenly i have more than 2500 installs, and 1000+ active users every day Sep 09 00:23:42 this is my app: https://play.google.com/store/apps/details?id=com.tkskoapps.bahiaurbana Sep 09 00:38:08 so? :S Sep 09 00:38:13 i am still reading some tutorials Sep 09 00:38:23 services, alarms Sep 09 00:47:25 just use a handler Sep 09 00:47:30 postDelayed a runnable Sep 09 00:47:37 that at the end of the runnable calls postDelayed again Sep 09 00:47:43 only run it when the map activity is open Sep 09 00:49:43 yes.. but i need to keep the user in the app Sep 09 00:49:50 no Sep 09 00:49:53 you can;t do that Sep 09 00:49:57 if the user quits the user quits Sep 09 00:50:07 what if they get a phone call? Sep 09 00:50:11 yes but the idea is to set an alarm Sep 09 00:50:26 that's a seperate problem Sep 09 00:50:35 if they want to set an alarm when a bus is at a certain location Sep 09 00:50:37 leave the app, and wait for the alarm Sep 09 00:51:01 the alarm is kinda independent of the app, the app sets the alarm to happen but the alarm happens regardless if the app is visible Sep 09 00:51:08 thats the idea, the ability to set an alarm when a bus is at certain location Sep 09 00:51:18 and i need to run a service to keep track of the bus Sep 09 00:51:22 just use the alarm service class or whatever that is and fire off an intent to show some dialog prompting the user to open the app Sep 09 00:51:36 you shouldn't need to keep track of the bus you know where it is supposed to be Sep 09 00:51:47 just check where it is when the alarm goes off Sep 09 00:52:07 if buses arrive ahead of schedule they don't leave before they are scheduled too Sep 09 00:53:09 depends where you live ;) Sep 09 00:53:54 really? Sep 09 00:54:00 where do buses leave ahead of schedule? Sep 09 00:54:54 around here, the timepoints they have to not-leave-earlier-than are sometimes quite a distance away from each other. Sep 09 00:55:10 so in light traffic, the stops in between can see a bus a good 5 or 10 minutes early. Sep 09 00:55:49 guess i am thinking of trains then Sep 09 00:56:32 then tksko you need to just ping it like 5 times, 30 min before, 20 min before 10 min before and 5 min before and then it when it actually is scheduled if not already Sep 09 00:56:41 5 pings over 30 minutes is nothing Sep 09 00:57:13 even 10 pings is nothing, but the key is to constrain it to some delta before the scheduled arrival is Sep 09 01:05:00 i cant trust on schedules Sep 09 01:05:14 i need to consult that website to get the current position of the unit Sep 09 01:05:32 its real time tracking Sep 09 01:14:16 well i have to go Sep 09 01:14:19 thanks for helping Sep 09 01:14:22 i will continue reading Sep 09 02:04:26 hey all, don't know if I'll get an answer at this time (well it is 10AM here), but anyway here goes Sep 09 02:06:32 I am trying to implement a custom ArrayAdapter in the NavigationDrawer, and my app keeps crashing, without logcat logging anything. So I have no idea why it's not working. Does it suffice to setAdapter() to mine, or is there something extra I need to do? Or am I missing something in my ArrayAdapter? Sep 09 02:09:01 sounds like you need to step thru it in the debugger Sep 09 02:09:31 make a break point before it terminates Sep 09 02:09:38 that should give you a clue Sep 09 02:09:57 that you are not getting output in the logcat is odd Sep 09 02:10:44 you should try and verify that you are not filtering out the messages or missing them somehow Sep 09 02:11:18 Ok. And how do I do a gdb next w/ the debugger? All I can do are steps Sep 09 02:11:35 Removed all filters still nothing Sep 09 02:12:02 I don't know gdb very well, you are using the NDK? Sep 09 02:12:31 it been a long time since I have used gdb Sep 09 02:13:06 NDK? Is it possible to not enter method call, but still continue debugging in a step by step way? Sep 09 02:13:38 ya, normally its called step-over Sep 09 02:13:50 you should just google for the gdb docs Sep 09 02:13:55 or look at the man page Sep 09 02:13:57 its all there Sep 09 02:14:14 in fact to answer your question that is what I would have to do :) Sep 09 02:14:34 man gdb Sep 09 02:15:39 wait, are you using the NDK or not? Sep 09 02:16:03 Haha ok cool thanks, I saw step-over but didn't think that you be it. Sep 09 02:16:21 Leeds: no I don't think so. At least I haven't installed it. Sep 09 02:24:44 Ok restarting Android Studio got logcat working again Sep 09 02:25:53 is anyone doing NFC stuff... I am looking for some sample projects using android studio Sep 09 02:26:17 How can I draw UI views on top of an app that renders to EGLSurface/EGLDisplay? Sep 09 02:26:51 make the surface a glsurface view add the other views on top of it Sep 09 02:27:29 How do you make it a GLSurfaceView? I'm digging for info on how to migrate Sep 09 02:28:49 any pointers for what to google? Sep 09 02:45:08 is anyone doing NFC stuff... I am looking for some sample projects using android studio Sep 09 02:45:48 maybe now that iphone 6 has NFC more people will be looking into it IrishGringo :P Sep 09 02:46:26 you could also try searching github, IrishGringo Sep 09 02:46:41 iphone may not have nfc... Sep 09 02:47:35 and I was looking at git... hoping someone has some special hints Sep 09 02:49:13 IrishGringo it has an NXP controller :P Sep 09 02:49:20 (or so they say) :D Sep 09 02:49:37 i've heard that rumor as well... Sep 09 02:50:02 I give is a 70 percent chance there is NFC Sep 09 02:50:05 or somebody was playing a huge prank to take a pic of the mainbaord with the controller :) Sep 09 02:50:22 i think its 100% because of the amex deal Sep 09 02:50:28 well, 99% to get some slack ! Sep 09 02:50:41 gotta leave a little wiggle room there Sep 09 02:51:05 I hope so.... but they have iBEACON as well... and you apple makes you join the MFI program for that. Sep 09 02:52:08 i'm more of an iOS developer... and I have not seen any API's for NFC Sep 09 02:52:24 but lots for iBEACON Sep 09 02:52:28 IrishGringo http://9to5mac.com/2014/09/07/apple-and-disney-stores-upgrading-ibeacons-and-nfc-scanners-ahead-of-iphone-6-launch/ Sep 09 02:52:35 and you can do payments that way Sep 09 02:52:56 payments with ibeacon O.o ? Sep 09 02:53:08 Hi folks, anyone can help me? I need to know how to test what is the fragment currently being displayed in my app Sep 09 02:53:25 an ibeacon is just a BLE device sending ADV_IND packets with a mfg id for the most part Sep 09 02:53:33 I'm actually working with the Gimbal 10 devices now on iPHONE.... Sep 09 02:53:40 and some 16 bit values to distinguish one beacon from the next Sep 09 02:53:51 I have about 10 of them sitting on my desk right now Sep 09 02:54:16 g00s: yep... your right Sep 09 02:54:19 Btw I agree, 99% NFC is coming to iphone 6 Sep 09 02:55:52 Apple will have some NFC-ish... but I am not convinced that its going to work the same as Android. and NXP controllers do not function the same as BROADCOM controllers. Sep 09 02:56:18 "iBeacons can be useful for NFC mobile payment technologies as a form of authentication. If Apple knows where a customer is in the store to a precise degree, it can ensure that is it wirelessly connecting to the correct iPhone for mobile payments." ... ah interesting Sep 09 02:57:53 Hi Sep 09 02:58:06 I'm not debating apple will have blue tooth on their devices.. they have it now... I am not convinced that its going to be NFC that android does... I don't they will be compatible... different cultures... different tech Sep 09 02:58:23 iBeacon is fairly long distance... NFC is just 5 mm... Sep 09 02:58:35 I havea simple application with one button and one textview. When you click the button it show show a text in a textview and if you click it again it show hide the text Sep 09 02:58:40 but back to my original question... I was looking for some sample NFC code for android... Sep 09 02:58:42 yeah i was interested to see how ibeacon + nfc would be used together Sep 09 02:59:07 Anyidea? I wana count the number of the clicks and it its udd it show hide the text Sep 09 02:59:17 is there any simpler way? **** ENDING LOGGING AT Tue Sep 09 02:59:59 2014