**** BEGIN LOGGING AT Mon May 06 02:59:58 2013 May 06 03:01:30 Jouva: are you trying to do card emulation? May 06 03:03:23 my understanding is that certain card emulation is only supported on some phones with a bunch of OS customizations (cyanogenmod might support it, or it might be someone's fork).. full card emulation requires access to the SE. May 06 03:03:25 just booted up android-x86 and noticed that it was a tablet image. did they release a phone iso? May 06 03:03:45 true_techie: check out androvm, it does both and works very well May 06 03:04:13 There may be other problems emulating a card, yeah. But check out iso7816, that'll get you pointed towards some useful stuff and you can figure out if you can do more w/in the android framework May 06 03:06:37 some info at http://nelenkov.blogspot.nl/2012/08/accessing-embedded-secure-element-in.html May 06 03:10:31 codebutler: Yes, cardemulation May 06 03:18:03 And yeah this is useful stuff. Thanks! May 06 04:07:46 Do I need to request permission to write to the SD card if I use the Debug class? May 06 04:08:56 nvm, it appears that I do May 06 04:45:09 hello, im an EE student graduating in a week, does anyone have tips for landing a summer internship at google? May 06 05:22:23 beastmanrage: summer of coding May 06 05:24:11 is DiskLruCache permanent, or is it reset each time an application starts? May 06 05:28:12 beastmanrage: summer of coding is a google sponsored 'internship' May 06 05:30:44 lasserix: this would be for an electrical engineer May 06 05:31:29 was hoping someone in here had an internal email, and was crazy enough to give it to me May 06 05:58:15 beastmanrage: that would be crazy indeed :) May 06 06:08:00 belgianguy: it persists across restarts so long as you don't call .delete() May 06 06:08:46 er, ignore that last part May 06 06:09:14 mixing up my HttpResponseCache and DiskLruCache May 06 06:11:14 JakeWharton: thanks! :) May 06 06:20:08 Can someone with knowledge of surfaceview help me out with some advice and maybe look over the class I'm using May 06 06:27:20 fprophet, just explaining the problems will net you more answers. May 06 06:27:22 don't ask to ask. May 06 06:27:32 alright May 06 06:28:03 I am trying to get the frame rate and it seems to be giving odd values on the emulator May 06 06:28:11 I'll paste bin the class May 06 06:29:13 I dont know what im doing May 06 06:29:14 http://pastebin.com/ibSa7ysa May 06 06:31:01 the emulator is pretty slow May 06 06:31:05 for graphics stuff May 06 06:31:16 not to mention unstable May 06 06:31:28 okay May 06 06:31:39 fprophet, that code is… wierd. What exactly are you trying to do? :) why are you locking the canvas in the thread for no reason? May 06 06:31:58 that just breaks your performance May 06 06:31:58 I dont know. I followed a tutorial on surfaceview May 06 06:32:06 don't lock the canvas if you don't intend to draw on it May 06 06:32:48 I just wanted to see if I followed it right May 06 06:32:52 fprophet, you're gonna have a hellova easier job doing anything if you actually read what methods you're calling do you know? May 06 06:33:29 not sure what you mean, like reading the api docs? May 06 06:34:20 what is your logcat showing for framerate? May 06 06:34:58 you should still be able to achieve >30fps just drawing a circle, even if you're locking the canvas May 06 06:35:39 oh wait May 06 06:35:45 you're drawing 2000 circles May 06 06:35:46 its drawing 2000 circles May 06 06:36:08 i doubt the emulator can handle that May 06 06:36:21 i doubt it could handle 100 with a decent frame rate May 06 06:36:58 sampullman, GPU accelerated x86 emulator can be quite fast actually :I May 06 06:37:10 assuming that's what he's using May 06 06:37:45 I have gpu acceloration off May 06 06:38:32 the framerate method is only getting called once May 06 06:38:34 lol May 06 06:39:05 well, your run method looks weird May 06 06:39:22 no doubt. I dont know how to do this properly yet May 06 06:39:27 get rid of the synchronization, and add it back later if you need it May 06 06:40:01 also move actual drawing after lockCanvas call, since that's why it's there May 06 06:40:14 when you call "unlockCanvasAndPost" it draws that on screen May 06 06:41:29 actually, the synchronization should be fine May 06 06:41:35 not sure what your actual problem is May 06 06:42:35 I didn't really have a problem. I just don't really know any proper ways of doing this and wanted advice May 06 06:43:19 look at github projects that use surfaceview May 06 06:44:33 fprophet, as I already said, proper way: May 06 06:44:43 remove the onDraw overrides, remove the "setWillNotDraw" May 06 06:44:49 make a loop on another thread which goes May 06 06:45:10 surfaceview.lockCanvas -> draw on locked canvas -> unlock canvas and post May 06 06:45:17 this will give you a fast rendering loop May 06 06:45:26 you can sleep if you think you're burning too much CPU May 06 06:45:36 alright May 06 06:46:08 IIRC you need to wait for the surface to be created before you can lock canvas for the first time :) May 06 06:46:16 so start drawing thread from onSurfaceCreated May 06 06:46:22 and kill it when surface is destroyed May 06 06:56:40 alright, I'll give it a shot :) May 06 06:56:51 I'm totally gonna cause something to explode in the process though lol May 06 07:08:01 using SmsManager how would a person send say a map from google. ? SendDataMessage ? May 06 07:23:56 hey there, anyone knows if there's a good way to play a short intro clip in the beginning of the first launch through videoview without taking audio focus away from the music stream? I'm try my best to not interrupt user's experience. Short intro clip is about 4 seconds in mp4. FrameAnimation would hog up memory as I need at least 24fps. Thanks guys, any suggestions would be cool May 06 07:26:08 0 May 06 07:43:41 I'm trying to use DiskLruCache application-wide, and was thinking of putting it inside a Singleton object, which I wanted to initialize with the ApplicationContext when I create the Activity May 06 07:44:02 but that context is null in onCreate, any idea why that is? May 06 07:49:28 impossibru 0.o May 06 07:49:45 but maybe it's better to connect it to your application lifecycle and not activity lifecycle? May 06 07:54:54 Hello, I have a problem with encrypted jobb tool for .obb file encryption, when I am going to generate a .obb file larger than 500 mb , jobb throws a "FAT FULL" message and I don't know what to do! Thanks May 06 08:16:01 Luisming: tried the verbose option to see if it gives any hints? May 06 08:17:14 appel1: yep, It throws more information about how jobb is making the file but when the crash appears there is no usefull information, just the error May 06 08:17:32 Luisming: I was thinking the fat overhead info and such could give a clue May 06 08:18:02 Luisming: because reading the source the error you get is when there are no more free clusters in the fs May 06 08:18:46 I have connected a barcodescanner, which functions as physical keyboard. Is there a way to disable the physical keyboard, directly from the app itself? Whenever the tablet powers down, I have to manually deactivate the physical keyboard again. Even if you just shut the display off, and start it again, it'll have to be disabled manually. May 06 08:19:14 appel1: "ava.io.IOException: FAT Full (459872, 459873)" is the head of the error, yeah, I know about that error, but there is enough space in the hd and fat32 is up to 4 gb file size! May 06 08:19:50 Luisming: yes, but before it does anything jobb reports some stats about the file it is about to create May 06 08:20:17 appel1: okay, w8 a little Im going to execute it :] May 06 08:23:54 appel1: It shows "Adding file" for each file I have in the folder, and in the last file it throws "Adding file \video3.mp4 with lenght 100569340 at cluster 147326" and one line below "java.io.exception. FAT FULL (171875,171876)" May 06 08:24:59 Luisming: what about Total files and those lines in the beginning? May 06 08:26:05 appel1: Slop: 29148 Directory Overhead: 1856 Total Files: 704016384 FAT Overhead: 1376272 Filesystem Size: 705396736 May 06 08:26:46 appel1: there are seven files with around 100 mb size each May 06 08:29:59 root directory on fat file systems may be limited to 512 entries May 06 08:30:41 with only 7 files he shouldn't be hitting that limit =) May 06 08:32:06 appel1: My folder only has 7 videos, I dont't lie haha, furthermore if I put three videos of 200 mb each, it crashes too! May 06 08:32:55 Luisming: how big is the filesystem? May 06 08:33:26 it seems to be 700m from your paste, which would explain why it won't fit more 100m files May 06 08:33:39 BlackIce_:" Filesystem Size: 705396736" May 06 08:34:09 BlackIce_: Yup, the filesize is 700 mb May 06 08:35:49 Luisming: so the problem is solved? May 06 08:35:57 BlackIce_: " it seems to be 700m from your paste, which would explain why it won't fit more 100m files" why It won't fit more 100 mb files? May 06 08:36:28 BlackIce_: no, it keeps crashing, I can't make a filesystem larger than 500 mb? May 06 08:36:56 Luisming: a filesystem or a file? Also, are your sure the filesystem isn't full when this error happens? May 06 08:38:01 BlackIce_: A .obb file, I have a folder (./videos) with seven videos of 100 mb each, and I execute jobb like this jobb -d ./videos -o main.1.com.example.blabla.obb ... and all the stuff May 06 08:38:06 do you guys have any docs/books you'd suggest for android app dev May 06 08:38:27 BlackIce_: and I want to generate an encrypted .obb file with the videos stored in that folder May 06 08:39:04 I have programming experience but none with android, would like to find some literature to get started May 06 08:39:25 arbiter34: have you looked at the docs at d.android.com ? May 06 08:40:00 yeah I got a couple pulled up right now May 06 08:40:22 I was hoping for an ebook so I can have one up on my tablet while working examples on my computer May 06 08:40:42 Luisming: I wonder if this is some kind of missmatch in how jobb calculates the fat overhead and how much overhead you really get when using EncryptedBlockFile. May 06 08:41:57 appel1: What a pity then! It's something I can do? Because using CipherInputStream and OutputInputStream with the video file sizes I use is crazy May 06 08:43:01 Luisming: build a debug build of fat32lib and jobb to verify what is actually happning with regards to the created fs I guess, not something I have time for May 06 08:43:41 appel1: Oky appel... I will give it a try, thaks for your help, again :D! May 06 08:44:19 Luisming: not much fun, but at least it is possible.. May 06 08:45:35 appel1: haha, I need to solve it or my boss will kill me haha, so any solution It's well received! May 06 08:45:49 ;) May 06 08:52:51 hi May 06 08:53:06 is there anything like an ANR listener? May 06 08:53:30 so something could be triggered when an ANR happens in an app? May 06 08:53:33 hi, any recommendation on estimating costs for an app? May 06 08:55:28 costs? May 06 08:55:41 development costs? May 06 08:56:20 we have a customer who likes to buy an android app, I only programmed one in my studies, we do web (php, js, mysql) mainly, but would be interested in creating one, he has a budget and much to high expectations...so I try to figure out what we could get him for that price, if anything May 06 09:03:43 DarsVaeda: detail everything the app is supposed to do before you settle on the cost May 06 09:04:17 *everything he is expecting the app to do, that way it is clear what the developer needs to get done May 06 09:04:17 yeah okay the usual May 06 09:04:45 the reality is it comes down to exp since that will determie how fast you can complete it May 06 09:07:14 hey guys May 06 09:07:20 can you read meta-data from other apps? May 06 09:08:25 what kind of metadata are youl ooking for May 06 09:08:54 just custom data between few of my games May 06 09:09:07 so if i put from game one May 06 09:09:10 can i read that from game 2? May 06 09:09:13 you can use a content provider May 06 09:09:56 lasserix, i am looking for a very specific information May 06 09:10:14 it contains the server upgrade information inside meta data May 06 09:10:16 meetoman: for the record, that's *not* metadata May 06 09:10:29 Leeds, what is it? May 06 09:10:30 it's just data May 06 09:10:39 metadata would be things like the manifest contents May 06 09:10:56 oh ok, can i read manifest contents from other apk? May 06 09:10:56 data *about* the app, not data belonging to, or generated by, the app May 06 09:11:18 ApplicationInfo ai = getPackageManager().getApplicationInfo("com.demo.game1", PackageManager.GET_META_DATA); May 06 09:11:31 yes, like that :) May 06 09:12:26 ok =) May 06 09:13:12 lasserix: right that is our problem, we can not tell how much time we would use, so I was looking for some general time/money expectations May 06 09:16:38 Dars: start with the core of what you need, something that can stand alone, then work up from there and whenever you are doing more work than you'd thought itemize it May 06 09:39:54 Hey, does anyone know how long the framework will be able to redeliver an Intent to a service? May 06 09:40:53 I've spent a lot of time debugging a service that won't restart from time to time (it hangs showing "restarting") after the process was killed. May 06 09:41:17 o19: it increases the interval exponentially IIRC May 06 09:41:29 Since I can't reproduce it with manually killing the service via adb I was wondering... May 06 09:41:33 Ah... May 06 09:41:45 Well, that explains a lot :) May 06 09:42:54 Well, from the framework side that looks as a smart choice :) May 06 09:43:12 I don't like it anyway :) May 06 09:43:55 Thanks a lot Ge0rG May 06 09:44:08 uh-huh. May 06 09:59:15 i have such code: http://pastebin.ca/2374809, when its called editable.append("asd"); i got FATAL EXCEPTION: main java.lang.StackOverflowError,at android.text.TextUtils.getChars(TextUtils.java:70) May 06 10:01:20 hetii: had a look at this? http://stackoverflow.com/questions/8163478/why-stackoverflowerror-occuring-in-android-android-text-textutils-getchars May 06 10:01:28 hetii: the append triggers a new afterTextChanged May 06 10:02:03 or perhaps I read the code too quickly.. ? May 06 10:02:34 appel1: No you might be right also May 06 10:02:50 But won't know unless you stick a breakpoint in there May 06 10:03:47 elo :) May 06 10:04:04 Anyone looking for web hosting? May 06 10:04:09 I am looking for my first customer May 06 10:04:36 Kinetic: probably not the right place to ask :) May 06 10:04:57 hmm May 06 10:05:00 KineticColor: seriously? May 06 10:05:15 I installed that ADT pack on my Ubuntu machine. Not like I had no problems, but its working. May 06 10:05:51 Finally built my first test Android app. It got it running on a real device. However I notice that the emulator just does nothing ? May 06 10:06:30 Yeah. The emulator is there for show / look sexy. It doesn't do anything. May 06 10:06:38 but them it make no sense to have such method if its trigger again... based on http://stackoverflow.com/questions/476848/android-textwatcher-aftertextchanged-vs-textwatcher-ontextchanged afterTextChanged(Editable s), Use: when a you need to see and possibly edit new text. May 06 10:06:49 AVD_FOR_GALAXY_NEXUS May 06 10:33:42 Ge0rG: Are you still around? I had to leave for lunch, but I might have an addiotional question about the service start flags. May 06 10:35:07 Will START_STICKY have the service restarted right away? May 06 10:38:52 Maybe someone else? My original question was in which intervals Intents will be redelivered when a START_REDELIVER_INTENT service was killed and Ge0rG mentioned that those intervals might be exponentially growing. May 06 10:39:04 Will that be the same for START_STICKY? May 06 10:39:38 Does anyone have a documentation resource for that? I'm just unable to find anything. May 06 10:41:21 or that question fits to that channel more May 06 10:41:23 I set option for SSHDroid program for it to start automatically when phone boots, is there some text file where I can change it using text editor ? I mean all programms that have option autostarting on boot should set somwhere in system parameter for autorun, like in windows registry or something ? May 06 11:24:21 Hello? May 06 11:24:35 my friend has a HTC Sensation, Its not rooted but its not responding to USB debug or USB diskdrive mode May 06 11:25:17 I try replace last character in my editable object by: editable.replace(newText.length(), newText.length()-1, ".") but i got java.lang.IndexOutOfBoundsException: replace (51 ... 50) has end before start May 06 11:26:31 Why is there so many people and no one answering? May 06 11:26:35 ahh noit this index May 06 11:26:41 *not May 06 11:26:52 ? May 06 11:27:01 i talk about my issue May 06 11:27:16 Well i suppose that they sleep or work hard :> May 06 11:27:27 I guess since no one is responding to my issue i aint so sure no one going to respond you neither May 06 11:28:34 I wish i know that sort of coding for you but i only know java for games May 06 11:30:12 hetii, your problem seems to be wrong indexes. :P May 06 11:30:42 Ie. move the -1 to the first argument instead. May 06 11:31:31 o.o their not afk after all May 06 11:31:41 Multiply: yep i fix it already :> May 06 11:32:06 Multiply could you fix my problem :D May 06 11:32:23 arnem, Unfortunately, I'm no expert. :P May 06 11:32:36 :( May 06 11:32:44 Become one :DD May 06 11:32:44 His problem on the other hand, was quite obvious. May 06 11:33:08 lol May 06 11:34:40 Multiply do u know about a irc that knows this stuff? May 06 11:37:23 Is abstract class Context available in every class? May 06 11:37:50 e.g. When calling getSystemService(String), is this inherited from Context? May 06 11:37:59 Is this similar to the Object class in Java? May 06 11:38:59 Where developer can access methods like toString() equals(),etc? May 06 11:41:29 Multiply: now something that is a real issue, when i type some word i got list with suggestion, so user can select some item. The point is to get this list user need to type at least two characters, but i want to also display fro him a list with all possible values, i try it by searchView.showDropDown() but its just blink fast and hide May 06 11:59:14 hey May 06 11:59:22 so whats a good cheap device i can use for android dev? May 06 11:59:46 is there even a point to testing on a cheap device if you dont have the latest phones? May 06 12:00:19 DrSheep: try to get something that runs the latest OS, ICS or JellyBean May 06 12:00:48 DrSheep: even if it does not come by factory, you can search at cyangemod if there is a newer OS for that cell phone May 06 12:01:18 ok thx May 06 12:04:33 So I've finished my project. I want to start a new one, I need an idea May 06 12:08:26 hi there, I am using intellij IDEA 12 to develop an android app with library project. But it cannot build. It always complain about "constant expression required". The R.java is not generated. What can I do? May 06 12:09:11 luoluoluo, you can give us more info May 06 12:09:57 ok, the code is from ZXing, the 3rd-party library for QR code. The line it complains is "case R.id.menu_share:" May 06 12:10:21 And I checked the gen directory, no R.java there, only R.java.d May 06 12:10:59 IDEA doesn't actually generate R.java on the fly anymore, it keeps its contents in memory (kind of/afaik?) May 06 12:11:14 it's only generated on actual compilation May 06 12:11:43 did you try full recompile May 06 12:11:49 I enter "Ctrl-B" to compile, is that right? I complied other projects, it works fine May 06 12:12:03 is the library project using an android sdk? May 06 12:12:18 monsti: I'm watchin gyou May 06 12:12:52 yes May 06 12:12:54 Zharf: yes May 06 12:13:09 same as the main project May 06 12:13:39 luoluoluo, i'm not certain of the default keybindings.. Build -> rebuild project... from the menus May 06 12:13:50 ok, I'll try May 06 12:14:07 anyone know how to update a CheckBox or CheckedTextView in a ListView? Not having much luck so far May 06 12:14:21 Zharf: ... and same result, no luck May 06 12:14:38 it hits the function, my database update happens, and I call NotifyDatasetChanged May 06 12:14:43 luoluoluo, there were some problems related to R.java back when IDEA 12 was first released, are you on 12.1.2? May 06 12:14:50 that usually causes a redraw, but atm it won't work May 06 12:14:54 let me see May 06 12:15:16 Zharf: 12.1.2 May 06 12:16:02 luoluoluo, it's probably something related to dependencies (?) May 06 12:16:28 I haven't actually used an android library project the "traditional way" in a long while, maven <3 May 06 12:17:05 Zharf: ok...I'll try to check, though it's very hard to check. BTW, any good resources to learn maven for android? May 06 12:18:37 luoluoluo, don't know of any, most of the stuff online is outdated in some form or another; but I walked belgianguy through it and he wrote https://gist.github.com/belgianguy/5451960 from what I said to him May 06 12:18:48 is there any way to check whether the application is running in foreground from a service which runs by definition in background? May 06 12:19:06 Zharf: thanks a lot May 06 12:19:06 or should I comunicate onResume and onPause of the app the state? May 06 12:19:50 luoluoluo, seems like that zxing thing is in maven too :) May 06 12:20:28 Zharf: not familiar with maven...I'll go through belgianguy's gist you recommended May 06 12:25:51 anyone got a good example of an app that auths with twitter? I'm trying to figure out an elegant way to do it but I can't figure out the flow May 06 12:47:50 hello there May 06 12:48:34 im having some question about float precision on GLES2.0 May 06 12:49:16 im passing the SystemClock.uptimeMillis()\1000.0 to a uniform variable in my fragment shader, to offset the texture coordinates horizontally May 06 12:49:36 but if the number becomes large this no longer works May 06 12:49:44 even though i feel its not actually that large May 06 12:49:53 any suggestions on what i can do to work around this? May 06 12:53:47 some kind of modulo? If I understand the question May 06 12:53:48 hi. I've got a minor question concerning logging. i want in my release of my application the Log.d() calls to be stripped. is that possible? May 06 12:54:30 if (BuildConfig.DEBUG == true) May 06 12:54:35 stephanmg: You need to strip the out yourself. The easiest way is create a logging class that uses BuildConfig.DEBUG May 06 12:54:44 false* May 06 12:55:10 so i need to wrap android logging class. i see. mh - okay. May 06 12:56:12 stephanmg: http://bit.ly/17HA9zS is a pretty good example May 06 12:56:31 thank you very much - i will look it up. May 06 12:57:15 karlo i tried this but its giving me a bit of trouble May 06 12:57:38 im using it to move clouds, and when i make the value wrap some clouds jump when it wraps May 06 12:58:00 though i guess i could fix it the ugly way.. May 06 12:58:57 I think you could find the right modulo based on the size of your texture so it never jumps? May 06 12:59:11 but I'm noob in 3d so maybe someone has better advice May 06 13:04:54 meh im using 3 uniforms now, 1 offset per cloud plane, and calculating / wrapping the offsets cpu side May 06 13:07:51 DialogFragment getting dismissed on rotation, any idea how to fix this? May 06 13:22:00 So i'm not a biginer to programming. But would not mind a good tut of book on android development. May 06 13:22:05 Any suggestions ? May 06 13:22:16 Books suck. May 06 13:22:48 d.android.com has all you need May 06 13:23:40 Zharf, yeah maybe :). May 06 13:23:42 I am using that now. May 06 13:23:44 lets see :). May 06 13:26:59 hi all! May 06 13:28:21 Unknown0BC: and then Google IO on yt May 06 13:30:15 IO on yt ? May 06 13:30:18 karlo May 06 13:32:02 yea, recordings of presentations from Google I/O on YouTube, they are quite useful imo May 06 13:37:29 i am trying to implement an account authenticator May 06 13:37:40 in the manifest i have putted this http://pastebin.com/uD8d5p21 May 06 13:37:52 like i have found in the examples May 06 13:37:58 but eclipse complain May 06 13:38:59 complains how? May 06 13:39:14 exported service does not require permission May 06 13:40:21 http://stackoverflow.com/questions/10474134/exported-service-does-not-require-permission-what-does-it-mean May 06 13:40:43 google does alot of good in this world ;-) May 06 13:43:00 I have already readed this but i didn't understand what is my case May 06 13:43:50 The problem is that account authenticator should be accessible , and you doesn't know previously what are the application that are going to use it May 06 13:44:26 Of course there application that shouldn't access it but I don't know them before... May 06 13:44:42 so should i leave eclipse complaining... ? May 06 13:45:10 G10h4ck: make it so apps need to ask the user for permission on install May 06 13:45:49 how to do that ? May 06 13:47:09 I am a newbye on android May 06 13:49:17 May 06 13:49:20 something like that May 06 13:49:27 in your manifest May 06 13:49:56 thanks mikedg May 06 13:49:56 and then ... i think just put android:permission="com.testpackage.mypermission" in your service in the manifest May 06 13:50:30 np May 06 13:52:44 android:id="@id/start" inside a Button, any idea why compiler complaints? May 06 13:52:49 can i programatically remove an item from a group when inflating options menus? May 06 13:52:52 start is added as a string in strings.xml May 06 13:54:04 then it should be @string/start but that's kind of weird, don't you want @+id/start? May 06 13:54:34 karlo: yes, just realized @+id May 06 13:55:19 Why this strange notation? May 06 13:55:38 Hi, someone experience with calendar provider? have a stupid problem May 06 13:55:51 you use @id when you refer to another item within the layout, @+id when you define ID of item May 06 13:57:45 If i would like to delete an Event (deleting with ID), it's removed from the calendar app but inside my app, it's still not removed if i would like to get all events again May 06 13:59:20 itneresting May 06 14:00:42 there is an eclipse shortcut like ctrl+b for build, but for run as android application ? May 06 14:00:49 f11 May 06 14:00:58 or ctrl+f11 depending on your setup? May 06 14:01:08 i'll try it ;) May 06 14:01:44 just look at your Run menu ... it should say it May 06 14:02:12 How do you use the recovery-mode on a tablet, without volume buttons? :P May 06 14:02:29 in my run meno' the other option have strange shorcut reported bbut run as android application doesn't report any shrtcut :| May 06 14:02:59 no look at top of Run menu May 06 14:03:15 without going into Run as... May 06 14:03:30 it says ctrl-F11 for me May 06 14:03:42 and F11 for Debug May 06 14:04:20 I guess the general Run remembers the way you ran it last time ... like "as android application" May 06 14:06:08 F11 worked fine :D May 06 14:09:52 :D May 06 14:11:15 I've got a Nexus 7, which has a pretty high-resolution screen. However, when I run the default application generated by ‘android project’ on it, the titlebar of the application renders at what seems to be a really low resolution — it's noticeably pixellated and has what looks like JPEG artifacts in it. What could be causing this? It's just specified as text in the Manifest. May 06 14:13:12 could you make a screenshot? May 06 14:15:36 hi there fellow droiders.. I have a question regarding services and the lifecycle of processes. I already checked stackoverflow and found a blog from dianne hackborn on the topic, but neither give me satisfactory answers ;-) here goes: May 06 14:16:37 why does android kill my process that is running ONLY a background service (that is: a service that is started with startService() call that returned START_STICKY) with the following message: May 06 14:17:45 karlo: http://stuff.twey.co.uk/.crap/low-res.png May 06 14:18:01 no longer want com.example.app (pid xxx): empty for 1800s May 06 14:18:02 The text in the label isn't as sharp as it probably should be, either May 06 14:18:12 (I think) May 06 14:19:13 surely my process is not considered an "empty" process as defined in the process hierarchy... it is running a service! May 06 14:19:36 bakkes: unless said service is not bound by anything May 06 14:22:08 omoikane: do you have documentation on this? because all the docu I could find on d.android.com and blogposts from dianne suggest that a service that is started via "startService()" that is not yet stopped via "stopService()" or "stopSelf()" cause a process to be in the "background service" level of the process hierarchy May 06 14:22:35 Twey, change theme May 06 14:22:50 actually that does all look quite big May 06 14:23:41 Twey: looks zoomed-in May 06 14:23:48 hi . i keep trying to work out a way to swap sdcard and extSdCard in 4.2.2 no apps work , fstab doesnt list internal sdcard and im unable to create a symlink even tho i mounted every mountpoint again as rw ... any ideas ? May 06 14:23:51 I agree May 06 14:24:45 sorry.. I mean "service process" instead of "background process" in my last line May 06 14:26:16 and a "service process" should not be killed, unless memory constraints force it to, contrary to an "empty process" that is killed whenever Android wishes to reclaim memory (apparently it sometimes reclaims memory pre-emptively by killing empty processes) May 06 14:27:07 can someone help me with my calendar? i can't remove an event with this code: http://pastebin.com/XhediB6L May 06 14:27:09 brx_: Other themes seem to have the same problem (I tried ‘Holo Light’) May 06 14:29:08 http://pastebin.com/qN62rcqH can someone help me with those proguard warnings? May 06 14:29:38 Twey: sorry for stupid question, but don't you have the zoom-in mode enabled right now? tripple-tap I think May 06 14:30:53 karlo: No, I don't, but I found this — http://stackoverflow.com/questions/14085768/the-android-hello-world-app-is-zoomed-in-and-blurry-on-my-nexus-7 — which seems to be my issue. Giving it a go. May 06 14:32:10 hi May 06 14:33:01 I would like to offer a "dark" and a "light" version of my app. Many users requested such a `dark version`, because staring to a white screen happens to be annoying at night. May 06 14:33:09 How would I best do that? May 06 14:33:38 I mean, is it good design to just naively add a "switch dark/light design" at the startup activity? May 06 14:34:58 spobat, i did that once, just call setTheme() in oncreate passing in your style May 06 14:34:59 you can set it as a preference and set hte theme during oncreate. Usually apps put it in the preferences. May 06 14:35:23 If you have a guided preference screen/set of screens to configure for the first time, put it in there May 06 14:35:39 Ah, yes, that fixed it — thanks, karlo and brx_! May 06 14:35:46 alright, thanks to both of you :D May 06 15:08:18 question: I have FragmentA with a listview and adapter, if i click on an item, i open FragmentB, if i change a spinner on it, i would like to modify something in my listview from FragmentA, what is the best way to do that? May 06 15:12:12 grab a reference to fragA and call a method directly ? May 06 15:12:30 using fragmentManager…**…byTag() May 06 15:12:37 maybe May 06 15:13:22 How can I continuously add views to a LinearLayout until adding another view would result in that child being offscreen? having trouble implementing that…like how do I determine that the child is off screen? May 06 15:13:53 is it a bad idea to create a callback interface? May 06 15:13:55 LuxuryMode: measure the layouts and subtract from abailable spave May 06 15:13:59 that you keep track of May 06 15:14:18 available * May 06 15:14:31 where available space is defined as...? May 06 15:14:39 the linearlayout is just set to wrap_content May 06 15:14:41 FrancescoV: not if you were wanting comms with the fragment host activity May 06 15:14:51 but not really needed for fragments May 06 15:15:13 LuxuryMode: screen metrics May 06 15:15:18 via displayMetrics May 06 15:15:24 get window height etc May 06 15:15:25 hmm ok interesting May 06 15:15:35 so call measure on the views and just keep track? May 06 15:15:43 I would May 06 15:15:50 but I'm not a real programmer btw May 06 15:16:02 I'm an artist designer playing programmer May 06 15:16:06 can i call measure on it before I add it to the viewgroup? May 06 15:16:15 so all my statements are 99% questions ;) May 06 15:16:33 LuxuryMode: you mean measuring a child ? May 06 15:16:36 no May 06 15:16:51 add it then measure it? May 06 15:16:56 it needs to invoke layout, so would need to be added May 06 15:16:58 yes May 06 15:17:19 right but the problem is that even after adding calling view.measure() it may not even be ready for measuring yet May 06 15:17:38 I'm using the ViewHolder pattern, but when I do a database update and call notifyDataSetChanged, the checkboxes (nor CheckedTextViews) change May 06 15:17:49 well I think I would have them in a scrollView May 06 15:17:55 but if I restart, the items I "clicked" all take the correct value May 06 15:18:03 then just keep track of the parent linLayout size May 06 15:18:14 and if bigger than screen, remove last element May 06 15:18:21 just a thought May 06 15:19:27 LuxuryMode: tis an odd design pattern though, for mobiles and displaying info though May 06 15:19:48 or rather, cant picture what your wanting to achieve May 06 15:21:53 belgianguy: maybe cause of view recycling ? May 06 15:22:14 do you set both on and off on the views ? May 06 15:22:37 is there a way to get the scrollY of a ListView May 06 15:22:42 seems calling it always return 0 May 06 15:25:44 xastey: silly question but is it actually scrolled ? May 06 15:25:46 :) May 06 15:26:36 yeah it is May 06 15:26:46 was reading and it returns 0 by design May 06 15:26:48 for a ListView May 06 15:27:20 think I found a way May 06 15:28:51 hm.. i've got a values-v11 and it's not being picked up on api level 10. it thought that it maches up to the api level ? May 06 15:30:02 or is values-v11 for v11+ ? May 06 15:30:07 Yes May 06 15:30:12 yes to last one ? May 06 15:30:29 Yes May 06 15:31:17 well that would be why it does not work, thanks! May 06 15:33:12 StingRay_: I'm almost sure it has to do with the recycling, but I can't find out what I'm doing wrong May 06 15:36:29 Hi. May 06 15:37:01 adb devices see my phone but not my tablet, any clue how can i fix that ? May 06 15:45:51 yo guys.. a little sparring please.. I'm doing a fragment in where selected objects are displayed.. we're talking anything from 1 to 100, each Object displays 1 string and 1 int.. its supposed to be able to change dynamically so when something is added or removed to the list it updates. as of right now I just throw it all in a big EditText.. but the kick is I want the user to be able to May 06 15:45:51 click and change the int values in the objects and ofc now they can't do that cause its all in one editText May 06 15:46:25 so what am I looking for here? I'm thinking tablerow is that good for displaying objects that can change dynamically ? May 06 15:48:48 so just to make it more clear.. its basicly an order list.. names + number/how many May 06 15:56:27 maybe a ListView of edittexts? May 06 15:56:33 still seems pretty terrible May 06 15:56:49 or a listview of edittexts that look like plain old textviews until you touch them? May 06 15:56:57 I think that wouldnt look horribel May 06 16:02:30 using intellij, how can i get a warning when i use something that has higher api level than minSdkVersion ? May 06 16:04:12 Is it possible to have two different typefaces on different parts of text in a textview? May 06 16:06:42 dennda: i believe so using TypefaceSpans, but could be totally wrong May 06 16:08:04 how can i run a snapshot from the command line? May 06 16:08:28 I'll check that out in a bit, thanks mikedg May 06 16:11:57 * P3nnyw1se slaps mikedg around a bit with a large trout May 06 16:12:07 mike you wouldn't go with tablerows ? May 06 16:12:38 the thing about listviews is.. I can only single select each row right? .. theoretically I couldn't have 2 different ints per. row in a listview that I wanted to change May 06 16:14:30 if a view inside a list row is focusable, the default list selection behavior isn't used... so it is possible to have multiple selectable views in a row May 06 16:17:35 you're suggestion a listview then ? May 06 16:19:49 a list view could be a bit cleaner but you have to keep in mind that the views will be recycled, and so you have to save any changes immediately May 06 16:21:32 not 100% sure what you mean.. I want changes to hit right away ofc May 06 16:21:50 updating the actual object they come from and then my idea was that then I update the entire list each time a change is made May 06 16:23:43 I'm not that experienced with android the idea I was thinking was something like doing a table and then adding rows for each element of objects May 06 16:24:14 2 columns each row.. one for an int one for a String.. only the int should be editable at this point May 06 16:25:25 P3nnyw1se: are the int values incremental ? May 06 16:25:30 as an option ? May 06 16:25:41 as in I have an order field (int) May 06 16:25:48 and have up down buttons on the row May 06 16:25:57 well order/priority May 06 16:26:21 the ints are just 'how many' of a selected item.. like 4 milk May 06 16:26:41 there is a uniqueNumber attached with the object.. one that I wanna use as reference ofc May 06 16:26:46 oh so from a user pov you could have val_ip/down buttons May 06 16:26:46 but wouldn't wanna display that number May 06 16:27:00 val_up/down* May 06 16:27:15 yes.. or simply just click on them and write a number to replace the current one.. but up/down works aswell May 06 16:27:37 well from a design stand I would either look at up/down buttons May 06 16:27:52 or a trigger to select from another popup scroll that shows quantity May 06 16:28:12 up/down +/- May 06 16:28:20 or the popup quantity list May 06 16:28:34 cause you kinda want value control May 06 16:28:38 of ranges/info May 06 16:28:38 yes that ofc makes sense.. but I'm unsure as to what to wrap this into .. May 06 16:28:42 and yeah I want value control May 06 16:28:51 eg eggs 1,2,3,4 not really good May 06 16:28:57 6/12/etc May 06 16:29:13 just a view that pops up May 06 16:29:21 could even have a fragDialoge May 06 16:29:31 ugh, cant type or spell today :( May 06 16:29:32 hmmmm May 06 16:29:37 I think I know waht you mean May 06 16:29:44 this way I could stil display everything in single rows May 06 16:29:47 with 1 column May 06 16:29:50 and change it in a popup May 06 16:30:05 wouldn't have to worry about multiple collumns May 06 16:30:52 or did I miss something ? :) May 06 16:33:33 no, thats it May 06 16:33:49 listView in dialogFragment that returns and shows whatever you want May 06 16:33:50 :) May 06 16:33:52 simples May 06 16:47:06 well I'm gonna attempt it.. then already using a listview to list all the possible selectioned (1700) May 06 16:50:45 I gave my actionbar a custom view, now the back button isn't showing :/ May 06 16:51:02 What do I need to do to get it to show up May 06 16:52:14 inflate it first, then set custom view May 06 16:52:29 if you setCustomView(resid) then it'll hide the back button because of the way it inflates May 06 16:52:39 "home button" May 06 16:53:39 hmm May 06 16:54:03 doing "actionBar.setDisplayHomeAsUpEnabled(true);" before changing the custom view didn't seem to work May 06 16:54:10 is that not what you meant? May 06 16:56:37 no May 06 16:56:46 I said inflate the customview yourself, rather than calling setCustomView(resid) May 06 16:57:04 `OOOOh May 06 16:57:08 My bad May 06 16:57:10 call setCustomView(view), not (resid) May 06 16:57:25 There's a difference? Huh May 06 16:57:53 yes, the way it handles layoutparams causes a difference May 06 16:58:00 at least in abs May 06 16:58:02 dunno about native May 06 16:58:13 ABS uses native on ics+, so should be the same May 06 16:59:38 It renders differently, but still no button May 06 17:00:39 dunno what you're doing, but it works ok for me May 06 17:01:07 :/ May 06 17:01:13 I'm testing on a nexus 4 May 06 17:01:25 I'll just make a custom button in my ui May 06 17:05:48 is there some label component or should i use text view ? May 06 17:06:28 something that will just display a text without edit possibility. May 06 17:11:25 ok this is crap.. when I call listView.setEmptyView my listView is nolonger match_parent its like it was removed from the view May 06 17:12:17 Wrong May 06 17:12:29 yeah tell me about it May 06 17:12:37 If I dont call setEmptyView it retains it size May 06 17:12:51 When the empty view is shown, the listview is invisible May 06 17:13:01 It still has its layoutparams May 06 17:13:02 o well damn May 06 17:13:20 Now, the layoutparams you gave your empty view might not be match_parent May 06 17:13:23 But that's on you :p May 06 17:13:23 I was using the PullToRefreshView widget May 06 17:13:27 and it didn't follow that rule May 06 17:13:35 no wonder I was freaking out May 06 17:13:51 Oh, yeah, that might work a bit differently May 06 17:13:59 Since it always has to be pullable, even if empty May 06 17:14:07 or so I'd assume May 06 17:14:16 yeah alright well that makes sense May 06 17:27:10 I just submitted an update to an app via google play and I'm getting some strange warnings: Devices currently running version 9 are no longer supported by the current configuration. Such devices will not receive upgrades. May 06 17:27:16 anyone know if it would be possible to choose a ringtone that is actually an AudioTrack in stream mode? May 06 17:27:19 and it mentions API levels, screen layouts and features May 06 17:27:37 For Screen layouts containing any of [small, normal, large, xlarge] and May 06 17:27:44 then that means you upgraded your api level from your last release May 06 17:27:53 to me that sounds like every device type will not get the update. Whay is this? May 06 17:28:27 xastey: I did upgrade the API level, so only the devices that are in the old API level are effected? May 06 17:28:39 thats correct May 06 17:28:46 so say you were on api 8 before May 06 17:29:21 that message.. atleast to means, that phones stuck on api level 8 wont receive the new update May 06 17:29:38 so if you want to still support them you may need to use a wrapper+reflection May 06 17:30:06 or interface.. either or or both May 06 17:30:22 xastey: got it. That's exactly what I needed to know. I was not reading this message as hierarchal. I was reading each statement as exclusive, which seemed to cover a all the devices ;-) May 06 17:39:33 anybody here? May 06 17:41:36 dudes May 06 17:44:59 jasta: The adb suggestion helped a lot, thanks. May 06 17:45:25 nobody here? May 06 17:45:37 Ilhami: no!!! May 06 17:45:48 However, I did not get it all figured out, yet. May 06 17:46:18 StingRay LOL May 06 17:46:33 I have to show you some code.. I need to make a ListView.. May 06 17:46:39 with sectioned headers May 06 17:47:26 has anybody seen an article or paper anywhere involving the creation of two similar apps, one with lots of permissions and one with few permissinos to compare user response to the number of permissions requested? I remember seeing something like this but can't find anything on it May 06 17:47:41 I wonder if I'm suffering from a bug in 2.3 as described in https://groups.google.com/d/msg/android-developers/2H-zkME9FB0/ZymfmZTDaAkJ May 06 17:47:50 http://pastebin.com/5sGaUm0e StingRay May 06 17:47:58 whats that ? May 06 17:48:02 and why do I care ? May 06 17:48:08 help me man :D May 06 17:48:15 i just said no1 was here May 06 17:48:22 LOL May 06 17:48:22 silly answer for silly question May 06 17:48:41 maybe everybody was afk May 06 17:48:44 how would I know? May 06 17:48:44 i did not say "oooo yes I'm here to help with whatever you want" May 06 17:48:55 but anyway May 06 17:49:00 just ask your question May 06 17:49:13 you dont need to attempt to ROPE some1 into your problem May 06 17:49:15 But then it might also have to do with when the framework attempts to restart a service. May 06 17:49:29 The thing is I have to make a ListView. I have two TextViews May 06 17:49:48 One for textseparator and one for item... May 06 17:49:52 where do I put the ListView? May 06 17:49:59 they are in two different xml files May 06 17:50:13 Do I put the ListView in a separate xml file? May 06 17:50:37 Ge0rG mentioned it could be exponential backoff, but I assume that would only increase for failed attempts and not for total runtime of the service to be restarted... May 06 17:50:37 seperate to what ? May 06 17:50:55 i personally think you should go though the getting started tutorials May 06 17:51:15 cause then you would know you can do whatever you want and whatever is the best fit May 06 17:51:18 :) May 06 17:51:45 Problem is, that the service comes up seamlessly when killed via adb, but hangs as "restarting" when killed by the framework... May 06 17:54:08 StingRay May 06 17:55:16 http://pastebin.com/SPhF0fj2 is this okay? May 06 17:59:10 I have a custom text view and there I use getLayout() which seems to be null often. Any idea May 06 17:59:18 after resize May 06 17:59:23 hey all...anyone here with experience creating an App Engine connected Android project?? May 06 18:03:21 SeptDePique, treat it like any other web service; what difference does it make whether it's appengine or something else May 06 18:04:20 has anyone here ever extended the Ringtone class? May 06 18:04:29 Is there a place with the settings for an AVD for the Nexus 4? May 06 18:05:10 pfn: it works when i deploy the AppEngine on Google server but it doesn't work when i run it locally May 06 18:05:35 to get the heap size available i can do Runtime.getRuntime().maxMemory() right? May 06 18:05:44 i'm trying ot figure out how big to make a cache May 06 18:05:57 SeptDePique, then you're doing something wrong :p May 06 18:06:09 SeptDePique, like not pointing your app at your local instance May 06 18:06:36 SuperLag: do you have a monitor with > 1280 pixels height? May 06 18:06:57 monsti: no, this goes up to 1080 May 06 18:07:08 monsti: it's HD... so 1920x1080 May 06 18:07:17 just rotate it May 06 18:07:26 yeah ;) May 06 18:07:35 rotate the display? :) May 06 18:07:49 the nexus is 800x1280 May 06 18:08:05 you'll also fit more code this way! May 06 18:08:19 you can rotate your head by 90 degrees ;) May 06 18:08:48 i recomend switching the sides every day ;) May 06 18:08:50 monsti: but your internal guidance system will complain about directions May 06 18:08:55 * Ge0rG wants to upload screenshots to google play that do not contain the menu bar.... May 06 18:09:13 1280x768 May 06 18:09:17 that's the official specs May 06 18:09:53 it's 768x1280 ;) May 06 18:10:16 mine is 0281x867 May 06 18:10:16 and your screen is 1920x1080 May 06 18:10:59 monsti: right, now that you say that... it makes sense. However, the official specs on the Google Play site, where the Nexus4 is sold... it reads as follows: "1280 x 768 pixel resolution (320 ppi)" May 06 18:11:05 pfn: must be something with the AppEngine...if i call http://localhost:8888/_ah/api, the service return INTERNAL_SERVER_ERROR May 06 18:11:30 SeptDePique, local appengine doesn't support /_ah that I recall May 06 18:11:32 SuperLag: rotate your head May 06 18:11:36 :D May 06 18:11:43 or the screen May 06 18:12:07 SeptDePique, local instance is for testing *your* code, not _ah May 06 18:12:30 Custom TextView i get null for getLayout. According to docs, it can be null if its recently changed. Any idea May 06 18:12:34 pfn: ok... that means no gcm with local app engine? May 06 18:12:55 SeptDePique, probably not May 06 18:13:15 pfn: thank you! May 06 18:14:21 LOL i have a "jennifer" in my hotel ;) May 06 18:14:36 and she has some pulic "access" May 06 18:17:03 not pubic access? May 06 18:17:54 monsti: Okay.... rotated the display. May 06 18:19:43 How can I override the screen that shows up before my initial activity loads? May 06 18:20:18 what screen? May 06 18:20:42 monsti: you live in a hotel? May 06 18:20:44 the debugger? May 06 18:20:59 SuperLag: sure i have no money to buy a yacht May 06 18:21:04 for some reason, I have the worst luck with hotel internet :( May 06 18:21:14 monsti: I guess I shouldn't be surprised... when we lived in Amsterdam, we lived in a hotel of sorts, too. May 06 18:21:23 11,7KB/s May 06 18:21:32 that's worse May 06 18:21:48 monsti: I took your advice... rotated the displays. This is interesting. May 06 18:23:21 jusst write portable layouts May 06 18:23:29 and it works on tablets and on phones May 06 18:27:34 pfn, when I first launch my app, I see a screen with my basic theme, but not any activity I've defined May 06 18:27:50 pfn: still there? i used this guide: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae ... does that mean it would work with an android emulator? May 06 18:32:37 Okay, Ge0rG you're probably right with that exponential backoff thing. Do you know if that affects START_STICKY as well? May 06 18:33:25 monti: Like this? http://goo.gl/35DvS May 06 18:33:32 o19: sorry, no idea May 06 18:34:15 Okay, I might have to do a long-run then :) May 06 18:36:08 any one hear or tried MX Player apii May 06 18:37:39 there is a problem that when back button is pressed, there is usually white screen May 06 18:37:49 what could be the possible reason May 06 18:38:02 nothing suspicious in logcat May 06 18:44:33 Hi! I have an EditText that I put in the FooterView of a ListView. I also set an OnFocusChangeListener on that EditText. I don't know what I'm doing wrong, but when I click on the EditText the listener is called multiple times. Any guesses? May 06 18:49:32 is it possible to store a dummy wav file on the filesystem that I can open and write to in streaming mode? May 06 18:49:44 only during playback that is May 06 18:53:04 hmm, any good idea on how to draw shadow on line when working with Canvas? May 06 18:55:26 Paint has setShadowLayer May 06 18:58:57 yeah May 06 18:59:18 SimonVT, didn't work for me… just found the doc where it says it's not supported on hardware layers :) May 06 18:59:21 thanks anyway May 06 18:59:37 oh, right May 06 18:59:38 Yeah May 06 19:00:24 If it's just a line, create a drawable that's a line and has a drop shadow May 06 19:01:27 Should be fairly easy to create as a vertical/horizontal 9patch May 06 19:01:54 can you easily apply a blur? May 06 19:01:55 I'm drawing something that looks like a clock with roundrect handles so 9patch is kinda compilcated :\ May 06 19:02:05 Ah, hm May 06 19:02:13 I see pretty good performance when I set layertype to software though May 06 19:02:18 so I'll run with that for now May 06 19:03:56 Maybe a layer-list and 2 shape's at different sizes? May 06 19:11:52 hi experts... local google app engine with gcm... how possible? May 06 19:13:13 I use MultiAutoCompleteTextView, i did setThreshold(1); as well as by xml way: android:completionThreshold="1" but still need to type at least two characters :/ May 06 19:15:08 but when i use back button to erase last character and type it again then it show my item list May 06 19:15:12 so wtf? May 06 19:22:56 https://plus.google.com/111751695436781052143/posts/GcR4ikdDuM5 May 06 19:22:57 yay :) May 06 19:23:26 what does this have to do with android May 06 19:23:48 absolutely nothing May 06 19:25:42 cool knife? May 06 19:25:49 ok, why don't you leave here and post this on reddit, i'm sure your insecurities are worth lots of karma there. May 06 19:25:58 hahaha May 06 19:26:59 according to the documentation, the states of views are preserved by the system in savedInstanceState automatically May 06 19:27:15 but i have some toggle buttons whose state does not seem to be preserved May 06 19:28:51 my apologies, not toggle buttons but a rather listitem views whose background is programatically changed May 06 19:30:01 this is a listview with an adapter? May 06 19:30:08 yeah May 06 19:30:23 i guess becasue it's being regenerated it can't preserve the state May 06 19:30:26 your adapter is responsible for populating state May 06 19:30:32 right May 06 19:30:34 k May 06 19:31:09 makes sense, i guess i just needed to think through it May 06 19:31:29 your adapter could have a selected property that gets saved into the bundle May 06 19:31:56 i'll have to think about how to cleanly do this as i don't want the adapter to really be concerned with state of the items May 06 19:42:54 can someone explain why Android does not include a full STL library implementation? May 06 19:43:07 because you are supposed to code in java, not in c++ May 06 19:43:26 (maybe also because there is no apache-licensed STL implementation?) May 06 19:44:33 hi... sry for repeating myself, but need help: local google app engine with gcm... how possible? getting error May 06 20:08:58 hi . i keep trying to work out a way to swap sdcard and extSdCard in 4.2.2 no apps work , fstab doesnt list internal sdcard and im unable to create a symlink even tho i mounted every mountpoint again as rw ... any ideas ? May 06 20:13:48 hey guys can someone please point me in the direction of an open gl es tutorial that demonstrates how to pick an object in 3d space, i.e. ray casting? May 06 20:19:48 dragonkeeper: looks like a coocked ROM May 06 20:19:55 -o May 06 20:23:58 demifuror: that is not a function of gles May 06 20:24:42 if you want raycasting picking you have to do your own scenegraph, though you could use easier/slower picking that relies on gl May 06 20:25:34 oGMo: i understand, but surely the topic comes up a lot in 3d game dev? i mean, surely theres a tutorial somewhere that teaches you hopw to draw a simple triangle in 3d space, and then click on it? May 06 20:26:00 if you're doing a simple app you can probably use a simpler method; if you're writing a game you almost certainly need a scenegraph anyway to handle stuff like NPCs shooting/interacting/whatnot May 06 20:26:42 demifuror: it certainly does, http://www.amazon.com/Real-Time-Collision-Detection-Interactive-Technology/dp/1558607323 May 06 20:27:44 oGMo: cool, thanks, ill have a look at this May 06 20:27:46 however there's a pretty big leap between "draw a triangle in GL" and even "click on a triangle in GL" and "do this how a game would do it" May 06 20:29:16 oGMo: yeah, i know theres a lot to be learned, but the problem im facing at the minute is knowing what books to read on it, what sites i should be checking, i mean, i'm willing to learn and put the time in, but i don't even know *what* exactly it is i should be searching for May 06 20:29:45 grr why on earth isn't my emptyView not showing May 06 20:29:49 demifuror: ah well, that book is a good one though a fair bit of math is involved, though none of it particularly hairy May 06 20:30:20 oGMo: great, thanks :) think this is the kind of thing i'm looking for :) May 06 20:30:24 demifuror: collision detection in general is probably the hardest problem to solve yourself, but there _are_ a number of game engine libraries that do a lot of this for you May 06 20:30:50 (and "click on thing" is essentially a special case of collision detection) May 06 20:32:10 Is there a way to prevent closing of an alert dialog without pressing a button? May 06 20:32:25 if you don't know GL, there are a fair number of GL tutorials on the web, just google around for gles2 tutorial or something .. the gl stuff is actually pretty easy May 06 20:46:14 speakingcode-wor: I was wrong, ListView can keep track of a "checked" item for you if you set a ChoiceMode May 06 20:46:35 codebutler: no worries, already got it figured out May 06 20:57:20 Hi, I have a listview with an SimpleAdapter, on the onitemclicklistener it returns the wrong position, anyone has an idea? May 06 20:58:30 crack3r: does your list have header views? May 06 21:01:06 codebutler: what do you mean? like a textview before the listview? because I have one May 06 21:01:56 codebutler: forgot to mention that I only have this problem on android 2.3 May 06 21:03:06 need help with android gcm project connected to local app engine... doesn't work May 06 21:05:35 crack3r: i mean do you call addHeaderView() May 06 21:07:27 codebutler: nope. May 06 21:09:45 anyone any links on form design guidelines in android ? May 06 21:11:47 d.android.com/design ? May 06 21:12:08 speakingcode-wor: really? May 06 21:12:19 iono May 06 21:12:28 uh, thanks for the non answer May 06 21:12:31 form? May 06 21:12:49 i mean,... thanks for the non question :-) May 06 21:13:03 speakingcode-wor: a non question if you are ignorant :) May 06 21:13:13 codebutler: I am going to try on older platform versions. I have no problem with 4.x and 3.x May 06 21:13:53 form design guidelines - keep them simple, don't put too much on one screen, don't put too many on one screen, persist responses, allow going back May 06 21:14:16 use the appropriate input types May 06 21:14:52 support landscape May 06 21:14:56 align questions/labels and responses/inputs, respectively May 06 21:15:00 ^^^ what him said May 06 21:15:05 guidelines i envision would specify whether labels and input boxes should be aligned a certain way, etc May 06 21:15:26 group items by relevance May 06 21:17:16 for example, in this book, specific guidelines are given for the web … but the way the recommend structuring a form for desktop doesn't lend itself to mobile http://www.amazon.com/Forms-that-Work-Interactive-Technologies/dp/1558607102 May 06 21:17:25 but you can on a large landscape screen May 06 21:17:31 Well, closest to that is the 48dp rythm May 06 21:17:51 well May 06 21:18:03 so , make the alignment consistent between small portrait and landscape, or do a more traditional form layout for large landscape ? May 06 21:18:05 theres one clue. support multiple screen sizes and orientations where it makes sense May 06 21:18:33 g00s: it's a bit of an abstract thing, and kind of depends on the amount and types of input May 06 21:18:41 generally you want the user to not have to scroll May 06 21:18:52 g00s: http://youtu.be/zHirwKGEfoE?t=3m40s There they discuss how the Calender 'Add Event' screen does it on different screen sizes. May 06 21:19:00 minimize the amount of taps and gestures necessary. May 06 21:19:04 kakazza: cool, thanks ! May 06 21:20:08 if that means realinging things based on screen size or orientation, then do that, but it may not be necessary. you don't want to go crazy trying to fit too much in one area even if there is more real estate. white space is easy on the eyes and often times pagination is better because it doesn't feel overwhelming May 06 21:20:38 kakazza: awesome, thats what i was wondering. so they do a multi column layout on larger screens. thanks a lot. May 06 21:21:05 now the question is, should labels be right justified :P May 06 21:21:12 grouop controls by relevance and align labels and inputs so that it doesn't confuse the user as to what is what or make them trail off wondering why things are grouped together the way they are... i.e. eliminate distractions May 06 21:21:18 form design is not sexy, but its tricky to get right May 06 21:21:24 agreed May 06 21:21:43 for example, using only hints is a bad usability idea May 06 21:21:46 *only* May 06 21:21:51 although this is highly vague, i would suggest looking at the form section of the twitter bootstrap documentation May 06 21:21:55 JakeWharton: B-But rotation is hard and stuff, better set configChange="orientation"! May 06 21:22:03 ma statics!!1 May 06 21:22:14 see what types of things bootstrap offers for hints on what you might try to mimic in the mobile environment May 06 21:22:46 Q: is it possible to hide task bar in android 4.1 where home, back etc. are ? May 06 21:23:36 and i can't stress alignment enough. pad and stretch your input fields and such so they all line up. it's so annoying to look at a form where all the input boxes are different widths and what not. visual flow = user bliss May 06 21:24:08 hetii: i don't believe so, as some devices do not have physical buttons and you would be blocking the user the ability to leave your app May 06 21:24:20 Maybe that's the point! May 06 21:24:42 maybe so, and i'm sure it'll get far. :-) May 06 21:25:10 like here: http://www.youtube.com/watch?v=5YEMKHlv3AM May 06 21:25:36 In my application its one of the requirements :) May 06 21:26:26 What exactly does the requirement say? May 06 21:27:21 well you better send it back May 06 21:27:45 No, you can't. You can hide it temporarily on phones ( and maybe 7" tablets, pretty sure you can't on 10") but as soon as the screen us touched it will show again May 06 21:28:11 that's like trying to disable the keyboard and mouse in a desktop app. May 06 21:28:12 In my case i will use tablet as a terminal, so end user will not be an owner of it and need to be able only work in area of my application,nothing less, nothing more. May 06 21:28:31 ohhh one of those situations May 06 21:28:48 in that case you can assume control of the device n start working on your customized rom, i suppose May 06 21:29:14 Don't the 4.x tablets have a Kiosk mode anyway> May 06 21:30:00 probably. either wya i don't see why a company would invest the money in hardware an ddevelopment to use mobile devices to conquer a long-solved problem May 06 21:30:17 i.e. dumb terminals May 06 21:31:16 let's embrace the -mobile- paradigm by creating locked down stationary dumb terminals May 06 21:31:38 hmm, currently tablets are very cheap so its worth to use them as terminals in many cases;) May 06 21:32:16 ok but i thought it will be possible just by installing my application if not then indeed i will need root device and then block it by other way... May 06 21:32:34 speakingcode-wor: I've seen shops where they use iPads as monitors that show a video 24/7 May 06 21:32:45 sup sup May 06 21:37:07 kakazza: true. it's common. still seems inefficient to me tho May 06 21:38:06 Hey does anyone know how to request additions to the online dev documentation? May 06 21:38:34 I think the Android Issue Tracker has a category for documentation. May 06 21:38:54 hello May 06 21:54:44 kakazza, afaik, there is no "kiosk mode" May 06 21:58:27 hmm http://www.42gears.com/blog/2011/10/kiosk-mode-on-android/ May 06 22:04:37 android has no kiosk mode, yet May 06 22:11:32 is there any more news on that google game framework that was leaked? May 06 22:11:44 or do we have to wait for io May 06 22:15:38 I have a bug that I think is due to the way that lists reuse objects. I have a list of download buttons that get a progress readout when downloading. When I scroll the list, the buttons that are showing progress jump into other list elements. How can I stop this? It's difficult to visualize, so I made a video of it: http://www.youtube.com/watch?v=EiT2YWb2Prs&feature=youtu.be May 06 22:15:54 if i want to get a list of images taken from the android camera, is querying for images whose BUCKET_DISPLAY_NAME == "Camera" a reliable way? May 06 22:16:03 or will i miss out on some images depending on the device May 06 22:16:22 Actually my client made the video, so disregard the 'samsung bug' bit. I'm the developer. May 06 22:16:53 shigeru: "depending on device" is the most common description when dealing with the camera ;) May 06 22:17:20 T_T so is there no easy way to get a list of images taken by the camera? May 06 22:18:50 ok May 06 22:18:56 kiosk mode == compile you own OS :) May 06 22:19:00 heh May 06 22:19:13 or make your app a launcher and disable the lock screen May 06 22:20:09 JakeWharton: You keep saying to support landscape mode. But I've only seen one screenshot of Square Register (none of Square Wallet) that makes use of landscape. And it only shows the signature part. May 06 22:20:29 i said support landscape for forms May 06 22:20:32 Any chance of seeing more of the app somewhere? I doubt I can use or download it here in .eu May 06 22:20:34 Ah May 06 22:20:46 Register supports landscape on every screen May 06 22:21:58 Wish I could play around with the app May 06 22:27:04 Hey May 06 22:27:23 I want to make a listview where I sectioned headers... May 06 22:27:44 Can I show you? The list is not clickable.. May 06 22:28:37 I made some code I want to show you.. May 06 22:29:33 add a few more dots and carriage returns :) May 06 22:30:09 LOL May 06 22:30:18 bad habit May 06 22:30:35 can I show you the code? May 06 22:31:28 http://pastebin.com/GjmMef0Y Here is the java file May 06 22:32:12 items2.xml http://pastebin.com/UvS9YUHH May 06 22:32:51 http://pastebin.com/X0duqshK items1.xml May 06 22:32:56 how do I implement the ListView? May 06 22:32:57 hi all! May 06 22:33:11 hi May 06 22:33:22 I am writing an account authenticator May 06 22:33:37 the account type appear on add account May 06 22:33:52 the activity to insert data is launched and correctly finish May 06 22:34:00 but the account is not added :| May 06 22:34:19 can we see your code please? May 06 22:34:30 yes May 06 22:35:15 http://pastebin.com/J4dBCAZt May 06 22:35:30 the method is binded to the button in xml files May 06 22:35:50 and it is correctly called ( as i can see the log message printed ) May 06 22:36:24 kakazza: maybe someday :) May 06 22:36:35 \o/ May 06 22:36:44 G10h4ck, don't bind actions in xml May 06 22:36:48 it's a bad practice May 06 22:37:22 Wasn't that once _the_ feature of 2.x? May 06 22:37:34 and uses reflection which silently fails on old platforms when you implement methods from newer APIs that reference new types May 06 22:37:51 no May 06 22:37:55 that's been around since 1.0 May 06 22:37:56 sadly May 06 22:38:14 we're talking about android:onClick, no? May 06 22:38:20 yes May 06 22:38:33 pfn: whats the problem with onClick? May 06 22:38:48 lots, JW mentioned a couple May 06 22:39:14 you dont use onClick May 06 22:39:19 its not a good practice May 06 22:39:20 reflection is only a performance-issue May 06 22:39:24 the biggest of which is the lack of compile-time validation May 06 22:39:41 hm... yeah. but once you have it running, not much can go wrong ;) May 06 22:39:49 pfn maybe you can solve my problem? May 06 22:39:50 there's plenty that can go wrong May 06 22:39:51 Reference new types? Example? May 06 22:39:54 you decide to re-use your layout May 06 22:39:57 kaboom May 06 22:39:59 it goes wrong May 06 22:39:59 are there other methods than onClick? May 06 22:40:14 OnClickListener May 06 22:40:35 pfn: ok, you need to know what you are doing May 06 22:40:52 pfn: but there are so many ways to NPE your app if you are re-using layouts.... May 06 22:41:32 Woooh May 06 22:41:37 Just got a new internship offer May 06 22:41:40 Heh, android:onClick is used in the 'getting started' section https://developer.android.com/training/basics/firstapp/starting-activity.html May 06 22:41:41 $4/hr more than my previous May 06 22:41:42 :D May 06 22:41:49 yay android for getting me jobs May 06 22:41:59 So... $8/hr? ;p May 06 22:42:06 can you find me one as well? May 06 22:42:11 lol May 06 22:42:12 nah May 06 22:42:14 :D May 06 22:42:18 Ilhami: I just hired my replacement May 06 22:42:20 so sadly I can't May 06 22:42:21 :P May 06 22:42:26 also you're probably not eligible May 06 22:42:31 cause it's only for UIUC students May 06 22:42:39 (TextView)findViewById(R.id.foobar) does not provide any compile-time checks either, besides of the existence of "foobar" in some layout May 06 22:42:40 But yeah, I just moved up from $14/hr to $18/hr May 06 22:42:45 and the new office is gonna get me a chromebook May 06 22:43:00 so the point about compile-time-checking is moot. May 06 22:43:14 are there any other reasons against android:onClick? maybe some good ones? May 06 22:43:37 Ge0rG: Against on click in what scenario? May 06 22:43:44 GeorG it encourages poor organization May 06 22:44:33 Brian|CS: almost everybody here argued that onClick is always bad, just before you joined May 06 22:44:45 does the IntelliJ Android plugin have any functionality which shows me a dependency graph of what resources are being referenced by other resources and/or code ? May 06 22:46:31 onClick as in the layout attribute? May 06 22:49:19 Brian|CS: yeag May 06 22:49:21 yeah May 06 22:49:23 I mean May 06 22:49:27 I think it's bad practice May 06 22:49:31 i wouldn't sayit's a horrendous crime May 06 22:49:46 I want to know more about what Jake meant by Reflection, new types etc. May 06 22:49:53 I prefer having a large section of code where I do all my onclick handling for an activity/fragment May 06 22:50:05 its not a horrendous crime to leave shit on your shoe, but no one will definatly want to work with you May 06 22:50:08 what about a large section of code where you define the layout? May 06 22:50:36 lol May 06 22:50:43 * Ge0rG prefers the solution with the minimum amount of code. and no other solution can beat android:onClick May 06 22:50:46 lasserix: An interesting, if not exaggerated comparison May 06 22:50:48 just outta curiosity why is it bad practice May 06 22:51:03 brx_: It's sort of the general concensus that assigning onClick listeners is the way to go May 06 22:51:08 programmatically that is May 06 22:51:09 except maybe not having a button listener at all :P May 06 22:51:11 not via XML May 06 22:51:15 so when you work in large groups May 06 22:51:19 it's preferred that everyone works one way May 06 22:51:30 I work as a lone wolf most of the time though May 06 22:51:32 onclick leaves a floating method in your code, which has no association unless you comment it in May 06 22:51:35 so luckily I get to do whateer the FUCK i want lol May 06 22:51:51 if you have multiple buttons, you have multiple floating methods May 06 22:51:58 lasserix: Also a good point May 06 22:52:06 Conventions are the most driving factor for me May 06 22:52:07 i dont think onClick is easy to use from fragments May 06 22:52:10 I always try to follow convetions May 06 22:52:14 g00s: It's totaly doable May 06 22:52:22 I'm rewriting my entire app at work to be fragment driven May 06 22:52:27 so we can port it to mutiple devices easier. May 06 22:52:32 Brian|CS: really? i thought they got dispatched to the activity context or something May 06 22:53:21 Onclicks can be handled in fragments really easily, lemme find some of my code May 06 22:53:39 I think g00s is refering to android:onClick May 06 22:53:50 kakazza: oh, is there another one :P May 06 22:53:51 Oh May 06 22:53:53 i usually use an anonmyous OnClickListener class for each view May 06 22:53:57 I meant setting OnClickListener May 06 22:54:33 Do you implement OnClickListener or use it anonymously if you have like 6 buttons May 06 22:54:36 if theres several then i create an array of them and pass each one to a method i write that sets each listener, in a loop May 06 22:54:40 ^ May 06 22:54:59 setOnClickListener(this) and in it determine what button it was May 06 22:55:16 anonymous inner classes are the ugly warts on the face of java May 06 22:56:06 Ge0rG: So to do an onclick via fragment May 06 22:56:21 all you have to do is assignthe listener to a button during your oncreateView May 06 22:56:36 So essentially you inflate the view for the fragment right May 06 22:56:50 then you to thatView.findViewById(ButtonID) May 06 22:56:54 and set it's onclicklistener May 06 22:56:55 not too hard May 06 22:57:56 onClick (xml) for a fragment was the original point,no? May 06 22:58:03 was it May 06 22:58:06 maybe I got sidetracked May 06 22:58:07 lol May 06 22:58:13 i dont think onClick is easy to use from fragments May 06 22:59:00 vaguely related to anonymous inner classes being ugly, there is a project that brings some java7 (and perhaps someday java8) stuff to android: https://github.com/yareally/Java7-on-Android (not 8 so no closures, on hackernews the author said he tried but didn't manage to get them working). it looks interesting but i wouldn't dare use it in production, seems like it'd be too fragile. May 06 23:01:39 * Ge0rG is already stretching the limits by applying simple-xml and ormlite on top of sqlcipher... May 06 23:01:56 reflection everywhere! \o/ May 06 23:10:55 kevinb: maybe they'll just ditch all the Java stuff someday :) May 06 23:11:36 interesting, Kotlin has explicit android support May 06 23:12:15 I love java May 06 23:12:17 it's a great language May 06 23:12:23 although recently I've been learning/using a lot of python May 06 23:12:24 for web dev May 06 23:12:31 and I do appreciate pythons usefulness now too May 06 23:12:52 * JesusFreke misses c# May 06 23:13:14 in a alternate / parallel universe, Google threw resources at Kotlin, did their framework with that, and had their plugin in IntelliJ :D May 06 23:14:05 Meh May 06 23:14:07 I tried IntelliJ May 06 23:14:09 What's with the out-params in WindowManager (getSize(), getRectSize())? Why not just return it? May 06 23:14:18 but it was a pain in the ass setting up all my dependencies and libraries I wanted to use May 06 23:14:20 so I said fuck it May 06 23:14:23 and went back to eclipse May 06 23:15:00 yeah i have a bunch of library projects and intellij doesn't cleanly import them and i haven't had the energy to really set it up and give it a chance May 06 23:16:17 Twey: sometimes that's done to avoid allocations. though it does seem a bit odd that you would call getSize/getRectSize so frequently that it would be an issue May 06 23:19:26 Does Java not have anything like C++'s return value optimization? May 06 23:19:51 Also, why is that appropriate for something like a Rect/Point, which is surely just a pair of ints? May 06 23:20:48 Twey: return value optimizaiton? May 06 23:21:06 Ah May 06 23:21:07 that May 06 23:21:10 uh well May 06 23:21:10 Twey: it's a totally different situation than in c++ May 06 23:21:21 The thing is, in C++memory is handled in an entirely different way than in Java May 06 23:21:33 Yeah, I guess so May 06 23:21:38 because in C++ garbage collection is an issue that is yours to deal with May 06 23:21:40 objects are always created on the heap - there's no way to have an object that isn't on the heap. I.e. there's no way to return a new object, other than creating a new one on the heap :) May 06 23:21:43 meh. why is every-fucking-body and their aunt inviting my support email address to join twitter? May 06 23:22:25 JesusFreke: RVI can apply to the heap too — all it requires is that you internally translate foo = bar() into foo(&bar) May 06 23:22:35 But I guess maybe that would break the bytecode in Java May 06 23:23:18 Twey: the issue is, in java you allocate a new object whenever you create it, no way to make it a stack allocation May 06 23:23:19 (i.e. you'd get a method of type void … (Bar) instead of Bar … ()) May 06 23:23:33 Twey: so by using an out-param you can reuse the same object, preventing GC May 06 23:24:06 also, C++ return optimization is nothing to be proud of... rvalue references, nuff said. May 06 23:24:36 Ge0rG: Yes, but with RVO you don't create it. It's basically a mechanical translation into an out-param — but I guess there are other issues in Java because you can't go around changing the ABI willy-nilly like that. May 06 23:25:02 Twey: that's the point - you can't have an object in java that's not on the heap May 06 23:25:06 Twey: in C++, return values are on the stack, pre-allocated by the caller May 06 23:25:28 Twey: in java, you always return a pointer May 06 23:27:19 Well, the object still has to be allocated somewhere, right? So, in a hypothetical Java with RVO, Bar bar = new Bar(); bar = foo(); would function similarly to Bar bar = new Bar(); foo(bar); (i.e. the caller would allocate the object on the heap, then the callee would modify it) May 06 23:28:21 I should be able to create an onclick listener for an ImageView, correct? May 06 23:28:38 this is so barBar-ian... May 06 23:28:42 Hehe May 06 23:29:05 mantas322: yeah you can but you can also just set the select drawable states of a button to be whatever the image is May 06 23:29:25 I'm just expressing my subconscious desire to get a haircut May 06 23:29:27 Twey: except it won't, because foo() could return a Bar subclass May 06 23:29:41 Ge0rG: Ooh, good point May 06 23:30:32 if i use a button instead of a ImageView can I also set the backgroundresource and use a animationdrawable ? May 06 23:31:04 i almost see no reason to use a button over imageview really May 06 23:31:13 like ever May 06 23:31:21 Well May 06 23:31:23 Twey: not sure how C++ handles that case, though May 06 23:31:24 When you just want a button May 06 23:31:25 and not an image May 06 23:31:28 then you use a button May 06 23:31:29 :P May 06 23:31:46 never happened to me, that i just wanted a button :-D May 06 23:31:58 JakeWharton: 7 days of open source is the awesomest May 06 23:32:02 I want an image that acts like a button May 06 23:32:04 you know, the user can see if a button is pressed May 06 23:32:15 mantas322: why not using a button with an image style? May 06 23:32:25 funkbox: more like stress-iest May 06 23:32:45 im already using a ImageView, and I've done this before May 06 23:32:49 but its been year or two May 06 23:32:59 JakeWharton: if it makes you feel any better, it's helping all the rest of us a bunch May 06 23:33:15 and just like with grade school spelling bees, I've forgotten how to spell everyword May 06 23:37:01 nice, that was easy May 06 23:37:24 no ones goign to be ready for this app im about to cook up. May 06 23:37:38 its gonna be bigger then erowid May 06 23:37:41 mantas322: i'm sure world has not seen such a calculator May 06 23:37:57 oh you just wait... May 06 23:38:27 Lol May 06 23:38:41 I've released 2 apps on my personal account May 06 23:38:44 both have like 10 installs May 06 23:38:46 it justmakes me sad May 06 23:38:46 D: May 06 23:38:50 i should just publciize them May 06 23:38:55 Brian|CS: you don't want users, trust me May 06 23:38:56 I'm sure people would use it May 06 23:39:09 funkbox haha so true... and sad May 06 23:39:22 Brian|CS: just write apps that people need May 06 23:39:30 *want May 06 23:39:31 actually that was a good guess, Yeah this app is going to ask the user for his age, then it will ask what date he or she was born on, then it will tell them whether or not they are correct about their age May 06 23:39:37 Ge0rG: I wrote a good one for campus, but i just didn't publicize it well May 06 23:39:48 but it did land me a job last summer as a freshman May 06 23:39:50 sot hat is a plus May 06 23:40:01 my least-used app is at 560 installs, and it is a paid one May 06 23:40:13 brag more. May 06 23:40:16 lol May 06 23:40:23 I've never wanted any money from an app May 06 23:40:29 i prefer to be paid to develop apps for people May 06 23:40:35 i'm at 30k and 10k May 06 23:40:35 rather than making something and expecting people to pay May 06 23:40:38 Brian|CS: this is a good strategy as well May 06 23:40:46 Brian|CS: but why not do both? May 06 23:41:00 you have to make apps for love not money May 06 23:41:04 thats what jobs are for May 06 23:41:19 * Ge0rG 's got some OSS apps, a paid OSS app and a paid closed-source app *shrug* May 06 23:41:24 mantas322: that makes no sense. i love money. May 06 23:41:27 Yeah, I just love making apps May 06 23:41:33 I love the whole idea of the internet of things May 06 23:41:38 Ge0rG: It doesn't: it can't occur. If you return a subclass by value it'll be coerced into the superclass. For polymorphism you need to use a pointer of some kind. May 06 23:41:38 it all just is incredibly fun to me May 06 23:41:51 Twey: wait, what? May 06 23:42:02 ha-ha funkbox LOVE money! May 06 23:42:11 get a room. May 06 23:42:25 mantas322: i already have one for google io. May 06 23:42:30 Ge0rG: Re. how C++ handles the case where you return a subclass from a function declared to return the superclass May 06 23:42:33 :O May 06 23:43:07 Twey: do you have a reference on that? it sounds like an (yet another) major defect May 06 23:44:07 what's the best way to launch my app (already installed) via a link sent by email, while passing some variables to the app May 06 23:44:11 Ge0rG: //v.setMinimumHeight(displaySize.height() - 100); May 06 23:44:11 //v.setMinimumWidth(displaySize.width() - 100); May 06 23:44:15 Oops, sorry May 06 23:44:18 >.< May 06 23:44:22 Ge0rG: http://stackoverflow.com/a/7223724 May 06 23:45:04 intent filter? May 06 23:45:11 Ge0rG: For an object to be on the stack its size needs to be known at compile-time; subclasses can be arbitrarily larger than a base class, so polymorphism can only be achieved through the heap (pointers are all the same size) May 06 23:45:11 c|oneman: you need to register an url scheme with your app May 06 23:45:58 Ge0rG: That's why Java allocates everything on the heap and only passes pointers around May 06 23:47:19 Twey: except java fails in some ways as well... like, with arrays May 06 23:47:30 well, you aren't supposed to really use arrays anymore May 06 23:47:40 pfn: s/arrays/java/ :D May 06 23:47:45 Hehe May 06 23:47:57 you can't really say the latter, either May 06 23:47:59 Not claiming either language is perfect, just offering insight into design decisions :þ May 06 23:48:26 java was influenced by C either too much or too little... there are some bad trade-offs in it May 06 23:48:44 Too much, always too much. May 06 23:48:57 C++ has the same problem. May 06 23:49:02 not by C that much, C++ more May 06 23:49:07 Ge0rG, what do you propose besides java :p May 06 23:49:08 what problem we talking about May 06 23:49:24 Ge0rG, you're the one that wrote that hamradio positioning app thing, right? May 06 23:49:25 I hate when people say X language is the best May 06 23:49:28 i love learning languages May 06 23:49:31 pfn: dunno... I used to be a scala fanboy May 06 23:49:34 pfn: bingo May 06 23:49:39 and I love using multiple languages and deciding which one fits my needs the best May 06 23:49:41 Ge0rG, "used to be" ? May 06 23:49:44 what's changed? May 06 23:49:54 other than the lack of adoption for android May 06 23:49:55 Brian|CS, it's the inexperienced people who haven't yet realised that all languages suck and you just have to pick the best piece of garbage to do the dirty work :;) May 06 23:49:55 pfn: its so f*cking slow to compile, at least with ant May 06 23:50:02 pfn: aprsdroid is written in scala May 06 23:50:10 Ge0rG, https://github.com/pfn/android-sdk-plugin May 06 23:50:13 pfn: also, you are killing potential OSS contributors by using scala May 06 23:50:20 Zharf: You just summed up my whole existential crisis in a message May 06 23:50:26 Twey, :) May 06 23:50:27 Ge0rG, you're just raising the bar May 06 23:50:32 Ge0rG, yes, I remember aprsdroid May 06 23:50:36 ‘I want to do X, but all the tools to do it suck’ May 06 23:50:48 ‘Guess I'd better write some tools. What do you mean, the tools for that suck too?’ May 06 23:51:00 Twey: Thats what part of the hacker mentality is May 06 23:51:04 Ge0rG, there's at least 2 other sbt plugins for building android apps on scala, as well May 06 23:51:07 pfn: in two years, I had two contributions... and both were java code with minimal scala interfacing May 06 23:51:09 depending on how you want to operate May 06 23:51:22 maybe I should have a look at non-ant builing, then May 06 23:51:34 Ge0rG, I prefer my own plugin for obvious reasons May 06 23:51:41 pfn: also, most of the android APIs make scala solutions inelegant May 06 23:51:59 there is no shortcut for anonymous inner classes :( May 06 23:52:00 Ge0rG, well, it's very side-effecty, sure, but you can still wrap and make stuff much cleaner in general May 06 23:52:06 Ge0rG: I'd suggest that people tend to be more fanatical about less mainstream languages. If you suggested to Scala-lovers that there's a Scala project in need of some TLC, they might start working on it just for the chance to use Scala. May 06 23:52:10 Ge0rG, make your own implicit wrappers May 06 23:52:33 pfn: yeah, except I need an explicit implicit wrapper for every new use case May 06 23:52:40 Ge0rG, there aren't *that* many May 06 23:52:48 Ge0rG, and they aren't difficult to write, either May 06 23:52:50 pfn: in my code, I only was able to reuse one May 06 23:53:25 pfn: also, there was this horrible mess with AsyncTask... May 06 23:53:46 Twey: Why do I have to know the size of the object at compile time to use a stack? I don't think that should be a limitation? May 06 23:53:47 don't use asynctask altogether May 06 23:53:53 Ge0rG, https://gist.github.com/pfn/1763017 May 06 23:53:57 that's what I put together a long time ago May 06 23:54:39 Ge0rG: Fuck asynctasks May 06 23:54:43 except when I need them May 06 23:54:45 then they're great May 06 23:54:48 other times fuck them May 06 23:55:00 Ge0rG, rather than asynctasks, just async { block } May 06 23:55:09 Loaders pls May 06 23:55:48 pfn: how do I get notified of its result? May 06 23:56:01 Ge0rG, post it yourself May 06 23:56:03 kakazza: It's not ‘a stack’, it's ‘the stack’ (or the dynamic store, more accurately). Each stack frame is allocated at compile-time based on the objects in scope in that function. If you put something on the stack and your stack frame is too small to hold it, you overwrite some other function's data. May 06 23:56:04 meh. May 06 23:56:18 (or get a segfault, or have demons fly out of your nose) May 06 23:56:20 Ge0rG, that's trivial May 06 23:56:36 Ge0rG, make your own RichHandler that takes post(=>Unit) May 06 23:57:01 I have some ui-thread posting helpers that I haven't exposed May 06 23:57:06 kakazza: The whole point of using the stack is that it's pre-allocated, so you don't have to perform an allocation. But for that to work, the compiler needs to know how much to allocate. May 06 23:57:42 Ge0rG, I basically rolled my own eventbus May 06 23:58:00 https://gist.github.com/pfn/1838359 May 06 23:58:02 pfn: and then you were rolled over by your event bus? May 06 23:58:10 Heh May 06 23:58:32 pfn: anyway, you see yourself how much you had to invent to make scala work on android May 06 23:58:41 s/work/be pleasant/ May 06 23:58:42 Ge0rG, not that much, realistically May 06 23:58:58 a few hundred lines at worst, when my savings is far more May 06 23:59:08 and the eventbus has nothing to do with making scala pleasant on android May 06 23:59:15 but making arbitrary event handling pleasant May 06 23:59:17 pfn: yeah, but most of your savings are due to java being so fucking bloated :) May 06 23:59:25 (see otto and guava's eventbus) May 07 00:00:15 Ge0rG, also, if you're using sbt plugins, most of them will build a TR.scala for you May 07 00:00:32 so, rather than doing TextView tv = (TextView) findViewById(R.id.some_text_view) May 07 00:00:50 it's automatically type-safe by doing val tv = findView(TR.some_text_view) May 07 00:00:59 where tv is already typed to be a textview May 07 00:01:37 Like Butterknifes "Views" class iirc May 07 00:01:57 pfn: does TR automatically typecast according to the xml definition? May 07 00:02:06 Ge0rG, basically what it does, yes May 07 00:02:26 Ge0rG, it parses the xml to determine the types declared there May 07 00:02:57 kakazza, I don't think that gives you type-safety, though May 07 00:03:10 kakazza, you can easily shoot yourself in the foot by @InjectView to the wrong type May 07 00:07:15 I'm trying to import a library to eclipse, and it's showing it as gray May 07 00:07:21 I can't figure out how to import it May 07 00:07:36 I've tried to update, I've cleaned, I've restarted eclipse May 07 00:07:42 I've redownloaded the package May 07 00:07:51 Is it a .jar? Where did you put it? May 07 00:07:56 not a .jar May 07 00:08:04 Library Project? May 07 00:08:06 yes May 07 00:08:07 https://github.com/chrisbanes/Android-PullToRefresh May 07 00:09:08 so... why does my 2.3.3 x86 emulator bootloop? May 07 00:09:10 oh god damnit. May 07 00:09:21 Korvin to add library proj right click project->properties->android->add library May 07 00:09:22 kakazza, it was named "/library" which conflicted May 07 00:09:32 ah May 07 00:09:58 05-07 00:08:57.000: E/Zygote(875): setreuid() failed. errno: 30 May 07 00:10:03 hmm, I wonder if that's relevant May 07 00:13:36 #define EROFS 30 /* Read-only file system */ May 07 00:13:38 hmm, ok May 07 00:22:54 how does eclipse create the "Genereted Java Files" directory of the project? May 07 00:23:27 particularly how is it generating R.java? May 07 00:23:29 erisco: it runs aapt, which processes the resources and generates the java files May 07 00:23:59 American Association of Physics Teachers? what is aapt? May 07 00:24:04 yes. May 07 00:24:22 or is it Association of Asphalt Paving Technologists? May 07 00:24:37 I have no idea what it stands for :) May 07 00:24:54 it's a tool included in the sdk, that handles all the resource related stuff :) May 07 00:25:13 android asset packaging tool May 07 00:25:20 http://elinux.org/Android_aapt May 07 00:26:41 hm, okay, I was hoping it was using an external code generation tool May 07 00:26:48 looking for a t4 analog May 07 00:26:52 it is - aapt :) May 07 00:26:56 code generation for what? May 07 00:27:03 aapt is the code generation tool May 07 00:28:05 I was hoping it wasn't specific to generating R.java and packaging for android May 07 00:28:06 erisco: are you looking for a general java code generator, or are you wanting to tweak how aapt generates the R.java code? May 07 00:28:14 former May 07 00:28:15 it sounds like the former? May 07 00:28:29 Maybe check out StringTemplate May 07 00:28:56 (http://www.stringtemplate.org/) May 07 00:30:21 why do you want code generation? May 07 00:30:40 pfn: presumably to generate code May 07 00:30:41 * JesusFreke ducks May 07 00:30:57 and why would aapt code generation be generic; code-generation as a rule is quite specific May 07 00:31:39 pfn: it's not unreasonable to think it might be implemented via a generic templating/code generation library May 07 00:31:42 (although it's not) May 07 00:31:57 well, it's so simple that there's no reason for it to be May 07 00:32:16 anyway, flex,antlr, byacc, bison, etc. all do code generation May 07 00:32:25 or use your favorite variant of strstr() May 07 00:32:26 JesusFreke, this seems like a runtime library you might ship off with your executable. are you familiar with the nature of t4? May 07 00:32:31 right. StringTemplate is what ANTLR uses to generate code May 07 00:33:01 erisco: not necessarily, it depends on what you use it for May 07 00:33:19 erisco: you can certainly add it in to your build process and only ship the generated code, without having to ship the StringTemplate library May 07 00:33:28 erisco: (not familiar with t4) May 07 00:34:01 unless you're wanting to generate code on the fly on the device. in which case you have a whole 'nother set of problems :) May 07 00:34:09 no, not runtime code generation May 07 00:34:45 but just like with R.java, the programmer has to be able to link with those symbols before the final compile May 07 00:34:56 right. You would have to integrate it into your build process May 07 00:35:20 right, but that build has to happen separately May 07 00:35:31 why? May 07 00:35:49 so that you have the symbols/definitions to program against? May 07 00:36:06 if R.java is only updated at the same time the entire project is built, the programmer cannot use any of the symbols that were missing May 07 00:36:25 you've have to build to update R.java, then finish programming, then build again May 07 00:36:43 right. that's essentially what eclipse does for you, behind the scenes May 07 00:36:45 in M$ land at least they've dubbed this "design time" compilation May 07 00:37:27 typically, you would define a separate target that lets you build just the generated code May 07 00:37:47 so that you can more quickly update just that part of it when you tweak the data that the generated code is based on May 07 00:38:04 and this is how aapt is being used? May 07 00:38:28 yes - whenever you make+save a change to a resource file, eclipse runs aapt in the background and updates the R.java file May 07 00:39:00 It's probably not practical to try and do that for your own code generation - unless you're already familiar with writing eclipse plugins :) May 07 00:39:28 we're exactly on the same page then, which makes me happy :) so the thing I'm asking for is some utility (builtin to eclipse or a plugin, say) that would ease development of this May 07 00:39:36 (and the example from M$ land is t4) May 07 00:39:58 I don't know of any offhand. But that's not to say they don't exist :) May 07 00:41:28 Grow up and stop using "M$". May 07 00:42:18 aww Adobe, you basturds May 07 00:43:15 anyone use an app called Artboard (for Mac) to do their Android images ? May 07 00:43:19 kakazza, not sure why I did, just how I recall it from memory May 07 00:43:35 kakazza, no idea what it is supposed to mean... money grubbing? May 07 00:43:46 g00s: At work I have a graphic designer to do all my images :P May 07 00:43:57 for personal projects I use publically licensed graphics May 07 00:44:14 g00s: looks ok May 07 00:44:15 Brian|CS: come on, you can draw some flat stuff :P May 07 00:44:16 erisco: Something like that, yes. May 07 00:44:20 does it cost ? May 07 00:44:24 No offense, though. May 07 00:44:25 $29 May 07 00:44:47 StingRay_: i'm sure you heard about the Adobe fiasco today May 07 00:44:53 no May 07 00:45:07 they are going subscription only for CS May 07 00:45:18 oh thats old old news May 07 00:45:26 i guess at workplace thats fine May 07 00:45:41 if you meant old, like rumors, maybe May 07 00:45:55 well old as in obvious and expected May 07 00:46:03 g00s: I'm a terrible artist lol May 07 00:46:39 StingRay_: yeah, just like we know Oracle's vision is to fuck over their customers - i suppose we expect adobe to be similar May 07 00:46:47 well no May 07 00:47:00 is Mr Burns on the Adobe board of directors? May 07 00:47:06 cause if you look at it for design, it is not more expensive May 07 00:47:57 yeah, but there are putzes like me who would get CS5 and dick around with it until upgrading CS7, just so we could share assets with designers May 07 00:48:21 i might use it 10 minutes per month maybe May 07 00:48:39 well to be fair, I have had every single adobe CS master upgrade there is since …well…. long time May 07 00:48:45 the UG have never been worth it May 07 00:48:57 specially the last 5 years May 07 00:50:13 there are a few things in illustrator that have changed day to day stuff May 07 00:50:18 but PS is the same May 07 00:50:27 AE is still primative and horrid May 07 00:50:34 and not changed in 8 years May 07 00:50:50 suppose PR is ok'ish May 07 00:51:22 so, i was using Inkscape for my android app icons - but as we mentioned inkscape support on mac blows May 07 00:51:32 i'm wondering about this Artboard app May 07 00:51:43 looks primative May 07 00:51:46 but ok May 07 00:51:52 depends what you want to do I guess May 07 00:52:05 He wants you to do it May 07 00:52:08 i do simple flat icons May 07 00:52:09 ;p May 07 00:52:17 nah, i can do basic stuff myself May 07 00:52:43 the only thing you want from PS for nice icons, is the layer and mask effects May 07 00:52:48 and basic shapes May 07 00:52:53 end of story really May 07 00:53:08 the illustrator route is overkill May 07 00:53:16 as is my opinion May 07 00:53:17 :) May 07 00:53:21 i do all my stuff vector right now, in inkscape May 07 00:53:31 show me some :) May 07 00:53:33 when it works :( May 07 00:53:37 dropbox it May 07 00:53:41 lemme seeee May 07 00:53:42 :) May 07 00:53:53 StingRay_: you saw my app :) May 07 00:53:59 ssshhh May 07 00:54:00 Hello, small question. I have an ImageView in which I want to draw another drawable over a certain portion of my canvas May 07 00:54:12 g00s: I mean your new icons from inkscape May 07 00:54:13 How can I pass the right canvas to my childDrawable.draw() method? May 07 00:54:46 StingRay_: oh, nothing new at the moment May 07 00:54:51 ack! nevermind. Just saw drawable.setBounds! May 07 00:56:18 What's the difference between a Scroll and a Fling in the context of GestureDetector? May 07 00:57:47 Is it okay/normal to have a tabbed interface at the top with the underlined look if the views don't slide? May 07 00:58:28 StingRay_: somebody also mentioned http://www.bohemiancoding.com/sketch/ May 07 00:59:00 JesusFreke, this might be perfect: http://www.sahits.ch/project/javacodegen/ May 07 00:59:39 g00s: getting trial now May 07 00:59:41 erisco: yep, sounds promising :) May 07 01:01:33 g00s: very nice for android ui stuff May 07 01:01:39 simple and nice/quick May 07 01:01:43 how much is this ? May 07 01:02:34 I just hope my boss doesn't want to kill me for using code generation... such a stigma about it May 07 01:02:56 codegen sucks May 07 01:03:01 see? May 07 01:03:16 unless you absolutely have no other solution, codegen absolutely sucks May 07 01:03:28 pfn: I disagree May 07 01:03:36 do you really want to write java bytecode by hand? :) May 07 01:03:47 see previous clause May 07 01:04:21 and codegen is distinctly different from compilation May 07 01:04:22 I have a Runnable code in my class but within run() method i want to access a final version of outer object. So I had like final View that = this; before runnable code and I use "that" within run(). I want to improve this any tips? May 07 01:04:36 pfn, oh? what distinction do you make? May 07 01:04:40 Manavan, View.this May 07 01:04:42 codegen allows you to define your code in a domain specific language that is most likely better suited to represent whatever you're trying to od May 07 01:04:53 erisco, are you actually compiling something? if not, it's not compilation May 07 01:05:16 pfn: what do you think compilation is, other than taking data in one representation and converting it to another representation? May 07 01:05:27 I'm not going to argue this May 07 01:05:43 pfn >>Awesome thanks! I am such a java newbie. May 07 01:05:48 codegen sucks, period, unless you have an extremely good reason May 07 01:05:51 I'm totally serious here. not trying to be facetious :) May 07 01:05:59 I'm not interested in arguing it either way May 07 01:06:25 friggin' stupid hls video player, android hls support is so shitty May 07 01:07:18 pfn: if your goal is to promote the idea that code generation sucks, that's a pretty poor way of doing it May 07 01:07:25 * JesusFreke shrugs May 07 01:07:29 I want to thank the folks here. I have been to many irc dev channels but this is one of the most helpful channels. May 07 01:07:49 "it is because I say so" is a pretty flimsy argument May 07 01:07:57 Manavan, don't get too relaxed :) May 07 01:08:35 JesusFreke, what's your day job? May 07 01:08:44 JesusFreke, codegeneration sucks because unless it's integrated into every build process, it's worthless May 07 01:08:47 anyway May 07 01:08:48 like I said May 07 01:08:54 it's flimy May 07 01:08:57 flimsy May 07 01:09:05 every build process? what does that mean? May 07 01:09:20 IDE, commandline, your standard CI setup, whatever May 07 01:09:31 pfn, I agree that the tools aren't there and neither are the methodologies, but one day I hope to see that turned around May 07 01:09:34 erisco: well, my non-day job is probably more relevant here May 07 01:09:44 I write/maintain smali/baksmali May 07 01:09:46 my IDE calls maven to build and generate my IPC classes and methods! May 07 01:10:15 Zharf, mine doesn't May 07 01:10:19 I mean I do that as my hobby, not as my day job :) May 07 01:11:12 JesusFreke, coolio. I just don't hear optimism about custom languages and code generation often May 07 01:11:30 erisco: I've always loved that sort of thing :) May 07 01:11:46 JesusFreke, I didn't know it until a few months ago but I think I do too... have lots to learn though May 07 01:12:07 anyway, I generate 11 classes and ~1kloc worth of IPC code in my build process based on an XML from another project May 07 01:12:45 well granted there's javadoc generated in there too May 07 01:12:57 so not quite that much actual code :) May 07 01:12:59 erisco: for example, I wrote this awesome (imo :p) perl-based pseudo-macro language on top of the assembly language for the arduino chips, which is basically just a big assembly code generator May 07 01:13:40 (https://github.com/JesusFreke/teensyhand) May 07 01:13:40 JesusFreke, that's awesome :D May 07 01:13:58 everything JesusFreke mentions is effectively a compiler/decompiler May 07 01:14:27 pfn: hmm. I don't think my Penroser app has any of that. May 07 01:14:38 maybe I should figure out how to add some. May 07 01:14:57 JesusFreke, you finally mentioned something non-compiler :p May 07 01:16:17 hey guys May 07 01:16:36 pfn, whats wrong with compilers? :) May 07 01:16:51 Zharf, using it as a justification that codegen is ok, when it is a distinctly different problem May 07 01:17:12 I think my emulator is tanked. Do you guys ever have that problem with android sdk in eclipse on windows? May 07 01:18:42 pfn, I'd prefer to just make an entirely new language or augment an existing one rather than patch over top of it, believe me May 07 01:19:16 * pfn ponders using the permanent stickers to slap his mouserest onto his mousepad May 07 01:19:18 I like to generate bits and pieces of code, I love to meddle with preprocessors in c and c++ May 07 01:19:22 :p May 07 01:34:32 I can't wait to start working on my next android project May 07 01:34:32 :D May 07 01:35:02 why wait? :) May 07 01:35:10 i can't wait wait to finish a android project May 07 01:35:19 o wait…they never finish :| May 07 01:36:27 Yeah, I can't wait to finish this update so I can work on a new one May 07 01:36:34 lol May 07 01:36:38 burritoHeaven story of my life May 07 01:38:03 I've been porting/developing/extending a game to android for the last 2 months :| May 07 01:38:34 JesusFreke, I just need a bit of a break :P May 07 01:39:50 breaks, like waiting, are for the weak May 07 01:44:24 jug6ernaut I've had to develop 2 apps while I learned how to do it. I've never touched a single line of java code or eclipse in my life until I started working on these apps. I'm a php guy who tinkered with vb and c# only when I had to. But, I do have to say that I really dig developing Android stuff. It's a pretty fun break from staring at gedit all day while I wrote thousands of lines of php for web apps May 07 01:44:24 that weren't going to be any fun for people to use. That's the kind of break I like, play with a new platform for a while. lol, I'm hopeless. May 07 01:46:11 know what makes developing android awesome? May 07 01:46:16 documentations May 07 01:46:23 organization May 07 01:47:07 This is starting to sound like a motivational poster May 07 01:48:30 JesusFreke just reminiscing, at work i got dropped into working on a program with couple million lines of code, practically zero documentation, and developed with what seems like zero consideration for the future May 07 01:48:46 heh May 07 01:49:07 sounds like... fun May 07 01:49:10 been working 3 weeks on a code change that should seriously take maybe MAYBE 2 days being fully tested.... May 07 01:49:14 for sufficiently small values of fun May 07 01:49:38 if u consider torture fun, i personally don't swing that way May 07 01:49:55 being forced to use eclipse doesn't help much ether lol May 07 01:50:03 heh May 07 01:50:18 lol, yeah, I'd hate to be the person who ends up picking up my android stuff. May 07 01:50:31 lol May 07 01:50:38 At a previous job, I got to rewrite a couple of those (but not nearly as big) May 07 01:50:43 which actually was fun May 07 01:52:12 well the really bad part is its separated into 30 or so separate applications. but are all linked to gather with with a stupid level of coupling. its a nightmare May 07 01:55:11 I'm sorry May 07 01:55:43 But, I'm glad that it's you and not me. May 07 01:55:48 I'm sure your boss is too May 07 01:55:49 lol May 07 01:56:07 haha May 07 01:56:12 o well May 07 01:56:14 pays the bills May 07 01:57:39 Why is there a LayoutInflator.Factory2? May 07 01:59:34 first there was just a LayoutInflater.Factory, this is an interface not an abstract class so new methods cannot be added without breaking existing code. then basically they needed to add a new method so they made Factory2 which extends Factory May 07 02:00:16 Twey, to change the interface without breaking backward compatibility May 07 02:01:12 Chet Haase (Android developer at Google) has some Java Talk webcaste thing and one episode they talk about the tradeoffs of abstract class versus interfaces for public APIs May 07 02:01:40 you would have this same issue if it were an abstract class May 07 02:01:48 abstract class could have a default implementation May 07 02:02:19 it doesn't help if it doesn't have a default implementation May 07 02:02:35 putting in a stub implementation just to maintain backward compatibility is a pretty poor design tradeoff May 07 02:03:01 Factory2 is a poor design tradeoff as well May 07 02:03:18 not really May 07 02:03:26 it is clearly delineated and type-safe May 07 02:03:38 additionally, it's easy to guarantee that only new features are being used if explicitly available May 07 02:04:11 whereas, with an abstract implementation, especially if the stubs lead to failure, you don't know at runtime whether or not it's safe to call the new api May 07 02:05:31 Is it possible to catch the onTouch event at the top most parent and then let it propagate to its children? rather then its children -> parent ? May 07 02:08:23 someone help me with an app problem? May 07 02:09:47 rlivin don't ask to ask, just ask May 07 02:10:20 pfn: Aha May 07 02:10:36 lol May 07 02:11:04 i got an app that will work on 2.3.5 but will not on 4.2 May 07 02:11:16 so fix it May 07 02:11:27 i can get it to run about 1 every 20 tries it will fc May 07 02:11:37 then read the error and fix it May 07 02:12:19 i have ran logs but just says error closes May 07 02:12:44 what will give me exact problem? May 07 02:13:09 rlivin: ‘adb logcat’ will show you the stack trace from the exception May 07 02:13:30 are you the developer of this app? if no, email the developer for help May 07 02:13:57 rlivin May 07 02:13:59 wat does the app do May 07 02:14:25 i am not but the company will not respond to me and only is devolping ios now May 07 02:14:31 your bits are out of place, of course. Have someone competent move them to the right place May 07 02:14:41 it is vibespectra May 07 02:15:04 its only an imformation app for vibration analysis May 07 02:15:08 it has really bad ratings May 07 02:15:11 https://play.google.com/store/apps/details?id=com.motionics.VibeSpectra&hl=en May 07 02:15:12 rlivin, then keep asking the company for help May 07 02:15:17 rlivin, this channel is not app support May 07 02:15:17 yea May 07 02:15:23 i bought it May 07 02:15:24 and its ~$10 May 07 02:15:44 quite frankly every app by this developer has horrible ratings May 07 02:16:05 this would be good for me to learn tho May 07 02:16:09 suckered... May 07 02:16:14 learn what? May 07 02:16:29 works good on my wifes stratosphere May 07 02:16:38 you paid $10 before reading the reviews? May 07 02:16:40 reverse engeneering? May 07 02:16:51 yh ik May 07 02:16:54 generally if the reviews are bad May 07 02:16:58 you may assume that it is a bad app May 07 02:17:25 it works good on my pc but want to use it on my nexus7 May 07 02:17:29 their website looks pretty legit though May 07 02:17:50 yea looks like there concentrating on ios now May 07 02:18:17 i just assunmed it was made for gingerbread May 07 02:18:21 if you have 4.2 May 07 02:18:24 y didnt you read this comment before May 07 02:18:25 Does not work on vzw nexus with 4.2.2. Force Closes. Please fix! May 07 02:18:51 i left that probably May 07 02:18:53 lol May 07 02:18:59 oh LOL May 07 02:19:02 seems like something a non-comp engineer created May 07 02:19:08 dw i flashed the 4.2.2 pacman rom May 07 02:19:10 a couple of days ago May 07 02:19:14 and my gallery force closes very often May 07 02:19:33 it is kind of annoying considering i essentially have no gallery but May 07 02:19:36 the cool thing is is that May 07 02:19:38 if im in the camera May 07 02:19:45 so too much trouble to try to fix it for 4.2? May 07 02:19:45 if i swipe to the left May 07 02:19:51 the gallery is accessible from there May 07 02:19:53 and its so sic May 07 02:19:55 sick May 07 02:20:37 well rlivin May 07 02:20:39 consider this May 07 02:20:48 btw idk if im right on this or not so someone correct me if im not May 07 02:20:52 rlivin, my brother develops IOS stuff, I would never want to put an app on my android that he developed if he tried android, lol. May 07 02:20:59 you use a diff api depending on which version of android May 07 02:21:01 you want to develop for May 07 02:21:17 if the api used for 4.2 deviates greatly from the api used for 2.2 May 07 02:21:24 there are going to be some conflicts May 07 02:21:51 yea May 07 02:21:58 so May 07 02:22:09 that might be the reason y it is not compatible with 4.2 May 07 02:22:13 but works on earlier versions May 07 02:22:28 bbl May 07 02:22:43 is the a way to rebuild it with uptodate api May 07 02:25:24 how could we possibly know? May 07 02:25:36 idk May 07 02:26:04 Hey, can anyone point me toward info about an error "Error inflating class May 07 02:27:32 Or, releasing resources as I go along in the app May 07 02:28:25 rlivin if people are willing to pay $10 for this app and you have enough interest in it, why not just learn to code in java and work with eclipse w/ android sdk and build it yourself? There's tons of great youtube tutorials and cheap books on amazon. May 07 02:29:17 plus, $10 an app is a pretty decent little revenue for a single app developer doing it on the side May 07 02:30:08 thats what i am trying to do May 07 02:30:45 whats the best tutorials or book to get started May 07 02:30:52 "Dropbox announces developer conference" … is this for real? Its not April 1. May 07 02:31:18 the api is pretty small. what could they need to convene about May 07 02:31:56 g00s: did you get my msgs ? May 07 02:32:06 StingRay_: no :( May 07 02:32:07 oh and the can introduce direct file sharing !!! May 07 02:32:29 torrent sync :) May 07 02:32:39 i said that sketch May 07 02:32:44 was like beyond good May 07 02:32:46 rlivin, my general rule of thumb when learning any new language or platform for this matter, is to read through at least three different docs and find at least two different lengthy video tutorial sources. May 07 02:32:47 this is a good article about the Dropbox guys: http://www.forbes.com/sites/victoriabarret/2011/10/18/dropbox-the-inside-story-of-techs-hottest-startup/ May 07 02:32:58 well perfect tool for mobile design items May 07 02:33:03 they want to compete with the big boys so i guess they figured they needed a dev conference to do it May 07 02:33:36 easy/fast/pretty bug free/nice to use/dows about 95% of the things I want May 07 02:33:43 so ya, thumbs up for that!! May 07 02:34:10 StingRay_: cool! fuck, i wish inkscape would just get their shit together May 07 02:34:19 Hello, I have 2,655 images in my drawable folder worth 200 mb... my eclipse emulator is loading very slowly May 07 02:34:34 omg May 07 02:34:36 in fact that seems to be all its doing May 07 02:34:38 loading May 07 02:34:39 i thought i had problems May 07 02:34:48 that's a lot of bitmaps May 07 02:34:49 should i not be doing this? May 07 02:34:57 their pngs May 07 02:35:08 mantas322: maybe look at the multi apk thing if you can break it apart somehow May 07 02:35:48 what do you need 2655 images for May 07 02:35:55 none of your business May 07 02:36:04 thats a lot of porn ... May 07 02:36:12 well what are my alternatives? May 07 02:36:22 OMG emulator just popped up! May 07 02:36:33 after a good 6 minutes May 07 02:36:55 well maybe we know of ways to reduce the number, if you dare say what you're doing with them May 07 02:37:32 AnimationDrawables May 07 02:41:02 i was just kidding xorgate May 07 02:51:20 why is it that when I have a LinearLayout vertical with and I do topView.setY(-100) the bottom doesn't also move in the Y direction -100 pixels May 07 02:51:42 better yet, why doesn't it recaculate its height as well May 07 02:51:55 because you didn't request it to re-layout May 07 02:55:42 eh was trying to avoid doing that May 07 02:56:39 View.setTranslationY to reposition it. if you want to change the height you need a relayout (or you could do scaleY but that's not going to look good) May 07 02:57:27 wonder how the scroll would work if I just set it to its max height May 07 02:58:02 since I'm moving the Y it should fix it self eventually May 07 02:59:04 so any contrains on RelativeLayout have to be re-evaluated via requestLayout right ? **** ENDING LOGGING AT Tue May 07 02:59:59 2013