**** BEGIN LOGGING AT Fri Aug 16 02:59:58 2013 Aug 16 03:00:14 what and where Aug 16 03:00:18 step 1 Aug 16 03:00:19 ... Aug 16 03:00:46 I only have one project Aug 16 03:01:20 and since I opened the properties windows ten probobly it is imported Aug 16 03:01:36 so you ignored step 1? Aug 16 03:01:46 oh oops Aug 16 03:02:07 thats only for projects with shaed code Aug 16 03:02:15 shared code Aug 16 03:02:24 I dont have any Aug 16 03:03:02 dude Aug 16 03:03:13 "import com.google.android.gms.maps.GoogleMap;" still gives "The import com.google.android.gms cannot be resolved" Aug 16 03:03:20 i don't know what to tell you man Aug 16 03:03:23 follow the steps Aug 16 03:03:28 I did Aug 16 03:03:32 no, you ignored step 1 Aug 16 03:03:53 I do not need to complete that part at all Aug 16 03:04:07 read the part directly above step 1 Aug 16 03:04:41 i did Aug 16 03:05:32 did you do step 4 here? http://developer.android.com/google/play-services/setup.html Aug 16 03:05:35 or did you ignore that too? Aug 16 03:06:31 he. I'm trying to launch the android emulator on a remote server vm while connected using either freenx or vnc. and I'm getting an libgl error: failed to load driver swrast. Right now I don't have access to the vm settings but is there a way I could launch the emulator so that it will skip the "initializing hardware opengles emulation support"? Aug 16 03:07:47 Xabster: aha! that was it Aug 16 03:07:55 im doing it Aug 16 03:08:10 that wasn't "it" Aug 16 03:08:18 you still need to do step 1 i believe Aug 16 03:08:24 ok Aug 16 03:09:15 step 1) read the docs step 2)??? step 3) profit! Aug 16 03:11:06 ... Note that hw.gpu.enable is set to no for the avd I'm using. Aug 16 03:12:48 problem cant import google play services project Aug 16 03:16:16 Strav did you see qemu 1.6.0 was released today. i wonder if it has any speed improvements Aug 16 03:16:27 not sure what version android uses Aug 16 03:20:01 g00s: I'm at my very first minutes of getting acquainted with android development, so no I'm not familiar at all with the use qemu with android. (btw, I'm trying to launch the emulator with: ./emulator -gpu off -avd test_avd -verbose -qemu ... I don't really know if there's anything I'm missing but I still get the libgl error) Aug 16 03:20:59 that reminds me, still no x86 image Aug 16 03:21:33 Anyone see what I've done wrong here? I'm trying to move a cue stick around a cue ball smoothly from one angle to another. It works just fine if I set the value directly, but it just wont work when using SmoothDampAngle: http://hastebin.com/cituwusura.rsl I'm calling rotate(newAngle) which should smoothly move from current angle to new angle. Aug 16 03:21:50 Opps wrong channel Aug 16 03:22:24 Please ignore post above, wrong channel..... Aug 16 03:23:21 problem cant import google play services project Aug 16 03:25:48 Strav i think even if you got that working, qemu in a remote vm + vnc will be like using a 2400 baud modem Aug 16 03:26:06 if anyone cares, here is the precise error message I'm getting while trying to launch the emulator: http://pastebin.com/jbhksjGH (and I get something similar when trying glxinfo ... note that I'm connected to a remote vm with freenx) Aug 16 03:28:34 g00s: freenx is capable to display glxgears quite smoothly and actually, I have a couple of celeron processors and 32go of ram with big enough raid array so my setup is capable enough. Just sucks I can't be physically there. Aug 16 03:28:58 yeah, but the emu on a local machine isn't responsive :P Aug 16 03:29:31 g00s: and why is that? Aug 16 03:29:43 assuming you are using arm ... Aug 16 03:29:51 its ok with x86 actually Aug 16 03:30:25 its painful going from the ios simulator to the android emu Aug 16 03:30:34 Yes, I'm actually configured with arm but atm, I don't really care for the architecture. Of course, I would opt for the thinnest emulation layer if possible. Aug 16 03:30:59 did you look at genymotion ? Aug 16 03:31:21 Actually if I can only get past this opengles error, at least I'd be able to see if it's responsive or not. Aug 16 03:31:25 nope Aug 16 03:31:45 it runs an x86 image in vbox Aug 16 03:32:11 heh. I don't even know which vm I'm using. A friend set it up for me. Aug 16 03:32:24 Hello Aug 16 03:32:41 Any tips or tutorials that are recommended for getting started in apps? Aug 16 03:32:44 (my guess is some vmware crap) Aug 16 03:32:46 I know java already.. Aug 16 03:36:46 d.android.com has a bunch of tutorials Aug 16 03:36:50 problem cant import google play services project Aug 16 03:37:02 go to Develop > Training Aug 16 03:37:09 thanks Aug 16 03:37:42 cant import google play services project HELP! Aug 16 03:38:05 MDTech-us_MAN: http://imgur.com/jacoj Aug 16 03:38:48 ok awsome Aug 16 03:39:00 so what do i go Aug 16 03:39:08 do Aug 16 03:39:40 you have provided us with zero information Aug 16 03:39:59 i have no idea what OS, build system, IDE, how your project is set up, how you're trying to add Play Services,e tc. Aug 16 03:39:59 ask what you need Aug 16 03:40:20 http://kofegeek.files.wordpress.com/2012/01/403319_142372949212972_100003208032044_175841_151378192_n.jpg Aug 16 03:40:54 we're not tech support here, we're developers. provide an accurate and detailed description of a problem and it's likely someone will help you to a solution Aug 16 03:41:14 Windows, Android API 18, ADT, Simple project, Eclipse Import wizard Aug 16 03:41:59 IDE is actually Eclipse Aug 16 03:43:28 so the docs say that you should copy the Play Services project from the SDK folder into your project and then use these (http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject) steps to import it Aug 16 03:43:38 I don't use Eclipse so I can't help you much, sorry. Aug 16 03:44:09 I know that Aug 16 03:44:33 overall goal: http://developer.android.com/google/play-services/setup.html#Install stuck at step 4 Aug 16 03:45:15 I copiead the files, but i cant import them Aug 16 03:45:38 it says that it is not a project Aug 16 03:56:27 heyheyhey guys Aug 16 03:56:29 * gummylick nods Aug 16 03:56:35 drunk again, gummylick ? Aug 16 03:56:48 not yet heh Aug 16 03:57:00 well not sure gonan drink tonight. just got back from swimming and a bit worn Aug 16 03:57:05 that's the way, i like to see a man plan out his evening Aug 16 03:57:08 but found a good in on how to fix my app Aug 16 03:57:15 * gummylick *woman Aug 16 03:57:37 %s/man/person ( have to be PC about it ) Aug 16 03:57:39 cant import google play services project HELP! Aug 16 03:57:44 Windows, Android API 18, ADT, Simple project, Eclipse Import wizard Aug 16 03:57:44 hehehe Aug 16 03:57:48 np bankai_ Aug 16 03:57:49 overall goal: http://developer.android.com/google/play-services/setup.html#Install stuck at step 4 Aug 16 03:58:08 MDTech-us_MAN: what's the error? what have you done? Aug 16 03:58:21 i found an xml file with current song for my radio app. now all i gotta do is feed it thru php, parse it, bring into my webview and boom! Aug 16 03:58:44 oh you were doing networking on the main thread, weren't ya ? Aug 16 03:58:52 yeah yeah Aug 16 03:59:05 finally used asynctask and doinbackground Aug 16 03:59:08 got that resolved Aug 16 03:59:14 good shit Aug 16 04:00:40 my prob today was i was trying to load the result of that into a toast msg Aug 16 04:01:05 which was a html dump.. with json results in it. course i got no js processing, just " loading" Aug 16 04:01:32 guys here helped me out earlier and switched to a webview, and using php to process the xml (or json result, but i think the xml might be easier) Aug 16 04:36:07 what sort tool do they use to create this state diagram, in the android documentation ? http://developer.android.com/images/activity_lifecycle.png Aug 16 04:38:57 probably photoshop Aug 16 04:39:06 Likely Aug 16 04:39:59 alkber: I don't think that was generated from code Aug 16 04:40:15 So it's going to be any number of image editors Aug 16 04:40:57 alkber why are you curious ? Aug 16 04:41:38 but yeah, the designers that work with the android team all use Ps Aug 16 04:42:20 it looks neat, may be helpful in future, for code documentation for custom libraries at office. Aug 16 04:42:21 you could just as easily do it in inkscape / sketch / omnigraffle Aug 16 04:42:59 i believe PENCIL can do it aswell. Aug 16 04:43:38 i lot of reversed code diagrams are done by dot / graphviz Aug 16 04:44:01 i see. Aug 16 04:44:07 anything involving graphs (in the mathematical sense) Aug 16 04:44:19 collection edges, nodes :D Aug 16 04:52:45 hey pfn , i'm sure you'mm be ecstatic to know you can write gradle plugins in scala ! Aug 16 04:53:00 of course, makes sense .. Aug 16 05:26:21 hi http://ideone.com/8LR9JA what im doing wrong, it shows error 2 and then no files Aug 16 05:26:21 of course, it's a jvm language Aug 16 05:26:42 the problem is that gradle sucks Aug 16 05:27:40 you can use scala anywhere java can be used, at runtime, scala is just a library Aug 16 05:42:03 pfn this would have been fun to see https://oracleus.activeevents.com/2013/connect/sessionDetail.ww?SESSION_ID=4524 Aug 16 05:42:16 i was googling for scala vs groovy internal dsl Aug 16 05:42:27 try to figure out which language can do this best Aug 16 05:43:55 Hi Guys, What is the benifit of using a string resource then hardcoding the value of the string in xml layout. I find that it just more work to use a string resource because you have to make a string for it then call it in the xml file? Aug 16 05:44:05 it was important to the gradle people that a custom dsl could be made for your build domain Aug 16 05:44:15 wonder why they didn't choose scala Aug 16 05:44:41 androidnewb as a resource, its value depends on the device's configuration Aug 16 05:45:04 you should never for production code have hard coded strings in your UI that aren't resources Aug 16 05:45:12 ok for dev, for quickies :) Aug 16 05:45:18 Internationalization Aug 16 05:46:27 codebutler does AS use gradle in daemon mode ? Aug 16 05:46:47 it was sooo slow, i tried putting --daemon on the command line for the gradle plugin :) Aug 16 05:46:48 I think I read that Aug 16 05:46:53 that didn't work though Aug 16 05:47:00 it was way slower than the command line Aug 16 05:47:25 and i also had a gradle.properties in ~./gradle too Aug 16 05:47:36 so in effect, i was telling it every way to be a daemon :) Aug 16 05:48:14 anyhow, my gradle build wouldn't work in AS so I gave up (tasks not working) Aug 16 05:48:23 fine from the command line :/ Aug 16 05:48:33 Mhm Aug 16 06:19:16 can someone debug my program Aug 16 06:19:35 I mean is there hack possibility Aug 16 06:19:36 ? Aug 16 06:26:27 Hi Guys, I am making an app where user creates video and then he sends it to us for us to give them a feedback. I am courious where should my app upload it? Youtube is too public, or can I simply make video private? Right now I am using dropbox Aug 16 06:27:27 youtube has unlisted videos Aug 16 06:27:28 maybe you can upload it your own server Aug 16 06:28:16 bilgisayarci: easily, yes. grab the apk, extract, and flip the manifest to debuggable, re-assemble Aug 16 06:28:28 jakeWharton Aug 16 06:28:36 so highly hackable Aug 16 06:28:56 i also could just compile my own version of Android that let me spy on your app Aug 16 06:29:56 bilgisayarci: how is that better then dropbox? Aug 16 06:30:20 Trudko I just gave a another suggestion Aug 16 06:30:39 Trudko are you using premium dropbox ? or free Aug 16 06:30:44 bilgisayarci: and I thankful for that, I am just curious if its brings advantages Aug 16 06:30:48 Is there any guideliens of what to execute on the main thread, and what on the back thread? Aug 16 06:30:54 bilgisayarci: free so far Aug 16 06:32:04 Trudko I am new at the android developing but where there is a free think , there is a risk Aug 16 07:03:43 Hi everyone, why I got "DexOpt: access denied from xxx" when using multiple dex file ? Thanks a lot. Aug 16 07:08:05 hey experts, i need a small explaination how to solve this problem http://stackoverflow.com/questions/5600084/starting-an-activity-from-a-service-after-home-button-pressed-without-the-5-seco Aug 16 07:08:28 i have this problem with my app APPoint https://play.google.com/store/apps/details?id=com.appoint.lite Aug 16 07:08:33 just try it out for free Aug 16 07:08:38 many thanks for help! Aug 16 07:10:08 KeeperNo1: the 5 second delay is intentional and cannot be bypassed by any official means. any unofficial means will be undocumented, messy, and possibly require root Aug 16 07:33:13 hm but i know apps that work without that delay and they wont need root Aug 16 07:34:32 https://play.google.com/store/apps/details?id=com.gau.go.touchhelperex Aug 16 07:34:38 this for example can do that Aug 16 07:35:11 when i close the app with home i can start it again when i touch the point from homescreen Aug 16 07:35:25 my app has to wait 5secs.. ;/ Aug 16 07:36:29 are you using go launcher along with go toucher? then they can proxy the launch through their launcher :P Aug 16 07:50:07 I want to start a service on device reboot , how can i do that i have done this so far http://pastebin.com/cxsXKFmp Aug 16 07:50:29 and i have also used the permission as Aug 16 07:51:19 hello, I have an issue using eclipse, i get the error: the container 'android dependences' references non existing library gridlayout_v7.jar, even though the location it points to exists and contains the jar Aug 16 07:52:41 Jonni_FTW : go to properties of your app , the select java build path , there you will see a library tab select your library from there Aug 16 07:53:12 if you do nit find your library the try adding it by clicking add JAR Aug 16 07:53:46 it comes up in the package explorer though Aug 16 07:54:04 yeah but you have to add it in the libraries as well Aug 16 07:54:37 for now it is just a file staying in the lib folder Aug 16 07:54:51 it's in there under android dependencies Aug 16 07:55:09 p_l how can i run a service on system start ? Aug 16 07:56:12 Sorry to say but i am also not a pro in android just shifted from web technologies to android so cant help much Aug 16 07:58:13 k Aug 16 08:03:43 too much questions Aug 16 08:03:49 too less answers Aug 16 08:25:43 anyone know any lib that given a picture cartoonizes it ? Aug 16 08:26:50 hi everybody! please suggest what is the best practise to realize the following interface: Theres an ImageView that should contain two drawables - background and foreground. The ImageView has two statements: 1) Background drawable is visible, foreground is invisible 2) background drawable's alpha set to 50% foreground is 100% visible. Aug 16 08:27:26 Hi all, I have to create a broadcast receiver for checking when connection (wifi/ mobile network) is changed, but in debug I'm not getting into my reciever, can someone help me? Aug 16 08:27:47 i'm trying ro use LayerDrawable but meeting some problems with it., Aug 16 08:33:17 z Aug 16 08:33:40 If no body helps here in this community then what the fuss is all about ? Aug 16 08:34:40 there's fuss? Aug 16 08:34:55 lmao Aug 16 08:40:36 Hi everyone, is it necessary to keep classes in the same package in the same dex file ? I'm talking about loading classes from multiple dex dynamically. For example, both a.b.ClassA and a.b.ClassB must in the same dex file, but a.b.ClassA and a.b.c.ClassC may not. Thanks. Aug 16 08:46:55 FrancescoV: you're starting here, right Aug 16 08:46:59 http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html#MonitorChanges Aug 16 08:47:05 test: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTgZLiWeBMIJfoZcTMz7PHCVDh9apFUIHQABw8C3rCUb1tXTVsy7Q Aug 16 08:47:09 https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTgZLiWeBMIJfoZcTMz7PHCVDh9apFUIHQABw8C3rCUb1tXTVsy7Q Aug 16 08:47:15 ignore me Aug 16 08:48:56 Hi everyone. I'm working on a solution for making purchases through NFC tags. As a reader I have a Nexus 7. Is there any way to disable the "slide to unlock" and instead launch my NFC reader app as soon as the screen is being powered on? Aug 16 08:50:02 Leeds: where must I put this action ? in my receiver? Aug 16 08:51:26 yes, in your manifest Aug 16 08:53:04 kevinb no i dont use the go launcher Aug 16 09:16:04 hello, how to fix problem with duplicated registration id in gcm, when user uninstall app then come with new reg_id, google returns canonical_id on reponse for push, but how could i know what reg_id should i replace with this new canonical reg_id, because i send message for many users one push. Aug 16 09:19:21 lakmuz: Doesn't this http://developer.android.com/google/gcm/adv.html#canonical say that you should just replace the registration id stored in your server with the canonical id? Aug 16 09:20:39 how to know what id i should to replace with that new id? Aug 16 09:22:02 why I cant change button text on thread Aug 16 09:22:05 it stops app Aug 16 09:23:23 i don't see in response some old_reg_id for that canonical id... Aug 16 09:25:28 probably i could delete this canonical id from database and just use old id. ok. Aug 16 09:26:18 but it will stop works? Aug 16 09:32:18 is it actually possible to have a single node hadoop instance running on an android device? Aug 16 09:34:11 lakmuz: I have no idea really, but the way I understand it, the new reg_id may stop working, so you should remove all references to it and use the old one (the "canonical" one), but this is just speculation from reading from my part. I haven't tested any of this (yet). Aug 16 09:57:33 im trying to implement the android push notifications. I'm already able to retreive the registration_id on the phone and sent it to my server. On the server i can send messages to the GCM server and recieve this json "{u'failure': 0, u'canonical_ids': 0, u'success': 1, u'multicast_id': 8384154851607100758, u'results': [{u'message_id': u'0:1376646609344904%ee240b910001a781'}]}". But on my phone i don't see the logging in the onMessage() function. W Aug 16 09:59:11 Ronnie: I think you may have to show some code. I did the same thing a few days ago and it worked, but there's not a lot to comment on based on what you are sharing. Aug 16 10:13:08 anyone noticed the new adt/eclipse thing sometimes wont load old xml gui files, anyone know how to get around this, they work in my older eclipse Aug 16 10:14:06 kjeldahl: manifest: http://pastebin.com/HptXCc7g Aug 16 10:15:22 kjeldahl: GCMIntentService: http://pastebin.com/xCeAMVey Aug 16 10:15:32 kjeldahl: if you need more code, just ask Aug 16 10:15:51 thats what i like to hear :) Aug 16 10:16:01 ronnie can u finish off this app for me teehee Aug 16 10:18:41 this xml thing messes u up when ur go to update and old app Aug 16 10:20:14 Ronnie: Not sure what that is. If you want to receive broadcasts, you should inherit from BroadcastReceiver and catch it on the onReceive message. At least that's what I'm doing. Haven't looked into the class you're using. Aug 16 10:20:35 jesus16 gigs and out of mem.... Aug 16 10:21:09 Oh, now I see where you get that from. Aug 16 10:24:16 From your manifest and posted code, it seems you haven't implemented your own broadcastreceiver? Aug 16 10:27:22 Have you used the gcm-demo-client sample as your base? If so, the BroadcastReceiver is implemented in DemoActivity.java... Aug 16 10:37:59 sd Aug 16 10:38:56 Hey! I'm just starting to get used to the Google Maps, I got a simple example working fine integrated in my own app. But when I want to use the maps example from Google, I get the error "Failed to contact Google servers. Another attempt will be made when the connectivity is established". I'm sure I've set all necessary permissions as well as the API key. What could be wrong? Thanks. Aug 16 10:39:47 kjeldahl i have a sevice which starts a activity i want to launch that service on system reboot , how to do that , i have applied broadcastReciever but it dint helped , the app crashes on restart Aug 16 10:41:52 k Aug 16 10:42:19 chinkara: If you have a crash problem, you need to figure out why and fix it. Logcat is your friend. As for launching a service on boot I'm no use to you. Aug 16 10:42:52 When i am rebooting logcat stops as the connection to phone is lost Aug 16 10:43:01 how to use logcat in such scenerio ? Aug 16 10:43:50 Does the service work if you start it post-boot? Aug 16 10:44:49 yes Aug 16 10:45:49 As I said, I'm no use to you for boot related stuff. Sorry. Aug 16 10:51:28 chinkara, adb wait-for-device logcat might help you Aug 16 10:51:58 please explain a little Aug 16 10:53:02 you reboot the phone and start reading logcat,it should crash,and you should be able to read why Aug 16 11:02:55 hello Aug 16 11:03:17 Hey! I'm just starting to get used to the Google Maps, I got a simple example working fine integrated in my own app. But when I want to use the maps example from Google, I get the error "Failed to contact Google servers. Another attempt will be made when the connectivity is established". I'm sure I've set all necessary permissions as well as the API key. What could be wrong? Thanks. Aug 16 11:10:27 Hi all, I have to put my app in the store today. I'm using Google Maps API V2. Do i need to change something about the key of something else to make it work after installing the app from the store? Aug 16 11:11:47 And how about lib projects? Is a reference to another project in my eclipse workspace good or do I need to change this too? And what about a reference to the google play service? Aug 16 11:14:37 yeh i think u need to change from debug key to release key Aug 16 11:14:41 once you sign it etc Aug 16 11:14:57 references should be fine to other projects as it will all get bundled into the apk for you Aug 16 11:15:12 same with google play services.. iirc Aug 16 11:15:51 You typically do a "release build" which signs it with your release key. It _may_ also involve proguard runs and similar to remove unneeded code, but usually only if you tell it to. Everything gets stuffed into your apk, and that's the only thing that gets signed with your release key. Aug 16 11:16:14 i presume proguard is done automatically Aug 16 11:16:29 got to love proguard Aug 16 11:16:34 Depends on your build tools and configuration. I do not tink it is done automagically. Aug 16 11:16:54 oh, im using eclipse im assuming they make it happen there, if not i will look into how to Aug 16 11:17:22 If your release build is a lot slower than a normal/debug build, that's usually an indication... Aug 16 11:17:39 they seem to same speed Aug 16 11:17:45 Then no proguard.. ;-) Aug 16 11:17:53 but its hard to say because i also remove a billion system.outs when i release, and that def makes it faster Aug 16 11:18:14 wow, so i could be getting them even faster, not sure im convinced yet hehe Aug 16 11:18:15 If you DO run proguard, make sure you test. There's usually a bit of manual config to make sure you app works. Aug 16 11:18:36 youR Aug 16 11:19:15 i think ur right! Aug 16 11:19:17 wtf Aug 16 11:20:39 baffling it isnt in there as standard, wa sin j2me Aug 16 11:20:41 was in* Aug 16 11:21:18 anyone know how to hide the border of a button Aug 16 11:26:13 I want to write a File in android like: Aug 16 11:26:13 FileWriter file = new FileWriter(Environment.getExternalStorageDirectory() + " \\test2.txt", true); Aug 16 11:26:13 adb shell Aug 16 11:26:13 mount -o remount rw /sdcard Aug 16 11:26:13 touch test.txt Aug 16 11:26:13 work Aug 16 11:26:13 when I start the app: Aug 16 11:26:14 logcat: read-only Filesystem Aug 16 11:26:25 * Gaz` winces for the kick :) Aug 16 11:32:58 can anyone help me? Aug 16 11:49:01 hi i have this code , it crashes on start of service please help public class BootListner extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent startServiceIntent = new Intent(context, StartedService.class); context.startService(startServiceIntent); } Aug 16 11:49:11 dot8: your app has the WRITE_EXTERNAL_STORAGE permission? Aug 16 11:49:37 timroes: jepp Aug 16 11:57:01 timeroes : did you asked that to me ? Aug 16 11:57:24 any of you guys poke around with the mirror api? Aug 16 11:57:58 chinu_ logcat errors? Aug 16 11:58:01 nope mikedg Aug 16 11:58:15 :( Aug 16 11:58:31 someone will have, but it seems all the geniuses are idling nowadays Aug 16 11:58:41 Gaz` after restarting the device the service started so no logcat Aug 16 11:58:52 logcat can catch up tho Aug 16 11:58:57 itll show u what happened since boot wont it Aug 16 11:59:29 but i cant see anything in logcat , after restarting the phone disconects and then no logcat Aug 16 11:59:52 on mine if i boot up and run logcat it will show me the history of logcat too since booting Aug 16 12:00:48 this is killing me the gui editor wont show my xml Aug 16 12:00:53 im ready to rip my own face off Aug 16 12:01:47 intellij time i guess Aug 16 12:03:01 Gaz`: try to enable console in case it has something useful to say as to why. Chances are you have e.g. custom widget that has exception Aug 16 12:03:49 one of the really impressive things to me is that the layout editor can actually show the widget even if it's custom because it's java and executable on editor Aug 16 12:07:04 08-16 17:36:41.160: E/PGA(520): PgaSocketWriteAllHdipc: hd_ipc_send() failed Aug 16 12:07:08 what is this error ? Aug 16 12:07:43 Gez` 08-16 17:36:41.160: E/PGA(520): PgaSocketWriteAllHdipc: hd_ipc_send() failed i got this on restart , a loop of this Aug 16 12:10:39 hello there Aug 16 12:11:01 an app android is using GCMRegistrar to get a registration ID code Aug 16 12:11:28 Hi Aug 16 12:11:40 How do I set a breakpoint in NDK? In the *code itself* Aug 16 12:12:05 do you know if is still working with GCM services? Aug 16 12:12:14 __asm__ __volatile__ ("bkpt #0;") crashes the app with SEGBUS Aug 16 12:12:21 SIGBUS * Aug 16 12:12:22 i read "Gets the current registration id for application on GCM service." Aug 16 12:14:10 kjeldahl: http://pastebin.com/57HganzS - http://pastebin.com/N5JUckrr - http://pastebin.com/hyxtb3TB - http://pastebin.com/eVHFs2Bs Aug 16 12:16:23 kjeldahl: i copied the code from the demo app, added some logging and changed the package names and Activity name. The Activity extends from DroidGap (which extends itself from Activity) to be able to run the cordova code. I commented out the mDisplay variable, because cordova handles the display. That all the changes i made from the demo app. But it still does not work. Aug 16 12:16:31 Hey, can I ask for some help / advices with android development here ? Aug 16 12:16:57 Sure. Aug 16 12:18:40 Well, I'm on developing school Time Table for Android. At this moment i'm creating time-table scheduler with table lyout. I want to move subject items ( TextViews ) to table row by using drag and drop. My table rows are given by day hours: ( 8.00, 9.00, 10.00 and so on ) Aug 16 12:19:02 is there any way to put subject item between eg. 8.00 and 9.00 row ? Aug 16 12:19:08 for example, subject starts at 8.45 Aug 16 12:19:14 and finishes at 9.30 Aug 16 12:19:42 I would be really greatful if someone could give me any advice Aug 16 12:20:56 So, I'm building an app that will work primarily as a classloader for precompiled classes. I got that main part working. I can javac, then dex a class on my desktop, load it up on my phone and have it run by selecting it from a list of loadable classes (assuming it has the correct structure). Aug 16 12:21:00 dejvid9: probably wants a custom thing. Most calendars show a day view and then freely draw transparent boxes or some such to mark the allocations Aug 16 12:22:33 Now, here's a tricky part. I need to be able to access an Application Context from the add-on class. I can think of several ways to do this, but I'd like to hear some more experienced opinions Aug 16 12:23:26 For instance, would using a new context, defined in the loaded class work? Or am I better off designing an interface for the app to pass its context to the loaded classes? Aug 16 12:23:44 alankila: what kind of features can i use to do that ? Aug 16 12:24:12 I think the interface sounds like it makes more sense, but I'm a bit stuck on the implementation Aug 16 12:24:29 On the other hand, ... Aug 16 12:24:53 Oh, wait. I got it. I can probably get away with passing the application context to the constructor of the loaded class Aug 16 12:26:00 dejvid9: surfaceview, maybe. You can look up stuff from any existing calendar app Aug 16 12:27:18 this is odd, not even sure how to word/ask this… if I want to fire an intent from a notification, that will fire an activity that is translucent and popup dialog themed, how do I stop the result of that intent having the app becoming visible if it's running? as in the result currently pops up the app with the new dialog over it.. puzzled :( Aug 16 12:27:41 Ok, i looked for existing calendars but neither of free-published calendars have this feature Aug 16 12:27:48 Ronnie: So the onReceive in the GcmBroadcastReceiver never gets called? And you've verified that the call to register succeeds? If so, I have no idea. You could try one of the working samples and figure out what is different. Aug 16 12:27:53 how long did it take you guys to get aprooved for google developer console? Aug 16 12:29:41 "approved" ? I thought you just pay and there you are … :) Aug 16 12:29:54 well I think they wait for the payment to clear Aug 16 12:31:20 Morning Aug 16 12:31:23 yea the payment clearing stage is still processing Aug 16 12:31:44 but during that time they dont let me buy any apps, they all get flagged for "high risk" Aug 16 12:31:47 starting to get worried xD Aug 16 12:32:01 kjeldahl: i used a filtered log on the pid. When viewing the full log i see the following error: http://pastebin.com/gndzSrdp Aug 16 12:35:51 so u want drag n drop list? Aug 16 12:35:59 whoops didnt scroll down Aug 16 12:36:14 dejvid9 theres a drag n drop list library on github if thats what u mean Aug 16 12:36:54 alankila - its the weirdest error, says com/android/i18n/phonenumbers/PhoneNumberUtil Aug 16 12:37:17 exception raised during rendering, then it says that sorry Aug 16 12:38:44 afternoon all Aug 16 12:39:18 Ronnie: Wild guess; make sure the receiver class name in your manifest matches your actual gcmbroadcastreceiver class. Aug 16 12:39:47 Ronnie: If the manifest you posted earlier is the same, that points to a class in another namespace... "com.google..." Aug 16 12:40:19 kjeldahl: i changed my manifest (see the last pastbin) Aug 16 12:44:37 Gaz`: but i don't want to use listview. I have table-layout, first colum of each row is filled by hour: 8.00, 9.00.... each colum of first row is filled by day tag such as: MO, TU, WE...at the top of screen i have horizontal list view with subjects: Maths, Biology...i want to move item from listView ( which is textview ) to my table Aug 16 12:45:22 but the problem is how to drop item in place where hour is: 10.45 - 11.30 Aug 16 12:45:23 i'm trying ro use LayerDrawable but meeting some problems with it., Aug 16 12:45:38 hi everybody! please suggest what is the best practise to realize the following interface: Theres an ImageView that should contain two drawables - background and foreground. The ImageView has two statements: 1) Background drawable is visible, foreground is invisible 2) background drawable's alpha set to 50% foreground is 100% visible. Aug 16 12:46:09 Ronnie: Looks correct, but if all you've done is change the package names etc around and the code originally work, you need to do more detective work! Aug 16 12:47:48 Ronnie: You're also using another base class than I do (WakefulBroadcastReceiver), and you're pulling in support packages (the .v4 for stuff) which I also do not do (I'm API level 15+). As long as you know why you're doing it, it should be fine, if not you may want to check that also as a potential source of confusion. Aug 16 12:48:03 holy moly, all i had to do was change the api target in the gui editor - wasted 5 hrs on this Aug 16 12:51:40 Anybody can answer my breakpoint question? Aug 16 12:51:48 kjeldahl, why 15+ and not 14+? Aug 16 12:52:10 How do I set a breakpoint in NDK in the code itself? Aug 16 12:52:15 SiPlus: Arbitrary choice. Aug 16 12:52:18 dejvid9 ah sorry cant help, dont even understand what u mean, but scour google for libraries Aug 16 12:52:20 I tried asm bkpt #0 Aug 16 12:52:28 But it crashes with signal 7 (SIGBUS) Aug 16 12:52:35 Nothing in the debugger Aug 16 12:53:55 kjeldahl, it's not good to make arbitrary choices Aug 16 12:54:03 Choose the lowest API level possible Aug 16 12:54:43 If a functionality from a higher API level is optional, use conditions Aug 16 12:55:00 If it's required, cap at the lowest level supporting that functionality Aug 16 12:55:04 Like permissions Aug 16 12:55:25 You don't request lots of permissions in your app, only the necessary ones, no? Aug 16 12:56:09 no, choose the highest API possible ;-) Aug 16 12:56:36 least number of workarounds, and widest possible support for features you want. Today, 2.3 is arguably the lowest API you want, that would be API10. Aug 16 12:57:10 SiPlus: Maybe I have a good reason for choosing to not support devices which manufacturers have left for dead. But your points are still valid. Aug 16 12:57:47 There are no unupdated HTC Dreams in the world? Aug 16 12:58:00 SiPlus: none worth devving for? Aug 16 12:58:10 By the way Aug 16 12:58:20 How do I add support for HT prototypes? Aug 16 12:58:24 How do I compile for them? Aug 16 12:58:37 HT? Aug 16 12:58:51 I know they don't have Google Play, but you can install APKs on them as far as I know Aug 16 12:59:09 http://blogs.reuters.com/summits/files/2008/05/google-android.jpg Aug 16 13:00:12 The SDK manager has packages for only API 3+ Aug 16 13:00:39 because API 1 and 2 were fairly quickly obsolete, iirc Aug 16 13:01:17 SiPlus: the ones you linked... well, they are really ancient, there's way to get the code, afaik, but it's fairly impossible I think to support them in new app Aug 16 13:01:45 By the way, I remember seeing a screenshot once Aug 16 13:01:48 a photo * Aug 16 13:01:56 In 2008, I think, but not sure Aug 16 13:02:16 It had that prototype with "A N D R O I D . . ." boot text on the screen Aug 16 13:02:34 It was in a news article about the first Android phone Aug 16 13:02:38 Does anybody remember it? Aug 16 13:02:50 Not sure if it was about HT7... or Dream Aug 16 13:03:00 * p_l recalls quite many devices having ANDROID . . . boot screen Aug 16 13:03:13 SiPlus: iirc the emulator showed similar thing, too Aug 16 13:03:27 Yes, but it was the first Android photo, I think Aug 16 13:03:35 so anyone able to point me in the correct direction with launching a popup window (activity) that doesn't pull the rest of my app up if it's in the background ? (like launching from a notification) ? Aug 16 13:03:38 below 2.3 only has about 4.6% of the android market share, below 2.2 there is only something like 1.5% Aug 16 13:04:02 kjeldahl: i used this as my starting point: http://code.google.com/p/gcm/source/browse/gcm-client/src/com/google/android/gcm/demo/app/ Aug 16 13:04:16 jonc: there is a pretty big problem with those stats - they give worldwide data, not local Aug 16 13:04:19 API 1 is 1.0, not HT7 alpha Aug 16 13:04:30 fwiw, there's a lot of phones being sold with API 10 Aug 16 13:04:33 What market share does API 1 have? Aug 16 13:04:52 = HTC Dream Aug 16 13:04:59 SiPlus: 0% Aug 16 13:05:11 :D :( Aug 16 13:05:27 There's a low possibility that if you unpacked a first-run HTC Dream right now, it might not update :> Aug 16 13:05:48 1.6 Donut 4 0.1% Aug 16 13:06:10 I doubt it would connect to the current servers Aug 16 13:06:16 the same as 2.3-2.3.2 and 3.2 Aug 16 13:07:48 kjeldahl: if i clone the whole gcm git. Is it possible to create an app which i can install on my phone and test? Aug 16 13:08:11 I want a pre-alpha Android prototype phone so much... Aug 16 13:08:47 p_l, that is true, but for the most part if you support 2.2+ you will hit the vast majority of devices. Anything below that it will not be worth the time really Aug 16 13:08:50 SiPlus: get one of the old HTC WinMo phones Aug 16 13:08:54 Ronnie: Yes, you build one of the projects in that repo. Should work. Aug 16 13:09:10 and even 2.2 can be questionable depending on the project Aug 16 13:09:12 Ronnie: Start with the simplest one and get them working, and build on those. Aug 16 13:09:13 p_l, no, I want HT7##G... Aug 16 13:09:16 SiPlus: then find a way to build the ancient alpha version of android that runs from WinMo Aug 16 13:13:17 Windows Mobile phones have big screens Aug 16 13:13:53 SiPlus: not all. And the very early android actually booted as application on Windows Mobile, iirc (HaReT etc.) Aug 16 13:14:08 O_o Aug 16 13:15:16 that emoticon is who made this torrent http://thepiratebay.sx/torrent/4882795/ Aug 16 13:15:27 Seeders: 0 Aug 16 13:15:51 Hello colleagues. I am having a very weird issue, and am hoping to find some help or pointers... Aug 16 13:16:15 Lachezar ask away.. Aug 16 13:16:37 I have an activity, that opens a dialog with a few buttons. Every button starts another activity. In onActivityResult() I reopen the dialog. Aug 16 13:16:58 Watching old Android videos Aug 16 13:17:06 The 2.2 launcher is beautiful Aug 16 13:17:32 can NDK use by all versions of android and sdk Aug 16 13:17:33 On ANdroid 4.1+ the UI *HANGS* after returning from the child activity! Aug 16 13:17:40 * StingRay_ gives up Aug 16 13:18:08 This issue does not show with Android 2.3 or 4.0 Aug 16 13:18:11 StingRay_: ? Aug 16 13:18:27 logcat Lachezar Aug 16 13:18:47 p_l: lost with how to search for my question…so cant find any answers Aug 16 13:19:13 and would have thought it a very popular thing to want Aug 16 13:19:18 Gaz`: Nothing in the logcat. Aug 16 13:20:13 When I press a button in the Dialog nothing happens, but if I press 'Home' the application crashes because I get onPause() called and *afterwards* I get the button push! Aug 16 13:20:13 whats hang mean tho Aug 16 13:20:38 Gaz`: UI does not respond, no 'Not Responding' dialog though... Aug 16 13:20:52 hmm Aug 16 13:20:57 is it networkign or anythign when u hit button Aug 16 13:21:16 or any heavy lifting Aug 16 13:21:31 p_l: notification button click > pending intent > launch activity (translucent mode, windowed) > !! Not bounce my dormant non-foreground activity to the front !! > show window, just cant stop my activity being foregrounded, maybe am tired and not thinking properly Aug 16 13:22:39 Gaz`: The hang occurs about a second after onActivityResult(). If I'm very quick I can press the button on the dialog before it hangs. No AsyncTasks. Aug 16 13:22:42 yes, go to bed and trya gain in the morning Aug 16 13:24:54 Great. After MUCH pain I finally managed to authenticate my own GCM CCS server against Google's, and now I have to apply to get whitelisted to do anything. "A member of [The Google] team will be in touch with you shortly.". Aug 16 13:25:28 I guess bidirectional push messaging between device and my own server isn't for mere mortals yet.. ;-) Aug 16 13:27:08 i just need to launch a pendingIntent that either clears the current stack an is TOP, but nothing I do works… dont have the freedom of sleep :( Aug 16 13:27:30 1st time I have been puzzled and stuck in a while … not fun Aug 16 13:31:27 StingRay_: wasn't there a way to note in manifest that the activity should always be fresh-started? Aug 16 13:31:54 well you can CLEAR_TASK and SINGLE_TOP it Aug 16 13:32:12 and is it possible to mark that on alias only? Aug 16 13:32:56 you mean what I'm after ? no … I mean how do these chat programs do it Aug 16 13:33:02 with the popup quick reply Aug 16 13:38:56 kjeldahl: To test the demo app, do i need to upload the package to the play store and add the API projectd in the playstore app configuration? Aug 16 13:38:59 I have an app that uses a custom permission. And it seems like I have to install this app after the app that defines the same permission is installed, for this to work. Otherwise I get Permission Denial. Is this true? Aug 16 13:41:46 Ronnie: No. I did my testing without uploading it to the Play Store. But you need to set it up in the API Console as usual to get acccess to the GCM APIs Aug 16 13:42:35 okay, the solution to my problem seems to be to add that permission in both ends Aug 16 13:44:35 kjeldahl: i can use my current sender_id for that? Aug 16 13:45:26 because it looks like its still not working Aug 16 13:46:12 Ronnie: Yes, the normal sender_id ("project number"). Aug 16 13:48:03 Ronnie: You have "Any app allowed" in the "Key for Android apps" enabled as well? Not really sure how/if it's used, but still.. Aug 16 13:48:49 Key for Android apps? Aug 16 13:49:42 API Console => API Access => Create new Android key... Aug 16 13:50:31 And the GCM services need to be enabled under Services as well. Aug 16 13:52:33 * kjeldahl is adding GCM CCS support to the node-xmpp module Aug 16 13:55:09 kjeldahl: I have this service enabled: Google Cloud Messaging for Android Aug 16 13:55:21 Ronnie: Should be enough. Aug 16 13:55:28 and i use a " Key for server apps (with IP locking) " key Aug 16 13:55:44 Ronnie: For what? Aug 16 13:55:53 for sending messages Aug 16 13:56:02 thats the api key i use server side Aug 16 13:56:19 Ah, server side, yes. Aug 16 13:57:25 Based on your earlier pastes, it looked like the message was being sent and received by the device, only the device did not find a suitable receiver. Aug 16 13:57:34 I.e. your app. Aug 16 13:58:01 indeed Aug 16 13:59:33 Gotta run now, laters! Aug 16 14:01:09 kjeldahl: thx, i have my first message recveived Aug 16 14:01:31 ill be able to change bit by bit now Aug 16 14:14:50 does anyone know where the id/carrier string gets set in the source code? Aug 16 14:26:25 Setting up an Android build seems to require downloading old JRE from Oracle, which is security-vulnerable... Why? Isn't Java backwards compatible? Why Oracle and not OpenJDK? Aug 16 14:26:49 Trying to download that from Oracle wants me to register a user/pass :-( Aug 16 14:27:36 Peaker, jdk, not jre, and the vulnerability is irrelevant for that use case Aug 16 14:27:51 pfn, ok, but isn't JDK 7 backwards compatible? Aug 16 14:27:57 JRE is the VM and JDK is the libraries? Aug 16 14:28:05 you can use open jdk, but issues you encounter are up to you Aug 16 14:28:08 hi, does anyone have an code snippets that I can check out that use the chromecast api? Aug 16 14:28:16 jre is runtime Aug 16 14:28:24 jdk is development Aug 16 14:28:45 Peaker, it's backward compatible to an extent Aug 16 14:29:29 pfn, are the issues with OpenJDK not documented? The "official" way to work with AOSP is with non-free tools? :( Aug 16 14:29:49 don't know, don't care Aug 16 14:29:58 it's a known good baseline Aug 16 14:30:12 HAH! Succeeded in creating a simple app that shows how the UI Hangs when opening a dialog from onActivityResult(). Anyone willing to help? Hangs with Android 4.1+ only. Aug 16 14:31:12 if google would update android code to run with jdk7 in general while developing apps, that would be pretty nice Aug 16 14:31:38 that's pretty trivial and already works Aug 16 14:31:40 and far more important about what contortions the AOSP building people have to go through. There are few of them, but many app developers Aug 16 14:32:05 really? I can update java API to 7 and it can function? Aug 16 14:32:21 -source 1.7 - target 1.6 Aug 16 14:32:48 maybe just the latter will work fine Aug 16 14:32:54 well, I'll give it a try then, see what it can do Aug 16 14:32:57 how do I build only aosp/packages/apps/Bluetooth ? Aug 16 14:33:05 insert that at the right place in your build tool Aug 16 14:33:13 Anyone using feinstein slidingmenu? I am wondering if we can make the behindview slide in up to a point where it overlaps the main content area slightly,is this possible? Aug 16 14:33:46 make Bluetooth Aug 16 14:33:58 Anyone with an Android 4.1+ device willing to install and run a simple app that has no permissions, and has only two buttons? Aug 16 14:34:08 (So it appeara in front of the main area) once it has slid open Aug 16 14:34:20 * Lachezar wonders if this is not the time to open a Git Hub account. Aug 16 14:36:55 Lachezar: you trying to hack me Aug 16 14:37:04 number of buttons has no impact on capabilities Aug 16 14:40:58 Just don't show the dialog until the Activity is resumed Aug 16 14:41:13 If you used DialogFragment it'd crash Aug 16 14:41:20 mikedg: Not trying to hack anyone, trying to confirm a /bug/ in Android 4.1+ Aug 16 14:41:53 SimonVT: I don't use Dialog Fragments. And the thing works as expected for Android 2 and Android 4.0 Aug 16 14:42:21 mikedg: Source code provided: two activities, <100 LOC. Aug 16 14:42:24 Dunno if it's expected Aug 16 14:42:28 The Activity is paused Aug 16 14:42:57 SimonVT: I wasn't expecting to get onActivityResult *before* onResume() Aug 16 14:43:25 SimonVT: But if I do not dismissDialog(1234) it does not lock-up. Aug 16 14:43:40 The docs explicitly say it's called before onResume :P Aug 16 14:43:59 SimonVT: Whops... That's... Counter-intuitive :-/ Aug 16 14:44:53 SimonVT: So how do I do that? In onActivityResult() store flags, and process them in onResume()? Aug 16 14:45:29 Pretty much Aug 16 14:47:57 SimonVT: Hmmm... I'm wondering what would make the devs choose to call methods on an object that's 'paused'... Aug 16 14:48:25 SimonVT: Anyway... Who am I to argue with the 'G00Dz'. Aug 16 14:49:16 SimonVT: Are you serious about the handling of onActivityResult()? Aug 16 14:49:33 Yeah, it's kinda dumb Aug 16 14:49:35 SimonVT: I have the feeling you're pulling my leg to see if I bite. Aug 16 14:49:49 No, I am serious Aug 16 14:50:06 I'm not surprised it broke since the Activity is paused Aug 16 14:50:15 hi, i have a webview that is used to load a page that contains javascript. in this js an array of objects is created. after the page is loaded some more js is loaded as a string and passed directly to the webview to be executed, there is a javascript interface that is used inside the js to call java-methods from the js code Aug 16 14:50:19 SimonVT: Then thanks a bunch... I'll have to rewrite this but.. Aug 16 14:50:37 And I'm not surprised that it'd break unexpectedly since DialogFragment would have crashed Aug 16 14:50:46 So yeah.. Aug 16 14:51:03 now here is the problem: when i have this javascript-interface in a pre-api17 fashion created (dont use @JavascriptInterface annotation), some fields of the objects in the array are empty Aug 16 14:51:05 You can probably post a Runnable to the looper and start the dialog from there Aug 16 14:51:13 Unless you're using DialogFragment.. Aug 16 14:51:19 Then you have to post a Runnable from onResume Aug 16 14:51:38 when using the @Javascriptinterface annotation it works.. has anyone experienced such strange behaviour when doing the javascriptinterface in a pre-api17 style? Aug 16 14:52:56 SimonVT: The runnable looks like more work than doing it in onResume(). Aug 16 15:00:47 SimonVT: I've another work-around: dismiss the dialog before starting the child activity. Then showing the dialog in onActivityResult() works. :-/ Aug 16 15:01:37 he. I'm having a hard time to get rid of some glxinfo error message on a remote ubuntu 13.04 vm. If anyone can help, here is the output of glxinfo: http://pastebin.com/cyvWtg4D (when accessing the vm via ssh with X redirection). Note that ultimately, I'm trying to get the android emulator to run past the initialization of opengles when accessing with freenx or vnc. When trying to run glxinfo from freenx, I get: Aug 16 15:01:38 http://pastebin.com/fsVSf2na. Aug 16 15:03:20 Btw: is there a way just to bypass opengles? Aug 16 15:04:05 Lachezar: Why are you even showing a dialog that already exists Aug 16 15:09:58 when trying to build Android, it tries to run prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar (but I'm on x86_32), what could cause this? Aug 16 15:10:02 SimonVT: That's the thing that just occured to me... The dialogs are reworked from simple Yes-No. Those dialogs hid themselves and needed to be presented. After the reworking these dialogs do not show/hide when an inner button is pressed: no need to show/hide them manually! Aug 16 15:10:33 SimonVT: Or was that to make the dialog prepare again... Aug 16 15:12:04 SimonVT: Need to check if onPrepareDialog() is called after onActivityResume(). Aug 16 15:15:03 hello guys Aug 16 15:15:14 anyone? Aug 16 15:15:16 sup samuel Aug 16 15:15:34 Peaker: we usually arent the best place to ask about platform build issues Aug 16 15:16:02 Peaker: #android-root will probably help better Aug 16 15:16:07 i am making an android app for my own use, and for the most part it works. It receives intents the way it is supposed to, however it does not receive them on boot unless the app is started Aug 16 15:16:27 and for some reason, after a while, it stops receiving them again Aug 16 15:16:36 I have implemented onResume Aug 16 15:16:41 the right places to ask about building are the android-building, and maybe android-platform google groups Aug 16 15:16:45 samuel: Broadcast listeners are in the Manifest right? Aug 16 15:16:45 and onPause, I think, properly Aug 16 15:16:54 Lachezar, thanks Aug 16 15:16:56 Lachezar: yes Aug 16 15:17:07 Anyone here with some experience of running the android emulator in a vm on a remote server (via vnc or freenx)? Aug 16 15:17:10 but I am wondering if I need a wake lock or something? Aug 16 15:17:24 its my first android app to be honest Aug 16 15:17:34 I have not messed with Java since uni Aug 16 15:17:43 samuel: Ugh. Sorry. I had similar problems, but they went away when I put the listeners in the Manifest. Aug 16 15:17:48 can I post some code? Aug 16 15:17:56 pastebin? Aug 16 15:17:59 iirc, aosp requires a 64bit build host Aug 16 15:18:04 samuel: this is what pastebin.com is for Aug 16 15:18:07 I would appreciate a look Aug 16 15:18:51 pasting... Aug 16 15:18:53 hello Aug 16 15:18:56 one sec Aug 16 15:19:05 samuel, boot receivers require the app is run at least once after installing to activate Aug 16 15:19:07 iirc Aug 16 15:19:31 since when is NETWORK_PROVIDER an illegal location provider? Aug 16 15:19:35 ??? boot receivers??? Aug 16 15:19:42 code: "locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 5000, 12, locationListener);" Aug 16 15:19:50 isn't that what you said Aug 16 15:19:54 and what is the alternative? Aug 16 15:20:51 samuel, oh, you mean regular broadcasts? you only receive those if your app is running, unless it's a manifest receiver Aug 16 15:21:03 http://pastebin.com/UTHDTScN Aug 16 15:21:07 http://pastebin.com/RCZhXtEp Aug 16 15:21:16 its a pebble watch connected app Aug 16 15:21:25 the watch part works Aug 16 15:21:38 I'm just having problems with the android part Aug 16 15:22:00 read what I said Aug 16 15:22:07 understand, then fix Aug 16 15:22:13 aha! Aug 16 15:22:32 it is just illegal on the emulator Aug 16 15:22:49 Ok, time to go to the coffee shop for more beans... Aug 16 15:23:00 have to bike around everywhere now... Aug 16 15:23:17 I'm too used to having to drive everywhere Aug 16 15:23:39 Let me rephrase me question then. I'm working with a friend who's machine's specs are too low to properly use the android sdk. Yet, we have a server with several Xeons, 32go of ram, several terabytes on a raid array and a decent internet connection. Given that our distro will have to run on a virtualized env (vmware stuff), how would you use the android emulator (given that you have some serious graphic acceleration problems). Aug 16 15:23:46 only one car at home, and someone's already driving it Aug 16 15:23:57 so gotta bike Aug 16 15:24:00 pfn: thanks! Aug 16 15:24:06 reading about it now Aug 16 15:24:07 from the middle of nowhere Pennsylvania, have to drive 15-20 minutes to get to a town Aug 16 15:24:26 yeah, don't like bfe Aug 16 15:25:06 pfn: I just hope you're not in the sf bay area. They don't need another guy on his bike, rolling to get his coffee beans in a fancy bag. Aug 16 15:25:07 I like it to an extent. I would like to live someplace with lots of room, but be close enough to a city / town where I won't complain Aug 16 15:25:39 santa Clara, but close enough Aug 16 15:25:50 I knew it. Aug 16 15:25:56 at least I don't ride a fixie Aug 16 15:26:08 frigging hipster shit Aug 16 15:26:32 What is a fixie? Aug 16 15:26:43 fixed gear Aug 16 15:26:52 samuel: You might want to split that intent-filter into three intent-filters. Aug 16 15:27:01 Ah right Aug 16 15:27:31 I guess I'll bring my chrome bag with me Aug 16 15:28:11 ehhh it never stops. Aug 16 15:28:47 not my fault you got no fashion Aug 16 15:28:49 Just stop at mcdonalds along the way, buy a burger and throw your junk in the street. That'll keep the true american spirit from dying. Aug 16 15:29:47 I really miss the 50's. Aug 16 15:30:08 cancer wasn't invented yet. Aug 16 15:30:19 nor herpes Aug 16 15:30:23 nor aids Aug 16 15:31:56 Is there a way to tell android to pick only jpg and png pictures? something like intent.setTyp("images/jp3g | images/png") Aug 16 15:34:21 no Aug 16 15:34:44 Damn... No onPrepareDialog() called after onActivityResult(). Aug 16 15:39:49 hi guys, I'm searching for a listener that can detect if the user is using a fast-scrollbar. Do you have any ideas? Aug 16 15:40:42 AbsListView.OnScrollListener is not an option , that's a listener for scrolling on the screen, not on the scrollbar Aug 16 15:42:19 i need that listener to deactivate pull-to-refresh (https://github.com/chrisbanes/ActionBar-PullToRefresh) when the user is scrolling on the scrollbar and re-activate it when the user stops scrolling on the scrollbar Aug 16 15:55:50 Hey is there any way to swap included layouts? Aug 16 15:56:17 or change the visibilty of a you can get it by id still Ankhwatcher Aug 16 15:57:33 that's true, but I can't set this in xml as far as I can tell. Aug 16 15:57:43 yes, you can Aug 16 15:58:47 just set attributes on the include tag Aug 16 15:59:22 Lachezar: sorry for the late reply… why 3 intent filters? Aug 16 16:01:30 pfn: you're right, it wasn't suggesting android:visibility as an option but it does work Aug 16 16:01:35 thanks Aug 16 16:02:06 samuel: I have no idea actually. Was having problems with USB Attached and USB Detached, split them in two, and it works :-/ Aug 16 16:02:23 hmmmm.... Aug 16 16:02:25 ok, thx Aug 16 16:07:57 hellp Aug 16 16:08:14 hello Aug 16 16:09:16 how do I simply get the current location? Aug 16 16:09:49 I whould like to do a fallback for cellular location too Aug 16 16:15:49 mikedg: ping Aug 16 16:15:55 pong motherfucker Aug 16 16:16:13 wasn't there a semi-large android design channel ? Aug 16 16:16:21 like 10+ ppl Aug 16 16:16:34 or was that it I just found you in ? Aug 16 16:16:37 #android-designers Aug 16 16:16:43 yeah Aug 16 16:16:45 its dieing Aug 16 16:16:52 right…arses Aug 16 16:17:16 few months back had like 20+ or so Aug 16 16:17:24 well, maybe a few more than a few months Aug 16 16:18:32 StingRay_: there's a pretty active android design community on G+, I think Aug 16 16:19:17 https://plus.google.com/communities/116667001535376136065 Aug 16 16:19:49 the g+ design community is heaving with noobs Aug 16 16:19:55 i posted a few times there Aug 16 16:20:12 mmmm got my coffee Aug 16 16:20:23 time to pull another shot Aug 16 16:22:00 mikedg: yeah but since you stopped posting, the noob posts have stopped. Weird! Aug 16 16:22:05 shots shots shots shots! Aug 16 16:22:59 connecting my nexus 4 to my galaxy nexus and trying to connect via adb doesnt bring up the "do you want to authorize this bitch computer" Aug 16 16:23:06 so i cant get authorized :( Aug 16 16:24:42 i just found someone who has done remarkable the exact same code as me as a library Aug 16 16:24:52 why do i feel like its been stolen Aug 16 16:25:01 well i suppose it could have been Aug 16 16:25:19 Napalm how did you find it? Aug 16 16:25:30 G+ post advertising this library Aug 16 16:25:38 https://plus.google.com/u/0/103889743638996960945/posts/XLxh5AA6RxB Aug 16 16:26:01 i've done exactly this code, and its published in a widely used uk app Aug 16 16:26:20 that doesn't look like a particularly unique idea Aug 16 16:27:46 Napalm remember, even Shelves got ripped off :) i hear this kind of thing is pretty common Aug 16 16:28:21 post open source app on github : low and behold, 5 apps appear on Play that do the same thing :) Aug 16 16:28:26 well when his private method names are the same as mine Aug 16 16:28:28 i wonder Aug 16 16:28:50 my commit is over a year old, i win :P Aug 16 16:29:06 Napalm you could have set your clock :P Aug 16 16:29:15 :'( Aug 16 16:30:00 the classes are name the same Aug 16 16:30:09 hello again. all right in here ? Aug 16 16:30:16 this is too much of a coincidence Aug 16 16:31:07 yeah, he ripped you off, go and complain on his github Aug 16 16:31:33 i got fragments working, with ht v4 support lib. it is really, what i need, i think..... now i need to place ui elements INTO the fragment.... but api 9 does not allow me to use buttin.setLef and so on.... what are my alternatives ? Aug 16 16:32:00 pfn: its amusing, he's replicating a bug in the code that I had Aug 16 16:32:10 pfn: i fixed it not too long ago Aug 16 16:32:54 and : on which event is best to add views into my fragment ? Aug 16 16:33:06 icbytes, you add views into your fragment in onCreateView Aug 16 16:33:07 its a shame really.. i like his better, he's added colorfilter support Aug 16 16:33:11 that seems kinda obvious Aug 16 16:33:16 ok, thx Aug 16 16:33:40 i tried to add a button, til now i do not see it. i will try on later. Aug 16 16:33:57 is the framelayout in the mainactivity necessary ? Aug 16 16:34:09 icbytes, no Aug 16 16:34:09 in order to put my fragments into it ? Aug 16 16:34:17 icbytes, well, if you're using appcompat-v7, yes Aug 16 16:34:31 since appcompat doesn't have android.R.id.content usable in <3.0 Aug 16 16:34:36 or was it >3.0, I forget Aug 16 16:34:40 i must support at least api 9, so i use v4 until now. Aug 16 16:34:50 appcompat-v7 is for the actionbar Aug 16 16:35:40 ok, let me say, i would succeed in adding my button to my fragment..... how can i change its size and position during runtime ? Aug 16 16:36:18 setLeft and so on are not supported on api 9 Aug 16 16:36:31 what else can i do ? Aug 16 16:36:44 setLayoutParams ? Aug 16 16:37:44 this is usually the right thing, i suppose.... Aug 16 16:37:48 right ? Aug 16 16:39:29 hello ? Aug 16 16:41:39 can anyone tell me how to have multiple projects (windows) open in Android Studio? Aug 16 16:41:52 just open the other project and it opens in a new window Aug 16 16:41:59 unless you chose the option for 'this window' and remembered it Aug 16 16:42:24 not sure if I did that or not but whenever I open them it replaces current project Aug 16 16:42:33 it's a setting that you remembered Aug 16 16:42:35 ok, lets go forward. I create my fragment in the activity on create and call FragmentTransaction.replace() then pushstackback and then commit. I see my fragment in bluestacks... but when i click <- ( go back ) in the lower left corner of the bluestacks, then first my fragment disappears.... and then i must click again to quit my app. why ? Aug 16 16:42:37 search settings and remove it Aug 16 16:42:54 bluestacks? Aug 16 16:43:00 right Aug 16 16:43:06 that's a question Aug 16 16:43:20 Do YOu know bluestacks app player ? Aug 16 16:43:22 no Aug 16 16:43:45 it is the best emlator as long Your project is minimum target sdk 2.3 Aug 16 16:43:52 * pfn shrugs Aug 16 16:43:57 android emulator is the best emulator Aug 16 16:44:15 and i must use this , all other avd's are simply rubbish Aug 16 16:44:20 and you pushed it on the backstack, you need to pop it before quitting Aug 16 16:44:26 intel haxm + x86 images are fast Aug 16 16:44:31 a real device is the best emulator Aug 16 16:44:36 thats right, Aug 16 16:44:56 before telling my company to buy a testdevice my prototype must be successful Aug 16 16:45:16 on my computer at home even haxm is slow Aug 16 16:45:23 in my wor haxm works very well Aug 16 16:45:34 get a nonshitty computer Aug 16 16:45:46 my computer is like 5 years old now and it still runs awesome Aug 16 16:45:55 it is not so bad, i wonder why it is slow evebn witj haxm Aug 16 16:46:04 maybe you didn't actually install/enable haxm Aug 16 16:46:06 my computer is also 5 years old Aug 16 16:46:13 I have a 2 year old PC and I have to say intel x86 + haxm still runs poor Aug 16 16:46:19 sure i see logcat telling me haxm and fast virt mode Aug 16 16:46:20 your pc sucks Aug 16 16:46:24 q2uit getting those $200 emachines Aug 16 16:46:39 hope that wasnt directed at me xD Aug 16 16:46:53 it is a nice one. much ram, ddr 3, intel e8600 Aug 16 16:46:59 sounds crappy Aug 16 16:47:03 ok, the board is not the best Aug 16 16:47:26 * pfn has 18gb, 500gb ssd and i7 920 Aug 16 16:47:35 shit runs fast Aug 16 16:47:38 but the rams and the cpu are good for all things except the haxm... by the way , did anybody ever flag "emulate on gpu " ???? Aug 16 16:48:01 pfn, this surely is a good environment Aug 16 16:48:03 so, ok Aug 16 16:48:05 * g00s has 4gb, 250gb, some intel cpu :P Aug 16 16:48:07 * p_l has C2D, 4G ram and slow hdd. That's all for personal computing, and I don't see it changing Aug 16 16:48:11 anyway, don't really care about bluestacks Aug 16 16:48:14 let us go back to the fragment and quit issue Aug 16 16:48:19 you pushed on backstack Aug 16 16:48:22 you need to pop it first Aug 16 16:48:24 then you can quit Aug 16 16:48:29 so 2 back-presses Aug 16 16:48:33 sounds pretty obvious Aug 16 16:48:59 i use hardware buttin "back" and then first my fragment desappears and after a second click the app quits. Does it have to do with push and pop in this case ? Aug 16 16:49:10 if you pushed on backstack, of course it has to pop Aug 16 16:49:15 because you PUSHED IT! Aug 16 16:49:20 ok, nice, thx Aug 16 16:49:27 but when is a good time to pop it ? Aug 16 16:49:34 don't push on backstack then Aug 16 16:49:39 why push if you don't want to pop Aug 16 16:49:57 aha. so pushing it is for "cycling through fragments " if preferred ? Aug 16 16:50:09 it's called a back stack for a reason Aug 16 16:50:19 "back" stack, "back" button Aug 16 16:50:23 hmm, I wonder if they're related Aug 16 16:50:42 lifetime of the fragment is not ending while on stack ? Aug 16 16:51:29 right, back button and backstack.... could be a relation Aug 16 16:51:51 pretty sure it is. i should try and push three or four of them on stack to verify Aug 16 16:52:37 in my situation it could be necessary to have the fragments "living" but not in foreground, if i had to generate a popup from db, for example Aug 16 16:53:56 pfn ? My inheriting fragment also can offer a method in order to create ui elements at any runtime, not only in OnCreate. RIght ? Aug 16 16:56:17 http://i.imgur.com/8M0aa.jpg <- fragments Aug 16 16:56:48 thx, but what should tell me this ? Aug 16 16:56:58 this i already created Aug 16 16:57:32 i just wanted to know, that "on each time of the running app" i can add views to my fragment ( like in c# ) Aug 16 16:58:25 then do it like in c#... Aug 16 16:58:36 and use onCreateView Aug 16 16:58:50 pfn, my idea is, that onCreate is already processed Aug 16 16:59:26 and a public method then is called wich places views on the fragment, I suppose, this must be possible, i just need info, if not Aug 16 17:01:46 so any time after onCreateView is safe Aug 16 17:01:52 thx. Aug 16 17:02:07 lets talk about more technical, oo design, now Aug 16 17:03:23 not interested Aug 16 17:03:25 go learn more OO Aug 16 17:04:22 Hi. I need help with Event.CONTEXT3D_CREATE Aug 16 17:09:06 if i react to an event of an view ( lets say simply onClick) which is inside a fragment, i would prefer to react to it on the one and only mainactivity..... is this good thought ? Aug 16 17:10:40 surely i would have to react inside the fragment first and then fire the event and my activity has the handler assigned. Can I do it like this, or are there some good patterns how to do it more properly ? Aug 16 17:11:49 icbytes maybe look at canadiancow 's i/o 2013 presentation Aug 16 17:11:58 hm, hold on Aug 16 17:12:04 ? Aug 16 17:12:21 pfn ? learn more OC ? Overclocking ? for what ? Aug 16 17:12:57 icbytes: he said OO, not OC. Aug 16 17:12:59 icbytes https://developers.google.com/events/io/sessions/326148829 Aug 16 17:13:13 make sure you get the code samples, look for the fragment / controller stuff Aug 16 17:13:17 ah, my damn irc client sometimes cutts of some characters ? Aug 16 17:13:32 in this case i do not see the question mark, Aug 16 17:13:41 will emerge this stuff in some time Aug 16 17:13:52 thx, sounds very nice Aug 16 17:14:19 hm, where is the code sample dl Aug 16 17:14:44 g00s, o hai Aug 16 17:14:51 what is this ? i got a ctcp_version from evanc Aug 16 17:14:51 hey canadiancow :) Aug 16 17:15:14 hello cow Aug 16 17:15:16 canadiancow didn't your i/o presentation have code sample ? Aug 16 17:15:27 couldn't find it on the i/o page Aug 16 17:16:17 https://code.google.com/p/platform-features-talk-io-2013/source/checkout Aug 16 17:16:17 how can I become root Aug 16 17:16:23 i had to search through my g+ posts for that Aug 16 17:16:25 canadiancow thanks Aug 16 17:16:46 thx, too Aug 16 17:16:48 apparently someone reported a bug in the sample code Aug 16 17:17:14 root ? on android ? root the phone, go to xda-developers.com, bazillions of tutorials are there Aug 16 17:17:44 is it illegal ? Aug 16 17:17:48 is there a problem Aug 16 17:17:50 try #android-root please Aug 16 17:17:58 illegal ? no Aug 16 17:18:07 damnit, why does ClickableSpan underline... how do I ditch that, hrm Aug 16 17:18:14 but some vendors say : warranty gets lost Aug 16 17:19:10 i would like to say : nice people in here, channel is very friendly and helpful, really cool. Keep on, thx for all until now Aug 16 17:19:29 ah, just override and ditch updateDrawState Aug 16 17:19:32 xda shows the rooting Aug 16 17:19:33 model model Aug 16 17:19:39 is it a joke ? Aug 16 17:20:14 it angers me Aug 16 17:20:21 there are surely tuts. more than one. it also depends on YOur device, htc for example, has a bootloader, which nerves Aug 16 17:21:01 I just want to kill status bar Aug 16 17:21:05 ah how it can be hard Aug 16 17:21:16 do not know Aug 16 17:21:25 what's to kill? you just request your app in fullscreen Aug 16 17:21:40 it doesnt become fullscreen Aug 16 17:21:51 sure it does Aug 16 17:21:54 you're doing it wrong Aug 16 17:21:55 just status bar became passive Aug 16 17:22:02 really Aug 16 17:22:07 is it Your OWN app ? Aug 16 17:22:07 connect me via teamviewer Aug 16 17:22:15 my own app Aug 16 17:22:18 and my own device Aug 16 17:22:19 real device Aug 16 17:22:22 not avd Aug 16 17:22:24 which one ? Aug 16 17:22:26 it is table Aug 16 17:22:43 Dd You specify layout correctly ? Aug 16 17:22:47 casper CTA Aug 16 17:23:31 I dont want to "passive" Aug 16 17:23:36 I want to really hide Aug 16 17:24:13 I dont wanna the black bold lind to show Aug 16 17:25:41 wtf are you talking about Aug 16 17:25:47 you want to hack your device? Aug 16 17:25:48 #android-root Aug 16 17:26:56 another thing, which i would like to know : Did anybody ever developed an app which uses the device camera in order to scan barcodes ? Aug 16 17:27:10 zxing Aug 16 17:27:13 of course someone has Aug 16 17:27:24 Did You ? Aug 16 17:27:39 sorry, anybody in here, Aug 16 17:27:46 that's not how you get help Aug 16 17:27:53 that's how you get ignored Aug 16 17:28:06 pfn stay cool Aug 16 17:28:15 this is a channel to get and give info Aug 16 17:28:33 it's for developer discussion Aug 16 17:28:37 that's not discussion Aug 16 17:28:50 * pfn ponders why his clickablespan isn't always clickable Aug 16 17:28:52 and my question is : How complex could it be, to enable scanning by device cam ? Aug 16 17:29:12 i am talking about development, and nothing else Aug 16 17:29:39 I told you, zxing Aug 16 17:29:39 done Aug 16 17:29:44 if you can't be bothered to look it up Aug 16 17:29:46 that's your problem Aug 16 17:29:58 ah, i thought it was just a word Aug 16 17:30:17 how should i know, it had any meaning ? Aug 16 17:31:11 icbytes: by the fact that it's the most common library and package used in scanning barcodes on Android Aug 16 17:31:53 ok, by the fact, that i am new to android dev ( and java dev ) i surely should say : thx. will read about it Aug 16 17:32:01 you're new to dev period Aug 16 17:32:11 I hate it when people say "new to X dev" Aug 16 17:32:52 i do development for long time, and i hate arrogant developers, who have nothing but their style and think, it is the world Aug 16 17:33:22 you haven't done development for a long time if you fail at research and understanding ref docs Aug 16 17:33:29 what ? Aug 16 17:34:06 i am in here to ask, and i never said, : show me code, show me examples, You really are a person, who thinks, YOu can judge people by irc ? i hope not Aug 16 17:34:31 icbytes: you just judged him to be a person who judges... Aug 16 17:34:39 anyway, ask questions and stop the mud throwing Aug 16 17:34:40 and that he does Aug 16 17:34:49 don't see the irony in that? Aug 16 17:35:27 why am i now the mud thrower ? Xabster that is not fair. This for example is another thing of being new to something Aug 16 17:35:52 i'll crawl back to my tv series, cya guys Aug 16 17:35:59 see ya Aug 16 17:37:20 he who throws mud first gets shat on last Aug 16 17:37:31 https://www.google.com/search?q=google+android+barcode+scanner&oq=google+android+bar+code&aqs=chrome.1.69i57j0l3j69i62l2.5535j0&sourceid=chrome&ie=UTF-8#bav=on.2,or.r_cp.r_qf.&fp=d750b992d784f8&q=android+sdk+barcode+scanner&safe=off Aug 16 17:37:32 sounds about right Aug 16 17:37:47 damnit, wtf is wrong with my clickablespan, shit doesn't activate unless I click it a shitton of times Aug 16 17:37:54 when searching for anything android dev related I've found putting in "android sdk" works better than "android" Aug 16 17:38:21 hi there. I've some trouble in using async task, in particular I just want to know how to manage anomalous situation that can occurr during the execution of an asyncronous task whose purpose whose to return a specific list of element. Here you can see the code that I've written: http://ideone.com/ix4jGf Aug 16 17:38:49 in this code, I simply try to download an xml file from the server. If the file was not found the application crashes Aug 16 17:39:08 auto-linked url spans work perfectly, but my clickable spans don't Aug 16 17:39:21 but I can't understand why it happens simply because I manage the case in which there is a 404 server response. Aug 16 17:39:27 then it is throwing an exception, check logcat and then figure out where and what exception you need to catch Aug 16 17:39:47 I am inside installed app list in android 4.2 the activity name is com.android.Settings.SubSettings , but the activity is same either i am stopping a activity or uninstalling a activity , is there a way to differentiate ? Aug 16 17:40:40 jonc it is only an uncaught exception? Aug 16 17:40:54 check your logs, that will tell you what is going on Aug 16 17:41:41 weird, had to set link movement method Aug 16 17:42:10 Sets whether the movement method will automatically be set to LinkMovementMethod if setAutoLinkMask(int) has been set to nonzero and links are detected Aug 16 17:42:12 ah, misread Aug 16 17:42:26 LinkMovementMethod is only set if there's an autodetected link, that's annoying Aug 16 17:42:28 jonc I receive a runtime exception Aug 16 17:43:12 jonc are there some errors in my code!' Aug 16 17:43:15 ? Aug 16 17:43:35 I am inside installed app list in android 4.2 the activity name is com.android.Settings.SubSettings , but the activity is same either i am stopping a activity or uninstalling a activity , is there a way to differentiate ? Aug 16 17:43:41 Read the stack trace then you'll know the issue Aug 16 17:44:29 ^ Aug 16 17:44:58 your logs should have where it broke (even down to the line) and give you an idea Aug 16 17:45:14 I want to make my app as device admin app Aug 16 17:45:21 where should i start ? Aug 16 17:45:26 devD: http://d.android.com Aug 16 17:46:47 evanc , i have all the info but want to get a direction , like is it possible to make such a app which can act under device admin so that admin can access that app or stop that activity Aug 16 17:47:18 only admin Aug 16 17:47:24 devD: ... what? Aug 16 17:48:00 he wants to run his app with elevated privileges, as i understood Aug 16 17:48:11 jonc I think that the problem was in printing the text using Toast Aug 16 17:48:14 evanc , i want that the app i am building can be stopped by only admin with the use of device admin feature ? Aug 16 17:48:24 icbytes: I think he's the same guy that's been in here all week that's trying to make an app which blocks access to Settings Aug 16 17:48:32 lol Aug 16 17:48:32 because the download operation proceed without any errors Aug 16 17:48:36 hi guys, I'm searching for a listener that can detect if the user is using a fast-scrollbar. Do you have any ideas? Aug 16 17:48:38 AbsListView.OnScrollListener is not an option , that's a listener for scrolling on the screen, not on the scrollbar Aug 16 17:48:41 i need that listener to deactivate pull-to-refresh (https://github.com/chrisbanes/ActionBar-PullToRefresh) when the user is scrolling on the scrollbar and re-activate it when the user stops scrolling on the scrollbar Aug 16 17:48:44 right, two days ago, there was such a guy Aug 16 17:48:59 the exception is raised in the done() method of the async task Aug 16 17:49:04 that I've not implemented Aug 16 17:49:35 devD: I don't know what you're saying, but go to d.android.com and look at the device policy APIs and see if there's something there for you. I don't think there is, because it sounds like you're trying to do something that shouldn't be done. Aug 16 17:49:50 jewels: paste the stack trace Aug 16 17:49:54 evanc i have built that app which i was talking about yester day but that way is hacky and i got it after building it . I can stop user from deleting it , but i want to make a proper standard app Aug 16 17:50:25 so i switched to Device adin feature Aug 16 17:50:29 admin Aug 16 17:50:32 afaik android os does not have the possibility to have special privileged users, and even multi user profiles by default Aug 16 17:51:54 there is the stack trace: http://ideone.com/E3KpjS Aug 16 17:52:41 devD: I think you need to spend some time poking at the device admin APIs, then Aug 16 17:52:50 devD: also, why do you use a different nick every day? Aug 16 17:53:03 if he is the one .... Aug 16 17:53:07 I'm having a really odd issue with my android app. I'm trying to draw a bitmap on canvas, and the position of the bitmap is determined by how much the device is tilted. On my Samsung Galaxy S II running Android 4.2.2 the sensor values update as they should, but when I try running the app on Sony Xperia Z (Sony's Android 4.1.2) the values update every 4-5 seconds. Aug 16 17:53:10 just like that Aug 16 17:55:09 evanc can you just simply tell me is there a way i can check if i am in the stop Activity page or in the Installed app list in android 4.2 version ? because in 4.2 the package name is same for all Aug 16 17:55:23 devD: I hope not Aug 16 17:55:41 I don't know if there is a way, but for the sake of your app not working, I hope not Aug 16 17:56:08 jonc, http://ideone.com/E3KpjS Aug 16 17:56:30 evanc , my app is working just great , but i get it it is a wrong way and i will not make anything which is not a standard way Aug 16 17:56:42 and will not use it anyway Aug 16 17:56:56 but it really works great with my message security Aug 16 17:57:42 k Aug 16 18:00:35 this is interesting http://www.google.com/trends/explore?q=gradle+build#q=gradle%20build%2C%20%20maven%20build&cmpt=q Aug 16 18:00:58 seems like gradle was just puttering until 2013 or so, probably when google announced it was going to use it for android Aug 16 18:01:53 so i have to wonder this, between java and gradle, thats 2 technologies that got a boost when probably they shouldn't because of android :( Aug 16 18:02:09 k Aug 16 18:02:16 g00s: you are completely obsessed with this. why don't you talk about the apps you're writing instead. Aug 16 18:02:44 g00s: even if that's the case, it happened. Deal with it. Move on. Aug 16 18:03:17 huh? Aug 16 18:03:23 android got a boost because of java Aug 16 18:03:25 not vice versa Aug 16 18:03:34 pfn: dude, don't bring facts into this Aug 16 18:03:52 http://www.google.com/trends/explore?q=java Aug 16 18:04:05 gradle strikes a nice middle ground between ant and maven, while keeping a simple scripting language Aug 16 18:04:11 what other choice do you see, really? Aug 16 18:04:26 if you don't like google's choices, don't use them Aug 16 18:04:31 I offer you alternatives like every hour Aug 16 18:04:33 but you don't bite Aug 16 18:04:36 guys Aug 16 18:04:41 pfn , i'm not complaining, chill Aug 16 18:04:42 We noticed Aug 16 18:04:45 :p Aug 16 18:04:51 SimonVT++ Aug 16 18:05:01 guys every device has a own android code ? Aug 16 18:05:12 bilgisayarci: ... what? Aug 16 18:05:16 I mean Aug 16 18:05:40 tablets and phones different on android ? Aug 16 18:05:44 sorry for my english Aug 16 18:05:51 I target the edit source code for my work Aug 16 18:05:52 ? Aug 16 18:06:09 is it easy to install new my android Aug 16 18:06:55 I'm with g00s. Calling gradle "a simple scripting language" is an insult to all the perl/python/rubys out there. Aug 16 18:07:17 gradle/groovy, same thing Aug 16 18:07:25 groovy is a simple scripting language if you're coming from java Aug 16 18:07:36 lol Aug 16 18:07:55 today on gross overgeneralizations... Aug 16 18:09:12 hrm, I wish there were a simple SpannableString joiner that joined Spannables Aug 16 18:09:20 I suspect windows is the primary reason. There's so much things in the *ix world that's easy to do by escaping to a shell that any half decent scripting language should suffice. On Windows, not so much. Aug 16 18:09:40 oh, there is a concat Aug 16 18:10:37 kjeldahl, not really Aug 16 18:10:52 kjeldahl, the goal is to stay in the java ecosystem as much as possible Aug 16 18:11:40 That's not an argument against what I said, more like supporting it. Aug 16 18:12:00 does Android Studio or IntelliJ (or lint?) have a way of quickly finding all static non-final variables in a project? Aug 16 18:13:03 kevinb hmm, wonder if checkstyle has that Aug 16 18:13:19 or maybe pmd Aug 16 18:13:54 kevinb: intellij has a "structural search" thingy, that might be able to do that Aug 16 18:14:00 well, if there is a pmd plugin for gradle, it wont work with the android plugin :| Aug 16 18:14:13 oh, wait. that might actually only be in the ultimate edition, I don't recall for sure. Aug 16 18:15:32 kevinb maybe try http://www.gradle.org/docs/current/userguide/pmd_plugin.html Aug 16 18:15:39 you'll probably have to hack Aug 16 18:15:54 interesting Aug 16 18:16:08 use the android.libraryVariants.all -> stuff Aug 16 18:16:13 http://source.android.com/source/building-kernels.html Aug 16 18:16:14 or projectVariant, whatever Aug 16 18:16:16 my device is casper Aug 16 18:16:23 what will I do Aug 16 18:16:26 i'm fine just running it manually as i use and want to continue using non-final statics. i just want to audit some stuff to track down a bug and i realized i have some non-finals that should be final as well that i might as well fix Aug 16 18:18:35 final destination Aug 16 18:20:16 mikedg you have arrived! Aug 16 18:20:38 g00s ive always been here Aug 16 18:22:16 kevinb: regex should find those pretty easily Aug 16 18:23:14 "static [A-Z]" should be enough Aug 16 18:23:32 With a bonus feature of showing static methods as well Aug 16 18:23:34 yeah i was just doing "ag static src | grep -v final" but it picks up methods as well Aug 16 18:23:43 SimonVT: silence Aug 16 18:23:55 "static [A-Z].*? =" Aug 16 18:24:00 You cannot silence the truth Aug 16 18:24:04 er Aug 16 18:24:06 ;$ Aug 16 18:24:07 i forgot to include the name Aug 16 18:24:08 but you get it Aug 16 18:24:23 What if it's not initialized? Aug 16 18:24:29 SimonVT: go home, you're drunk Aug 16 18:24:30 Just do one that checks if it ends in ; Aug 16 18:24:42 what if it wraps to two lines? Aug 16 18:24:44 Crap, two lines Aug 16 18:24:48 \o/ Aug 16 18:24:49 JakeWharton: silence Aug 16 18:24:52 JakeWharton: but what about private final static FOO = "Jake"; ???? OMG Aug 16 18:25:16 checkstyle would catch the violation of JSL recommended modifier order Aug 16 18:25:21 *JLS Aug 16 18:25:32 Also, no type Aug 16 18:26:07 SimonVT: I don't believe in typing Aug 16 18:26:15 I'm type-blind Aug 16 18:26:38 you could just have a butterfly land on each offending statement Aug 16 18:35:44 how to launch an app from the command line... am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER packagename Aug 16 18:35:49 I thought might work, but no dice Aug 16 18:35:59 i do not know the activity name i would want to launch Aug 16 18:36:26 am start packageName/Activity Aug 16 18:36:29 oh Aug 16 18:36:38 i only know the package name Aug 16 18:36:43 why don't you know? if you know the package name, you should be able to deduce activity Aug 16 18:37:07 because i have metadata for an apk and only the package name is in that metadata Aug 16 18:37:47 you can't aapt d badging on it? Aug 16 18:37:55 or whatever the right dump command is Aug 16 18:38:10 Is anyone here familiar with renderscript?! Aug 16 18:38:52 parsing dumpsys is the hting i would least like to do Aug 16 18:39:07 Hi. Do people use gesture events Aug 16 18:40:51 mikedg, so where are you executing from? Aug 16 18:46:22 so I've got a webview with an html video element. it's a youtube video, and really i just want to launch the youtube app when it's played, anyone have aby bright ideas on how to capture the click on the HTML5 element? Aug 16 18:51:31 wow, the manning meap policy is awesome. if a book gets cancelled you can ask for a refund, or an exchange of ** 2 ** other books Aug 16 18:51:57 * g00s gets Clojure in Action 2e and The Joy of Clojure 2e Aug 16 18:53:09 nice Aug 16 18:53:13 what was cancelled? Aug 16 18:53:56 appcelerator in action Aug 16 18:54:02 dunno what the hell i was thinking Aug 16 18:54:08 so it all worked out for good \o/ Aug 16 18:54:24 lol Aug 16 18:58:26 oh god, TextUtils.join doesn't honor spannables Aug 16 18:59:27 Hi. Does anyone have a Galaxy Note 2 Aug 16 18:59:36 why bother returning a CharSequence... Aug 16 19:00:46 anyone know if you can bind one key to perform Refresh + Clean + Run in Eclipse? Aug 16 19:01:54 you read books? Aug 16 19:01:56 heh Aug 16 19:02:02 how quaint Aug 16 19:11:28 why quant :P what amount of scrapping together crap from the web could result in SICP ? Aug 16 19:11:56 * p_l likes his 1GBP SICP :3 Aug 16 19:12:04 d.android.com would could never be passed as a book , editors would require rewrite Aug 16 19:12:58 Have you read your SICP today? Aug 16 19:13:17 * p_l looks around for the black snake Aug 16 19:17:00 g00s, sure, basics like sicp never change Aug 16 19:17:08 books like gradle, android, etc. change on a daily basis Aug 16 19:17:31 yeah - i dont have any android books atm Aug 16 19:17:55 but i did get a gradle book, the docs on the web basically said this manual is unfinished. Aug 16 19:18:17 I have one of the android books Aug 16 19:18:38 well, I have the ebooks I swiped using the code card in library's paper copy :> Aug 16 19:19:14 oy, I hate incremental dex, it's so buggy Aug 16 19:24:52 we should make lispdroid, clearly Aug 16 19:25:07 alankila: there's mocl Aug 16 19:25:21 https://wukix.com/mocl Aug 16 19:27:32 looking at the manning catalog is like looking at epithets of java technology graveyard Aug 16 19:27:34 it's predictably awful Aug 16 19:28:34 *epitaphs Aug 16 19:28:38 g00s: the commonsware book is good bc he keeps updating it for android changes Aug 16 19:28:56 louielouie that was the first android book i had , actually. Aug 16 19:29:03 mark and i argued about a lot of stuff Aug 16 19:29:06 haha Aug 16 19:29:16 like the dumbass headlines for his chapters Aug 16 19:29:21 is there any hope to run some nice garbage-collected managed language on top of llvm Aug 16 19:29:52 just wondering if there are options that could be layered on top of renderscript to abuse that :-p Aug 16 19:30:12 g00s: hehe, ok but hopefully you liked the content of the chapters Aug 16 19:30:12 alankila i mentioned above; google adopting java and gradle. i only brought that up to consider, how the landscape of computing could have been changed (for the better) had the platform adopted more forward thinking stuff Aug 16 19:30:49 g00s, the only thing more forward thinking is... nothing Aug 16 19:30:54 well it's not objC and not C++ (nor C), I count both facts as fairly major victories. Aug 16 19:31:00 android and java could be mutually reinforcing wrt popularity, but its nice to consider … what if they chose something like racket Aug 16 19:31:11 chosen what? Aug 16 19:31:15 that would have doomed android as a platform Aug 16 19:31:30 e.g. iOS leveraged the popularity of objc from OSX developers Aug 16 19:31:36 android leveraged the massive java community Aug 16 19:31:46 and as awful as java is to work with, I kind of like it. Besides sucking it's still reliable and pretty simple. Could have done a lot worse. Aug 16 19:31:50 if you don't think it's a massive community, you are sorely mistaken Aug 16 19:31:58 hardly anyone knew objective c before iOS native was allowed. it was very niche Aug 16 19:32:09 obviously, obj-c went through the roof afterwards Aug 16 19:32:20 g00s: but those that did know and were developing where apple's primary developer base Aug 16 19:32:48 anyhow, want to make clear i'm not complaining. just pondering Aug 16 19:32:49 so there are reasons, poor as they may be, to choose objC. Aug 16 19:33:17 g00s, no, iOS was a success because it leveraged existing objc knowhow Aug 16 19:33:21 i like objective c , because i like the message passing mechanism Aug 16 19:33:23 from the large OSX developer community Aug 16 19:33:36 the OSX developer community was not large Aug 16 19:33:39 :| Aug 16 19:33:44 if it did not leverage the OSX developer community, it would have fallen flat Aug 16 19:33:53 * alankila thinks objC message passing is just clunky way to do method calls. Aug 16 19:33:55 it is large, relatively speaking Aug 16 19:34:02 larger than gnome developers Aug 16 19:34:13 its grown hugely in the last 5 years or so, even with the Mac App Store Aug 16 19:34:15 not as large as windows developers, certainly Aug 16 19:34:20 "even with" ? Aug 16 19:34:36 parameters are named, but their order is fixed! there are no default values for arguments! the first one is special, leading to some *very* weird method names! Aug 16 19:34:42 I think the whole thing is a miserable failure Aug 16 19:35:14 s/even with/also because Aug 16 19:35:23 g00s: good points. and while the mac dev community was/is not huge, we were the most passionate about making apple products succeed. Aug 16 19:35:25 g00s: everyone serious about developing for OSX knew ObjC, afaik Aug 16 19:35:39 alankila: special how? Aug 16 19:36:12 anyone have experience capturing HDMI from android devices? Aug 16 19:36:33 kakazza: well, it has no name -- the operation is kind of the name. I don't like that. I have grown up in a different kind of world and like to think there's a method and it has parameters, not that there is no such thing as method name except kind of there is method name somehow encoded there Aug 16 19:36:39 Hi Guys, I have app where user can upload video and we can then review it and give him feedback. So far I found youtube direct and dropbox as easiest solutions. Any other ideas? Aug 16 19:36:45 tnzr: i've done it using a blackmagic design hdmi to thunderbolt thing Aug 16 19:36:53 Example? Aug 16 19:36:58 louielouie i agree; many apple devs have a fanatical attention to detail. the best apple apps are pretty amazing. of course, there is still plenty of crap Aug 16 19:37:01 kevinb: were you able to get 1080p@60fps? Aug 16 19:37:24 kevinb: err.. as I understand it, that's what android outputs HDMI at, was that a problem for you? Aug 16 19:37:30 kakazza: well, a simple example for 'str.split("\n")' would be something like [str componentsSeparatedByString:@"\n"] Aug 16 19:37:51 objc message passing is stupid ugly Aug 16 19:37:56 each device seems to output a different format, which is kind of annoying. but i have been able to get 60fps Aug 16 19:38:01 it's kind of describing what is happening in the first parameter name because it has dual function as being the argument and also description for the operation being performed Aug 16 19:38:32 I didn't like that one bit. All messages have really weird names to my taste. Aug 16 19:38:46 or really oddly named parameters. Whatever way you want to see it. Aug 16 19:38:49 alankila p_l i enjoyed this from the other day http://eventuallyconsistent.net/2013/08/12/messaging-as-a-programming-model-part-1/ Aug 16 19:39:10 the first time i heard of ROC and netkernal, i was like "wut" Aug 16 19:39:12 kevinb: which black magic design model did you use? Aug 16 19:39:26 kevinb: oh and what devices were you able to get 60fps on? :) Aug 16 19:40:35 imho the best style is in python which allows named paramteres, arbitrary order, and default values for those parameters which weren't passed a value Aug 16 19:40:50 is it message passing or method call? I'm not sure there's a difference. Aug 16 19:40:56 i remember testing for sure against a galaxy nexus, sgs3, nexus 10 and nexus 4 . i think 60fps from all of them, but 720p from the devices with that native resolution. i was always doing it as a mirrored display, not that second display stuff Aug 16 19:41:18 blackmagic intensity extreme Aug 16 19:41:18 alankila smalltalk was message passing, there is a difference Aug 16 19:41:34 g00s: and what is it? The fact that if you send an operation the object doesn't handle, it does nothing? Aug 16 19:41:36 kevinb: ok cool, thanks! Aug 16 19:41:40 its one of the reasons why alan kay would not call java oo Aug 16 19:41:51 alankila the message could be routed Aug 16 19:41:55 eh. Aug 16 19:42:13 if you didn't handle the message, you route it to a somebody else Aug 16 19:42:23 g00s: what bus do you like to use for events/messages? Aug 16 19:42:25 sounds like what was conceptualized as inheritance? Aug 16 19:42:42 except its easy with composition Aug 16 19:42:49 inheritance is often overused Aug 16 19:43:09 I agree, but inheritance makes some sense as a static (or declarative) model for what something IS. Aug 16 19:43:22 inheritance made sense in what Simula was designed for Aug 16 19:44:03 the rest? Interfaces, plus controlled (not crazy) multiple inheritance (or other forms of composition) Aug 16 19:44:38 this article seems to have an awful notion for what OOP is. I argue that's not what OOP is. If you use classes as data containers and store the operations elsewhere, you aren't building behavior where it needs to be. Aug 16 19:44:49 louielouie hmm, i'm actually reading a book on pub / sub now. doing some research. thinking about bidirectional pub/sub, etc. i was using guava-eventbus, if you like that try otto. i've been experimenting with getting an 'inproc' version of mqtt working as my android app messaging bus; which allows event to percolate out of process or device, as well as event income from off device Aug 16 19:45:17 I know that "enterprise java" or whatever has a lot of really bad habits but that's not a solid grounds for the argument that OOP has somehow failed. But I'll read on. Aug 16 19:45:52 oh wait I should have read to the very next paragraph. *shame* Aug 16 19:47:20 interesting. i've been using Square's Otto to good success as a lightweight event bus. Aug 16 19:47:35 I have an EditText with formatted HTML content, regular text and superscript text. when the user places the cursor on the superscript the cursor is still full size cursor, can i control that? Aug 16 19:47:39 louielouie http://www.amazon.com/Publish-Subscribe-Systems-Communications-Distributed/dp/1119951542 Aug 16 19:47:44 nice way to communicate between fragments esp w/o doing the pass to activity dance Aug 16 19:47:57 its kinda high level, but gives an idea of what advances people are working on Aug 16 19:48:16 does AVD's support 480 dpi screens? ive tried making a galaxy s4, and an htc one.. both are stuck at 320dpi and causes the text to be unreadable Aug 16 19:49:46 alankila, and if you put the operations inside the classes -- they don't play nicely with generics/covariance Aug 16 19:50:47 rjp421: isn't the dpi limited by what your monitor can support? Aug 16 19:51:30 louielouie, is that how it works? i figured scale to actuasl size would do just that Aug 16 19:51:31 Peaker: perhaps in those cases some inheritance is in order. A generic class should of course only have generic operations that are actually supportable at that abstraction level Aug 16 19:52:10 or that's what I think. If your code tests parameter/argument types against specific classes, it's probably bad code. Aug 16 19:52:36 though some people like what are called tagging interfaces, though I'm not thrilled about them Aug 16 19:52:40 well you can set the size to get it to be the exact size of the device, but you still can't display more pixels than your physical monitor has Aug 16 19:52:46 alankila, consider: List having a "bool contains(T x)" method Aug 16 19:53:07 Peaker: so? Aug 16 19:53:10 Hey guys, I'm trying to turn a library into a jar in android studio. Any ideas? Aug 16 19:53:26 alankila, Should List be a subtype of List ? Aug 16 19:53:36 alankila, maybe an even better example would be the "add" method Aug 16 19:54:19 Peaker: so we're in an argument about covariance/contravariance? I do not really follow what you are getting into. In any case it's been generally decided that List is not subtype of List even if N and M had some subtype relationship afaik Aug 16 19:54:42 alankila, and the reason is because of the methods inside List Aug 16 19:54:58 I really don't think this argument has anything to do with what I was getting into above. Aug 16 19:54:58 alankila, non-OOP languages that put the methods *outside* List, don't have this problem and can make the covariance work correctly Aug 16 19:55:23 i.e: putting methods inside classes doesn't play well with generics, and this is one reason that contemporary OOP as in Java is crap Aug 16 19:55:32 I've not noticed the problem myself. Aug 16 19:55:45 Though Java gave up on correct covariance anyway, which is even sillier Aug 16 19:56:57 my point is, OOP's whole claim to fame imho is avoidance of spooky action at a distance. That is, put code and data that the code works together. That's all I tried to say. Aug 16 19:57:02 anyone see anything wrong with this way of retrieving plurals? http://pastebin.com/EXm847K9 Aug 16 19:57:11 code works +with together too Aug 16 19:57:39 cd .. Aug 16 19:57:43 just got what was wrong, nvm Aug 16 19:57:45 *face palm Aug 16 19:57:55 f2prateek: :) Aug 16 19:59:08 didn't realise it's an overloaded method /facepalm Aug 16 19:59:13 alankila, I think everyone agrees they should be put together. FP puts them in the same module, and OOP puts them in the same class (which causes the above problems) Aug 16 20:00:04 I think it's problem only for some compile-time checked OO variants. For instance there's a whole bunch of scripting languages that have no notion of generics because they don't need them. Aug 16 20:00:18 p_l manning still has 'Jess in Action' :P Aug 16 20:00:41 g00s: you'd be surprised ... Aug 16 20:00:50 man if the licensing was better Aug 16 20:02:28 and in case the compiler is too stupid, one always has the objection of inserting relevant runtime casts, so the problem is probably more to do with people who spend much more effort with their type systems. Aug 16 20:02:58 I almost like java better before it had generics because from my point of view it seemed to largely move an occasional (Foo) into at a different place, though in a few cases it catches an actual bug. Aug 16 20:03:04 So I had to use the compile 'com.android.support:support-v4:18.0.0' to use the support library with gradle, and now Android Studio is being ugly and giving me "cannot resolve method X" for any function that is in the support library. It compiles and runs fine, but 1) It looks horrifying and I see 1000 Aug 16 20:03:17 * alankila has almost no interest in type systems and their intricacies in truth Aug 16 20:03:19 1000's of errors, and 2) No intellisense Aug 16 20:03:38 alankila, if the type system you've been exposed to is Java's, I can't blame you :) Aug 16 20:03:58 Java has a terrible type system (both in terms of required effort, and in terms of safety it gives) Aug 16 20:04:07 Better type systems give you much more safety for much less effort Aug 16 20:04:10 alankila: Peaker: What is wrong with Java's type systems Aug 16 20:04:23 Mostly generics I guess. Everyone loves to hate them. Aug 16 20:04:37 a few people complain about lack of multiple inheritance too Aug 16 20:04:43 yiati, nullability everywhere, requires far too many type annotations, does covariance incorrectly, doesn't support type-classes or anything similar, ... Aug 16 20:04:46 then there's the int vs Integer thing. Aug 16 20:05:02 thats going away in java 9 Aug 16 20:05:12 or maybe 8? thought 9 though Aug 16 20:05:13 g00s, Int vs Integer? Aug 16 20:05:15 Are they getting rid of int? Aug 16 20:05:20 or Integer? Aug 16 20:05:20 yeah, no more primitives Aug 16 20:05:25 ????? Aug 16 20:05:31 trooollll Aug 16 20:05:39 or rather, no longer a difference with primitives? Aug 16 20:05:55 no way Aug 16 20:05:58 I agree that non-nullability would be nice if it could be indicated somehow. That is a common source of runtime errors. Aug 16 20:06:25 oh, I didn't mention the far more important: lack of sum types, lack of pattern matching Aug 16 20:06:47 The @Nullable and @Nonnull attributes are what are commonly used for that. Most IDEs have support for check nullness errors based on those attributes Aug 16 20:06:58 or, at least IDEA/AS does Aug 16 20:06:59 Hi Guys, I have app where user can upload video and we can then review it and give him feedback. So far I found two solutions: User uploads video on his youtube account unlisted or upload video to central dropbox account. Any other ideas? Aug 16 20:07:05 yiati oh, Java 10 Aug 16 20:07:16 g00s: Do you have a link? Aug 16 20:07:18 JesusFreke, Is that a comprehensive workaround? Does it guarantee no null dereferences at runtime? Aug 16 20:07:26 JesusFreke: could be worth a try, then. It doesn't really matter to me if the compiler doesn't enforce them as long as somebody checks the shit and tells me about bugs Aug 16 20:07:48 This could be considered a type system extension at the IDE level, but I suspect it is hard to make it comprehensive at the IDE level Aug 16 20:08:08 alankila: yeah, it's basically a lint type check that gives you a warning. I've used it quite a bit in some of the new smali codebase, and it's saved my butt several times. Aug 16 20:08:19 JesusFreke, are Java libraries all generally annotated this way? Aug 16 20:08:20 yiati yeah, i'll have to find it. Oracle said it themselves, they are changing the type system in Java 10 Aug 16 20:08:25 Peaker: nope Aug 16 20:08:32 so its not rumor , but Java 10 is … out there Aug 16 20:08:41 JesusFreke, then it's still a big problem with Java's type system... Aug 16 20:08:57 Peaker: I'm not arguing that it's not. I'm simply offering a work-around :) Aug 16 20:09:05 JesusFreke, ah, ok, sorry :) Aug 16 20:09:19 anyway java is definitely in need of fixing pretty much all throughout. The graveyard of old classes and bad ideas should be swept away, and I guess real generics would be pretty high up on my wishlist just because these current generics are so awkward, a whole lot of things you'd want to do naturally just won't work with them Aug 16 20:09:54 yiati slide 41 http://www.slideshare.net/JAX_London/keynote-to-java-se-8-and-beyond-simon-ritter Aug 16 20:10:01 in any case even if someone could fix up all the pain points it wouldn't mean we could use any of that shit in android until kingdom come Aug 16 20:10:11 alankila, nullability is probably more important than that -- and sum types/pattern matching are extremely important Aug 16 20:10:21 maybe you can use Scala in Android dev though? Aug 16 20:10:28 the current experience so far indicates google is in no rush to update dalvik and its classpath Aug 16 20:10:46 g00s: Well shut the front door Aug 16 20:11:07 Java 10 was like 2016 :D Aug 16 20:11:11 17 ? Aug 16 20:11:12 Peaker: we all have different notions for what is important, I suppose. Aug 16 20:11:13 haha Aug 16 20:12:24 alankila, well, nullability is a source of ~50% of production problems with C#. I assume Java is similar Aug 16 20:13:04 I don't personally much run into the issue but that's mostly because I write code in particular way to avoid it Aug 16 20:13:07 when Java was designed, nullability-everywhere being wrong was well known in academic circles. It's unfortunate that we have the academic bubble, and industry bubble, and the latter tries to avoid learning form the former at all costs Aug 16 20:14:31 well the latter has real code to keep running, and generally it takes 10 years for even a good idea to gain any level of mainstream acceptance. Aug 16 20:15:37 that being said design-time mistakes are awkward, and clearly nullability wasn't such a great idea Aug 16 20:16:11 they've proposed foolish ideas like the .? method call that allows the reference to be null and not complain rather than just make it so that your references wouldn't be null so often, or if they are, then the compiler could insert warning about it Aug 16 20:18:03 I'm sure the .? thing has a lot of supporters though. I shudder to think how universally that would become used in outsourced code. Aug 16 20:22:42 alankila, it's basically an ad-hoc "Maybe monad" for attribute getting. It might be better than nothing (it is used explicitly) Aug 16 20:23:24 * pfn says something about scala.... Aug 16 20:23:27 * pfn wanders off again Aug 16 20:25:47 are there any plans to support java 7 even in android? Aug 16 20:26:38 the real problem I have with .? is that it generally pushes a failure to a later time. It's another little chipping away of knowing what the values are in your program and then you get null in the output and have to wonder why Aug 16 20:27:00 I do not expect java7 support in Android before dalvik 64K function limitation is removed, which means never Aug 16 20:27:06 programmers in my experience are always biased to using solutions that fail at some later time than right now Aug 16 20:28:18 I prefer my failures early, generally speaking. Aug 16 20:31:16 bubbleguuum hah, that damn thing Aug 16 20:32:23 g00s, yes got rid of it making google-play-service loose some fat Aug 16 20:33:04 bubbleguuum i haven't hit that yet, my app is like 382K i don't even think i use any libs except the support library Aug 16 20:33:16 you're lucky Aug 16 20:33:26 i wonder if its possible for the build system to be smart and split stuff up somehow ? Aug 16 20:33:50 this is difficult because jar apres predexed for speed Aug 16 20:33:57 *jar are Aug 16 20:34:27 the solution would be for Google not to distrubute enormous jars containing 6K funcs each Aug 16 20:34:44 a jar that could reduce to 300 funcs used... Aug 16 20:34:48 well, this is going to be like the "who needs more than 640K of RAM" ? Aug 16 20:34:55 exactly =) Aug 16 20:34:57 something needs to happen for sure Aug 16 20:35:40 I think there are quite a lot of popular apps hitting that limit Aug 16 20:36:47 which apps actually have to work around it? i know facebook does but they have some code generation monster or something Aug 16 20:37:32 you could bring in one library like guava to ruin your day Aug 16 20:37:37 i use guava :) Aug 16 20:38:03 guava + support-v13 + a bunch of android library projects + a big main project. i use proguard on release builds but don't on debug builds and never had an issue Aug 16 20:38:10 in fact, this 64K limit is a problem for development waaaayyy before being a problem for a production build which is proguarded with proguard removing all unused methods Aug 16 20:38:24 kevinb do you know how close you are to the limit ? Aug 16 20:38:32 kevinb: I reached it very recently in debug Aug 16 20:38:40 you can use proguard for development as well. Just don't do all the obfuscation and stuff Aug 16 20:38:48 g00s: i don't. any easy way to find out? Aug 16 20:38:56 JakeWharton had a script Aug 16 20:39:03 bubbleguuum has a link i think Aug 16 20:39:04 JesusFreke: isn't it going ot be too slow ? Aug 16 20:39:19 gradle + proguard = life is too short Aug 16 20:39:34 JesusFreke: and this is pretty much with predexed libraries I guess Aug 16 20:39:37 louielouie: there are licensing issues with java 7, afaik Aug 16 20:39:47 *pretty much incompatible Aug 16 20:40:19 kevinb: https://gist.github.com/JakeWharton/6002797 Aug 16 20:41:06 JesusFreke, but proguard can cause issues with debugging Aug 16 20:41:15 or maybe that's only if you do anything more than "remove unused code" Aug 16 20:41:34 right - you don't want to obfuscate or anything like that Aug 16 20:41:37 it's a problem with obfuscation, but not without Aug 16 20:42:09 its not just obfuscation Aug 16 20:42:10 bubbleguuum: the usage is "dex-method-count classes.dex" ? Aug 16 20:42:29 if so i'm 31675 with guava and without proguard Aug 16 20:42:29 inlining of "only used once" methods prevents you from seeing locals in the debugger, etc Aug 16 20:42:33 kevinb: yes, these fuunction are to be included in a .bashrc or similar Aug 16 20:44:32 12728 after proguard. so i guess if i pull in another big library like guava i might need to start using proguard for debug builds Aug 16 20:44:41 kevinb: 58693 (after pruning google-play-service.jar and commons-lang, otherwise > 64K) Aug 16 20:44:52 bubbleguuum: ouch Aug 16 20:44:56 shit man, thats too close Aug 16 20:45:01 that's the debug build Aug 16 20:45:04 jesus Aug 16 20:45:10 what's that code doing? Aug 16 20:45:16 the release builds are counts divided by 2 Aug 16 20:45:20 A lot of method calling, presumably :) Aug 16 20:45:39 that code runs an app that is in the top25 of its category =) Aug 16 20:45:50 nice bubbleguuum Aug 16 20:46:55 bubbleguuum: care to brag which one? :) Aug 16 20:49:12 https://play.google.com/store/apps/details?id=com.bubblesoft.android.bubbleupnp Aug 16 20:49:46 oh, I actually looked into that one :) Aug 16 20:49:49 which remembers me the screenshot are not up to date.. Aug 16 20:49:55 p_l: i see. and the oracle/google fights probably don't help. Aug 16 20:50:42 So I use the "compile 'com.android.support:support-v4:18.0.0'" in my build.gradle in my project, and because of this Android Studio is showing "Cannot resolve method X" all over the place for support library methods. The app builds and runs just fine. Does anyone know a fix for this? Aug 16 20:51:11 yiati: look if there's some place to refresh the project Aug 16 20:51:34 basically, IntelliJ is confused because it doesn't have support lib in its own classpath, so it can't resolve it Aug 16 20:51:45 once it goes into compile phase, it's taken care of by Gradle Aug 16 20:51:47 p_l: There is a "Rebuild Project" which I have run. I have also restarted AS Aug 16 20:52:11 p_l: Neither of those things that I did worked Aug 16 20:52:21 in normal intellij gradle plugin, it was "synchronize project" or something like that Aug 16 20:53:07 is there any rom similar to cyanogenmod, where you can debug any apk files? it seems cyanogenmod in emulator fails to mount sd card which is a problem for me Aug 16 20:53:16 p_l: There is in AS as well, but that doesn't do anything :P Aug 16 20:53:23 klue: any rooted phone will do, afaik Aug 16 20:53:43 There's a button at the top to sync with the gradle file Aug 16 20:53:53 Next to the other android specific buttons Aug 16 20:54:27 p_l: as long as I have a rooted android device, I can debug any apk application? Aug 16 20:57:36 can anyone with a reddit account up-vote this > http://www.reddit.com/r/Android/comments/1khlgm/i_was_playing_around_with_the_gpu_overdraw_tool/cbp8ddo Aug 16 20:58:40 Napalm|afk: you work on the bbc app? Aug 16 20:58:47 SimonVT: I have hit the Sync Gradle files button as well. Nothing :P Aug 16 20:58:48 perhaps Aug 16 20:58:58 upvoted Aug 16 20:59:11 cheers Aug 16 20:59:53 yiati my experience with gradle has been fun - but not from within the IDE Aug 16 20:59:56 p_l: tried adb jdwp and I didn't see the pid of the process I want to debug Aug 16 21:00:32 Trying to center all content in a size-limited layout that is programmatically generated, but none of the LayoutParams() gravity functions want to work. I have 4 objects per row generated, and they are each 1/4th the screen width. They contain an ImageView that is, by default, 50dpx50dp. And under that is a TextView that has a maxwidth of the parent size (works). Centerring with Aug 16 21:00:32 TableLayout.LayoutParams() seems to give me SOME effectiveness, but I can't center the text, even when in a layout of it's own. Even gave the gravity handles to each subsequent parent one after the other, no results what-so ever. Aug 16 21:00:41 all the text is always left-aligned Aug 16 21:01:55 coloring the layouts shows that it's 1/4 the width of the screen, and that the content is left-aligned, when all of my code tells it to center Aug 16 21:08:55 hmm, how do I update layout params of a remoteviews? Aug 16 21:10:33 I don't think you can Aug 16 21:10:54 inflate a replacement which has the right layoutparams Aug 16 21:12:39 yeah... I'm using the platform notification remoteviews which has already been inflated Aug 16 21:12:52 I don't want to copy it Aug 16 21:13:00 (copy and repopulate it) Aug 16 21:13:07 I just want to manipulate the existing bigContentView Aug 16 21:13:09 kind of a bummer Aug 16 21:14:30 hello is there a public api for pull to refresh like gmail e g+ app? Aug 16 21:16:29 g00s: I am really starting to like Gradle. The Android plugin definitely has a ways to go, but it's nice. Agreed though, the IDE still has a lot of work left. Aug 16 21:16:54 i like that its pretty low barrier to entry to create a DSL that models the build domain Aug 16 21:16:56 hello Aug 16 21:17:04 how can I design my relative layouts so they adapt for landscape as well? Aug 16 21:17:05 under: you could try https://github.com/chrisbanes/ActionBar-PullToRefresh Aug 16 21:17:05 under: https://github.com/chrisbanes/ActionBar-PullToRefresh Aug 16 21:17:16 kevinb: jinx Aug 16 21:17:20 :P Aug 16 21:17:21 under: https://github.com/chrisbanes/Android-PullToRefresh Aug 16 21:17:32 how do I put a google map onto my activity and feed a location to it? Aug 16 21:18:36 yiati i would be interested in a blog / article about using plain intellij, android plugin, and gradle. even if its slightly hacky Aug 16 21:18:44 how do I put a google map onto my activity and feed a location to it? Aug 16 21:18:46 g00s: got a reddit account? Aug 16 21:18:49 i wasn't ready for AS Aug 16 21:18:54 Napalm no, i don't :( Aug 16 21:19:05 * p_l ponders creating a reddit account... Aug 16 21:19:20 kevin, louielouie, yiati : thanks. I alredy gave a look to that. If I want to use, do I need to download the library folder and create a jar to add at path of my project or what? I don't know how to include that lib Aug 16 21:19:21 g00s: Yeah I was just starting to become proficient with Eclipse :P. I am happy for Android Studio though Aug 16 21:19:26 need some more up-votes on this comment Aug 16 21:19:27 irc is my social media outlet :D Aug 16 21:20:16 i dont use reddit Aug 16 21:20:22 under: The library folder is an Android Library Project Aug 16 21:20:25 i just made an account to up-vote this Aug 16 21:20:26 heh Aug 16 21:20:30 i used to think, irc is just a stream of meaningless stuff that scrolls of the screen to be forgotten, but then i realized that describes almost all social media Aug 16 21:20:40 under: You can include it in your project as one. http://www.vogella.com/articles/AndroidLibraryProjects/article.html Aug 16 21:20:48 how do I put a google map onto my activity and feed a location to it? Aug 16 21:20:52 hrm, I can't use android.R.drawable in a notification RemoteViews? Aug 16 21:20:53 Napalm: edit the post and say something like "Hey guys, Napalm from the BBC dev team here. Thanks for your feedback, we've actually been working hard on a new update that will take care of this and a few other issues we've found. Checkout this screenshot to see the fix in action." Aug 16 21:20:59 I get an NPE Aug 16 21:21:06 MDTech-us_MAN: https://developers.google.com/maps/documentation/android/intro Aug 16 21:21:11 Napalm: reddit users love devs if you act a little bit talkative Aug 16 21:21:20 kevinb: its not my post Aug 16 21:21:38 hmm, or not Aug 16 21:22:24 something else is making it npe Aug 16 21:22:40 so, has anyone here used RxJava in their android app? seems more geared towards streams, maybe not async coordination which is what I usually struggle with (but have some luck taming with StateMachine) Aug 16 21:23:11 Hello, I like like to get into android Dev. Should I learn Java first? Aug 16 21:23:13 oh, action labels can't be null Aug 16 21:23:19 DeHalfaD ya Aug 16 21:23:29 DeHalfaD, completely Aug 16 21:23:38 Guess I'm on the right path then :P Aug 16 21:25:16 yiati, thanks Aug 16 21:25:46 hi, i have problem getting resolve to a path with no project.properties file for project, i get this error when i am trying to reference actionbarsherlock library to my project Aug 16 21:26:14 in that directory is project.properties, i don't know where is error :/ Aug 16 21:26:34 DeHalfaD: Don't go on the Java irc though, they are meanie heads Aug 16 21:27:30 DeHalfaD: not to be mean, but also don't expect people in here to teach you what "static" means or how List does, haha Aug 16 21:27:50 yiati too much java gets the best of everyone :) Aug 16 21:28:44 ^ Aug 16 21:28:50 ^ Aug 16 21:30:48 anyone else messing w/ the usb host api? I'm having a fight with doing a controltransfer read; doing a write is fine Aug 16 21:38:21 Facebook is eating my Billing intent Aug 16 21:38:29 Need filter. Not finding docs. Aug 16 21:40:06 I guess I should assume that private PGP keys generated by an android device are now problematic; am I missing something obvious? Aug 16 21:41:59 uh. Aug 16 21:42:03 what. Aug 16 21:43:04 it's about the random number vulnerability. Unsure whether the private keys use that as input Aug 16 21:43:34 yes - key generation definitely uses random numbers Aug 16 21:43:40 yes. Aug 16 21:43:52 not understanding the issue seems to be common around here Aug 16 21:44:14 mostly because the articles about it are crappily written and contain no useful information. Aug 16 21:44:58 Do I want an Intent Receiver? Aug 16 21:45:04 and then put a filter on that? Aug 16 21:45:13 [The original blog post is pretty informative; if someone has an app that's potentially affected. http://android-developers.blogspot.com.au/2013/08/some-securerandom-thoughts.html] Aug 16 21:45:36 yes Aug 16 21:45:56 if your PGP key generaion app fucks up PRNG initialization it's vulnerable Aug 16 21:46:00 if it doesn't… it's ok. Aug 16 21:46:53 it's vulnerable because it _doesn't_ change the PRNG provider; which is the recommended solution at this point... Aug 16 21:47:19 key generation may use random numbers but it might be doing it via openssl Aug 16 21:47:27 ah well. Aug 16 21:47:32 openssl is also broken if you don't initialize it properly Aug 16 21:47:36 which is _always_ the case Aug 16 21:47:37 until you know how it does it, you can't tell if it's vulnerable Aug 16 21:47:49 (read that article) Aug 16 21:48:44 but yeah, this issue has poped up before even on desktop JVMs Aug 16 21:48:53 hmh. Well shit. Aug 16 21:49:00 proving that JCA standard was less than ideal. Aug 16 21:50:42 what most people don't get is that bug isn't in android's random generator Aug 16 21:50:59 bug is in JCA implementation which chooses a non or badly initialized PRNG instead of using /dev/urandom Aug 16 21:51:22 which is a MAJOR difference and there is alot of misinformation and outright b*shit out there about that Aug 16 21:51:38 is the JCA impl part of harmony ? Aug 16 21:52:01 yeah, I think the underlying JCA on 4.x is still harmony Aug 16 21:52:04 not 100% sure though Aug 16 21:52:12 Yes, but in practice, who implements their own SecureRandom provider without a really good reason... Aug 16 21:52:23 Mavrik: you expect accurate reporting? Lolz. Aug 16 21:52:25 * SpeedEvil sighs. Aug 16 21:52:48 kbs, noone expects that Aug 16 21:53:25 checking that you got a good PRNG or seeding it yourself is a a thing someone who got bitten by JCA crap will do though :P Aug 16 21:53:53 SpeedEvil, I'm an idealist, what can I say? ČP Aug 16 21:54:44 * SpeedEvil notes the ssh bug Aug 16 21:55:11 same thing IIRC Aug 16 21:55:33 Similar at least - I havne't really gone into details. Aug 16 21:56:06 Poor initialisation is a common theme in most crypto fails Aug 16 21:56:07 as far as I can see, even TextSecure is using straight up JCA - https://github.com/WhisperSystems/TextSecure/blob/master/src/org/thoughtcrime/securesms/crypto/KeyUtil.java#L106 - so if Moxie got screwed too, I'm in good company ;-) Aug 16 21:56:09 yeah, if I reacall correctly they also used improperly seeded PRNG Aug 16 21:56:22 From salt failure to outright using zeros. Aug 16 21:57:05 I don't suppose I can access android.R.id.big_text any way... Aug 16 21:57:21 SpeedEvil, even though, a few weeks ago when I was just using OpenSSL in my app... Aug 16 21:57:32 the documentation for pretty much all major crypto libraries is downright terrible Aug 16 21:58:10 JCA, OpenSSL, GCrypt… they all fail to clearly show a use case of using their basic constructs in a way that you don't blow your foot off Aug 16 21:58:11 If you're actually doing something that requires proper security - get someone with a clue to do it. Aug 16 21:58:35 Or toss bruce Schineder (sp?) $10K to audit it Aug 16 21:58:43 SpeedEvil, and how does that help when docs aren't clear on which data structures are owned by which part of the lib and which are initialized by which call? Aug 16 21:59:14 encrpytion a byte array with AES256 shouldn't be a PhD-level effort -_- Aug 16 21:59:15 Someone with a clue in that case might be someone on the dev team of the library. Aug 16 22:00:22 SpeedEvil, yeah, that statement itself is the proof that API of those libs is bad Aug 16 22:00:52 e.g. check iOS implementation, that one is way cleaner and harder to get wrong Aug 16 22:01:03 I wonder whether the real problem is that it's BouncyCastle underneath everything. It's a well-intentioned codebase with smart folks; but not sufficient auditing I think. Aug 16 22:01:55 I've seen quite a bit of delta between the AOSP version, and what's upstream; and I bet some set of Google'rs are having a case of the ulcers trying to audit the code effectively Aug 16 22:04:02 it's a lot of work to audit Aug 16 22:04:24 yes indeed. Don't envy that task, especially within a high-profile project Aug 16 22:04:30 Hi guys, how do you Add TextViews programmatically to a XML Layout? My class: http://pastebin.com/Pf7xMbhP My XML: http://pastebin.com/rnUuFMp2 Aug 16 22:04:47 thanks in advance Aug 16 22:07:57 oh god, why is textview's ellipsize an enum?? Aug 16 22:08:07 seriously, avoid the use of enums everywhere to introduce it here :( Aug 16 22:09:46 i just need a simple dynamic textview, it will disply "True" or "False" thats it Aug 16 22:10:20 are all the devbyte videos listed on google+ android dev consolidated somewhere ? Aug 16 22:10:56 ideally they should be linked to from d.android.com i think Aug 16 22:11:06 maybe they are, and i missed ? Aug 16 22:12:02 g00s, youtube channel Aug 16 22:12:20 Mavrik thanks Aug 16 22:12:27 lemme try to find it >P Aug 16 22:12:49 g00s, http://www.youtube.com/playlist?list=PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0 Aug 16 22:13:18 this could also be useful: http://www.youtube.com/channel/UCVHFbqXqoYvEWM1Ddxl0QDg Aug 16 22:13:44 Mavrik thanks Aug 16 22:14:05 yeah, i think that d.android.com , when talking about animations, should reference there Aug 16 22:14:47 or whatever topic Aug 16 22:16:36 https://plus.google.com/111751695436781052143/posts/Me2Gb3scRzX Aug 16 22:16:37 :) Aug 16 22:19:42 pfn cool, what does the prev / next do ? Aug 16 22:20:05 go to previous and next channels Aug 16 22:20:08 in the notification Aug 16 22:20:46 neat :) Aug 16 22:21:14 so don't have to go back the client to check on updates Aug 16 22:22:27 time to build the widget Aug 16 22:24:48 well, add /whois first, then the widget Aug 16 22:26:06 *ping* canadiancow Aug 16 22:28:45 anyone know what the error INSTALL_FAILED_CONTAINER_ERROR means when I adb install? Aug 16 22:30:58 klue: well since the file container of an android application package is zip, I'd say the zip file is corrupt.. try renaming the apk to zip and opening it up in your favorite archive util and test it for issues Aug 16 22:31:00 birbeck, hi Aug 16 22:34:58 Napalm: it's not corrupt Aug 16 22:35:15 Napalm: took apk from one device, and trying to install it in another Aug 16 22:37:26 klue: search for INSTALL_FAILED_CONTAINER_ERROR in these two files and you will find the causes for that error Aug 16 22:37:34 https://android.googlesource.com/platform/frameworks/base/+/master/services/java/com/android/server/pm/PackageManagerService.java Aug 16 22:37:38 https://android.googlesource.com/platform/frameworks/base/+/master/core/jni/com_android_internal_content_NativeLibraryHelper.cpp Aug 16 22:39:02 looks like if you run 'adb logcat' you should some helpful hints to the issue Aug 16 22:39:04 JakeWharton: has something else taken over for your SwipeToDismissNOA project? Aug 16 22:39:08 klue: ^ Aug 16 22:39:14 codebutler: it's not my project Aug 16 22:39:18 it's Roman Nurik's Aug 16 22:39:23 Hi guys, how do you Add TextViews programmatically to a XML Layout? My class: http://pastebin.com/Pf7xMbhP My XML: http://pastebin.com/rnUuFMp2 , Thanks in advanced Aug 16 22:39:24 all i did was change some import statements Aug 16 22:39:37 JakeWharton: ah. there's a note saying not to use it in production... Aug 16 22:39:50 that's from him then Aug 16 22:40:12 are you using it in production? :) Aug 16 22:40:25 no Aug 16 22:40:36 we wrote out own from scratch Aug 16 22:40:44 ah, okay. Aug 16 22:40:45 androidnewb: add android:id="@+id/my_container" to your LinearLayout and then add findViewById(R.id.my_container).addView(textTest); after setContentView(); Aug 16 22:41:59 Napalm, ok i'll test that. thank you Aug 16 22:41:59 Napalm: thanks. fixed it by unmounting sdcard Aug 16 22:42:18 np x2 Aug 16 22:44:54 i'm in the idea 'New Module' dialog; trying to add a test module to my project. But under 'tested module: " it only says [none] in red, and won't let me select the main module. anyone know why this would be ? Aug 16 22:58:05 Hi everybody. I'm facing a problem I can't find googling. I'm using support.v7.appcompat library, with actionbar, a SearchView widget and using @style/Theme.AppCompat.Light. I've managed to show the widget, set the searchable configuration and else (hint is showing, for instance) but the background is not displaying properly, the 9 patch doesn't work and shows big, with the black borders. Does anyone Aug 16 22:58:06 know where could the problem reside? Aug 16 22:58:37 Which channel would I ask about the Android Chrome Browser in? Aug 16 22:59:55 #android Aug 16 23:01:09 I have a edittext in which i want to detect ENTER key and on detection, I want to call a function(View v) thats assigned to a button's onclick handler. How do I do this? Aug 16 23:04:45 attach an editor action listener Aug 16 23:04:49 look for the enter key Aug 16 23:05:12 pfn thx Aug 16 23:08:13 hello Aug 16 23:08:35 I made an AVD for target Google API17 Aug 16 23:09:08 when I ran my app on it, i get: "E/AndroidRuntime(1260): java.lang.RuntimeException: Unable to start activity ComponentInfo{us.mdtech.meterzup/us.mdtech.meterzup.MainActivity}: android.view.InflateException: Binary XML file line #112: Error inflating class com.google.android.maps.MapView" Aug 16 23:09:38 J_Caselles: if a nine-patch image is loaded; but shows its 1-pixel border (ie, the border thing that marks the stretchable area/padding/etc) that sounds awfully like an uncompiled nine-patch image is getting loaded. Not sure why that would happen in your case, but figure I'd throw that out there anyway... Aug 16 23:10:45 any ideas? Aug 16 23:22:11 @JakeWharton: i am struggling with addTextChangedListener.. if i use that, the button which spawns the handler which in turn tryies to read from the edittext crashes the app Aug 16 23:24:49 it seems proxydroid thinks my device is not rooted Aug 16 23:24:59 is there anyway I can run it manually as root? Aug 16 23:25:13 alright, since AS pissed me off so much yesterday i'm back to trying to get this to work :/ Aug 16 23:25:35 can't quite figure out why an exec task would fail in AS but be fine from the command line Aug 16 23:30:00 if i change the build.gradle in AS, do i have to do anything to sync the model with AS ? Aug 16 23:30:22 or does it assume since i changed the file, it needs to reconsider that (which i would expect) Aug 16 23:31:15 kbs: maybe I'm compiling wrong the library (I'm developing from command line, and adding librarypath in project.properties) Aug 16 23:32:02 also, I'm testing in CM10.1, btw Aug 16 23:33:44 J_Caselles: I understand 9-patches a little bit; but not enough about the rest of your situation to be useful - hopefully someone will wake up and offer better guidance ;) Aug 16 23:35:45 hehe, thanks anyway Aug 16 23:46:24 guys I have a library I'm using on standard java on desktop that works 100%. as soon as I try it on android 2.3 it fails, and on android 4.3 it gives null results, what could be going on? Aug 16 23:46:38 https://code.google.com/p/microsoft-translator-java-api/ this is the library Aug 16 23:55:17 any ideas? Aug 16 23:55:19 when I ran my app on it, i get: "E/AndroidRuntime(1260): java.lang.RuntimeException: Unable to start activity ComponentInfo{us.mdtech.meterzup/us.mdtech.meterzup.MainActivity}: android.view.InflateException: Binary XML file line #112: Error inflating class com.google.android.maps.MapView" Aug 16 23:55:22 I made an AVD for target Google API17 Aug 16 23:56:38 http://imgur.com/jacoj Aug 16 23:57:57 what info do you need? Aug 16 23:58:52 I don't need any. But if you're expecting anyone to help you, you need to at least provide that Aug 16 23:59:23 trying to use Google maps on a AVD with target Google APIs Aug 16 23:59:31 Android API 17 Aug 16 23:59:41 http://imgur.com/jacoj Aug 17 00:00:39 so WTF do you thing I need to give!? Aug 17 00:00:47 think* Aug 17 00:00:47 The stacktrace? Aug 17 00:01:18 SimonVT: dont be a troll Aug 17 00:01:22 please Aug 17 00:01:27 I'm not Aug 17 00:01:29 codingis hard enough Aug 17 00:01:33 lol Aug 17 00:01:38 You need to show people the stacktrace.. Aug 17 00:01:48 There's a reason it's in the topic Aug 17 00:01:56 from LogCat? Aug 17 00:02:00 its error inflating the Mapview, don't think stacktrace is needed Aug 17 00:02:08 so, is that library missing ? Aug 17 00:02:19 any help? http://www.reddit.com/r/java/comments/1kirlu/giving_an_url_that_redirected_is_a_url_with/ Aug 17 00:02:20 make an image without google apis ? Aug 17 00:02:29 ok Aug 17 00:02:32 forget to add play services to your app or something like that ? Aug 17 00:02:36 I tried Aug 17 00:03:03 i dont need to add anything according to my toutorial Aug 17 00:03:13 http://mobiforge.com/developing/story/using-google-maps-android Aug 17 00:03:56 did you remember Aug 17 00:04:02 yes Aug 17 00:04:15 did it as the very first step Aug 17 00:04:37 device or emu ? Aug 17 00:04:49 emu Aug 17 00:05:01 dont have a android phone lol Aug 17 00:05:21 and you are using an emu with 'Google Apis' image Aug 17 00:05:29 if so, i'm not sure then Aug 17 00:05:30 yes Aug 17 00:06:01 let me triple check, just in case Aug 17 00:06:37 i haven't used the google play services stuff yet Aug 17 00:07:06 i guess you would need to include that somehow in the project Aug 17 00:07:36 if you didn't poke the api, i guess you could get away with compiling OK but just have a runtime error on inflating the veiw Aug 17 00:08:02 I really wish intellij had a keybinding to move editor tabs from split-to-split Aug 17 00:08:40 SimonVT in AS, is there any way to see a list of your gradle tasks ? so i can click on one and fire it off ? Aug 17 00:08:57 like i would say $gradle task' from the command line Aug 17 00:09:33 pfn soon we're going to have to gang up on somebody for an api 18 x86 image :/ Aug 17 00:11:50 Anyone know *when* otf support was added? Aug 17 00:20:36 otf fonts? Aug 17 00:20:39 all AVDs are useless even x86 ;/ Aug 17 00:21:24 x86 image would be more useful with play services Aug 17 00:21:25 Tentatively, I want to say 1.6 Aug 17 00:22:20 for me its just a black screen Aug 17 00:22:37 non x86, well I was able to make dinner and it still wasnt booted Aug 17 00:24:26 iirc x86 API 18 image, you can get from Intel's site Aug 17 00:25:53 seitensei really? did they stop adding it to the avd manager ? Aug 17 00:26:35 I haven't seen it in the google repos, but I've seen it on Intel's site when I was searching for the image Aug 17 00:26:57 well, what the fuck http://software.intel.com/en-us/articles/intel-atom-x86-image-for-android-jelly-bean-43-installation-instructions-manually Aug 17 00:28:41 "Introducing Beacon Mountain v0.5" wut Aug 17 00:29:45 aka IADT Aug 17 00:33:09 "Screen capture is not working with ddms, uiautomatorviewer or monkeylmage" Aug 17 00:33:31 losers Aug 17 00:34:32 seitensei in this screenshot, they have it listed under 'Android 4.3' . i wonder if my install is busted Aug 17 00:42:46 heyheyhey Aug 17 00:42:48 * gummylick nods Aug 17 00:44:14 * seitensei does not nod Aug 17 00:44:54 * gummylick sits down with beer anyway. Aug 17 00:48:34 is there a problem with 4.3 and video players ? my friend can't seem to get any video player to play on his nexus 4 4.3 Aug 17 00:50:25 MX player says it doesn't support that version of android, Mobo player crashes , JoeVLC just plays audio ... Aug 17 00:50:33 I use Vplayer that works fine Aug 17 00:50:48 stock video player works fine for me Aug 17 00:50:59 I've been using Plex for everything else though Aug 17 00:51:28 ok I told him to try BS Player but he looked like he was gonna kill me from frustration Aug 17 00:54:16 does android have a built in open file dialog? Aug 17 00:54:28 no Aug 17 00:58:35 bye Aug 17 01:00:20 heh, if i add a comment to a certain line, my AS gradle build works; take it away, fails. always works from command line Aug 17 01:09:05 guys, is there a good channel for some json help? Aug 17 01:09:20 O.o Aug 17 01:09:21 the last part of my app is this webview and im trying to read either a rss/atom feed or json file Aug 17 01:09:38 i've tried all day thru php and now js w/ no luck Aug 17 01:10:07 php side i tried rss2.0 w/ simple pie but i think their feed is corrupt cause it wont even pass thru the simple pie demo on their site Aug 17 01:10:20 wouldn't say corrupt - malformed Aug 17 01:10:42 so i tried json, not that experienced but found samples of reading from an external url and just dumping the stuff for me to see... nothing. Aug 17 01:11:00 tried json thru jquery and json thru php json.decode Aug 17 01:12:59 its probably not working because you are using php Aug 17 01:13:03 XD Aug 17 01:13:06 lol Aug 17 01:13:15 hey! i switched to js/jquery Aug 17 01:13:35 you aren't cool unless you use node / backbone Aug 17 01:13:43 yeah not cool yet. Aug 17 01:13:49 gummylick: for your app ? Aug 17 01:13:54 i was trying to find a good jsfiddle that'll let me plug in my url Aug 17 01:13:58 i'm just joking, the js stuff is crap Aug 17 01:14:15 yes, funkbox, im trying to get the song title and artist from a shoutcast broadcast Aug 17 01:14:31 so in the app when the use clicks on an info button i can show them the current song and lead them on a search fo rlyrics Aug 17 01:14:43 loading it up in a small webview Aug 17 01:18:25 the only success i had all day was using php/rss via feedburner and xmldom. but feedburner only updates like once a hour Aug 17 01:18:36 i need regular updates, some songs are as short as a minute Aug 17 01:20:02 JesusFreke you there by any chance ? Aug 17 01:20:09 I am here. Aug 17 01:20:21 JesusFreke can i ask you a question about AS / gradle ? Aug 17 01:21:04 Well, you just asked if you could ask me a question, without asking first. Aug 17 01:21:20 so you might as well ask the actual question, without asking first :D Aug 17 01:21:54 ok, well, first question, when I go to View -> Tool Windows -> Gradle, shouldn't i see my tasks defined in gradle.build ? Aug 17 01:22:01 its always empty Aug 17 01:22:35 Well, I do with the JetGradle plugin Aug 17 01:22:49 wut is that Aug 17 01:22:53 I'm not sure if that's the same as what AS is using Aug 17 01:23:04 oh, so are you using AS ? Aug 17 01:23:10 It's the default gradle plugin that IDEA 12 uses Aug 17 01:23:21 so there are 2 different ones ? Aug 17 01:23:53 I'm not sure if AS uses the jetgradle plugin, or something different. Aug 17 01:23:57 ok Aug 17 01:24:09 With the JetGradle plugin, I do get a tool window with the tasks Aug 17 01:24:14 now, my build.gradle works from the command line Aug 17 01:24:28 lets say i copy and paste that ragel task you showed my a few weeks ago ... Aug 17 01:24:44 its very starnge, that exec task works from the command line, but does not from AS Aug 17 01:24:58 hmm Aug 17 01:25:04 but if i add a comment to that task, it *works* Aug 17 01:25:08 how does it not work? do you get an error or something? Aug 17 01:25:12 its so messed up, i dont even Aug 17 01:25:23 yeah, That sounds pretty bizarre Aug 17 01:25:42 well, i get an error from ragel saying basically it could not write to the output destination Aug 17 01:25:50 hmm Aug 17 01:26:08 basically, these 3 lines Aug 17 01:26:15 get ready, to short for pastebin Aug 17 01:26:30 File outputDir = file("$buildDir/source-generated/com/sharpgoose/android/kestrel/connector/parser") Aug 17 01:26:31 // wat! Aug 17 01:26:31 outputDir.exists() || outputDir.mkdirs() Aug 17 01:26:41 if i have //wat in there, it works, if i remove it - it fails Aug 17 01:26:43 :/ Aug 17 01:26:48 its so bizarre Aug 17 01:27:27 can't you just outputDir.mkdirs() unconditionally? Aug 17 01:31:26 party of two in here Aug 17 01:31:51 I'm too busy hax0ring on qicr Aug 17 01:31:55 making it more usefuls Aug 17 01:32:08 usefuls++ Aug 17 01:32:38 JesusFreke crap, it seems to just randomly work or not. obviously the comment can't be making it work Aug 17 01:32:51 heh Aug 17 01:33:15 JesusFreke so you use plain idea then ? Aug 17 01:33:18 sounds like a timing issue or something. Are you sure that that snippet is getting run before the task that needs it? Aug 17 01:33:48 from the command line, yeah the variant javaCompile task depends on it Aug 17 01:33:50 g00s: I don't do much Android app development Aug 17 01:34:23 i keep forgetting that; you know quite a bit Aug 17 01:35:14 heh, thanks. I'm become pretty familiar with various aspects of it. (although there are others I'm not familiar with at all - like fragments) Aug 17 01:35:40 JesusFreke lastly, how do i make a println or log statement in my gradle build show up .. anywhere? its not in my event log Aug 17 01:36:15 (or Messages) Aug 17 01:37:10 3 Aug 17 01:37:16 seems like in #gradle, stuff just works in plain idea Aug 17 01:37:16 You probably need to increase the verbocity of the logging Aug 17 01:37:32 k, lemme try Aug 17 01:37:34 try logging.error(), just to see if you see that Aug 17 01:39:50 JesusFreke also, do i have to hit the 'sync project with gradle files' button each time i change a build.gradle? or is that if i make certain kinds of changes only?\ Aug 17 01:40:21 I think typically only if you make structural changes - like change the dependencies or something Aug 17 01:40:41 Basically, if it's something that IDEA would need to reflect in the project Aug 17 01:41:10 hmm, ok Aug 17 01:41:21 ugh, yeah just randomy works or doesn't Aug 17 01:41:44 yeah, I don't know what would be causing that Aug 17 01:42:46 haha, ddms in AS looks like its using SWT :| Aug 17 01:42:55 looks like it just got ripped out of eclipse Aug 17 01:45:02 Well, it was sortof a standalone thing too, so yeah. The same thing used in standalone, eclipse and idea probably. Aug 17 01:48:03 g00s: (but back to your other question), yeah. When I wrote penroser, it was with vanilla IDEA (this was a good while before AS of course) Aug 17 01:48:34 and pre-gradle Aug 17 01:48:50 ah, ok. vanilla idea worked fine Aug 17 01:49:15 Yeah, it didn't have some of the more advanced stuff that eclipse has, especially wrt visual layout, etc. Aug 17 01:49:18 but it worked fine Aug 17 01:50:23 Most of the UI for it was all custom anyway, so I don't think eclipse's designer would have helped much anyway Aug 17 01:52:22 The UI was more of an afterthought anyway. The real work (and fun) was designing/writing the algorithms to calculate and draw the penrose tiling Aug 17 01:52:48 cool Aug 17 01:52:50 now i wonder why View -> Tool WIndows -> Messages is grayed out. i can't even see the gradle output Aug 17 01:53:17 * pfn uploads an update to qicr Aug 17 01:54:42 for smali, I mostly build from the command line using gradle anyway Aug 17 01:55:05 i think maybe i should do that too Aug 17 01:55:40 i'm wondering if there is a 'ghost'' build.gradle in effect, and sometimes i am using mine (fail) and others theirs (works) Aug 17 01:55:52 but that doesn't make sense because the ragel task runs and gens code Aug 17 01:56:03 restart IDEA? Aug 17 01:56:07 i have Aug 17 01:56:10 heh Aug 17 01:56:16 worth a shot :) Aug 17 01:56:20 :) Aug 17 01:56:28 when i click the gradle view, it shows my file Aug 17 01:56:30 so its in effect Aug 17 01:56:33 in some way Aug 17 01:57:34 oh weird, api 17/18 sdks are bundled with AS Aug 17 01:57:51 this thing is a monster Aug 17 01:59:09 also, build on the command line take about 4 seconds, from AS about 16 Aug 17 02:01:10 big whoop Aug 17 02:01:24 16 is too long Aug 17 02:02:06 JesusFreke ok, so this is interesting Aug 17 02:02:24 Build -> MakeProject works fine always Aug 17 02:02:26 then fix it Aug 17 02:02:32 even if i clean from the command line Aug 17 02:02:32 or stop complaining Aug 17 02:02:37 pfn quiet ! Aug 17 02:02:58 all you do all day is complain about gradle and AS Aug 17 02:02:59 however, Build -> Rebuild Project always fails Aug 17 02:03:18 its running a clean task before bundleRelease Aug 17 02:03:26 i wonder if there is a concurrency issue Aug 17 02:04:21 pfn what the fuck is your definition of complaining? you have complained more than i have today about every fucking thing, from spannables ... Aug 17 02:04:24 Yeah, sound feasible Aug 17 02:04:38 yeah, different things Aug 17 02:04:46 g00s: just ignore him :) Aug 17 02:04:46 instead of one-tracking a single thing, over and over for weeks Aug 17 02:04:48 i'm going to try and restrict this to one thread if i can Aug 17 02:04:58 all you do is complain about one thing Aug 17 02:05:03 gradle and android studio Aug 17 02:05:13 I encounter a problem, I mention it, and move on Aug 17 02:05:19 whatever Aug 17 02:05:22 make a patch or suggest a workaround if there is one, then go one Aug 17 02:05:28 but you... one single fucking track Aug 17 02:05:35 playing on repeat Aug 17 02:06:17 pfn i'm getting help from JesusFreke , please, put me on ignore or something Aug 17 02:09:01 oops, wrong button Aug 17 02:10:37 don't press that button Aug 17 02:10:45 * JesusFreke is helpful today Aug 17 02:11:44 i had to put pfn on ignore, he was annoying the hell out of me Aug 17 02:11:46 :) Aug 17 02:12:03 thanks JesusFreke i'll do what you did for now and just build from the command line Aug 17 02:12:19 otherwise everything else seems to work, thanks Aug 17 02:12:24 nice Aug 17 02:12:26 np Aug 17 02:14:07 JesusFreke my fault Aug 17 02:14:19 hmm? Aug 17 02:14:32 actually, if i do $gradle clean && gradle bundleRelease it works Aug 17 02:14:44 but gradle clean bundleRelease fails from the command line Aug 17 02:14:56 so, i have a mistake in my logic Aug 17 02:15:11 ah, yeah. sounds like it Aug 17 02:16:09 gradle clean && gradle bundleRelease Aug 17 02:16:14 ooops Aug 17 02:16:16 :D Aug 17 02:16:18 #fail :) Aug 17 02:17:17 i really don't mean fot this to sound like complaining, i have been having a lot of fun with gradle. i said that earlier. Aug 17 02:17:46 Yeah, there's always a learning curve, and problems, etc. etc. Aug 17 02:18:09 the challenge for me was, ok this is groovy, but the DSL bends the syntax a little Aug 17 02:18:40 operator overloading, etc Aug 17 02:18:48 Yeah, the syntax feel a bit... sloppy, to me. Aug 17 02:19:02 so semantics arent always quite concrete Aug 17 02:19:06 yeah Aug 17 02:19:07 Kinda a: *shrug*, anything goes Aug 17 02:19:37 It's not too bad though Aug 17 02:20:13 nah. the ExpandoMetaClass is cool Aug 17 02:20:33 I think anything with the term "Expando" in it has to be cool. Aug 17 02:20:42 hehe :D Aug 17 02:21:35 I'm heading out :) Aug 17 02:21:49 thanks for you help JesusFreke Aug 17 02:21:55 np Aug 17 02:22:08 although I don't think I actually helped all that much :) Aug 17 02:22:33 you helped me think though it Aug 17 02:22:52 i thought it was some random behavior, i determined it was some timing between clean and bundleRelease Aug 17 02:23:02 so that helped Aug 17 02:28:06 I want to swipe across an element, triggering an event. However, I don't want to actually "swipe" because I'm not moving across views or moving along an overflowing element. Is there a way to still perform this action? Aug 17 02:28:28 physically I just want to press down on an element and move my finger along it. Aug 17 02:29:00 mysteronyx, get the on-touch action and handle it manually Aug 17 02:29:31 grab coordinates at start, coordinates at end, time on both if you want to deal with speed Aug 17 02:30:21 Komak57 ok thanks **** ENDING LOGGING AT Sat Aug 17 02:59:58 2013