**** BEGIN LOGGING AT Tue Mar 19 02:59:58 2013 Mar 19 03:01:19 anyone out there/ Mar 19 03:07:22 coco89: can I introduce you to something called a 'timezone'? Mar 19 03:07:43 everyone's from 'merica Mar 19 03:07:51 or Europe... Mar 19 03:08:00 or leeds Mar 19 03:08:08 which is in... Europe Mar 19 03:08:17 for now Mar 19 03:10:58 anyway, the point is that most of the active users around here are probably asleep, so have some patience Mar 19 03:11:14 also, NFC stuff is still pretty niche, so most people probably couldn't help you anyway Mar 19 03:11:31 okay Mar 19 03:11:33 thanks Mar 19 03:24:15 * Bleeptech does the Happy Dance! Mar 19 03:24:23 Woohoo! It works. :) Mar 19 03:34:30 some body help me :( Mar 19 03:36:41 I want get android device setting (device checked usb-debug mode on application), but I don't know how get setting. Mar 19 03:50:36 EyesSoul: you mean this? http://developer.android.com/reference/android/provider/Settings.Global.html#DEVELOPMENT_SETTINGS_ENABLED Mar 19 03:50:51 er, or ADB_ENABLED Mar 19 04:06:09 Leeds: i think GB will live forever :) http://phandroid.com/2013/03/18/micromax-bolt-a51/ Mar 19 04:08:23 g00s: hey, I'm still stuck on that thing :( Mar 19 04:08:32 no matter how hard i've tried Mar 19 04:11:03 coco89: my nexus s is still running 2.3; I gave up and bought a Nexus 4 Mar 19 04:11:49 dberg: what has that got to do with anything Mar 19 04:11:52 gae up onw hat? Mar 19 04:11:53 g00s? Mar 19 04:12:09 coco89: please stop pestering me Mar 19 04:12:36 g00s: that's a 'featurephone' running a smartphone OS Mar 19 04:12:36 wow. Mar 19 04:12:40 thought you were talking about gingerbread Mar 19 04:14:40 g00s: what's with the bitterness Mar 19 04:14:41 http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_FOREGROUND Mar 19 04:15:03 coco89: no bitterness l) Mar 19 04:15:09 too bad it requires api level 17 Mar 19 04:15:59 g00s: that was quite mean. It seemed you understand the problem and you left so I asked you just now about it, if you don't understand what it is you could just tell me rather than accuse me of pestering you Mar 19 04:16:59 coco89: sorry, didn't mean to be mean Mar 19 04:20:46 g00s: so you don't understand then? Mar 19 04:20:46 g00s: yeah you did :P Mar 19 04:21:24 coco89: i dont understand what you're trying to do, but now dont have the time to help Mar 19 04:24:58 [02:05] sonOfRa: 03-19 02:04:37.785: D/TAG(4255): lolIntent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000cmp=com.nfc.goldtag/.MainActivity } Mar 19 04:24:58 [02:06] well, there you go. your actions aren't equal Mar 19 04:32:07 Leeds : Thanks for your answer Mar 19 04:39:02 Ok, so I'm compiling with ant, and I get an error saying that package R does not exist when I try to use a resource Mar 19 04:47:42 ah, my fault Mar 19 04:59:13 Fun. The app I hacked together with near zero knowledge of Java crashes on start and I have no idea what the exceptions I'm reading in logcat are. Mar 19 04:59:15 :D Mar 19 04:59:31 * frankdrey should really go learn Java Mar 19 05:03:10 cant hurt :P Mar 19 05:03:15 i had never used java before i started with android Mar 19 05:03:22 but i knew c#, which is pretty similar Mar 19 05:03:40 he's gone... Mar 19 05:03:45 oh Mar 19 05:03:47 so he is Mar 19 05:04:10 if he comes back tell him it's because he called the thing before the other thing Mar 19 05:05:17 or you could just answer him properly.. Mar 19 05:06:58 ++the thing before the other thing :) Mar 19 05:07:26 but neither after the first Mar 19 05:09:07 * Bleeptech wonders what is borked in File f = new File(Environment.getExternalStorageDirectory(),photo.jpg) Mar 19 05:09:46 It works on a Galaxy tab, But not on a DroidX or a Samsung hackset. Mar 19 05:09:48 well that was not funny Mar 19 05:14:45 programmers need to get laid Mar 19 05:15:39 coco89: More frequently for sure.. LMAO.. Mar 19 05:16:00 duh! We're "programmers" Mar 19 05:16:57 speak for yourself Mar 19 05:17:04 I'm Sr. Engineer / Architect Mar 19 05:17:16 i just find it sad though that they put this retarded front to try and prove themselves because they have nothing else going for them. they're angry at the world because their mum was probably the only girl that loved them. all they have is their intelligence and they abuse this intelligence to unreasonably humiliate/put down other people because they themselves are self conscious. and Mar 19 05:17:16 by doing so they validate themselves as socially accepted Mar 19 05:17:58 well .... I'm a project manager, but basically in software development so once and always a programmer :) Mar 19 05:21:04 like earlier today someone said 'stop pestering me' to a question I asked Mar 19 05:22:00 g00s is usually correct ... scrolls back Mar 19 05:22:11 about what Mar 19 05:23:25 hi guys Mar 19 05:23:43 I'm having a really annoying problem I've been trying to fix for such a long time Mar 19 05:23:57 heh "earlier today" was an hour ago :p Mar 19 05:24:16 capella: yep, i didn't wanna name names or give hints that it was recent Mar 19 05:24:23 but it's not just that incident either Mar 19 05:24:31 it's just in general Mar 19 05:24:34 I'm trying to debug my app using a Samsung Galaxy Tab and I can't for the life of me get the logs in logcat to show and I get this error message Unable to open log device '/dev/log/main': No such file or directory Mar 19 05:25:51 anyway, would love to see someone help enwary without a sarcy comment let's try this guys Mar 19 05:27:20 The logs work fine on my friends s3 and my other friends s2 Mar 19 05:28:58 enwary: I would tell you the answer if I knew Mar 19 05:30:26 It's killing me man I can't develop without fixing this. From what I've read apparently my logs are disabled on my device but I'm not sure on how to enable them. Mar 19 05:31:45 good luck, hopefully someone answers Mar 19 05:31:54 who are these folks Mar 19 05:31:54 im out, i'm tired Mar 19 05:32:01 wheres g00s and the normal night crew Mar 19 05:32:21 ron_frown: i'm in the penalty box Mar 19 05:32:27 who what? Mar 19 05:34:32 enwary: Are you rooted? Mar 19 05:34:55 g00s how good are you with that mq shit yet? Mar 19 05:35:37 * Bleeptech kicks enwary.. Mar 19 05:35:48 Yeah man Mar 19 05:35:49 ron_frown: i used regular websphere MQ at my last job, but now i'm just using mqtt. its pretty simple, still trying to get things to work Mar 19 05:35:51 sorry Mar 19 05:36:03 wow Mar 19 05:36:08 enwary: GT-P5113? Mar 19 05:36:09 what kinda hardware? Mar 19 05:36:26 i thought you could do 'emulator … &' and the emu would run in the bg; but it stops Mar 19 05:36:42 GT-P7320 Mar 19 05:36:58 ron_frown: me? websphere ran on HPUX servers Mar 19 05:37:10 and zOS mainframe stuff Mar 19 05:37:32 enwary: You've got SuperSU and BusyBox installed? Mar 19 05:37:39 are you on a custom rom enwary? Mar 19 05:38:13 Nah it's not a custom rom Mar 19 05:38:40 and I don't think so bleeptech Mar 19 05:39:36 no no Mar 19 05:39:49 do you have any embedded hardware you are testing mqtt with? Mar 19 05:39:55 I'd install SuperSU then Busybox.. That'll get you more utils if not a working logcat. Mar 19 05:40:10 Is that just from the playstore? Mar 19 05:40:41 ron_frown: not at the moment, just getting android stuff working for now Mar 19 05:40:49 all good found it Mar 19 05:40:56 enwary: Yeah, You might want the Hackers Keyboard too. :) Mar 19 05:43:02 Bleeptech: nice one Mar 19 05:43:05 alright awesome got them all Mar 19 05:43:28 enwary: Terminal Emulator as well.. Those four were what I used getting this GT-P5113 rooted and runnnig the way I wanted. Mar 19 05:43:43 g00s cool cool Mar 19 05:43:49 I got terminal emulator, tried to run some commands to get the logs working but no luck Mar 19 05:43:50 ron_frown: when is your meeting? Mar 19 05:44:27 supposed to be tomorrow or the next day for winery shit Mar 19 05:44:31 other thing I dont know Mar 19 05:44:36 enwary: OHH.. Are you trying to debug from logcat on the terminal emulator? Mar 19 05:44:45 goes back to the whole... I dont play nice with people Mar 19 05:44:48 thing Mar 19 05:44:52 I got a guy who is very social Mar 19 05:44:59 and knows a ton of people in high positions Mar 19 05:45:11 enwary: if the /dev entry for log doesn't exist it's because the kernel is compiled without it. some custom roms do this for some reason and i remember (at least) one semi-popular device shipped this way but i didn't think it was a galaxy tab Mar 19 05:46:01 ron_frown: leave the shiny new knife home :) Mar 19 05:46:08 Bleeptech: nah I'm trying to use logcat on eclipse Mar 19 05:46:35 enwary: Oh.. Windows or *nix? Mar 19 05:46:58 g00s ya ya ya Mar 19 05:47:08 I wish I knew moer tech people that were actually motivated Mar 19 05:47:15 kevinb: I don't think I have a custom rom, I read somewhere that there's a security feature that disables logs for newly installed apps on my galaxy tab Mar 19 05:47:20 could perhaps be a permissions issue, or you need root.. try making sure the folder exists with a root permissions file browser; if you're trying to access a protected folder: http://developer.android.com/guide/topics/security/permissions.html or http://stackoverflow.com/questions/5436084/how-to-create-android-apps-with-root-access Mar 19 05:47:20 Window Mar 19 05:47:33 ron_frown: have to find people interested in your vision Mar 19 05:47:44 everyone is intereste Mar 19 05:47:46 ron_frown: I'd be more motivated if I was offered more money.. ROFL.. Mar 19 05:47:48 just interested in $$ Mar 19 05:47:51 enwary: the security feature is different, it just means that if your app tries to run logcat it will only see it's own logs, not the system logs. but adb/eclipse will get the full logs always Mar 19 05:48:32 the funny thing is, neither of these projects are my vision Mar 19 05:48:40 I am just the creator and the person keeping them going Mar 19 05:48:46 Ah I don't think my device is rooted properly to be honest, I can't run SuperSU Mar 19 05:49:11 enwary: Aha.. That could do it.. Mar 19 05:49:42 root checker Mar 19 05:50:34 capella! :) Mar 19 05:51:04 capella: Damn root checker says my device does't have proper root access Mar 19 05:51:17 there ya go Mar 19 05:51:26 (first problem) Mar 19 05:52:19 enwary: Fair warning.. i had to work this one over hard to get it rooted from 4.0.4.. Mar 19 05:53:04 #android-root, too, if you don't already know Mar 19 05:53:31 * Bleeptech ended up taking the rooting script that was supposed to work and doing it manually in the terminal. Mar 19 05:53:31 I really have no choice man, it's either I root it or try to develop without logs which is next to impossible Mar 19 05:54:42 adb shell should let you ls the /dev folders Mar 19 05:56:24 adb shell then try /system/bin/su Mar 19 05:58:02 enwary: And after you get it rooted find a version of ClockWorkMod for it.. I've got 6.something on this and it's a life/file-saver. :) Mar 19 05:59:02 Alright awesome, what does it do? Mar 19 06:00:03 enwary: It's a recovery replacement. Mar 19 06:00:28 enwary: Google CWM 6 touch Mar 19 06:03:31 enwary: And let me save you some time.. If you go to Settings>About and it says the Android 4.0.4 you need to find and delete the recvery_install.sh file from your tab. Mar 19 06:09:28 enwary: It was /system/etc/install_recovery.sh on this thing. Mar 19 06:42:11 coco89: i'm baaack Mar 19 06:42:37 Hi Dr. Nick ! Mar 19 06:42:45 :) Mar 19 06:44:24 oi Mar 19 06:44:38 oi :) Mar 19 06:44:45 need to get my ass in gear on all these projects Mar 19 06:44:56 the way things are going right now I got 3 MAJOR projects that could all take off Mar 19 06:45:00 being built off the very same core Mar 19 06:45:04 diff target markets Mar 19 06:45:17 and then I want to do the embedded mesh network shit I was talking to you about Mar 19 06:45:27 that one actually sounds fun Mar 19 06:45:33 ron_frown: how about: me and capella break your knee caps if you don't deliver by a certain date. Mar 19 06:45:41 go! Mar 19 06:45:56 stares ominously Mar 19 06:46:17 each day late thereafter, lose one finger Mar 19 06:46:48 no he needs that to code Mar 19 06:47:03 haha Mar 19 06:47:09 getting it done wont be a problem Mar 19 06:47:09 this is like debtors prison; you need your fingers to code, but you lost your fingers Mar 19 06:47:17 I just want to do the hardware thing Mar 19 06:47:25 I have no mouth and I must scream Mar 19 06:48:48 so damn it, how to run the emulator from the command line as a background job ? the job stops if i do '$ emulator blahblah &' Mar 19 06:49:14 nohup doesn;t work either, its like its expecting stdin or something Mar 19 06:49:31 android always makes me feel stupid Mar 19 06:50:42 I feel that way with C++ templates Mar 19 06:51:40 guys, i thought i realised something. Correct me if i'm wrong : LazyAdapter is just custom adapter extended from baseAdapter to fulfill our custom requirement in layout. Mar 19 06:53:39 xviv: sure, why not Mar 19 06:54:35 lol, i spent two days to figuring why people use LazyAdapter. Besides, i've made my customAdapter Mar 19 06:55:10 because people are lazy Mar 19 06:55:30 is that the reason? Mar 19 06:56:20 actually the mame is a bit stupid Mar 19 06:56:22 i'm guessing it lazy loads stuff? Mar 19 06:56:30 it's a LazyLoadingAdapter Mar 19 06:56:44 if it's called lazyAdapter because ppl are lazy, is there any diligentAdapter too? Mar 19 06:56:49 oh, lol Mar 19 06:56:56 Is that a standard android class I've never heard of? or an actual custom adapter you found on stackoverflow? Mar 19 06:57:36 standard Mar 19 06:57:45 really? Mar 19 06:57:56 cant find in my source lib or grep code Mar 19 06:58:03 e.g. populating a list from database, code or web Mar 19 07:01:24 capella: you are right - it's non standard Mar 19 07:01:28 generic concept Mar 19 07:02:16 but i thought, the most important thing in lazyAdapter is the concept/purpose. Mar 19 07:02:35 yah - concept is extend baseadapter Mar 19 07:02:45 as every adapter is Mar 19 07:02:50 i just realised that while i seeing setText in lazyAdapter.java Mar 19 07:02:53 yep Mar 19 07:03:50 call it lazyCapellaAdapter :) Mar 19 07:04:05 and another funny stuff, i thought hashmap only used for storing map data (longitude, latitude) lol, silly me. Mar 19 07:04:17 ermigerd Mar 19 07:04:44 * capella loses interest Mar 19 07:10:25 anyone use twitter for android here? Mar 19 07:10:35 i have something to ask relate it. Mar 19 07:15:08 I can't successfully implement this :( Mar 19 07:15:10 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.2_r1/com/android/lotsofapps/Nothing.java#Nothing Mar 19 07:17:42 implement what? Mar 19 07:18:18 the class ... it doesnt seem to do ... anything :P Mar 19 07:21:54 i'm new in java and android, sorry if i can't get it. Mar 19 07:23:42 ah ... maybe start by reading through http://developer.android.com/index.html ?? Mar 19 07:24:18 (if you haven't already) Mar 19 07:25:42 been read it, but i feel better when i learn by create something then search what i don't know :) Mar 19 07:26:04 except for some class, i should read all docs :| Mar 19 07:26:26 Check this out? http://www.mkyong.com/tutorials/android-tutorial/ Mar 19 07:27:14 cool examples - quick to enter into your IDE and try out Mar 19 07:27:44 oh and remember "Eclipse BAD ... IntelliJ GOOD !" Mar 19 07:28:03 (nah - thats just me) :D Mar 19 07:28:07 wo0t? IntelliJ ? Mar 19 07:28:36 i haven't heard it before. maybe i will try it later. Mar 19 07:28:46 http://www.jetbrains.com/idea/ Mar 19 07:28:54 ok Mar 19 08:02:46 Ok I'm rooted now and still unable to get logs on eclipse Mar 19 08:07:41 Where do I define the version code for google play? Mar 19 08:07:57 I seem to only change the version name and not the version code. Mar 19 08:19:40 Hi all, I have an issue with android custom camera app. Mar 19 08:20:02 on some devices after taking a picture, the app freezes. Mar 19 08:20:10 enwary: can you get logcat listings through adb? Mar 19 08:20:26 I get the following error msgs in logcat: Mar 19 08:20:54 E/V4LCameraAdapter(2321): hardware/amlogic/camera/V4LCameraAdapter/V4LCameraAdapter.cpp:993 previewThread - Preview thread get frame fail, need sleep:33333 E/V4LCameraAdapter(2321): hardware/amlogic/camera/V4LCameraAdapter/V4LCameraAdapter.cpp:834 GetFrame - GetFrame: No buff for Dequeue Mar 19 08:21:27 can anyone help me out in figuring out the problem? Mar 19 08:53:11 which class/lib should i use to make dropdown menu when i clicked a list in a listview? Mar 19 08:53:32 been using viewstub but someone told me i shouldn't use that. Mar 19 09:06:38 Can anyone help me over come this issue? http://stackoverflow.com/questions/15495216/not-able-to-create-appengine-connected-android-project-in-eclipse Mar 19 09:20:02 Are some chat programs made with Push Notifications? or do they all use TCP/IP? Mar 19 09:20:18 Hi Everybody! Mar 19 09:20:35 hello Ankhwatcher.. Mar 19 09:21:12 this is wierd, I can't change irssi to it's second connected chat Mar 19 09:21:24 by pressing alt+2 Mar 19 09:21:34 1,3,4... all work Mar 19 09:21:49 how is everyone this morning? Mar 19 09:22:30 it's already noon in here :p Mar 19 09:23:40 xviv: in that case, how did you morning go? Mar 19 09:25:00 well, i didn't feel morning today. I was sleep lol Mar 19 09:31:17 hey Mar 19 09:31:26 when I know java, can I develop for Android? Mar 19 09:31:42 it helps a LOT yes Mar 19 09:32:08 but the ADK is not the same as JDK (that means the premade classes available to you are not the same, but the syntax is) Mar 19 09:32:48 hm Mar 19 09:32:56 I just have to do an application for school Mar 19 09:33:10 but I think you dont really need java applications nowadays for normal PC's... Mar 19 09:33:22 so, when I would do an android app, it would actually help me more Mar 19 09:34:35 ok.. Mar 19 09:38:21 Ankhwatcher: Maybe your terminal captures alt+2. I don't think it's a question for this channel though… Mar 19 09:56:34 should I define the service in the library's manifest, in the application's or in both? Mar 19 10:20:37 if anyone is really bored, this is a good vid to watch - http://www.youtube.com/watch?v=csyL9EC0S0c "Programming is terrible—Lessons learned from a life wasted" Mar 19 10:25:35 f8l: I wasn't asking this channel, it was just an observation Mar 19 10:30:07 Ankhwatcher: Ah. Mar 19 10:59:56 Hi. What would be the best way to store a data object in a DialogFragment, so that it passes it to the calling activity? Mar 19 11:01:12 [Activity] DFrag dFrag = new DFrag(object); dFrag.show(...) --- and later when the user has made a choice I want to get object as a parameter Mar 19 11:03:39 And, btw, I return an AlertDialog in onCreateDialog(...) Mar 19 11:10:11 Hello. I'm using selector for ImageButtons and it doesn't work with some of it. Why can it be? Mar 19 11:13:31 I found out that the OnItemSelectedListener I set on my AlertDialog.Builder is not called... I wonder why Mar 19 11:14:16 ah, never mind... I set the listener to something else before that, somehow that apparently does not override it Mar 19 11:42:28 > Uploading texture of size 256x256 took 2 ms Mar 19 11:42:31 > Uploading texture of size 2048x2048 took 508 ms Mar 19 11:42:35 Android why ;_; Mar 19 11:43:06 bigger size? Mar 19 11:44:14 Not _that_ big... and it does manage to load faster sometimes Mar 19 11:44:26 But then sometimes it's > Uploading texture of size 256x256 took 263 ms Mar 19 11:45:09 (I'm timestamping between GL.glGenTextures and GLUtils.glTexImage2D) Mar 19 11:45:51 I thought i'm facing the same problem like Kofgeldjaer's. My OnItemClickListener didn't wordk :| Mar 19 11:46:27 *work Mar 19 11:46:32 http://d8f124b2fefd4dbe.paste.se/ this is so useful! Mar 19 11:55:44 Is it a common pattern to just straight out pause AsyncTasks while GLThread needs high fps for animations? Mar 19 11:56:05 ...or to take less time loading textures Mar 19 11:56:17 I've set the thread priorities but to be honest I don't see much change Mar 19 11:57:20 hi all - I have found my unusual power usage when asleep is down to a usb wakelock which is running and causes the device not to sleep properly. I have been told not to "disable" the usb umounting widget and use the umount option in the settings area. However I cant see anywhere to stop the unmounting widget - do you think just not using it will resolve this issue? Mar 19 11:57:23 that sounds like spaghetti pattern :| Mar 19 11:58:29 Spaghetti indeed, it will break the nice and mostly tidy MVC I have set up Mar 19 11:58:39 But the lags get to me Mar 19 11:58:55 While there's a bitmap getting decoded the texture loading times just straight out suck Mar 19 12:00:28 I kill off most of the decodes when possible, but I can't really predict the user input so it's limited to some basic assumptions Mar 19 12:04:00 I wonder how do other devs make their apps so smooth... granted, I have to use OpenGL due to intensive use of certain 3D effects for what would otherwise be just a normal standard GUI app, but it's really tough to make stuff smooth Mar 19 12:07:59 Hey guys, please can somebody help. I'm trying to get this app to read from an NFC Tag but it's not reading anything. I've tried using a Log.d(tag,"foo", intent) and the intent's action is something like android.intent.action.main shouldn't it be equal to Nfcadapter.ACTION_TAG_DISCOVERED? Because in that if statement when they're being compared it's not returning true (I've tried putting Mar 19 12:07:59 a toast in there which isn't appearing).. Please can somenoe figure out what's wrong with this? http://pastebin.com/kmuRpszL Mar 19 12:10:15 anyone?? Mar 19 12:12:58 coco89: stop using Toast's and start using breakpoints Mar 19 12:13:50 Napalm: but i'm not getting any error messages and the apps not quitting or anything Mar 19 12:14:37 and? Mar 19 12:14:48 still doesnt mean you cant use breakpoints and step though the code Mar 19 12:15:05 I thought breakpoints were used to check which part of the code is freaking out Mar 19 12:16:15 Also, do NFC tags hold intents, as in does it matter if I write a tag with one app and read it with another. Would I need to keep things in mind when doing this? Mar 19 12:19:18 if you're doing a |Log.d(tag,"foo", intent)| somethings not right .... typo? Mar 19 12:20:21 capella: Sorry I was being lazy what is actually written is Log.d("TAG", "lol" + getIntent().toString()); Mar 19 12:20:32 yah Mar 19 12:23:10 I'm not sure how I can explain this but I'll give it a go. I have an Activity themed as Dialog that pops up when alarm sounds. If user does not dismiss the popup, it will be shown when user is opening the MainActivity later, which I do not want. I can fix this with android:noHistory="true" on the dialog activity, but that prevents the possibility of mutliple instances of the dialog activity. Any ideas how I can have several popups but not show Mar 19 12:23:10 them in MainActivity if user don't dismiss them? Mar 19 12:23:26 Hmm.. was that cut off? Mar 19 12:25:06 I tried with finish() onPause, but for some reason dismissing keyguard calls onPause() method, so the dialog doesnt show at all Mar 19 12:25:11 anyone? Mar 19 12:25:30 morning all Mar 19 12:25:35 well afternoon Mar 19 12:25:37 Morning there Mar 19 12:25:43 that too Mar 19 12:26:05 morning StingRay_ Mar 19 12:26:53 morning and afternoon Mar 19 12:26:54 I'll write it again since it looked like it got cut off Mar 19 12:26:54 :P Mar 19 12:26:57 no Mar 19 12:27:05 Quacked: it all came through Mar 19 12:27:08 Good stuff Mar 19 12:27:09 looool Mar 19 12:27:22 I'll write mine again cos StingRay_ didn't get a chance to see it... Mar 19 12:27:40 That's a better point, hehe Mar 19 12:27:59 Quacked: you have a few options Mar 19 12:28:01 StingRay_: I'm trying to get this app to read from an NFC Tag but it's not reading anything. I've tried using a Log.d(tag,"foo", intent) and the intent's action is something like android.intent.action.main shouldn't it be equal to Nfcadapter.ACTION_TAG_DISCOVERED? Because in that if statement when they're being compared it's not returning true (I've tried putting a toast in there which Mar 19 12:28:01 isn't appearing).. Please can somenoe figure out what's wrong with this? http://pastebin.com/kmuRpszL Mar 19 12:28:13 Napalm: good. I like options. Mar 19 12:29:15 Quacked: you could still have history, and call finish() when opened by the user Mar 19 12:29:32 Napalm: oh btw, the dialog activity has the flags FLAG_ACTIVITY_NEW_TASK (because I start it from a Service) and FLAG_ACTIVITY_MULTIPLE_TASK Mar 19 12:29:40 Quacked: or, you can add the clearTop flag to your MainActivity to remove the history Mar 19 12:30:20 Quacked: either way, you should have these notifications stored on disk. for the situations like, if the user was to reboot his/her phone Mar 19 12:30:35 Hi. I want to have a listView which creates its Views from elements in an xml file. What is the right way to code this? Should I be using SimpleCursorAdapter or ArrayAdapter Mar 19 12:30:56 coco89: Like i said never played with NFC … but you should read http://developer.android.com/reference/android/app/Activity.html cause looking at your activity class, there seems to be a few oddities Mar 19 12:31:05 Napalm: app dosent support rebooting yet (its mainly countdown for eggs and pizzas and such :P) Mar 19 12:31:12 haqe17: ArrayAdapter or extend Base Adapter Mar 19 12:31:28 StingRay_: really? It looks quite a lot llike the demo reader apps. which parts in particular look odd? Mar 19 12:31:43 show me the example Mar 19 12:31:48 hack72: easest way, parse your xml data into an array of objects, now pass that array of objects to an adapter and set that adapter on your list Mar 19 12:32:45 haqe17: ^ was for you not the other dude, damn autocomplete Mar 19 12:32:58 Napalm: ok thanks so much. I plan to parse the data into a List<> Mar 19 12:33:14 StingRay_: ONE SEC Mar 19 12:33:15 woops Mar 19 12:33:17 sorry for caps lol Mar 19 12:33:19 your not implementing anything on the activity Mar 19 12:33:29 StingRay_: what do you mean Mar 19 12:33:33 onNewIntent actially takes nothing and is not an Override Mar 19 12:33:53 like I said, read that link Mar 19 12:34:28 onNewIntent gets called after enableForegroundDispatch Mar 19 12:34:33 when it receives a new intent Mar 19 12:34:34 ? Mar 19 12:35:08 @Override only warns if it flagged as such but has nothing to override ... not flagging it doesn't do anything bad I thought Mar 19 12:36:45 StingRay_: http://www.jessechen.net/blog/how-to-nfc-on-the-android-platform/ Mar 19 12:37:19 see that looks like the examples on d.android.com Mar 19 12:37:20 but I think this example assumes writing and reading in the same app Mar 19 12:37:21 Napalm: how do I use FLAG_ACTIVITY_CLEAR_TOP for the main activity? Mar 19 12:37:22 yours doesnt Mar 19 12:37:36 StingRay_: which part? Mar 19 12:37:43 go through the d.android.com nfc stuff Mar 19 12:38:13 i have Mar 19 12:38:17 but okay Mar 19 12:38:29 hi room Mar 19 12:38:54 StingRay_: also this, last few pages http://www.tappednfc.com/wp-content/uploads/TAPPED-NFCDeveloperGuide-Part2.pdf Mar 19 12:39:23 Quacked: i have an idea Mar 19 12:39:27 Quacked: use http://developer.android.com/guide/topics/manifest/activity-element.html#aff Mar 19 12:39:30 i have an intentchooser.setType( "image/jpg" ); but it displays all files Mar 19 12:39:52 Napalm: I actually looked at all those yesterday without any success Mar 19 12:40:10 hello, I have a question. I want to make a jukebox type app and put it on a development board running android, connected to some buttons and a monitor. what development board would you recommend? Mar 19 12:41:10 j4hr0m: try: "image/jpeg" Mar 19 12:42:00 Quacked: that is android:taskAffinity, that both your notification and main activities can be in, then you can use some of the other options in conjuction.. android:clearTaskOnLaunch / android:finishOnTaskLaunch / android:launchMode Mar 19 12:42:18 It worked :) Mar 19 12:42:35 Just set it to empty string like the link suggested Mar 19 12:43:04 thanks a bunch Mar 19 12:44:52 alienatu: http://apc.io/ Mar 19 12:45:00 cisus: tried that too Mar 19 12:45:10 cisus: its always the same Mar 19 12:45:34 no one knows :( Mar 19 12:45:39 also tried "image/*" Mar 19 12:46:27 alienatu: ok? what your looking for rigt? Mar 19 12:49:13 anyone here with a stock samsung device? Mar 19 12:49:21 steveccc: many Mar 19 12:49:29 oo wait Mar 19 12:49:33 no only tablets Mar 19 12:49:55 7, 7+, 8.9 etc Mar 19 12:50:04 Napalm: yes. i was wandering if any of you have experience with them and how reliable they are Mar 19 12:50:07 but sock yes Mar 19 12:50:24 alienatu: what do you want to know? Mar 19 12:50:27 stingray_: I wondered if anyone had experienced the usbStorageUnmounter problem and if there is a good solution? Mar 19 12:50:44 can i let it run 8 hours unattended? Mar 19 12:50:55 yes Mar 19 12:51:12 hmm.. pisses me off when eclipse decides not to post stuff to logcat Mar 19 12:51:17 can i connect a ioio otg to it? Mar 19 12:51:23 i see no reason why Mar 19 12:51:29 why not Mar 19 12:51:36 usually it works to reupload the apk, but not this time Mar 19 12:51:47 alienatu: APC Rock, you can it has a OTG port Mar 19 12:51:59 Quacked: unplug re-plug device Mar 19 12:52:04 normally works for me Mar 19 12:52:24 Quacked: ive been working on a replacment for logcat Mar 19 12:52:31 hopefully people will like it Mar 19 12:52:33 yeah, but using wireless connection atm Mar 19 12:53:11 Napalm: let it print nothing but line of error and give it to the python lover Meron Mar 19 12:54:00 stingray_: have you experienced the usbstorageunmounter problem - I was wondering if just avoiding using the usb unmounter notification icon or either way of unmounting the device will cause the lock and hence rebooting is the only option Mar 19 12:54:09 StingRay_: uninstalling app from device worked :) Mar 19 12:54:25 steveccc: no Mar 19 12:54:37 but I use them for testing, not really person use Mar 19 12:54:54 stingray_: oh ok - thanks Mar 19 12:56:56 stingray_: would it be the case that clicking unmount from a notification popup would follow a different process than clicking unmount in the settings widget Mar 19 12:59:23 is there a secure way to save the state of a (Dialog)Fragment? because to me it sounds like "there's some options; sometimes they work, sometimes not" Mar 19 13:03:02 is there a way to get a list of wakelocks without running betterbatterystats - similar to a ps -ef Mar 19 13:05:51 * coco89 is waiting for timroes Mar 19 13:06:02 hi. May this is half off topic, but I hope someone here can tell: I like the way how GUIs are designed on the android-sdk, and I am wondering if there is a GUI-Framework for "normal java" which follows the same or a simmilar philosophy? Mar 19 13:07:08 hi, how do i get an image from the web and show it in android app Mar 19 13:07:12 smth like the in html Mar 19 13:13:02 eni: one simple method, is to just download the image, convert it into a drawble, and set it in an imageview Mar 19 13:14:20 I've had this in logcat every time I upload to the device. Any ideas? "error opening trace file: No such file or directory (2)" Mar 19 13:16:36 is it normal that an android is not able to stream an ogv file? Mar 19 13:17:42 yey, I fixed a bug that I chose to ignore in my published release because of the rare chance of it happening Mar 19 13:19:52 guys, can we put onItemSelectedListener in a listview? because it won't work for me :| Mar 19 13:20:56 xviv: yes Mar 19 13:21:19 hey nseidm1 Mar 19 13:21:31 it's the palmmmmmmmmmmmm! Mar 19 13:21:46 the face palm Mar 19 13:21:51 noooo Mar 19 13:21:54 :P Mar 19 13:22:02 :-P Mar 19 13:22:32 nseidm1: just ordered one of these, http://apc.io/products/rock/ Mar 19 13:22:35 Napalm, your last name is 'bomb', eh? Mar 19 13:22:45 nseidm1: was going to get one ages ago but never got around to it Mar 19 13:23:27 Napalm: bad ass Mar 19 13:23:37 reminds me of my MC68HC12 dayas Mar 19 13:23:47 nice case for it on newegg, http://www.newegg.com/Product/Product.aspx?Item=N82E16811154111 Mar 19 13:23:59 Is that "error opening trace file: No such file or directory (2)" a typical Eclipse error? Mar 19 13:24:03 btw, its tiny Mar 19 13:24:33 Napalm: what you gonna use it for? Mar 19 13:24:37 nseidm1: was that a 68k chip? Mar 19 13:25:25 Quacked: i'll be honest and say, im not sure Mar 19 13:25:30 might just use it as a remote media center Mar 19 13:25:44 but i wanted an arm dev platform that i could compile Android for Mar 19 13:25:58 I needed power for my media center because I needed to watch Silverlight streams :/ Mar 19 13:26:03 Went for an i3 Mar 19 13:26:09 sorry for interrup you guys, but is this right? --> http://pastebin.com/dXVkf4wy Mar 19 13:26:13 Napalm, 16bit cpu with expandable memory :-) Mar 19 13:26:35 because it did nothing :| Mar 19 13:26:54 ahhh, 6800 :) Mar 19 13:27:05 I learned robotics with them Mar 19 13:27:13 Napalm: I think it was ~1 meg built in or so Mar 19 13:27:26 really? thats a lot Mar 19 13:27:39 xviv, and why doesn't that work? Mar 19 13:27:40 nseidm1: since you can only address 64k it must be windowed Mar 19 13:28:14 nseidm1: he needs to change the mode of the listview to multi-select or single choice Mar 19 13:29:16 Napalm: i dunno, but when i change it to OnTouchListeer it'll work. But, often crash :| Mar 19 13:30:44 does android respond to HLS live streams ? if yes what mimetypes? Mar 19 13:31:25 Please, do you know how to correlated debug log ouput (or some in-code condition) with Android trace results? I want to know what happended with the whole process or better all processes on the device when some error timing condition is satisfied. Mar 19 13:31:26 xviv: why does it often crash? Mar 19 13:33:38 nseidm1: he's using an asynctask and not controlling its life-cycle Mar 19 13:34:08 xviv: dont you want an OnItemClickListener Mar 19 13:34:22 dmonjo: http://stackoverflow.com/questions/7978076/http-live-streaming-on-android-4-ice-cream-sandwich you could search Mar 19 13:34:38 dmonjo: you have been asking same question here for days Mar 19 13:35:25 ^^ Mar 19 13:35:30 * kaneda^ changes java font family to comic sans Mar 19 13:35:32 my intent.setType("image\*"); doesn't work. startActivityForResult( Intent.createChooser( chooser , "Select photo..." ) , PICK_IMAGE ); still shows all files Mar 19 13:35:35 * kaneda^ watches the world burn Mar 19 13:35:38 Napalm: never gonna learn unless he knows why it crashes Mar 19 13:35:44 kaneda^: god help you Mar 19 13:35:52 Napalm: and ahhhhhh to AsyncTask Mar 19 13:35:54 Napalm: i want to, but i don't know why it won't work. Mar 19 13:35:56 nseidm1: 1M on 68HC? damn, that's a lot Mar 19 13:36:00 lov, my eyes!!! Mar 19 13:36:19 p_l: exactly what i said Mar 19 13:36:19 * kaneda^ changes it back to freemono Mar 19 13:36:22 did i wrote it right? --> http://pastebin.com/dXVkf4wy Mar 19 13:36:40 it's a weird bug, sometimes my font size doubles or halves in eclipse in java files Mar 19 13:37:04 xviv: I don't know, did you? Mar 19 13:38:44 StingRay_: no clear answers!!!!!!!! Mar 19 13:39:03 xviv: looks wroten wright Mar 19 13:40:32 sorry DC, it's me xviv Mar 19 13:40:49 nseidm1: lol Mar 19 13:41:21 !ping Mar 19 13:46:02 I want my text to be centred horizontally. I tried textAlignment center but it doesn't work Mar 19 13:46:20 marrrk: use gravity Mar 19 13:46:42 |center_horizontal? Mar 19 13:46:52 no Mar 19 13:47:02 android:gravity="center" Mar 19 13:47:21 okay Mar 19 13:48:21 * xqdzn scratching his backs. Mar 19 13:48:29 that works Mar 19 13:48:36 what's text-alignment for then? Mar 19 13:49:07 i dunno :| Mar 19 13:49:40 okay Mar 19 13:49:43 thank you anyway Mar 19 14:02:36 where is timroes Mar 19 14:03:22 Hi! I have a question about the SyncAdapter (I'm not very familiar with it) Mar 19 14:03:58 I have an app that supports both periodic (scheduled) syncs and user triggered ones (e.g. with requestSync or notifyDatasetChanged when the database is modified). What happens if the triggered sync starts when there is already a periodic one in progress. It will 1. cancel the ongoing sync, 2. not execute the triggered one or 3. execute the triggered one when the ongoing sync finishes - like a "pending syncs queue"? Mar 19 14:04:11 From here http://developers.androidcn.com/reference/android/content/AbstractThreadedSyncAdapter.html, I understand that the second sync won't be executed, but I still need it because it works on updated database information. Can I "reschedule" it if it fails? On the other hand, if I cancel the ongoing sync to let the new one execute, I might end up in an unstable state. So.. is there a "pending syncs queue" approach possible? Mar 19 14:06:50 i'm still figuring how to make dropdown menu from selected item in listview. Been using viewstub but lov told me that's not appropriate purpose for viewstub :| Mar 19 14:08:16 xqdzn: that's not what I told you Mar 19 14:08:36 xqdzn: I told you that the fact that your listener was getting discarded was probably because it was a viewstub. Mar 19 14:08:53 whether that's true or not, it's a possibility, and you should consider just having a viewgropu that you set to HIDDEN by default Mar 19 14:09:01 That said, instead of doing a "drop down" strongly consider having a context menu Mar 19 14:09:05 i.e. long press on an item Mar 19 14:09:32 lov: context menu = opening list item in another layout? Mar 19 14:09:40 sort of but not really. Mar 19 14:09:49 http://developer.android.com/reference/android/view/ContextMenu.html Mar 19 14:10:04 see also the "context menu" section of http://developer.android.com/guide/topics/ui/menus.html Mar 19 14:10:35 thankieeesss ^.^ Mar 19 14:10:38 i'm reading... Mar 19 14:12:25 so, if i want to create stuff like that i should using viewgroup and set view.gone by default? Mar 19 14:12:55 and set appear whenever i click the item? Mar 19 14:13:01 coco89: you going to be asking him questions that are in that NFC stuff thats on d.android.com ? Mar 19 14:13:10 cause it's all there Mar 19 14:13:32 xqdzn: if you want to implement views within your listview rows that are hidden or shown based on some particular reason, yes. Mar 19 14:13:40 context menu ... think: right click on an item in your desktop file manager Mar 19 14:13:55 StingRay_: I don't understand the documents, they explain things in a way that makes it even more complicated than the actual problem Mar 19 14:13:58 xqdzn: however, if you're trying to show a menu to the user, I VERY STRONGLY advise you to use a Context Menu instead, as it's something that will fit the user's mental model, and it requires minimal work on your part. Mar 19 14:14:12 I'm using a SimpleCursorAdapter as an adapter for a SearchView, it seems to be working well excapt, it doesn't show suggestions untill the second character has been entered into the SearchView, and i can't seem to find any way to tweak the threshold so it will shoe sugggestilns imidiatly. Does anyone have any idea on how to solve this? Mar 19 14:14:23 coco89: then you need to go though the basics on java and then the training/getting started Mar 19 14:14:23 capella: okay i got it Mar 19 14:14:47 coco89: what StingRay_ said. If you don't know Java, you can't effectively do Android, period. Mar 19 14:14:52 coco89: or as I said every 5 min you will be here, reliant on people answering questions that if you take the time Mar 19 14:14:55 you would know Mar 19 14:14:57 lov: but, i guess the UI/UX will be better just like twitter for android maybe :| Mar 19 14:15:03 I know java Mar 19 14:15:07 I'm a java brogrammer Mar 19 14:15:14 people here make less of an effort to answer things that are in the docs Mar 19 14:15:15 brogrammers are the worst developers Mar 19 14:15:25 coco89: then the Android docks should make sense Mar 19 14:15:25 more of an effort to answer problems Mar 19 14:15:32 lov: and fun target pracitce Mar 19 14:15:34 problems != lack of going through the basics Mar 19 14:15:34 *practice Mar 19 14:15:54 ++target practice ... Mar 19 14:15:54 hi. i am calling the youtube player from an intent. but i want to bookmark the last playing position when pressing back key. how can I achieve that? Mar 19 14:16:16 superlinux: I kind of doubt that you can. Mar 19 14:16:19 "Well you forgot to call the thing before you called the other thing" ... go read the docs Mar 19 14:16:30 coco89: so if you right click on your class and override the "IMPLEMENTED" method of onNewIntent ? how come it lets you if you have it there ? Mar 19 14:16:33 lov, aha ok. Mar 19 14:16:35 there is a hint Mar 19 14:16:49 superlinux: I assume that you mean "pressing back key" as in "from within the youtube app" in which case you really can't control the app behavior, unless there's an API that would do that. Mar 19 14:17:00 it's possible that there's some extra you could pass in your intent but I have no idea what it would be. Mar 19 14:17:03 go through the training, it will make your life soooo much easier Mar 19 14:17:44 anyways.. it's just free app and i am making my tutorials ad based. Mar 19 14:17:56 thanks again, you guys are rawks! Mar 19 14:18:53 Has anyone come across an issue with ImageView where the cropped content ended up being smaller than the defined ImageView size? Mar 19 14:21:38 alexfu: you mean smaller that the physical dimensions ? Mar 19 14:21:51 * monsti is smaller then is physical dimenstion Mar 19 14:21:52 as in pixel res Mar 19 14:21:54 after a FragmentTransaction, I .post a Runnable to fill the added Fragment. After some orientation changes, the fragment is not found any longer (sItemFragment == null). I even added .executePendingTransactions() to the fragment transaction, but that only makes it work a few more times... oO http://pastebin.com/4pPabaTm Mar 19 14:22:13 You guys comment your xml files? Mar 19 14:22:46 Quacked: I dont comment nething, at all, I dont like myself too much so why make it easy on some1 I dont like Mar 19 14:22:57 Quacked: no reason not to, if it helps. Mar 19 14:25:33 StingRay: either that or the imageview grew in size. On a Hdpi device, it looks fine. But on an Xhdpi device the image is smaller in width than the ImageView. ImageView is in a GridView. Mar 19 14:26:07 alexfu: well would you really want to scale an image upwards beyond the native resolution ? Mar 19 14:26:13 or would that look……. sh*t Mar 19 14:26:16 :) Mar 19 14:26:52 Which icon does the developer dashboard use? all my games are fine, but one of them has the green android robot for an icon Mar 19 14:27:06 the 4 icons in my binary are changed, and the "hi res icon" in the dev dashboard is there Mar 19 14:27:15 This is google play btw Mar 19 14:27:44 the app is com.cubicfrog.imakelollipops if that matters Mar 19 14:28:03 I'm puzzled Mar 19 14:29:13 also, on the store, it appears fine, et least for me , from play.google.com Mar 19 14:29:15 StingRay: no. However, the image was scaled down to a larger size than the ImageView, and with scaleType=cropCenter, I would have expected the image to fit inside the ImageView perfectly. Mar 19 14:29:58 cropCenter does just that, keep at native image res and crop if needed ? Mar 19 14:30:15 fitCenter will scale it down to fit view bounds but not scale it up Mar 19 14:30:22 I think these statements are true btw Mar 19 14:30:27 you should check though Mar 19 14:30:34 I've had this in logcat every time I upload to the device. Any ideas? "error opening trace file: No such file or directory (2)" Mar 19 14:31:03 afaik this is from your rom Mar 19 14:31:07 you can't change this Mar 19 14:31:30 my S3 has a similar stupid message on logcat from a system app Mar 19 14:31:31 Really? Cool Mar 19 14:31:47 alexfu: fitCenter would scale it up Mar 19 14:31:55 it was centerInside i was thinking about Mar 19 14:32:00 Quacked: sometimes it's safe to ignore a warning ;) Mar 19 14:32:24 so centerInside = never scale up, always scale down to bounds Mar 19 14:32:50 fitCenter = scale it either way to fit view bounds, thus making it look crap if smaller than the view Mar 19 14:32:51 :) Mar 19 14:33:39 monsti: its an error though, not a warning :P Mar 19 14:34:55 cropCenter = keep image at native res and only draw what it can inside the view bounds (from the center) Mar 19 14:38:59 StingRay_: the docs make the definitions very clear but, what I am seeing doesn't seem to match up with the docs... Or just not understanding correctly Mar 19 14:39:05 so if I understand correctly, its normal to increase versionCode by 1 for every new release, but versionName you set to 1.01 / 1.1 etc? Mar 19 14:39:14 alexfu: screenshot ? Mar 19 14:39:24 Quacked: yes Mar 19 14:39:36 StringRay_: gimme a min. Mar 19 14:40:10 i'm working with dialogfragments, when someone clicks on a listview list item, the data that is contained there, i want to appear in some edittexts in the dialogfragment. where should i look to find documentation on how to do it? thanks Mar 19 14:42:47 when the dialog fragment is created, does the underlying activities OnPause() method run? could i save them in a bundle? I've never really worked with bundles, so i would appreciate some help. thanks Mar 19 14:42:57 Eppo: you can grab a new instance of dialogFragment and pass in a bundle, or, you could pass in an id so the fragment can lookup the data, or you could have a method that you call on the dialogFrag to pass it that befor calling show, or you could implement an interface so the dialog could ask the parent activity something or…..well, thats all I could think of Mar 19 14:44:57 StingRay_: imgur.com/80SnLyC -- the bounds of the ImageView is highlighted. Mar 19 14:45:20 thanks StingRay_, that definitly helps. Mar 19 14:46:06 alexfu: so you have centerCrop here ? Mar 19 14:46:17 and the image size is much bigger than the view size ? Mar 19 14:47:26 StingRay_: indeed. The image size is probably 100px larger in both directions. Mar 19 14:47:34 and you only want to show a portion of that image right ? Mar 19 14:47:35 there is an imageView property called adjustViewBounds set that to true Mar 19 14:49:19 Did I mention, the imageview is inside a gridview? I wonder if gridview is adjusting the width of the imageview to fit the screen? Mar 19 14:50:32 StingRay_: I'll try the adjustViewBounds. Mar 19 14:51:29 not sure thats it tbh Mar 19 14:51:57 I think the parent will be limiting it Mar 19 14:52:01 hmm, the emulator apparently was so shocked about my code that it rebooted! Mar 19 14:53:46 alexfu: there maybe another flag on the gridView something like clipChildren Mar 19 14:54:06 that to false, and adjustViewbounds to true Mar 19 14:54:12 thats all I can think of Mar 19 14:54:47 StingRay_: k, I'll try those things. Mar 19 14:54:52 Thanks Mar 19 14:55:18 Hi, I am having some trouble with ndk-build... I am buiding an application linking to an external static library. This is the error I am getting: /home/luis/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: error: /home/luis/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: incompatible target. Mar 19 14:55:18 Any Ideas ? Mar 19 15:03:41 Hi, I'm using an asynctask to set the adapter of a ListFragment. When the data is getting loaded, a loader icon appears on the screen. When i do the same thing with a ListActivity there is no icon. Whats causing this? Mar 19 15:05:19 Listfragment != listactivity .. that's what's causing it Mar 19 15:05:59 Any idea how i can get a loader image on the listacitivty? Mar 19 15:06:41 Add a loader icon.. hide it when you're done loading Mar 19 15:07:42 I have a table layout and I want one column to be as wide as the screen allows (minus the widths of the other columns) how do I do that? Mar 19 15:09:20 Any recommendations for an Android websocket client library that supports secure connections (wss://) ? Mar 19 15:11:25 ok so I have an actionbar with 2 sliding tabs, one's a text editor fragment, one's a web view. I take markdown from the text edit and convert it to html to put it in the webview Mar 19 15:11:50 except the webview only updates when I rotate the device Mar 19 15:12:14 any ideas on how to get it to update when I swipe back to it? Mar 19 15:20:27 content = (InputStream) url.getContent(); this line is giving me this error http://pastebin.com/pq96rg9M Mar 19 15:20:53 failed to connect to localhost/127.0.0.1 (port 80): connect failed: ECONNREFUSED (Connection refused) ... if i copy the url on the server i get an image (here's how url is constructed : url = new URL("http://localhost/evol/css/images/logoEvolobot.png"); ) Mar 19 15:21:01 s/server/browser/ Mar 19 15:26:06 eni: yeah ;) Mar 19 15:26:23 eni: "localhost" is the localhost of your device - not of your PC running the emulator Mar 19 15:26:35 eni: that's different to M$ toolchains Mar 19 15:26:45 yes you are right Mar 19 15:26:47 10.0.2.2 Mar 19 15:26:48 my bad Mar 19 15:30:34 monsti: can i show gifs in android? Mar 19 15:30:50 hi guys, im in an agrument with a friend about coding for iphone and android. He thinks that ios-apps got better quality because the devs has to pay some sort of license. And that apple will call you and ask you a couplle of rutine questions. Mar 19 15:33:01 is it easier to get apps up on play-store then it is on apple-store? Mar 19 15:33:07 yes Mar 19 15:33:12 $25 put up an apk Mar 19 15:33:13 done Mar 19 15:38:36 In an android table layout can I get specific cells without first finding the table row? Mar 19 15:39:01 cHarNe2: why would that cause better quality Mar 19 15:39:28 C0deMaver1ck: is it more difficult on app store? Mar 19 15:39:48 which? Mar 19 15:39:53 android or apple Mar 19 15:39:55 apple app store Mar 19 15:40:02 android is called google play :P Mar 19 15:40:16 I know it costs $100 for a developer license to get in the store and to test on a real device Mar 19 15:40:28 that is all Mar 19 15:40:38 ah, yeah, I remember that Mar 19 15:40:59 and you need a bloody mac to dev on Mar 19 15:41:30 yup Mar 19 15:41:42 well, I have Macs anyway, just my computer of choice Mar 19 15:41:51 except the PC I built myself Mar 19 15:44:29 cHarNe2: just let him go on believing that; what harm does it cause you? And it's pretty hard to prove it one way or the other so just don't bother Mar 19 15:49:16 https://code.google.com/p/android/issues/detail?id=17423 <- bugs like this are so annyoing :( >1 hour until I found out that my code was not really the problem... Mar 19 15:51:40 if i make a theme that extends Theme.Holo, my dialogfragments are not properly showing their contents anymore (textview is not properly wrapping around text) . What could cause this? Mar 19 15:52:16 https://gist.github.com/anonymous/90dbbeac2b303b5ecc2f Mar 19 15:53:28 so the activity is using the correct theme, but when it starts a dialogfragment that fragment is not showing itself properly Mar 19 15:53:36 mikedg: he thinks that the license keeps bad-quality apps away. leaving only quality apps in the apple-store-thing Mar 19 15:53:57 why would that be the case? Mar 19 15:54:25 Hello, Anybody knows if I can pass Extras to an Activity that was just reordered to front? Mar 19 15:55:02 onNewIntent Mar 19 15:56:07 Note that getIntent() still returns the original Intent. You can use setIntent(Intent) to update it to this new Intent. Mar 19 15:56:18 ? Mar 19 15:56:29 correct Mar 19 15:56:38 on onNewIntent you should use setIntent Mar 19 15:56:52 And where do I get this intent? Mar 19 15:56:54 Ahh. Mar 19 15:57:01 from the method signature? Mar 19 15:57:15 It receives the passed intent? Mar 19 15:57:30 it's the param in onNewIntent Mar 19 15:58:21 Ok, let me try. Mar 19 15:58:24 Thanks ): Mar 19 15:58:25 :) Mar 19 15:58:44 hamsteroabroz Mar 19 15:59:29 mikedg: you tell em' Mar 19 16:01:34 member:nseidm1, Thanks! It worked! Mar 19 16:04:14 im trying to connect to a logitech google tv using adb connect. i when i try it, it tells me connected to 10.88.189.134:5555, but then when i do adb devices i dont see it listed Mar 19 16:04:20 any ideas? Mar 19 16:05:34 LuxuryMode: are you doing: adb connect 10.88.189.134:5555 Mar 19 16:05:51 nope Mar 19 16:05:57 just the ip Mar 19 16:05:59 that would be why then Mar 19 16:06:02 it then tells me 5555 Mar 19 16:06:06 oh Mar 19 16:06:11 then it should be ok Mar 19 16:06:30 yup it literally says connected, then adb devices shows me nothing Mar 19 16:06:43 LuxuryMode: adb kill-server Mar 19 16:06:47 then try again Mar 19 16:06:50 tried that a million times Mar 19 16:06:52 as with any adb stuff Mar 19 16:07:02 all i do is kill-server; start-server all day ;) Mar 19 16:09:47 Hi Mar 19 16:10:37 Napalm, looks like i need to add my computer's ip under debugger ip address on the device Mar 19 16:10:47 LuxuryMode, are you root? Mar 19 16:11:10 is the activity which is used as entry point of the app, always the last activity that is closed? or can it happen that the activity is removed from the stack before the app is closed? iam looking for a good place to close th database connection, which is created as a singleton Mar 19 16:11:34 LuxuryMode, try adb kill-server; start-server as root and than adb devices Mar 19 16:11:34 Stummi, nope Mar 19 16:11:45 using an unrooted logitech revue Mar 19 16:11:53 looks like i just needed to add my comp's ip address Mar 19 16:11:55 im in now Mar 19 16:20:50 I'm trying to create a basic chat app. What should I use for displaying the text if I want text to be able to colored and formatted? Mar 19 16:22:08 TextView, I think. Mar 19 16:22:12 Anybody? Mar 19 16:22:18 textview, or webview Mar 19 16:23:33 I'll try a webview. I looked at a webview before, but I don't think it can format parts of text.' Mar 19 16:23:50 in the action bar, the three dots thingy, what's that called? Mar 19 16:25:11 icon Mar 19 16:27:13 NullEntity: webview is probably not what you want (it's very resource-intensive) Mar 19 16:27:35 What is the best practice for displaying ads in an app? Should I be trying to reuse ads through multiple activities by using static variables (keeping in mind that most ads need an activity context) or creating new ads for each activity entered? Mar 19 16:28:20 NullEntity: I seem to recall that SpannableString{,Builder} lets you change formatting midstream Mar 19 16:28:58 ooh, that looks like what I want. Thanks! Mar 19 16:30:23 having a tough issue here with fragments. i am using a map fragment, and displaying custom overtiles on it via a tile provider i've implemented. that is all fine, BUT, when i change orientation or lock scree, the overlays disappear. i was able to fix that by calling setReatainInstance(true) on the mapfragment, but then the buttons to hide and show layers don't have any effect Mar 19 16:32:33 it seems that in the first case (when retainInstance is not set to true) i end up with a duplicate fragment showing, and in the second cause somehow the 'links' to the fragment are broken... making my head hurt Mar 19 16:37:54 lol, looking around for a couple hours. The xml file makes me can't use onItemCickKistener. Mar 19 16:38:07 Nobody has ads in their apps? Mar 19 16:40:40 xqdzn: correct; you have to set that in java Mar 19 16:40:56 osxorgate: overflow menu Mar 19 16:41:19 JakeWharton: yeh thanks found it.. not sure how to make it a custom color yet Mar 19 16:41:32 theme attribute Mar 19 16:41:47 i had something like #ffff0000 Mar 19 16:41:53 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/themes.xml#L321 Mar 19 16:42:00 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/styles.xml#L1178 Mar 19 16:42:09 hey guys, I'm designing a layout, and I havea textview below another textview, but I think there is too much space between them Mar 19 16:42:26 evanc: i'm following IDE sugestion, it tells me to put textIsSelectable to be 'true' that's make listener won't work Mar 19 16:42:31 and if I try to move it a little closer to the one on top, it jumps right over it. Is there a way to adjust the spacing? Mar 19 16:42:31 i dunno why Mar 19 16:42:36 Rob|boR: well, that's just, like, your opinion, man. Mar 19 16:42:38 currently it's setup with this, " android:layout_below="@+id/textView1" Mar 19 16:42:38 " Mar 19 16:43:25 well I want to know if I can adjust the position of the textview in reference to textView1 by dp Mar 19 16:44:06 that's what margins are for Mar 19 16:45:05 so the top textview has this, android:layout_marginTop="16dp" , you mean for the textview I want below it, use the same thing, but adjust the dp accordingly? Mar 19 16:45:06 I'm trying to catch VPN connection/disconnection changes. The ConnectivityManager doesn't broadcast an intent on this occasion, and I don't seem to catch "vpn.connectivity" nor "com.android.vpn.server.CONNECTIVITY_CHANGE" either. Anything else that could be broadcasted? Mar 19 16:46:31 heyeeee Mar 19 16:47:14 huwz yall doing? Mar 19 16:47:21 * boytoy wishes everybody great success with their app today :P Mar 19 16:47:40 * xqdzn says thank you Mar 19 16:47:50 JakeWharton: i end up at ic_menu_more.png but that's a circle with a triangle, not three dots Mar 19 16:48:02 =) Mar 19 16:49:24 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable-xhdpi/ic_menu_moreoverflow_normal_holo_light.png Mar 19 16:54:52 Does it really take 48 hours until google takes my 25 $ and I may release my app? Mar 19 16:55:24 I have a textview in a listview, currently I'm able to adjust the spacing from the top margin, but not the bottom. I've attempted android:layout_marginBottom but no difference. How would I go about adjusting the spacing from the bottom? Mar 19 16:58:20 Waynes1: it took a long time for me Mar 19 16:58:45 HI folks, someone told me that it is impossible to use the TAP mode of the module TUN.ko, someone could tell me why or point me to some documentation please ? thank you ! Mar 19 16:58:53 Greetings,... anyone use C# and unity3d? Mar 19 16:59:08 acidfoo: it's not possible w/out rooting Mar 19 16:59:16 acidfoo: because it's not exposed / built into roms Mar 19 16:59:36 dragorn, ok thank you Mar 19 16:59:37 acidfoo: you can do it fine w/ a custom rom, but that's outside the scope of this channel at least, we're primarily appdev focused Mar 19 16:59:53 yeah, my goal wasn't to hack anything ;) Mar 19 17:00:09 but just understand why it was like that ;/ Mar 19 17:00:18 because I needed it to do something Mar 19 17:00:22 that I'll probably don't do Mar 19 17:00:25 I suspect it's largely because the android system didn't have infrastructure for simultaneous multiple interfaces Mar 19 17:00:38 it's wifi or cell, more or less Mar 19 17:00:50 ok, thank you for the inputs :) Mar 19 17:00:53 there wasn't tun support until android 4 either (well, not exposed as a public vpn api anyhow) Mar 19 17:01:58 figured it out Mar 19 17:02:45 Novus: probably not. Mar 19 17:02:58 Hello Mar 19 17:03:51 i'm trying to find a cost effective android phone for my family, can anyone suggest an unlocked or tmobile phone with minimum 1GB RAM, 512 ROM around 100$ Mar 19 17:04:21 nexus4 Mar 19 17:04:31 blognewb: ask in #android Mar 19 17:04:47 sorry Mar 19 17:05:46 monsti, nexus 4 costs like 400$ Mar 19 17:08:20 dragorn: well, I have to be patient then :S Mar 19 17:08:38 blognewb: well ;) that's what i suggest for my family Mar 19 17:09:32 id rather get a note ii if i decide to splurge > 400$ Mar 19 17:10:30 eww Mar 19 17:11:25 Can I start (and wait for) a new activity in OnCreate or do I need to create an AsyncTask? Mar 19 17:11:50 I'm not even sure what you're suggesting with starting and waiting for a new activity, but I'm inclined to say "start an async task" ._. Mar 19 17:12:29 Probably. I have a chat activity and I need to log in first. Mar 19 17:12:38 hmph Mar 19 17:12:45 yeah, it's probably worth calling startActivityForResult in that case Mar 19 17:13:11 hi Mar 19 17:13:55 is it possible to disable the output of ddms? iam using colored cat and dont need it, and ddms alwas opens soem windows in eclipse... Mar 19 17:15:02 Kilian]: yeah, there's a hieroglyphic that you need to toggle which basically says something like "pop up on errors" Mar 19 17:15:11 I think it's like a piece of paper with some red on it Mar 19 17:16:42 How can I get the resource id of the _current_ theme in code? Mar 19 17:17:08 evanc: in the settings or where did you found that? Mar 19 17:17:20 Kilian]: in the ddms pane Mar 19 17:18:45 is there any simple way to display long text as 'The long text nam..' in textview? Mar 19 17:19:39 orientation change cuases an active to be fully destroyed and recreated yes? Mar 19 17:19:47 activity* Mar 19 17:22:27 evanc: cant find it Mar 19 17:23:06 in sqlite or sql for that matter is there any way to order by field but the place something such as a LIKE "xx%" so that lets say I'm searching for names LIKE "%ray%", I would want names that "start with" "ray%" ordered 1st ? Mar 19 17:23:15 does that even make sense the way I typed it ? Mar 19 17:27:10 I'll just ask again seeing as how this channel seems a bit more active now. Mar 19 17:27:36 When implementing ads in an app is it best practice to using singletons and static variables or to create new ads for each activity? Mar 19 17:31:42 best practive is very subjective Mar 19 17:31:45 *practice Mar 19 17:32:02 jdawes: whats the trade off Mar 19 17:33:40 Is there an intent flag that recreates the root activity if the user presses the back button? Mar 19 17:34:23 has anyone been able to get proguard to run on debug builds? Mar 19 17:34:37 from eclipse, that is Mar 19 17:34:57 ping canadiancow Mar 19 17:36:07 Hey Guys :) Mar 19 17:36:27 How can i "register" my App for an URL? Like the Youtube-App? Mar 19 17:36:50 styler: intent filter Mar 19 17:37:21 can you explain some more? or give an example? Mar 19 17:37:35 http://stackoverflow.com/questions/1609573/intercepting-links-from-the-browser-to-open-my-android-app Mar 19 17:38:44 speakingcode-wor: I really don't know. I was wondering if using the singletons and static variables was bad considering that most ads need to run using an activity context. Mar 19 17:39:01 speakingcode-wor: Also, I was wondering what people do in general. Mar 19 17:39:53 jdawes: what would you gain from singleton? Mar 19 17:40:45 a persistent use of resources Mar 19 17:41:23 styler2go: here's the youtube android manifest http://pastebin.com/yVWbaHg8 Mar 19 17:41:49 styler2go: you can see all their intent filters to intercept different paths to go to different activities Mar 19 17:41:59 i can copy those or? Mar 19 17:42:17 speakingcode-wor: less code I suppose Mar 19 17:42:46 line 138. to 191, or? Mar 19 17:42:51 styler2go: yeah, just modify it to your needs. it's pretty simple Mar 19 17:42:53 151* Mar 19 17:43:06 check out line 103 - 113 Mar 19 17:43:13 that's how they intercept when going to the playlist Mar 19 17:43:43 i think i woudl need 138 to 151 Mar 19 17:43:53 http://puu.sh/2kwrR What could be causing my action bar to display the activity name rather than the app name? Mar 19 17:44:05 yeah, so you would set the schemes to what you want Mar 19 17:44:10 and you add the hosts you want Mar 19 17:44:14 and any path prefixes Mar 19 17:44:19 just like they do there Mar 19 17:44:20 i want exactly the same as the youtube app :D Mar 19 17:44:24 NullEntity: you gave your activity an android:name Mar 19 17:44:31 questions about compiling android from source should be directed to what chan? Mar 19 17:44:38 anyone got any ideas about my issue? http://stackoverflow.com/questions/15465019/viewpager-with-gridview-invalid-index-error Mar 19 17:44:40 styler2go: ha, then yeah, just use theirs Mar 19 17:44:49 well and truly stumped Mar 19 17:44:50 nice... thank you :) Mar 19 17:45:44 adding that in should make your app an option when they go to watch youtube videos Mar 19 17:45:56 Ash__: no logcat? Mar 19 17:46:25 and... how i have to handle this filter inside code? Mar 19 17:46:52 http://stackoverflow.com/questions/1609573/intercepting-links-from-the-browser-to-open-my-android-app like there? Mar 19 17:48:01 stop hacking the world Mar 19 17:48:02 yes Mar 19 17:48:52 hack the planet! Mar 19 17:49:16 i want to hack other planets Mar 19 17:49:17 much more challenging Mar 19 17:49:23 they call me the Plague, "Hi Mr. The Plague" Mar 19 17:49:57 that sysadmin guy totally was Penn from Penn and Teller Mar 19 17:50:12 gotta break out that da Vinci virus Mar 19 17:50:18 Does anyone here use Admob? Has anyone not yet gotten their payment this month? Mar 19 17:50:39 so since this seems to bet he only active channel.... anyone have any advice for repo sync stalling on me and not resuming? Mar 19 17:51:39 ive tried the systcl change and also tried running repo with -j1 to see if the parralel downloading was the hangup and same issue Mar 19 17:52:02 speakingcode-wor, holy shit, I can't believe I didn't realize that before. Mar 19 17:52:39 updated with logat: http://stackoverflow.com/questions/15465019/viewpager-with-gridview-invalid-index-error Mar 19 17:52:43 logcat* Mar 19 17:52:51 NullEntity: yeah. dunno if it's really him, but totally could be Mar 19 17:52:59 It is. I just checked IMDB. Mar 19 17:53:05 o wow Mar 19 17:53:22 this changes _everything_ Mar 19 17:53:25 it is him Mar 19 17:53:29 ;) Mar 19 17:53:32 check the credits Mar 19 17:53:40 me and my gf argued over it too Mar 19 17:54:18 Ash__: does the same thing happen if you rotate the screen ? Mar 19 17:54:24 styler2go: what do you mean "inside code" Mar 19 17:54:25 erm, device Mar 19 17:54:31 i always just said it jokingly lol, didn't bother to ever check that it actually was Mar 19 17:55:47 yup just same error in landscape Mar 19 17:55:53 speakingcode-wor: What was Penn in? I missed it.. Mar 19 17:55:55 sry i dont know how to reply in irc Mar 19 17:56:01 hackers Mar 19 17:56:36 Ash__: you know your activity gets destroyed/paused when leaving it and same thing on rotating it ? Mar 19 17:56:50 birbeck, Mar 19 17:56:57 yo Mar 19 17:57:04 Bleeptech: he was the sysadmin of the gibson in hackers Mar 19 17:57:18 Ash__: look at the activity lifecycle explinations on d.android.com Mar 19 17:57:26 speakingcode-wor: Thx.. Just found it on IMDB.. Mar 19 17:57:26 canadiancow: sorry, didnt see your gtalk message Mar 19 17:57:33 i sent it after the irc message Mar 19 17:58:48 it seems like the errors with the onclick listner bot knowing which arraylist to get position on Mar 19 17:58:53 not* Mar 19 18:00:40 i g2g but will be back on it a few hours, please post on stack any sugestions on debugging Mar 19 18:00:56 well just look at the lifecycle stuff Mar 19 18:01:01 will do Mar 19 18:01:03 your list has no entries Mar 19 18:01:06 as in ArrayList Mar 19 18:01:29 im using a json file which i split for each viewpager page Mar 19 18:01:43 so i can show 12 per page etc Mar 19 18:01:59 but i think its the splitting of the json which causes the onlick not to know the position Mar 19 18:02:33 right g2g Mar 19 18:09:42 question: I've got a splashscreen which asks a service for data to be loaded into an SQLite database from an internet service. When it's done, it sends back a broadcast saying "it's all ok, proceed" and then I can proceed calling the next activity. My question is: how can I create the next view's adapter in the splashscreen before going in the next view, so that when the user sees the next view it's all ready and nothing has to still Mar 19 18:09:42 be loaded? Mar 19 18:12:15 elegos Mar 19 18:12:21 speakingcode-wor: Mar 19 18:12:23 what do you mean by all ready? Mar 19 18:12:55 adapter generates views on the fly, so do you mean the data that backa an adapter? Mar 19 18:13:24 I mean I want to load the next view's adapters in RAM before exiting the splashscreen activity Mar 19 18:13:46 so that I can apply them on-the-fly with virtual no-time to load contents first (i.e. downloading images from the net) Mar 19 18:13:54 use a static singleton class and initialize the adapters/backing data there Mar 19 18:14:05 then in the 2nd activity, access them via the static singleton Mar 19 18:14:10 may you please link something about singletons in java? Mar 19 18:14:25 google.com?q=static+singleton+java Mar 19 18:14:35 thanks... Mar 19 18:14:36 very simple pattern Mar 19 18:15:03 basically you create a class with a static member, call it, say, Instance Mar 19 18:15:15 make the constructor private, so that only the class can consctruct itself Mar 19 18:16:04 class abc { private abc Instance; } right? Mar 19 18:16:23 nah but close Mar 19 18:16:27 and then I call the abc.getInstance which creates a new object only once Mar 19 18:16:40 and returns Instance Mar 19 18:17:24 yeah something like that Mar 19 18:17:48 ensure that getInstance will call the constructor if the instance is null. Lazy singleton pattern. Mar 19 18:17:58 thanks :) Mar 19 18:18:03 and Instance must be static, right? Mar 19 18:18:19 yes Mar 19 18:18:27 thanks :) Mar 19 18:18:35 in java you actually don't need to do the lazy initialization and such Mar 19 18:19:12 just say private ABC Instance = new ABC(); then getInstance() { return Instance; } Mar 19 18:19:31 the class loader will lazy initialize it on its own when you first make reference Mar 19 18:20:00 this is thread safe, also Mar 19 18:20:10 niceee lil caveat Mar 19 18:21:23 http://www.javaworld.com/javaworld/jw-04-2003/jw-0425-designpatterns.html good resource about various implementations of singleton pattern in java and why the simplest one turns out best Mar 19 18:24:37 #7, good call Mar 19 18:25:54 what if params are desired for the constructor? Mar 19 18:27:55 add them in and pass arguments in the instantiation Mar 19 18:28:02 tho Mar 19 18:28:15 a class that only instantiates ONE instance of itself is not likely to need params Mar 19 18:29:37 if it needs to know about some other values it can check them in the constructor Mar 19 18:30:39 Hello Everyone Mar 19 18:31:33 Has anyone ran into a problem where you can not run a signed app installed from say google drive? Mar 19 18:33:37 laveur: nope. did you go to the app settings on the device and allow apps from unknown sources? Mar 19 18:34:40 It installs but I can not open it once its done Mar 19 18:34:53 The open button is greyed out and the done button is the only one enabled Mar 19 18:36:18 (And yes allowed from unknown sources is enabled) Mar 19 18:37:13 laveur: whats the app do and did it ever launch ? Mar 19 18:37:28 Yes Mar 19 18:38:02 we recently changed the default activity for the launcher but the settings look right... Mar 19 18:38:32 did you happen to take out the inten.LAUNCHER ? Mar 19 18:38:37 intent* Mar 19 18:38:50 No its set in the right activity Mar 19 18:38:55 both of these: Mar 19 18:38:57 Mar 19 18:39:24 under the activities intent-filter Mar 19 18:39:43 thats a bit odd then :) Mar 19 18:39:51 Yeah I knoq Mar 19 18:39:57 *know Mar 19 18:40:02 I can't find anything wrong with it :( Mar 19 18:40:21 could it be a adt/eclipse old f*ked cache thing ? Mar 19 18:40:33 full project re-buld / clean ? Mar 19 18:40:37 I did a clean before exporting the signed version Mar 19 18:41:00 Though hang on it might not have been signed with some changes I made Mar 19 18:42:44 laveur: did you uninstall the debug signed one? Mar 19 18:43:09 Yeah I had to it yelled at me :-/ Mar 19 18:43:54 i would have expected it to; just trying to narrow down weird behavior Mar 19 18:44:11 Its listed under manage apps if that helps any Mar 19 18:45:25 also here is the relevant config from the manifest: Mar 19 18:45:26 https://gist.github.com/laveur/abd56c36d4809e1988c1 Mar 19 18:45:48 Let me know if that can't be viewed I hit create secret and not sure if anyone can view it that has a URL Mar 19 18:51:25 laveur: remove the element Mar 19 18:51:39 put that in a separate block Mar 19 18:52:31 OK Mar 19 18:52:37 Question about using the google api client from android. I'm using the com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential class to launch related queries. I'd like to be able to tweak the underlying network defaults it uses. Whats happening is that on a network error, it takes an absurd amount of time (15 minutes) to time out, and I'd rather pop a message to let the user enable the network. Here's the Mar 19 18:52:37 stack trace on a stuck thread: http://pastebin.com/TVd0CTVW and the relevant bit of code: https://code.google.com/p/google-api-java-client/source/browse/google-api-client-android/src/main/java/com/google/api/client/googleapis/extensions/android/gms/auth/GoogleAccountCredential.java?r=3c184aa40c831ac944c5958fef12f98954424a5f#186 Mar 19 18:53:16 Basically -- what's the right way to do this? I have a feeling I'm stumbling in the dark on the appropriate way to use the GoogleAccountCredential implementation Mar 19 18:53:56 The sample code provided unfortunately does the exact same thing; and it's also kinda buggy vis-a-vis some of the things it does. Mar 19 18:54:24 evanc: Thanks I would have never figured that out! Mar 19 19:00:23 Thanks for your help everyone Mar 19 19:19:32 the android sdk manager has a weird bug where the tree view gets corrupted when you open and close top level elements Mar 19 19:19:56 i so badly want to scream out loud right now Mar 19 19:20:05 so for example, when it starts up, there is a folder structure - some are open and some are closed Mar 19 19:20:17 Extras, for example, is open Mar 19 19:20:35 now if i open - say - "Android 2.2" - which has 3 child elements Mar 19 19:20:48 Extras loses 3 of its last elements Mar 19 19:20:49 lol Mar 19 19:20:54 does anybody test this stuff ? Mar 19 19:21:04 apparently you do Mar 19 19:21:19 * g00s should get paid Mar 19 19:24:16 g00s: patches welcome! Mar 19 19:24:35 i'l file a bug report Mar 19 19:24:54 maybe a bug in SWT? Mar 19 19:25:45 Hey guys...question....I was able to run my app on this one android device Mar 19 19:25:48 just got a new android device Mar 19 19:26:03 and I'm seeing an error "No active compatible AVDs or devices found." Mar 19 19:26:24 similarly, on that device, I don't seem to have a developer options where I can enable usb debugging Mar 19 19:26:44 ProgramMax: What version of android? Mar 19 19:26:54 jelly bean Mar 19 19:27:18 I didn't add my google account to it. Think that might be it? Mar 19 19:27:52 ProgramMax: I remember seeing something about dev options being hidden on newer versions Mar 19 19:28:42 ProgramMax: Here it is.. http://www.androidcentral.com/how-enable-developer-settings-android-42 Mar 19 19:29:19 thx Mar 19 19:29:45 oh my god Mar 19 19:30:21 * Bleeptech blinks.. Mar 19 19:30:33 so...yeah... Mar 19 19:30:37 "You have tapped it 1 time" Mar 19 19:30:41 "You have tapped it 2 times" Mar 19 19:30:48 ... "You are now a developer" Mar 19 19:31:19 Who me? Well if you feel the need to build a statue make it solid Gold.. >:) Mar 19 19:31:29 haha Mar 19 19:31:35 i've created a custom which applies setScaleY to the children as they are added Mar 19 19:31:44 when would be the right place to do that? Mar 19 19:31:55 ive done it in the overridden addView Mar 19 19:32:01 but think it might not be the best place Mar 19 19:32:12 eclipse is still saying "No active compatible AVD's or devices found." Mar 19 19:32:14 LuxuryMode: onFinishInflate? Mar 19 19:32:26 oh awesome Mar 19 19:32:28 thanks evanc Mar 19 19:32:31 ProgramMax: *nix or windows? Mar 19 19:32:34 thats what i was looking for! Mar 19 19:32:41 windows Mar 19 19:33:01 this google android client api looks, like most things googly, a work in progress. sigh. Mar 19 19:33:25 ProgramMax: Pop open a cmd window and try 'adb devices' Mar 19 19:34:15 List of devices attached (empty) Mar 19 19:34:53 ProgramMax: did you install the android usb drivers? Mar 19 19:35:04 seemed to auto install them Mar 19 19:35:18 ProgramMax: and turn on debugging on the device? Mar 19 19:35:21 ProgramMax: USB cable plugged in? / Right cable? (Moto DroidX) hates most cables. Mar 19 19:35:27 yup Mar 19 19:35:34 restart adb? Mar 19 19:35:38 comp recognized it Mar 19 19:35:55 birbeck: Re :) Mar 19 19:36:31 where is the SDKs stored on pc? Mar 19 19:36:39 it says i got 2.3 but i cant find it heh Mar 19 19:37:04 bitgod: in your sdk-root under platforms Mar 19 19:37:24 /platforms/10 (or 9) Mar 19 19:37:30 where is the root? Mar 19 19:37:34 i cant locate heh Mar 19 19:37:44 whereever you installed the android sdk Mar 19 19:38:11 i dont rememeber Mar 19 19:38:13 defaults Mar 19 19:38:30 there is no default install location Mar 19 19:38:39 well maybe with the windows installer, never used it Mar 19 19:38:48 bitgod: Try searching.. Windows has that function at least.. Mar 19 19:39:43 dont search google :) Mar 19 19:39:51 doing now :) Mar 19 19:39:55 hd :P Mar 19 19:40:57 evanc: do you have any preference for a git history viewer like gitk ? Mar 19 19:41:15 wondering what googlers use over there, if anything Mar 19 19:41:18 search-ms:displayname=Search%20Results%20in%20Local%20Disk%20(C%3A)&crumb=location:C%3A%5C\platforms Mar 19 19:41:19 this? Mar 19 19:41:24 ah fuck it Mar 19 19:41:25 g00s: git-log(1) :P Mar 19 19:41:30 heh Mar 19 19:41:42 the repos are getting pretty damn big :) Mar 19 19:41:44 is NDK it or no? Mar 19 19:42:35 oh I hate eclipse Mar 19 19:42:37 bitgod: Maybe.. Not sure. Mar 19 19:42:46 ahhhh found it, I think Mar 19 19:42:53 by default, this connected as a media device MTP Mar 19 19:42:58 needed to connect as a camera PTP Mar 19 19:43:05 ProgramMax: not tue Mar 19 19:43:07 true Mar 19 19:43:12 as in not true Mar 19 19:43:15 ugh Mar 19 19:43:17 well, it worked Mar 19 19:43:38 StingRay_: I'm wishing for 2-4 more cores and another 6 gig of RAM for IntelliJ.. Mar 19 19:43:49 C:\Program Files\Android\ndk\android-ndk-r8d\platforms Mar 19 19:43:51 I WIN!!!!! Mar 19 19:43:56 :D :D :D :D Mar 19 19:44:02 Bleeptech: well I have a good enough machine Mar 19 19:44:05 uh Mar 19 19:44:11 which one is 2.3? Mar 19 19:44:13 just attempting some socket connection stuff to Maya Mar 19 19:44:18 and it's pissing me off Mar 19 19:44:23 i see android-3 4 5 8 9 10 12 14 Mar 19 19:44:54 * Bleeptech is stuck on an Optiplex GX-620 with 1.5gb of ram.. Mar 19 19:45:22 bitgod: 2.3 is Froyo I think Mar 19 19:45:26 bitgod: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Mar 19 19:45:32 bitgod: http://source.android.com/source/build-numbers.html Mar 19 19:45:44 im using IntelliJ IDEA Mar 19 19:45:48 cool Mar 19 19:45:52 im at new project = > Project SDK Mar 19 19:45:57 but Android 2.3 isnt listed Mar 19 19:46:02 and i know i dl'ed it :( Mar 19 19:46:03 pick 9 Mar 19 19:46:16 since you're refusing to click our links :) Mar 19 19:46:25 or read Mar 19 19:46:39 ok i saw the build list Mar 19 19:46:43 Bleeptech: for the record, 2.2 was Froyo (API 8). 2.3 is Gingerbread (APIs 9 & 10) Mar 19 19:46:52 I'm trying and listening to my PC suck up every dust bunny for 5 miles when the cpu load hits 150+%. Mar 19 19:47:26 * StingRay_ has enclised liquid system cooling Mar 19 19:47:34 enclosed* Mar 19 19:47:38 what is NDK Mar 19 19:47:41 vs SDK Mar 19 19:47:43 evanc: TY.. I forgot because I killed every copy of Froyo on the premises.. :) Mar 19 19:48:05 bitgod: go read http://d.android.com Mar 19 19:48:08 some people still use 2.3 Mar 19 19:48:13 so i cater to 2.x and 4.x Mar 19 19:48:29 http://developer.android.com/training/index.html Mar 19 19:48:35 good place to start Mar 19 19:49:06 bitgod: Yeah, I'm working 9 and up. Mar 19 19:49:20 s/9/api 9 Mar 19 19:49:55 i cant find the fucking sdks on my pc Mar 19 19:50:00 apparently the ndks arnt it lol Mar 19 19:50:11 and i know i installed sdk since it shows 4.0 4.1 and 4.2 heh Mar 19 19:50:28 time to check sdk manager Mar 19 19:51:08 bitgod: If you were on a *nix system I'd tell you to 'find / -name sdk | grep platforms' Mar 19 19:51:54 i already tried "search" in windows 7 Mar 19 19:51:59 it found hsit lol Mar 19 19:52:01 bitgod: you could also just run 'type android' in a shell window Mar 19 19:52:12 if you where using bash Mar 19 19:52:16 this is win 7 not linux clever :P Mar 19 19:52:22 death to windows! Mar 19 19:52:23 dir /s *platforms* Mar 19 19:52:25 and i put 'platforms' for search query Mar 19 19:52:30 ok ill try that Mar 19 19:53:06 another new oreilly book; this one on the android tools http://shop.oreilly.com/product/0636920025320.do Mar 19 19:53:27 anyone her fuck w/ intellij idea? Mar 19 19:53:28 hhee Mar 19 19:53:30 ere here Mar 19 19:54:06 I do not fuck with intellij idea. Mar 19 19:54:08 sorry. Mar 19 19:54:17 I have something else I use for that. Mar 19 19:55:02 i found my shit Mar 19 19:55:07 was in AppData\Local\Android Mar 19 19:55:18 * StingRay_ cares Mar 19 19:55:20 i have a gallery inside of a custom view and the parent custom view has focus Mar 19 19:55:28 lov: You're never gonna get an advertising check from FleshLight if you don't push the product.. :) Mar 19 19:56:07 i have a gallery inside of a custom view and the parent custom view has focus, but i'd like to be able to move the items in the gallery (horizontally obviously) when that gallery has focus. how can i do this? Mar 19 19:57:30 and if i simply request focus on the child gallery, then my custom view no longer works as it should (which handles dpad nav, etc) Mar 19 19:58:04 viewpager position start at 0 or 1> Mar 19 19:58:06 ? Mar 19 19:58:54 easy to test that Ash__ , but it should be 0 Mar 19 19:59:02 almost all indices are 0 indexed Mar 19 19:59:33 i know i could test but it would be quick if someone already knew :P Mar 19 19:59:37 also how do u reply liek that? Mar 19 20:00:25 has anybody here tried out admob? Mar 19 20:01:00 yup Mar 19 20:01:02 i use it Mar 19 20:01:19 kewl Mar 19 20:01:23 Ash__, like what? Mar 19 20:01:32 like that lol Mar 19 20:01:34 in orange Mar 19 20:01:37 Ash__: Are the ads pretty? Mar 19 20:01:44 Ash__: its coming up white on my end Mar 19 20:01:57 :( Mar 19 20:02:00 Ash__: do they convert better than regular adsense, and do users mind? Mar 19 20:02:33 u never seen admob ads in apps? Mar 19 20:02:36 adsense ads are definitely not pretty and they're impossible to customize unless you have over 25 million visitors and can enter the adsense premium club (some serious discrimination going on) Mar 19 20:03:10 Ash__: nop afraid not, but i take it they're more like popups rather than inline content? Mar 19 20:03:34 i would likn to my app in play store but dont know ifs that allowed Mar 19 20:03:37 (from the few screenies i were able to find) Mar 19 20:03:50 on free apps i see no problem with ads Mar 19 20:03:58 aslong as there not full screen forced ads Mar 19 20:04:14 hmmm Mar 19 20:04:24 yea good point Mar 19 20:04:28 take guess the movie app in the play store Mar 19 20:04:42 they just added new ads to there free app which are full screen videos and force you to watch Mar 19 20:05:07 Ash__: youtube does the same thing, but they already did that on the desktop version Mar 19 20:05:10 so not cool man Mar 19 20:05:22 yeah but you can skip most Mar 19 20:05:30 i can no longer skip em :/ Mar 19 20:05:36 plus you have to be onlike with desktop youtube Mar 19 20:05:38 the skip option is chosen by the person buying the ad-space Mar 19 20:05:44 they can probly pay extra to disable skip Mar 19 20:05:46 but forcing video ads over 3g is bad Mar 19 20:05:47 ah i see Mar 19 20:05:53 clever, 2words, adblock plus Mar 19 20:05:54 :D Mar 19 20:06:04 bitgod: doesnt effect the android app :P Mar 19 20:06:12 o Mar 19 20:06:13 lol wont find it in play store Mar 19 20:06:41 jesus Mar 19 20:06:48 intellij idea is taking forever to do something Mar 19 20:06:52 my pc isnt that f'n old Mar 19 20:06:56 8GB of ram, i5 at min Mar 19 20:07:04 macbook pro? Mar 19 20:07:10 a pc Mar 19 20:07:14 ahh lol Mar 19 20:07:14 pc != mac :P Mar 19 20:07:18 bitgod: eclipse sometimes gets stuck in an inf loop on me also, ive left it sit for an hour before and it didnt recover Mar 19 20:07:24 lol i just upgraded to macbook pro Mar 19 20:07:32 timroes not here yet? :P Mar 19 20:07:35 opens eclipse in 10 seconds Mar 19 20:07:37 i think its in a memmory loop Mar 19 20:07:40 neither app is worse in that area :P Mar 19 20:07:43 my dell takes over 1 min Mar 19 20:07:44 coco89: i'm here :) Mar 19 20:07:46 the memory space is climbing Mar 19 20:07:48 memory used Mar 19 20:07:53 g00s: lol, oh dear :P Mar 19 20:08:00 up to 900MB of memory Mar 19 20:08:03 jesuschrist Mar 19 20:08:05 killed i Mar 19 20:08:06 t Mar 19 20:08:16 thats normal for eclipse, lol Mar 19 20:08:40 k i restarted it, its behaving now Mar 19 20:08:59 242MB Mar 19 20:09:02 much better lol Mar 19 20:09:28 wtf Mar 19 20:09:31 it froze Mar 19 20:09:36 soon as i tried to rename my package Mar 19 20:10:01 bitgod: intellij or eclipse ? Mar 19 20:10:30 intellij Mar 19 20:10:38 nm its fine now Mar 19 20:11:35 I have a problem with on Android 2.3 Mar 19 20:11:45 It hides the button! Why? Mar 19 20:11:59 goddamn Mar 19 20:12:06 even selecting [+] is slow Mar 19 20:24:05 my viewpager dosnt populate the first slide :( Mar 19 20:25:30 Ash__: but the index is sorted ? Mar 19 20:25:31 :) Mar 19 20:26:05 could sort index error so im changing how i build the list Mar 19 20:26:33 bloody confusing Mar 19 20:26:37 did you look at why your arrayList was 0 when returning to the activity ? Mar 19 20:27:06 and look at the activity lifeCycle stuff ? Mar 19 20:27:07 yeah i think it was because it was being destroyed Mar 19 20:27:18 indeed Mar 19 20:28:00 so ive changed it so that im passing what page in on and then for the adaptor to populate it so that what ever lsit is in view should have a populated arraylist Mar 19 20:28:08 except my bloody first page isnt populating Mar 19 20:29:21 weird thing is page 0 and 1 gets called but not 2 yet pages 1 and 2 gets there lists populated but not 0 :( Mar 19 20:30:00 Ash__: Sounds like an indexing problem. Mar 19 20:30:04 :( Mar 19 20:30:21 can i get the current viewpager page thourgh adapter. Mar 19 20:30:58 Ash__: You should be able to make it spit it out in the log. Mar 19 20:34:20 it only ever tells me position when im on page 2 Mar 19 20:34:37 when i swipe to last page nothing gets spat tol ogs Mar 19 20:34:42 to logs* Mar 19 20:35:46 does not a viewPager only buffer/preload positions +/- current page Mar 19 20:35:55 or rather I think it does Mar 19 20:36:13 does it load all pages or just whats coming into view? Mar 19 20:36:28 like I said, I always assumed 1 +/- Mar 19 20:36:42 that shouldn't be a problem though Mar 19 20:36:57 prob more to do with your adapter Mar 19 20:37:24 how my adaptor works is i pass the position of the viewpager Mar 19 20:37:41 my adaptor then make startno and endno vars from it Mar 19 20:37:54 so page 0 will be startno = 0; endno=12 Mar 19 20:38:09 page 1 will be startno = 13; endno = 24 etc Mar 19 20:39:13 but not all pages are being populated Mar 19 20:41:19 ok when app loads pages 0 and 1 are called Mar 19 20:41:34 when i swipe page 2 gets called Mar 19 20:41:44 so 1 +- sounds right Mar 19 20:42:43 does viewpager call the pages asyncrously? Mar 19 20:49:40 does anyone have any idea why charles proxy wouldn't detect audio streamed with the android media player? it should still be an http request, I would think, but it doesn't show up and can't be throttled Mar 19 20:49:44 can android display PNG? Mar 19 20:49:50 including transarency in it Mar 19 20:49:52 yup Mar 19 20:49:55 ok :) Mar 19 20:58:45 Ash__: last q, do u find your admob ads convert better than traditional ads? Mar 19 20:58:53 adsense or whatever? Mar 19 20:59:11 people tell me they do but.. would really like to hear from actual devs Mar 19 21:02:57 only ever used admob ads Mar 19 21:03:33 how do u reply to people in orange Mar 19 21:10:59 my viewpagers loads everything properly now when i pass page Mar 19 21:11:15 my issue not is that the onclicklistner only references the last page listview Mar 19 21:11:37 and every now and again spits out index error Mar 19 21:12:40 admob, to orage, to viewpagers, to onclick listeners, finishing with exception handling Mar 19 21:13:48 problem? Mar 19 21:15:40 hi guys Mar 19 21:15:41 huh? Mar 19 21:15:47 wha? Mar 19 21:16:05 i have a question on thread - i need a desing pattern for adding job to a priority queue from a mainthread Mar 19 21:16:08 Ash__: only ever what u mean bro? Mar 19 21:16:20 monsti: cool what u got so far? Mar 19 21:16:28 u lost me lol Mar 19 21:16:32 got some screenies? Mar 19 21:16:34 monsti: ExecutorService? Mar 19 21:16:35 any idea what java collection supports threadsafe priority quques? Mar 19 21:16:40 Ash__: only ever used admob ads Mar 19 21:16:50 i dun undastand :/ Mar 19 21:16:52 What's wrong can be with is a nightmare UX wise :) Mar 19 21:17:25 i would know as ive only eve rused admob in my apps Mar 19 21:17:30 wouldnt* Mar 19 21:17:36 monsti: I don't know if any of them support priorities out of the box, but it shouldn't be too hard to make one that does Mar 19 21:17:39 Ash__: oh like that, cool Mar 19 21:17:45 lol Mar 19 21:17:50 also how u reply in orangelol Mar 19 21:17:50 hehe :D Mar 19 21:17:57 evanc: just master -> slave start in queue - that's all i need ;) Mar 19 21:18:10 boytoy: why? Mar 19 21:18:41 Dalv_Vokicz: inconsistencies in the way it interacts with the user across platforms.. not to mention the user has to perform an action to see all the other actions Mar 19 21:19:20 Does anyone know how I can get the autoplay attribute of the video tag to work in an Android 4.2+ WebView? Mar 19 21:19:40 something similar to setMediaPlaybackRequiresUserAction on iOS perhaps? Mar 19 21:21:15 evanc: thank you for your help - i have to rethink my problem :) Mar 19 21:27:12 boytoy: I can't understand why it worked day ago, and after some refactorings something became wrong. Mar 19 21:27:24 Can it be IntelliJ's problem? Mar 19 21:27:29 how can i use a fragment to replace another one when it is the subclass of a fragmentactivity? en example. http://pastebin.com/46Z4JaiE Mar 19 21:29:27 this is the issue im now having http://stackoverflow.com/questions/10387380/handling-click-events-for-listview-in-viewpager-android Mar 19 21:29:41 can someone explain the answer thats been posted Mar 19 21:35:40 Anybody want to tell me how to get to Environment.getExternalStorageDirectory() from a library classfile? Mar 19 21:37:18 ... call it? Mar 19 21:38:43 Tried that.. Cant resolve Mar 19 21:40:21 Bleeptech: link to the android sdk, i.e. don't make it a java project Mar 19 21:41:44 cketti: I've got an 'import android.os.Environment;' in there.. Mar 19 21:44:57 that doesn't do magic things, you know Mar 19 21:45:43 Bleeptech: what are you using to build the library? eclipse? Mar 19 21:48:15 how do i undo property changes from a view that occurred as a result of apply an ObjectAnimator? Mar 19 21:49:23 looks like i just have set the values back manually... Mar 19 21:54:58 cketti: I have that, But i'm in IntelliJ right now. Mar 19 21:57:15 Bleeptech: well, i can't help you there. but make sure you link against e.g. "Android 4.2.2" and not "JRE System Library" Mar 19 22:03:57 finaly got my viewpager and listviews working Mar 19 22:19:00 Ash__: you here ? Mar 19 22:19:51 depending on what IRC client you use, you can use "tab" completion of a users name Mar 19 22:20:15 then depending on the alters that people have set, it may or maynot ping then, or growl or something Mar 19 22:21:41 yup Mar 19 22:26:16 StingRay_: ahh cheers Mar 19 22:26:44 limechat btw Mar 19 22:34:32 Now where was I before I got lagged to death? Oh yeah, I was trying to get to getExternalStorageDirectory() from a library.. Mar 19 22:36:25 Ash__: you on osx ? Mar 19 22:36:38 yeah Mar 19 22:36:46 try Colloquy Mar 19 22:37:01 cause I used lineChat till g00s got me on this Mar 19 22:37:03 :) Mar 19 22:37:56 downloading now Mar 19 22:37:58 limeChat * Mar 19 22:39:15 StingRay_: what apps you developed? Mar 19 22:43:37 Colloquy is defiantly more user friendly Mar 19 22:46:40 is it possible to awake a device on deploy? Mar 19 22:47:07 press the power button, jugs Mar 19 22:47:19 automatically :P Mar 19 22:47:36 pressing a power button…i so annoying lol Mar 19 22:47:47 well it depends on what kind of deploy. If the user installs it, you can assume the device is awake Mar 19 22:47:54 or are you talking about Eclipse ? Mar 19 22:48:08 Eclipse(intellij) Mar 19 22:49:24 in the first few lines of onCreate of your main activity, do something like: if (BuildConfig.DEBUG) getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Mar 19 22:50:15 interesting Mar 19 22:50:19 * jug6ernaut didn't think of doing it in app Mar 19 22:51:50 or maybe FLAG_TURN_SCREEN_ON, and add FLAG_DISMISS_KEYGUARD Mar 19 22:52:12 so it'll show up even if device locked Mar 19 22:52:20 jug6ernaut: note that there are issues with setting flags to do it in > FROYO Mar 19 22:52:34 hey android devs Mar 19 22:52:37 the dismiss keyguard that is Mar 19 22:52:50 yeah I've never gotten that to actually work Mar 19 22:53:01 * Chainfire uses a keyguardlock, which Eclipse keeps complaining is deprecated Mar 19 22:53:08 Chainfire nice ill try that, Quacked, this is for me testing so compatibility shouldn't be an issue :) Mar 19 22:53:19 how do you guys organize your projects within Eclipse? Mar 19 22:53:27 if(Build.VERSION.SDK_INT > Build.VERSION_CODES.FROYO) { KeyguardManager myKeyGuard = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); myLock = myKeyGuard.newKeyguardLock("NinjaTimer"); myLock.disableKeyguard(); Mar 19 22:53:52 Towny how do you mean Mar 19 22:54:06 Do you have one workspace per project? Do you just put all your projects in one workspace? How do you handle third party libs? git submodules? just add them as projects in the workspace? Mar 19 22:54:39 hmm this is eclipse specific i guess.. i use intellij Mar 19 22:54:46 intellij>eclipse Mar 19 22:54:52 generally if it can go in a module, i put it in a module Mar 19 22:55:11 but for eclipse, one workspace per project, and then a workspace for 3rd party libs, then just reference the libs from ur project workspace Mar 19 22:55:28 jug6ernaut: one workspace per project ? Mar 19 22:55:32 wtf Mar 19 22:55:33 previously i had 10 projects in 1 workspace but the only benefit is that you can find code in other files quicker Mar 19 22:55:40 I have hundreds of projects in the same workspace Mar 19 22:55:48 well not hundreds, dozens Mar 19 22:55:52 way to cluttered Mar 19 22:56:01 * jug6ernaut did that at first Mar 19 22:56:14 with some exceptions, some groups of projects have separate workspaces Mar 19 22:56:19 * Bleeptech drools at the thought of playing in Chainfire's code archive.. Mar 19 22:56:20 but after like 30 projects i was like f-this Mar 19 22:56:32 but most projects I often work with are in the same workspace Mar 19 22:56:39 and do you check those workspaces in to git or whatever VCS you use? Mar 19 22:56:50 git Mar 19 22:56:51 * jug6ernaut thinks Chainfire should blog more about his past projects Mar 19 22:57:20 Chainfire: Yeah, Really.. Brag, Er Blog. :) Mar 19 22:57:27 dunno about eclipse but intellij doesnt mix osx and windows projects well Mar 19 22:57:33 ain't nobody got time for that Mar 19 22:57:41 (i dev on win and osx) Mar 19 22:57:45 I would think it should be possible to clone a project in git, import the project/workspace and hit 'Run on device' Mar 19 22:58:03 xorgate every project I've imported from my windows pc has worked fine, granted most were win eclipse -> intellij Mar 19 22:58:11 Chainfire: I bet I could learn a lot from what you've written. Mar 19 22:58:11 * frankdrey is hardcore. I don't use an IDE Mar 19 22:58:17 :p Mar 19 22:58:21 so ur not hardcore? Mar 19 22:59:05 jug6ernaut basically the problem is paths.. compat lib in c:\sdk\blah versus ~/blah/blah Mar 19 22:59:18 oh yea Mar 19 22:59:21 towny it is easily managable with EGit (Eclipse Git plugin) though that has some quirks. It generally works pretty well. If you're a git guru you might prefer cmdline though Mar 19 22:59:22 that never ends well lol Mar 19 22:59:52 all paths should be relative to the project Mar 19 22:59:54 towny with EGit I have a Git Repo view listing all repos I use... add repo --> right click --> import project, and its in your workspace. Mar 19 23:00:20 jug6ernaut maybe i could interest you in my idea plugin : http://plugins.jetbrains.com/plugin/?idea&pluginId=7146 Mar 19 23:01:19 xorgate that actually looks absolutely awesome Mar 19 23:01:29 oh it is :) Mar 19 23:01:35 makes life easier Mar 19 23:01:54 just doesn't look very polished but hey i'm a coder Mar 19 23:02:15 lol Mar 19 23:02:34 how on earth do u install plugins on intellij Mar 19 23:02:35 you just gotta structure your filenames Mar 19 23:02:38 * jug6ernaut has never need to b4 Mar 19 23:02:45 settings > plugins > browse repo Mar 19 23:04:00 ah nice Mar 19 23:04:50 currently my settings http://i.imgur.com/SXixNwi.png Mar 19 23:06:05 is there regex case sensitive? Mar 19 23:06:20 the* Mar 19 23:06:23 dunno it's regular java regex Mar 19 23:06:45 probably then(i think) Mar 19 23:06:46 <-- not very good at that Mar 19 23:07:43 Chainfire u don't use intellij yet? Mar 19 23:11:56 jug6ernaut I actually installed it for the first time yesterday Mar 19 23:12:12 nice Mar 19 23:12:17 but I didn't see how to import multiple projects into a single workspace Mar 19 23:12:36 I'm not convinced I need or want it really Mar 19 23:12:44 I don't have that many problems with Eclipse Mar 19 23:12:57 i have zero problems with intellij :P Mar 19 23:13:11 u wouldn't ether :P Mar 19 23:13:12 i have a few :) Mar 19 23:13:17 xD Mar 19 23:13:32 this Verge article on Andy Rubin is pretty fascinating Mar 19 23:13:52 but the intellij guys are generally very responsive to bugreports Mar 19 23:14:04 intellij handles projects/workspaces a little differently then eclipse(not necessarily better) Mar 19 23:14:23 Chainfire: I'll be honest.. I switch back and forth.. Some things are easier on eclipse and some are easier on intellij. Mar 19 23:14:29 g00s: y u make me google that Mar 19 23:14:37 lol Mar 19 23:14:42 osxorgate: http://www.theverge.com/2013/3/19/4120208/why-andy-rubin-android-called-it-quits Mar 19 23:14:52 gracias Mar 19 23:15:24 "Google I/O is only two months away. Developers, who bought up all the tickets within an hour, are now more eager than ever to hear what Google has to announce. However, assumptions of a master plan may be overstated," Mar 19 23:15:32 hehe Mar 19 23:16:27 * jug6ernaut wonders why the general admission to google io doesn't have a programming competition or smt to get tickets Mar 19 23:16:41 It did in the past, no? Mar 19 23:17:19 there was a competition last year but that was weeks if not months after the normal ticket sale Mar 19 23:17:28 there might still be one Mar 19 23:17:43 check Google Developers and/or Android Developers daily just in case Mar 19 23:17:48 (on G+) Mar 19 23:18:30 Chainfire, I'm wondering why they don't do it for ALL admission(minus media) Mar 19 23:19:25 osxorgate now u need to make such a plugin for chrome :P Mar 19 23:19:38 because I doubt there are really 5000 developers waiting to go Mar 19 23:19:42 and hype, and hype Mar 19 23:19:44 and a little hype Mar 19 23:19:45 jug6ernaut: i dont really use chrome Mar 19 23:20:21 and while the conference was originally developer-centric, it is certainly interesting for many non-devs in the business as well, as well as enthusiasts Mar 19 23:20:34 chrome lacks some things i want that i find in opera Mar 19 23:20:36 heck, if there were 500 tickets with a programming contest, that would be epic win Mar 19 23:20:40 i heard this year it was going to have a lot of TV Mar 19 23:20:43 Google TV Mar 19 23:20:51 keep in mind, last year's contest only saw about 200 participants Mar 19 23:21:31 :| Mar 19 23:21:34 i didn't know that Mar 19 23:21:41 for 100 tickets Mar 19 23:22:06 then again Mar 19 23:22:17 last year, pretty much everybody I heard from who planned to go, actually managed to go Mar 19 23:22:24 no it was more Chainfire Mar 19 23:22:28 while this year it seems nobody at all has managed to get a ticket Mar 19 23:22:28 they screwed up and had to give out 350 Mar 19 23:22:38 to all 350 participants Mar 19 23:22:40 i'm going to send one of those telepresence robots Mar 19 23:22:48 canadiancow they gave to all participants, yes I know, I was one of the first to complain about the answer being wrong ;) Mar 19 23:22:55 hah Mar 19 23:22:58 i got the same wrong anser :P Mar 19 23:23:10 I seem to recall that the rankings only listed 200-250 people Mar 19 23:23:15 i already had a ticket though, so i gave that one to jake Mar 19 23:23:16 maybe it was 300-350 then Mar 19 23:23:26 what was the challenge yesterday Mar 19 23:23:35 there was achallenge yesterday ? Mar 19 23:23:44 .... Mar 19 23:23:47 last year* Mar 19 23:23:54 * jug6ernaut 's brain doesn't work right all the time Mar 19 23:24:30 jug6ernaut http://www.nick.pro/2012/04/19/googles-code-mistake-and-what-they-did-to-make-it-right/ Mar 19 23:33:05 Hi, I've got one of the cheap Android USB dongles with HDMI out, and couple of USB ports here. Thought I'd connect it up to a touchscreen monitor. It "works", but it treats the touchscreen as a mouse - so I have to drag the cursor around which is not intuitive. Is there an app to change this behavior that anyone knows of? Mar 19 23:36:16 Smashcat: If it was mine.. I'd root it then add the touchscreen driver. :) Mar 19 23:36:49 Chainfire bla math Mar 19 23:37:05 Bleeptech: Can't do that, there could be a LOT of them running an app if this works out :) Looking at .idc files, that seems the way to go at the moment... Mar 19 23:42:50 Hmm, looks like I need to add a new .idc file so Android will see the external touchscreen monitor as a "touch screen device" instead of a "pointer device" - then it should generate direct events instead of indirect :) Will be cool having a 24" touchscreen tablet :)) Mar 19 23:44:26 Smashcat: Yeah, but the battery life is gonna suck..LMAO.. Mar 19 23:44:53 Bleeptech: Heh, infinite battery life as long as its plugged in :) Mar 19 23:46:07 Got to prep some for evaluation for event installations. Should be ideal - much better than using a PC+monitor. Mar 19 23:58:40 Hey guys, so I'm making a music-based application, what would be the best way about persisting audio throughout activities? Mar 19 23:59:01 viiralvx: use a service Mar 19 23:59:54 JesusFreke: Mmmkay, but how does that work out with different layouts? Mar 20 00:00:04 what? Mar 20 00:00:09 viiralvx, have the service simply play the music Mar 20 00:00:13 a service has nothing to do with layouts Mar 20 00:00:24 and the regular activities control the service Mar 20 00:00:49 frankdrey: But then in other activities, like the home activity, there s a bar on the bottom that shows the song information, will that be updated via the Service as well? Mar 20 00:01:08 service doesn't use a layout since it's a version of your activity which runs in the bg, if you want info outside of app, then you would need to use an overlay Mar 20 00:01:12 you code it, you decide Mar 20 00:01:39 If I use a light theme and set a fade in/fade out transition for an Intent, the screen goes pretty dark in the middle of the fading (I guess because my theme set in xml is dark and I set the bright theme in code). Is my assumption right and can one fix that? Mar 20 00:03:27 viiralvx, you decide what your service updates. have the app activities and/or overlays interact with it Mar 20 00:03:36 Okay sounds good, second problem. I'm calling an IntentService from my Home Activity that is launched when a user searches for a song, which then builds a playlist built on that song and then switches to the PlaylistActivity and plays the first song in the playlist. This is used within a Dialog. When I do the same thing within the PlaylistActivity (building a new playlist using the Dialog box), I run into the issue of multiple songs p Mar 20 00:03:37 once and the last song not stopping, I debugged it and when the PlaylistIntentService is called from the PlaylistIntent itself, onCreate is always called. Why is that? Mar 20 00:05:54 items can be kept in memory between app starts; it's best in onCreate to check if the item you're instantiating already exists(is null) or not. That may or may not be your issue. Mar 20 00:11:41 Does anyone know how I get store/retrieve a string in xml without the styling tags being removed. For example, if I have Hello Joe then getResources().getString(R.string.foo) returns "Hello Joe" ? Mar 20 00:12:12 rather than stripping the styling and returning "Hello Joe" Mar 20 00:14:26 very valid questions Mar 20 00:14:30 *question Mar 20 00:15:15 did ADB v1.0.31 lose the -d option? Mar 20 00:16:14 g00s: are you around? Mar 20 00:16:32 hey capella Mar 20 00:16:41 what version of adb do you have? Mar 20 00:16:58 my v1.0.31 adb install seems not to recognize a -d option Mar 20 00:17:13 1.0.31 Mar 20 00:17:39 meh .... just upgraded adb and I cant prove -d ever existed in previous versions Mar 20 00:18:02 mine works Mar 20 00:18:12 adb -d shell Mar 20 00:18:20 cisus: I just ran a check if it is null or not and it failed. :/ Mar 20 00:18:28 sure that 'adb devices' shows legit hw :P ? Mar 20 00:18:45 |adb install| has a -d option ... ? Mar 20 00:19:17 and yes to the other Mar 20 00:19:55 adb -d install ? Mar 20 00:20:13 yep .... -r also but thats valid for me still Mar 20 00:20:40 anyone experience with putting apps on amazon's market? can one just upload the same .apk? Mar 20 00:20:51 booooo osxorgate Mar 20 00:20:51 our build system wants to use a -d for "version downgrades" Mar 20 00:20:58 booo! Mar 20 00:21:30 adb help says WHAAAAAAAAAT? -d ???? Mar 20 00:21:57 |adb install| specifically Mar 20 00:22:01 capella: so you are saying that install took an arg -d also , that was different than the main adb -d :P Mar 20 00:22:11 yes Mar 20 00:22:15 i dont remember that Mar 20 00:22:51 ah ... got the build person looking over here ... brb Mar 20 00:23:26 maybe the '-d' is hanging out with Google Reader Mar 20 00:24:29 heh! looks like our recent build system change needs backing out .... Mar 20 00:24:45 oh yeah capella "-d: Allow version code downgrade." Mar 20 00:24:59 thats it ! but mine fails Mar 20 00:25:50 the docs says its there, but adb help doesn't Mar 20 00:26:27 yep :P Mar 20 00:26:31 is a Layout mandatory as part of the View hierarchy? Mar 20 00:26:46 can I do setContentView(new TextView) for example Mar 20 00:26:53 capella: maybe -r made it redundant Mar 20 00:26:56 so I was surprised, our build guy is surprised... Mar 20 00:27:09 yah - if I use -r all is well Mar 20 00:28:01 he'd added -d to avoid errors in downgrades but new adb version might have mucked him up Mar 20 00:28:04 thats a docfix for canadiancow ! Mar 20 00:28:21 and a WIN for me \o Mar 20 00:29:06 thanks g00s Mar 20 00:30:08 (gotta love bleeding edge >) ) Mar 20 00:30:15 g00s, i can fix all you want, but if they dont get reviewed/approved... Mar 20 00:46:42 how can i replace a fragment in a specifc tab? when i call replace, the fragment spans all the tabs Mar 20 00:46:47 Well, timroes has been a let down today... Mar 20 00:46:50 he didn't show up Mar 20 00:46:51 *hmph* Mar 20 00:46:52 :p Mar 20 00:48:21 * coco89 awaits remark from g00s :P Mar 20 00:50:42 coco89: you not gonna ask the same question are you ? Mar 20 00:50:56 why does my onNewIntent() not work ? Mar 20 00:55:19 StingRay_: i've had a look at the docs Mar 20 00:55:25 still working on it but i'm getting nowhere Mar 20 00:55:48 thats cause you have not copied the examples Mar 20 00:55:55 and/or gone through training Mar 20 00:56:10 i even told you hours back what to look at Mar 20 01:04:02 wow, Tegra 4 with Kepler GPU and CUDA support Mar 20 01:05:13 I thought I had a new java today Mar 20 01:05:15 again Mar 20 01:05:23 but was new cuda + 10.8.3 Mar 20 01:08:12 the CM guys dont want to touch the SGS4 Mar 20 01:10:28 and HTC is having serious problems with their suppliers; when their supplier says your not a tier-1 manufacturer, thats a problem Mar 20 01:10:45 and those are the g00s notes for today :) Mar 20 01:12:54 i knew 2 out of 3 Mar 20 01:12:58 is that good ? Mar 20 01:13:04 :) Mar 20 01:13:13 didnt know the htc thing Mar 20 01:13:41 the CM project has disowned the "CM" statement on the GS4... Mar 20 01:14:44 basically said individuals are free to comment on devices, but CM does not comment on device compatibility, or upcoming device support Mar 20 01:16:38 I read the CM thing on xda, normally they are not a "jump on it quick" kinda outfit Mar 20 01:28:25 honestly does it even matter anymore Mar 20 01:28:27 fuck cm Mar 20 01:28:43 most of the roms have CM inspired features Mar 20 01:29:02 an seem like they are more reliable than cm Mar 20 01:32:01 CM is trying for stable AOSP+features+device support, not mad performance or other unstable things Mar 20 01:35:35 ron_frown: did you see the new stuff for sqlite 4? http://sqlite.org/src4/doc/trunk/www/design.wiki Mar 20 01:36:45 key value store ehe? Mar 20 01:38:10 g00s I had an epiphany today you might be interested in =) Mar 20 01:38:23 * g00s is interested in epiphanies ;) Mar 20 01:46:38 I think there should be easier ways to get maya friendly QT libs setup in python though Mar 20 01:47:13 well tbh I think the maya/devkit should have an entire resource tree for all this stuff Mar 20 01:59:38 Hi Mar 20 02:23:38 can anyone tell me how i can go about replacing a tab? Mar 20 02:24:08 connect a bluetooth keyboard and press the tab button Mar 20 02:24:54 iam using some constants from a xml file via context.getResources().getInteger(R.integer.Name), is there another way to retrieve the values without the need of a context? Mar 20 02:25:00 sillygoose: you mean in your source code ? Mar 20 02:25:09 i would liek to get a constant before the onCreate() Mar 20 02:25:25 g00s, yes Mar 20 02:25:44 sillygoose: well, if you go to eclipse preferences, and search for tab, you will see all the places you can change that Mar 20 02:25:49 Kilian]: getApplicationContext() if available Mar 20 02:25:53 there are 3 or 4 places Mar 20 02:26:08 you will want to change it in the java code style Mar 20 02:26:28 changing tabs dynamically at runtime, not replace keywords Mar 20 02:27:04 oh lol, nm i thought you meant something else Mar 20 02:27:24 JesusFreke set me up for that mental frame :) Mar 20 02:27:30 haha. sorry :) Mar 20 02:27:41 I didn't have a clue what he was talking about Mar 20 02:28:05 tabs on an actionbar Mar 20 02:30:57 even hiding the tabs would be fine, when i click on an item Mar 20 02:31:11 kakazza: getApplicationContext() threws a nullpointerexception, so there is no way? Mar 20 02:39:36 Kilian]: so why exactly would one need to get constants before the onCreate method? Mar 20 02:42:09 to set a value from a constant to a variable that has to be created before the onCreate to make it an attribute of the activity class, because its used in some inline onclicklistener classes too Mar 20 02:42:33 i can make a pastebin Mar 20 02:45:23 my curretn solution https://gist.github.com/stubb/67a81522d141a2e5e184 creating it in line 11 but cant access it in L54 because i reassign the variable in L30 Mar 20 02:52:57 I dont know why but when I think gist, I hear jizzt Mar 20 02:55:25 which android source branch is recommended for use? master or the latest numbered branch? Mar 20 02:55:33 (I need the source for cross compiling something) Mar 20 02:56:35 depends Mar 20 02:56:40 google says head Mar 20 02:56:57 but head is like dev and I've found actually building a realiable OS from head is a no go Mar 20 02:57:25 head? is that master? Mar 20 02:57:49 yes Mar 20 02:57:56 ok, thanks Mar 20 02:58:00 so maybe I should try android-4.2.2_r1 instead? Mar 20 02:58:15 are you building it for specific hardware? Mar 20 02:58:20 no Mar 20 02:58:33 Hi, when I create an application with a service, and inside the service I have a thread, why the thread doesn't inherits the manifiest permissions? Mar 20 02:58:50 yeah I'd go with that then Mar 20 02:58:55 ok, thanks **** ENDING LOGGING AT Wed Mar 20 02:59:58 2013