**** BEGIN LOGGING AT Wed Mar 20 02:59:58 2013 Mar 20 03:01:07 Syaoran-kun: uh, I think it should Mar 20 03:01:54 So how can I give permissions to the thread? Mar 20 03:02:37 I don't think you should have to Mar 20 03:03:22 Syaoran-kun: what are you trying to do? what isn't/is happening? what permissions are you talking about? Mar 20 03:04:01 good questions... Mar 20 03:05:23 I have an activity that triggers a service that have a thread and so a looper. I lost the GPS use permission. Mar 20 03:05:48 thats not right Mar 20 03:06:08 your package gets that permission; so your thread has it too Mar 20 03:06:37 conversely, if your thread doesn't have permission, your package doesn't either ;) Mar 20 03:07:36 mmm... I delete the thread and obviously the looper and the app works just fine, one time. Mar 20 03:09:01 Any looper option for the service without using a thread? Mar 20 03:35:37 Any ideas? Mar 20 03:44:19 is there any way to manually advance an ObjectAnimator by some percentage of the total animation time? Mar 20 03:53:35 LuxuryMode: can't you just do some division? Mar 20 03:53:48 you choose the values that you animate between with an ObjectAnimator Mar 20 03:54:43 yeah i know cisus, but once you set it and start then it traverses those values Mar 20 03:54:54 but im trying to synchronize that animation with a Scroller Mar 20 03:55:17 where i want to advance that objectanimator with the percentage of the full scrollY Mar 20 03:55:47 just use setIntValues or setFloatValues() to set new values to animate between on your ObjectAnimator Mar 20 03:55:59 or if that failed for any reason, you could instantiate a new one and replace the old Mar 20 03:56:58 that sounds reasonable, but still wont synchronize precisely with the Scroller's getCurrY Mar 20 03:57:33 it will if you do setFloatValues(getCurrY / maxCurrY); Mar 20 03:57:54 cisus, oh that's not a bad idea Mar 20 03:57:55 thanks Mar 20 03:57:56 ! Mar 20 03:58:08 then you may need to do a setupStartValues() and setupEndValues() followed by animation start() Mar 20 03:58:19 cisus, gotcha Mar 20 03:58:27 not sure if that's required or not, I haven't worked with the class before Mar 20 03:58:32 right Mar 20 03:59:38 so call start as soon as i want to begin and then continuosly call setFloatValues? Mar 20 04:00:09 well, whenever there is a scroll position change you would need to call that to update the values of your animator Mar 20 04:00:21 right and then call start again? Mar 20 04:00:40 test it and see if another start() is required Mar 20 04:03:22 yeah i'll give it a shot Mar 20 04:03:24 thanks cisus Mar 20 04:05:08 When creating a sqlite database through SQLiteOpenHelper, is there any reason why the tables created in the onCreate() callback arent created by the time execution hits the rest of the activity's initialisation routine ? Mar 20 04:05:46 np Luxury Mar 20 04:06:25 push: are you referring to the class initialization method? Mar 20 04:06:40 onCreate executes after your class initiates Mar 20 04:07:54 so do your accessing in onCreate instead if you need to make sure your data hasn't been disposed; or create the tables in your initiliazation method before attempting to access Mar 20 04:21:47 cisus: you're right, init in onCreate works great Mar 20 04:21:49 thanks man Mar 20 04:26:47 you're welcome Mar 20 04:32:54 Hey guys, on a rooted device, is it possible to have a script to be run in init.d without locking the boot process ? Mar 20 04:33:07 & Mar 20 04:33:13 that is the answer. Mar 20 04:33:19 hmn... Mar 20 04:33:25 somehow I recall having tried that and it didn't work Mar 20 04:34:02 but seriously that's not what this channel is for Mar 20 04:34:28 I have a script which loops waiting for a getprop variable to be set (through an apk of mine), and I need it to be run in init.d, but using myscript.sh & made it wait until my loop finished which is not what I want Mar 20 04:34:32 oh Mar 20 04:34:41 what's the channel for this kind of black magic then? xD Mar 20 04:34:51 #android-root Mar 20 04:34:52 i bet it'd say in the topic Mar 20 04:35:10 oh duh, my bad Mar 20 04:35:21 no, he must be presented with a clickable channel link presented on a silver plate Mar 20 04:35:33 i said presented twice for some reason Mar 20 04:35:35 you know, those wouldn't be bad either xD Mar 20 04:36:07 nah, I recall it was android-something but didn't remember it was root instead of dev Mar 20 04:36:23 thanks anyways though Mar 20 04:36:31 i swear the way you are doing it sounds pretty bad dodgy though Mar 20 04:37:07 it is, but it's for a custom installer for a ROM I'm baking. Actually, it would be *great* if my apk would call the .sh script itself (as I've set it to run on boot and all) but... it doesn't. Mar 20 04:37:47 ugh, ROM baking Mar 20 04:37:48 on property:ro.butts=1 \n runmahstuffhere Mar 20 04:37:52 if I run the script manually through adb it works. I'm using getRuntime().exec("/system/xbin/su -c /data/local/myscript.sh") Mar 20 04:38:08 yeah .... this is still #android-dev .... Mar 20 04:38:13 * Leeds is currently sauteing some debug tools Mar 20 04:38:21 one fingered salute Mar 20 04:38:27 and spit-roasting UI design Mar 20 04:39:18 i think what i posted above might work in your init.rc Mar 20 04:39:45 Namidairo: yeah I just looked it up on google, I overlooked that option! Mar 20 04:40:16 yeah it sounds a helluvalot cleaner than getRuntime().exec Mar 20 04:40:38 yeah, I didn't like that either Mar 20 04:40:45 I'll give that property a go Mar 20 04:41:14 I can put a loop on that script right? Mar 20 04:41:26 like, without it hanging the boot process? Mar 20 04:42:15 i think that might run once on boot? Mar 20 04:42:26 might be easier to write a service? Mar 20 04:42:37 * Namidairo shrugs Mar 20 04:42:45 too tired to google that Mar 20 04:43:10 hm, that could work too, I could look at it Mar 20 04:43:14 thanks for the lotta options Mar 20 04:43:15 :D Mar 20 04:43:34 Leeds: problem is, so many people try to bake roms with inferior tools http://www.toysrus.com/product/index.jsp?productId=13157033 Mar 20 04:43:41 inb4 someone corrects me and tells me thats the totally wrong way to go about it Mar 20 04:44:08 ah, now *that's* a kitchen Mar 20 04:44:56 you mean they don't cook the entire ~150mb rom by typing out the hex of the zip in a hex editor? Mar 20 04:44:59 :P Mar 20 04:55:28 i hope Statler and Waldorf are going to I/O this year Mar 20 04:56:30 ...who? Mar 20 04:57:36 g00s: lol what? Mar 20 04:57:47 muppets/crunchbang version names Mar 20 05:05:51 yeah :) http://muppet.wikia.com/wiki/Statler_and_Waldorf Mar 20 05:17:23 heh ... "statler and waldorf who?" ... kids ! Mar 20 05:20:08 i don't remember them by name.. Mar 20 05:20:28 "old heckling muppets" would be a sufficient description for them in my brain Mar 20 05:21:08 capella: they were my favorite! Mar 20 05:21:34 ANIMAL ! ANIMAL ! ANIMAL ! Mar 20 05:21:50 haha Mar 20 05:22:22 Didja see the Swedish Chef "Popcorn" video? Cute :D Mar 20 05:22:32 as metallica inspired many would-be rock guitarists; i'm sure animal did the same for drums :D Mar 20 05:22:55 i'm going to have to find it now Mar 20 05:23:01 bork bork Mar 20 05:23:36 Leeds: do you know how to start the emu as a background task from bash? "$emulator … &" doesn't work for me Mar 20 05:24:21 i thought it used to work Mar 20 05:24:33 seems to work for me... Mar 20 05:24:34 :P http://www.youtube.com/watch?v=B7UmUX68KtE Mar 20 05:25:04 Leeds: huh, on the mac after about 20 seconds it goes into a stopped state Mar 20 05:25:53 yup, seems to have booted ok Mar 20 05:26:07 capella: oh man, my stream wont buffer - i think 400 people just went to watch it Mar 20 05:26:40 hehehe - off topic work break :) Mar 20 05:27:04 anyone ever use titanium? Mar 20 05:27:22 are the muppets advocating putting live animals in boiling water? Mar 20 05:27:31 HAHAHA Mar 20 05:30:05 haha Mar 20 05:30:44 better than putting them in cold water? Mar 20 05:30:57 anyone have a suggestion for a couple movies available on play? Mar 20 05:31:27 there are no movies available on play Mar 20 05:31:33 sigh Mar 20 05:31:38 nor TV, magazines, books, devices... :P Mar 20 05:31:43 thanks Leeds, appreciate it Mar 20 05:31:44 music? Mar 20 05:31:59 I've bought music once or twice, through proxies Mar 20 05:32:16 oooo atlas shrugged part 2 Mar 20 05:32:45 The Texas Bovine Massacre Mar 20 05:32:54 s/Texas/Alberta/ Mar 20 05:33:00 :( Mar 20 05:33:14 sadly, i'm sure that's a thing Mar 20 05:33:31 oh shit when's your thing? Mar 20 05:34:11 I was so unhappy about them changing the name from 'Market' to 'Play'. I don't 'play' with my phone. It isn't a toy. Mar 20 05:34:29 they didnt change it from market to play Mar 20 05:34:36 they changed it from "market" to "store" Mar 20 05:34:40 and from "android" to "google play" Mar 20 05:34:41 I call my GS3 the "machine" that it is Mar 20 05:34:53 That is sort of related to the TV, movies, books thing. Mar 20 05:35:04 can someone help me develop a hello world android app Mar 20 05:35:13 open eclipse Mar 20 05:35:16 file->new android project Mar 20 05:35:20 click through the wizard Mar 20 05:35:23 and now you have hello world Mar 20 05:35:50 I realize the major change was the android to google wording. But, play struck me as a stupid edit. Mar 20 05:36:59 thursday Mar 20 05:37:01 I wouldn't have batted an eyelash at a change to google market. Mar 20 05:37:13 calling it play makes perfect sense if it's a media store... just that in most of the world, it isn't... anyway, boring subject Mar 20 05:37:32 Old if not boring. Mar 20 05:37:56 google bits bazaar Mar 20 05:38:09 where you buy all your bits Mar 20 05:38:39 rent... Mar 20 05:38:43 I could get on board with that. I do refer to the Android app ecosystem as a turkish bazaar where caveat emptor applies. Mar 20 05:38:44 (It's generally not a good idea to let me name anything) Mar 20 05:39:05 Otherwise, you might end up with something crazy, like "baksmali" Mar 20 05:39:26 I told my wife we would be naming our children after rocks-- and I was very serious about it at the time. Mar 20 05:39:46 Amber works Mar 20 05:39:55 Then she suggested naming my first son after myself. I am a vain bastard... Mar 20 05:40:08 there was actually a good line to go with the original "market" name that a store decides what they put on their shelves, and you can only buy what they make available, while a market lets pretty much anyone come along and setup their own booth for a fee, and sell what *they* want Mar 20 05:41:00 relipse: also look at http://www.mkyong.com/tutorials/android-tutorial/ Mar 20 05:42:24 relipse: addendum to eclipse (which is my favorite of the available tools) download the ADT bundle. It is eclipse with the Android SDK already preconfigured to work. Mar 20 05:43:18 relipse: ADT means android development tools. Literally google ADT bundle and download the respective package for your system. Mar 20 05:43:33 Uh . . . Mar 20 05:44:09 Are we allowed to ask for tests here? Mar 20 05:44:21 Via our APKs? Mar 20 05:44:25 really, google it? don't just go to d.android.com/sdk and get it? Mar 20 05:44:36 viiralvx: you tested + Mar 20 05:44:40 viiralvx: you mean asking people to install your app and test it? Mar 20 05:44:49 Leeds: Yup. Mar 20 05:44:50 from a guy with the handle viiralvx, it sounds super sketchy FYI. Mar 20 05:45:31 just pitching it out there since Captain Obvious is AFK. Mar 20 05:45:39 ZeroBeholder: Hahaha, I know right? Nah, it's just that I don't' know how things scale on other devices. All I have is a Samsung Galaxy S3 and all my friends user iPhones. I'm developing the Android app for Tubalr. :/ http://www.tubalr.com Mar 20 05:46:10 So I'm trying to get a feel of what users think about the search/playback functionality, though incomplete, before furthering development. :o Mar 20 05:46:40 can someone help me develop a hello world android app in Titanium ? Mar 20 05:47:43 Anyways, chyeah. APK is here: http://www.mediafire.com/?xtz6gwd1jd61dze Mar 20 05:47:48 viiralvx: first off, playlists from reddit. I'm onboard already. Mar 20 05:48:03 ZeroBeholder: That's going to be implemented next, I have that on my "To-Do List" for this weekend. Mar 20 05:48:15 viiralvx: when does the narwhal bacon? Mar 20 05:48:16 viiralvx: suggestion - want to make your app look less sketchy? put it on the tubalr.com site Mar 20 05:48:25 ZeroBeholder: We will have playlists from Reddit and playlists from certain genres. Mar 20 05:48:50 Leeds: I've messaged Cody (the lead developer/owner of Tubalr) with the APK of the alpha, so he should be posting it soon Mar 20 05:48:50 Leeds++ Mar 20 05:48:56 cool Mar 20 05:49:09 Leeds: https://www.facebook.com/photo.php?fbid=554773517874383&set=a.155871141097958.32303.154359441249128&type=1&theater Mar 20 05:49:28 And the mockups (or what I originally had planned for the app . . . ) is on their Facebook page, so it's all good. Haha. Mar 20 05:49:56 looks interesting Mar 20 05:50:27 Mhmmm. The main page needs a lot of work, I've been working on audio functionality/playback mosty, but wrapping that up and then worry more about the design of it and playlist features next. Mar 20 05:51:07 I'm only 20 and this is my second Android application, first one was a mobile class search application for my University. x-x So I'm learning a lot as I go. Mar 20 05:52:48 Try to string match versus using regexs. I use spaces as delimiters for terms and pare down the results lists from left to right. Mar 20 05:53:23 Just what has worked well for me doing multi term searches... Mar 20 05:54:42 Hmmm, okay. Mar 20 05:54:49 brb Mar 20 05:55:55 ...you have a search icon depicted. That is where that came from. Mar 20 05:56:32 AFK. I'm old. Time for bed. Mar 20 05:59:00 anyone feel like helping me out with a custom overflow menu? i need to add one into an expanded list Mar 20 06:32:31 hello Mar 20 06:32:33 There is qwerty android phone. From home screen by pressing any hardware keyboard button it goes to standart dial application for typing phone number. I wrote my own app for convinient phone number typing and what my app starts by pressing any keyboard button, how can i do this? How to replace standart dial Mar 20 06:32:50 Any idea where I can find the source code for native methods in Android? Mar 20 06:33:28 I'm reading through the source code of Log.java and it's calling println_native, which I can't seem to find the source of. Mar 20 06:33:54 i thinc android open source is allowed in google code Mar 20 06:33:59 there's usually a jni/ folder in parallel to java/ Mar 20 06:34:12 e.g., frameworks/base/core/jni/ Mar 20 06:37:57 hey all Mar 20 06:38:17 so uh Mar 20 06:38:25 i wrote this AsyncTask to download an image, manipulate it a bit, and put it in an ImageView Mar 20 06:38:30 http://pastie.org/private/bbd0wfuaxwjrjrkskagfpg Mar 20 06:38:47 and the transparent pixels in the image aren't appearing as... transparent Mar 20 06:39:13 here's the imageview setup: http://pastie.org/private/l7rxgn9inf9btv8f5msibq Mar 20 06:39:15 any ideas? Mar 20 06:41:10 (the background of the image is just black) Mar 20 06:41:27 and not the nice gradient activity background Mar 20 06:43:58 "unboxing" Mar 20 06:44:01 most annoying word Mar 20 06:47:06 Inboxing. Mar 20 06:48:13 mlaux try using this https://github.com/nostra13/Android-Universal-Image-Loader Mar 20 06:48:27 it's great for image loading instead of handling it all yourself Mar 20 06:57:49 Hey guys i am trying to slide a childview of an expandableListView from top.I have a achieved this by Translate animation on the convertView returned from getChildView of the adapter.But the childView is sliding over the parentView of the childView( groupView of the list ).here is the anim xml file i am using for translate http://pastebin.com/Rq2hGgss .Please tell me how to slide child view behind the parentView ? Mar 20 06:59:42 Android03: Lose the - ? Mar 20 07:00:15 android:fromYDelta="-10%p" becomes android:fromYDelta="10%p" Mar 20 07:03:02 Bleeptech : u mean removing " - " will work? Mar 20 07:03:35 * Bleeptech is just guessing after a quick Google and noticing a lack of the '-' in the examples. Mar 20 07:03:59 ok let me try Mar 20 07:06:23 Android03: It looks like you want a fromDeltaZ if the naming holds up and it exists... X = up/down, Y = left/right, Z should be depth. Mar 20 07:07:01 s/fromDeltaZ/fromZDeelta Mar 20 07:07:14 Bleeptech : removing " - " starts sliding of a ChildView 10% down from the parentView and sliding towards the parent Mar 20 07:08:35 Bleeptech : there is no such attr fromDeltaZ ...but Zadjustment is there but that too is not working Mar 20 07:09:37 figured it out Mar 20 07:09:47 Bitmap::copy doesn't preserve alpha channels or something -_- Mar 20 07:10:00 had to manually create a new Bitmap and move the pixels over with getPixels/setPixels Mar 20 07:10:35 Android03: See if this helps.. http://stackoverflow.com/questions/7186907/android-animation-positioning-problems Mar 20 07:13:49 hi guys, are the sensor.type_rotation_vector values caculated from the gyroscope values? Mar 20 07:24:16 anyone know of a good tutorial for crosscompiling c/c++ code for android? Mar 20 07:25:48 Bleeptech : Link is of no use Mar 20 07:26:04 Bleeptech : anyways thanx Mar 20 08:41:08 hi guys Mar 20 08:41:20 how can you detect if the device is a phone or a tablet Mar 20 08:41:24 running on 4+ Mar 20 08:42:55 How can I get string resource which name I have in string, like: String resname = "something"; getString(R.string.resname);? Mar 20 08:45:35 http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier%28java.lang.String,%20java.lang.String,%20java.lang.String%29 this \o/ Mar 20 09:03:42 > changed the bitmap config from argb888 to rgr565 Mar 20 09:03:47 > everything's magically 2x faster Mar 20 09:04:35 Speaking of which, what plagued me with ARGB - is there any particular reason teximage and deletetextures are sometimes taking ludicrous amount of time? Mar 20 09:04:57 I mean, it shouldn't really take 300 ms to delete a single texture, should it? Mar 20 09:05:28 Normally it doesn't take any time, but it does this on occasion which produces an enormous lag Mar 20 09:26:31 Also, is there any faster way (more like memory efficient) to create a power of two bitmap from an image on disk other than decodeStream -> new bitmap of 2^n -> blit decoded to new? Mar 20 09:26:58 Garbage collector eats up GL frames like a monster so I want to avoid that when possible... Mar 20 09:30:18 mmap()? Mar 20 09:30:42 though that would require storing it in GPU-usable format Mar 20 09:31:22 Anonyneko: also, texture unit binding is afaik quite slow, but not sure if it's what happens Mar 20 09:33:47 hi! Mar 20 09:33:59 where can i start studying android? Mar 20 09:34:08 or the best source Mar 20 09:34:26 d.android.com Mar 20 09:34:28 http://developer.android.com/index.html Mar 20 09:34:43 thanks! Mar 20 09:34:51 ezekielnoob: Specifically http://developer.android.com/training/index.html Mar 20 09:35:08 Definitely go through the "Building your first app" tutorials. Type the code and run it. Mar 20 09:35:08 uhm one more thing, does android development require extensive java programming knowledge? Mar 20 09:35:15 You should know Java. Mar 20 09:35:28 If you want to do cool things, you should probably know it well. What's your experience level? Mar 20 09:35:43 i have only done simple java Mar 20 09:35:47 and some swing stuff Mar 20 09:35:53 but not in advanced level Mar 20 09:35:59 and some threading Mar 20 09:36:08 You'll probably be fine for the simple stuff. Mar 20 09:36:13 concurrency is required if you plan on doing any i/o Mar 20 09:36:24 so know about that ;) Mar 20 09:36:32 hmmm Mar 20 09:36:40 thanks Mar 20 09:37:01 The best way to learn is to tinker with it. See what you can make. Don't be afraid to break things. Mar 20 09:37:01 i think i can learn java more too along the way while studying android Mar 20 09:37:50 do I need to compile the whole android source in order to cross compile things? Mar 20 09:38:55 andkore: depends what you are compiling Mar 20 09:39:07 for everyday tasks, just use the SDK Mar 20 09:39:14 http://teslacoilsw.com/dropbear Mar 20 09:39:19 you mean NDK? Mar 20 09:39:36 ah, dropbear. You mgiht need the source to generate/get necessary headers Mar 20 09:39:50 I need to compile it too? Mar 20 09:40:44 I feel really dumb. I mean I understand the basics of programming and how binaries / libraries work, but all this toolchain stuff is a little above me right now Mar 20 09:41:37 andkore: you need to build at least some of the components, otherwise you don't have basis to link dropbear (or even compile) Mar 20 09:41:38 uhm an advanced question: what kind of server do you guys use for your multiplayer apps? Mar 20 09:42:43 p_l: so when I compile it's going to take compiled libraries and statically plug in what it needs? Mar 20 09:45:27 ...all right, here's another stupid question. Is it possible to decode an image file... into an already existing bitmap? Not just in regards of power of two stuff, but so I wouldn't have to recycle them all the time? Mar 20 09:46:08 (By bitmap I mean Bitmap, but if there's something more efficient out there I'm all ears...) Mar 20 09:46:59 Sadly what I'm writing is a magazine reader (GL because hurr durr 3D curl effects) so I have to load up big images all the time Mar 20 09:47:36 hmm... you could try giving an existing "buffer" to decoding function to paint on Mar 20 09:51:13 So, basically, that means going NDK and implementing a custom decoder? Mar 20 09:51:52 possibly. I don't have anything on hand to check or do research Mar 20 09:52:23 I see, thank you very much Mar 20 09:52:36 anyone got fresh, up-to-date tutorial for renderscript? Mar 20 09:52:42 I'll definitely look into doing something like that when everything else's finalized Mar 20 09:52:46 Anonyneko: I see how it could be done at low level, but I have yet to get from there to usable solutions :) Mar 20 09:52:47 seriously, it exists for years and i can barely find anything Mar 20 09:53:15 Meanwhile I just realized I could at least retain the power of two bitmap and make it 'rewrite-safe' until it's loaded into a texture Mar 20 09:53:24 So I'll cut down on GC in half Mar 20 09:53:57 Making asynctask wait a little shouldn't kill more frames than GC Mar 20 09:55:10 How do I know when my app had returned? I'm running it from command line with "adb shell am start -n ...", the app does some calculations and stuff, and eventually finish()-es (not very elegant, I know... :). This app is in fact launched by another script on another computer and I'd like to get some feedback on how it returned, without having to use any ordinary IPC mechanism Mar 20 09:56:36 How do you disable scrolling on a HorizontalScrollView? Mar 20 09:56:55 as in manual scrolling, I want to use the scrollview as a kind of non-interactive slideshow Mar 20 10:08:10 * xviv have a seat. Mar 20 10:19:12 having a strange problem with certain devices (Jelly bean afaik), an activity won't show unless you leave the app and go back to it, more information and code is available at http://stackoverflow.com/questions/15497192/listactivity-not-started-unless-i-leave-the-app-and-come-back Mar 20 10:20:12 Anonyneko: btw, consider using object caches and reinitializing existing objects instead of allocating them Mar 20 10:21:01 Is there some google guy which might fix this: http://stackoverflow.com/questions/14913852/cannot-create-2-3-3-intel-atom-avd-userdata-img-not-found Mar 20 10:24:14 Could anyone provide a quick explanation of the function on println_native? I'm having trouble finding the source code for it. Mar 20 10:25:50 crynix: its a hidden method, you should (and cannot by default) use. its i guess the the native implementation, that prints out something to the console? Mar 20 10:27:06 w00t go me - Android SDK on FreeBSD with IntelliJ :) Mar 20 10:27:19 timroes: Any idea where I could find the source for it? I'm reading through the source of android.util.Log to get an understanding of how it works. Mar 20 10:27:48 crynix: framework/base/core/jni Mar 20 10:27:58 there are the native implementations of the base framework Mar 20 10:28:24 in general you want to watch android_util_Log.cpp Mar 20 10:28:56 you will find the method in line 108 if you have the most recent source code Mar 20 10:29:40 Thanks for providing the specifics. Mar 20 10:30:29 you're welcome, I would now recommend you some small tool i wrote, but unfortuantely its database is not yet very large, since I hadn't had much time yet to fill it with information Mar 20 10:31:04 I'd love to take a look at it if you elaborate. Mar 20 10:31:08 https://github.com/timroes/explain-plz Mar 20 10:31:32 it just explains you the source code Mar 20 10:31:36 Starred. Mar 20 10:31:39 if you type explain-plz in some source code folder :) Mar 20 10:32:14 grep and grepcode.com have been my best friends so far while reading through the source. Mar 20 10:32:27 yeah android xref is also usefull Mar 20 10:32:30 for finding usage of classes Mar 20 10:32:44 but still my problem was always it doesn't explain anything baout the sources Mar 20 10:32:55 or doesn't help you mcuh finding projects Mar 20 10:33:01 e.g. you search the new gradle buuild system Mar 20 10:33:05 type explain-plz -s gradle Mar 20 10:33:25 and you will get path and explanation of tools/build Mar 20 10:33:54 Why don't you merge explain-plz and explain-plz-data into a single repo? Mar 20 10:34:23 Or at least have a submodule of explain-plz-data in explain-plz? Mar 20 10:34:26 because the tool automatically can update itself explain-plz --update to fetch the newest data Mar 20 10:34:36 you don't need to pull explain-plz-data at all Mar 20 10:34:42 if you just want to use the tool Mar 20 10:34:48 Oh, cool! Mar 20 10:35:00 and if i put the database in a separata module i can just download its zip file to update the database :) Mar 20 11:11:37 Hello, Mar 20 11:12:49 Is there any remote control application for samsung galaxy tab (like vnc server) that doesn't require rooting the device? Mar 20 11:24:15 Could anyone point me in the right direction, the info I'm searching for makes it very difficult to get the result I want. I'm trying to figure out how to render pdf/epub/mobi in an android app Mar 20 11:50:16 Hey, could anybody tell me how I can use GSON to deserialize this JSON input? http://pastebin.com/0bHnTSDY Mar 20 11:57:01 dandre: DroidMote Mar 20 11:57:24 dandre: oh wait never mind, it needs root Mar 20 11:58:48 Please, take a look at my issue @stackoverflow http://stackoverflow.com/questions/15521639 Mar 20 11:59:15 if anyone is familiar with androidannotations/maven Mar 20 12:00:05 I know at least some people in here are, but those that I know of are all probably asleep at this time of day :) Mar 20 12:02:28 That's bad luck for me, living in a different time zone then Mar 20 12:18:26 hi, im currently developing a app which stores data in a database. im a little confused on how to maintain the database connection. i want to release/get it while onPause/Start. But the database itself is handled by a controller. should i use static methods, create a new controller for every activity or pass the controller to every started activity? Mar 20 12:18:28 you're not alone daneo Mar 20 12:20:02 same timezone? ;-) Mar 20 12:21:36 GMT+1 here Mar 20 12:22:56 * Ankhwatcher waves hello from Ireland Mar 20 12:26:33 * xviv throws confetti from Indonesia Mar 20 12:27:08 * timroes stands a round beer from Germany ;) Mar 20 12:27:40 * xviv wanna ask a question Mar 20 12:28:27 i i replace a layout in my listview whenever i click the item by set the present as view.gone and the another as view.visible Mar 20 12:28:45 how to set another item in listview to normal again? Mar 20 12:29:54 xviv: I don't quite follow, could you pastebin some code? Mar 20 12:31:16 http://tny.cz/e09d96a1 Mar 20 12:33:28 and the app will be like this --> http://i.imgbox.com/adi3aIjm.jpg Mar 20 12:34:11 i thought the onItemClickListener didn't maintain another object but itself. Mar 20 12:34:54 *please ignore the ugly design for those three buttons, i got E from my design class :) Mar 20 12:35:18 gmt +1 as well here Mar 20 12:35:39 hey, anyone got android+maven+gmaps2 to work? I keep getting java.lang.noclassdeffounderror com.google.android.gms.r$styleable thrown... Mar 20 12:35:58 I have my dependency, but it doesnt seem to matter at runtime. Mar 20 12:38:23 xviv: so when a user clicks on an item in this listview, what do you want to happen? Mar 20 12:38:40 ahhughes: So you imported the jar to your local maven repository Mar 20 12:38:59 another layout that hold a couples button showing up replacing the item name, url etc... Mar 20 12:39:17 the problem is, how to make another listview back to normal Mar 20 12:39:24 daneo, yep. Mar 20 12:39:45 xviv: so it's like a dialog of options for the item? Mar 20 12:40:15 yep Mar 20 12:40:40 been try about context menu but i feel that's not cool :) Mar 20 12:41:27 I've used this script @ https://github.com/JakeWharton/gms-mvn-install Mar 20 12:41:33 added the dependency noted there Mar 20 12:41:35 and worked as a charm Mar 20 12:41:43 Also used a archetype Mar 20 12:41:43 same here daneo Mar 20 12:41:50 an* Mar 20 12:43:28 you have a apklib dependency too daneo ? Mar 20 12:43:41 I do not, wasn't installed. Mar 20 12:44:00 Yes, literally pasted what is there Mar 20 12:44:09 grrrr :'( Mar 20 12:44:20 And it is, because it is an apklib, a library you use Mar 20 12:45:29 xviv: so what happens now with this code that you have shown me Mar 20 12:46:47 daneo, I got absolutely no idea what that means :) Mar 20 12:47:13 ahhughes: Put what stands there in your dependencies :-) Mar 20 12:47:48 gimme a sec, just pulled new installer from github... think it fixed a few things. Mar 20 12:48:25 Ankwatcher: nothing wrongs, it just.. i dunno how to set view.gone/view.visible another item back as it was. Mar 20 12:49:25 xviv: the code looks like it toggles those on each click, is that what happens? Mar 20 12:49:31 xviv: use the adapter to get the item and do the same on the item Mar 20 12:50:03 timroes: you mean, use adapter to pass the item so i could set it's visibility? Mar 20 12:50:25 you normally have a ListAdapter of any kind, use it to retrieve the item you want to change Mar 20 12:50:36 daneo, woooooooooooooohooooooooooo :) Mar 20 12:50:56 but I would consider there will be better ways to do it, xviv Mar 20 12:50:56 Is there a way to set "set the background of the new activity" when starting an intent? Probably not, but my problem is that the screen "flickers" when I make an alpha transition when changing activities and the theme is Holo.Light Mar 20 12:51:13 e.g. just save the view that is currently extended in a object field Mar 20 12:51:14 @ahhughes :-) Mar 20 12:51:23 timroes: i don't get it :| Mar 20 12:51:39 The standard theme is Holo, and the right theme is set in onCreate, but still the transition is dark mid-transition Mar 20 12:51:44 private View mExtendedView; Mar 20 12:51:57 in your onclick you check if mExtendedView is set, if so you can use this view to collapse the item again Mar 20 12:52:14 and then set mExtendedView to the view you just extended Mar 20 12:52:18 in the onclick stuff Mar 20 12:52:40 okay, i think i got it. Mar 20 12:52:48 onclick stuff in xml right? Mar 20 12:52:54 no the method you pasted :) Mar 20 12:53:04 onItemClick Mar 20 12:54:43 timroes: where and what should i read about extendedview and the other stuff involved? Mar 20 12:54:54 or some keywords for googling maybe :) Mar 20 12:55:05 you don't need to read anything new Mar 20 12:55:17 wait a mom Mar 20 12:55:48 is there anyway to work out the azimuth to pixel from the camera? for example.. if I wanted to highlight on the camera preview where 15 degree's left/right is from the current facing direction could I calculate the pixel for this? Augmented reality does this kinda thing right? Mar 20 12:56:01 hi room Mar 20 12:56:13 ahhughes: no Mar 20 12:56:28 that would require a missing bit of info Mar 20 12:56:36 I could guess it but it wouldn't be accurate I guess. Mar 20 12:56:41 and have to account for about 4 more factiors Mar 20 12:56:48 distance Mar 20 12:57:01 degrees doesnt care about distance. Mar 20 12:57:11 but, please go on :) Mar 20 12:57:13 timroes: okay :) Mar 20 12:57:23 degrees doesnt Mar 20 12:57:25 xviv: http://tny.cz/3e5c0d07 Mar 20 12:57:26 but Mar 20 12:57:32 around that :) Mar 20 12:58:00 I expect each camera has a different apature? too? and also some could have optical zoom Mar 20 12:58:11 add an object field (on top), add if stuff that do to that extended field, whatever you want to do to id, if it exists (top of onItemClick) and set extended field to current one (end of onItemClick) Mar 20 12:58:13 well thats focal length Mar 20 12:58:29 apertue is the lens opening Mar 20 12:58:35 at least if I understood, what you are trying to do, might be i understood it wrong, then this won't fit at all :D Mar 20 12:58:49 focal lenght is the distances between lens elements and thus FOV Mar 20 12:58:57 yeah, so its like saying Fisheye vs .. eerrrr whatever the opposite is.. a narrow focus :) Im no shutter bug! Mar 20 12:59:01 timroes: thanks dude, i'll try it atm. Mar 20 12:59:12 well it's measured in mm Mar 20 12:59:15 ya ya field of view, dats it! Mar 20 12:59:16 18mm Mar 20 12:59:32 fisheye as you call it maybe 12mm-16mm Mar 20 12:59:36 and I can't calc that or look it up from the camera spec? Mar 20 12:59:39 200mm telephoto range Mar 20 12:59:49 well the problem you have Mar 20 13:00:03 ahhughes: you could if the camera specs are the only thing modifying that. but e.g. on mobiles there exists that kind of strap on lenses :) Mar 20 13:00:03 the FOV will change based on "focal point" Mar 20 13:00:13 and other problems, that StingRay_ will explain you :) Mar 20 13:00:28 timroes, I won't support strap ons! Mar 20 13:01:12 also you have pixel binning / sensor cropping Mar 20 13:01:17 that changes the whole thing too Mar 20 13:01:21 and I guess "auto focus" changes this? Anyway... if the answer is no.. then the answer is no :) Mar 20 13:01:25 so an example is Mar 20 13:01:33 I have a 13mp camera Mar 20 13:01:43 i change res to 8mp Mar 20 13:01:44 ahhughes, you need somethign that's mean to measure DISTANCE if you want to know how far away something is Mar 20 13:01:52 8 doesnt fit into 13 Mar 20 13:01:57 the camera can give you some measure of depth, but it's not accurate Mar 20 13:02:01 kaneda^, I want direction... not distance. Mar 20 13:02:02 so pixels are binned from the sensor Mar 20 13:02:20 and then fov changes dramatically Mar 20 13:02:49 cause it's only using 70% of the sensor area to 100% of the surfaceView Mar 20 13:03:41 yep. cool thanks StingRay_ ... I might have an alternative but right now.. Im getting too darn tired to persue it. Mar 20 13:03:55 oh and distance will play a big part btw Mar 20 13:04:03 well, small/big Mar 20 13:04:37 essentially.... I will like to enter into the UI... "115 degrees" and have a dot on the screen that shows you where 115 degree's is on the screen (via camera preview). Mar 20 13:05:25 ahhughes: you could have accurate presets table Mar 20 13:05:32 that would work Mar 20 13:06:31 actually no, probably not Mar 20 13:06:40 would still be not very accurate Mar 20 13:07:04 http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getHorizontalViewAngle%28%29 could give you the horizontal view angle (and similiar method for vertical) you could do some math to calculate the point Mar 20 13:07:06 distance would come into play to make it accurate Mar 20 13:07:22 but I would guess the result is not very exakt you will get Mar 20 13:07:31 cause you need the focal point distance to feed into it :( Mar 20 13:07:45 what's the goal here anyways? Mar 20 13:08:15 yaaaaaaaaaaay, it works! Thanks timroes :) Mar 20 13:08:24 xviv: you're welcome :) Mar 20 13:08:49 I think I have it..... set the degrees, then as the camera is pointing in that direction within say 5 degrees I will show a "GREEN" status or whatever. Much in the same way a metal detector beeps at a user when the moving detector is over the metal. Mar 20 13:09:00 StingRay_, ^ Mar 20 13:09:23 and i just realised that we can hold view object in an instance variable, my bad because poor knowledge about oop :| Mar 20 13:09:46 ahhughes: what device you got ? Mar 20 13:10:48 either way will proably have a 28mm lens thats fixed or something like that, not aware of any optical zoom phonecams i dont think Mar 20 13:11:00 but focus on something close Mar 20 13:11:04 then far away Mar 20 13:11:11 and look at the fov change Mar 20 13:11:19 and look how much it changes Mar 20 13:11:34 while still on a fixed 28mm focal length Mar 20 13:11:46 StingRay_, now Tab2.... phone now rests 60m underwater heeehehee Mar 20 13:12:09 ouch Mar 20 13:12:55 other option is, if I knew the direction of the camera for each video frame... I could pick the frame when the camera has the focus point and then obtain the azimuth. Mar 20 13:18:07 Ankhwatcher: thanks anyway Mar 20 13:19:19 I have a tab 2 somewhere, I actually like that device Mar 20 13:19:49 think my g/f stole it for bigger on-the-move ingressins Mar 20 13:19:54 ingressing Mar 20 13:19:55 i like my htc one x, wish it had better battery life Mar 20 13:20:21 kaneda^: is that the new iphone 5 lookalike one ? Mar 20 13:20:22 i have and i wish it has a better battery life Mar 20 13:20:45 not up on htc stuff Mar 20 13:20:50 StingRay_, i think they ALL look rather similar, after all, how many different configurations of a little tablet can yuo have? Mar 20 13:21:13 well from a design standpoint lots Mar 20 13:21:16 i have done intent.setType("image\*"); and intent.setAction(Intent.ACTION_GET_CONTENT); but filemanager shows all files Mar 20 13:21:23 factor and function, maybe less so Mar 20 13:21:31 j4hr0m, shouldnt it be image/* Mar 20 13:21:33 not image\* Mar 20 13:22:04 StingRay_, i like the design, it's actually a little BIG, which makes it kind of ungainly in one hand Mar 20 13:22:07 when i access a sqlite database from 2 activities, can i use the context of the first one for both? Mar 20 13:22:19 but i have a thin gel case and a screen protector and it feels quite sturdy Mar 20 13:22:27 Schrostfutz, i think not Mar 20 13:22:39 kaneda^: exactly, that's what i wrote ;) Mar 20 13:22:53 last htc thing I had was a touch HD, i did like the build quality Mar 20 13:23:08 StingRay_, the only htc i had before this was the hero, and that was like a brick, could not be broken Mar 20 13:23:41 j4hr0m, http://stackoverflow.com/a/9586034 Mar 20 13:26:07 I know there are lat/lon tags in images, but does it also record the azimuth (bearing)? Mar 20 13:26:11 is there an opensource gallery alternative? Mar 20 13:26:25 ahhughes, what you see is what you get i believe Mar 20 13:27:03 http://en.wikipedia.org/wiki/Exchangeable_image_file_format#Geolocation Mar 20 13:27:35 http://developer.android.com/reference/android/media/ExifInterface.html Mar 20 13:29:12 well given the amount of shutter lag on cameras I don't know if I grab the azimuth myself before or after the picture is taken. Mar 20 13:30:55 or both even and average the two. Mar 20 13:31:00 *sigh* Mar 20 13:31:26 ahhughes, i still dont know what you want to do Mar 20 13:31:27 * ahhughes is dealing with a camera/phone that is guaranteed to not be stable :'( Mar 20 13:32:19 I want an azimuth using the camera... but I know it might take 4,5,6... "shots" to actually get an accurate azimuth. Mar 20 13:33:29 you have the gyroscope Mar 20 13:34:12 and i guess the compass.. Mar 20 13:34:25 I use both already. Mar 20 13:34:47 and you get the lat/long from the picture, from which you can simply calculate the azimuth Mar 20 13:35:10 http://en.wikipedia.org/wiki/Azimuth#Calculating_azimuth Mar 20 13:35:18 some "simple" app is turning to be fairly complex... first app so far is Dagger, ORMLite, Maven, Maps, Compass, GPS, Gyroscope, Camera+Preview.... Mar 20 13:35:33 good stuff tho. I am enjoying it Mar 20 13:36:34 sorry kaneda^ i gotta leave now, bed time or I will pay for it at work tomorrow. Til tomorrow night.. ciao Mar 20 13:37:48 i think my VM is dying, just backed up all the code to git :| Mar 20 13:37:56 hi all. Mar 20 13:38:00 morning Mar 20 13:38:40 Is it possible to include a fragment inside another fragment layout? Mar 20 13:39:51 eclipse does not use less than 105MB of ram Mar 20 13:39:57 not ever :| Mar 20 13:40:15 ... maybe Eclipse 1.0 with GCJ :P Mar 20 13:40:29 i'm using juno @ 105MB standing Mar 20 13:40:44 i dont even want to look at how much mine uses Mar 20 13:41:37 286mb wut Mar 20 13:41:59 jesus :| Mar 20 13:42:07 mine is building, up to 128MB Mar 20 13:42:55 this is why we can't have nice things Mar 20 13:44:06 guys... it's eclipse. What did you expect? Mar 20 13:44:06 Namidairo, shoulda married a business man Mar 20 13:44:09 then you'd have nice things Mar 20 13:44:34 i expected butterflies and rainbows to spew from its orifices Mar 20 13:44:42 kaneda^: simpsons? Mar 20 13:44:55 no that was a manager, forget what i asked :) Mar 20 13:45:04 timroes, simpsons Mar 20 13:45:11 but it was a manager :P Mar 20 13:45:21 it was homer, as he does dishes Mar 20 13:45:23 is there any practical difference between a static class variable and a member variable in the Application class of my app? Mar 20 13:45:23 "i should have married a manager, then i would have nice things now' :D Mar 20 13:46:07 http://imgur.com/r/TheSimpsons/8Yx2V Mar 20 13:46:31 oh god damn you are right Mar 20 13:46:40 sorry, i just looked it up too, in german it was Manager Mar 20 13:46:54 i have a near perfect memory of the simpsons Mar 20 13:46:59 all 25 seasons Mar 20 13:47:04 yeah me also a pretty good one :) Mar 20 13:47:08 pearl princess Mar 20 13:47:11 musical episode :) Mar 20 13:47:15 * Ge0rG stopped watching around season 22 Mar 20 13:47:22 pretty good one in my opinion Mar 20 13:47:24 ugh, there's this Android game where you have to name Simpson characters Mar 20 13:47:28 I got about 5 Mar 20 13:47:35 lol Mar 20 13:47:35 my memory is totaled Mar 20 13:47:37 belgianguy: link :) Mar 20 13:47:50 timroes: hang on, I'll go find it Mar 20 13:47:50 kaneda^: did flanders really marry krababel? Mar 20 13:48:03 monsti, no one remember nedna Mar 20 13:48:07 because it was really stupid Mar 20 13:48:14 and they're still together as of the latest episode Mar 20 13:48:22 wut Mar 20 13:48:27 but not married afaik? Mar 20 13:48:36 LIVING IN SIN Mar 20 13:48:46 timroes: flanders kids call her "teacher mom" Mar 20 13:49:05 well we will see Mar 20 13:49:06 hmm right Mar 20 13:49:20 maybe she's mr. burns Mar 20 13:49:23 suggest we fire t-shirts at her Mar 20 13:49:24 timroes: it's called "simpsons logo quiz" but I don't find it on Play Mar 20 13:49:33 i try to remeber how they called other girlfriend of ned, but i only can remeber they call "vegas mom" but she was married to ned Mar 20 13:49:40 Google does find some references to other stores, but I generally don't trust those Mar 20 13:49:51 belgianguy: ah i guess i found it Mar 20 13:49:53 they ARE married, btw Mar 20 13:49:55 there was the vegas one, the celeb one... Mar 20 13:49:57 https://play.google.com/store/apps/details?id=appviral.quiz.simpsons Mar 20 13:50:05 ned and edna got married in secret Mar 20 13:50:09 the one that got hit by the t-shirt cannon... Mar 20 13:50:11 IIRC it was voted on by the public Mar 20 13:50:14 kaneda^: yeah ;) Mar 20 13:50:14 what the ending would be Mar 20 13:50:20 kaneda^ which episode? haven't seen newest season so often yet Mar 20 13:50:21 maud flanders got hit with the t-shirt Mar 20 13:50:23 kaneda^: but now springfield knows Mar 20 13:50:31 indeedy Mar 20 13:50:38 timroes, http://en.wikipedia.org/wiki/Ned_%27n_Edna%27s_Blend Mar 20 13:50:49 LOL a wikipedia page Mar 20 13:50:59 wiki has ALL the things :) Mar 20 13:51:07 its like a wikipedia rule 34 Mar 20 13:51:15 articles for ALL THE USELESS THINGS Mar 20 13:51:30 ah right I remeber, have seen this only one time, and its the last episode from that season, yet to be published in german Mar 20 13:51:36 Am I still in #android-dev? Mar 20 13:51:36 (usualy watch it in both languages) Mar 20 13:51:50 Ankhwatcher: why would you? this is #simpsons ofc Mar 20 13:51:56 #simpsons-chat Mar 20 13:52:04 Ankhwatcher: no, this is obviously #simpsons Mar 20 13:53:02 Ankhwatcher: Ha-Ha Mar 20 13:53:13 ;) Mar 20 13:53:24 oh yah! Mar 20 13:53:35 I went off to set up chrome to log to file so I can try to figure out what the hell is wrong with it Mar 20 13:53:50 and when I came back, the channel had found a new subject Mar 20 13:54:17 Ankhwatcher: thats mobile tech, things move on fast Mar 20 13:54:18 to be fair, the simpsons is WAY more popular world-wide than android, a takeover was inevitable Mar 20 13:54:37 Are we hot? Mar 20 13:56:35 Last night we went on about the Muppets and the Swedish Chef for several pages :p Mar 20 13:57:18 capella: yesterday I said that my irc client was acting wierd and someone accused me of being off-topic Mar 20 13:57:30 heh - oh well Mar 20 13:57:32 Ankhwatcher, depends if you get a pedant or not Mar 20 13:57:57 well anyway Mar 20 13:58:04 back to json Mar 20 13:58:11 Ankhwatcher, json is off-topic in #android-dev Mar 20 13:58:19 really go to #json... Mar 20 13:58:26 {} Mar 20 13:58:27 :D Mar 20 13:59:02 lol Mar 20 13:59:04 dicks Mar 20 13:59:11 >) Mar 20 13:59:17 Ankhwatcher, dicks are off-topic in #android-dev, please go to #dicks Mar 20 13:59:25 hahahahahha Mar 20 13:59:55 :_) Mar 20 14:00:12 spacedicks Mar 20 14:01:58 I just joined #json, jsut in case Mar 20 14:02:09 s/jsut/just Mar 20 14:02:17 s/jsut/json Mar 20 14:08:27 http://grooveshark.com/s/Loyalty+Bldg/2pfdF5?src=5 Mar 20 14:08:54 what is WRONG iwth my VM< it's taking minutes to build and deploy an APK Mar 20 14:11:26 is there like a standard easy applical effect I can place on an imagebutton to make it appear clicked? Mar 20 14:12:03 most places talk about creating 2 images.. one for when clicked.. and one for not clicked then switching them,.. but was just wondering if there wasn't some normal effect Mar 20 14:12:26 that I go just add.. like 'pseudo' android:onClickJumpUpandDownFor2Sec Mar 20 14:13:22 P3nnyw1se: well that would be a transition in a state list Mar 20 14:14:25 but then you would manually make some transitions right Mar 20 14:14:32 like padding 20 up.. wait 2 sec.. padding 20 down Mar 20 14:14:50 there isn't just some standalyzed one, like all logos on an Iphone jump when you click them Mar 20 14:15:01 Hey guys, noob here, playing around with accelerometer. I'm trying to write an app that when a button is pressed, collects sensor events for x seconds, then processes them to calibrate the app and continue on its merry way. Having difficulty understanding how I can schedule an event for x seconds later on the ui thread. Any pointers would be appreciated Mar 20 14:15:10 P3nnyw1se: not that I am aware Mar 20 14:15:20 cause it only takes a few mintues to do Mar 20 14:15:26 I'm asking cause it seems weird to me there is no effect on buttons StingRay.. when I make a button in java swing and hit it Mar 20 14:15:30 I will see a 'click' effect Mar 20 14:15:37 I wont when making it in xml Mar 20 14:15:57 P3nnyw1se: well your using imageButtons Mar 20 14:16:06 just use standard ones and yeah Mar 20 14:16:09 tis all there Mar 20 14:16:12 system default Mar 20 14:17:58 but I want logos :( Mar 20 14:18:01 not text Mar 20 14:18:55 I'm very new at this.. but at this moment I dont really see the point to imageButtons Mar 20 14:19:08 well I use them all over Mar 20 14:19:18 buttons that just have an image Mar 20 14:19:21 but whats the difference on adding an imageButton instead of an image Mar 20 14:19:27 you can add onClick on both of them Mar 20 14:19:56 i am looking for an app/game developer to add to my team, anyone interested pls msg me, thanks Mar 20 14:19:59 actually not much, more xml options for a button Mar 20 14:20:15 I have nice state lists/style on my imageButtons Mar 20 14:20:26 for press actions etc Mar 20 14:20:31 works fine Mar 20 14:20:43 but you work with several image versions for the same button Mar 20 14:20:44 right? Mar 20 14:21:10 well no, only the icon_blaaa changes Mar 20 14:21:21 alright.. well guess I was naive for thinking android would just have some standalyzed opportunites to make your imageButton do stuff Mar 20 14:21:24 what I do to ALL the buttons is universal Mar 20 14:21:36 frostero: please note the topic of the channel Mar 20 14:21:49 P3nnyw1se: it does Mar 20 14:21:52 thats what I do Mar 20 14:21:56 1 state list Mar 20 14:22:00 all my buttons Mar 20 14:22:01 done Mar 20 14:22:15 alright so how do you handle pressed e.g. Mar 20 14:22:20 your background changes color or something ? Mar 20 14:22:40 shapeDrawables defined to be overlayed Mar 20 14:22:47 I could have a transition if i wanted Mar 20 14:22:52 but dont like that too much Mar 20 14:22:57 wanted more subtle Mar 20 14:24:37 I suck at layouts.. like I wanna do e.g. something like this Mar 20 14:24:43 name: __________, __________ Mar 20 14:24:47 Adresse: ____________________ Mar 20 14:24:47 etc. Mar 20 14:25:19 I've done first a horizontal linearlayout.. then I put vertical linearlayouts into that for each line Mar 20 14:25:27 but then right away I was punked by google Mar 20 14:25:46 for doing it the wrong way Mar 20 14:26:53 tables Mar 20 14:28:05 chairs Mar 20 14:28:05 :P Mar 20 14:28:29 hi guys, how to get key/values from this json (eg. "countries": [{"jp": "Japan"},{"ru":"Russia"}] ? Mar 20 14:30:06 the challenge is, the keys are unknown. Only have to iterate, which I cannot make it in better way just using org.JSON Mar 20 14:30:16 by using JSONObject ? Mar 20 14:30:37 yeah, but using JSONObject Mar 20 14:30:57 http://developer.android.com/reference/org/json/JSONObject.html#keys%28%29 ? Mar 20 14:31:25 heck, http://developer.android.com/reference/org/json/JSONObject.html#names%28%29 Mar 20 14:31:45 can I add nice borders between viewgroups? Mar 20 14:33:08 @lov you mean this Mar 20 14:33:16 Map map = new HashMap(); Mar 20 14:33:16 Iterator iter = menu.keys(); Mar 20 14:33:18 while(iter.hasNext()){ Mar 20 14:33:19 String key = (String)iter.next(); Mar 20 14:33:21 String value = menu.getString(key); Mar 20 14:33:22 map.put(key,value); Mar 20 14:33:23 } Mar 20 14:33:43 hey, kamol Mar 20 14:33:46 use a pastebin, please. Mar 20 14:34:09 and, yes, you could do something like that. Mar 20 14:34:25 @lov, sorry, how to use pastebin? Mar 20 14:34:32 * kaneda^ facedesks Mar 20 14:34:40 alright how does this sound.. I have an activity which consists of a top logo, and an actionbar.. and then I have an empty framelayout in that framelayout I swap between fragments, according to whatever fragment the user wants through the actionbar . so the MainActivity is never left.. Mar 20 14:34:45 does that sound... like..something you would do :P Mar 20 14:34:46 @lov, if you have better way, I would appreciate it Mar 20 14:34:53 go to google, type in "pastebin", pick one of the choices, paste your code there, click "ok", then paste the url it gives you here. Mar 20 14:35:17 kamol: what you (egregiously >:( ) posted is probably fine. Mar 20 14:36:15 jesus... Mar 20 14:36:17 it worked Mar 20 14:36:23 lov: http://pastebin.com/6QmiEu8N Mar 20 14:36:29 magic Mar 20 14:37:21 btw, tq lov: :) pastebin is cool Mar 20 14:37:46 http://qcmat.com/test.mov Mar 20 14:37:51 this works on iOS and android! woohoo :) Mar 20 14:37:52 10:35:23 < lov> kamol: what you (egregiously >:( ) posted is probably fine. Mar 20 14:38:07 sorry for iOS screen recording, but I got it in my face on my nexus :) Mar 20 14:38:14 I really do need to get a bot in here to do common question/answer stuff. Mar 20 14:38:34 lov in iphonedev we got such a bot :) Mar 20 14:38:35 lov, get an eggdrop going with those handy ~msg user commands Mar 20 14:38:41 maybe but you gotta expect them to keep coming as new people wanna learn to program Mar 20 14:38:45 yeah, I'm just super lazy and I'd need somewhere to host it. Mar 20 14:39:05 when I say "I really need to XYZ" it means "XYZ is a good idea but eh." Mar 20 14:39:23 ahh.. Mar 20 14:39:25 youre a female Mar 20 14:39:52 P3nnyw1se, didnt you know, there's no girls on the internet Mar 20 14:39:56 lov: tq! Mar 20 14:39:59 If you're familiar with maven and/or Androidannotations, please check http://stackoverflow.com/questions/15521639, makes me go crazy. Cheers Mar 20 14:40:10 okay, time to dig a nice refresh icon up, any suggestions? Mar 20 14:40:15 christ, not this again. Mar 20 14:40:22 Ankwatcher I have Mar 20 14:40:27 a nice idea Mar 20 14:40:31 just gonna drop this here: http://xkcd.com/322/ and move on. Mar 20 14:40:33 What is the most beautiful way to make a HUGE Preference Screen? i dont want to use the custom preferenceactivity because the overview is horrible. Fragments cannot be used because of Android 2.2 ... Any idea? Mar 20 14:40:39 since its refresh.. I'm thinking using the same idea Mar 20 14:40:47 like you know.. maybe 2 green arrows Mar 20 14:40:51 showing things moving around in a circle Mar 20 14:43:53 P3nnyw1se: green? Don't you know that colours are outlawed? Mar 20 14:50:24 Does ActionBarSherlock have any icons in it? If so how do I reference them from xml? Mar 20 14:50:58 if you used IDEA it'd tel lyou Mar 20 14:51:45 Zharf: I'm going to guess that's some sort of competing ide? Mar 20 14:52:08 yes Mar 20 14:52:43 oh you mean IntelliJ Mar 20 14:52:53 I can't check as I'm not booted to linux right now and I don't have it (or any kind of devenv) installed on this windows Mar 20 14:52:56 yes Mar 20 14:53:27 I'll be setting up a machine to be my new dev box later today (hopefully) maybe I'll try out IntelliJ on there Mar 20 14:54:30 :) Mar 20 14:55:29 I'm really looking forward to having USB ports that work *all* of the time Mar 20 14:55:38 misterli: Can you use the fragments library for 2.2? The backward compatibility stuff? Mar 20 14:56:15 personally, I think the compat library is a nightmare... examples are all "pure fragment based" and don't work as is with the compat stuff. Mar 20 14:56:41 but smarter people than I apparently do use it. Mar 20 14:56:52 pmgnet1, blame the users and manufacturers for using and making 2.x devices still! Mar 20 14:57:09 and I never found compat lib to be hard to use Mar 20 14:57:20 Yeah, I need more practice... Mar 20 14:57:31 Haven't been forced to use it. Mar 20 14:57:50 Zharf: who still makes 2.3.x devices at this point? Mar 20 14:58:30 it's not really that... often one has to provide enterprise apps. Mar 20 14:58:34 lov, I only remember seeing a new 2.3.x device released last year Mar 20 14:58:35 and users have old junk Mar 20 14:59:16 I guess I'd rather blame the manufacturers for abandoning their products so fast Mar 20 14:59:22 i have a method startActivityForResult in an onCreate method of an activity. Every time the onCreate method gets called.. how to prevent this? Mar 20 14:59:55 i need to pick again every time Mar 20 15:00:16 Sup guys. Mar 20 15:00:34 Man, the lead developer of web2py is lecturing to my class right now Mar 20 15:00:38 about to have a nerdgasm Mar 20 15:01:05 j4hr0m: the bundle in the onCreate if it's null = new activity, if != null restarting ? Mar 20 15:01:08 drop a 0-day in class Mar 20 15:01:23 then drop the mic and just walk out Mar 20 15:01:33 ^ Mar 20 15:03:40 what is "^" ? 1 raised eyebrow ? look at the statement above? and elf hat ? Mar 20 15:03:44 * StingRay_ feels old Mar 20 15:04:05 statement above Mar 20 15:04:11 usually... Mar 20 15:04:23 and "^^" is really look .... Mar 20 15:04:24 ? Mar 20 15:04:27 i have: Intent chooser = ( new Intent( Intent.ACTION_PICK ) ).setType( "image/*" ); Mar 20 15:04:32 and: startActivityForResult( Intent.createChooser( chooser , "Select photo..." ) , PICK_IMAGE ); Mar 20 15:05:03 why does startActivityForResult call onCreate again, when returning, and not onResume? Mar 20 15:05:29 * kaneda^ points at StingRay_, get off my lawn! Mar 20 15:05:41 j4hr0m: look at the activity lifecycle stuff on d.android.com Mar 20 15:05:48 i do Mar 20 15:06:18 it seems startActivityForResult is playing another role.. Mar 20 15:06:49 coming up on 80% RAM usage :| Mar 20 15:08:34 eclipse is using ~300MB now Mar 20 15:10:08 300 MB of what? Mar 20 15:10:18 RAM Mar 20 15:10:34 mines over 1 GB right now Mar 20 15:10:38 i've allocated 1.5GB to this VM too Mar 20 15:10:50 perhaps i need to allocate more :| Mar 20 15:11:31 715mb ram on my eclipse Mar 20 15:11:52 huh, lower that I would have thought Mar 20 15:11:54 i just saw the heap grow from 278 to 316 Mar 20 15:12:34 no me gusta Mar 20 15:13:13 i'm gonna expand the memory of this one live to 2GB, an extra 500MB should help Mar 20 15:13:28 i'll be totally maxing out soon though Mar 20 15:15:04 gonna give it another core too -_- Mar 20 15:17:02 those android:inputType="textPostalAddresse" Mar 20 15:17:03 e.g. Mar 20 15:17:06 what exactly do they do? Mar 20 15:17:07 :P Mar 20 15:17:35 kaneda^: welcome to eclipse. Mar 20 15:17:45 kaneda^: your xmx should be at least 1.5GB, if not 2. Mar 20 15:17:47 lov, now my whole VM is locked up ;_; i was about to build again Mar 20 15:18:07 lov, it was 1GB for a while no problem, but since i've begun compiling statically and requiring a lot of packaged libs it's totally freezing sometimes Mar 20 15:18:09 kaneda Mar 20 15:18:13 did you install Hax ? Mar 20 15:18:18 nope, what's hax? Mar 20 15:18:45 hardware accelrator something Mar 20 15:18:50 I installed it through my Android SDK Mar 20 15:18:54 ? Mar 20 15:18:56 and my virtual devices Mar 20 15:18:58 are 3x as fast now Mar 20 15:19:10 i dont use virtual devices, i'm running a dev VM for NDK development Mar 20 15:19:16 I see Mar 20 15:19:20 well then its obvious to me Mar 20 15:19:21 you should Mar 20 15:19:23 ignore what I just wrote Mar 20 15:19:32 and for real devices hardware accel is available for 3.0+ and default in 4.0+ i believe Mar 20 15:20:11 * kaneda^ pulls the plug on the VM Mar 20 15:20:33 android:inputType="xxxxxx" Mar 20 15:20:35 again stupid questions Mar 20 15:20:39 do they do anything Mar 20 15:20:40 ? Mar 20 15:22:03 giving it access to a 2nd core seems to be working wonders actually Mar 20 15:28:47 thx StingRay_ Mar 20 15:38:01 hey y'all Mar 20 15:38:14 morning Mar 20 15:38:37 how goes? Mar 20 15:38:39 P3nnyw1se: what do you mean "do they do anything?" Mar 20 15:39:39 guys, is it possible to capture screen by reading /dev/graphics/fb0 in 4.2.2? Mar 20 15:40:09 I tried this but I have file with zeroes instead of normal pixels Mar 20 15:41:32 is it possible to take screenshots with ddms programmatically? Mar 20 15:41:43 Hey guys, I was posting about the Tubalr Alpha testing last night, here's an official Tubalr blog post: http://tubalr.tumblr.com/post/45838179417/calling-all-android-users-open-alpha Mar 20 15:42:39 gmag, btw, do you know any method to take a screenshot? Mar 20 15:43:33 gmag, programmatically I mean. Mar 20 15:43:48 codinho, nop, trying to find out. Mar 20 15:44:10 codinho, in fact it should be possible with opengl context and reading the framebuffer Mar 20 15:44:27 I tried this, but it seems that I have no permissions to have access to framebuffer Mar 20 15:44:30 gmag, it was possible to read /dev/graphics/fb0 in the past, but now I can't to perform it Mar 20 15:44:50 codinho: on ICS?+ they butched reading the framebuffer Mar 20 15:44:52 gmag, I can't to do it even on rooted device with access to framebuffer Mar 20 15:44:55 codinho, yup, it seems it is not very recommended Mar 20 15:44:59 so, I have a viewpager that has a bunch of list fragments inside (each page is a listfragment) -- the list fragment is populated by one query, but each row in the listfragment is populated by another query Mar 20 15:45:04 is there a better way of doing that? Mar 20 15:45:17 it works, but is really laggy/slow Mar 20 15:45:25 I forget the exact details but there's a few ways to get a screenshot Mar 20 15:45:34 mheld: use one query... Mar 20 15:45:48 dont do the second query on the UI thread Mar 20 15:45:48 mikedg, jelly Mar 20 15:46:11 jelly here as well Mar 20 15:46:11 mikedg, do you know how they did this restriction? Mar 20 15:46:14 codinho: look at the source code for the adb service on the device and see how it gets it's code Mar 20 15:46:21 mikedg: I'm using a cursorloader but the problem with that is that I have no idea how to segment each row Mar 20 15:46:30 codinho: it's not a restriction, it's a side effect of hardware accel I think Mar 20 15:46:37 mikedg: like, how would the list adapter know how many elements to use Mar 20 15:47:45 what do you mean by "how many elements to use" Mar 20 15:48:00 paste yoru queries somewhere Mar 20 15:48:11 mikedg, oh, I see, so is it actually possible to capture screen without root? Mar 20 15:48:12 are you using a content provider or database access? Mar 20 15:48:26 mikedg: database access Mar 20 15:48:30 codinho: you still need to be a system signed app but you dont need root Mar 20 15:48:34 mikedg: I'll paste the queries I'm using in a sec Mar 20 15:48:37 k Mar 20 15:48:52 mikedg, nice to hear it Mar 20 15:49:29 how can i make my floating activity stretch to the width of the screen? the style's parent is Theme.Dialog and i set windowBackground to my own drawable. Mar 20 15:49:55 mikedg, I'm really noob here, can you give us any advice where we could find how to do legal screen capturing? Mar 20 15:50:18 osxorgate, see this http://stackoverflow.com/questions/1362723/how-can-i-get-a-dialog-style-activity-window-to-fill-the-screen Mar 20 15:50:21 mikedg, that would be nice yeah Mar 20 15:50:31 mikedg, hmmmm didn't know you ever worked on anything like that before Mar 20 15:50:36 codinho: why would you pick this project as a noob? Mar 20 15:51:29 mikedg, I'm noob in android but not in linux and low level development etc. Just want to do something what I want to do:) Mar 20 15:52:21 mikedg: two years of life culminating with Jira logins getting revoked Mar 20 15:53:06 brx_: crikey that works. thanks Mar 20 15:53:32 good stuff! Mar 20 15:54:24 hi - in eclipse i can reference another android app within .classpath -> and then use a class / extend class from SimpleQuickactions within another application - how do I do something similar when using ant to build? for now I do: ant debug -lib ./libs (I have some additional jar packed libraries in the libs folder) but that raises un Mar 20 15:54:24 known namespace error when building "the another application"... Mar 20 15:55:35 mikedg, home made project Mar 20 15:55:38 mikedg, and which adb service are you talking about? Mar 20 15:56:06 isn't there some ADB crap running on the device that interfaces with ADB on your computer? Mar 20 15:57:46 mikedg, yup, the server side of adb Mar 20 15:57:57 ADB in the house Mar 20 15:58:14 yah, adb kill-server adb start-server to control Mar 20 15:58:37 to kill and restart Mar 20 15:58:47 mikedg: select * from channels where displayInFavorites=1 and channelId in (select distinct channelId from timetableEntries) group by channelId order by cast(channelNumber as numeric) asc; then select * from timetableEntries where channelId='us-fox' and endDate>1363793400000 and startDate<1363798800000 order by endDate asc + select * from timetableEntries where channelId='us-cbs' and endDate>1363793400000 and startDate<1363798800000 order by endDate asc et Mar 20 15:58:54 maybe I should pastie that Mar 20 15:59:39 mheld: looks like an sql query Mar 20 15:59:54 mikedg: http://pastie.org/pastes/6640336/text?key=vlahoqx5wqcytmbj7xvw Mar 20 15:59:57 nseidm1: correct! Mar 20 16:02:19 me want cookie Mar 20 16:02:26 nom nom Mar 20 16:02:59 Does anyone else see images like this: http://cdn.androidpolice.com/wp-content/uploads/2013/03/nexusae0_icon_thumb3.png and immediately assume the game is crap? Mar 20 16:03:02 mikedg: I *could* join them into one bigass query but then I'd be getting timetableEntries, which will be interesting to figure out how to get the right number of rows in the listfragment Mar 20 16:03:12 mikedg: because right now, each row is a channel Mar 20 16:04:09 Ankhwatcher: I dont Mar 20 16:04:23 I think that would be a bit… well silly to assume that Mar 20 16:04:45 looks like a metal shark, bad ass Mar 20 16:15:46 looks like they at least have designers capable of making decent graphics Mar 20 16:17:28 whatsapp is in the winzip phase Mar 20 16:17:33 "now with new icons" Mar 20 16:17:40 i have yet to use it ;p Mar 20 16:17:47 i guess i just dont have friends :D Mar 20 16:18:12 nor f*ckbuddies ;) Mar 20 16:18:21 timroes, heh Mar 20 16:18:29 monsti, well i am married Mar 20 16:18:44 ok that explains everything to me! Mar 20 16:18:54 coco89: ? Mar 20 16:19:12 I really meant the iOS style surround. It just screams "crappy port" to me. Mar 20 16:19:15 i guess i lost track of what i wrote hours ago :D Mar 20 16:20:19 timroes: thats it! we need to move #android-dev to twitter Mar 20 16:20:47 great just expel me :( Mar 20 16:22:59 Hi! any ideas if I can draw gradient routes with google maps v2? it doesn't seem possible with polylines... Mar 20 16:24:50 ouch, someone got fired for making a dick joke at PyCon :/ Mar 20 16:25:04 i guess the boss was a real dick Mar 20 16:25:14 maybe someone wasn't working hard enough Mar 20 16:25:17 belgianguy: if they let one by, it would open up the floodgate Mar 20 16:25:25 boss was afraid of bad PR more likely Mar 20 16:25:36 those were jokes! Mar 20 16:25:36 I didn't know people were that sensitive nowadays Mar 20 16:25:57 then again, I'm quite juvenile when it comes to humor Mar 20 16:26:25 dick jokes exclude women Mar 20 16:26:32 bad taste to do it during national women in tech month Mar 20 16:27:25 mikedg: I thought it was national eat chicken and play hopscotch month Mar 20 16:27:56 woman love dick jokes! well, whenever i get mine out they tend to laugh at me :( Mar 20 16:28:08 nice one brx_ Mar 20 16:28:28 timroes: I've written this NFC app to read from Tags but it's not reading anything. I've used to a demo app to write onto the tag so there's definitely a string on it. For some reason my app isn't reading anything so I've put a toast in the if statement in the onNewIntent method and it doesn't work http://pastebin.com/vqS5j6FU Mar 20 16:28:31 my 256GB mSATA drive is installed! time to set up Mint on that sucker Mar 20 16:28:43 brx_: that's not a dick joke, that's a joke dick. Mar 20 16:29:03 hihi Mar 20 16:29:10 timroes, wait the code is a bit off cos i was testing something out, I have two onNewIntent methods ther Mar 20 16:29:19 but disregard the empty one Mar 20 16:29:20 coco89: i can tell you: i have no idea :D Mar 20 16:29:24 never did NFC coding Mar 20 16:29:40 but yesterday a carton of NFC tags arrived here, so if you wait 1 month i am sure i can give you some feedback :) Mar 20 16:29:45 Ankhwatcher: i got ma 840 - 500 from samsung 3 days ago Mar 20 16:29:52 last time someone said NFC was literally 5 lines of code :p Mar 20 16:30:02 monsti: ? Mar 20 16:30:05 belgianguy, that's not true Mar 20 16:30:14 coco89: I presume Mar 20 16:30:16 timroes, you knew about it last time :S Mar 20 16:30:24 send me a cod full of nfc please Mar 20 16:30:32 Ankhwatcher: my 500 gb ssd sata drive Mar 20 16:30:46 monsti: ah, how much did that set you back? Mar 20 16:31:05 coco89: i used google i guess and the tutorials, but for why its not working i can't tell. lemme give it a closer look perhaps i find some obvious errors Mar 20 16:31:13 but if not, i guess i don't know :) Mar 20 16:31:17 well i swapped a 256gb ssd with a 500gb ssd - but the samsung is much faster Mar 20 16:31:24 timroes, sure, thanks! :) Mar 20 16:31:34 have you tried installing another nfc reader (some general one) and see if it recognizes the tag and the string written to it? Mar 20 16:31:55 timroes, not yet Mar 20 16:32:14 but I used a demo app to write to it so I'm assuming it would be fine but I guess I'll give that a shto too Mar 20 16:32:15 *shot Mar 20 16:33:48 coco89: might have found it, you are missing the addDataType Mar 20 16:34:17 http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html#tech-intent Mar 20 16:35:00 and the techlistarray Mar 20 16:35:17 but i really can't tell you if they are both required (though I would guess at least the data type is required) Mar 20 16:35:38 timroes, so I need to add something like this? -> Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); Mar 20 16:36:22 try REPLACING(!) line 37 in your paste with: tagDetected.addDataType("*/*"); Mar 20 16:36:30 skip the default category stuff Mar 20 16:36:44 okay Mar 20 16:37:58 * xviv sends hello from GMT+7 Mar 20 16:38:02 ah btw what might also be your problem: you are using a wrong onNewIntent method :) Mar 20 16:38:29 method #60 is just a method, you want to put your stuff to line 50 Mar 20 16:38:45 ah okay Mar 20 16:38:51 so you need to override the onNewIntent method Mar 20 16:38:58 yeah :) Mar 20 16:39:04 btw docu is wrong there :) Mar 20 16:39:04 got it, trying now Mar 20 16:39:11 wil fix it immediately Mar 20 16:39:20 because docu states its public but the method is protected Mar 20 16:39:42 canadiancow: if you are there, which branch again should i use to fix docu :D Mar 20 16:40:59 timroes, damn, when I try reading the tag the 'new tag collected' screen comes up instead Mar 20 16:41:26 from another app? Mar 20 16:41:47 timroes, it's included in android I think, it's the app that comes up when you don't have a real tag reader Mar 20 16:41:54 it's just a screen with what's written in it Mar 20 16:42:27 there is a default nfc reader? Mar 20 16:42:42 timroes, yes it looks like this http://desmond.imageshack.us/Himg703/scaled.php?server=703&filename=screenshot2012071804360.png&res=landing Mar 20 16:43:54 coco89: anyway what app it is, as long asa it pops up, you don't seem to listen to that intent Mar 20 16:44:11 just a small question to make sure, you startet your app and its in foreground? Mar 20 16:44:14 when scanning the tag Mar 20 16:44:21 timroes, Yes my app was in the foreground Mar 20 16:44:31 okay Mar 20 16:44:37 just another issue before i forget Mar 20 16:44:46 you call getIntent() to get the new intent in your (wrong) onNewIntent method Mar 20 16:45:06 getIntent won't be changed for a new intent, you would need to call setIntent manually in your onNewInten(Intent) method if you want to use that method Mar 20 16:45:29 so if you want to have getIntent always return the latest intent, call setIntent(intent) in your onNewIntent method Mar 20 16:46:22 Oh really? so before anything in the onNewIntent method I'd have to call setIntent(intent); Mar 20 16:46:30 if you want to use getIntent yeah, Mar 20 16:46:38 oh right :S Mar 20 16:46:39 you can ofc just pass `intent` to your processIntent method Mar 20 16:46:46 you don't need to use getIntent Mar 20 16:48:20 timroes, okay I've put setIntent(intent); Mar 20 16:48:29 the other 'app' is still coming to the foregruond instead thuogh Mar 20 16:48:42 paste new code please :) Mar 20 16:48:55 timroes, sure Mar 20 16:49:33 timroes, http://pastebin.com/7fAHgy6z Mar 20 16:50:04 okay then it might be you need the tech stuff :) Mar 20 16:50:32 timroes, this is my manifest http://pastebin.com/2FkPcaZM Mar 20 16:52:08 coco89: try to make the techListArray (as described in the tutorial) Mar 20 16:52:15 for the tech you are using Mar 20 16:52:20 (or all, if you don't know) Mar 20 16:52:28 (point 1.3) Mar 20 16:53:52 timroes, this line techListsArray = new String[][] { new String[] { NfcF.class.getName() } }; Mar 20 16:54:01 yeah Mar 20 16:54:19 but replace NfcF with the nfc tech you are using Mar 20 16:54:27 http://developer.android.com/reference/android/nfc/tech/package-summary.html Mar 20 16:55:04 Oh I'm not sure which one i'm using Mar 20 16:55:14 see logcat Mar 20 16:55:22 dispatch tag: TAG: Tech [android.nfc.tech.MifareUltralight, android.nfc.tech.NfcA, android.nfc.tech.Ndef] Mar 20 16:55:29 it will print out something like that when scanning Mar 20 16:58:02 timroes, doesn't print out anything :S Mar 20 16:58:32 you see all debug messages? Mar 20 16:58:44 and are using no filter? Mar 20 16:58:52 my logcat http://pastebin.com/YQGXFTdP Mar 20 16:59:24 when you scan a tag and the other activity is startet? Mar 20 16:59:36 that seems strange, because there should at least be the starting message for the activity Mar 20 17:00:00 yeh :S Mar 20 17:00:37 so make sure you have the right logcat from the right deivce, and not perhaps still runing emulators or so Mar 20 17:01:03 because i am pretty sure you should get at least an I/ActivityManager( 389): START u0 {act=android.intent.action.MAIN... and so on Mar 20 17:01:41 timroes, this is in the console http://pastebin.com/quiKzr0Q Mar 20 17:01:42 yeh that i got Mar 20 17:02:23 what console? Mar 20 17:02:36 eclipse Mar 20 17:02:40 anyway as long as you don't get the right logcat output i neither can tell you what nfc technique you are using :) Mar 20 17:02:53 i don't use eclipse, so no idea whats going on there Mar 20 17:02:55 timroes, also i have a log.d() in the newIntentMethod which isn't showing so that onNewIntent isn't being called I guess Mar 20 17:03:14 *onNewIntent method Mar 20 17:03:23 but regarding that a lot of messages aren't shown in your logcat there might be also other reasons :) Mar 20 17:04:03 yeah Mar 20 17:04:17 btw also try removing the super.onNewIntent(intent) from your method (i don't think it will change anything, but not needed in that case) Mar 20 17:04:27 okay sure Mar 20 17:06:11 you could still try to add every technology to the tech filter Mar 20 17:06:22 the linux mint installer automatically spotted my windows partition sitting on another drive and set up the bootloader to allow me to boot into either OS. I want to give grub a hug right now. Mar 20 17:06:37 new String[]{ new String[]{ NfcA.class.getName() }, new String[]{ NfcB.class.getName() }, .... }; Mar 20 17:06:56 hmm okay in which method? Mar 20 17:07:11 Ankhwatcher: i guess you should thank the linux mint ppl (or ubuntu, since i am not sure if that part is taken over form ubuntu) and not grub :) Mar 20 17:07:27 coco89: in your onCreate method you generate that array and pass it to enableForegroundDispatch (see docs) Mar 20 17:08:32 okay Mar 20 17:09:48 timroes, is it TechListArray techListArray ? Mar 20 17:10:09 String[][] Mar 20 17:10:21 String[] techListArray okay Mar 20 17:10:38 ooh yeah Mar 20 17:10:45 silly me it's in that line Mar 20 17:15:48 timroes, tried it, still the same issue let me show you the code so far Mar 20 17:16:41 timroes, http://pastebin.com/jG6rGyfi Mar 20 17:17:02 coco89: eh no the techlistarray is a bit wrong :) Mar 20 17:17:09 you override it several times Mar 20 17:17:25 oh? Mar 20 17:17:37 techListsArray = new String[][] { new String[] { NfcA.class... }, new String[] { NfcB...}, new String[] { NfcF...} }; Mar 20 17:17:47 you now only listen to nfcV tags Mar 20 17:17:52 ohh Mar 20 17:18:36 coco89: uh.... Mar 20 17:18:43 coco89: I'm going to gently suggest that you learn Java before you continue. Mar 20 17:19:03 hint: lines 48-56 don't do what you think they do. Mar 20 17:20:23 timroes: yeah lots of strings ;) Mar 20 17:22:32 timroes, http://pastebin.com/qkX92xTC Mar 20 17:23:26 timroes, there's some progress.. the log.d() is working.. Mar 20 17:23:47 but nothing is being read.. Mar 20 17:24:04 coco89: does that work? If not why doesn't it work? Mar 20 17:24:27 the other app doesn't appear anymore Mar 20 17:24:45 neat, my Network Log app got featured in http://www.androidpolice.com/2013/03/19/top-android-apps-every-rooted-user-should-know-about-part-7-apps-50-57 Mar 20 17:24:49 http://pastebin.com/QKLiGuJL Mar 20 17:25:35 coco89: excellent your app received the intent Mar 20 17:25:52 why is it TECH_DISCOVERED and not NDEF_DISCOVERED :S Mar 20 17:25:59 strange! Mar 20 17:26:53 coco89: http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#dispatching Mar 20 17:27:25 yeah I thought i registered to handle NDEF Mar 20 17:27:26 but yeh Mar 20 17:27:37 so it's got the intent but it's not reading :S Mar 20 17:27:59 keep in mind, your techlist needs to match the supported tech in the tag, exactly Mar 20 17:28:15 you cant have extra definitions in your techlist that the tag does not support Mar 20 17:28:31 birbeck:only the part that is ANDed? Mar 20 17:28:42 the part that is ORed can have some? Mar 20 17:28:55 the part that is ORed? Mar 20 17:29:22 the whole file makes up your techlist, unless you have multiple techlists Mar 20 17:29:46 you can have multiple tech-list tags in one file Mar 20 17:29:48 each definition in a single techlist is AND Mar 20 17:29:51 and each tech-list items are AND Mar 20 17:30:00 but only one tech-list must match Mar 20 17:30:05 right Mar 20 17:30:14 and in the array I would assume the outer array is the OR and the inner the AND Mar 20 17:30:28 (and since it matches for him, I would assume I assumed right :D) Mar 20 17:30:49 ah ok. i thought he was still having problems getting the intent Mar 20 17:30:59 i havent been paying close attention to the conversation Mar 20 17:31:13 coco89: the intent is not reading because you compare btw to TAG_DISCOVERED Mar 20 17:31:18 but retrieve an TECHH_DISCOVERED Mar 20 17:31:21 as you saw in the logcat Mar 20 17:31:26 so i have to change to tech discovered Mar 20 17:32:25 timroes, I changed to Tech discovered and it worked. Thanks you've just saved me a week of crying Mar 20 17:32:34 you should also really read this (several times) http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#dispatching Mar 20 17:32:44 it explains detailed the differences between these actions Mar 20 17:32:46 and how they are dispatched Mar 20 17:32:53 timroes, I will read it tonight Mar 20 17:32:53 and when an activity is responsign Mar 20 17:33:28 Yes, I don't understand why it is not NDEF Mar 20 17:33:32 I should definitely read it Mar 20 17:33:58 timroes, so I guess the problem was the fact there was no techListsArray? what is that? why did we need it? Mar 20 17:34:12 I've looked at several read/write tags demo and none of them had mentioned it before Mar 20 17:34:50 coco89: then these are bad demos :D Mar 20 17:35:11 is offline documentation available for android APIs that aren't the latest? Mar 20 17:35:15 timroes, so we need them _always_ when reading from tags? Mar 20 17:35:19 you need to specify a tech list to tell what tags should be listened to Mar 20 17:35:30 i guess so, but as i said, never done anything with nfc so far :D Mar 20 17:35:41 just unpacked the package i mentioned earlier and looked at my nfc stickers Mar 20 17:35:42 timroes, you say that but you're a genius at it :S Mar 20 17:37:01 i doubt so. haven't even read the NFC api guides yet Mar 20 17:37:06 but want to do it within the next days Mar 20 17:38:10 timroes, all you would need is an hour I'm sure :P Mar 20 17:38:20 but yeah, what exactly are the techListArrays doing Mar 20 17:38:23 Can I add a TextView to an AlertDialog that I called .setItems() on? If I create all views myself, they do not fit the theme I chose... Mar 20 17:38:24 I have a ViewPager, and inside it, two listViews, after it is shown. I'm trying to get them via findViewByID() and set an adapter to them. But it's not working. Somebody knows why? Mar 20 17:38:25 I'm sorry I'm very new to this Mar 20 17:38:36 I will indeed read the docs tonight Mar 20 17:38:37 like an intent filter for the techs Mar 20 17:38:50 specify what techs the nfc tag must support Mar 20 17:39:33 though still have no idea about the techs Mar 20 17:39:36 timroes, I think i have the wrong idea of what a tech is Mar 20 17:39:43 I will look it up Mar 20 17:39:52 but i've always thought different tags use different 'technologies' Mar 20 17:41:04 mine seem to be android.nfc.tech.MifareUltralight, android.nfc.tech.NfcA, android.nfc.tech.Ndef and they are sold as NTAG 203 chips Mar 20 17:41:52 i guess the techs are just kind of specifications (or not just kind of, since several have an ISO number in the docs), and tags can support multiple of them Mar 20 17:42:33 so you would write your app accordingly right Mar 20 17:42:36 and k stuff like NTAG 203 is just kind of product name of an NXP tag that seems to support the above 3 techs Mar 20 17:42:54 lets see what my mifare student card supports :) Mar 20 17:43:26 android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable Mar 20 17:44:44 timroes, I just realised what worked was actually the log.d() in the if statement when comparing the getIntent().getAction(). hmm let me see Mar 20 17:46:37 I have a ViewPager, and inside it, two listViews, after it is shown. I'm trying to get them via findViewByID() and set an adapter to them. But it's not working. Somebody knows why? Mar 20 17:46:44 timroes, it's calling the processReadIntent() method, but it's not showing the string that's read Mar 20 17:46:54 timroes, something is wrong in there Mar 20 17:48:13 then it doesn't read data perhaps :) Mar 20 17:48:20 i would debug it and see what the variables evaluate to Mar 20 17:48:44 what doesn't read data? Mar 20 17:48:57 Uh, I like riddles. Mar 20 17:49:00 Is it green? Mar 20 17:49:31 coco89: your method Mar 20 17:49:36 or meaning, android doesn't read data from the tag Mar 20 17:49:43 so i would debug it and look at it, what happens Mar 20 17:50:24 I've not really done debugging before Mar 20 17:50:44 okay so i shuold read what's in the intent Mar 20 17:51:03 I have a question: When is surfaceCreated called? Mar 20 17:52:40 Is there any "good and easy" way to protect an App to get copied after purchasing? Mar 20 17:53:09 http://support.google.com/googleplay/android-developer/answer/186113?hl=en Mar 20 17:53:13 use the licensing service Mar 20 17:54:00 coco89: how you debug is really a question for ##java or #eclipse (if there is something like that :D) Mar 20 17:54:02 misterli: just make sure to not copy/paste the sample code unless you want to get cracked immediately. Mar 20 17:54:11 but be sure you lean debugging, its the most valuable tool you have Mar 20 17:54:26 Jake, you said on Twitter that you have new ideas for the code generation part of @Annotations. Would it be possible to lessen the boilerplate code for, say, OnClickListeners? Mar 20 17:54:40 timroes, for sure I will do Mar 20 17:54:48 kakazza: it could, sure Mar 20 17:55:07 That sounds like "...but not worth it"? Mar 20 17:55:11 timroes, but from that method could you see any obvious errors? it looks okay right? Mar 20 17:55:21 i will start debugging in a sec and then hopefully if i have time tonight i'll read the docs Mar 20 17:55:59 kakazza: depends on what you think is worth it. i haven't had a time to look and see just what it would accomplish in eliminating Mar 20 17:56:27 I see. Mar 20 17:58:49 timroes, can't thank you enough for your help btw. I'm going to go for a break and I'll be back to hopefully debug this thing Mar 20 17:58:59 See you in a bit! Mar 20 18:07:42 I have a ViewPager, and inside it, two listViews, after it is shown. I'm trying to get them via findViewByID() and set an adapter to them. But it's not working. Somebody knows why? Mar 20 18:09:02 Is it possible to have a CursorLoader which use a ContentObserver for an exact URI? Mar 20 18:15:09 Isn't that exactly what it does? Mar 20 18:20:00 noooo tim whyy :'( Mar 20 18:20:45 SimonVT: yeah i think Mar 20 18:20:59 JakeWharton: I need a charting library Mar 20 18:21:03 can you make me one Mar 20 18:21:04 chartjs.org Mar 20 18:21:06 I'll kickstart it Mar 20 18:21:08 + WebView Mar 20 18:21:13 SimonVT: It seems not the case because onLoadFinished is called when a notifyObservers is done on another URI (on same table) Mar 20 18:21:16 it needs fancy animations Mar 20 18:21:27 pure d3.js + WebView Mar 20 18:22:00 i need candlestick charts Mar 20 18:22:14 you got a fucking answer for everything Mar 20 18:32:00 * Bleeptech does the happy dance.. Mar 20 18:32:58 Hmm, WebView? Does that work out well? WebView + JS Lib? Mar 20 18:33:52 Hi, question about building with ndk: what is the deal with ARCH_ARM_HAVE_TLS_REGISTER, because I read that is used for cpus that have the tls flag and crashes because the OS is emulating it. But I have an application build (with sdk9 and tolchain 4.6) and it is crashing in devices that do not have the flag. So I don't understand what to do... any idea? Mar 20 18:33:54 I think I'm getting the hang of intents and I think I've figured out how to modularize my code.. Mar 20 18:38:42 Bleeptech: hooray Mar 20 18:39:58 I'm creating a custom listview by extending Adapterview. i want to handle keyevents in onKeyDown and, despite setting focusable(true), i'm not receiving any key events. any ideas? Mar 20 18:40:32 Now if I could just figure out a way to deal with keeping variables handy besides stuffing them up some SQLite.. Mar 20 18:46:19 thanks Mar 20 18:47:10 Bleeptech: "some" values to pass from activity to activity? Mar 20 18:47:42 Bleeptech: or do you want to persist your data and to survice a device reboot? Mar 20 18:48:20 monsti: Both eventually.. :) Mar 20 18:48:31 the fist is easy Mar 20 18:48:39 put them to a publc static variable Mar 20 18:48:51 the 2nd - put it in a sqlite database Mar 20 18:49:03 It's getting them 2 and 3 levels down in Java that's biting my arse. Mar 20 18:49:45 welll ... e.g. public class MyStuff ... make this a singleton class Mar 20 18:49:56 and MyStuff is avaliable anywhere and anytime Mar 20 18:50:58 monsti: Some of it is just doing to have to stay a mess.. Security through obfuscation.. :) Mar 20 18:51:14 lol? Mar 20 18:51:32 wtf has a singeton pattern anything todo with security? Mar 20 18:51:47 or was this just mental blurb? Mar 20 18:51:51 is it possible to write a part of my app in C (using the NDK) and most of it in java? Mar 20 18:52:25 Not a clue.. What's a singleton pattern ? LMAO.. Seriously.. LOL Mar 20 18:53:53 Bleeptech: yeah - that's a nice point to get a java coding tutorial Mar 20 18:57:03 monsti: I probably know what it is, but my Java knowledge is 10 years out of date.. Mar 20 18:58:22 StingRay_, Osbourne's helping the visual effects sector with tax relief measures Mar 20 18:58:52 i think you mean the simpleton pattern Mar 20 18:59:44 brx_: yes Mar 20 19:00:00 you sticking with android though ye? Mar 20 19:00:03 actually makes little long term difference Mar 20 19:00:06 mikedg: That's my coding.. LMAO.. :) Mar 20 19:00:29 ahh, shame Mar 20 19:00:51 brx_: I will always do both i think Mar 20 19:01:08 brx_: looking at building some Maya/games/vfx courses atm Mar 20 19:01:21 wicked man, smart smart smart Mar 20 19:02:03 just need venues to collaborate with though, oh and students :) Mar 20 19:02:36 well in the words of kevin 'if you build it they will come' Mar 20 19:03:08 yeah thats bollox in todays intellengent demographics, unless you want to attack stoners Mar 20 19:03:10 then maybe Mar 20 19:03:17 attract Mar 20 19:03:22 not attack :) Mar 20 19:04:17 stoners aint too bad Mar 20 19:04:18 StingRay_: What are you going to do? Throw donuts and Mountain Dew? LOL Mar 20 19:06:32 i really need to get back into teaching 3d graphics, maybe do a 3d graphics for mobile course :) Mar 20 19:10:07 StingRay_: with the oculus rift! Mar 20 19:10:17 god no Mar 20 19:10:26 when I get my rift, my first project is going to be in Unity Mar 20 19:10:41 you will be able to look down and see your boobs and then jump up and down and watch them bounce Mar 20 19:14:57 oculus rift looks sick Mar 20 19:15:35 mikedg porn is gonna be taken to new heights Mar 20 19:17:13 mikedg, have you already a shipping confirmation for the rift? Mar 20 19:17:23 no shipment conf yet :( Mar 20 19:17:37 I was hoping to have it prior to pax east, so I could be the cool kid Mar 20 19:18:37 me neither :( but I'm from Germany, I guess I'll have to wait longer ;) Mar 20 19:19:59 hey Mar 20 19:20:32 I am making an islamic app... I am going to put the prayer times on the start screen but what should I use to show it? ListView? Mar 20 19:20:50 Ilhami: widget? Mar 20 19:21:32 no on the startpage of my app I mean.. when I launch it Mar 20 19:21:45 i thought it's depends on your data. Mar 20 19:21:57 mikedg <- http://www.robotplunger.com/wp-content/uploads/2011/09/Video-Glasses.jpg Mar 20 19:22:23 you mean, you're showing athan time as 'welcome screen'? Mar 20 19:22:32 i kickstarted the rift on it's first day, I hope I'm near the top of the list Mar 20 19:22:52 Yes Mar 20 19:22:56 xviv Mar 20 19:23:06 mikedg: i missed out but will probably get one when they have non-low-res versions Mar 20 19:23:13 3D/VR/AR is pretty nifty Mar 20 19:23:14 in analog or digital ? Mar 20 19:23:32 digital is preferred.. Mar 20 19:23:38 maybe you should try with listview Mar 20 19:23:39 maybe I can show you an example Mar 20 19:23:59 Im not so familiar with android yet. I am still learning. Mar 20 19:24:07 Ilhami: search about 'lazyadapter' Mar 20 19:24:44 Ilhami: me too. i figured out about lazyadapter from yesterday. Mar 20 19:24:49 isnt a lazy list a bit overkill? its just a list of times right? Mar 20 19:25:16 yes just some times Mar 20 19:25:22 praytime is difference day by day, i guess. Mar 20 19:25:22 what does a lazyadapter do? Mar 20 19:25:28 yes it differs from day to day Mar 20 19:25:38 i know ilham, i'm muslim. Mar 20 19:25:46 oh ok :) Mar 20 19:25:57 Alhamdulillah Mar 20 19:26:12 i guess you should store your pray time and use lazyadapter to make it on listview Mar 20 19:26:44 I would also like to know how to retrieve the times. Mar 20 19:26:54 i still dont think a lazyloading listview is necessary here Mar 20 19:27:21 what does a lazy loading do? Mar 20 19:27:40 so.... simpleadapter? Mar 20 19:27:41 say you want to load images into the list as the user scrolls Mar 20 19:27:57 thats when i use a lazylistview Mar 20 19:28:21 (say from a remote server) Mar 20 19:28:21 brx what would you recommend then? Mar 20 19:28:43 hmm... got it, so lazylistview only used if we're putting images on list, eh? Mar 20 19:28:59 how many textviews do you require in each listview row? Mar 20 19:29:30 xviv, if you are loading images from remote server, thats when ive used it (coupled with a sdcaching class) Mar 20 19:29:51 there are 5 prayers Mar 20 19:29:53 so it downloads images once and chches them on sdcard Mar 20 19:29:54 but I also need sunrise Mar 20 19:30:07 that would make it 6 Mar 20 19:30:14 the names of the prayers and the times Mar 20 19:30:22 and its just a time in the row? or some other text? Mar 20 19:30:29 yes Mar 20 19:30:34 also a date above Mar 20 19:30:38 the list Mar 20 19:31:34 SimpleCursorAdapter should work Mar 20 19:31:54 never used it before.. can I find it on the android developer site? Mar 20 19:31:54 brx_, got it. Yaknow, i just noticed about lazyadapter since yesterday. And i thought i should use it whenever i want to put images on the listview :) Mar 20 19:32:14 xviv, i suppose you could but it wouldnt be necessary Mar 20 19:32:33 Ilhami, this might help you http://www.vogella.com/articles/AndroidListView/article.html Mar 20 19:32:45 Thanks:) Mar 20 19:32:50 brx_, thanks dude. I'll make my code better, later. Mar 20 19:33:06 xviv dont steal my idea :D Mar 20 19:33:13 Ilhami, maybe you need some resource about prayer times. http://prayer.i906.com.my/api.html Mar 20 19:33:19 nope, lol. Mar 20 19:33:19 dont just take my word as gospil, my knowledge certainly isnt flawless heh Mar 20 19:33:48 it's okay. Mar 20 19:34:09 brx dont worry.. I wont take your word as a gospel Mar 20 19:34:37 brx_, how can i handle an url with redirector to another url to download file? Mar 20 19:34:48 if the prayer times change (i dont know much about islam) then use a database Mar 20 19:34:57 because i just got 'java.io.FileNotFoundException' Mar 20 19:35:32 Ilham: here's if you need some resource about prayer time ---> http://prayer.i906.com.my/api.html Mar 20 19:35:53 xviv, im not sure about that Mar 20 19:36:09 you have the INTERNET permission in the manifest? Mar 20 19:36:14 sure Mar 20 19:36:25 wait, Mar 20 19:36:48 i have an url. let's say it's http://my.url.to/file/file.txt Mar 20 19:37:28 but when i try to open it via web browser, the url changed to another and showing the file.txt Mar 20 19:37:42 so its forwarded Mar 20 19:37:45 that's mean the initial url must be redirected right? Mar 20 19:37:58 sure, so.. how could i handle that? Mar 20 19:38:08 what are you using to get the url? Mar 20 19:38:20 HttpURLConnection Mar 20 19:38:43 should i use another libs? Mar 20 19:38:44 Thanks fo the help.. I will continue my research tomorrow... sleeping time Mar 20 19:38:53 have a good night/evening Mar 20 19:39:02 xviv, did you see this http://blog.kosev.net/2011/01/follow-302-redirects-with.html Mar 20 19:39:07 xviv: HttpURLConnection is fine. I think you might need to set a flag for it to handle redirects automatically. Mar 20 19:39:16 what brx_ said Mar 20 19:39:28 .... ugh, no, not that link >:( Mar 20 19:39:37 xviv: httpurlconnection follows redirects by default Mar 20 19:39:38 Don't use HttpGet, it's deprecated Mar 20 19:39:45 (to be exact 5) Mar 20 19:39:53 ahh Mar 20 19:40:34 you can also use this two methods: http://developer.android.com/reference/java/net/HttpURLConnection.html#setInstanceFollowRedirects(boolean) (and the previous one) to control that Mar 20 19:40:53 isn't that true by default, though? Mar 20 19:40:57 yeah Mar 20 19:41:08 hmm.... Mar 20 19:41:21 * xviv reading Mar 20 19:43:35 guys, so i just need to set true value for the method? Mar 20 19:43:42 it is by default Mar 20 19:44:40 so, just need to add that method before .connect() right? Mar 20 19:45:25 you don't even need to add it. httpUrlConnection follows redirects by default Mar 20 19:45:33 yeah, I'm curious why the redirect isn't working properly. Mar 20 19:45:35 you only need to switch it off, when you don't want it to do so Mar 20 19:45:45 i had FileNotFoundException once seems it was a nameserver issue, i substituted the domain name with the ip address and it worked! dunno if this is the same problem but could try it! Mar 20 19:45:50 could you just point to the redirected file directly, or is there a loadbalancer/etc that means you wouldn't want to do this Mar 20 19:46:34 xviv: i guess someone already asked, but you have INTERNET permission in your manifest? :) Mar 20 19:46:43 yes, this too :P Mar 20 19:46:50 he does Mar 20 19:46:55 timrores: yes :D Mar 20 19:47:57 Hi, I have a listView inside viewpager Mar 20 19:48:00 should i post my code? Mar 20 19:48:18 and I've set an Adapter to it, but, it is not showing the data. Mar 20 19:48:55 Sambarboz: then your getCount is 0 Mar 20 19:49:48 Hey, I want to do a msg popup like how Go SMS or Handcent does. I am clueless how to do it. I'm pretty new to android programming. I've looked into dialogs, popupwindows, transparent activities but nothing seems to work for me. Mar 20 19:50:34 dpac: search about AlerDialog Mar 20 19:50:34 Why are you supposing that's 0? Mar 20 19:50:56 dpac: i mean AlertDialog Mar 20 19:51:13 dpac: http://developer.android.com/reference/android/app/AlertDialog.html Mar 20 19:51:21 xviv: I did. But I cannot add a "reply" text field in that, can I? Mar 20 19:51:42 nseidm1, Why do you think it's 0? Mar 20 19:51:46 It's not. Mar 20 19:52:19 dpac: well, sorry. It's out of my experience then :| Mar 20 19:52:21 yo i've got a progressbar that spins very smoothly in my act, but when i use a progressbar in a dialog activity the progressbar is very choppy. what gives? Mar 20 19:52:30 dpac, see this: http://www.mkyong.com/android/android-custom-dialog-example/ Mar 20 19:52:43 might help you get a custom alert dialog (you create your own xml layout for it) Mar 20 19:53:52 brx_: Thanks, checking out Mar 20 19:54:33 brx_: Can it display alert box even when I'm using another app? Mar 20 19:55:07 brx_: I ran into this issue with popupwindow where popup would display with the main activity underneath. Mar 20 19:55:52 hmm Mar 20 19:57:44 dpac, why not use a notification Mar 20 19:57:51 instead of the alert dialog Mar 20 19:59:09 I want to take images of northen light against the dark sky but only have my galaxy nexus phone w. cam. Is it possible to set the exposure time up so that i can take better images? Mar 20 19:59:16 brx_: For my use case, I want the popup to appear when I receive a message from certain number and I can add notes to it along with the original msg in my app's database. Mar 20 19:59:33 brx_: save it in my app's database* Mar 20 20:00:01 personally i would show a notification, its less interrupting to the user, from there you can use a pending intent to launch an activity Mar 20 20:00:32 brx_: Well, if that's the only way to do it, I'd go that route. But I'd still like to know how Handcent/GoSMS/Viber does it Mar 20 20:00:59 myb its using a service to launch the alertdialog? Mar 20 20:01:16 so guys, should i try this? --> http://www.mkyong.com/java/java-httpurlconnection-follow-redirect-example/ Mar 20 20:13:06 when i using wget, the http code is 301. But with httpURLConnection i got 404 lol Mar 20 20:13:38 using wget from the same mobile then using httpurlconnection? Mar 20 20:14:53 nope, i'm using wget from my linux box Mar 20 20:14:53 is the status bar height always the same for portrait/landscape orientation? Mar 20 20:15:24 but i've set User-Agent anyway. Mar 20 20:16:07 xviv: can you paste your manifest file? Mar 20 20:17:16 Mar 20 20:17:16 Mar 20 20:17:16 Mar 20 20:17:33 is that something i have missed? Mar 20 20:18:24 and you can access the url from the device browser? Mar 20 20:19:02 EPG: Probably, but I wouldn't count on it. It might not even be there Mar 20 20:19:03 wait, i'll try... Mar 20 20:22:21 thx SimonVT Mar 20 20:22:23 lulz, the emulator crashes Mar 20 20:23:27 do you guys use intel for emulating android? Mar 20 20:27:01 EPG: no Mar 20 20:27:39 nseidm1, can you give an example? Mar 20 20:29:15 EPG: this seems pertinent, http://mrtn.me/blog/2012/03/17/get-the-height-of-the-status-bar-in-android/ Mar 20 20:30:53 EPG: better to get the value, or computer it rather than assume a fixed value Mar 20 20:31:04 *compute Mar 20 20:32:13 thanks for the link, I wanted to compute it anyway but just wasn't sure if one the same device, the height stays the same when changing orientation Mar 20 20:33:36 */me 's PC is crashing. Will be reconnected later Mar 20 20:40:42 Does anyone know how to properly disable an EditText from bringing up the software keyboard when tapped? Mar 20 20:41:04 Everything I've found so far either re-hides it or doesn't work. I don't want to re-hide it, I just don't want it to show up. Mar 20 20:42:15 I'm implementing a custom keyboard for my app and I don't want to software keyboard to show up, ever. Mar 20 20:44:00 jdawes: out of curiosity: what do you want to happen when they touch an EditText? Mar 20 20:45:03 jdawes: so if the software keyboard shows up never, how will your custom keyboard show? Mar 20 20:45:36 thru the magic of code Mar 20 20:47:10 jdawes, I did this on iOS once and ended up creating my own text box Mar 20 20:47:19 it sit was easier that way Mar 20 20:48:03 Well, I have a hide key on my custom keyboard so, if the keyboard is currently not being displayed, I want my keyboard to come up. It's not a keyboard for the entire OS, just for the app. Mar 20 20:48:07 So I created a button just with the following pattern: 4x4 pixel transparent with 2 pixel diagonal being black. First I designed the whole button and set the background to it, that works fine, but now I tried to use only the 4x4 pattern at it arranges this pattern somehow different. Are there any options to adjust that? Mar 20 20:48:41 nseidm1: The custom keyboard is shown when the editText is touched... Mar 20 20:49:14 jdawes: isn't that a software keyboard? Mar 20 20:49:24 so you're making a keyboard app Mar 20 20:49:30 nseidm1: Yes, I don't want the stock software keyboard to show up. Mar 20 20:49:41 You need to make a custom keyboard app Mar 20 20:49:48 you know the page turning animation featured in google play books, is there a lib for that or am i dreaming? Mar 20 20:49:49 nseidm1: I don't think I do. Mar 20 20:49:54 nseidm1: No offense. Mar 20 20:50:21 nseidm1: Everything works, it's just that the software keyboard shows when text is touched. Is there no way of disabling the stock keyboard in an app? Mar 20 20:51:08 So you're making a custom keyboard in your app that'll be completely different than the actual keyboard that the entire phone and every other app uses? Mar 20 20:51:11 QcMat: Sorry I didnt' reply. I was trying to avoid this but I guess I may as well. I just figured I could override the event that tells Android to bring up the keyboard some how. Mar 20 20:51:34 nseidm1: No, it's just for this particular app. It should only be used in my app, no where else. Mar 20 20:51:42 nseidm1: I'm sorry I wasn't clear about that. Mar 20 20:52:12 oh .. http://code.google.com/p/android-page-curl/ Mar 20 20:53:52 I'm very close to the behaviour I want, if I set the input type to InputType.TYPE_NULL everything is fine, except the cursor doesn't show which is a bit of a downer. Mar 20 21:00:06 Hi :) How can i parse a json array (like this http://dpaste.com/1029399/ ) with android annotions and jackson annotations? Mar 20 21:00:13 I cannot find any example for this Mar 20 21:02:40 aww, Google Keep isn't available for my phone :( well, is the source code available :) Mar 20 21:03:50 i mean come on, its just a note taking app, they couldn't support GB with ABS ? Mar 20 21:03:54 whats the hassle :/ Mar 20 21:03:58 GB sucks? Mar 20 21:03:59 Hey guys. I've got a question for you Mar 20 21:04:13 it looks like as of API12, you can use gamepads to navigate things Mar 20 21:04:18 so my app has a ListView Mar 20 21:04:30 and simply selecting it, I can use the gamepad's up and down to scroll up and down the list Mar 20 21:04:33 so far, so good Mar 20 21:04:34 JakeWharton: nooooooooo don't say that :-( Mar 20 21:04:42 however, the button mappings seem totally strange Mar 20 21:04:46 every new app should be using minSdkVersion=14 Mar 20 21:05:15 if you connect a 360 controller, the A and B buttons are treated as "cancel" and the buttons above those, X and Y, are treated as "okay" Mar 20 21:05:23 We're actually trying to be more aggressive for 16+ Mar 20 21:05:36 but..... Mar 20 21:05:38 (I'm sure you've all seen a 360 controller, but it helps to actually see it to know how goofy that is: http://www.videogameconsolelibrary.com/images/articles/dw-game_controllers/contr-wire2-360-1.jpg ) Mar 20 21:05:51 Now, the Ouya behaves like users would expect Mar 20 21:05:55 JakeWharton, and leave out half of the users? meh Mar 20 21:05:56 but the native Android stuff doesn't Mar 20 21:06:07 JakeWharton: yeah, but when KLP comes out ICS is going to suck, and on and on ... Mar 20 21:06:09 but.... unfortunately that neglects India, China, and Central/South America Mar 20 21:06:10 so I'm guessing maybe Ouya changes some of the Android code for their release? Mar 20 21:06:14 JakeWharton, I'll start doing that when it's 15% of the users Mar 20 21:06:37 Zharf: is your app applicable to 100% of Google Play users? Mar 20 21:06:44 g00s: not really Mar 20 21:06:59 JakeWharton, no, but half of my current users are on 2.x Mar 20 21:07:16 alright, then you clearly didn't read what I said Mar 20 21:07:25 lol, nice Mar 20 21:07:42 I think we all agree is sucks for users and devs alike Mar 20 21:07:43 JakeWharton, I did, maybe I misunderstood? Mar 20 21:07:46 "every NEW APP should.." Mar 20 21:08:03 JakeWharton, well I released it like three months ago! ;) I know you were saying that back then too Mar 20 21:08:05 But damn I still want those users to pay me Mar 20 21:08:29 you have to weigh whether you want to move faster and have better functionality over supporting more users Mar 20 21:08:50 I can easily support the new features I've wanted to so far Mar 20 21:13:24 can anyone point me to a resource that might be able to help me with compiling some of the libraries from the Android source code? Mar 20 21:14:22 HorizonXP: #android-root guys will be able to help ya :) Mar 20 21:14:37 bankai_: perfect, thanks :) Mar 20 21:16:11 * xviv is back again after sending thank-with-bsod-email to micro$oft Mar 20 21:18:12 >.< Mar 20 21:18:30 xviv linux ftw Mar 20 21:18:52 i can't fix resolution issue for nvidia :| Mar 20 21:19:05 been using arch for my lappie Mar 20 21:19:16 but, lower hardware :| Mar 20 21:21:14 did you try the proprietary driver? Mar 20 21:21:50 not compiled as well in wind0ws :| Mar 20 21:22:03 ahh too bad :< Mar 20 21:22:29 lulz, i wget random pict from internet and get it. Mar 20 21:22:44 but in my app, it turned into 405 Mar 20 21:22:55 :( Mar 20 21:23:03 addRequestProperty("Accept-Language", "en-US,en;q=0.8"); <-- should i change this? Mar 20 21:24:54 from what im seeing its common with IIS servers ad redirects Mar 20 21:25:42 * xviv trying another links Mar 20 21:28:13 i have SPHS on Hsdroid (4.0). USB drivers i need. can you give me link to download driver? Mar 20 21:28:50 Abator, you might try #android-root also for that question Mar 20 21:29:04 thankx Brewster Mar 20 21:29:11 thankx brx_ Mar 20 21:29:47 why cant i use findFragmentByTag with getChildFragmentManager? Mar 20 21:30:55 furthermore getChildFragmentManager returns a fragmentmanager yet still i cant do this getSupportFragmentManager().getChildFragmentManager().findFragmentByTag("fragmentTag") Mar 20 21:34:19 i'm using some textview and set the visibility=gone for holding some string, is there better way to holding data while working with listview? Mar 20 21:56:06 so I'm no longer addicted to Pixel Dungeon. I found it's inspiration, Brogue, and now that's my drug of choice. Mar 20 22:03:43 If you're familiar with maven and/or Androidannotations, please check http://stackoverflow.com/questions/15521639, I've got no luck so far. Cheers :-) Mar 20 22:12:41 If i'm choosing wipe data factory reset, does it remove all my internalSD data ? Mar 20 22:13:23 I'm using javascript ontouchstart and ontouchmove and I am getting some e.pageX and e.pageY values for the move event. Mar 20 22:13:36 is it reasonable to expect a coordinate from ontouchstart? Mar 20 22:15:55 i have to really swipe it quite quickly to get the values to move to say 50 units, or 100 units. Mar 20 22:16:27 so for my app design i'm thinking to just draw out a tracer of sorts and then if the user stretched it reasonably they can accept the result (for example moving an html or css/canvas element) Mar 20 22:18:49 kryali: build failed Mar 20 22:20:00 Nighthawk``: afaik, no. Mar 20 22:26:37 thank you Mar 20 22:27:37 it does on devices which don't have removable internal storage Mar 20 22:27:48 like Nexus S, Galaxy Nexus, and Nexus 4 Mar 20 22:27:54 as well as the Nexus 7 and 10 Mar 20 22:28:08 actually, Nexus S might not. I don't remember. Mar 20 22:32:56 "…Jeff Bezos recovers Apollo spacecraft engines…" maybe to create a new cloud service called ApolloEngine XD XD XD Mar 20 22:39:19 evanc: no removable storage on nexus s Mar 20 22:40:26 birbeck: yeah but it didn't use MTP Mar 20 22:40:45 oh, ummm Mar 20 22:40:46 pretty positive it doesn't wipe /sdcard Mar 20 22:40:51 i think it still used mass storage Mar 20 22:40:57 yeah it did Mar 20 22:41:04 I'm too lazy to wipe my Nexus S to verify Mar 20 22:41:21 it was a separate partition, iirc it did not wipe it during a reset Mar 20 22:44:00 How do I activate an apk for testing in the new google play console? Mar 20 22:44:09 I want to test my extension file Mar 20 22:48:08 on a lib project how can I include the jars under /libs into the library output? Mar 20 22:49:30 JakeWharton: Does Square go for 14+ on new apps? Because ABS, NineOldAndroids etc are all about supporting old APIs for example. Mar 20 22:49:45 our apps have been around for 2.5 years Mar 20 22:49:56 No new ones recently? Mar 20 22:49:57 if we made a new app, it'd be minSdkVersion="14" though Mar 20 22:50:01 I see Mar 20 22:50:22 or it'd just be for BlackBerry OS 11 Mar 20 22:50:28 hah Mar 20 22:50:48 actually Note has minSdk=15 Mar 20 22:51:14 fuck it, i'm going minSdk=18 ! Mar 20 22:52:04 err, Keep Mar 20 22:52:13 well by the time I release my app, not even sure android will be around :( Mar 20 22:52:20 haha Mar 20 22:52:30 i've wondered that too :/ Mar 20 22:52:43 StingRay_: better release before next Spring :) Mar 20 22:52:57 well, moral of my story is never let an artist create an android app Mar 20 22:53:04 g00s: why ? Mar 20 22:53:17 i was joking, nm Mar 20 22:55:19 StingRay_: I thought you said you were artsy too? Mar 20 22:55:41 well yeah, I'm the artist Mar 20 22:55:49 vfx artist doing an android app = me Mar 20 22:56:19 so the moral is, if your me, never let yourself do an android app Mar 20 22:57:36 StingRay_: are you suggesting that we need to kick you out of this chan? :) Mar 20 22:58:16 success download some random item from internet but not from this link --> http://f.cl.ly/items/0j1f390g1f372b3r3M3S/8.txt :| Mar 20 22:58:54 i dunno why i've got 405 HTTP Mar 20 22:59:00 JesusFreke: maybe Mar 20 22:59:20 StingRay_ ur probably better then the majority of "Android Developers" Mar 20 22:59:46 can anyone help me with this question? http://stackoverflow.com/questions/15517317/custom-overflow-menu-outside-of-actionbar Mar 20 22:59:46 canadiancow: I just RSVP'd for the meetup tomorrow. I think I might call ahead though just in-case they think its weird if I show up Mar 20 23:01:59 tmho i think ur looking for a context menu Mar 20 23:02:12 i believe they can be attached/displayed off any view Mar 20 23:04:07 birbeck, what Mar 20 23:04:14 im also rsvp'd Mar 20 23:04:17 but i may cancel Mar 20 23:04:21 why? Mar 20 23:04:24 (sorry JakeWharton) Mar 20 23:04:30 because im flying to toronto saturday and i have stuff to do Mar 20 23:04:33 need a ride? Mar 20 23:04:35 and having to leave a 4 doesnt help Mar 20 23:04:36 bleh Mar 20 23:04:55 4? Mar 20 23:05:00 what time does it start? Mar 20 23:05:02 or maybe 5 Mar 20 23:05:02 whatever Mar 20 23:05:04 i can pick you up at 5 Mar 20 23:05:05 earlier than i'd usually leave Mar 20 23:05:13 i can catch a bus to oakland from here Mar 20 23:05:16 and then i can work the whole way :P Mar 20 23:05:36 fair enough, but the shuttle will take longer Mar 20 23:05:51 @jug6ernaut A context menu will mean more designs :( so doesn't really fit Mar 20 23:06:03 true Mar 20 23:06:24 did you see my message last night? i sent a gmail bug report Mar 20 23:06:32 tmho: answered Mar 20 23:06:34 kept crashing trying to download an image attachment Mar 20 23:07:08 then it kept trying to sync in the bg. my phone overheated and battery died, so i got separated from my group and lost Mar 20 23:07:34 stumbling around downtown drunk and all alone, somehow i made it home :) Mar 20 23:07:59 birbeck, what, the blank message? Mar 20 23:08:04 oh Mar 20 23:08:09 LOL Mar 20 23:08:16 i was afraid of passing out on the bart and having someone steal my n7 Mar 20 23:09:18 bart = ? Mar 20 23:09:25 subway Mar 20 23:09:38 bay area rapid transport Mar 20 23:09:44 bart is like the subway from hell Mar 20 23:09:49 frisco? Mar 20 23:09:51 bathroom-on-wheels Mar 20 23:10:06 san francisco and the surrounding area, yes Mar 20 23:10:06 evanc: yeah, bart is disgusting Mar 20 23:10:20 Frisco is a town in Colorado Mar 20 23:10:44 must be nice living in frisco Mar 20 23:10:58 it's a nice ski town, yes Mar 20 23:11:05 xorgate: wouldnt know, never been to colorado Mar 20 23:11:53 birbeck: off-topic, but I ordered a whisky/coke at the main bar in Frisco. She made it in a pint glass (!) and it was $4 (!!) Mar 20 23:12:25 damn, not going to find that in san francisco Mar 20 23:13:12 evanc: where? Mar 20 23:13:17 * Ankhwatcher gets a notebook Mar 20 23:13:30 yay! you can use REPLACE() in GROUP BY in sql Mar 20 23:13:48 I hate learning sql less than I did previously :) Mar 20 23:14:05 evanc: hahaha. holy crap Mar 20 23:14:32 Ankhwatcher: Johnny G's in Frisco, CO. It's more or less the only bar in town. Mar 20 23:14:54 evanc: gotcha. Added to todo list Mar 20 23:15:59 linux mint is wierd, it doesn't shrink down gigantic icons. Eclipse is the size of 9 normal icons Mar 20 23:17:07 Ankhwatcher: if you're into skiing, Frisco is smack in the middle of like five ski resorts. Anyway, I'll stop being a travel agent, haha. Mar 20 23:32:05 evanc: I'm more into cheap drinks Mar 20 23:36:18 I'm using the special blend eclipse for android from the developer.android.com for the first time Mar 20 23:36:32 this heap monitor bar is kind of mesmerising Mar 20 23:42:25 evenin Mar 20 23:43:36 how do one empty a listview so that the emptyview is showing again? Mar 20 23:44:16 i used to do listview.setAdapter(null) but this gives me a null pointer exception since i compiled against a recent target Mar 20 23:44:34 C0br4: clear out the backing data, call notifyDataSetChanged() Mar 20 23:45:45 is that expensive, cpu time wise? could i do that in a ui THREAD? Mar 20 23:46:38 It looks like my app is getting a TransactionTooLargeException on one specific device. A testing site reports onCreate() is the issue, and specifically the new AlertDialog.Builder line (line 24 in pastebin). Any ideas? http://pastebin.com/EnYSA4Q9 Mar 20 23:46:48 well i would suspect it calls getCount() or what it's called and then just clear itself.. not too expensive Mar 20 23:48:06 those longClickx buttons Mar 20 23:48:39 just tried that and it appears to be smooth, even on the oldest android device available :) Mar 20 23:49:44 Quacked dunno about your question but your code looks like it could benefit from a few loops here and there Mar 20 23:49:58 C0br4: clearing the adapter is cheap Mar 20 23:50:13 xorgate: yeah, the longclick crap has been on my todo list for a while Mar 20 23:50:21 not entirely sure how I should do it though Mar 20 23:51:37 you have a suggestion? Mar 20 23:52:34 arrays Mar 20 23:53:02 listeners can also be your class Mar 20 23:53:13 setOnLongClickListener(this) Mar 20 23:53:14 how can I activate an apk for testing in the developer console without publishing? Mar 20 23:53:44 romainguy: thanks for reminding me of the clear method. i was going to reimplement that. should read the dox more carefully :) Mar 20 23:53:57 hmm Mar 20 23:54:17 apple741: activate? Mar 20 23:55:23 Quacked: To test out my extension file, unless I'm getting mixed up? Mar 20 23:56:27 dunno Mar 20 23:56:41 what are you making that needs an extension file? Mar 20 23:56:51 just out of curiousity Mar 20 23:57:33 curiosity * Mar 20 23:58:56 Its actually a really basic game but the assets are causing me to break the 50mb limit Mar 20 23:59:07 ok Mar 21 00:00:30 g'night everybody Mar 21 00:00:35 * StingRay_ needs a break from android Mar 21 00:00:57 I think I'm gonna do a phone concept, since I almost hate all phone designs :) Mar 21 00:03:42 xorgate: not sure how to use (this) with my listeners Mar 21 00:04:00 Quacked have your activity implement View.onClickListener Mar 21 00:04:07 it does already Mar 21 00:04:21 and then the param in onClick is the view that was lcicked Mar 21 00:04:23 OnLongClickListener I mean Mar 21 00:04:27 w/e Mar 21 00:05:34 hmm Mar 21 00:05:39 Quacked: yeah you could really use some loops Mar 21 00:05:46 JakeWharton have you got a code example of ListPopupWindow? Mar 21 00:06:43 I wouldn't mind a couple examples using my code ;) Mar 21 00:06:52 ugh Mar 21 00:08:02 Quacked that which you repeat, put it in a loop Mar 21 00:08:17 oi oi oi Mar 21 00:08:37 oh now you've done it you woke up ron Mar 21 00:09:19 * Quacked hides Mar 21 00:11:16 I'm nobody special Mar 21 00:12:50 ron_frown, pm? Mar 21 00:13:03 who what? Mar 21 00:13:13 I actually found pretty much the same case on stackoverflow, but which of the solutions there would be best to use? http://stackoverflow.com/questions/7048470/easy-way-to-setonclicklistener-on-all-activity-buttons Mar 21 00:14:13 who has 20 buttons Mar 21 00:14:40 haha Mar 21 00:14:55 I do: https://play.google.com/store/apps/details?id=com.ninjacode.ninjatimer Mar 21 00:14:56 ;) Mar 21 00:15:33 quacked Mar 21 00:15:37 easy easy easy Mar 21 00:15:48 even easier Mar 21 00:16:05 holy.. Mar 21 00:16:10 ron_frown: pardon? Mar 21 00:16:22 http://wweems.blogspot.com/2010/09/android-reusable-button-wiring.html Mar 21 00:16:23 haha Mar 21 00:16:36 there's this view that you can use.. like a rotating thingy Mar 21 00:17:41 xorgate: to get values you mean? Mar 21 00:17:47 is using regex in sqlite a big overhead ? or any overhead ? Mar 21 00:18:10 actually can you even do it ? Mar 21 00:18:14 * StingRay_ searches Mar 21 00:18:22 Quacked trying to find it.. when inputting times like in your app.. i want to slide not click Mar 21 00:18:28 xorgate: the buttons are supposed to be values you use all the time Mar 21 00:18:36 xorgate: slide is too slow for my taste :) Mar 21 00:18:53 anyway should be here somewhere http://www.androidviews.net/ Mar 21 00:18:56 off to play tf2 ;) Mar 21 00:19:05 I want fixed buttons for pizzas, eggs, etc Mar 21 00:19:06 with oculus rift? Mar 21 00:19:13 long press edits the values Mar 21 00:19:17 * JesusFreke can't wait to get his Mar 21 00:19:29 no with leet skillz Mar 21 00:23:00 you should make a gameboy whatsitcalled for it Mar 21 00:23:30 virtuaboy emu Mar 21 00:25:09 hahah Mar 21 00:25:20 virtualboy emulator would be awesome Mar 21 00:25:27 just for the pure irony Mar 21 00:25:45 Would something like this be better than the solution I used? http://pastebin.com/n3DcKvHM Mar 21 00:26:12 Hi guys, this method is definitely being called but I'm having truoble figuring out why it's not reading from the Intent and printing out the data inside it? http://pastebin.com/G925dGd6 Mar 21 00:26:24 Quacked: no Mar 21 00:26:49 you dont need to know what button it is if you just assign the value you want to it's tag Mar 21 00:27:21 you would simply need in your onclick pickNum((Integer) v.getTag()); Mar 21 00:28:12 and if for some reason you were doing conditions based on the R id you would use a switch/case rather than if Mar 21 00:29:49 anyone good with regex need to strip +44 3245 3432 and take spaces out, and end up with +44 [32453432] the +44 could be any country code up to 3 digits etc, so it;s the length - 6 to length I'm interested in Mar 21 00:30:06 learning regex now, but cant really guage how long it will be b4 I can do that lol Mar 21 00:30:14 as in just started 10 min ago Mar 21 00:31:39 http://www.androidviews.net/2012/11/wheel-widget-for-android/ Mar 21 00:32:17 xorgate: that goes against the entire purpose of the app :P Mar 21 00:32:25 I have a numberpicker for selecting the values Mar 21 00:32:36 which is .. looking clunky ? :0 Mar 21 00:33:03 Im gonna make it a widget too, so you can just hit the timer buttons you use all the time Mar 21 00:33:20 https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn1/524598_10152590979925246_1676028955_n.jpg Mar 21 00:34:06 its Mar 21 00:36:34 StingRay_, post that on stackoverflow and you'll have several answers in minutes :p Mar 21 00:39:11 StingRay_: I tried the v.getTag but it returned null Mar 21 00:39:20 well did you set it ? Mar 21 00:39:28 whats the xml for it? Mar 21 00:39:41 as in mybutton.setTag(7); Mar 21 00:41:02 int[] blah = {R.id.button1, R.id.button2 ...... } for (int i =1; i < x; i++) { findViewById(list[i]) set tag to i Mar 21 00:41:11 <= probably Mar 21 00:41:16 Hi guys, this method is definitely being called but I'm having truoble figuring out why it's not reading from the Intent and printing out the data inside it? http://pastebin.com/G925dGd6 Mar 21 00:41:29 StingRay_: huh.. wouldntyouknow, andorid:tag :P Mar 21 00:41:46 well yeah but do you really want to do that ? Mar 21 00:41:52 consider the code way Mar 21 00:43:32 like i said think about what your datatypes are and what you are repeating for every button Mar 21 00:43:56 coco89: how many messages do you get in intentMessages? Mar 21 00:44:40 JesusFreke, I'm not sure how do I check Mar 21 00:45:12 coco89 you said you know java ? Mar 21 00:45:28 StingRay_, for sure! Mar 21 00:45:34 you have a List ? Mar 21 00:45:36 its a list! Mar 21 00:45:45 and you want the "size" ? Mar 21 00:45:52 hehe Mar 21 00:45:58 coco89: Log.v. Toast. debug in your IDE, set a breakpoint and check the value. have it blink the led in a pre-set pattern. play some audio Mar 21 00:46:01 take your pick ;) Mar 21 00:46:31 StingRay_, It's been a while, I haven't looked at java in about a year Mar 21 00:46:52 coco89: that's not even a java thing. that's just a basic programming/debugging thing. Mar 21 00:50:07 JesusFreke, I did int size = intentMessages.size(); Log.d("Tag", "size" + size); It came back with Size 0 Mar 21 00:50:37 well, that might be why you don't get anything in payloadStrings :) Mar 21 00:50:46 why is it 0 :S Mar 21 00:50:57 and now you know more details about what you need to investigate Mar 21 00:51:17 welcome to the world of debugging :) Mar 21 00:51:24 the intent passed to that function is a good place to start Mar 21 00:51:35 method/function whatever Mar 21 00:53:06 StingRay_: I'm trying to do what you suggested, but I need the String of each button when I start pickNum(). How can I do that? Mar 21 00:53:23 brx_, what should i find out about it Mar 21 00:53:25 I have used buttonValue = ((String) longClick17.getText()); Mar 21 00:54:25 JesusFreke, thanks for pointing me in the right direction Mar 21 00:55:10 works until you want to use '30 sec' Mar 21 00:55:35 xorgate: that for me? Mar 21 00:56:10 I only use h and m and I parse their values with Pattern and Matcher Mar 21 00:56:50 well i just think that the text of the button representing the value, not the other way around Mar 21 00:56:53 coco89 if your ArrayList = 0 in size then that would suggest there nothing in your intent Mar 21 00:57:11 xorgate: yeah, normally, but I thought this was a fun way of doing it :) Mar 21 00:58:08 no it's just a bad way Mar 21 00:58:16 its still fun .) Mar 21 00:58:27 but it matters not Mar 21 00:58:34 what matters is that your app gets finished Mar 21 00:58:52 Quacked: I think your missing the array loop idea a bit Mar 21 00:59:27 brx_, but in the onNewIntent method I've got a log.d("somestring" + getIntent().toString() and it gives back this http://pastebin.com/QfxxUtkM Mar 21 00:59:54 StingRay_: getting there :P Mar 21 01:00:12 xorgate: yeah, it really is, im just nitpicking Mar 21 01:00:33 coco89, hmm, well the intent isnt null at least, there is -something- in there Mar 21 01:00:57 you got me stumped tbh without seeing the whole thing :( Mar 21 01:01:28 brx_, could it be something wrong with NfcUtils.getMessagesFromIntent(intent); Mar 21 01:01:47 NfcUtils is a separate class and I must admit it has a lint Mar 21 01:02:13 ive never used those types so i cant say mate Mar 21 01:02:35 i'm not sure if it's relevant but there's a lint on this line in the NfcUtils class -> intentMessages = new ArrayList() { Mar 21 01:03:14 The serializable class does not declare a static final serialVersionUID Mar 21 01:03:22 I've no idea what it's talking about but I'm not sure if it's relevant Mar 21 01:04:18 regex is quite nifty Mar 21 01:04:21 and hard ! Mar 21 01:04:25 ish Mar 21 01:04:29 brx_, http://pastebin.com/jzBUtqCK Mar 21 01:04:29 its dense Mar 21 01:04:47 dense ? Mar 21 01:04:49 yeah, I don't think regexs float in water Mar 21 01:04:52 as in comprehensive ? Mar 21 01:04:58 as in 1 thing has drastic consequences Mar 21 01:05:02 or like thors hammer ? Mar 21 01:05:10 yeah Mar 21 01:05:18 i mean like, 1 character out of place can do something compeltely different Mar 21 01:05:23 if you know what i mean Mar 21 01:05:43 and unless you use it all the time then you just forget it lol Mar 21 01:05:50 well i do Mar 21 01:05:50 oh tits Mar 21 01:05:53 really ? Mar 21 01:06:22 I hate things that are design to be forgettable Mar 21 01:06:25 but regex is geeky. Mar 21 01:06:26 * kaneda^ perks up ears Mar 21 01:06:46 i wish i could do it at the drop of a hat but im just not exposed to it enough Mar 21 01:06:52 Gnite Mar 21 01:06:59 nite Mar 21 01:07:06 people grepping data daily know it very well Mar 21 01:07:14 sysadmins, perl heads Mar 21 01:07:42 yeah well I want to "understand" my number regex() sqlite query Mar 21 01:07:49 and that means learning it :( Mar 21 01:07:56 I need a regex pill Mar 21 01:08:09 first time i meet regex when caching dynamic content with squid. Mar 21 01:09:02 Sting, brx, are you guys live in same timezone? Mar 21 01:09:15 yeah Mar 21 01:09:19 but different worlds Mar 21 01:09:24 :) Mar 21 01:09:25 :) Mar 21 01:09:38 i have more questions :) Mar 21 01:09:40 welcome to the twilight zone Mar 21 01:09:46 he has handguns and smoggy city Mar 21 01:09:53 cotton and guns Mar 21 01:09:54 I have shotguns and open farmland Mar 21 01:10:06 String url = ((TextView) view.findViewById(R.id.url)) Mar 21 01:10:06 .getText().toString(); Mar 21 01:10:41 is there better way to hold data instead of this way? but don't mention about sqlite please ^^ Mar 21 01:10:51 i'm a nocturnal btw. Mar 21 01:11:05 you mean besides storing it in a String ? Mar 21 01:11:37 string set from adapter. and in the activity, i could pass it. Mar 21 01:11:50 I do not fully understand the question, although I'm sure the answer is 99% regex :) Mar 21 01:12:02 lol Mar 21 01:12:12 it's not about regex, Mar 21 01:12:17 oh it is Mar 21 01:12:21 you just dont know it is Mar 21 01:12:27 maybe i use the silly way. Mar 21 01:12:42 but seriously Mar 21 01:12:56 I dont understand your question still Mar 21 01:13:01 regex Mar 21 01:13:02 get the json from internet. parse it into hashmap, set in adapter to textview inside a listview and call it again. Mar 21 01:13:04 :) Mar 21 01:13:20 * xviv is giggling Mar 21 01:14:01 erm get joson object, pass jsonArray to adapter, have getView read key/data and set textView ? Mar 21 01:14:15 yeah, Mar 21 01:14:33 but then, i want to use the data that already set at textview, again. Mar 21 01:14:51 so i just use this --> String url = ((TextView) view.findViewById(R.id.url)).getText().toString(); Mar 21 01:15:00 am i doing it right? Mar 21 01:15:07 rather than reading it from the jsonArray ? Mar 21 01:15:15 yap, Mar 21 01:15:26 source > visual < visual < activity Mar 21 01:15:29 because i don't know where the json goes after adapter set it in listview Mar 21 01:15:30 why not Mar 21 01:16:02 Arraylist adapter ? Mar 21 01:16:06 i guess i should use sqlite but, seems to hard for now Mar 21 01:16:48 at the end, whenever i click the item in listview, the listener could get String url from it. Mar 21 01:16:56 i don't know how to do it Mar 21 01:17:14 myAdapter.getItem(index) = your json object ? Mar 21 01:17:40 is the data still there? Mar 21 01:18:03 well unless you called clear on the backing data array list Mar 21 01:18:05 yeah Mar 21 01:18:25 unless I'm totally missing what your saying Mar 21 01:18:33 maybe try explaining it in regex Mar 21 01:18:44 fuuuuuuuuuuuuuuuuuuuuuuuuuu Mar 21 01:18:48 lolololol Mar 21 01:19:33 been a couple months i didn't with regex again. Mar 21 01:19:42 even i couldn't parse email format. lol Mar 21 01:21:03 hya Sting, are you busy right now? Mar 21 01:21:39 always busy Mar 21 01:21:52 right at that moment i typed I was busy typing Mar 21 01:21:55 like now Mar 21 01:22:19 can anyone help me with this question: http://stackoverflow.com/questions/15517317/custom-overflow-menu-outside-of-actionbar I cant get the drop down list showing but can't figure out how to set it to display only if there is room Mar 21 01:22:25 devil makes work for idle thumbs Mar 21 01:22:36 i can* get the drop down list showing** Mar 21 01:23:17 StingRay_: but there were short periods between each key press when you weren't typing Mar 21 01:23:37 mostly ppl here has great taste of humor, lol Mar 21 01:25:00 tmho: i thought all google apps (GAPPS) are open source, maybe you can see from the source. CMIIW Mar 21 01:26:42 i thought gmail was closed Mar 21 01:26:43 xviv: google apps (i.e. gmail, play store, etc.) are not open source Mar 21 01:26:45 ill google Mar 21 01:26:53 ahh there you go Mar 21 01:27:33 tmho = timroes in disguise amirite Mar 21 01:27:38 or is that wishful thinking Mar 21 01:28:10 http://www.timroes.de/ this guy? Mar 21 01:28:29 ah, i'm wrong. Mar 21 01:28:43 tmho, probably! Mar 21 01:28:50 lol nah Mar 21 01:28:53 in fact most probably Mar 21 01:29:03 did you just google that? Mar 21 01:29:08 yeah Mar 21 01:29:09 that is timroes Mar 21 01:29:20 he's a teacher Mar 21 01:29:28 hence his extreme patience Mar 21 01:30:12 StingRay_, ah, that explains it Mar 21 01:32:05 so... any ideas? Mar 21 01:32:38 tmho: besides code it Mar 21 01:32:43 not I Mar 21 01:33:04 eh I didn't really wanna hack it myself, doesn't seem right lol Mar 21 01:33:13 * xviv is still figuring why i can't handle 301 / 405 http code :| Mar 21 01:33:24 if you're measuring views; you're doing it wrong Mar 21 01:33:44 xviv, does it work with other files on the same server? Mar 21 01:33:49 (that dont redirect) Mar 21 01:34:01 not in same server but in another server. Mar 21 01:34:35 did you try it the depracated way? Mar 21 01:34:51 detailed in the link i posted earlier Mar 21 01:35:15 on mkyoung.com? yes i did Mar 21 01:35:35 nothing changes :| Mar 21 01:36:03 i thought it was about cookie or digest auth, but i can simply wget it :| Mar 21 01:37:03 i guess, it's a silly mistake like textIsSelectable=true that makes onclickitemlistener won't work yesterday. lulz Mar 21 01:37:19 StingRay_: regex are very useful. But in Java... ugh. Half of every Pattern will be "\" Mar 21 01:37:56 kakazza: tis for an sqlite query Mar 21 01:37:58 xviv, damn Mar 21 01:38:36 Ah, I see. Mar 21 01:38:53 welcome back Jake~ Mar 21 01:38:59 tis just for phone number stuff Mar 21 01:39:20 the out (contacts format) and in cell,sms formats differ etc Mar 21 01:39:26 Because Java Regex... meh. Literal "\" looks like this "\\\\" so the compiler sees "\\" which is an escaped "\" Mar 21 01:39:50 hmm Mar 21 01:39:54 yeah thats pants Mar 21 01:40:06 what even with " ' ' " ? Mar 21 01:40:08 never tried regex in java yet. Mar 21 01:40:52 StingRay_? Mar 21 01:41:54 thanks Mar 21 01:41:57 about to leave Mar 21 01:42:31 actually maybe regex is not right to use in sqlite Mar 21 01:43:23 maybe take a nap can solve my difficulties, lol Mar 21 01:43:33 see ya guys, thanks for today :) Mar 21 01:45:16 StingRay_: Your case seems easy enough. Not sure how country codes look like, but I guess 1-3 digits? Mar 21 01:46:47 \+[0-9][0-9]?[0-9]? for the first group, then take the rest and remove all whitespace and put square brackets around it. Mar 21 01:58:22 may not be internation number Mar 21 01:58:38 is there a way to throw an exception from a service to a client? Mar 21 01:58:42 remote exception doesn't do what I thought it did Mar 21 01:58:42 I need a way to report an error to the client Mar 21 01:59:05 push notifications could work Mar 21 01:59:18 oops I thought this was iphonedev nevermind Mar 21 02:12:05 can RemoteException be thrown from service to client? Mar 21 02:14:09 yes, I believe a subset of exceptions are wrapped as a RemoteException and passed to the client Mar 21 02:14:21 I don't know/remember the exact details though Mar 21 02:15:14 holy holy Mar 21 02:16:44 ron_frown: reminds me of a Psalters song Mar 21 02:16:53 * JesusFreke switches his playlist to Psalters Mar 21 02:17:18 haha those were days past for me Mar 21 02:18:49 I keethanks Mar 21 02:18:52 thanks Mar 21 02:19:13 I am stuck :( a remote exception across different processes gives me the error "expcetions are not supported across processes" Mar 21 02:25:41 hey does anyone happen to know why you cant "mount --bind / to_some_folder" on android? (bind root) Mar 21 02:27:41 samkuhn: I think the mount command simply doesn't support that option. If you use something like busybox, and have root access, you can. Mar 21 02:27:56 why would you want to Mar 21 02:28:19 * capella wonders if g00s found out more re: the |adb install| command and the -d / "ignore downgrades" option that may or may not exist? Mar 21 02:28:28 ron_frown: can be useful when setting up a chmod environment, for example Mar 21 02:28:37 err Mar 21 02:28:39 chroot. lol Mar 21 02:31:00 jesus: ok fair enough thanks, I am rooted and running under busybox I'll try some more Mar 21 02:31:10 canadiancow: got a sec for a question? Mar 21 02:31:30 ron: trying to set up a chroot'd debian dev environment Mar 21 02:33:46 jesus: btw, "mount --bind anything_other_than_root to_some_folder" works fine, theres something about / in android that is unbindable.. oh well Mar 21 02:35:11 samkuhn what os Mar 21 02:35:16 er rather hardware Mar 21 02:36:43 xoom running EOS ICS, just installed debian wheezy and trying to access "am" from within debian jail so I can install to device from there Mar 21 02:37:15 I guess I dont quite get what you'd need to install debian inside the android os Mar 21 02:37:24 not saying you shouldnt Mar 21 02:37:27 I just dont get it =) Mar 21 02:38:36 it makes alot of sense.. you can apt_get anything (g++, git, whatever) I tend to do most of my development on-device Mar 21 02:39:34 it runs inside a chroot so its isolated from the android os Mar 21 02:43:03 ron: btw I used "linux deploy" from play store.. debian all installed and working fine, just cant install apk's from it - which I wanna Mar 21 02:54:12 capella, why are you singling me out Mar 21 02:54:57 you were briefly involved with a discussion I had with g00s yesterday re: adb install and a -d option that may or may not exist Mar 21 02:56:29 I wasnt sure I heard the final answer but it sounded like the docs that say the option is available are incorrect Mar 21 02:56:38 -d is an adb option for device Mar 21 02:57:27 shows all the available options with descriptions capella Mar 21 02:57:28 install [options] Installs a package (specified by ) to the system. Mar 21 02:57:29 Options: -d: Allow version code downgrade. Mar 21 02:58:28 adb -d install -d used to be valid Mar 21 02:58:53 anyhow, adb help != online docs Mar 21 02:59:23 um ... im trying |adb install -r -d | which fails ... remove the -d works so not critical but wondering **** ENDING LOGGING AT Thu Mar 21 02:59:58 2013