**** BEGIN LOGGING AT Wed Apr 24 02:59:58 2013 Apr 24 03:02:38 Nobody here? Ok, thanks anyway. Apr 24 03:14:50 Need someone willing to help on a not so easy problem. Apr 24 03:17:33 any advanced devs willing to help a new dev? Apr 24 03:18:11 mmoassistdev1: you know your not gonna get answers to questions like that Apr 24 03:18:38 ok Apr 24 03:18:48 or rather, given the question, no1 will care to respond to a question like that Apr 24 03:19:12 if you have a problem, just ask the ACTUAL question that needs solving Apr 24 03:19:17 then you may have more luck Apr 24 03:19:19 :) Apr 24 03:19:25 kk thx Apr 24 03:21:40 need help writing a class that will gather get event output from an inputstream and coverting it to string line by line as it is filling the inputstream. current problem is i must fill some sort of buffer before i can get the output and btw getevent is a continuous stream so it has no end. Apr 24 03:24:47 StingRay_: now, i have to use your pic http://kofegeek.files.wordpress.com/2012/01/403319_142372949212972_100003208032044_175841_151378192_n.jpg Apr 24 03:25:15 that is awesome Apr 24 03:25:51 I laughed for hours 1st time Apr 24 03:26:18 http://crazyhyena.com/imagebank/g/funny-bear-grylls-in-australia-koala-tree-photo.jpg Apr 24 03:26:23 just the face Apr 24 03:26:38 ha Apr 24 03:26:40 haha Apr 24 03:27:23 lol Apr 24 03:27:57 has anyone here used GraphView before? I cannot figure out why but the "dynamic" mode only updates the view if i tap it repeatedly Apr 24 03:31:16 android dont have a GraphView Apr 24 03:31:26 I take it you mean some lib ? Apr 24 03:31:36 yes Apr 24 03:31:46 com.jjoe64.GraphView Apr 24 03:32:49 i see lots of videos of it working great, updating autonomously Apr 24 03:33:23 even the cookie-cutter demo app from github has the same problem - it won't update the view by itself Apr 24 03:33:29 is there a way to fill an inputstream that is continuous never ending with fake data so that it fills the buffer and i can get the correct output that i need? or how would i implement a non blocking io that will read this inputstream line by line without blocking until there are no more lines to be read. Apr 24 03:35:30 btw it seems like i can only get output after 4096k has filled the inputstream. this would be the source of my problem Apr 24 03:37:28 StingRay_, https://github.com/jjoe64/GraphView this one if you're interesting Apr 24 03:37:40 mmoassistdev1: you tried looking at bufferedInputStream ? Apr 24 03:38:01 where you can set the buffer size Apr 24 03:38:15 buffer is such a funny word when you think about it Apr 24 03:40:03 i have tried using bufferedinputstream with a stringwriter but this still has the same problem. it might be possible that i did not implement bufferedinputstream properly because i am a new dev. Apr 24 03:42:53 mmoassistdev1: http://stackoverflow.com/questions/8148619/bufferedinputstream-read-not-reliably-returning-data-to-my-app-data-bunches seems like what you want though Apr 24 03:47:23 that is an example that i have not read before but after reading it. it seems to be reading from a txt file using fileinputstream. the stream i would like to read would be a datainputstream Apr 24 03:48:13 i write the getevent to the dataoutputstream wich in turn starts filling the datainputstream Apr 24 03:53:25 I found some time ago a list with many application examples (other than the official google examples) and lost it, do anyone have a good list of example apps ? Apr 24 03:56:40 thx for trying to help stingray =) Apr 24 04:00:39 there is an open source app that can accompish what im looking for. android terminal it will output the getevent data to a text view as data arrives this is exactly what i need but i have failed to understand the sorce and how this is done Apr 24 04:09:14 after reading some stuff i believe what im trying to achive is reading cammand output. there are probly some good examples of that that i have not read yet.llike this one http://stackoverflow.com/questions/6896618/read-command-output-inside-su-process Apr 24 04:39:40 anyone familiar with sending terminal commands via app and recive output immediately? Apr 24 05:13:45 im reading an android book and theres an example in the book where they are using a parent activity to handle fragment events...the books uses an example where they declare "private onNewItemAddedListener onal;" then they go ahead with a try catch right after the super.onAttach call where it tries "onal=(onNewItemAddedListener)activity;" i guess they are seeing if its been implemented yet, then if not, they throw a must Apr 24 05:14:44 because eclipse is not finding it Apr 24 05:15:36 if there isnt, then i dont really understand why they did "private onNewItemAddedListener;" and also, where did they even ever use the implements keyword? is this a way around having to use that keyword? Apr 24 05:17:04 no Apr 24 05:17:19 anyone have experience getting a fragment to handle the action bar 'up' button? Apr 24 05:18:11 I have an onOptiionsItemSelected callback in my fragment, but it doesn't seem to be receiving the android.R.id.home item Apr 24 05:19:11 this fragment is being hosted in an activity (and actually im not really sure if the fragment is the appropriate place to handle the action bar 'up' button, should it?) Apr 24 05:19:12 Hi, I put this in my "select image" intent : intent.putExtra("crop", "true"); .It works if the user selects a pic from the gallery, but not the file manager. Is there a way to get it to work ? Apr 24 05:32:40 im reading an android book and theres an example in the book where they are using a parent activity to handle fragment events...the books uses an example where they declare "private onNewItemAddedListener onal;" then they go ahead with a try catch right after the super.onAttach call where it tries "onal=(onNewItemAddedListener)activity;" i guess they are seeing if its been implemented yet, then if not, they throw a must Apr 24 05:34:15 anyone? i cant continue unless i understand wat they did lol. is "private onItemAddedListener onal;" a callback declaration? Apr 24 05:35:55 hexacode: I take it they are talking about a listView/Adapter ? Apr 24 05:36:21 http://developer.android.com/reference/android/widget/AdapterView.OnItemSelectedListener.html <--- google search is an amazing tool ;) Apr 24 05:37:33 actually Apr 24 05:38:01 umm they are talking about a function in the activity object Apr 24 05:38:27 but they are acting like its a class, and my ide doesnt seem to recognize it. im still looking into what you linked me Apr 24 05:38:53 well yeah forget what I linked Apr 24 05:39:06 I read your thing as "selected" Apr 24 05:39:06 ill bin the book Apr 24 05:41:20 http://pastebin.com/wpPWDQD3 Apr 24 05:42:37 are they using the interface name as a class? Apr 24 05:42:56 i havent worked much with them, but thats rlly the only thing i can think of even though they didnt use the implements keyword Apr 24 05:45:50 well i attempted to use bufferreader and inputstreamreader. i still have the same problem readline() is blocking when there is a line to be read Apr 24 05:46:40 maybe the problem is that its reading all of it as one line Apr 24 05:47:26 but thats not the case becasue i belive readline looks for \n Apr 24 05:48:30 oh it's a fragment interface Apr 24 05:48:38 for calling main activity Apr 24 05:49:33 so OnNewItemAddedListener is just the method name to the interface thats exposed Apr 24 05:49:57 btw I'm an artist not a programmer, so my explinations may be a little…..erm….. creative Apr 24 05:49:58 :) Apr 24 05:51:03 ah thats cool Apr 24 05:51:17 so you can cast from function to interface, so long as the interface holds the function Apr 24 05:51:46 in other words, we can avoid using implements keyword? Apr 24 05:52:08 not sure what you mean implement keyword Apr 24 05:52:39 well the idea is you declare and interface, so that any parent activity can implement that interface so the child can call it's local method that is interfaced to the parent, whereby the parent does something Apr 24 05:52:59 how can i read line by line from a inputstream. attempting to get the output of the getevent command as data arrives. Apr 24 05:54:02 hexacode: I had lots of interfaces to my fragments, but have recently ditched them for event bus Apr 24 05:54:17 so I think I must have wiped the knowledge from memory :) Apr 24 05:57:20 mmoassistdev1: what kind of data? Apr 24 06:00:47 the data is touch events trying to capture them line by line Apr 24 06:01:11 but everything i try only otputs if some type of buffer is filled i think its a 4096k buffer Apr 24 06:02:11 this is a problem if the user only taps the screen i dont get enough data to fille the buffer so i get no output and the read just hangs waiting Apr 24 06:02:51 you could maybe try BufferReader Apr 24 06:03:23 and bf.readLine(); Apr 24 06:03:28 only work around i have found is having the user tap the screen to fill this buffer but then i get a bunch of taps that i have to filter out Apr 24 06:05:29 how are you trying to read touchevents through an inputstream? what is being tapped? Apr 24 06:05:35 thats what i just tried and i get the same outcome as every other method i have tried i only get output when 4096k has filled the inputstream Apr 24 06:06:24 the screen is being tapped and if you pass getevent to the outputstream the inputstream will start filling with the touch events Apr 24 06:07:36 android terminal can output getevent as the screen is tapped . i dont understand why this is so hard to do Apr 24 06:09:00 if you have a rooted device and android terminal type su to get super user permitions then type getevent. you will then see what im trying to accomplish Apr 24 06:10:39 android terminal can output the data of getevent as you tap the screen but for some reason everythingi have tried makes me have to fill some buffer just to get the output wich in turn gives me data it dont need. i rely dont want to have to filter all of that data out Apr 24 06:11:11 no way to read a smaller buffer? Apr 24 06:11:19 of byte by byte? :-) Apr 24 06:11:42 of=or Apr 24 06:12:17 no because like i said read will block on every method i have tried if 4096k is not filled so its like only reading in 4096k chunks Apr 24 06:13:25 i have tested this for over 3 months now and have not got anywere =( Apr 24 06:13:55 hmm Apr 24 06:14:26 i have tried every method i have came across and they all ahve the same outcome. that is what lead me here to seek out help Apr 24 06:15:40 only method i tried that i could not get working was using a non-blocking io Apr 24 06:16:04 read still blocks using java.nio Apr 24 06:17:08 i have read about a timeout using sockets but this is not a server client implimantation so im at a loss here Apr 24 06:17:25 can you show me some code in PM ? Apr 24 06:18:20 possibly should i use pastbin? Apr 24 06:18:31 fine too :) Apr 24 06:25:02 here is my doinbackground code this reads line by line but like i said it blocks on the read like everyhting else does. http://pastebin.com/vjFfcPSm Apr 24 06:28:07 try { } finally { try { catch } } } lol? Apr 24 06:28:38 doInBackground is done on a separate thread, it's not going to stop something within that blocking Apr 24 06:30:19 thx for laughing at me keep n mind im a new dev and dont know what you mean by that Apr 24 06:32:07 you are not trying to do anything within that "try { }" Apr 24 06:33:17 my problem is well before that code so it does not matter that its there i get ur point Apr 24 06:33:28 ok Apr 24 06:38:36 i got dissconnected Apr 24 06:39:06 :) Apr 24 06:39:19 where does it go wrong then? Apr 24 06:40:24 well lets say user only taps the screen this does not fill 4096k so then the read blocks and they must tap the screen to fill the 4096k wich means i get a bunch of data that i have to filter out Apr 24 06:40:48 id rather be able to read what data is in the inputstream and not have them add data that i have to filter out Apr 24 06:41:51 this is the only thing stopping me from finishing my app and its frustrating =( Apr 24 06:42:57 and android terminal seems like they can do it. they output the data from getevent to a text view with no problem as user touches the screen Apr 24 06:43:02 but this is in an asynctask right? Apr 24 06:43:07 yes Apr 24 06:44:44 i have done so much work on this app and i kinda refuse to have it ghetto rigged to work. if i can get around this problem i will be so happy Apr 24 06:45:12 but this just keeps looping the in.readline() ... Apr 24 06:45:33 r.readline .. srry Apr 24 06:45:54 hmm Apr 24 06:48:18 mmoassistdev1: you should probably mention that you've been asking for help with this problem here for weeks... Apr 24 06:49:16 I guess he did Apr 24 06:50:44 no see i took some code out i use onclicklistener to determine when the user lifts thier finder this is the point i stop reading in the loop Apr 24 06:51:57 the point im tryying to make here is that it allways gets stuck on the read if 4096k does not fill some hdden buffer Apr 24 06:52:02 but the .readline will only block if no new line is sent right? Apr 24 06:52:30 thats what i thought but i know there are lines to be read but it still blocks Apr 24 06:53:11 it blocks untill 4096k fills the inpuutstream no matter what method i try Apr 24 06:53:49 how can I exclude all classes in a specified namespace from proguard, nor matter if they are public, private or package private? Does something like `-keep * class com.example.android.*` work? Apr 24 06:55:12 i have even asked my teachers in college about this and they tell me your on your own =( Apr 24 06:55:17 doesnt it just get an exception after 4096k ? Apr 24 06:56:05 no exception Apr 24 06:56:47 only work around i have found is filtering out all the data i dont need but you can imagine the amount of code i have to write just to do that Apr 24 06:57:28 so how many lines does it get? Apr 24 06:57:51 within the 4096k ... which seems like alot for a touch event Apr 24 06:59:22 yea it is a lot and what if the output i need is lets say 5000k i only get the 4096k and the read blocks again wich mean i miss the tail end of the data wich means i have to have them fill the buffer regardless Apr 24 07:00:31 wouldnt 4096k of data run faster than 5000k of data mmoassistdev1 Apr 24 07:00:50 assuming that the extra 1024k of data requires a 2nd pass of data Apr 24 07:01:00 making it twice as long to process Apr 24 07:01:41 dissconnected again Apr 24 07:01:50 did u get what i said? Apr 24 07:02:11 yes Apr 24 07:02:18 kk Apr 24 07:02:39 wouldnt 4096k of data run faster than 5000k of data mmoassistdev1 Apr 24 07:02:39 (12:00:53 AM) tripknotix: assuming that the extra 1024k of data requires a 2nd pass of data Apr 24 07:02:42 making it twice as long to process Apr 24 07:03:14 hehe i dont think you understand my problem =P Apr 24 07:03:57 so it really seems it's just waiting for a new line right? ... although you say you know there's definitely getting new lines ? Apr 24 07:04:19 lol Apr 24 07:04:45 does anyone know what he's actually wanting to do ? Apr 24 07:04:53 rather than how he's doing it :) Apr 24 07:05:01 not really :-) Apr 24 07:05:06 StingRay_: i think the Koala knows Apr 24 07:05:11 lol Apr 24 07:05:15 but I see a challange in getting to understand some day Apr 24 07:05:19 some night Apr 24 07:05:24 in a distant galaxy Apr 24 07:05:25 :) Apr 24 07:05:26 that pic is just sooooo good for almost any sit. Apr 24 07:05:42 what pic? Apr 24 07:05:46 my other favorite , but its a gif, is oprah & bees Apr 24 07:05:49 http://kofegeek.files.wordpress.com/2012/01/403319_142372949212972_100003208032044_175841_151378192_n.jpg Apr 24 07:06:16 Sirolf: http://crazyhyena.com/imagebank/g/funny-bear-grylls-in-australia-koala-tree-photo.jpg Apr 24 07:06:18 hahaha omg :P ... yeah I think he knows ... he just ate his 4096k ;) Apr 24 07:06:19 my fav Apr 24 07:06:23 http://cdn.fd.uproxx.com/wp-content/uploads/2010/11/Oprahs-Bees.gif Apr 24 07:07:14 lol my connection dont liek me right now Apr 24 07:07:44 mmoassistdev1: ready for some questions ? cause I'm interested now Apr 24 07:07:50 so it really seems it's just waiting for a new line right? ... although you say you know there's definitely getting new lines ? Apr 24 07:08:12 maybe #java would be able to help Apr 24 07:08:25 or #koala ;-) Apr 24 07:08:31 :) Apr 24 07:08:32 thx for taking your time to trouble shoot and trying to understand my problem Apr 24 07:08:48 mmoassistdev1: I still not sure anyone knows what your doing Apr 24 07:09:00 only how your attempting to do it Apr 24 07:09:04 maybe you should paste the full code ? Apr 24 07:09:04 rather than how/what your doing to achieve X, what is X ? Apr 24 07:09:35 lol g00s thx for the sggestion but they tell me to come here Apr 24 07:11:23 i have a good example of what i want to achive working. my example is android terminal if u type su then type getevent you will see the output of getevent as it is recived i want nothing more than that Apr 24 07:11:33 StingRay_: he's trying to record and replay touch events - think macro replay sort of thing, mainly for games Apr 24 07:11:46 exactly Apr 24 07:12:46 well wouldn't you just write point + time data to a file and append on every continued event ? Apr 24 07:12:57 cause I do with for capturing signatures Apr 24 07:13:09 well I also work out speed too Apr 24 07:13:23 because it's not touches in his app he wants to record, it's touches in *other* apps Apr 24 07:13:34 oh Apr 24 07:13:39 yeah fk that Apr 24 07:13:50 yea so i must use the output of getevent Apr 24 07:13:53 * StingRay_ goes back to his koala Apr 24 07:13:56 hence root, background, etc. Apr 24 07:14:23 thx stingray for trying =) Apr 24 07:15:30 lol Apr 24 07:15:40 and this is for a school project? :P Apr 24 07:15:53 Sirolf: weird things get done for school projects Apr 24 07:15:55 no this is for an app that will be on the market Apr 24 07:16:09 hehe Apr 24 07:16:16 the black market?:P Apr 24 07:16:19 everything else is done but this Apr 24 07:16:40 the hardest part :P Apr 24 07:16:42 the whole thing feels dodgy to me, but I'm not sure if it actually is Apr 24 07:16:52 indeed Apr 24 07:17:17 why you say black market there are plenty of apps that requier root Apr 24 07:17:29 I was joking Apr 24 07:17:32 I think Apr 24 07:18:30 its not dodgy at all it is up to the user how its used Apr 24 07:20:07 depends on what the user knows about the background process ;) Apr 24 07:20:16 but I dont care if it's dodgy Apr 24 07:20:21 lol Apr 24 07:21:09 so isn't the ReadBuffer the problem then? Apr 24 07:21:14 my first app was open source an i have build good credability from that i have no intentions of anything illmannerd Apr 24 07:21:33 ok Apr 24 07:21:43 http://stackoverflow.com/questions/2788250/java-efficiency-of-the-readline-method-of-the-bufferedreader-and-possible-alter Apr 24 07:21:48 does that help? Apr 24 07:28:05 that looks like what i need let me get to coding thank you much for your help sirolf! Apr 24 07:29:04 did I just unleash a demon?;-) Apr 24 07:29:33 please beware... I'm a noob too ... so don't really know alot muhahaha Apr 24 07:30:07 no im an angel trying to prevent carpal tunnel lol Apr 24 07:30:21 too early after a long night of coding ... fortunately I find the koala very calming Apr 24 07:30:27 hehe Apr 24 07:32:26 Hi all. Apr 24 07:32:43 How do I install the Android SDK on Mageia Linux 3/Cauldron x86-64? Apr 24 07:33:35 download, extract, start using. Apr 24 07:34:36 does anyone know why setExtra crop true works for selecting a gallery image, but not for selecting one from astro ? Apr 24 07:35:33 rindolf: you probably need 32-bit binary/library support Apr 24 07:38:44 Leeds: OK, I have that. Apr 24 07:43:18 rindolf: then hokkaido's advice applies Apr 24 07:44:13 maybe some udev rules Apr 24 07:48:00 Hmm, I still am unable to compile ActionBarSherlock, IntelliJ + Maven is new to me though Apr 24 07:48:13 so I might be missing some steps Apr 24 07:48:58 anyone know of a tutorial or the steps needed to produce a .jar for ABS? Apr 24 07:51:08 belgianguy: you can produce a JAR of BS? Apr 24 07:51:10 ABS* Apr 24 07:51:28 heh, i thought BS = BitTorrent Sync Apr 24 07:51:29 timroes: no idea, IntelliJ used to make a module Apr 24 07:51:32 if you find the tutorial I would be interested too, cause I though Android Libs are not jarable Apr 24 07:51:40 since they need resources and manifest and such Apr 24 07:51:47 timroes: probably it's not jarrable then Apr 24 07:53:03 timroes: I usually used a tutorial for 4.2.0, but 4.3.0 seems to have a totally different structure Apr 24 07:53:07 and I'm a bit at a loss Apr 24 07:53:25 4.3.0 of what? Apr 24 07:53:35 ActionBarSherlock :) Apr 24 07:53:38 okay :) Apr 24 07:53:59 indeed looks alike :) Apr 24 07:54:11 but what exectly you want to do? Apr 24 07:54:23 timroes: use it in a project in IntelliJ Apr 24 07:54:29 the whole Maven stuff exploded on me Apr 24 07:54:40 go to shell in the directory of the library Apr 24 07:54:50 do `android update project -p .` Apr 24 07:54:56 and delete the pom Apr 24 07:55:11 intelliJ should recognize it after that Apr 24 07:55:30 and should I then add it as a module? Apr 24 07:55:46 no idea, not using intelliJ :) Apr 24 07:55:59 but shouldn't it detect it as as a regular project then? Apr 24 07:56:01 so you can just open it Apr 24 07:56:11 and do whatever you need to do to add it as dependency :) Apr 24 07:56:53 timroes: let's see what happens :) Apr 24 07:56:59 thanks for that already Apr 24 07:59:43 belgianguy: `android update lib-project -p .` sorry :( Apr 24 08:04:39 timroes: thanks! no worries, I still need to logout/login Apr 24 08:04:43 brb Apr 24 08:24:14 hello...where can i find the source for the android ndk? or it isn't open source? Apr 24 08:25:12 YiamiYo, it's in android source tree Apr 24 08:25:41 https://android.googlesource.com/platform/ndk Apr 24 08:27:11 thanks...btw does the prebuilt toolchain gdb have any option to act as "proxy" or am i asking too much? :P Apr 24 08:29:49 Hi Guys Apr 24 08:30:52 Styler2go: hi. Apr 24 08:30:52 I have some big Problems with my eclipse: I am currently designing parts of an app and my eclipse is hanging up after 2 minutes with the error "java heap space". any idea what i can do? Apr 24 08:32:14 i already tried editing the eclipse.ini to get 2GB ram, but it still fills the 2gb and then hang up with "java heap space"...here is my ini: http://pastebin.com/UDeb73jB Apr 24 08:33:45 Styler2go: thats crazy. mine doesn't use more than 700mb evar Apr 24 08:33:54 usually more like 500 Apr 24 08:34:20 i am taking a large bitmap 1080x1920 and scaling it to 512x512 then saving it to a file. when i open the file elsewhere and load the bitmap into an image view, what i see is definitely not 512x512. Why ? Apr 24 08:34:57 if you use vim like Leeds you can get by with maybe 12mb :) Apr 24 08:36:30 what could i do now? Apr 24 08:36:33 i decided to splurge and install emacs, using 28mb Apr 24 08:36:55 mobydev maybe dpi issues? we need more info Apr 24 08:36:58 i have to restart my eclipse every 3 mintues :D Apr 24 08:37:13 Styler2go: that sounds about right 9.9 Apr 24 08:37:15 Styler2go try intellij Apr 24 08:37:35 i cant simply change it... we use eclipse at work... Apr 24 08:37:58 be the change you want to see in the world :0 Apr 24 08:38:59 Styler2go: i use 3.8.2 platform runtime with ADT added. never had to change ini files Apr 24 08:39:30 hm Apr 24 08:39:36 so nobody have an idea :D Apr 24 08:39:38 i think i just found it. Apr 24 08:39:41 try intellij idea, heh Apr 24 08:40:01 Styler2go, what jdk do you use? Apr 24 08:40:10 mobydev: how are you taking a 16:9 source and making a square aspect image ? or rather …. wtf ? Apr 24 08:40:28 uhm Apr 24 08:40:40 i reinstalled all java + eclispe yesterday Apr 24 08:41:48 Styler2go: maybe reinstall the os Apr 24 08:41:53 just kidding :) Apr 24 08:42:14 but hey, you never know, i bet soon oracle will be installing add bars into your eclipse :) Apr 24 08:42:24 select image from astro, check width and height, if its bigger than 512 x 512, restrict to 512 x 512 with bitmap.createscaledxxxx. done. Apr 24 08:42:58 mobydev: but you know thats rather odd right ? Apr 24 08:43:08 no Apr 24 08:43:11 i dont Apr 24 08:43:11 lol Apr 24 08:43:28 problem #1 aspect Apr 24 08:43:38 problem #2 filter resize method Apr 24 08:43:58 problem #3 extreme loss of clarity Apr 24 08:44:28 ok well #3 is a product of #2, but if you add #1 to that… it all just adds up to…erm….wtf Apr 24 08:44:29 hmpf... Apr 24 08:46:00 well it goes like this. i need to crop the images and it works with gallery selected images, but it won't work when images are selected from astro. the crop activity doesn't start. so i need to create a quick and dirty fix cause I'm on a deadline. Apr 24 08:46:06 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6g79VDOIJBJ81ZUmLjAxpioRVb4V9.jpg Apr 24 08:46:18 look at the bottom the heap space... Apr 24 08:47:18 if you know a good simple way to rescale and preserve aspect let me know. i got 10 minutes. Apr 24 08:47:40 talk about deadline Apr 24 08:48:13 well yeah, you control it Apr 24 08:48:19 but if you think it looks ok Apr 24 08:48:23 and it works for you Apr 24 08:48:52 and it dont turn the subject/image into a distorted annoyance then it's all good Apr 24 08:52:11 timroes: no luck so far, I think IntelliJ is adding some files which confuse Maven or its Lifecycle events at least Apr 24 08:52:23 okay so you want to build with maven? Apr 24 08:52:41 timroes: it has a lot of dependencies on robolectric and junit now Apr 24 08:53:07 and it complains about those, and I don't see how to keep those up to date in the long run without a lot of administrative tasks Apr 24 08:53:44 timroes: so yeah, but I'm far too new at Maven in IntelliJ, in essence I have no idea what I'm doing Apr 24 08:53:56 yeah okay, i anyway won't give maven a try for android Apr 24 08:54:11 I thought it was something like Git, but it's not Apr 24 08:54:13 will ride it out till gradle is stable enough :) Apr 24 08:54:23 no maven is a build system :) Apr 24 08:54:33 perhaps you mix it up with mercurial Apr 24 08:55:14 timroes: yeah, maybe I do, and IntelliJ isn't very helpful either Apr 24 08:55:33 out of the box it won't compile as Maven claims ANDROID_HOME does not exist (it does :( ) Apr 24 08:55:41 yeah thats why i won't use it, it was same confusing then eclipse Apr 24 08:55:52 i had a hell of a time finding how to switch the android version to compile against.. Apr 24 08:55:57 so I have to edit the pom file, which works fine, for the library compilation Apr 24 08:55:58 anyone here familiar with the google merchant payout thing? Apr 24 08:56:01 File->settings will also bring up the project settigns.. who the hell would expect that :D Apr 24 08:56:19 maven is cool except when its not Apr 24 08:56:19 i would expect this to be somewhere in rightclick on the project Apr 24 08:56:29 XD Apr 24 08:56:44 but then it poops out on the test part, so I can only compile if I disable the tests, which is not the way it should be Apr 24 08:56:45 i am crying... this damn eclipse Apr 24 08:56:52 belgianguy: if you want to use maven you need to create a pom file for your project but then maven should do pretty much everything for you :) Apr 24 08:57:02 thought you try to build it with ant and not maven Apr 24 08:57:04 but hey... good for me, i cant work as fast as i have to, not much work :D Apr 24 08:57:05 timroes: i wouldn't use maven for android now either Apr 24 08:57:21 so..no one? :( Apr 24 08:57:23 yeah lets hope for gradle :) Apr 24 08:57:26 I don't get why ABS started to use it ;( Apr 24 08:57:38 belgianguy: because jake likes it Apr 24 08:57:52 because in regular java libs its pretty common to use Apr 24 08:57:53 he's a True Believer Apr 24 08:57:56 and might have it advantages Apr 24 08:58:10 thought in the end it all comes down to personal taste :) Apr 24 08:58:24 g00s: that's fine, and it might very well be a formidable tool Apr 24 08:58:34 if I only knew how to master it Apr 24 08:58:51 i was interested to see the last Thoughtworks Technology Radar said abandon maven Apr 24 08:59:02 (and use gradle) Apr 24 08:59:06 this is for EE stuff Apr 24 08:59:24 at what times is JakeWharton usually on? Apr 24 08:59:43 belgianguy: its just a state machine which allows you to attach plugins at various states, and a repository / dependency resolver Apr 24 09:00:02 AFAIK he also uses IntelliJ, maybe he can clear some things up Apr 24 09:00:05 belgianguy: earlier, pacific time probably Apr 24 09:00:14 at PST times :)? Apr 24 09:00:32 so -9 to yours belgianguy :) Apr 24 09:00:35 belgianguy: i thought he had instructions on the ABS web site Apr 24 09:02:41 belgianguy, you can set -Dandroid.sdk.path=/path/to/your/android/sdk in mvn compile Apr 24 09:02:46 belgianguy: i'm willing to bet by I/O appcompat will be mentioned and released, too. just a hunch Apr 24 09:03:05 g00s: you think so? Apr 24 09:03:23 well, i think it will be announced, but released when android 5 sources are announced Apr 24 09:03:35 thats what my belly feels :) Apr 24 09:03:48 https://code.google.com/p/android/issues/detail?id=8237 my problem is known :O Apr 24 09:04:14 eclipse and leaks, what a surprise... Apr 24 09:04:41 Zharf: yeah, I added it to the Apr 24 09:04:56 that works for compiling, but still breaks on testing Apr 24 09:05:15 belgianguy, mmm testing... Apr 24 09:05:24 belgianguy, instrumentation tests? Apr 24 09:05:26 the Maven 'test' step Apr 24 09:05:37 in its Lifecycle events Apr 24 09:05:48 how can I execute native code in root privileges (on emulator, which is "rooted")? I have some C code, which I compiled into library, but how to properly execute it from Java? I tried Runtime.getRuntime().exec() Apr 24 09:05:53 oh the tests want the sdk path too? Apr 24 09:05:55 i'm not able to find ndk's host gdb sources :/ Apr 24 09:06:52 belgianguy, does it work if you put -Dmaven.test.skip=true in there too Apr 24 09:07:49 Zharf: then I can package it, but when I try to add it to my project, it'll still have a 'test' folder, on which it then fails (junit, robolectric) Apr 24 09:08:12 (I can disable testing in IntelliJ, I assume it adds said flag) Apr 24 09:09:03 belgianguy, any idea why the testing fails? Apr 24 09:09:33 Zharf: I'll try to recreate the error (just removed it all to start from a clean slate) Apr 24 09:10:06 I never created unit tests for android things before :p Apr 24 09:10:10 in IntelliJ, this is what I see after extracting the ZIP and opening the project with IntelliJ (just the folder) Apr 24 09:10:13 http://i.imgur.com/7MEcqP1.png Apr 24 09:10:44 well I got asked about unit tests at my last job sollicitation, and I didn't use it either Apr 24 09:10:52 probably a part why they didn't hire me :/ Apr 24 09:11:29 that link points to what I see now in IntelliJ, before I add to pom.xml Apr 24 09:11:36 I would still rather create a new maven android project and add the abs dependency in pom and let it resolve from that :E Apr 24 09:12:06 I never used the zip file myself Apr 24 09:13:23 Zharf: me neither, there used to be just one, now there's all sorts of extras (fest, i18n, samples) of which I don't know if they're essential or optional Apr 24 09:13:42 the samples probably are, but i18n and fest, I don't know Apr 24 09:16:59 this is the error I get after trying compile after opening it Apr 24 09:17:00 [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.3:generate-sources (default-generate-sources) on project actionbarsherlock: No Android SDK path could be found. You may configure it in the plugin configuration section in the pom file using ... or ... or on command-line using -Dandroid.sdk.path=... or by set Apr 24 09:17:00 ting environment variable ANDROID_HOME -> [Help 1] Apr 24 09:17:37 belgianguy: so you set your android home path in the xml? Apr 24 09:17:47 yup, in the root pom.xml Apr 24 09:17:50 (form my experience it sometimes doesn't take over the environment variable corretcly Apr 24 09:18:56 timroes: after setting it, compile works Apr 24 09:19:23 hmm Apr 24 09:20:22 ABS 4.3.0 doesn't seem to be in mavencentral Apr 24 09:21:18 wonder if it's just on its way there Apr 24 09:21:21 Isn't that because it cannot be a .jar? Apr 24 09:21:32 kakazza, no, it's just not there yet Apr 24 09:21:36 k Apr 24 09:21:38 4.2.0 and earlier versions are there Apr 24 09:21:41 this is what I see now: http://i.imgur.com/GI6FtcL.png Apr 24 09:24:16 belgianguy, do you have to have 4.3.0 :) Apr 24 09:24:40 Zharf: tbh, not at all, but I thought I might as well get ahead of the curve Apr 24 09:24:48 and fall flat on my face :/ Apr 24 09:24:50 Zharf: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.actionbarsherlock%22 It's there for me. Apr 24 09:25:04 kakazza, http://repo.maven.apache.org/maven2/com/actionbarsherlock/library/ doesn't have it Apr 24 09:25:05 Also, I thought ABS cannot be a .jar because it contains resources. Apr 24 09:25:13 kakazza, it's not a jar Apr 24 09:25:15 it's an apklib Apr 24 09:25:48 the in pom.xml has apklib for it Apr 24 09:25:51 it's special :) Apr 24 09:26:39 funny how it's in search but not in the repo Apr 24 09:27:58 so now I have this 'target' folder, which has all sorts of compiled code, can I follow a generic 'android library' tutorial from here on on? Apr 24 09:28:10 or is an APK Lib something else entirely? Apr 24 09:42:27 this is the error when executing 'test' : http://i.imgur.com/CMyZbXe.png Apr 24 09:42:36 missed deadline, had to go with screwy incorrect aspect calc Apr 24 09:42:56 image is tall, but doesn't look scrunched at least Apr 24 09:43:09 fits within my 512x512 limit Apr 24 09:43:18 oh well Apr 24 09:46:39 ""I urge readers looking for a new Android smartphone to carefully consider the more polished-looking, and quite capable, HTC One, rather than defaulting to the latest Samsung," Mossberg writes." Apr 24 09:47:09 g00s: sweet, didn't see that one Apr 24 09:48:22 "You Should Buy the S4 Over the HTC One IF... 1. You're on Verizon... 2. You absolutely must have expandable storage and/or a removable battery... 3. You really need that extra hour of battery life... And that's about it." - from Gizmodo's review Apr 24 09:50:07 I'd love a One with expandable storage / removable battery and stock android :D Apr 24 09:50:49 Korean HTC One has a removeable back cover Apr 24 09:51:12 er, chinese, not korean Apr 24 09:51:40 Has expandeable storage, not removeable battery though Apr 24 09:52:43 and isn't actually announced or released yet Apr 24 09:53:23 i noticed motorola will be doing more dust / moisture-proof phones. i would also like those features too Apr 24 09:53:57 but at the moment, it looks like the nicest Apr 24 09:56:22 g00s: even if google announce appcompat i am not sure, if it reaches the quality of ABS :) http://s14.directupload.net/images/130424/ws9lhpsp.png Apr 24 09:56:38 kakazza, oh now I got it... 4.3.0 is there :p Apr 24 09:56:39 this is from the current source appcompat source code as available in AOSP Apr 24 09:56:49 hmm: [INFO] Building jar: /home/wietse/IdeaProjects/JakeWharton-ActionBarSherlock-c47975f/actionbarsherlock/target/actionbarsherlock-4.3.0.apklib Apr 24 09:57:13 hello Apr 24 09:57:13 though it was anyway lots of hacking getting this into an app, so there might be mising some essential parts to make it look better :) Apr 24 09:57:26 btw the HTC One looks like an awesome phone Apr 24 09:57:51 belgianguy: i would give the sony xperia Z a shot Apr 24 09:57:57 and Sammy is getting a bit too big for its own good and might start to steer Android in their direction (if that's not happening already) Apr 24 09:58:18 tried it on Droidcon, and right now I must say if you don't plan to put a custom rom on your deice the sony custom UI is the least horrible to go Apr 24 09:58:19 timroes: yeah, those look really nice as well, the water resistant parts are nice to haves as well Apr 24 09:58:36 timroes: I like my ROMs 'clean' :p Apr 24 09:58:44 as in 'stock' ;) Apr 24 09:58:54 so vendor UI s won't disturb you :) Apr 24 09:59:04 at least not for long Apr 24 09:59:18 well Samsung has its proprietary Pen interface, don't know if the ROMS have caught up to that yet Apr 24 09:59:23 but it also had a nice handling, was a touch too light in my opinion Apr 24 09:59:39 would say 50-80g more would be nice :) Apr 24 09:59:46 timroes: missed what you said ^^^ (disconnected) Apr 24 09:59:47 but thats also personal taste Apr 24 10:00:09 g00s: even if google announce appcompat i am not sure, if it reaches the quality of ABS :) http://s14.directupload.net/images/130424/ws9lhpsp.png Apr 24 10:00:09 this is from the current source appcompat source code as available in AOSP Apr 24 10:00:14 though it was anyway lots of hacking getting this into an app, so there might be mising some essential parts to make it look better :) Apr 24 10:00:17 both the Xperia Z and the HTC One are on the wishlist, need to compare some specs Apr 24 10:00:36 There is a very good chance I'll be buying a GS4 on Saturday :P Apr 24 10:00:49 samsung definately only is okay when custom roming it Apr 24 10:00:56 the touchwiz stuff is aweful like ... Apr 24 10:00:58 i don't know Apr 24 10:00:58 chat recomendado desarrollo android en español?? Apr 24 10:01:00 no comparison Apr 24 10:01:13 GS4 presentation had almost no mention of 'Android', and many of Samsung (which is in their right) Apr 24 10:01:16 timroes: what worries me most about ABS, is that google introduces some change in future android that it can't accomodate Apr 24 10:01:36 g00s: in "future" android i hope we anyway won't need ABS anymore :) Apr 24 10:01:48 for private apps i already dropped pre ICS support Apr 24 10:02:02 i think they should just put the whole jave framework in the support library XD Apr 24 10:02:19 recommended chat for android development?? Apr 24 10:02:22 at least make it updateable on the device easily :) Apr 24 10:02:29 hieudev: it's here :) Apr 24 10:02:49 if you are talking about android application development, if you are talking about android system development (embedded, rooting) head to #android-root Apr 24 10:02:51 the bigger problem is updating dvm, harmony, and sqlite Apr 24 10:03:28 g00s: just put it in the cloud :) Apr 24 10:04:00 hahah, ok, thanks Apr 24 10:04:14 Hi, stupid situation here. I'm developing with fragments (first time) and when I have FragmentA with a listview, if i click on an item, i add FragmentB to the framelayout. When i'm touching in FragmentB, it reacts on the listview from FragmentA. Somebody who had something like that in the past or know how to fix this? Apr 24 10:04:38 i need some help for developing a keyboard Apr 24 10:04:42 can i ask here? Apr 24 10:05:38 hieudev: you can, but I'm not sure there's much keyboard-developing experience around... Apr 24 10:06:16 belgianguy, did you get it working yet Apr 24 10:07:05 ok, i will be here if someone is interested in developing a new android keyboard Apr 24 10:07:07 thanks Apr 24 10:07:50 please do ask though :) Apr 24 10:08:38 belgianguy, I just did, if you didn't I really suggest you skip the whole zip thing and just use maven Apr 24 10:17:34 Zharf: I had to add the sdk dir to and then run 'android update lib-project -p .' in the actionbarsherlock directory Apr 24 10:17:57 now I have an actionbarsherlock-4.3.0.apklib and an actionbarsherlock-4.3.0.jar Apr 24 10:18:26 that just built the library for maven to use then Apr 24 10:18:33 you could've just told maven to use the one from central :> Apr 24 10:19:06 that link didn't resolve earlier :s and I seem to always take the long route instead of the simple one :/ Apr 24 10:19:20 so what do you recommend I do now? Apr 24 10:19:49 if you still have the patience I would guide you through creating a maven project with ABS dependency Apr 24 10:20:46 belgianguy: 4.3.0 ? Apr 24 10:21:38 Zharf: if you have the time to guide me, I'd gladly listen, and perhaps even take notes and make a Gist out of it Apr 24 10:21:47 g00s: yes :) Apr 24 10:22:01 belgianguy, be right back, get ready :> Apr 24 10:24:44 Where can I find a 2.2 version of the google basic tutorial? Apr 24 10:25:15 DullBoyJackie: what? Apr 24 10:25:32 timroes: the version after 2.1 Apr 24 10:25:38 tut Apr 24 10:25:51 timroes: this http://developer.android.com/training/index.html but for 2.2 Apr 24 10:25:54 * timroes slaps StingRay_ with a giant iPhone 34g Apr 24 10:26:05 DullBoyJackie: this is mostly for 2.2 Apr 24 10:26:17 where it makes use of actionbar and such it explains how to prevent it from crashing on 2.2 Apr 24 10:26:24 hint: mostly :) Apr 24 10:26:29 pretty sure the training section wasn't there in 2.2 days Apr 24 10:26:33 timroes: not really. As far as I can tell, it uses some 4.1+ stuff in it. Apr 24 10:26:41 DullBoyJackie: show me which exactly Apr 24 10:26:51 cause last time i've read, it used actionbar but put it in some version check Apr 24 10:28:10 timroes: the android:parentActivityName attribute, for example, isn't 2.2 according to http://stackoverflow.com/questions/14891032/androidparentactivityname-doesnt-work-although-android-support-v4-jar-is-inclu Apr 24 10:28:31 DullBoyJackie: yeah its not in 2.2 Apr 24 10:28:42 but it won't cause it to crash, since it just ignores attributes it doesn't know Apr 24 10:28:51 seriously, the Training section was only added in December 2011 - which means after 4.0 shipped Apr 24 10:28:54 and 2.2 doesn't have the actionbar so anyway no up button, that could use this Apr 24 10:28:58 timroes: it's not the only thing in there Apr 24 10:29:09 http://developer.android.com/training/basics/firstapp/starting-activity.html#CreateActivity Apr 24 10:29:11 *that's 4.0+ Apr 24 10:29:22 source code says it does a version check Apr 24 10:29:47 fragment tut shows how to uses support library Apr 24 10:29:52 does anyone else find it impossible to make 9 patches? Apr 24 10:29:58 i don't see anything, wouldn't work on 2.2 so far Apr 24 10:30:07 timroes: I didn't actually implement it because it's nowhere related to what's causing my build to fail. Apr 24 10:30:26 Gaz`: did you see http://www.amigaforever.com/android/ Apr 24 10:30:27 The version check and the ActionBar() thingy Apr 24 10:30:43 so skipped now fsat through all basic tuts, and it looks like 2.2 minimum version everything Apr 24 10:30:52 and compile gaainst current version (what you should always do) Apr 24 10:31:01 so it should be totally valid for your device Apr 24 10:31:28 if you have some special crashes, you could paste the logcat output or error messages, and we can see, whats specially wrong with it Apr 24 10:31:48 Hi all, I'd like to add my bitcoin address for donations in the app description. I cannot find anything in the terms that this isn't allowed, but seeing that apps got banned because of paypal links in their description, I want to make sure that this is ok. Unfortunatly I cannot find a support email address, for things like this. Could someone give me a hint on this ? Apr 24 10:32:39 timroes: well, afaik, my DisplayMessageActivity isn't being registered Apr 24 10:33:05 timroes: also, I'm using Netbeans + Android plugin, not Eclipse Apr 24 10:33:21 so you put th activity into the manfiest file? Apr 24 10:33:28 nbandroid won't do that for you, even if you chose new activity Apr 24 10:33:44 as described in "Add it to the manifest" Apr 24 10:33:45 timroes: did Apr 24 10:34:00 can you paste the logcat output? Apr 24 10:34:39 awesome Leeds, got a use fo my htc flyer now :) wonder if i can release my old amiga games this way too Apr 24 10:35:02 timroes: http://pastie.org/private/v2vgqih9aqctt7s5pan9aw Apr 24 10:35:35 man i cant make 9patches, ive watched videos ive read docs, the tool just makes no sense to me Apr 24 10:35:47 DullBoyJackie: somehow the activity_display_message.xml in your layout folder is missing Apr 24 10:35:52 perhaps some typo in its name? Apr 24 10:36:22 or most surly you didn't create one :) Apr 24 10:36:25 "Note: If you are using an IDE other than Eclipse, your project does not contain theactivity_display_message layout that's requested by setContentView(). That's OK because you will update this method later and won't be using that layout." Apr 24 10:37:03 either continue with the tutorial, since the method is anyway removed later on, or just copy the xml file you already have in layout/ to activity_displa_message.xml Apr 24 10:37:07 timroes: so, I should just continue and wait until I create it? Apr 24 10:37:30 timroes: I read that part, but I didn't think it would be in the next part Apr 24 10:37:32 you won't create it, but you will remove the setContentView(..) call :) Apr 24 10:37:41 its in 'display the message' Apr 24 10:38:09 but if you reference something within R. you must make sure the resource (in this case a layout) exists in the corresponding res-folder Apr 24 10:38:16 so you cannot reference R.layout.something Apr 24 10:38:22 if there is no something.xml in your res/layout/ folder Apr 24 10:38:53 eclipse automatically generates you a stub for the layout if you create an activity, but nbandroid doesn't, that's why its crashing (and thats also what the note in the tut says :D) Apr 24 10:39:18 timroes: hmm. Think I got it. Apr 24 10:40:23 timroes: yep, that fixed it. Thanks :) Apr 24 10:40:54 you're welcome :) Apr 24 11:15:57 ZTE licenses Android patents from Microsoft. i think thats almost everybody now Apr 24 11:16:20 oh, except moto and Huawei Apr 24 11:39:19 hi, can somebody help my with this situation: http://pastebin.com/wL7NT07N Apr 24 11:40:06 could it be a bug in the android system, or is my implementation of a spinner wrong? Apr 24 11:40:16 Sweet weeping Jesus, Eclipse is so bloated :O Apr 24 11:40:45 DullBoyJackie: get the platform runtime Apr 24 11:41:02 g00s: huh? Apr 24 11:41:23 if you get the bundle, or a customized one, yeah its got a lot of crap Apr 24 11:42:17 g00s: my GTK theme also messes up the display big time :O Apr 24 11:42:51 heh, yeah. even though i dont use windows, eclipse looked best there Apr 24 11:43:09 i think i used the GTK compact theme Apr 24 11:43:49 g00s: I could force it to use another GTK theme, but I shouldn't be forced to configure obviously broken settings Apr 24 11:44:16 havent used eclipse in linux for a while Apr 24 11:50:12 nobody who readed my post? Apr 24 11:51:34 FrancescoV: doubt it's a bug Apr 24 11:51:37 :) Apr 24 11:52:06 i've sent it to Google ;) really stupid thing Apr 24 11:52:24 yeah, not sure thats a bug at all Apr 24 11:52:35 just sounds like you should be using a new "window" Apr 24 11:52:41 like a fragmentDialog Apr 24 11:52:43 i think i can fix it with adding an onlcick on my main layout (linearlayout) with no code inside the onclick but that's nog the right way to do it :p Apr 24 11:52:51 or actually "replacing" rather than adding Apr 24 11:53:52 what would be the easiest way to store compile time constants that change depending on the build? While debugging, I have one web server to connect to, while my production build will need to connect to another. Apr 24 11:54:08 what do you mean with a new window? I'm new with fragments and all i found on the web is adding fragments to framelayouts etc. Apr 24 11:54:44 FrancescoV: if your new, and not sure, how did you come to the conclusion that it must be a bug ? Apr 24 11:54:58 thats some wierd reasoning you got going on ;) Apr 24 11:55:50 FrancescoV: but neways, based on what I think you want, use a fragmentDialog Apr 24 11:55:54 :) Apr 24 11:55:59 because my app now is using a lot of fragment inside oné fragment activity. After adding +- 10 fragment with a lot of actions, now it's handling the clickevent on a previous fragment. If i remove the code, problem is gone Apr 24 11:57:26 click events are propagated "down" the layout, so if nothing handles clicks on the "foreground" layer, they will go to the one in the background. do you have a reason adding fragments instead of replacing? Apr 24 12:00:07 yes, the user needs to have the posibility to navigate back. that's why i use: ft.addToBackStack(null); Apr 24 12:01:16 sounds acceptible if the events are propagated, but i think it should be better that this isn't possible when adding fragments Apr 24 12:05:00 when your fragment transaction replaces a fragment, a "reverse" transaction will be automatically executed when the user navigates back Apr 24 12:05:46 which means the previous fragment will be shown, so you shouldn't really need to use add() (of course depends on actual case which I might be misunderstanding) Apr 24 12:09:13 my app is has the structure like facebook for android, but i have +- 20 different fragments now, that's why i'm using add(), sometimes i need to navigate 2/3 fragments back. For example A --> B --> C - BACK --> A Apr 24 12:38:01 Hello all,, i am using a tablet which should not be able to browse the internet if it is not connected to a private network with VPN. So i tought i would disable browsing with a firewall. But since i don't want to root my device i am forced to use a firewall which uses VPN technology to block the internet access. Now the problem is that when i disconnect from VPN the firewall is not Apr 24 12:38:01 automaticly started. And since i am using the original openVPN application i cannot modify the source or anything. Do you guys have any advise on how to solve my problem ? (BTW i am using the tablet in a work enviroment. that is why the user cannot use the tablet for personal use. Therefor i installed a application which requires a password to open 'unknown' applications. ) Apr 24 12:39:11 I'm using admob in an app of mine, but is it a problem that I create a new adview and adrequest onConfigurationChanged? Apr 24 12:39:11 hi. how to obtain a WindowManager instance from my view? Apr 24 12:39:38 i'm creating a custom RelativeLayout.. that just sets its LayoutParams dynamically Apr 24 12:40:25 I can't use getDisplay() Call requires API level 17 (current min is 13): Apr 24 12:40:54 no other way to obtain display in API level 13? Apr 24 12:42:04 krad: http://developer.android.com/reference/android/view/WindowManager.html Apr 24 12:42:28 If you're not in an Activity you can get the default Display via WINDOW_SERVICE: Apr 24 12:42:34 i just found that Apr 24 12:43:57 that's it.. i'm using WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE); Apr 24 12:44:10 :) Apr 24 12:45:07 @FrancescoV You can still use replace() together with addToBackStack() Apr 24 12:56:27 Snip ? Apr 24 13:05:59 Zharf explained to me how to integrate ActionBarSherlock 4.3.0 into an Android project, I rewrote it into a Gist here: https://gist.github.com/belgianguy/5451960 Apr 24 13:06:16 (it uses Maven/IntelliJ) Apr 24 13:07:06 and Ubuntu, but I don't think that should stop anyone from using it Apr 24 13:10:34 I am trying to code an app in which it has a scrollable textview which supports changing when onfling is detected. But for now, when I scorll, it changes the text view as it detects fling too. Apr 24 13:10:39 Can anyone please help me? Apr 24 13:11:24 What do I have to give in the on onScroll() so that the onFling() will be ignored? Apr 24 13:16:11 Iam a noob in json... Can i hide this when i show it on a webserver? Apr 24 13:16:57 I have a screen layout that i want to always keep as my main screen. Now i want to divide it into 3 zones.. each of these may change, and may impact their siblings. Do I make each of these zones a layout by itself with a corresponding activity? Apr 24 13:17:43 so in total i will have one main activity and 3 children ones Apr 24 13:17:51 on the screen. is that too much? Apr 24 13:20:25 Somebody? Apr 24 13:22:29 krad: you have to use fragments to achieve that Apr 24 13:22:50 so you'd have one activity and bunch of fragments the activity is instantiating Apr 24 13:23:25 i thought zones map to activities Apr 24 13:23:30 and patterns map to fragments Apr 24 13:23:46 Heya folks, got a somewhat tricky question (At least I think so) Apr 24 13:24:04 I have a gradient resource xml file... simple enough, Apr 24 13:24:28 I am applying that gradient to a series of buttons, but the left most and right most button have to have their respective left and right corners rounded Apr 24 13:24:53 I managed to do that, loaded the resource into a gradient drawable, did setCornerRadii() on it, set it to the buttons, all is well Apr 24 13:25:12 But now comes the fun part - Since these are buttons, this has to be a StateListDrawable, with a pressed / focused state Apr 24 13:25:20 So I can't just load the gradient... Apr 24 13:25:31 karlo, read that: Zones are a fundamental part of a Google TV UI for browsing content. Each zone corresponds to an Android Activity component. Patterns are sub-structures of zones that containing UI controls and displays. Typically, you implement an individual pattern as an Android Fragment. Apr 24 13:26:04 I could make the background gradient a xml, with two gradient items, but then I have to iterate through the items and set their corner radii... unfortunately I only have getCurrentState, I can't get arbitrary states from the StateListDrawable Apr 24 13:26:34 Then I tried programatically creating a state list drawable with the gradient and the flipped gradient... but flipping the gradient proved to be just as impossible Apr 24 13:26:35 oh sorry krad, I have no knowledge of zones Apr 24 13:26:37 Any ideas? Apr 24 13:27:55 Creating multiple gradient files is not an option, as I already have 11 of them, for 11 different color themes Apr 24 13:28:10 duplicating all of those just for the pressed button state seems ludicrous Apr 24 13:32:29 My app has a database, I would like to replace it with a new database file I have in the next version, how can I do it? Apr 24 13:33:34 xpl0iter: How about flushing your old db? Apr 24 13:33:49 I mean manually adding code to wipe it Apr 24 13:34:36 Yeah, I think that's good idea. :) Thanks man, although I was looking for a way like onupgrade or something like that lol! Apr 24 13:34:46 thanks DarkSlay3r Apr 24 13:35:45 Could you explain me Apr 24 13:36:02 layout_width="0dp" when I use horizontal linear layout ? Apr 24 13:36:29 I don't understand why it could be more efficient Apr 24 13:36:51 DarkSlay3r One sec, adding that code will run each time when the app is run right? Apr 24 13:36:57 I don't want it like that! :( Apr 24 13:37:03 it to be* Apr 24 13:37:08 I think layout_weight overrides width... Apr 24 13:37:43 xpl0iter: Well i'm no expert but if i had to do that i'd save a preference that tells me if it's been run before Apr 24 13:37:58 aah ok! :) Apr 24 13:41:51 no one has any idea regarding my drawable problem? :( Apr 24 13:42:12 I tried this way, but BitmapFactory can't decode the gradient resrouce xml Apr 24 13:42:31 http://pastebin.com/SVU1hPjz Apr 24 13:50:26 BitmapFactory is for bitmaps, not xml. Or am I missunderstanding? Apr 24 13:54:13 It is... but how do I correctly flip a drawable? Apr 24 13:54:36 I have loaded the xml into a drawable, and I want to flip it, or rotate it 90 degrees, either one Apr 24 13:56:28 flip and rotate 90 produce diff results ? Apr 24 13:56:53 well unless it is symetrical in both x and y Apr 24 13:57:07 then there would be no need to flip/90 anyways Apr 24 13:57:09 :) Apr 24 13:58:10 Hi. Apr 24 13:58:11 https://gist.github.com/bluesm/5452319 Apr 24 13:58:28 What is the difference between Apr 24 13:58:30 android:parentActivityName="pl.twigit.myactivitylifecycle.MainActivity" Apr 24 13:59:07 And the informations in meta-data ? Apr 24 13:59:46 I seems to mean exactly the same thing ( the parent activity, the activity to which "back button" will go) Apr 24 13:59:48 Right ? Apr 24 14:09:43 can i plug my app here? Apr 24 14:09:50 Just asking Apr 24 14:10:23 Looking to jump start Apr 24 14:11:46 here ? Apr 24 14:11:51 DarkSlay3r: you know this is android-dev right ? Apr 24 14:11:59 as in developers of apps ? Apr 24 14:12:42 Yes i am aware Apr 24 14:12:54 i thought it might be helpful to get a peer review Apr 24 14:13:01 I'm an amateur Apr 24 14:13:16 Plus i could use the downloads Apr 24 14:13:26 whats the app ? Apr 24 14:13:41 https://play.google.com/store/apps/details?id=com.wolfden.android.learn2c Apr 24 14:19:15 DarkSlay3r: hmm Apr 24 14:19:36 I have some really horrid things to say about it if you want my honest opinion Apr 24 14:19:38 :) Apr 24 14:19:42 sorry Apr 24 14:20:37 Yeah well it's new Apr 24 14:20:40 personally I dont like the icon, but I'm a designer/artist so I'm probably never gonna like any icon….eva Apr 24 14:20:46 Let the horrid out Apr 24 14:20:58 Keep on going Apr 24 14:21:03 2 things that would just make me uninstall instantly Apr 24 14:21:18 as in if it were just one of these it would be gone Apr 24 14:21:42 in reverse order #2 the fade time and buggy navigation (back) etc Apr 24 14:21:52 #1 portrait ? really ? Apr 24 14:22:17 I fired it up and it wants to make me turn my tablet round ? Apr 24 14:22:21 thats a no no Apr 24 14:22:45 Well i plan on replacing the list view with sliding menu for tabs Apr 24 14:23:10 trying to split the screen for list view on tabs just doesn't go well Apr 24 14:23:31 But what would you suggest for the navigation? Apr 24 14:23:41 i wouldn't Apr 24 14:23:47 I would uninstall it Apr 24 14:24:00 cause I wanted to make me take my tablet out of the doc and rotate Apr 24 14:24:04 :) Apr 24 14:24:38 Well i'll work on that. Thanks your opinions are really helpful Apr 24 14:26:02 StingRay_: Seriously though Apr 24 14:26:17 what would you suggest for back navigation? Apr 24 14:26:58 you should get a coder to review it, more constructive critism and less insulting Apr 24 14:27:24 Omnicide: Well i don't mind the insults Apr 24 14:27:27 how would a coder review a visual user experience ? Apr 24 14:27:31 and they are not insults Apr 24 14:27:42 just sayin Apr 24 14:27:49 if you take them as such, thats not a problem with me, but with your perception Apr 24 14:27:50 i'm indie. I'm really the only person working on it Apr 24 14:28:10 So it's tough getting someone to review it. Apr 24 14:28:30 Plus it helps to have a second pair of eyes trying to find problems Apr 24 14:28:32 ok well for a user standpoint, things I would change in order Apr 24 14:28:45 1. landscape!!!!!!!!! Apr 24 14:28:48 Well i got my pen Apr 24 14:28:59 * DarkSlay3r begins to take notes Apr 24 14:29:08 2. there seems to be a few bugs in navigation, back twice etc Apr 24 14:29:21 3. the FADE time makes me want to go to sleep Apr 24 14:29:33 needs to bee like 200mili or something Apr 24 14:30:34 4. the logo / font … is not consistant and is a little out of place on my home screep or app drawer Apr 24 14:31:25 5. the spanner icon is out of style with the rest Apr 24 14:32:09 6. if it's fixed content I would have the search with an adapter/autotext Apr 24 14:32:45 the nav problem btw Apr 24 14:32:53 click a topic Apr 24 14:32:56 got to search Apr 24 14:33:05 press back Apr 24 14:33:19 press back again etc Apr 24 14:33:30 something just a bit odd Apr 24 14:34:07 oh.. Nice catch Apr 24 14:34:23 7. the white space either side of the header bars I dont like Apr 24 14:35:32 Dude you are like a machine.. I should have run into you sooner Apr 24 14:35:47 Don't stop now!! Apr 24 14:35:48 8. just for something a little more visual, maybe increase the font a few px for the index/list but then add a mid to low gray dec underneath Apr 24 14:36:11 Does anyone have a good solution for validation of spinners? I'm using a custom adapter to display a hint instead of a default selection, e.g. "Gender" instead of pre-selecting "Male". Is there anything I can do beyond popping up a Toast notification? I'd like to have something that matches the .setError on EditText fields. Apr 24 14:36:46 DarkSlay3r: thats about all, but they are kinda in order Apr 24 14:37:32 hope they maybe of use and you dont feel too "insulted" :) Apr 24 14:38:19 StingRay_: i'd be an idiot to feel insulted Apr 24 14:38:29 i'm trying to make a good app Apr 24 14:38:58 indeed, everyone has many diff opinions though, not all are valid, it's always up to you to decide!!! Apr 24 14:38:59 i can't do it without listening to what others have to say Apr 24 14:39:40 and I'm actually a very critical person, 17 years in console games / art td has made me so :) Apr 24 14:40:32 * DarkSlay3r hails the master Apr 24 14:40:58 thats not masterful Apr 24 14:41:08 just means I'm mostly critical and grumpy Apr 24 14:41:11 :) Apr 24 14:41:14 you are living my dream bro Apr 24 14:41:20 god no Apr 24 14:41:25 trust me no no no Apr 24 14:41:53 I like games and i want to make them at some point. Although i ended up in engineering school Apr 24 14:42:02 lol Apr 24 14:42:05 so i learn to code in my spare time Apr 24 14:43:29 StingRay_: don't tell me making games is a bad job Apr 24 14:43:44 engineering could be nice to know alot about though... for game development ;) lol Apr 24 14:43:49 I think anything is when you have done it for so long Apr 24 14:44:36 depends on how much you develop yourself I guess... Apr 24 14:44:42 Sirolf: if i can do something with all my knowledge of the internal workings of jet engines... then yipee Apr 24 14:45:26 the way you know how to implement that complex math could definitely help ;-) Apr 24 14:46:21 Well that's true Apr 24 14:46:30 but trust me the math is too complex Apr 24 14:47:09 I'd shoot Newton if i saw him for sitting under apple trees... Apr 24 14:47:20 that dude caused me a lot of headaches Apr 24 14:47:36 :) I don't know ... I mastered in physics and math Apr 24 14:48:04 Seriously? well you're in good company... Apr 24 14:48:17 engineering is a different story ;-) Apr 24 14:48:26 way more usefull hehe Apr 24 14:48:42 I think we all share the same basic set of courses Apr 24 14:49:44 yeah but engineers usually survive better at applying the math to something useful haha Apr 24 14:49:53 Sirolf: do you work in your field? Apr 24 14:50:10 partially Apr 24 14:50:14 Well we spend a lot of time applying the math into things that might never happen Apr 24 14:51:40 like i remember this one problem of trying to map a free flow surface around a mobius strip Apr 24 14:52:12 hha Apr 24 14:52:14 haha Apr 24 14:52:15 for what? Apr 24 14:52:32 or at school you mean? Apr 24 14:52:49 Well yeah at school. Aerodynamics class.. Apr 24 14:53:34 it's good practice Apr 24 14:54:40 Well yeah.. but impractical Apr 24 14:54:49 how far does the theoretical schooling go? Apr 24 14:55:02 I mean ... QM stuff? Apr 24 14:55:13 relativity ? Apr 24 14:55:46 QM? Apr 24 14:56:09 I did my first year at engineering ... then I switched to general physics because I wanted as much theory lol Apr 24 14:56:13 quantum mechanics Apr 24 14:56:20 Ah.. Well the classes stopped at relativity... Apr 24 14:56:40 But i ended going deep into computational physics Apr 24 14:57:05 ah nice Apr 24 14:57:18 I'd love to get more into that myself as well Apr 24 14:57:33 you do mostly mechanics then? Apr 24 14:58:09 Well yeah Apr 24 14:58:52 What do you for a living? Apr 24 14:59:39 so I have a progressbar whose seekbar is set to a layer-list with a background 9-patch and a progress 9-patch. On a recent device, the progress 9-patch is drawn WITHIN, the background 9-patch's padding, on an old device, it's drawn "AROUND" the background's padding (is the best I can describe it) -- the top half of the progress bar appears on the background's bottom padding and the bottom half appears Apr 24 14:59:40 on the top padding. My seekbar drawable is very simple: http://sprunge.us/jLOK -- what's going on? Apr 24 15:00:31 I'm working mostly in software business now ... Apr 24 15:00:58 Well i hope to get into that someday.. Apr 24 15:01:10 I like writing programs Apr 24 15:01:19 still do little projects at university Apr 24 15:01:24 where are you from? Apr 24 15:01:31 NC Apr 24 15:01:48 Hi all, is it possible to have a small screen device (320 * 320) work on Android JB? Apr 24 15:02:00 nice ... the weather must be better there ;-) hehe Apr 24 15:02:27 kozak: Unlikely... well i've never seen one anyway Apr 24 15:03:51 Not so bad Apr 24 15:03:58 where are you based? Apr 24 15:04:12 the netherlands ;) Apr 24 15:05:25 no kidding... Holland? Apr 24 15:05:34 yes sir Apr 24 15:05:39 I've heard great things Apr 24 15:05:53 haha ... non of it is true ;-) Apr 24 15:06:04 what have you heard? Apr 24 15:06:10 I've met a few people from there. Wonderful individuals Apr 24 15:06:40 yeah well ... I guess we're pretty amazing .. lol Apr 24 15:07:04 en beschijden Apr 24 15:07:12 zeker ;) Apr 24 15:07:28 schadenfruede Apr 24 15:07:58 Well i don't speak dutch Apr 24 15:08:13 *sad face* Apr 24 15:09:58 you don't need to :) Apr 24 15:11:50 Does anyone have any experience with de Google Services API? Apr 24 16:24:29 Isnt it possible to get the content of a notification when using AccessibilityService? Apr 24 16:26:23 Quacked: I think you can get some pieces of the content Apr 24 16:28:08 I tried with the whatsapp notification and I only got "Message from Firstname Lastname" with event.getText() Apr 24 16:30:21 Weird.. the dashclock is able to display the content Apr 24 16:48:41 I'm trying to import my eclipse android project into IDEA and i'm getting tons of errors Apr 24 16:50:23 need help implementing java.nio in my app to read a buffer. this morning i looked through android terminal sorce and have found that it uses java.nio to accomplish exactly what I am looking for but thier code is hard to follow. Apr 24 16:53:10 hi guys, do you have an idea how to move imageview when it is above viewpager, because viewpager uses onTouchListener too Apr 24 16:53:16 is it even possible Apr 24 16:53:17 android terminal uses CharBuffer.allocate(2); to allocate a buffer size and it uses this to append data Apr 24 16:54:50 hi everyone. Apr 24 16:55:44 im not rely sure but can you keep track of whats on top and just override OnToucgListener if imageview is above viewpager? Apr 24 16:57:52 onTouchListener does not get called at all Apr 24 16:58:55 above i mean it is literaly above, like in third dimension above.. viewpager is fill_parent width and height.. and imageview is in middle.. would like to move it around Apr 24 17:00:09 any of you know what this socket exception sento faild:ECONNRESET (Connection reset by opeer)? Apr 24 17:00:30 got a quick question about webivew. I have the webview pointing to a image that is a link, before it just pointed to the image and displayed it fine however I turned it into a link and now doesn't display properly in the webview and scrolls. How do I fix it? Apr 24 17:03:43 im on ubuntu and repo init -u https://android.googlesource.com/platform/manifest isnt working to get the manifest is there a alt? Apr 24 17:05:57 why doesn't daydream hide the systemui? Apr 24 17:06:00 that's annoying Apr 24 17:08:30 how would i use java.nio to read out data from getevent char by char using CharBuffer.allocate(2)? Apr 24 17:08:45 it won't be nonblocking in any case Apr 24 17:08:47 you need to use threads Apr 24 17:09:08 I've said it over and over, you don't get selector channels from anything but sockets and pipes Apr 24 17:10:09 im looking through android terminal source and trying to understand how they do it and i found they do use java.nio to get the output Apr 24 17:11:42 their underlying buffer choice is pretty irrelevant Apr 24 17:12:08 its the only thing i have seen working they way i want it to Apr 24 17:12:31 then read it and understand it Apr 24 17:13:11 lol its kinda hard when it passes input from method to method Apr 24 17:13:12 anyway, I've mentioned Pipe to you before Apr 24 17:13:19 and selectors Apr 24 17:13:25 you figure out how to connect them Apr 24 17:13:42 fine, I'll throw in Channels for you, too Apr 24 17:13:49 that's the last piece of the puzzle Apr 24 17:13:53 i read that pdf and it was a wast of time thx Apr 24 17:14:00 what pdf Apr 24 17:16:17 i dont want to wast your time anymore please ignor me Apr 24 17:22:21 Hello, someone can tell where to get a full project, to take pictures without standard app ??? I have tried to make my own app for days but I'm getting error everytime and java.null.refences... Apr 24 17:28:05 anyone know of a good dev that i can hire to write the code that i need? i have tried to do this myself and have had no luck. Apr 24 17:28:40 Sounds like you gave up Apr 24 17:29:08 nopes i dont give up ever ill keep trying but after 3 months of getting nowere Apr 24 17:29:14 i have to try other options Apr 24 17:29:43 Dang, if only I was better at Android development Apr 24 17:30:15 the problem i am haveing is not a simple task Apr 24 17:32:24 mmoassistdev1, no recruiting in here please Apr 24 17:33:19 ah im not recruiting .. i was asking if anyone knew were i could look Apr 24 17:33:38 you're recruiting people to help you recruit Apr 24 17:33:42 sounds like recruiting to me Apr 24 17:34:02 ok if you say so sorry Apr 24 17:38:11 mmoassistdev1: I assume you're building an MMO? Apr 24 17:38:27 what's the problem? Maybe you can get back on track Apr 24 17:38:41 nopes im trying to make a program that automates touches on android Apr 24 17:39:34 and i am having problems reading the output of get event because of some sort of buffer that needs to be filled Apr 24 17:40:15 i have got some great help from this channel but non of the suggestions have worked and anything dealing with channels is beyond me Apr 24 17:40:21 some sort of automation testing for UI? Apr 24 17:40:29 yea Apr 24 17:40:58 Inside a vertically oriented LinearLayout, why is it that an ImageView with {layout_width='wrap_content', layout_height='wrap_content'} behaves the same as an ImageView with {layout_width='wrap_content', layout_height='0dp', layout_weight='1'}? Apr 24 17:41:30 I would expect the ImageView with {layout_height='0dp', layout_weight='1'} to fill the remaining space in the LinearLayout, but it's not doing that Apr 24 17:41:32 mmoassistdev1: and didn't Monkey help there? Apr 24 17:41:59 anyone had any luck debugging c++ code with android ndk? Apr 24 17:42:06 monkey is not user friendly so im making an app that is Apr 24 17:42:22 YiamiYo, Windows ADT seems to get a reasonable backtrace once it sigsegv Apr 24 17:42:30 Can't say the same for Linux ADT Apr 24 17:42:31 i dont want the user to have to script anything Apr 24 17:42:42 mmoassistdev1: devs dont need user friendly.. we can type one line :D Apr 24 17:42:46 mmoassistdev1: NDK can go pretty deep, tried that? Apr 24 17:43:31 no i want to use java.nio and get output as it arives from getevent exactly how android terminal does it Apr 24 17:43:54 i been looking at the source and starting to understand it Apr 24 17:44:01 Sonicadvance1, I'm on mac os x and though i can see gdb messages on eclipse console (e.g. setting breakpoints) breakpoints don't seem to work... Apr 24 17:44:58 I guess I've never set a breakpoint with gdb. I do know that continue with gdb seems to be broken here on my ARM chromebook :/ Apr 24 17:45:18 got to do a $pc = $pc + 4 and then continue at times Apr 24 17:45:21 SoniAndroid: NDK has it's own gdb Apr 24 17:45:35 and Eclipse has support for it nowadays IIRC Apr 24 17:45:52 before you had to use something called Seqoya Apr 24 17:45:55 belgianguy, any ideas why breakpoints don't work? Apr 24 17:46:47 YiamiYo: they do work in my project, I have to start the Java debugger first (make it hit a pure Java breakpoint), and then the ndk-debugger, and that will stop at C++ breakpoints Apr 24 17:47:15 belgianguy, i'm using NativeActivity :/ Apr 24 17:47:17 belgianguy, are tou talking to me ? Apr 24 17:47:28 SoniAndroid: both :) Apr 24 17:47:32 oops Apr 24 17:47:39 sorry SoniAndroid I missed a name Apr 24 17:47:42 ok Apr 24 17:48:50 YiamiYo: do you use Eclipse? Apr 24 17:49:11 I'd say Google on these terms 'eclipse ndk sequoyah' Apr 24 17:49:30 belgianguy: i've tried that and didn't work at all Apr 24 17:49:33 does anyone have an idea how i can make drag and drop of an ImageView that is outside of ViewPager, but ViewPager is behind that, and i would like to move it around, if that is touched, if something from behind(ViewPager) is touched, then i can scroll viewpager and similar.. but that does not seem to work for me, lost 10 hours on it now :/ Apr 24 17:49:43 YiamiYo: it's pretty messy indeed Apr 24 17:49:46 right now i;m using nvidia's tegra ndk and it seems to work...kinda.. Apr 24 17:50:31 btw should i use Android NDK Application or AndroidNAtive Application? Apr 24 17:51:28 YiamiYo: never heard of that distinction, no idea there Apr 24 17:52:20 belgianguy: i think sequoyah uses Android Native Application, but i get "Failed to execute MI command: -target-select remote localhost:5039" with it... Apr 24 17:52:32 how would you get the scalar value from the rotation vector sensor? Apr 24 17:54:34 YiamiYo: are your ports configured correctly? Did you follow the port numbers etc? Apr 24 17:54:48 IIRC you even had to comment a line in the ndk-gdb Apr 24 17:54:50 here's the gdb "log" when debugging with Android Native Applicaton: http://pastebin.com/Y7wHpqjK Apr 24 17:57:02 belgianguy: are you talking about the last line you had to comment for sequoyah so you run gdb by yourself? Apr 24 17:58:44 YiamiYo: no, IIRC there's something in ndk-gdb that made Eclipse unhappy Apr 24 17:58:51 but I can't recall what Apr 24 17:59:07 I followed this tutorial (sadly, JNI oriented) http://www.eclipse.org/sequoyah/documentation/native_debug.php Apr 24 18:00:32 belgianguy: yeap...that's the one i used too...but it doesn't work for native activities Apr 24 18:00:50 belgianguy: thanks for your time anyway :) Apr 24 18:01:21 anyone else managed to debug NativeActivity C++ code? Apr 24 18:02:30 how can I run native code in root privileges on an emulator? Apr 24 18:17:07 "native" code? Apr 24 18:18:02 C Apr 24 18:18:47 simple, su -c "my-native-executable" Apr 24 18:18:58 adbd runs as root on the emulator, so you're already done Apr 24 18:19:23 yeah, but I need to call this "su -c " from regular Android app Apr 24 18:20:07 then runtime.exec(su -c ...) Apr 24 18:25:55 Hey guys, I'm making a media player application and part of it is using a ViewPager with a fragment Apr 24 18:25:55 Is the ActionBar supposed to be the top row of an activity? Or is it only shown when I click the options button on my device? Apr 24 18:26:06 But for some reason, the ViewPager is taking up the entire page Apr 24 18:26:16 And not allowing me to define media controls at the bottom of the app Apr 24 18:29:28 is the ActionBar only on top when i use a holo theme? Apr 24 18:32:10 Zaknafein: I believe it's on top regardless of theme, and regardless of hitting 'options. Apr 24 18:32:28 (rather, on newer devices it's how you access the 'options') Apr 24 18:33:16 does anyone have idea to implement oAuth on android without using webview. Apr 24 18:40:47 Does the Android developer site still keep that pie chart of devices in cirulation by OS? Apr 24 18:42:00 svm_invictvs: http://developer.android.com/about/dashboards/index.html Apr 24 18:43:08 lol Honeycomb was a passing fart in the wind Apr 24 18:43:38 svm_invictvs: yeah most honeycomb devices got upgraded to ICS Apr 24 18:43:43 luck for us :) Apr 24 18:44:06 I'm not trying to dog anything, but I remember it was out for all of three months. Apr 24 18:52:55 more like 7 Apr 24 18:58:59 march-ish until around october Apr 24 18:59:53 woot? Apr 24 19:00:01 Man Apr 24 19:00:05 I just want Apr 24 19:00:19 when I use adb shell, following command works: su -c "iptables -L" --- but executing the same on terminal emulator nothing is printed. Apr 24 19:00:29 how can I use .getSystemService? In the Docs, there is simply a casting to the desired service (ie (PowerManager)getSystemService(Context.POWER_SERVICE)), but here I get the error "Cannot find symbol (getSystemService)" Apr 24 19:01:25 Gingerbread to lose it's majority haha Apr 24 19:03:57 getSystemService is a Context method.. Get a Context Apr 24 19:04:46 Is it possible to create create a PopupWindow when a dialog is open? no right? Apr 24 19:08:40 glass Apr 24 19:08:47 get yours Apr 24 19:08:49 SimonVT: how can I get a context? Apr 24 19:08:51 i'm gonna be a glasshole soon Apr 24 19:08:55 saturday Apr 24 19:08:58 awesome Apr 24 19:09:06 i'll bring them out to st louis Apr 24 19:09:07 happy belated birthday? Apr 24 19:09:11 even more awesome Apr 24 19:09:44 * pfn twiddles thumbs at not being able to do anything Apr 24 19:09:46 * pfn pokes mikedg Apr 24 19:10:00 yeah, uh I went through this too Apr 24 19:10:05 keep twiddling Apr 24 19:10:26 hmm Apr 24 19:10:57 want to make something that lets us recycle views and scroll horizontally? Apr 24 19:13:53 I suppose, sure Apr 24 19:14:02 doesn't gallery or something already do that, though Apr 24 19:14:14 https://github.com/lucasr/twoway-view Apr 24 19:15:41 man, I hate the ddms logcat view, that shit jiggles too much Apr 24 19:16:35 gallery is deprecated :| Apr 24 19:16:45 twowayview does exactly what you want Apr 24 19:17:22 and I thought gallery never recycled as expected Apr 24 19:17:31 I could be wrong on that, i hate horizontally scrolling views Apr 24 19:17:34 mayhbe it's gridview that I was thinking of Apr 24 19:19:27 griview is just vertical Apr 24 19:19:48 but now that you said that Apr 24 19:19:56 i vaugely remember somehting in the support lib Apr 24 19:20:58 oh thats just gridlayout bah Apr 24 19:23:29 i cant go up in irssi with pageup and did not see if anyone respond, so ill repost :) sorry.. and last time! :) Apr 24 19:23:32 does anyone have an idea how i can make drag and drop of an ImageView that is outside of ViewPager, but ViewPager is behind that, and i would like to move it around, if that is touched, if something from behind(ViewPager) is touched, then i can scroll viewpager and similar.. but that does not seem to work for me, lost 10 hours on it now :/ Apr 24 19:23:44 meh, I guess it doesn't do side-to-side Apr 24 19:45:21 Hi guys, I'm dealing with smsManager and I have a question, how the sdk knows that the sms is sent correctly? I mean, what is the internal process? Because sometime I get this status STATUS_ON_ICC_SENT and other I dont' receive any status but the sms is sent Apr 24 19:52:02 is possible to see the code of SmsManager sedk? Apr 24 19:57:00 makin: http://source.android.com/source/downloading.html Apr 24 19:58:05 makin: http://android.googlesource.com/ Apr 24 19:59:20 oh, thank's Apr 24 20:08:36 wow, i didn't know about this: http://developer.android.com/training/efficient-downloads/efficient-network-access.html#DDMSNetworkTraffic Apr 24 20:08:39 sick! Apr 24 20:08:44 lets you even tag sockets? Apr 24 20:08:48 wow. Apr 24 20:09:30 i have a question about the mediascanner Apr 24 20:09:37 with the introduction of MTP a lot of that stuff has changed Apr 24 20:09:48 for instance, when we rename a file, it doesn't update in the media database Apr 24 20:10:00 calling the media scanner on that file doesn't seem to work, either Apr 24 20:10:17 I have a question about using eclipse and trying to load the launcher2 master project so i can work on my own launcher has anyone done this before Apr 24 20:10:25 does anyone have any experience with this? Apr 24 20:12:18 schuranator, you can't build aosp packages with adt Apr 24 20:12:59 jasta, neat Apr 24 20:13:08 schuranator: typically, you can use an IDE to write/edit the code, but you actually build using the normal android build commands on the commandline Apr 24 20:13:28 Oh really Apr 24 20:13:42 i use eclipse for Nova Launcher Apr 24 20:14:00 So that would explain the 1268 errros Apr 24 20:14:02 errors Apr 24 20:14:02 if you want to build with the android sdk, you need to remove /lots/ of code Apr 24 20:14:04 kevinb: that's not a project in the android source tree :) Apr 24 20:14:12 the AOSP launcher generally won't compile out of the box against the SDK, but it's gotten better Apr 24 20:14:16 schuranator, no, the 1268 errors need to be resolved by adding the rest of the platform code Apr 24 20:14:19 JesusFreke: but it's based on AOSP's launcher Apr 24 20:15:36 schuranator: take a look at the development/tools/idegen tool (it might be a slightly different path, that's just off the top of my head) Apr 24 20:15:40 So how would I go about creating my own launcher if I can't use the aosp Apr 24 20:15:42 if you're building a launcher for a rom, it's fine to use the internal platform code and internal APIs so compiling with the AOSP tools is probably easier. but if you want to put it on the market i'd recommend sticking to the SDK as much as possible, including compiling with it. Apr 24 20:15:52 schuranator, by understanding how it works and implementing yuour own Apr 24 20:15:57 it can build an idea/eclipse project, with lots of the dependencies and stuff Apr 24 20:19:34 JesusFreke: you're saying if I can install/build idegentool it should help me get this AOSP to compile? Apr 24 20:19:35 schuranator: you _can_ use the aosp one. You just can't import it into eclipse like a regular android app (because it isn't) Apr 24 20:19:36 hey guys. has anyone seen the behavior of threadpoolexecutor not running threads after you send the application to the back (via activity.sendtasktoback) and pulling it back from the list? Apr 24 20:19:53 It should help get you a usable eclipse project Apr 24 20:19:59 you still need to build from command line Apr 24 20:20:03 evanc: Is there a way to make it a Exclipse app? Apr 24 20:20:45 schuranator: two steps: 1) listen to what JesusFreke is saying and 2) think. Apr 24 20:21:34 schuranator: if you want to compile against the SDK (like for releasing on the market) after importing to the IDE you will still have a lot of errors, if you're building a launcher for the market just go through and fix these one by one. some are super easy (using mLeft instead of getLeft()), some just mean deleting parts of the code you don't need (if RocketLauncher is still in AOSP you probably don't need it, and there's a new user receiver for changing Apr 24 20:21:35 wallpaper you don't need). some requires copying resources from AOSP into your project. Apr 24 20:21:40 i want to play an mp3 with MediaPlayer class and produce a visualization of the sound, like an output/ampitude indicator (green and red bard that flash). where would i start? Apr 24 20:21:58 bars* Apr 24 20:22:51 schuranator: and set your build target to the latest android version. get it compiling first then go back and try to make it work on older versions if you desire. Apr 24 20:23:34 kevinb: I'm going to look at what you mentioned and see where I get. I'm new to android development and have done a few ios apps but looking to move over to Android Apr 24 20:28:54 schuranator, writing a launcher isn't a good place to start Apr 24 20:29:31 schuranator, you should look at an open-sourced launcher that already builds independently of aosp, rather than starting at aosp yourself Apr 24 20:29:49 unless hacking on roms is something you're interested in doing Apr 24 20:29:51 pfn: That's my current plan I'm reading about it first Apr 24 20:30:17 brx_, set your own datasource that's buffered through a filedescriptor Apr 24 20:30:27 brx_, and do the visualizations as data is thread through your fd Apr 24 20:31:17 brx_, actually, I suppose you'd do it through a contentprovider uri Apr 24 20:31:22 pfn, could i make use of this http://developer.android.com/reference/android/media/MediaRouter.VolumeCallback.html Apr 24 20:31:40 that's volume setting Apr 24 20:31:42 not signal level Apr 24 20:31:48 ok Apr 24 20:32:40 I suppose you can use MediaExtractor on the file beforehand Apr 24 20:32:51 and perform processing in time with MediaPlayer callbacks Apr 24 20:33:25 heh lots of stuff to explore here Apr 24 20:36:04 thanks pfn (my head is now in pieces) Apr 24 20:51:15 is there any way I can avoid my app from being destroyed by the system after it's in the background for a long time? Apr 24 20:51:59 I was previously using movetasktoback but it seems that's the wrong approach Apr 24 20:53:09 deleet: what are you really trying to do? Apr 24 20:54:31 my app has a very long startup time and I don't want my users to have to wait for 20+ secs each time they launch it Apr 24 20:54:51 (this is unavoidable due to a variety of other problems) Apr 24 20:55:13 I already have a few services running but the app still gets killed after a while Apr 24 21:01:08 evanc: any suggestions? Apr 24 21:01:25 store state locally so it doesn't take 20 seconds everytime Apr 24 21:01:35 are you sure your service is still running? services are pretty good about persisting Apr 24 21:01:39 can't, data is too volatile, that's what the service is for :P Apr 24 21:01:55 data is never too volatile Apr 24 21:02:07 I beg to differ lol Apr 24 21:02:09 if it takes 20 seconds to startup and you want it to stick around for hours, the data is clearly not too volatile Apr 24 21:03:03 what kind of data is that -. Apr 24 21:03:04 -.- Apr 24 21:03:07 my service is ended after a while, yes (logcat stops showing output) Apr 24 21:03:12 Zharf: real time data Apr 24 21:03:26 of what Apr 24 21:03:34 how's that relevant Apr 24 21:03:49 trying to figure out why it's so important Apr 24 21:03:53 aanyway Apr 24 21:04:13 for a service to stay up it should startForeground Apr 24 21:04:18 it might still die Apr 24 21:05:14 services can always die Apr 24 21:05:22 I see. will my global application class be destroyed as well or no Apr 24 21:05:23 if your app takes 20 seconds to start, you need to cache Apr 24 21:05:31 yes, if you have no lifecycle containers left standing Apr 24 21:05:34 because I can keep references to the processed data in memory there Apr 24 21:05:36 your application will be destroyed Apr 24 21:05:49 foreground services are prioritized though Apr 24 21:05:56 pfn: caching's not a possibility sadly Apr 24 21:06:04 it always is Apr 24 21:06:10 you already are caching it Apr 24 21:06:28 yes but in a state that my service can update it Apr 24 21:06:41 so? Apr 24 21:06:51 what difference does it make whether it's in memory or on-disk Apr 24 21:07:58 I'm not allowed to do so (restrictions/rules/whatever you want to call them) Apr 24 21:08:10 these are not imposed by the app but by the business instead Apr 24 21:09:38 so, no other alternatives then, aside from startForeground Apr 24 21:09:56 no alternative Apr 24 21:10:05 hi, please tell me what value for auth_token_type should be set on call getAuthToken() for authenticating with google. Apr 24 21:10:10 ok, I will play around with that and see what I can do Apr 24 21:10:15 thanks for the help though, appreciated Apr 24 21:10:31 business rules should be fixed Apr 24 21:10:39 deleet: note that startForeground will result in a notification that sticks around so your user will know that the app is busy sucking away their precious battery :) Apr 24 21:10:39 either so that it doesn't take 20 seconds to start up, or storing data on disk is ok Apr 24 21:18:57 pfn: when you're dealing with the horror show of erlang + jni + couchdb, everything takes eons :P Apr 24 21:19:16 erlang on android? awesome... not Apr 24 21:19:21 evanc: yeap, I am aware Apr 24 21:19:24 deleet: i would do that only for sex with a really hot girl Apr 24 21:19:30 heh, tell me about it. it's a nightmare :( Apr 24 21:19:31 deleet: a lot of money Apr 24 21:20:12 deleet: or maybe on a seminar about pain reduction after going to a nightmare Apr 24 21:20:37 I should sign up for those. like 10 of em Apr 24 21:21:01 but at least you get to do some really cool shit though Apr 24 21:21:07 well then it must be some academic shit ;) Apr 24 21:21:49 I might just cache it on disk and try to get away with it.. they wont like it when they find out Apr 24 21:24:21 how big is the data? Apr 24 21:24:35 yeah that's the main question Apr 24 21:24:54 go and use some of your math stuff you learned at university! Apr 24 21:25:11 check for O(n) ;) Apr 24 21:25:33 it's like, O(n^n) :( Apr 24 21:25:45 well no problem with n=100 Apr 24 21:25:50 or even n=1000 Apr 24 21:25:56 try n=10^35 Apr 24 21:26:20 then tell your guy - the should restate the problem Apr 24 21:26:23 these poor tablets can cook a few eggs anytime Apr 24 21:30:09 just dont make the batteries explode Apr 24 21:30:37 yeah - they make you HOT Apr 24 21:33:46 hm, bummer. project jigsaw got dropped from java 8 Apr 24 21:34:02 i guess people will need their mavens a little longer Apr 24 21:34:17 will java 8 get properties? Apr 24 21:34:36 g00s, I doubt anything would replace maven in a long while Apr 24 21:34:43 it's just awesome in so many ways :) Apr 24 21:35:33 Zharf: not really :D Apr 24 21:35:44 really Apr 24 21:35:52 no, NOT really XD XD Apr 24 21:36:02 yep really :p Apr 24 21:36:09 now you listen … XD Apr 24 21:39:39 is it possible to modify the drop shadow of a DialogFragment? Apr 24 21:39:54 afaik yes Apr 24 21:40:02 the drop shadow is part of some style Apr 24 21:40:20 ok Apr 24 21:40:22 maybe the theme? Apr 24 21:40:24 i did this with Dialog styles Apr 24 21:40:27 theme yes Apr 24 21:40:36 but you can apply a style per "View" Apr 24 21:41:03 it depends on you needs Apr 24 21:41:05 hey guys Apr 24 21:41:07 ok Apr 24 21:41:15 monsti: thanks, I'll look into how to do that Apr 24 21:41:21 I need to urlencode spaces to %20 instead of + Apr 24 21:41:27 looks like URLEncoder.encode does + Apr 24 21:41:43 so I'm just taking those results and then doing a .replaceAll("\\+", "%20"); Apr 24 21:41:50 wanted to double check if that is a good way to do this Apr 24 21:42:36 g00s, but I don't think jigsaw would replace maven, I think it would enforce it, make it even better Apr 24 21:45:18 Zharf: i guess we'll see when they get done in 2050 :P Apr 24 21:45:45 it was meant for java 7, now dropped from 8, so i guess 9 which is 2016 i think Apr 24 21:46:03 g00s, :) Apr 24 21:46:25 who cares about jigsaw Apr 24 21:46:27 need lambdas first Apr 24 21:46:36 they almost dropped that Apr 24 21:46:44 thankfully not Apr 24 21:47:03 * pfn twiddles thumbs until java becomes a decent language Apr 24 21:47:03 in 2016 we will have 7r1331242 Apr 24 21:47:13 the patchpatchpatchpatchpatchpatchpatch edition Apr 24 21:47:16 lambdas would make java much nicer Apr 24 21:47:43 idea already collapses anonymous things like runnables into something that looks like a lambda :p Apr 24 21:47:50 i dont use java outside of android anhow, so i'll probably never see it Apr 24 21:48:05 it'd be nice if android moved on with java too Apr 24 21:48:14 indeed Apr 24 21:48:24 Zharf, yeah, that's idea, though Apr 24 21:48:33 pfn, yep Apr 24 21:48:56 it does all sorts of stuff like make new disappear and crap, not a fan Apr 24 21:49:13 pfn, I love it :å Apr 24 21:49:22 * pfn just avoids java when possible Apr 24 21:49:27 pfn: is the ide doing some sort of syntactic sugar thing ? Apr 24 21:49:35 idea does Apr 24 21:50:02 g00s, it's only visual thing really Apr 24 21:50:45 i wonder how Kotlin is going Apr 24 21:55:45 a whole lot of nowhere, I hope :p Apr 24 21:56:00 too many competing jvm languages Apr 24 21:56:34 Let's all use assembly Apr 24 21:56:38 screw cross-compatibility Apr 24 21:56:56 g00s what about scala Apr 24 21:57:26 Is there a way to show like a popup window? Not a full screen activity but just a modal dialog type thing? Apr 24 21:57:31 g00s: heh, I got a bug in smali the other day for a kotlin class. Apr 24 21:57:36 Zaknafein: pfn knows all about scala, i dont use it. the only alt lang i've tried on jvm is clojure Apr 24 21:57:39 ProgramMax: AlertDialog? Apr 24 21:57:51 g00s, why even be interested in kotlin if you aren't interested in scala? Apr 24 21:57:57 that's what I wonder... Apr 24 21:58:02 pfn: it seemed .. simpler :) Apr 24 21:58:28 you could practically write scala as if you were writing entirely in java... Apr 24 21:58:36 I'm running Windows 8 x64. The android sdk installer completed successfully. "AVD Manager" refuses to start. There is no error message. Suggestions? Apr 24 21:59:25 pfn what do you mean ? Apr 24 21:59:38 write scala as if you were writing entirely java? Apr 24 21:59:44 Zaknafein, the languages are quite similar Apr 24 22:00:00 its nice when there is a pay-as-you-go approach, yeah Apr 24 22:06:39 are their any platforms out their where i can distrubute my app for beta testing? Apr 24 22:07:27 testflight Apr 24 22:08:38 what should I google for things like a tabbed dialog? Apr 24 22:09:10 Do you do it manually with buttons for tabs and then just use fragments? Apr 24 22:10:15 dialogs don't have a fragment manager Apr 24 22:10:17 google Malebolge Apr 24 22:10:20 swap views yourself Apr 24 22:10:48 Can you do that? Like keep the same dialog open and just swap out the view? Apr 24 22:10:53 yes Apr 24 22:10:58 that's exactly what fragments do Apr 24 22:11:10 except they use 10000 lines of asynchronous asinine Apr 24 22:11:31 g00s: ABS already doesn't support action bar functionality from beyond ICS. That's not its job. Apr 24 22:12:07 kk Apr 24 22:12:14 Zharf: ABS 4.3.0 is in central Apr 24 22:14:07 cheers pfn Apr 24 22:14:21 JakeWharton: quick q for you, on the left of the up button on ABS I have a 16px 'padding' .. how do I remove this Apr 24 22:14:38 you can't Apr 24 22:15:03 * deleet rages Apr 24 22:15:43 write your own actionbar Apr 24 22:15:44 :p Apr 24 22:15:57 too lazy :( Apr 24 22:16:06 no raging for you then Apr 24 22:16:13 deleet: don't remove that Apr 24 22:16:35 is testflight out of private beta for android yet? Apr 24 22:16:38 evanc: any reason in particular Apr 24 22:17:56 anyone have worked before with smsManager and general failures? Apr 24 22:20:15 deleet, because it breaks UI uniformity across applications Apr 24 22:20:26 especially when you're using something common, like abs Apr 24 22:20:49 makes your app stick out like a sore thumb and makes the platform as a general look pretty bad Apr 24 22:21:12 well, my issue with it is not the click point or even the space on the left .. it's more about when you tap and the area of the image is highlighted .. and there's a chunk of the normal background on the left Apr 24 22:21:54 looks the same everywhere Apr 24 22:21:58 I assume Apr 24 22:22:15 and from what you said, that sounds like a bug Apr 24 22:22:21 sounds like the mistake in use of padding vs. margin Apr 24 22:22:38 there is none of those on the home button Apr 24 22:26:14 this is what I mean: http://cl.ly/image/320d1t3I3O40 Apr 24 22:26:34 that's because you don't have the up arrow displayed but have the home icon enabled Apr 24 22:27:10 but I'm setting setDisplayHomeAsUpEnabled(false); .. is that not right Apr 24 22:27:28 home as up controls the visibility of the up arrow Apr 24 22:27:49 arg Apr 24 22:28:01 just set the homeAsUpIndicator to a blank image Apr 24 22:28:03 and enable it Apr 24 22:28:24 whats a good command line shell for windows? Apr 24 22:28:26 k, I can do that Apr 24 22:28:28 thanks Apr 24 22:28:36 I use git-bash Apr 24 22:28:41 since I'm not a cygwin fan Apr 24 22:28:48 hrm Apr 24 22:28:53 (git-bash is based off of mingw, which is unrelated to cygwin) Apr 24 22:28:55 why would you ever bash git :( Apr 24 22:29:11 why would you not bash git? Apr 24 22:29:17 then again, you could use powershell... Apr 24 22:29:21 if that's your cup of tea... Apr 24 22:29:27 but it seems so useless if you aren't working with .net Apr 24 22:29:38 JakeWharton: heya Apr 24 22:29:42 hi Apr 24 22:29:44 you always zsh git Apr 24 22:29:50 it's a crime not to Apr 24 22:29:52 I had some trouble earlier today getting ABS to work :) Apr 24 22:30:54 4.3.0 hasn't yet been 'tutorialized' it seems Apr 24 22:31:16 I got it to work through Zharf's explanation and put it in a Gist: https://gist.github.com/belgianguy/5451960 Apr 24 22:32:42 wtf Apr 24 22:33:22 that's a lot of steps... Apr 24 22:33:53 no way to set homeAsUpIndicator through code or am I just not seeing it Apr 24 22:33:59 JakeWharton: well it's through Maven, and I already had spent 2 days on trying to get it to work :/ Apr 24 22:35:05 4.2.0 I could load through a module in IntelliJ, but since it gained more dependencies it seems, breaking the earlier methods Apr 24 22:35:35 the dependencies have not changed Apr 24 22:35:44 deleet: theme only Apr 24 22:36:33 perhaps it was my inadequacy wrt Maven that caused it, but it wouldn't resolve the robolectric dependency and hence, not build Apr 24 22:36:48 k .. I hate the theme concept, the less xml I write the better Apr 24 22:37:21 themes and styles are amazingly powerful Apr 24 22:37:43 sadly not for what I'm doing Apr 24 22:37:45 JakeWharton: and I tried to be as detailed as possible, so the verbosity might be high, but I assumed the rate of error would be low Apr 24 22:37:54 the verbosity is very high, yes Apr 24 22:38:02 also, ew archetypes! Apr 24 22:38:06 they're more of a hassle/nuisance that get in the way most of the time Apr 24 22:38:13 Interestingly, The Galaxy S4 final video driver disabled the OpenGL ES 3 version string. but still it retains the EGL bit saying it supports GLES3, I'm assuming this is for dumb games that check against the version via strstr(GL_VERSION, "2.0") Apr 24 22:38:22 deleet: false Apr 24 22:38:33 and if you don't use them, you're app looks like shit because it's unstyled Apr 24 22:38:54 JakeWharton: false ;) Apr 24 22:39:33 JakeWharton: I hadn't yet heard of archetypes, but this method is quite failsafe, do you have a better way documented somewhere? Apr 24 22:39:44 I said I didnt use xml, not styling lol Apr 24 22:40:06 belgianguy: probably not Apr 24 22:40:54 JakeWharton: if it weren't explained to me, I'd never found out what archetype I needed (there's hundreds of them) Apr 24 22:41:11 im out, gn Apr 24 22:41:26 i don't think most people every use archetypes Apr 24 22:41:42 JakeWharton: it's a Maven thing I guess Apr 24 22:41:53 it's a Maven beginner thing Apr 24 22:42:18 Maven didn't even see my ANDROID_HOME, once I corrected that, it still didn't see my Android sdk dirs in its tests Apr 24 22:42:33 (and I had to add the local.properties with the SDK dir) Apr 24 22:43:08 JakeWharton: well everyone has to start somewhere, Maven wasn't in my toolbox until earlier today Apr 24 22:44:08 the archetype approach went flawless and no odd errors involved Apr 24 22:45:27 well, it is quite annoying to have to setup a pom.xml for maven by hand on every single project Apr 24 22:45:31 archetypes are handy, for that reason Apr 24 22:45:55 I hadn't even seen a pom.xml before this morning, let alone edit one by hand Apr 24 22:46:26 (the ABS dependency was added by hand) Apr 24 22:46:48 cp -R otherproject/ newproject/ Apr 24 22:46:59 (i got disconnected here, missed any messages) Apr 24 22:47:03 once it works, yes Apr 24 22:49:02 I mean no harm, and am not qualified to comment on a project the size of ABS, I just had trouble getting it to work Apr 24 22:49:16 and I am always open to better and more efficient ways Apr 24 22:49:50 Is possible to determinate if a phone is GSM or CDMA? Apr 24 22:50:58 if you have the android-maven-plugin in your pom with true then adding ABS is 4 lines inside a declartion Apr 24 22:51:05 Maven or your IDE will take care of the rest Apr 24 22:55:36 JakeWharton: I'll have to look into that, might be nice for people like me to find such things somewhere :) Apr 24 22:59:36 JakeWharton: and I added ABS in about four lines (groupId, artifactId, type and version), it's that I didn't know about (nor any other Maven related tag) Apr 24 23:00:02 that's all the android-maven-plugin. basically what tells Maven about Android's types (apk, apklib, etc.) Apr 24 23:00:22 any news on Eclipse support for apklibs? :) Apr 24 23:00:46 JakeWharton: is that in the docs somewhere? Apr 24 23:00:55 I stopped using Eclipse 16 months ago which is precisely when I stopped caring about its apklib support Apr 24 23:01:00 belgianguy: whose docs? Apr 24 23:01:14 JakeWharton: ABS? Apr 24 23:01:34 no. that's common to all Maven Android projects Apr 24 23:01:49 IntelliJ has 'Maven' and 'Android' support, but I don't know if that plugin comes by defaukt Apr 24 23:01:57 JakeWharton: (not sure if this message came across or not, got disconnected at some point) have you had trouble with IDEA not ignoring .class files (in the quick open dialog, etc) for maven projects? Apr 24 23:01:58 default* Apr 24 23:02:12 belgianguy: you have to declare it in your pom Apr 24 23:02:21 the pom is the source of truth for everything Apr 24 23:02:29 it's driving me crazy, because half the time the thing selects the class file instead of the java file Apr 24 23:02:56 codebutler: yes I've seen that quite a few times as well Apr 24 23:03:08 JakeWharton: maybe that'd be something for the README? I couldn't figure it out (but am not representative of Android Developers) Apr 24 23:03:34 JakeWharton: I've found that if I manually 'exclude' the directory in the module settings it works until the next time the pom files change, and then it all gets reverted. Apr 24 23:04:01 belgianguy: that's a bit out of scope for ABS which is just a library. it's not here to teach you how to use Maven or Android with Maven and such. The android maven plugin has its own site with a ton of docs and sample apps Apr 24 23:05:07 dont worry belgianguy, i struggle daily with maven as well :( Apr 24 23:05:10 JakeWharton: i can understand that, but still, a library is of little use if you can't get it to work, but yeah, it's a pretty advanced library Apr 24 23:05:19 maybe it's better if only advanced users get to see it Apr 24 23:05:21 Now I need to find someone with a ATT Galaxy S4 and beat them down Apr 24 23:06:31 if you're new to Maven and new to ABS those probably aren't two things you should tackle at the same time anyways Apr 24 23:07:11 well, last time I was able to bypass Maven completely Apr 24 23:07:36 perhaps I did something wrong, which can happen Apr 24 23:07:38 you still can. the actionbarsherlock/ folder is a perfectly constructed normal library project suitable for Ant Apr 24 23:08:59 JakeWharton: ok, I have little (to no) experience with Android libs, that might explain it Apr 24 23:09:00 How can I check if the phone is cdma or gsm? Apr 24 23:09:28 makin: model number? Apr 24 23:09:35 makin: don't listen to belgianguy Apr 24 23:09:48 evanc: ? Apr 24 23:09:57 makin: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkType() Apr 24 23:10:26 makin: actually, http://developer.android.com/reference/android/telephony/TelephonyManager.html#getPhoneType() Apr 24 23:10:37 depends on what you actually want Apr 24 23:10:41 oh thank you, I lost the chat Apr 24 23:12:01 evanc: and how would I know what he actually wanted? Your information was more correct, but a bit blunt IMO Apr 24 23:12:08 I just want to know if the network is gsm or cdma, because I think that they use a different sms encoding Apr 24 23:12:55 hi guys Apr 24 23:13:01 I had a few questions Apr 24 23:13:44 Mavrik you still there? Apr 24 23:13:47 evanc, did you worked with smsManager and general failures? Apr 24 23:14:09 belgianguy: as a general rule, if you're ever checking a model number, you're doing it wrong. Apr 24 23:14:15 makin: no Apr 24 23:15:24 belgianguy, thank you. I missed your chat Apr 24 23:15:48 makin: no problem, sorry I was wrong, but evanc pointed that out already Apr 24 23:16:29 I'm working with smsManager and in some countries, Mexico in concret, I have a 80% of general failures :S Apr 24 23:16:49 And I don't know if a code problem, operator, phone.. Apr 24 23:17:11 btw, I'm having an issue with expanding a ListView item: Apr 24 23:17:18 JakeWharton, arguably, my android sbt plugin is easier than maven ;-) Apr 24 23:17:29 congrats. too bad sbt is a shitshow Apr 24 23:17:37 * pfn shrugs Apr 24 23:17:40 everyhing works fine but the "item" surface for whole list view doesn't expand and the last item gets clipped Apr 24 23:17:47 you'll get no arguments that the maven plugin is garbage from me Apr 24 23:17:47 any ideas on how to fix it? Apr 24 23:17:51 the thing is a trainwreck Apr 24 23:17:56 bunch of sticks glued together Apr 24 23:18:00 maven poms are quite the trainwreck as well Apr 24 23:18:05 they don't bother me Apr 24 23:18:08 Mavrik: why don't you post screenshots/code? Apr 24 23:18:09 the IDE writes 99% of them Apr 24 23:18:28 and i'll take an XML schema over some under-documented DSL from sbt or gradle Apr 24 23:18:28 alot of code, one sec, Ill paste the animator class Apr 24 23:18:42 don't paste directly into channel, use pastie.org or something Apr 24 23:19:05 I thought Gradle was supposed to be better than Maven? Apr 24 23:19:21 what's 'better'? Apr 24 23:19:28 it's different Apr 24 23:19:35 gradle's configured via groovy Apr 24 23:19:39 much like sbt is configured via scala Apr 24 23:19:42 rather than obtuse xml Apr 24 23:19:52 basically, I apply this to the list item view: http://pastebin.com/NL6BTUsF Apr 24 23:20:07 you realize that maven doesn't require XML poms Apr 24 23:20:16 you can write them in JSON, ruby, brainfuck... Apr 24 23:20:30 the item expands perfectly, however if I'm animating the last item it goes beyond bottom of listview Apr 24 23:20:35 hasn't been my experience anywhere I've ever worked with maven Apr 24 23:20:37 it's always been xml poms Apr 24 23:21:01 right. because people want the schema validation and autocompletion of 99% of the file Apr 24 23:21:02 of course, if you are writing them in json, ruby, bfuck, whatever, you've totally negated the abstraction that maven buys you with its xml and might as well use an alternative Apr 24 23:21:14 it's basic dtd validation at best Apr 24 23:21:17 but guys, XML is not considered cool! Apr 24 23:21:24 you can use Maven from its Java APIs Apr 24 23:21:27 the advantage isn't XML Apr 24 23:21:30 what the fuck are you babbling? Apr 24 23:21:30 maven's java apis are terrible Apr 24 23:21:46 * pfn spent the last few months writing a handful of maven plugins Apr 24 23:21:49 jakewharton did you say your IDE writes most of your maven poms? Apr 24 23:21:51 so your complaint is that it's because it's xml it's worse than space herepes ? Apr 24 23:22:02 shigeru: mine does. not sure about Eclipse Apr 24 23:22:07 JakeWharton, the only advantage is ide integration/generation of said files Apr 24 23:22:33 how eye opening Apr 24 23:22:42 If someone hadn't shown me, I still wouldn't understand, the Maven page told me bugger all what I needed to know Apr 24 23:23:00 tight, brb ditching eclipse Apr 24 23:23:09 belgianguy: Gradle / maven are different philosophies. Maven uses a plug-in architecture which makes it difficult to use the tool as projects become more complex and outgrows the opinions of build system. Gradle uses a DSL and has a finer level of granularity you can control. I think its a better level of abstraction Apr 24 23:23:15 and shigeru shall be born again Apr 24 23:23:45 i've been using maven since 1.0 and have written plugins (homegrown). it was fun, but i moved on Apr 24 23:23:57 g00s: you should really state things as your opinion, not fact Apr 24 23:24:20 JakeWharton: my opinion on this is fact :) Apr 24 23:24:37 ha Apr 24 23:24:39 g00s: yes - this is, in fact, your opinion. Apr 24 23:24:49 indeed ! Apr 24 23:25:22 as projects grow you realize that flexibility is NOT what you want and that rigidity and standardization is Apr 24 23:25:26 my first maven plugin was for antlr; those were the days. luckily somebody else took that one on since Apr 24 23:25:37 g00s, gradle is configured via groovy, maven is configured via pom -- basic gist Apr 24 23:25:49 yeah, its like gmake vs scons Apr 24 23:25:55 g00s, gradle can use have plugins just like maven can Apr 24 23:26:03 well, maybe not a good analogy on my part Apr 24 23:26:09 how often are you guys changing your build systems, anyway? I generally see them as a "configure once, never touch again" thing (aside from tweaks when you need to add a dependency or something) Apr 24 23:26:24 it entirely depends on what the user needs IMO, the fact that they both exist doesn't mean the other party are complete retards Apr 24 23:26:32 evanc, enough time for me to look for things that reduce the time I need to spend on them Apr 24 23:26:42 based on this channel, I would guess that most people in here spend their time engineering systems to build their apps that don't work because they haven't spend any time on their apps Apr 24 23:26:46 spent* Apr 24 23:26:52 evanc: i'm about to change mine to maven and never touch it again Apr 24 23:26:56 evanc, also, considering I interact with my build system continually while developing, it's nice that it supports my workflow Apr 24 23:26:57 i change my build system daily based on irc conversations Apr 24 23:27:06 lol Apr 24 23:27:07 codebutler++ Apr 24 23:27:15 like the wu tang clan, the build system is nothing to fuck with Apr 24 23:27:16 codebutler: how agile of you! Apr 24 23:27:18 I don't use an IDE, and don't rely on an ide to build for me Apr 24 23:27:22 I just use three build systems at once Apr 24 23:27:24 maven doesn't work in an IDE-less workflow Apr 24 23:27:26 since IRC can't decide which is better Apr 24 23:27:36 gradle does Apr 24 23:27:39 and so does sbt Apr 24 23:27:39 pfn wat Apr 24 23:27:41 pfn: then how to CIs use htem? Apr 24 23:27:51 JakeWharton, development workflow Apr 24 23:27:53 from now on, I'll roll the dice, odd is Maven, even is Gradle, and tears for all Apr 24 23:28:01 rather, developer workflow Apr 24 23:28:06 not release engineering/build workflow Apr 24 23:28:06 belgianguy: of course the downside to things like scons / Gradle, is that like JakeWharton says - when you need to enforce regularity, instead you write a bunch of weird ass java / groovy code Apr 24 23:28:11 lolwut? Apr 24 23:28:18 so I can't edit files in vim and run 'mvn package' ? Apr 24 23:28:21 CI is a simple case, detect revision change in scm, deploy change Apr 24 23:28:27 JakeWharton, and that's precisely why it sucks Apr 24 23:28:36 you *have* to run mvn package everytime you want it to build/package Apr 24 23:28:45 ok Apr 24 23:28:46 you're right Apr 24 23:28:49 you win Apr 24 23:29:05 my build system reads my mind. I don't have to type anything. Apr 24 23:29:08 you're the one that retorted with lolwut, I explain that the IDE-less workflow sucks with maven Apr 24 23:29:08 any of you ever had your app throw io/exception(broken pipe) or connection reset by peer when posting to a web service? Apr 24 23:29:10 damnit Apr 24 23:29:11 this is so weird Apr 24 23:29:14 JesusFreke beat me to it Apr 24 23:29:26 JakeWharton: haha, sorry. Apr 24 23:29:27 my sbt plugin practically reads my mind for me :p Apr 24 23:29:28 its doing it on someone's nexus 4..works fine on my phone and emulator..and someone elses Apr 24 23:29:37 ~android:run Apr 24 23:29:38 write code Apr 24 23:29:39 why do you guys build, anyway? Just get it right the first time Apr 24 23:29:40 save Apr 24 23:29:47 run on device automatically Apr 24 23:30:01 hmm Apr 24 23:30:09 with sbt, you are what's being built Apr 24 23:30:11 not your code Apr 24 23:30:17 not at all Apr 24 23:30:55 my sbt config files are basically: addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "0.4.3"); seq(AndroidSdkPlugin.androidBuildSettings:_*) Apr 24 23:31:13 be honest: you just button mashed that on the keyboard Apr 24 23:31:21 slightly more complex with library projects Apr 24 23:31:25 ;ohawo;rgihapowrugaporeuhgp0w348fp0hw38aw Apr 24 23:31:29 that's my Maven config Apr 24 23:31:32 binary-encoded XML Apr 24 23:31:32 but if you want to use apklibs, it's just as easy Apr 24 23:32:32 libraryDependencies += "groupid" % "artifactId" % "version" artifacts(Artifact("blah", "apklib", "apklib")) Apr 24 23:32:37 (hate that artifacts bit, personally) Apr 24 23:32:53 to be honest, i stopped listening before this conversation even started Apr 24 23:33:00 i really don't care Apr 24 23:33:04 i've used them all Apr 24 23:33:05 they all suck Apr 24 23:33:18 JakeWharton: that's a good closing point IMO Apr 24 23:33:30 * pfn shrugs Apr 24 23:33:35 use the one that best enables your workflow Apr 24 23:33:40 mvn doesn't do it for my workflow Apr 24 23:33:50 I couldn't care less what person X uses, if it works for him, great Apr 24 23:34:00 except buck Apr 24 23:34:02 we could debate the best color next Apr 24 23:34:34 yeah Buck, supposedly a 'better' Ant? Apr 24 23:34:37 what's the easiest way to supply different constant values depending on a debug/release build? I need to connect to different web servers in different scenarios. Apr 24 23:34:51 buck is exactly what i'd expect facebook to make Apr 24 23:34:59 they love to solve the wrong problems Apr 24 23:35:03 leslie: if you're building with e.g. ADT, you can use BuildConfig Apr 24 23:35:26 hm. that could work. Apr 24 23:35:56 does Buck update your FB page when you complete your build ? Apr 24 23:36:24 in a giant twist of irony, it posts to Twitter Apr 24 23:36:35 maybe i'll send them a pull request for that... Apr 24 23:36:48 oh god, facebook wrote buck as a bunch of ant build scripts? Apr 24 23:36:51 anyways. i'm done spamming this channel with uselessness Apr 24 23:37:01 my apoligies Apr 24 23:37:02 it was much appreciated Apr 24 23:37:05 oh, they built it in ant Apr 24 23:37:10 awesome.... not Apr 24 23:37:40 Android has too much softcoding. Apr 24 23:37:44 ok, I'll just create a Config class and static initialise it based on BuildConfig. Thanks, evanc Apr 24 23:37:56 softcoding? Apr 24 23:38:10 The polar opposite of hardcoding. Apr 24 23:38:13 as opposed to hardcoding? Apr 24 23:38:16 d'oh Apr 24 23:38:25 i would be interested in hearing the rational, from google, why the new build stuff is in Gradle and not Maven. I figure if they had some unique need, they could write a plugin - unless their needs spanned changing the behavior of multiple plugins or something Apr 24 23:38:42 When you put so much stuff in configuration files to the point where it becomes just as inconvenient as hardcoding values. Apr 24 23:38:49 g00s, because maven sucks Apr 24 23:39:00 g00s, because maven doesn't work with aosp without some massively ugly hackery Apr 24 23:39:06 I don't even understand why they still love Eclipse so much, when IntelliJ delivers a better experience Apr 24 23:39:14 g00s, lots of stuff in aosp has been moved over to the gradle build Apr 24 23:39:17 belgianguy, because eclipse is free Apr 24 23:39:20 intellij isn't Apr 24 23:39:31 I suppose they have a CE, but it's come very late Apr 24 23:39:55 because adt is a "first class citizen" on eclipse while intellij supports their own android setup Apr 24 23:41:23 i'm a bit rusty; but maven itself was just a core plugin manager + state machine and all the plugins were versioned separately; so i wonder if forking existing plugins to add functionality + merge said plugins upstream updates was just going to be too much pain Apr 24 23:41:32 belgianguy, main reason is probably because they can hack Eclipse as much as they want Apr 24 23:41:50 belgianguy, while for IntelliJ they need to talk to them when they want to change IDe Apr 24 23:41:52 *IDE Apr 24 23:42:10 pfn: agreed, Eclipse probably is more mallable than IntelliJ Apr 24 23:42:18 Mavrik: yeah Apr 24 23:42:53 Eclipse is not an IDE, its a framework for IDEs. You can do anything with it that involved projects. like write a business reporting tool (BIRT) Apr 24 23:43:14 Eclipse is almost meta Apr 24 23:43:26 almost like Apache :) Apr 24 23:43:35 I knew some guys here who had a startup around a drawing package, built on the Eclipse platform Apr 24 23:43:58 for better or worse, there are also tons of commercial tools that are eclipse plugins. so there is a big ecosystem there Apr 24 23:44:03 belgianguy, and there's actually some things still misssing out in IDEA when it comes to Android Apr 24 23:44:38 Mavrik: true, but it's gaining fast (and it's bugs get ironed quite quickly) but wrt NDK there's no competition Apr 24 23:44:53 there's also tons of things in IDEA that aren't in Eclipse for Android Apr 24 23:45:01 that have been there for a long, long time Apr 24 23:45:06 I'd like to write a base Activity class that will be used in multiple apps. How should I include this in my project? I'm new to Java. Should I make a new Java project in Eclipse? Or a Library project? Apr 24 23:45:26 benlieb: you'll either need to use a shared library project or a java project that spits out a jar which you use Apr 24 23:45:38 the current build tools don't like pure-java library projects Apr 24 23:45:53 belgianguy, yep, but still no proper Lint support for example, ADB support is slow/wierd (at least for me), no manifest merging, etc. Apr 24 23:46:15 and it doesn't look like there would be much 3rd party plugins to fix those gaps Apr 24 23:46:16 JakeWharton: so in Eclipse should I make a new Library project or Java project? Apr 24 23:46:28 a new android library project Apr 24 23:46:42 Mavrik: true, IDEA's plugins aren't as numerous as Eclipse's Apr 24 23:46:56 mhm. Too bad Eclipse is such a slow cow :P Apr 24 23:47:15 pfn: I don't see an option for android library project. Apr 24 23:47:40 keep looking Apr 24 23:47:57 either that or do android create library-project from the commandline Apr 24 23:48:00 and import that into eclipse Apr 24 23:49:50 pfn: this page (http://developer.android.com/tools/projects/projects-eclipse.html) says you have to create an application project, and specify it as a library project in the options during create. Apr 24 23:50:02 then do what it says Apr 24 23:51:15 :) Apr 24 23:51:43 I don't think I need an android library project specifically. Does anyone know this to be the case for sure? Apr 24 23:51:55 Why would this be the case? Apr 24 23:52:28 because the Ant build system doesn't support modules as java-only projects Apr 24 23:52:33 only jars or android library projects Apr 24 23:53:14 JakeWharton: right, so as long as I end up with a jar file, things should work. Is that right? Apr 24 23:55:56 I really need help with smsManager and generalFailures, anyone can help me? Apr 24 23:56:37 man, oracle is really fucking up." Reflection API flaw affects all versions of Java SE 7 and, 'can be used to achieve a complete Java security sandbox bypass on a target system'". "http://www.infoq.com/news/2013/04/java-security-problems-persist Apr 24 23:57:10 there should be something like a Programming Language Protection Services Apr 24 23:57:46 good thing we don't use Java in here Apr 24 23:58:40 we may never see Java 8 at this rate, as long as they are fixing sec bugs Apr 24 23:58:47 at one point I thought they were doing it on purpose Apr 24 23:58:59 to trip up Android et al Apr 24 23:59:15 java security flaws have no impact on android Apr 24 23:59:54 except when your dev box gets herpes Apr 25 00:00:17 still no impact Apr 25 00:00:23 just disable the java plugin Apr 25 00:00:26 that's easy enough Apr 25 00:00:32 i was joking :) Apr 25 00:01:03 pfn: is that because Android uses Dalvik vs a real Oracle-certified-broken JVM? Apr 25 00:01:12 belgianguy, basically Apr 25 00:01:48 I don't get how such a large company gets away with such incompetence Apr 25 00:02:04 any startup that pulls stuff like that can file for bankruptcy Apr 25 00:02:22 belgianguy: oh, Android has its security woes too … Apr 25 00:02:31 g00s: ohn certainly Apr 25 00:02:36 unrelated to the dalvik vm itself, so far Apr 25 00:02:52 pfn: thats pretty impressive actually Apr 25 00:03:23 well, there's a bunch of reasons why Apr 25 00:03:33 goos: makes you wonder why "computer viruses named after stds" returns 0 results ;p Apr 25 00:03:36 because dalvik runs as a user-process, any exploits against it are bound by user-access-controls Apr 25 00:03:38 I was merely wondering why Oracle releases such a product (in use by banks even) when it's such a shoddy mess Apr 25 00:04:02 belgianguy, because just about everywhere else it's in use, outside of client-configurations, the security issues are a non-issue Apr 25 00:04:03 shoddy mess? Apr 25 00:04:07 not even close Apr 25 00:04:22 you forgot to mention how slow it is Apr 25 00:04:31 if we're playing on misinformation and overgeneralizations Apr 25 00:04:43 JakeWharton++ Apr 25 00:05:12 pfn: 0-days actively being exploited I wouldn't call misinformation Apr 25 00:05:25 belgianguy, 0-days only actively exploited in client configurations Apr 25 00:05:39 the fact that they now doubled down on security seems to show they've gotten the hint Apr 25 00:05:49 the fact that banks use java is completely irrelevant to the fact that there are 0-days against a completely separate part of java that is completely unused by said applications Apr 25 00:06:11 pfn: banks can use it both server and client side, right? Apr 25 00:06:25 no banks use it client-side Apr 25 00:06:38 and client-side as in java-plugin in browser Apr 25 00:07:10 Java seems to become the new Flash Apr 25 00:07:21 or at least, the browser plugin Apr 25 00:07:28 the java-plugin was ignored by everyone for the past 15 years Apr 25 00:07:35 it's no surprise that there aer security issues now Apr 25 00:08:11 the java-plugin is the only attack vector on java, and it only affects client machines; really not a big deal as it is easily mitigated Apr 25 00:08:34 well, I suppose some java-plugin issues relate to jnlp as well, but whot he hell uses that... Apr 25 00:09:08 pfn: so g00s's statement about the Reflection API is false? Apr 25 00:09:24 it's not false, it's irrelevant Apr 25 00:09:48 it is not a security issue outside of jnlp and the java-plugin Apr 25 00:10:46 pfn: The vulnerability exists in both the plug-in/JDK software, and also in the Server JRE. Apr 25 00:10:52 citation Apr 25 00:10:57 yes, but in the server jre, it is irrelevant Apr 25 00:11:23 unless you're running random code in a server environment, which is exceedingly rare Apr 25 00:13:40 pfn: well I wouldn't dismiss the article as gossip, but perhaps the issues are overblown Apr 25 00:13:49 who said anything about gossip? Apr 25 00:13:52 it's a bonafide bug Apr 25 00:14:04 but it is irrelevant to servers, except the .1% who are running un-trusted code Apr 25 00:14:44 I don't have any data on that Apr 25 00:15:00 but last time it seems some pretty big names got hit by some bonafide bugs Apr 25 00:15:08 yes, via the java plugin Apr 25 00:15:20 as indicated over and over and over now Apr 25 00:15:31 it *is* an issue with jnlp and the java plugin Apr 25 00:17:13 pfn: I just don't understand how they could catch so much flak than Apr 25 00:17:23 overblown by tech media? Apr 25 00:17:42 no, because, up until recently, it's been a plugin that's been enabled by default on a large majority of browsers Apr 25 00:17:45 (and indeed the intrusions were all related to visiting a malware site) Apr 25 00:17:49 so client machines are hugely at risk Apr 25 00:18:19 so, either the java plugin needs to go away, or it needs to be fixed, and until either of those happens, any security issue is major Apr 25 00:20:06 is there a List implentation that can maintain sort when inserting elements? Apr 25 00:20:26 pfn: I'd say block it by default, big fat warning if you enable it, but IIRC that's exactly what some browsers are doing Apr 25 00:20:54 clever, that's the definition of List, oh, you mean sort Apr 25 00:21:02 clever, use a Tree Apr 25 00:21:17 pfn: TreeMap ? Apr 25 00:21:35 that looks like it might work Apr 25 00:21:45 treemap, treeset, your choice Apr 25 00:21:55 doesn't support random access, if you need that, sort of annoying Apr 25 00:22:06 ive already got id's, was looping over ArrayList to find the right id Apr 25 00:22:22 why aren't you using any Map implementation then Apr 25 00:22:22 i need to be able to read an item by id, or get the entire thing in order Apr 25 00:22:30 treemap does that Apr 25 00:22:38 not sure why i picked ArrayList to start with, momentary insanity Apr 25 00:22:50 * clever rewrites it Apr 25 00:25:31 pfn: and to get a simple array out, something like this? EnlightenedCity[] data;TreeMap datain; datain.entrySet().toArray(data); Apr 25 00:26:42 04-24 21:26:19.960 24394 24394 E / AndroidRuntime: java.lang.ArrayStoreException java.util.TreeMap$Node cannot be stored in an array of type com.angeldsis.louapi.EnlightenedCities$EnlightenedCity[] Apr 25 00:26:44 values().toArray() Apr 25 00:26:46 i'll take that as a no Apr 25 00:27:02 entrySet = Map.Entry Apr 25 00:28:06 pfn: .toArray will return an array of Map.Entry ? Apr 25 00:28:19 entrySet will Apr 25 00:28:27 entrySet.toArray Apr 25 00:28:31 04-24 21:28:16.171 24811 24811 E / AndroidRuntime: java.lang.ClassCastException java.lang.Object[] cannot be cast to com.angeldsis.louapi.EnlightenedCities$EnlightenedCity[] Apr 25 00:28:38 ah, i dont need the keys when getting it out Apr 25 00:28:49 and ive never been able to get .toArray to simply work Apr 25 00:29:02 of course, bridging java collections and arrays sucks Apr 25 00:29:03 don't do it Apr 25 00:29:18 datain.values().toArray(data); looks like a solution Apr 25 00:29:36 pfn: i'm feeding this into a BaseAdapter, so i need the count, and the ability to get an item at any position Apr 25 00:29:58 what i use, it doesnt really matter Apr 25 00:30:00 so make a Set to List adapter Apr 25 00:30:14 count is already there Apr 25 00:30:19 you just need random access Apr 25 00:30:19 datain.values().toArray(data); seems to work Apr 25 00:30:24 which is what I said was the downside of this already Apr 25 00:30:30 i just have to pre-allocate the array for it Apr 25 00:30:45 that works, so long as you don't mind updating data in multiple places everytime you want your adapter to update Apr 25 00:31:06 the update event will trigger datain.values().toArray(data); and replace the array inside the adapter Apr 25 00:31:13 and it doesnt update very often Apr 25 00:32:06 but i can see how i might use 2 events, for the list itself changing (rebuild array) or just the data in a slot (notifyDatasetChanged, getView, keep the array) Apr 25 00:36:24 Anyone know why sometimes I get generic failure when I send a sms? What could be? Sometimes the sms are successfully sent... Apr 25 00:41:42 I want to size the viewgroup an imageview is in, to wrap the contents of the dimensions of a bitmap. I can do this if i defer measuring the full-space of the viewgroup until a user event happens (to load the bitmap, so its always causal) and the sizing / sampling the bitmap to whatever size it can take up. However this breaks on, say a configuration change since measuring the viewgroup Apr 25 00:41:42 will return 0, since it is not instantly laid out. Anyways, I was going to just use a runnable to measure and if still 0, post itself for few ms and try again, recalling the method that sizes and sets the bitmap once it measures the actual w/h. Is there any problems with doing this that anyone sees? Apr 25 00:46:16 *to clarify, i use the dimensions of the viewgroup as the largest the bitmap can be sized to, and have wrap_contents set of the imageview Apr 25 00:50:11 pfn: bit more complex to change one of my other arrays over, i forgot about several places that are trying to .get() by position Apr 25 00:50:25 and now .get wants id, so its just returning null! Apr 25 00:52:01 good evening folks. I really want to learn how to develop apps in android. I don't have Java background but I'm a programmer. I'm not sure where to start. Can someone please provide me a link on where I should start? Looks like the Eclipse I installed is the right tool too for making native android applications Apr 25 00:53:50 defaultro: look for sites in *.edu domain that use android to teach java, to get a better grasp on java and use the official dev tutorials Apr 25 00:54:14 defaultro, read the book thinking in java, and java concurrency in practice Apr 25 00:54:18 defaultro, then start reading d.android.com Apr 25 01:04:40 thanks Apr 25 01:06:40 like this lasserix , http://chortle.ccsu.edu/CS151/cs151java.html Apr 25 01:09:50 Yeah. There are also other ones like it that will introduce java, but instead of starting with the cmd line, will start from the onCreate method of an activity, and explain the java in the context of android. something like "Teaching Java Through Android" Apr 25 01:10:34 k Apr 25 01:10:56 looks that would be better since I'll be learning java and android at the same time Apr 25 01:13:01 i cant seem to find what i saw some months ago, but if you combine that with http://www.cs.dartmouth.edu/~campbell/cs65/cs65.html Apr 25 01:13:37 k Apr 25 01:14:30 Anyone have any idea why a dynamic View (supposed to change by itself) would only change after trying to interact with the View? The view is invalidate()'d after every update... Apr 25 01:16:53 how is it supposed to change? Apr 25 01:17:00 is there any way I can set a textview to have a foreground color that's an xor of the background colors? Apr 25 01:17:12 (so I can get contrast over a background) Apr 25 01:17:38 Sirolf, it's a GraphView (http://www.jjoe64.com/p/graphview-library.html). It's supposed to update the graph when I add data to it using appendData(). I have even tried explicitly calling its GraphView.redrawAll() method, but that does nothing. Apr 25 01:18:05 I've tried different display methods too, including disabling auto-scroll, using and not using a viewport, disabling scalability, etc. Apr 25 01:18:52 the redrawAll() method clearly calls invalidate() on the View, and on the labels' views. The labels are actually the only thing I've seen update by themselves, but not consistently. The graph itself won't show a line unless i mess with it with my finger. Apr 25 01:19:54 i've googled the hell out of this and messed around with it a lot, but I really need someone's help at this point. Apr 25 01:20:30 * hesperaux sighs.. Apr 25 01:23:39 I guess I can shadow it Apr 25 01:24:27 pfn, i'm sure there's a way to do that in software (not xml) Apr 25 01:25:16 yeah, not interested in doing it outside of xml Apr 25 01:25:20 ah Apr 25 01:25:28 * hesperaux thinks not then Apr 25 01:27:56 the application of it is too simple to warrant putting in a custom view Apr 25 01:31:19 hey so I'm trying to use NotificationCompat.Builder. Apparently I have to get it from Android Support package. The instructions here https://developer.android.com/tools/extras/support-library.html#SettingUp say to look for "Android Support Package" in the SDK manager, but it isn't there. Anyone know how I get it? Apr 25 01:33:28 it's at the bottom in extras Apr 25 01:33:40 thanks Apr 25 01:45:07 Hi, who can update http://mvnrepository.com/artifact/com.google.android/support-v4 and add a version for the latest android-support-v4? Apr 25 01:45:28 (latest version is "r7" which is old) Apr 25 01:46:54 :( So nobody here has used GraphView? Apr 25 01:47:08 * hesperaux pokes * Apr 25 02:03:41 hesperaux: have you got it to work at all? Apr 25 02:04:04 yes Apr 25 02:04:15 the problem is that adding data to the graph will not redraw the graph Apr 25 02:04:24 the only way to display changes to the graph is to tap my finger and drag it around on the view Apr 25 02:06:04 the appendData() method is called from my UI thread's Handler. a Message contains data which is added to the graph, and then it's supposed to update. I have tried directly calling invalidate() on the View, but with no success. Apr 25 02:06:58 messages come into the message queue very fast. Does the view not redraw because of a clogged MessageQueue? Apr 25 02:07:08 might be Apr 25 02:07:30 can you double buffer the graphview? Apr 25 02:07:31 i don't know how the two influence each other at this point. not familiar with the way the UI thread works with Looper() Apr 25 02:07:49 lasserix, don't know what that would mean; there's no obvious feature to enable that, if that's what you mean. Apr 25 02:08:08 just mean draw the graph to do different canvases, switching each time its redrawn Apr 25 02:08:14 did you see http://stackoverflow.com/questions/7701175/custom-dynamic-graph-in-android ? Apr 25 02:08:45 hmm Apr 25 02:09:31 I did see this post, but I only skimmed it because it wasn't using GraphView. Apr 25 02:09:37 my hope was not to have to modify the library... Apr 25 02:09:57 nah i doubt it, seems like there is a missing method Apr 25 02:09:57 it's funny, but this post is almost identical to my end goal - i'm even going to make an ECG out of it later Apr 25 02:10:04 does intellisense show a repaint method? Apr 25 02:10:17 lasserix, sorry, I don't know what that is =| Apr 25 02:10:40 did you try appenddata and then resetdata? Apr 25 02:11:42 Technically, yes, but resetData is kind of strange. You have to pass in a new value array. And even though I give the values object to the data series, passing that into resetData() actually resets the values to an empty array (the initial state of the data series) Apr 25 02:11:48 and you are calling invaldateData on the graphview itself? Apr 25 02:11:59 so I'd have to obtain the current data set from the data series, then send it back into resetData() Apr 25 02:12:18 hesperaux, a quick fix might be just to keep your own array, appending to that and reset it each time for now Apr 25 02:12:28 i tried calling GraphView.invalidate() (from View class), as well as invalidate() on the graphview's container LinearLayout Apr 25 02:12:41 lasserix, hmm, that's an idea Apr 25 02:12:47 i'll have to see if it does indeed work by using resetData() in that way Apr 25 02:13:15 what confuses me more is that I tried the demo code on github for this library, for the dynamic graph Apr 25 02:13:26 its still kind of hackish, although its a pain you might make a dummy project and see if you can display the simplest data set, and appending and see if you can get it working free of whatever context your in now Apr 25 02:13:33 lol, it exhibits the same problem, without any message queue or anything (it uses a runnable to update with rand() values) Apr 25 02:13:46 yet i see vids on youtube of this working flawlessly. I don't get it Apr 25 02:14:23 i'm wondering if it's due to the target API or something? I'm targeting 4.1 with minsdk set to froyo Apr 25 02:14:36 no idea, if all else fails buy a rubber ducky Apr 25 02:14:58 lol Apr 25 02:15:00 i'll sick a canada goose on my device Apr 25 02:20:43 so i need to use the org.apache.commons.net library.. i'm about to download it, but i don't know what version of java runs on android (sorry, novice at this) Apr 25 02:23:34 or, maybe there's a built-in library i can use? i'm trying to get the time from an ntp server Apr 25 02:40:40 I have int icon = R.drawable.stat_notify_sms; and eclipse says "R cannot be resolved to a variable". What am I doing wrong? Apr 25 02:40:59 g00s: I tried some spline stuff in gimp for the 1st time today, it's quite ok! Apr 25 02:41:16 StingRay_: cool ! Apr 25 02:41:28 but i still want my inkscape for mac :( Apr 25 02:42:36 what are the missing deps for inkscape ? Apr 25 02:42:54 nesoi: remove the *R* import that you have Apr 25 02:43:31 there is an download for snowleo ? Apr 25 02:44:27 StingRay_: I don't have an import for "R"! Apr 25 02:44:58 oh then that drawable dont exist, OR there is an xml syntax error preventing R from generating Apr 25 02:45:06 g00s: inkscape runs Apr 25 02:45:11 I just downloaded Apr 25 02:45:17 looking at it now Apr 25 02:45:24 XQuartz Apr 25 02:45:43 quite nippy Apr 25 02:46:18 StingRay_ : how would I narrow that down? Apr 25 02:46:42 any red errors ? Apr 25 02:46:51 in the errors window pannel ? Apr 25 02:47:34 yes, but not having to do with xml Apr 25 02:47:50 well you probably want to fix them Apr 25 02:48:06 then clean your project Apr 25 02:48:10 and then it may show Apr 25 02:48:30 g00s: inkScape runs fine here, whats the prob ? Apr 25 02:48:45 StingRay_ : I did clean it... Apr 25 02:48:58 fix red errors Apr 25 02:49:01 clean Apr 25 02:49:04 :) Apr 25 02:49:14 some red errors have to do with R not existing though... Apr 25 02:49:27 well fix the ones that dont! Apr 25 02:50:18 hmm... Apr 25 02:54:36 StingRay_: they aren't really maintinaing it for mac any more. last official release was 48.2 Apr 25 02:55:35 g00s, have you ever used GraphView? Apr 25 02:58:28 hesperaux: no .. Apr 25 02:58:44 ok...just checking. i'm getting desperate Apr 25 02:59:00 hesperaux: use something else Apr 25 02:59:06 the graphing libs kinda suck. you may have to roll your own Apr 25 02:59:07 if your really desperate **** ENDING LOGGING AT Thu Apr 25 02:59:59 2013