**** BEGIN LOGGING AT Mon Apr 30 02:59:58 2012 Apr 30 02:59:59 the other ones were nice Apr 30 03:00:11 More specificaly I'm looking for the fastest way to turn a byt array to a bitmap Apr 30 03:00:26 is there channel of xda-developers ? Apr 30 03:01:13 selaliadobor a bitmap is just a byte array... Apr 30 03:01:19 JakeWharton the others were like 800px wide Apr 30 03:03:14 But can i change a byte array to a bitmap without a behind the scene conversion. I need to do this for each frame at 30fps. Each time the app tries to convert fro a byte array to a Bitmap it takes longer than I would expect Apr 30 03:03:47 Let me give some background Apr 30 03:03:53 i dont even understand what it would have to do Apr 30 03:04:02 im about 99% sure a bitmap is represented as a byte array Apr 30 03:04:10 at MOST, it would just have to copy the array Apr 30 03:05:32 My flow of information is Direct X Screenshot in c#--> AR8G8B8 array ->TCP Socket in C# -> TCP Socket in Java -> String ->Byte array -> Bitmap -> e3roid -> Screen on phone Apr 30 03:06:20 I found Bitmap factory, but Im not sure how fast it will be since it tries to figure out the format by itself Apr 30 03:06:31 BitmapFactory.decodeByteArray() Apr 30 03:06:57 Can i specify a format or does it assume ar8g8b8 Apr 30 03:07:21 pass in BitmapFactory.Options Apr 30 03:08:05 Thank You! I should have noticed that argument! i'll see how I can use it Apr 30 03:09:27 * pragma- moons canadiancow Apr 30 03:09:38 hey Apr 30 03:09:43 wat Apr 30 03:09:45 while i may no loonger be +o Apr 30 03:09:51 i can still wreak some havoc Apr 30 03:09:55 right evancharlton? Apr 30 03:10:39 your ops were an illusion Apr 30 03:10:53 T_T Apr 30 03:11:09 you're like that annoying sidekick in that movie that always calls for the real hero when he gets in the slightest imagination of danger Apr 30 03:24:25 Is there a "Preview" class in Android that subclasses View? Apr 30 03:24:53 holy fuck stupid people Apr 30 03:25:04 i just saw a video on the news...two guys were biking. the guy behind had a camera mounted. Apr 30 03:25:11 some car sideswiped them, knocking them both down Apr 30 03:25:14 then sped off Apr 30 03:25:19 stupid bikers Apr 30 03:26:47 if i saw pragma- riding a bike, i'd probably run him over too Apr 30 03:27:05 if I was riding a bike, it'd be in the mountains away from any cars Apr 30 03:28:03 also, i always ride my bike against traffic, not with traffic because damn if i'm letting a car come up behind me Apr 30 03:29:57 * pragma- nods with infinite wisdom. Apr 30 03:30:56 JakeWharton, can you see http://android.skennedy.ca/?p=8 Apr 30 03:31:07 no Apr 30 03:31:55 but perhaps it's just my eyes bleeding from the ugliness of that 404 page Apr 30 03:32:53 refresh Apr 30 03:33:12 password protected Apr 30 03:33:20 so many colors Apr 30 03:33:57 "scott" Apr 30 03:34:40 FUCK ALL THE THEMES ARE 800 PIXELS WIDE Apr 30 03:34:44 LEARN HOW TO DESIGN A FLOWING LAYOUT Apr 30 03:34:45 FUCK Apr 30 03:35:33 i changed the theme Apr 30 03:35:35 BUT ITS SO NARROW Apr 30 03:35:54 * jimmy_lo_chien_f hi Apr 30 03:36:13 hi Apr 30 03:36:17 make your own Apr 30 03:36:39 is there something like wordpress that doesn't use php :D Apr 30 03:37:13 there are tons of CMSs Apr 30 03:37:20 By definition, a BroadcastReceiver hasn't finished executing within 10 seconds Apr 30 03:37:48 then ANR Apr 30 03:38:20 10 seconds? i thought it was like 4 Apr 30 03:38:20 or 2 Apr 30 03:38:38 I read this from android doc Apr 30 03:39:58 system broadcasts messages to receivers Apr 30 03:40:23 Does every receiver share 10 seconds Apr 30 03:40:24 ? Apr 30 03:40:56 Or each receiver has 10 seconds to use in onReceive Apr 30 03:42:31 canadiancow: you should probably use onFinishInflate() for the findViewById calls Apr 30 03:43:00 oh nvm Apr 30 03:43:02 you're not doing XML infaltion Apr 30 03:43:26 wut Apr 30 03:46:33 i'm starting a new thread in onCreate of the Activity. but i'm getting this error : No enclosing instance of type HelloOpenGLES20SurfaceView is accessible. ... Apr 30 03:46:40 any help? Apr 30 03:51:18 not sure you followed the tutorial properly Apr 30 03:55:15 what woud the equivlant be of match_parent older androids doing like that Apr 30 03:59:07 Hello, folks! I'm developing an Android application with a WebView. Everything works fine in Android 4.0.3, but whenever I try to emulate 2.2, I've noticed that my login cookie doesn't get set on my AJAX request. Any tips/tricks? Apr 30 04:09:47 kindle fire a good choice for my main development device for android? Anything else I should consider around that price? (phone or tablet) Apr 30 04:10:49 newegg has some nice cheap chinese tablets Apr 30 04:10:54 auctus Apr 30 04:11:01 I got one. it's great. Apr 30 04:11:47 one of the major factors of the kindle's appeal for me is that I think it will probably be higher quality, and if it screws up, dealing with amazon won't be a big deal Apr 30 04:12:08 low-ish battery life and no GPS kinda suck but i can deal Apr 30 04:12:48 I got a Iview 760TPC Apr 30 04:13:08 * Auctus looks that up Apr 30 04:13:18 $130 Apr 30 04:13:25 how do you like it? Apr 30 04:14:16 how's the battery life Apr 30 04:15:39 not too great Apr 30 04:15:47 but I leave it plugged in mostly. Apr 30 04:15:49 anyone know of an ftp or sftp client app for android that is open source so that I could look at the source code? (or if anyone has a resource towards performing sftp) Apr 30 04:17:12 auctus o, I like it fine. Great dev machine Apr 30 04:17:25 auctus cheap and reliable Apr 30 04:17:30 kindle fire also has no camera apparently. Apr 30 04:18:52 Smaug, you can run python on android, and there's lots of info on python FTP out there Apr 30 04:19:01 * Auctus does not know java Apr 30 04:19:06 do I need a rut, to debug your application in eclipse via usb? an error Unable to get view server version from device Apr 30 04:19:33 a rut? Apr 30 04:19:41 Auctus: you don't know java? hmm. but the basic android app must be in java right? Will I be running a python program from java or something? Apr 30 04:19:49 *root Apr 30 04:20:38 Smaug, you can run native python on android now, it used to be jython but they fixed it. Yeah the canonical way to do android development is java, but I don't like java so I use python. Apr 30 04:21:12 cvstsk: no, you do not need root to debug over USB - at least, you don't need root on your phone, you might need it on your PC to configure USB access Apr 30 04:21:31 Auctus: you can't write first-class apps with Python, can you? Apr 30 04:22:04 Leeds, eclipse reports an error Unable to get view server version from device Apr 30 04:22:15 Leeds, what do you mean first-class? Apr 30 04:22:25 cvstsk: that's a strange error... what is unusual about your setup? Apr 30 04:22:31 Auctus: full API access, for a start? Apr 30 04:22:50 * Drakonite devs in c++ Apr 30 04:22:54 Leeds, probably not. Apr 30 04:23:24 i'm happy to code in Java, and I don't want to restrict myself later Apr 30 04:23:32 I appreciate the suggestion Auctus! Apr 30 04:23:36 perhaps I will look into it Apr 30 04:23:46 anybody have a java way to do sftp though? Apr 30 04:37:20 swiftp says it is open source, but I can only see how to download the apk and not the code itself https://code.google.com/p/swiftp/ Apr 30 04:39:44 Smaug: svn checkout http://swiftp.googlecode.com/svn/trunk/ swiftp-read-only Apr 30 04:39:55 evancharlton: ty Apr 30 04:39:57 https://code.google.com/p/swiftp/source/checkout Apr 30 05:02:37 is there a way to give several buttons the same properties? such as layout_weight, height, width, background, etc.? Apr 30 05:02:58 without a bunch of duplicate code? Apr 30 05:08:24 is anyone here ? Apr 30 05:09:47 i see a few in the nick list Apr 30 05:09:55 RustyShackleford: styles Apr 30 05:10:19 hey JakeWharton Apr 30 05:10:29 where does eclipse store its settings ? Apr 30 05:10:38 ~/.eclipse probably Apr 30 05:10:47 I'm not an Eclipse user Apr 30 05:12:06 there's also the workspace directory Apr 30 05:12:09 wherever you put that Apr 30 05:22:21 settings are often in WORKSPACE/.metadata Apr 30 05:51:05 the new prometheus trailer is fucking awesome Apr 30 05:51:24 * g00s can't wait - loves alien franchise Apr 30 05:55:46 I've got a problem with eclipse. I can't see any Log output messages in any of my apps whether I use the emulator or device. I see all other debug/error messages Apr 30 05:56:29 How can I stop Eclipse from handling the rebuilding of the R file while ant is remaking it? Apr 30 05:56:31 hi Apr 30 05:56:47 i really need help with my log cat problem Apr 30 05:56:53 can anyone help me out Apr 30 06:00:22 devslash_: your problem being? Apr 30 06:01:19 My Log. e doesn't display any output Apr 30 06:02:21 I restarted adb, restarted emulator with no luck, tried physical device with no luck Apr 30 06:02:50 I tried creating a new project Apr 30 06:03:29 er... is it specifically .e that doesn't work? Apr 30 06:04:42 No I tried others too like v w and i Apr 30 06:05:35 hi i was just wondering if someone could help me on why i can create an intent within one class but can in the others Apr 30 06:05:38 I added a toast right after the Log and it does pop up Apr 30 06:06:12 What type of adapter do I need to map object properties to specific items in the view? Is it a SimpleAdapter (or is there no other way)? This will be the adapter for a listview Apr 30 06:06:32 write your own, extend BaseAdapter Apr 30 06:07:26 devslash: are you filtering your adb output? Apr 30 06:08:20 Bor Apr 30 06:08:21 No Apr 30 06:08:30 http://pastebin.com/c90qRE6f trying to do it with nLives <0 Apr 30 06:08:39 JakeWharton, sure let me google for some guides, not sure what id need to override in the class Apr 30 06:10:40 LEEDS I'm rebooting my Mac to see if it helps Apr 30 06:11:20 <.< Apr 30 06:11:22 >.> Apr 30 06:11:28 I dunno what else to do except redownload eclipse Apr 30 06:11:39 you will need to reinstall your OS Apr 30 06:11:57 Who me? Apr 30 06:13:16 looks JakeWharton so you set everything in the getView? Apr 30 06:13:18 first thing I'd do is try adb instead of eclipse Apr 30 06:13:21 startActivity (new Intent(Arena.this, BreakOutScore.class)); trying using that but all eclipse tells me to do is delete the intent Apr 30 06:13:26 Bear10: basically Apr 30 06:15:08 If I do Log.v which window does the message get sent to? Apr 30 06:16:21 How does the persistence of a CheckBoxPreference work? I made it be persisent, but it's not in the preferences object for some reason (checked using contains) Apr 30 06:17:13 was the ViewRoot class renamed in ICS? Apr 30 06:17:28 devslash: forget eclipse for now, test adb Apr 30 06:17:30 why…? Apr 30 06:17:35 t0mless: Apr 30 06:17:41 just curious Apr 30 06:17:49 a game I tried to play earlier crashed with a class not found error Apr 30 06:17:55 what's the fastest/best way to develop GUI for android app? Apr 30 06:18:04 for android.view.ViewRoot Apr 30 06:18:05 by reading d.android.com Apr 30 06:18:08 ( which IDE ) Apr 30 06:18:12 eclipse Apr 30 06:18:17 Disagree. Apr 30 06:18:53 t0mless? Apr 30 06:19:14 I dislike the GUI editor in eclipse Apr 30 06:19:27 which one you like? Apr 30 06:19:36 the few times I've used it, I ended up redoing the entire layout anyway Apr 30 06:19:42 just make your layouts in XML Apr 30 06:19:43 i've never used the graphical editor Apr 30 06:19:45 yeah Apr 30 06:19:47 XML for the win Apr 30 06:20:05 any IDE will work Apr 30 06:20:39 bleh I'm spoiled by visual studio lol Apr 30 06:21:41 You... can use visual studio if you wan Apr 30 06:21:43 t Apr 30 06:22:21 for android dev? Apr 30 06:22:30 I thought it was only for windows mobile dev Apr 30 06:22:31 ? Apr 30 06:22:37 How is http://developer.android.com/reference/android/preference/Preference.html#attr_android:persistent relevant to http://developer.android.com/reference/android/R.attr.html#persistent at all? Apr 30 06:23:51 http://developer.android.com/reference/android/R.attr.html#persistent defines the attribute to be used by http://developer.android.com/reference/android/preference/Preference.html#attr_android:persistent Apr 30 06:24:13 How is application persistency relevant to a settings persistency? Apr 30 06:24:28 I don't want my app to always be there... but I do want the settings to stay (obviously enough) Apr 30 06:26:15 attributes can be multi-faceted :) Apr 30 06:32:08 hi Apr 30 06:34:03 IDEA users: is there a way to automatically display Android tool window when running an Android module? I'm getting the Run/Debug tool window and have to manually select Android tool window in order to display logcat Apr 30 06:38:37 logcat automatically shows when I run an app in intellij Apr 30 06:38:55 though I tend to just have a console open with logcat Apr 30 06:48:11 String strFile = inputStreamToString(iFile); inputStreamToString(InputStream) is undefined any ideas? Apr 30 06:51:06 t0mless: in the Android tool window, right? Apr 30 06:52:23 t0mless: when I hit Run or Debug button/menu item, its relative tool window is shown and cover the previously open Android one Apr 30 06:53:04 t0mless: can you paste a screenshot of the tool window? Apr 30 06:53:07 Leeds still here? Apr 30 06:54:34 who here is developing on a mac ? Apr 30 06:56:46 is anyone here ? Apr 30 06:58:19 dont think so Apr 30 06:58:20 devslash: yup? Apr 30 06:58:27 no mac, yes here :) Apr 30 06:58:44 well leeds maybe you can help me anyways Apr 30 06:58:50 i have a mac but developing on my pc at the moment Apr 30 06:59:16 i need dab for mac for the latest sdk api 15 Apr 30 06:59:23 dammit autocorrect Apr 30 06:59:30 i need the latest adb Apr 30 06:59:55 but i can't possibly download the entire sdk. I'm currently on an edge connection Apr 30 07:00:09 if someone could send me dab id appreciate it Apr 30 07:00:15 adb Apr 30 07:01:03 can u update it using the android sdk manager? Apr 30 07:01:06 no Apr 30 07:01:28 i have a very very weak connection thats constantly dropping Apr 30 07:02:32 WeakReference w = … Apr 30 07:02:38 ? Apr 30 07:07:54 ? Apr 30 07:08:21 Hi all Apr 30 07:10:36 how do u find out what acitivity is currently running? Apr 30 07:10:46 *activity Apr 30 07:12:00 why do you need such information? Apr 30 07:12:47 cause i have a class called arena but i but i want to use intent with it but cant cause i dont know the activity. as it is created from breakOutActivity Apr 30 07:14:15 http://pastebin.com/Ai1hEEqQ breakout acitivty Apr 30 07:14:24 *activity Apr 30 07:14:55 http://pastebin.com/mzGwJC4j arena Apr 30 07:16:28 startActivity (new Intent(Arena.this, BreakOutScore.class)); cause ive tried that but it doesnt work Apr 30 07:17:38 well, the first parameter should be a context Apr 30 07:18:08 as Arena is a View that won't work Apr 30 07:18:16 ok Apr 30 07:18:20 so what would? Apr 30 07:18:33 is it possible to specify layouts for screens that aresmaller than 'small'? i.e. smaller than 426dp x 320dp Apr 30 07:19:07 cause ive also triued breakoutactivity.this Apr 30 07:19:49 *tried Apr 30 07:22:21 The debugger is not working anymore (Eclipse). Not with an hardware device and not with the emulator. Do someone have an idea what could be wrong? Apr 30 07:41:58 smallfry1989: startActivity from onDraw seems like a really bad idea Apr 30 07:42:28 Thread.sleep() from onDraw is also bad Apr 30 07:42:39 invalidate from onDraw is also bad Apr 30 07:43:06 nothing is better than putting application logic into the UI drawing code! Apr 30 07:43:30 I'm so glad I didn't click on that paste Apr 30 07:43:40 heh. Apr 30 07:43:58 can you access views from activities they don't belong to? Apr 30 07:44:47 No Apr 30 07:44:53 Cus the views might not even exist Apr 30 07:45:03 hmmm Apr 30 07:45:21 And you shouldn't reference an activity from an activity Apr 30 07:46:02 if I wanted to consolidate a bunch of information about views from multiple activities should I use a singleton class or pass the information from view to view? Apr 30 07:46:13 or something else? Apr 30 07:46:49 The activity/fragment should mostly just have whatever information it needs to create its view Apr 30 07:47:12 Only use singletons when it really makes sense Apr 30 07:47:24 well I'm not really referring to attributes of the view Apr 30 07:47:38 If you could simply just pass the data to the activity in the intent, that's most likely a better way Apr 30 07:47:38 more like the information that the users enters into them Apr 30 07:48:11 so I should keep passing the information in editTexts through the intent? Apr 30 07:48:23 Yeah Apr 30 07:48:30 alright Apr 30 07:49:11 eventually this is all going to have to go to my class containing the web service client though Apr 30 07:49:52 so I was kind of thinking I could just use a class to store the information and add to that as the user enters information Apr 30 07:50:18 What if the user leaves the activity, does something else, your process is reclaimed, and the user returns to your activity Apr 30 07:50:30 All information is lost, and he might be half way through the process Apr 30 07:50:36 oh Apr 30 07:50:50 (all information, except what's saved in onSaveInstanceState/the intent) Apr 30 07:51:33 does the intent save automatically with the state or do I have to explicitly save it? Apr 30 07:51:58 Pretty sure the intent used to start an activity is retained Apr 30 07:52:19 hmm Apr 30 07:52:22 I usually just pull the data from the intent on first launch, then use onSaveInstanceState from there Apr 30 07:52:22 alright thanks Apr 30 07:56:44 so I would want to pass it to the other activities through the Intent, but when the activity is killed I want to add it to the bundle using onSaveInstanceState? Apr 30 07:59:55 Yep Apr 30 08:10:41 is it possible to specify layouts for screens that are smaller than 'small'? i.e. smaller than 426dp x 320dp Apr 30 08:15:05 Are there even screens that small Apr 30 08:15:31 SimonVT: maybe, you just don't know - the joy ! Apr 30 08:15:42 i can see some watches with small screens Apr 30 08:15:46 I don't think they're officially supported then Apr 30 08:16:02 Or rather, official android devices Apr 30 08:16:10 there are 320x240 screens out there - pixels, not dp Apr 30 08:16:43 Then they're probably ldpi, putting them above that dp Apr 30 08:20:02 design your "small" layout to be responsive Apr 30 08:20:07 then size doesn't matter Apr 30 08:28:02 holy shit it's 1:30am Apr 30 08:28:25 night Apr 30 08:29:06 JakeWharton: will do that without better options Apr 30 08:29:16 that's the best option Apr 30 08:38:29 good morning Apr 30 08:39:03 would anybody like to review a short section of my code? I mainly want feedback with the error handling on httpclient Apr 30 08:39:04 http://codereview.stackexchange.com/questions/11323/error-handling-httpclient-within-android Apr 30 08:48:18 how do you guys sort out your strings.xml Apr 30 08:48:32 sort? Apr 30 08:48:42 you know you can have more than one file for all that Apr 30 08:52:05 yeah Apr 30 08:52:16 but i wasn't sure how best to split them up Apr 30 08:55:43 Sort them by where they're used Apr 30 09:04:24 so, for anyone who's awake... *was* the Flyer the only mainstream device which saw an upgrade from 2.X to Honeycomb? Apr 30 09:15:29 wtf was the Flyer ? Apr 30 09:15:55 canadiancow: Thank you for the ListView Optimization :) Apr 30 09:28:33 Flyer is the HTC 7" tablet Apr 30 09:38:49 hi Apr 30 09:39:09 anyone knows why that code always returns 11:12 http://eugeneciurana.com/pastebin/pastebin.php?show=45038 Apr 30 09:45:08 Cus HOUR_OF_DAY is a constant with the value 11 and MINUTE is a constant with the value 12 Apr 30 09:45:27 You might want to look at the get method Apr 30 09:47:59 hello guys, does anyone know if it possible use sendBroadcast from a external thread? Because there is no context ... Apr 30 09:50:01 if anyone sees gaz`, give him some sympathy... Apr 30 09:50:42 https://play.google.com/store/apps/details?id=badminton.horsetrials.app is an app for the Badminton Horse Trials, an equestrian event... that he wrote. Apr 30 09:50:59 and http://www.bbc.co.uk/sport/0/equestrian/17893292 is the BBC story reporting the event has been called off because of heavy rain Apr 30 09:51:44 haa Apr 30 09:52:37 how good can a horse be at badminton? Apr 30 09:52:46 :D Apr 30 09:54:15 we need an automatic playstore link shortener Apr 30 09:54:31 something to do tomorrow on may day :) Apr 30 10:01:16 @SimonVT: thx for advice, now it works Apr 30 10:03:58 Is there a simple way to show current FPS on the screen? I'm using 4.0 Apr 30 10:05:43 there are some new stuff in the dev options in 4.x.y Apr 30 10:07:25 deebo: Yeah, but no FPS informations Apr 30 10:08:43 Hi I am having trouble updating the UI for my buttons. I have 2 rows of buttons with different numbers on them. I wanted to reorder the numbers so I changed the android:id and android:text for the buttons. However, even when I uninstalled the app and ran it with the updated xml version, the buttons' text reflected the changes but when I pressed them, they were still in the old configuration Apr 30 10:09:12 I'm so confused what's going on. I double/tripple checked that I consistently changed both the text and id for the buttons Apr 30 10:09:40 something must be stale, but I don't know where Apr 30 10:10:55 clean project Apr 30 10:11:31 okay. but when should I clean the project in general? Apr 30 10:12:39 When you experience strange errors like this Apr 30 10:12:59 more relevantly, I have never cleaned the project before. So I googled how to do it and found this: http://code.google.com/p/android/issues/detail?id=15209 Apr 30 10:13:13 eclipse > project > clean Apr 30 10:13:13 SimonVT, do you know a way that I can clean the project without bugs? Apr 30 10:13:18 okay Apr 30 10:16:05 thank you so much SimonVT, it worked! Apr 30 10:26:48 hi all Apr 30 10:27:11 is it possible to reset the Fragemnts stack ? Apr 30 10:43:25 could someone tell me what the problem is here?: [exec] /home/adam/workspace/titanium_mobile/android/runtime/v8/ndk-build.sh: 26: /home/adam/workspace/titanium_mobile/android/${env.ANDROID_NDK}/ndk-build: not found Apr 30 10:43:27 BUILD FAILED /home/adam/workspace/titanium_mobile/android/build/common.xml:682: exec returned: 127 Apr 30 10:48:17 hey, which, if any software do you lot use to do your prototyping Apr 30 10:49:10 Timmaah1201, I use... Jimmahhhhhhh Apr 30 10:50:41 :p Apr 30 10:53:19 anyone know how to set ndk path? Apr 30 11:09:51 is there a reason why I can't set the text in an EditText during onCreate()? Apr 30 11:13:14 because you did somethign wrong Apr 30 11:13:17 or in other words, no Apr 30 11:13:51 anyone? Apr 30 11:13:55 oh Apr 30 11:14:09 well I don't know what I would of done wrong Apr 30 11:14:27 I getting it by ID from resources Apr 30 11:16:12 EditText txt = (EditText)findViewById(R.id.page1_txtEmail); Apr 30 11:16:18 txt.setText("foo"); Apr 30 11:16:25 that doesn't work Apr 30 11:16:57 What does "doesn't work" mean Apr 30 11:17:22 it's not adding it to the EditText Apr 30 11:17:28 <`z> i wanted to toast some bread so I got a Godzilla plushie to fart on it Apr 30 11:17:31 <`z> that doesn't work Apr 30 11:20:16 Never had any issues with it.. So yeah, you're doing it wrong Apr 30 11:20:39 :( Apr 30 11:23:59 stack trace or gtfo Apr 30 11:24:00 code or gtfo Apr 30 11:25:47 stfu or gtfo Apr 30 11:25:56 ;D Apr 30 11:27:03 ... Apr 30 11:27:14 "stack trace or gtfo" is actually a rule of this channel Apr 30 11:27:19 apparently you havent even read teh topic Apr 30 11:29:52 Is it possible to add another view (ie Admob) to a NativeActivity. Ideally I need to begin with resizing the underlying nativeactivity view. Apr 30 11:31:44 canadiancow: you're right. I haven't Apr 30 11:39:49 hi all Apr 30 11:39:54 can anybody help me? Apr 30 11:42:01 I want to add locale to AOSP, have downloaded source and translated some system applications. but wen i lauch emulator it does not show my language in Settings dialog Apr 30 11:42:18 where must I add my language to show up in settings? Apr 30 11:44:16 I'm wanting to get into game development on Android, but I am confused when it comes to the graphics. Do I have to pre-scale or make different size graphics for each screen resolution? Apr 30 11:45:12 For instance, let's say I make a card game. Now on the card table I would want it to fill the whole screen, on both phones and tablets. Apr 30 11:45:55 Or is this something that openGL will handle for me? Apr 30 12:26:01 nobody alive here? Apr 30 12:26:29 not yet...I'm still waiting on an answer to a question I asked 30 minutes ago Apr 30 12:26:37 devius: whats up Apr 30 12:26:39 maybe I can help. What's up? Apr 30 12:27:28 dlaroche: still need an answer to your Q? Apr 30 12:28:20 not really...I think I found the answer to my question. Just design the graphics with really high resolution, and then programmatically let Android decide to scale them down or not Apr 30 12:30:43 [08:26:29] not yet...I'm still waiting on an answer to a question I asked 30 minutes ago Apr 30 12:30:50 sorry our service level isn't up to your standards Apr 30 12:30:58 hehe Apr 30 12:31:13 canadiancow: don't start with me....it's too damn early, and not enough sleep....lol Apr 30 12:52:01 hi!! I would develop something in order to improve my android skills… but i don't know what… does anybody have ideas? Apr 30 12:53:08 guigui22: http://developer.android.com/training/index.html Apr 30 12:53:18 http://developer.android.com/guide/topics/fundamentals.html Apr 30 12:53:53 thanks but I already develop some android app… Apr 30 12:54:06 so i look for an other ideas Apr 30 12:55:50 something i could put on the market :) Apr 30 13:00:22 hi, i am trying to test an application on ICS the code compliles fine, but the emulator is completely unresponsive, i can not unlock the lock screen of it Apr 30 13:01:57 blue_pearl: does logcat say anything interesting? Apr 30 13:09:05 lov: W/MountService(876): Waiting too long for mReady! too many times, does that helps? Apr 30 13:09:38 eh. Maybe it can't load the sdcard or something. Apr 30 13:09:52 try killing your AVD and creating a new one. I'd recommend making a QVGA one just for performance reasons, but w/e Apr 30 13:10:38 lov: ok will try that Apr 30 13:16:46 t0mless: are you there? Apr 30 13:19:10 pipl, can somebody help me? Apr 30 13:19:52 <`z> yea Apr 30 13:22:19 devius: I say no, with this premise Apr 30 13:24:54 devius dont ask to ask just ask Apr 30 13:27:38 devius: I don't know the answer to your question. Take a look at the settings app, see where it's pulling the list of languages from. It might be a hardcoded list. Apr 30 13:27:57 t.t Apr 30 13:33:18 it's possible to set width/height of an image in rate respect its actual dimension ? Apr 30 13:33:34 for example in a max of 100% i would set to 80% Apr 30 13:33:56 hello Apr 30 13:34:21 ech0s7: did you check the class reference for "scale"? Apr 30 13:34:32 s/check/search/ Apr 30 13:36:30 anddam, yes, but i would do from xml Apr 30 13:36:35 layout.xml Apr 30 13:38:08 idk Apr 30 13:43:01 I've got an Native app which needs to stop any background audio from other apps, can this be done via a simple api call or do I need to output my audio via an api call? Apr 30 13:44:03 I'm not aware of any API that lets you change the audio output from other apps; all you can do is change the general volume, if you have the permissions Apr 30 13:47:28 I'm in eclipse developing for android and I can run the current project on the phone, but when I unplug the cable, the app seems to be deleted from the phone.. How do I install it permanently? Apr 30 13:51:29 xarxer: deleted has never happened to me. you sure it's not on the phone? Apr 30 13:52:03 xarxer: I have no idea what's happening there. Apr 30 13:52:31 theneb: request audio focus Apr 30 13:52:41 it's not guaranteed to prevent other apps from playing audio, but it does politely ask them to stop. Apr 30 13:54:58 lov: ta, will have a look Apr 30 13:57:02 hello Apr 30 13:57:11 anyone good with socket programming?? Apr 30 13:57:37 i'm trying to get each time a client connects it registers on the serer Apr 30 13:57:43 sever Apr 30 13:57:47 server Apr 30 13:57:48 damn Apr 30 13:58:10 to get each time Apr 30 13:58:49 yeah sorry Apr 30 13:58:51 i just woke up Apr 30 14:00:24 Hey guys. I am having a lot of java.lang.IllegalArgumentException: provider=network errors on Galaxy S 2 with ICS. I know there is a bug on the emulator about this (http://code.google.com/p/android/issues/detail?id=21237) but are you experiencing this on real devices too? If you do, have you found a way to bypass it ? Apr 30 14:23:58 Does anyone happen to know how to pass both regular POST parameters AND JSON, with HttpClient? Apr 30 14:24:12 the equivalent of curl -H foo --data json Apr 30 14:24:42 I'm looking at AbstractHttpEntity subclasses but I don't see any that seem to be the right one. Apr 30 14:24:54 I don't think I can do this with URLEncodedFormEntity, can I? Apr 30 14:25:50 how exactly would that look from a raw data perspective? Apr 30 14:26:06 is the JSON data just one of the POST variables? Apr 30 14:27:05 I'm about to get the raw data from tcpdump, 1 sec. Apr 30 14:27:19 nah, the json isn't a post var Apr 30 14:27:29 it's like multiple http entities, i think Apr 30 14:27:55 huh, i haven't worked with multipart Apr 30 14:28:10 I've done it for uploading an image once Apr 30 14:28:21 i'll take another look at that one Apr 30 14:28:27 http://hc.apache.org/httpclient-3.x/methods/multipartpost.html Apr 30 14:28:46 Can a NativeActivity layout be altered to include another View? Ie when the event loop is running inside the C++ code? Apr 30 14:30:57 wongk: yeah I have a good feeling about this. thanks Apr 30 14:32:13 i've actually just finished using a multipart impl. Apr 30 14:32:34 pretty simple. Apr 30 14:32:41 I'm about to pull in the newer HttpClient jars, because there isn't a MultipartEntity in android Apr 30 14:32:48 I've got code here that actually uses it Apr 30 14:32:49 no there isn't. Apr 30 14:32:56 i had to use the oreilly class. Apr 30 14:33:04 the newer HttpClient 4x has it too. Apr 30 14:33:14 if you pull 3 jars into your project. Apr 30 14:33:26 oh? Apr 30 14:33:39 yeah, I used it for uploading an image before, I'll paste Apr 30 14:33:45 awesome. Apr 30 14:33:53 the code is untested though since I commented it out when the backend dev couldn't figure out how to write the backend for it Apr 30 14:33:56 lol Apr 30 14:34:11 derp. Apr 30 14:34:36 http://pastebin.com/tUHz3srh Apr 30 14:34:40 something like that Apr 30 14:36:53 readme: do you know how to start a service when the phone powers on? Apr 30 14:37:19 i've been trying to use Broadcast Receiver and OnBootComplete instructions but cant put it to work Apr 30 14:37:28 cool so i just need the new multipart class and maybe a couple others. very simple. thanks :D Apr 30 14:37:56 Tsukaza: that's how you do it Apr 30 14:37:59 readme: you could also just use simpler entity types or HttpURLConnection if you set the content-type and just formatted the data correctly Apr 30 14:38:12 if you don't want to pull in the new apache jars Apr 30 14:38:27 wongk: interesting Apr 30 14:38:29 I'll make a note of that Apr 30 14:38:29 readme: do you any example? any piece of code tested and working? Apr 30 14:38:39 Tsukaza: yes, 1 sec. Apr 30 14:38:42 ty Apr 30 14:38:51 of all the things i don tlike about the anme "Google Play Store", i think the most annoying is that the acronym is GPS Apr 30 14:39:02 "we just launched an app on GPS" Apr 30 14:39:08 haha Apr 30 14:39:14 that's an atrocity Apr 30 14:39:17 lol Apr 30 14:39:32 for onBootCompleted, you need to make sure you register the receiver in your manifest: http://pastebin.com/qY920mrP Apr 30 14:39:41 it won't work otherwise. Apr 30 14:39:50 also need the permission Apr 30 14:39:56 because your application won't be up to handle the broadcast. Apr 30 14:40:10 did all that Apr 30 14:40:41 Tsukaza: you have an intent filter for in your receiver? Apr 30 14:40:41 canadiancow|work: didn't notice the acronym till you just mentioned it Apr 30 14:40:54 Tsukaza: your receiver isn't an inner class is it? Apr 30 14:41:20 canadiancow|work: Not sure I like AM better :p Apr 30 14:41:30 Tsukaza: here's mine, works like a champ: http://pastebin.com/Kcc4Ww79 Apr 30 14:41:36 but "androi dmarket" was shorter Apr 30 14:41:42 register in manifest and it should work. Apr 30 14:41:45 im much more likely to want to acronymize "google play store" Apr 30 14:42:10 ty moonlightcheese, ill try out and leave you feedback Apr 30 14:42:53 Tsukaza: I no longer have mine, so just use moonlightcheese's Apr 30 14:43:02 ok readme, ty Apr 30 14:43:04 this is the right way to do it, so don't worry about it. Apr 30 14:43:20 sometimes i do things rite :P Apr 30 14:43:29 one thing you might want to do is that instead of starting the service right away at boot time, is kicking off a timer to start it in 30 seconds or so Apr 30 14:43:40 because often so much stuff is happening at boot that your service will just get killed for lack of memory Apr 30 14:43:47 ok, ill just test it out and see if I can make it run Apr 30 14:43:52 canadiancow|work: Why the google in front if it.. just call it play store ;O Apr 30 14:43:52 if I do then ill put a timer on it Apr 30 14:44:00 it's never happened before but i'll keep it under advisement. Apr 30 14:44:02 yeah Apr 30 14:44:03 You don't see people call it Apple App Store, AAS Apr 30 14:44:08 i suppose SimonVT Apr 30 14:44:21 actually i do Apr 30 14:44:25 otherwise is it amazon or apple Apr 30 14:44:42 cuz Play Store sounds like either a Chucky Cheese type place with ball pits and slides or a porn shop. Apr 30 14:45:40 Noone cares about amazon appstore :p Apr 30 14:45:50 except maybe Kindle owners. Apr 30 14:46:01 :d Apr 30 14:46:02 which make up over 50% of Android tablet owners. Apr 30 14:46:27 moonlightcheese: it worked, thanks Apr 30 14:46:34 Tsukaza: np. Apr 30 14:53:28 Hey all, quick implementation question. Passing credit card info from android app for server side processing. Is encryption then passing it over SSL standard? Enough protection? Apr 30 14:55:38 StlTenny: that is the standard security employed by web browsers Apr 30 15:02:07 Hello, is there any way to add multiple attributes to an object in an xml file: such as "android: textAppearance: atribute 1, attribute 2, attribute 3" ? Apr 30 15:02:42 android:textAppearance="attribute 1, attribute 2, attribute 3" * Apr 30 15:03:43 so ... Apr 30 15:03:56 how would one go about pulling the version of an apk file? Apr 30 15:03:57 kaspuh wut Apr 30 15:04:15 so to update you guys... I didn't use any of the solutions we talked about. I just put the post params in the URI with string concats Apr 30 15:04:18 and it works Apr 30 15:04:28 TachyonDevWork unzip and read manifest? Apr 30 15:04:34 not that pretty, but, it works :) Apr 30 15:04:53 yeah i was afraid you were going to say that Apr 30 15:04:58 no adb command for it? Apr 30 15:05:06 there's a tool TachyonDevWork Apr 30 15:05:10 I read it on commonsware's blog Apr 30 15:05:12 1 sec Apr 30 15:05:20 hello everyone, I have an issue displaying a youtube embed inside a webview. On ICS (4.0.3), when you click on the 'fullscreen' icon the whole application disappears. Everything is working fine on 2.3.3 Apr 30 15:05:22 Sorry, got disconnected earlier. Had asked about the way to go about transmitting sensitive information (credit card data) from device to server. On device encrypt and then transport over ssl? Apr 30 15:05:28 TachyonDevWork: AppXplore Apr 30 15:05:30 get it on the market Apr 30 15:05:57 http://commonsware.com/blog/2012/04/25/how-isolated-adobe-reader-activity-issue.html Apr 30 15:05:59 readme: i need to read it on the local pc filesystem, not on the phone Apr 30 15:06:06 oh, bummer Apr 30 15:06:29 ok well i'm going back to work Apr 30 15:09:41 The youtube issue is reproducible by just creating a simple webview, enable plugins/javascript, set hardwareacceleration in manifest, and load page that has a standard youtube embed HTML code (the new one using iframes) Apr 30 15:10:40 StlTenny: yes, but you should review your company policies and talk with your PCI guy (of which tehre should be one if you're doing CC processing) Apr 30 15:11:19 StlTenny: and if you can embed the certificates of the other end of the CC processor instead of trusting the CA chains in the device, that's probably a little bit better too Apr 30 15:12:03 ang1: 4.0.3 introduced a bug with going fullscreen with flash Apr 30 15:12:23 I have been trying to solve that one myself. Apr 30 15:12:50 Knossos: it's strange though because in the build-in browser works fine Apr 30 15:13:48 other browsers used to have the same problem, but they made a work around Apr 30 15:14:06 that nobody seems to have documented Apr 30 15:14:21 public void viewDidChangeSize(AdSize arg0, AdSize arg1) Apr 30 15:14:26 i wonder what OS this person was porting from... Apr 30 15:14:46 Knossos: :( that's really bad, I'm tryint to find a solution for more than 3-4 hours now and nothing... Apr 30 15:15:03 <- a couple of weeks :< Apr 30 15:15:40 yay camera got fixed for latest Cyanogenmod on my phone :) Apr 30 15:15:40 Knossos: do you know if there is a way to capture the "fullscreen" click event and redirect it to the youtube app instead ? Apr 30 15:16:06 I'm getting an error use the 'Cheeses' in eclipse..any ideas? Do I have to import something? Here's my code: 'setListAdapter(new ArrayAdapter(getActivity(), Apr 30 15:16:06 android.R.layout.simple_list_item_1, Cheeses.sCheeseStrings));' Apr 30 15:17:20 I have some information that may help you, one moment. Apr 30 15:17:26 Just loading my IDE Apr 30 15:19:37 Ok the issue seems to be related to the onShowCustomView(...) event. I have managed to Override this event by extending the WebChromeClient. That stops the problem from crashing your App entirely. It does however hang the video. Apr 30 15:19:42 Knossos: alright thanks Apr 30 15:19:46 john_doe_jr: that array is part of a sample, not the API Apr 30 15:20:06 wongk: how do I fix it? Apr 30 15:20:24 fix what? Apr 30 15:20:39 ang1: Related link: http://stackoverflow.com/questions/8660866/flash-player-crashes-when-trying-to-enter-fullscreen-mode-android-4-0 Apr 30 15:20:45 Knossos: Thank you very much Apr 30 15:20:53 Related link 2: http://stackoverflow.com/questions/9181820/android-ics-4-0-placing-flash-webview-into-full-screen-calls-hideall-method Apr 30 15:21:03 Dragorn: Thanks. We don't have a pci guy. Or the pci guy is me, whichever way you'd rather say that. What do you mean by embedding the certificates. And secondly is it necessary to both encrypt and send over ssl or just choose one? Apr 30 15:21:07 If you find a decent fix let me know ;P Apr 30 15:21:20 I haven't had enough time to dedicate to fixing it. Apr 30 15:21:37 ok I will, I'll have a look at it Apr 30 15:22:33 wongk: I'd like to work so I can see what a FragmentPagerSupport can do... Apr 30 15:22:49 Dragorn: The actual payment is being handled by stripe, so I'm going out on a limb and trusting their api. Instead of making the stripe request from the mobile device however, it seemed like a better design decision to have the server handle it in case we decide to change our payment system Apr 30 15:22:55 john_doe_jr: then copy Cheeses.java into your project Apr 30 15:23:12 wongk: where is that at? Apr 30 15:23:31 john_doe_jr: in one of the samples Apr 30 15:25:40 wongk: so I could have just imported the sample instead of having to figure out all the import statements huh? Apr 30 15:26:31 import statements aren't relevant, the samples aren't part of the API Apr 30 15:27:56 wongk: I mean just import the sample Apr 30 15:31:36 StlTenny: SSL offers both encryption and trust, via the certificate authority chain. (You trust the phone is stocked with valid, and only valid, certificate authorities, you trust the CA only gave a cert after validating the person requesting it), and SSL validates the certificate is signed by a chain leading back to a trusted authority Apr 30 15:32:17 StlTenny: If you put the pub cert of the CC processor in your app, you shortcut the whole trust path, and validate against only the certificate you confirmed belongs to them Apr 30 15:32:30 StlTenny: the downside of that is if they change their cert, or have a server farm with multiple certs, it fails Apr 30 15:32:41 StlTenny: search "certificate pinning" for other examples Apr 30 15:33:18 StlTenny: if you're going through your own payment proxy and control the SSL certs on both ends, pinning should be fine, but you have new liability as you are processing payment data Apr 30 15:33:26 StlTenny: and storing/caching/transfering it locally Apr 30 15:35:44 could someone please help me understand why i cannot get past the flash_image recovery recovery-clockwork-2.5.0.7-heroc.img. I have a heroc with S-ON and it's successfully rooted…for some reason i always get a "flash_image not found" error at that step, and i'm having a hard time figuring out why Apr 30 15:36:30 jc_adx: #android-root Apr 30 15:37:48 dragorn: Thanks. I get what you're saying now. Didn't read up on cert pinning before. I guess in essence what we are doing is creating our own payment proxy but as a pass through entity. When the data gets to our side, its converted into a payment token and thats it. No storing (minus caching which I'll look into) Apr 30 15:38:46 dragorn: From all of this though it seems that RSA-ing the cc info before hand would be excessive. And I can just transmit via ssl and call it a day. (Know this isn't exactly android chat, but still trying to wrap my head around it, thanks for the help) Apr 30 15:38:49 StlTenny: I've been out of PCI land for a while but I think the fact that you're handling full billing data yourselves, even as a proxy, makes a difference Apr 30 15:38:52 best way to make a grid-style view without using the GridLayout that was introduced in api 14 or so? Apr 30 15:38:57 wongk: what would be the best way to get the 'cheese.java' file into my project? Import it or something? http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/Cheeses.html Apr 30 15:39:25 StlTenny: also don't store billing data on the device Apr 30 15:40:08 dragorn: yeah, not happening. That much I'm certain of, hah Apr 30 15:40:19 john_doe_jr: cp Apr 30 15:40:28 wongk: just create a new class right? Apr 30 15:40:48 john_doe_jr: http://linux.die.net/man/1/cp Apr 30 15:41:22 wongk: alright thanks Apr 30 15:44:25 StlTenny: if they have a SSL API and standards to go right to stripe, there may be advantage in doing that - if they screw up its their problem then Apr 30 15:44:53 StlTenny: I've been out of PCI for ~5 years tho, so do some research, talk to your lawyers Apr 30 15:45:26 dragorn: Sounds good. Thanks alot Apr 30 15:46:03 StlTenny: If you have to run a proxy, I'd strongly investigate cert pinning, there's no reason to trust other certs when you definitively control both ends Apr 30 15:46:36 Hey guys, I'm wondering how I can change the message of a dialogFragment after it has already been shown. When the UI is recreated on orientation change, this happens: http://imgur.com/a/SAhzM Apr 30 15:51:06 Is it possible to adding spacing between the compounddrawable and editable area of an EditText? Apr 30 15:51:53 or just I just pad the image resource itself Apr 30 15:53:57 hi all...is possible to make on listFragment onclick to change the layout of one list item? how? i dont know what exactly search on google so...help will be appreciated Apr 30 15:54:01 JavaDog: use get/setArguments Apr 30 15:54:11 place your message in a bundle Apr 30 15:55:02 wongk: Why can't I just have a setMessage method(String msg) Apr 30 15:55:14 and say, dialog.setMessage(msg); Apr 30 15:55:17 JavaDog: you could, but why would you want that? Apr 30 15:55:26 Because it's less complicated Apr 30 15:55:29 that's extra work on your part to retore the message Apr 30 15:55:29 and I can't, it doesn't work Apr 30 15:55:32 i disagree Apr 30 15:56:09 JavaDog: That works fine, as long as you retain the state on configuration change Apr 30 15:57:16 JavaDog: if you want to use your way, then just ((AlertDialog)getDialog()).setMessage(msg) Apr 30 15:58:24 Yeah I tried that too Apr 30 15:58:55 where are you call setMessage on your fragment? Apr 30 15:59:30 I'm going to try your method Apr 30 15:59:47 I have public void setArguments(Bundle args) {, but what do I put in here? Apr 30 16:00:02 any information your dialog instance needs Apr 30 16:00:15 in this case, just the message i assume Apr 30 16:00:35 Would I have to set cancelable to false again, or would it be retained? Apr 30 16:01:29 JavaDog: here's an example: http://pastebin.com/8jeVvb9P Apr 30 16:03:18 i got a new intern today :( Apr 30 16:03:38 interns do the dirty work, why :( ? Apr 30 16:03:48 because i have to train him Apr 30 16:04:06 no startup guide/resources? Apr 30 16:04:31 for learning our android stuff? Apr 30 16:04:32 not really Apr 30 16:04:38 ouch Apr 30 16:04:51 the problem is bringing in people who have never touched android Apr 30 16:04:57 when we have thousands of lines of code Apr 30 16:05:17 yeah, they don't teach that in college :P Apr 30 16:05:21 I'll be your intern Apr 30 16:05:31 a/s/l? Apr 30 16:05:37 hah Apr 30 16:05:38 19/m/north carolina Apr 30 16:05:47 how about you, baby? Apr 30 16:05:50 * wongk lunch Apr 30 16:05:52 i dont know if we'd bring an american up here Apr 30 16:05:55 considering head office is in SF Apr 30 16:05:58 21/m/sweden Apr 30 16:05:59 Where are you, about? Apr 30 16:06:06 toronto Apr 30 16:06:09 I have a friend in Waterloo Apr 30 16:06:15 and family in Toronto Apr 30 16:11:37 well JavaDog if you're actually interested, and your resume doesn't look like ass (although to be honest...im not sure if that matters), i could pass it along Apr 30 16:11:55 Hello. How can I install an .apk silently? Apr 30 16:12:03 wut Apr 30 16:12:10 just keep your mouth closed Apr 30 16:12:10 That seems kind of shady... Apr 30 16:12:14 ryden: you can't Apr 30 16:12:25 @ryden, not you canadiancow Apr 30 16:12:28 My device is rooted, would that help? Apr 30 16:12:47 Nah, I don't have any shady purpouses :p Apr 30 16:13:40 Well, thanks anyway Apr 30 16:13:44 ryden: adb install foo.apk 2>&1 >/dev/null Apr 30 16:14:11 And canadiancow, I am interested but I'm enrolled in summer school for the first summer semester here, meaning I couldn't actually start for a month or two Apr 30 16:14:13 anddam, programatically. Apr 30 16:14:47 is there programmatic API for pm at all? Apr 30 16:15:14 what the heck is a "first summer semester" Apr 30 16:15:25 i dont know how the internships work in the US, but we generally do jan-apr, may-aug, sep-dec up here Apr 30 16:16:35 Taking some classes from May 21 - June 27 Apr 30 16:16:57 anddam, well, you can make an intent. Apr 30 16:17:08 Anyway, I guess that I will just modify Android. Apr 30 16:17:23 intern: "why sdk should i download" me: "all of them" Apr 30 16:17:25 6 hours later... Apr 30 16:17:32 anyone ever used setExposureCompensation() ? seemsto have no effect on nexus one Apr 30 16:18:02 canadiancow|work: the problem there is the "why sdk" part Apr 30 16:18:20 hahah Apr 30 16:18:29 which* Apr 30 16:18:32 whatever Apr 30 16:18:40 :-) Apr 30 16:19:03 intern: "scott, what are you working on right now" me: "we're waiting for some tools to be writ- *falls off chair*" Apr 30 16:19:04 T_T Apr 30 16:25:13 canadiancow, personnaly, when i was an intern, i had to train myself, my best friend was google. follow so many tutorials.Then, after few weeks, i did my frist android app :D Apr 30 16:25:36 what im tring to say is that theres the "learn android" stage Apr 30 16:25:43 and then theres the "learn zynga" stage Apr 30 16:25:44 wongk or anyone: Should I be creating a new DialogFragment just with new ProgressDialogFragment(); or is there a more proper way to do it? Apr 30 16:25:55 Ah, you work at zunga? Apr 30 16:25:57 and its the latter that requires more training Apr 30 16:25:58 zynga Apr 30 16:26:02 yes Apr 30 16:26:15 Heh, cool Apr 30 16:27:52 are intern well paid at zynga ? Apr 30 16:27:59 yes Apr 30 16:28:02 better than i ever was T_T Apr 30 16:28:22 but dont ask me exact amounts - it varies based on which office you work at and how much experience you have Apr 30 16:29:05 any1 good with rlc circuits, or better know a chan where i could ask questions regarding rlc circuits lol Apr 30 16:29:07 i heard around 5.4k/months Apr 30 16:29:23 If you guys have internships after June 27 I might be interested (and I'll have more experience by then) Apr 30 16:30:03 JavaDog, in the toronto office, we want at least 4 months, but im sure we could set the start/end dates to whatever works for you Apr 30 16:30:09 marsulle, as i said, it varies heavily Apr 30 16:30:23 where do you want get your internship JavaDog ? Apr 30 16:30:41 I'm in North Carolina Apr 30 16:30:48 thats probably more than you'd get in my office, but that is extremely high for an internship in canada Apr 30 16:31:18 Name one Zynga android app that doesn't suck Apr 30 16:31:30 thats extremely high for an internship anywhere :\ Apr 30 16:31:43 pragma-, i dont like where this is going Apr 30 16:31:47 but: scramble with friends Apr 30 16:31:48 lol Apr 30 16:31:54 canadiancow, do you know how much we earn in France ? i think everyone hhere would laugh :) Apr 30 16:31:57 Words with Friends is infinitely better. Apr 30 16:32:10 in what way Apr 30 16:34:20 ok then Apr 30 16:35:10 marsulle, are you aure? in Italy mostly are for free :) Apr 30 16:35:58 JavaDog: Use the .newInstance() pattern rather than hitting fragment constructors directly Apr 30 16:36:05 i had a friend who did an internship in france Apr 30 16:36:10 i dont think his pay covered his rent Apr 30 16:36:16 JakeWharton: why Apr 30 16:36:18 no, Words with friends sucks too Apr 30 16:36:21 I meant Wordfeud. Apr 30 16:36:23 rciovati, free? even with experiences? Apr 30 16:36:30 pragma-: why Apr 30 16:37:05 Actually, Wordfeud sucks now that I tried to start it up and it prompted me for a login and when I press 'back' in an attempt to exit, it just restarts the login screen activity Apr 30 16:37:09 uninstalled. Apr 30 16:37:10 in France: without experiences : often free. Apr 30 16:37:18 right now, experience is a requirement for apply for an intern Apr 30 16:37:33 well pragma-, you have yet to cite even one reason you think any zynga app sucks Apr 30 16:38:13 more than 3 month : minmum is 417euros/months. For an intern with experiences, master's ~ 1500euros Apr 30 16:40:17 damn, wordfeud used to be good too. it might still be ok, but when you try to lock me into your app by disabling the back button, you get a 1 star review and an uninstall. next? Apr 30 16:41:57 pragma-: It could have been an oversight. They're not necessarily trying to "lock you in," because any user with a brain knows how to escape an app even when the back button is fucked. Apr 30 16:42:39 so that's like, what, 1% of users? :P Apr 30 16:42:44 You will do a great job at what ever company hires you. Apr 30 16:43:07 I never said it wasn't bad practice, because it certainly is Apr 30 16:43:15 But it's also fixable, easily Apr 30 16:43:27 I fixed it with a 1 star review and an uninstall. Apr 30 16:43:29 You admitted yourself that you only tried it once Apr 30 16:44:22 did you leave an awesome review comment too... "Lol it sux0rs rofl!!1" Apr 30 16:44:40 I said "doesn't work!" Apr 30 16:44:44 * pragma- helpful. Apr 30 16:47:39 JavaDog: unlikely, since when I press the back button, the login activity actually shakes a little and it beeps to let me know that I did something bad Apr 30 16:47:50 so it most certainly appears to be intentional Apr 30 16:48:21 They went to the effort to make the screen shake, so screw them. Apr 30 16:48:28 hah, it beeps Apr 30 16:48:36 Okay, so you don't agree with their design philosophy. Can still be a decent app regardless Apr 30 16:48:50 * pragma- gives JavaDog a 1 star review and ignores him. Apr 30 16:49:12 I feel like I'm on reddit Apr 30 16:49:14 I said that it might still be ok. Apr 30 16:49:37 Yeah, feels like I'm talking to an opininated redditor who thinks his ideals are legendary. Apr 30 16:50:10 But you're the one defending your.... agh, nevermind Apr 30 16:50:13 whatever you say Apr 30 16:50:21 No, I'm insulting the piece of crap. Apr 30 16:50:49 Sounds good Apr 30 16:50:50 carry on Apr 30 16:51:03 Too late, you've already lost karma points with me. Apr 30 16:51:18 I shall henceforth view any comment you make on any topic as potentially retarded. Apr 30 16:51:23 Good thing they're worthless Apr 30 16:53:12 wongk: Thanks for the example earlier, is helpful Apr 30 16:55:13 wongk: and it worked beautifully Apr 30 16:55:49 well that's good, because i use it in my app :P Apr 30 16:56:17 well that's good, because it works beautifully :p Apr 30 17:01:18 Hey guys, we have an activity which sets FLAG_FULLSCREEN on the window, but our application is also set as a keyguard against accidentally pressing the home key, so the notification bar is always showing and the canvas height is still coming back as the full size of the screen. How should I re-code so the canvas accounts for the notification bar? Apr 30 17:01:47 * canadiancow|work still waits to hear why pragma- thinks * With Friends is bad Apr 30 17:02:02 Or, better yet, how can I hide the notification bar even with that "key guard" on Apr 30 17:02:52 canadiancow|work: It is because I am an cynical, and probably evil, asshole. Apr 30 17:03:58 pragma-: better to know it and not care than not know it and not care. hehe Apr 30 17:08:58 I'd like to import a sample project of the API 4+ Support Demos into eclipse...I know you can use New > Android Sample Project but I'm wondering why I don't see "API 4 + Support demos" like what is found @ http://developer.android.com/resources/browser.html?tag=sample ... Any ideas? Apr 30 17:15:00 i love when i find a bug in software we pay thousands for Apr 30 17:15:05 go to their bug tracking system Apr 30 17:15:08 and its been open for FIVE YEARS Apr 30 17:24:36 hahaha Apr 30 17:25:36 that's what you get for not using open source Apr 30 17:27:27 oh great Apr 30 17:27:32 im getting recruiter emails at work now Apr 30 17:32:17 do you know the average size after "repo sync" ? Apr 30 17:33:37 Tinti: depends on your machine and network connection Apr 30 17:33:52 -j4 or -j8 should keep your computer busy for a while Apr 30 17:34:41 -j1 proves to be fastest Apr 30 17:35:35 though one wonders what he means by "average size" Apr 30 17:35:57 storage space used? Apr 30 17:38:29 This is one of the best changes I've ever made to ASOP: http://codepad.org/gAvnFyDG Apr 30 17:38:39 * pragma- nods with infinite wisdom. Apr 30 17:57:40 why do you want to always fastscroll? Apr 30 18:01:55 evancharlton: in fact is a mx51 freescale processor Apr 30 18:03:31 I have no idea what that means. all -j means is how many threads to use; decide that for yourself. Apr 30 18:04:05 make -j does not mean how many threads create on the android system Apr 30 18:04:23 instead it means how many job can be carried @ once on the build system Apr 30 18:04:47 so why does Fragment's getActivity() sometimes return null...? Apr 30 18:04:50 ... duh? He's asking about repo sync -j anyway Apr 30 18:05:00 moonlightcheese: if it hasn't been attached to an activity yet Apr 30 18:05:49 oooooh. Apr 30 18:05:57 so that's why i should be using onAttach more... Apr 30 18:06:06 herp. Apr 30 18:19:29 hey, I'd like to create a new project based on a same in the API 4+ Support Demos but I don't see it in the list of samples...any ideas why? Apr 30 18:20:27 which demo? Apr 30 18:29:06 I'm getting a FATAL EXCEPTION in my project, apparently before OnCreate is even called. How would I go about finding what is making it blow up? Apr 30 18:29:49 Jonathan_Eyre: adb logcat Apr 30 18:31:25 Right, I can see what logcat is printing. It says,"thread exiting with uncaught exception (group=0x409c01f8)", then "threadid=3: reacting to signal 3" and then "E/AndroidRuntime(909): FATAL EXCEPTION: main" Apr 30 18:31:50 I don't see how that tells me what function/include/brainspasm is causing the error. Apr 30 18:32:13 paste your entire stack trace and into pastebin.com and send us the link Apr 30 18:37:49 evancharlton: Right. I found the ClassNotFoundException. I blame cerebral palsy. Apr 30 18:40:12 Jonathan_Eyre: :) Apr 30 19:04:37 Anyone know how to cancel the Input Options keypress on the android keyboard? Apr 30 19:04:40 Or am I going to have to make my own keyboard? Apr 30 19:05:13 Is it possible to detect when a user opens the settings menu? Apr 30 19:05:32 'the' settings menu? Apr 30 19:06:17 Snuffel: The icon that looks like three audio sliders and the title,"Settings". Apr 30 19:06:30 The one that controls the settings? Apr 30 19:06:37 For the phone/tablet? Apr 30 19:07:06 thats the key I want to disable on the keyboard Apr 30 19:07:45 but, it doesn't fire a keypress event Apr 30 19:08:12 Jonathan_Eyre: you related to Jane? Apr 30 19:08:15 As far as I know, you cannot disable the button. You can only catch when the app is called, and redirect back to your app. Apr 30 19:08:39 so I guess I have to make my own keyboard Apr 30 19:08:48 Snuffel: The girl that married the blind polygamist? Jane Eyre? Apr 30 19:09:09 :) Apr 30 19:09:27 Making your own keyboard will not help for the phones that have ahard "Options" button. Apr 30 19:09:56 its on our own devices Apr 30 19:10:05 Catching the Settings when it fires is probably the only way to make sure the user doesn't go there. Apr 30 19:10:17 i just need to cancel that button Apr 30 19:10:20 disable it Apr 30 19:10:24 does anyone use the ndk here? Apr 30 19:10:25 I would really like to know how to do this. Apr 30 19:10:26 or just make a whole new keyboard Apr 30 19:10:30 Nijikokun: er Apr 30 19:10:36 why are you trying to do this? Apr 30 19:10:43 custom firmware Apr 30 19:10:44 nda Apr 30 19:10:50 no offense, but it sounds like you're doing something stupid Apr 30 19:10:55 but that button allows users to escape the application Apr 30 19:11:57 how difficult would it be to simulate a basic maps application natively? with just a map that follows around the users location? Apr 30 19:12:07 evancharl this is not an application that goes to a consumer Apr 30 19:12:36 so no, it's not a typical environment, normally I wouldn't care about the button, but in this scenario the button causes issues. Apr 30 19:13:05 evancharlton: How is it possible to block/redirect/spike/blowup the settings so that children in EDU do not press it? Apr 30 19:13:29 Nijikokun: if it's a custom firmware, can't you just modify the KB source? Apr 30 19:13:42 Or if they do, they cannot change the settings without closing the app, presumably after typing a password. Apr 30 19:13:51 Can you? Apr 30 19:13:55 this is why I am asking Apr 30 19:14:19 Custom firmware yes, but I didn't build it. Apr 30 19:14:38 Nijikokun: it's your firmware, you are the one who knows the answer to that question :P Apr 30 19:14:52 assuming you have the source Apr 30 19:15:07 Goes like this -> I get a firmware -> I have to build the Application ontop of it -> I don't have the source to the firmware Apr 30 19:15:13 i see Apr 30 19:15:45 Seriously who makes a button that doesn't fire an event? Apr 30 19:15:56 i just told my intern to read d.android.com Apr 30 19:15:58 :D Apr 30 19:16:20 canadiancow|work: When do you expect him back? Apr 30 19:16:24 it's like a book report :P Apr 30 19:17:11 Jonathan_Eyre in a week Apr 30 19:17:12 :D Apr 30 19:18:01 custom keyboard it is then Apr 30 19:21:00 Why would a linify project display correct on the main.xml but in emulator or phone not display correctly ? Apr 30 19:21:14 What method can I used to scale a Bitmap so the extra is scrollable to the right? Apr 30 19:21:24 Not talking about UI elements, but just manipulating the bitmap Apr 30 19:21:49 A matrix scaled has strecthed the original image Apr 30 19:22:09 Basically, keep the same aspect ratio but zoom it Apr 30 19:31:10 Someone needs English... "Only for is in debugging" http://developer.android.com/reference/android/Manifest.permission.html#SET_ACTIVITY_WATCHER Apr 30 19:31:30 Too bad d.android.com is not a wiki. Apr 30 19:32:11 according to ctate the source is in git Apr 30 19:32:14 so you can submit a patch :P Apr 30 19:32:23 oh but thats just javadoc Apr 30 19:32:25 that's definitely in git Apr 30 19:32:55 May as well send new sheet music to Mozart. Apr 30 19:35:31 ? Apr 30 19:35:34 they take patches Apr 30 19:35:36 http://jsdo.it/controller Apr 30 19:37:15 How would I submit a patch? Wouldn't I first need to download the site's source? Apr 30 19:37:29 you have to fork the entire internet Apr 30 19:37:35 Doable. Apr 30 19:38:10 Or I could just laugh at them and let them rot in not-quite-English. Apr 30 19:38:23 wget * Apr 30 19:39:22 repo sync Apr 30 19:39:24 its javadoc Apr 30 19:39:29 the change would be in a .java file Apr 30 19:43:19 Does that mean that the site is on github? Apr 30 19:46:34 hey guys, is there a comet library you guys recommend for android? Apr 30 19:46:45 and/or prefer? Apr 30 19:46:48 why would you need a comet library Apr 30 19:46:54 it's just an http request Apr 30 19:47:03 Try Navimatics. Apr 30 19:47:28 http://navimatics.com/celnavandroidshots.aspx Apr 30 19:48:16 huh Apr 30 19:48:23 It's probably one of the best libraries of comets. Apr 30 19:49:06 lulz Apr 30 19:49:17 Jonathan_Eyre: http://en.wikipedia.org/wiki/Comet_%28programming%29 Apr 30 19:49:56 http://en.wikipedia.org/wiki/Sarcasm Apr 30 19:50:12 I lul'd first. Apr 30 19:53:39 thx :) I know its retarded to have to use comet when I can simply use TCP, but the client is wired up to do only comet at this point :/ Apr 30 19:55:28 use a urlconnection Apr 30 19:55:31 read the inputstream Apr 30 19:55:32 done Apr 30 19:55:38 why do you need a library to do this Apr 30 19:59:10 Does killBackgroundProcesses only kill applications that are not visible? Apr 30 20:01:43 yes Apr 30 20:01:48 (to Jonathan_Eyre) Apr 30 20:02:24 ctate, you comin drinkin friday? Apr 30 20:03:11 pfn: you're right but the comet server being used requires bayeux protocol - handshake, pubsub -- not that complex but don't want to reinvent the wheel Apr 30 20:03:29 then find something that does that Apr 30 20:03:42 pfn: web shop migrating app to mobile so wants to do in stages instead of ripping up their entire infrastructure Apr 30 20:11:10 canadiancow|work: http://i.imgur.com/0trrw.jpg Apr 30 20:11:25 cow wash? Apr 30 20:11:35 :) Apr 30 20:11:39 lol Apr 30 20:11:58 he looks pretty content. Apr 30 20:12:09 she* Apr 30 20:12:41 yeah, wait til you see what the next machine is Apr 30 20:12:51 :( Apr 30 20:12:58 hehe, poor canadiancow|work Apr 30 20:14:25 what could be causing android system to keep a 100% wake lock Apr 30 20:14:51 my ns4g dies in 8 hours from a full charge… in airplane mode (with wifi on) Apr 30 20:15:25 debug mode? Apr 30 20:16:14 sure, i always have debugging turned on, but it wasnt plugged into usb Apr 30 20:16:20 what debug mode do you mean? Apr 30 20:16:49 was it charging? Apr 30 20:16:51 i dont have adb over network turned on Apr 30 20:16:55 no Apr 30 20:17:04 was your finger on it?' Apr 30 20:17:06 birbeck: have you looked at the battery stats? Apr 30 20:17:39 yeah, it says android system was keeping a wake lock 100% of the time Apr 30 20:18:35 i was just going to wipe it, but i wanted to find out what was causing the wake lock first, i was stumped when it was android system Apr 30 20:18:52 birbeck: stock or custom rom ? Apr 30 20:19:13 cm9 nightly Apr 30 20:19:21 heh - there you go, probably Apr 30 20:19:30 but i have been running nightlies for months Apr 30 20:20:11 it only started doing this a week ago when i turned off service and switched to my galaxy nexus Apr 30 20:20:52 anyhow, i guess i'll just wipe and see if it continues Apr 30 20:21:24 what are the dimensions of apps' icons (usually)? Apr 30 20:21:52 depends on the density Apr 30 20:22:07 http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html Apr 30 20:22:41 hmm Apr 30 20:23:33 how do I find that out? I mean it isn't me who's designing the icon Apr 30 20:23:59 http://developer.android.com/design/style/iconography.html Apr 30 20:24:06 you should have one icon for each density Apr 30 20:24:14 "Icons on display for google play must be 512x512 pixels" Apr 30 20:24:22 mdpi, hdpi and xhdpi at least Apr 30 20:24:24 hey guys, have anyone worked with google api java client library? Apr 30 20:24:52 google api java client library for what? Apr 30 20:25:04 google api java client library for google api java client Apr 30 20:25:31 dantheman, pragma- for picasa, but I have some common questions Apr 30 20:25:47 ahh Apr 30 20:26:02 Pragma: see more info is useful Apr 30 20:26:28 dantheman: tmi Apr 30 20:26:31 thanks Apr 30 20:26:40 whatever Apr 30 20:27:38 hi all Apr 30 20:28:11 hmm thats awesome, i went to wipe and there is no recovery image Apr 30 20:28:29 i have this layout http://ideone.com/cGqV8 Apr 30 20:28:34 pragma-, dantheman for example here, code for uploading an image, they have some GoogleHeaders class, I've downloaded the library, added everithg to my Build Path but there's no GoogleHeaders class in that library http://stackoverflow.com/a/6383238/1032286 Apr 30 20:28:43 why android:layout_above="@id/footer" is ignored ?? Apr 30 20:29:00 i see the gallery at top of display Apr 30 20:29:05 not above footer Apr 30 20:29:26 Whenever I add an 'assets' directory under 'res' I get build errors in Eclipse, am I missing something? Apr 30 20:29:48 assets is a top level directory in the project Apr 30 20:30:03 birbeck: ah, thanks! Apr 30 20:30:05 http://code.google.com/p/gdata-java-client/source/browse/branches/2/gdata/src/com/google/api/client/googleapis/GoogleHeaders.java?r=380 Apr 30 20:30:09 assets/ bin/ gen/ src/ res/ Apr 30 20:30:14 stiggpwnz: ^ Apr 30 20:30:20 silly me, much appreciated Apr 30 20:32:43 wongk, yeah mate, but why doesn't my eclipse import half of the classes including GoogleHeaders when I organize imports? I've added api library to my build config, and pretty much all the libraries from dependencies folder Apr 30 20:33:23 wongk, wait, it's in the gdata Apr 30 20:33:32 that i don't know, does it work when you add it manually? Apr 30 20:33:42 *import it manually Apr 30 20:33:55 wongk, i thought gdata isn't working on android Apr 30 20:34:01 wongk, only java Apr 30 20:34:14 there's a version for android Apr 30 20:34:18 i haven't used it Apr 30 20:35:13 should shell commands like reading a /proc/ file be done in a separate thread? Apr 30 20:36:19 stiggpwnz: http://code.google.com/p/google-api-java-client/source/browse/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleHeaders.java Apr 30 20:37:09 wongk, thanks mate, but this is wierd >__< Apr 30 20:38:00 i have solved Apr 30 20:38:03 my issue Apr 30 20:38:23 nice Apr 30 20:43:16 sweet street fighter x tekken coming for pc Apr 30 20:52:19 yeah sweet with locked on disc dlc characters Apr 30 20:52:28 So I've noticed the android emulator is using one processor really heavy, and leaving the other 7 idle. Any options for this? Apr 30 20:53:08 nope Apr 30 20:53:14 it's single threaded Apr 30 20:53:40 kamoricks: theoretically possible, no one seems willig to invest time/money Apr 30 20:54:07 you can turn on gpu accelleration if you're using ICS, if you haven't Apr 30 20:54:12 Hmm. It's using qemu, so if someone does one-to-many processor mapping in qemu, will the changes be propagated downstream, or is it using some custom version? Apr 30 20:54:38 kamoricks: modified qemu, but yeah, you are welcome to parallelize qemu :P Apr 30 20:55:07 kamoricks: i will set up a project on oDesk for $50 Apr 30 20:55:07 I've tried to parallelize some simple emulator I wrote once ... it turns out it's really difficult. Apr 30 20:55:32 g00s: That'd take all the fun out of it. Apr 30 20:55:33 you need to identify independently executable units of the system, and require that there's almost no synchronization between them, ever Apr 30 20:55:42 sync points kill any performance you hoped to reap from multicore Apr 30 20:55:58 Same issues as pipeline synchornization, then. Apr 30 20:57:08 hey guys, can someone tell me how can I make my WidgetConfigurationActivity communicate with my AppWidgetProvider? Apr 30 20:57:18 a full system emulator is basically one giant ball of interdependencies usually Apr 30 20:57:23 I think a more interesting (speed-wise) approach would be a special ARM-based architecture that would allow offloading a lot to host Apr 30 20:57:32 sometimes you have something like audio chip that is relatively independent, but often not Apr 30 20:57:36 we already have GPU offloading Apr 30 20:58:08 p_l: Something like VT-x, but for ARM instead of x86? Apr 30 20:58:21 kamoricks: no, that's hw virtualization of the same architecture Apr 30 20:59:04 JIT'ing the arm code might be good Apr 30 20:59:34 alankila: qemu afaik already did it a bit Apr 30 20:59:35 that's one way to eliminate the cost of opcode dispatch loop per emulated instruction. Reducing emulation accuracy would also help, like stop emulating arm caches Apr 30 20:59:56 apparently the qemu is based on rather accurate emulator, as opposed to a fast one Apr 30 21:00:00 p_l: What else is there to offload, really? Apr 30 21:00:35 kamoricks: hmm... for example, everything (I/O etc.) other than explicit ARM code (NDK) Apr 30 21:00:58 But something like Rosetta, but for ARM->x86, could be pretty cool. Apr 30 21:01:05 hey guys, can someone tell me how can I make my WidgetConfigurationActivity communicate with my AppWidgetProvider? The problem is, that I can not "extract" the Intent from ConfigActivity in the AppWidgetProvider, after the ConfigActivity finishes. Apr 30 21:01:26 what's up guys? How can I vertically center a text view inside of a layout? Here's the code I make so far but I can't seem to get the text view vertically aligned :( http://pastebin.com/j3qaeS5u Apr 30 21:03:09 ninjai: layout_gravity applies to the parent, layout applies to self. Also try with gravity="center_vertical" on the . Apr 30 21:06:53 Here's how I defeat the Settings... Step 1: Get my task ID, and every 500 milliseconds moveTaskToFront. Step 2: ??? Step 3: Profit! Apr 30 21:07:12 fabrice bellard is what i would call a "rock star" developer; if you think you're smart … don't comare yourself with him ;) Apr 30 21:07:22 Jonathan_Eyre: yeaaaaaah, that's not gonna work out so good Apr 30 21:07:37 kamoricks, thanks that worked :) Apr 30 21:07:43 ctate: Because? Apr 30 21:11:22 because the OS might notice you doing it Apr 30 21:11:48 ctate: Is it because moveTaskToFront cannot be called when another application is on the top of the stack? It seems like it might work... Apr 30 21:12:03 that too Apr 30 21:12:15 ctate: Of course the OS will notice, that's not a problem if it lets me do it. Apr 30 21:12:31 there are various things you can try, which may or may not continue to work in the future, and which may earn you a reputation as malware. Apr 30 21:13:13 I'm going to specifically ask for permission to lock down the tablet, and so far I only need to worry about Honeycomb. Apr 30 21:13:33 I don't expect SureLock will ever be flagged as malware, and they take over everything. Apr 30 21:15:17 hey guys, whats a good book/online tutorial for android dev? all the ones ive come across are for beginners, and they take too long at explaining things like hex codes and basic xml/java. i want something that gives me a brief run down of the different components, a general overview of what youd use them for and then some coding examples/design patterns/guidelines. any ideas? Apr 30 21:15:59 demifuror: d.android.com Apr 30 21:18:48 So I'm calling TextView.setBackgroundColor(R.color.myYellow); and the background is still black. There doesn't seem to be a setOpaque() method. Any ideas? Apr 30 21:20:53 demifuror: maybe reto's 3e is out, i would try that first Apr 30 21:20:58 kamoricks: setBackgroundColor takes a hex int, you can use setBackgroundResource or give the result of Color.parseColor to setBackgroundColor. Apr 30 21:21:04 http://developer.android.com/reference/android/widget/TextView.html Apr 30 21:21:27 I.e. setBackgroundColor takes the actual color value, not a resource. Apr 30 21:22:21 TheTrash: That's exactly what I was looking at. It says, and I quote, "color - the color of the background". Apr 30 21:22:24 TheTrash: Thanks for the solution. Apr 30 21:24:24 g00s: reto's 3e? Apr 30 21:24:42 setBackgroundResource() is double-confusing, since it says that it has to be a Drawable. Are colors Drawables now? Apr 30 21:25:25 ColorDrawable Apr 30 21:25:45 Given a rolling window of seven lists of seven shorts (sorted), the pairwise combination methods for a bitonic (or similar) sort, and the requirement to produce a sorted list of 49 shorts for each window position, what is the best way to re-use intermediate stages to minimise redundant work as the window rolls along? Apr 30 21:26:14 Gumboot: that was a question and not a tongue twister of some kind? Apr 30 21:26:20 so I have 4 icons now (36, 48, 72 and 96) Apr 30 21:26:31 lol alankila Apr 30 21:26:34 Yeah. I was just curious about whether this channel is populated with the sorts who can't resist problems like that. Apr 30 21:26:38 seven lists of seven sorted shorts Apr 30 21:26:42 I have placed them in their appropriate folders, but usually I place the icon of the app in drawable <- Apr 30 21:26:44 say that seven times fast Apr 30 21:26:52 Gumboot: Okay, so you're doing dynamic programming. Basically, you're attempting to reduce memory usage when computing sorted subarrays? Apr 30 21:26:57 not in h-m-l-xdpi Apr 30 21:27:07 Sicp: the drawable folder is pretty much only use for xml drawables Apr 30 21:27:13 *used Apr 30 21:27:16 2 questions how do widgets behave with the android:longClickable="true" prop set Apr 30 21:27:25 kamoricks: Well I'd be interested to see a dynamic programming solution to it, but I hadn't anticipated one. Apr 30 21:27:32 JakeWharton, or if you support 1.x Apr 30 21:27:33 :P Apr 30 21:27:35 you should always be using the density specific variants Apr 30 21:27:46 Gumboot: don't take this the wrong way, but isn't sorting 49 values pretty much trivial as far as things go? you can't tell even if you did not retain any state, I guess Apr 30 21:27:47 i dont trust 1.x with pulling from -mdpi Apr 30 21:27:48 i have direct dialers set but want to make it a long click but then can we delete the widget ? Apr 30 21:27:50 alright, so I just placed 4 icons in their appropriate folders Apr 30 21:27:55 I will try to launch now and see Apr 30 21:28:05 alankila: Depends on how far the window has to roll, doesn't it. Apr 30 21:28:08 you can probably omit the ldpi one and save yourself a few bytes Apr 30 21:28:11 I have no idea what your question actually means because I have no idea what kind of application you have in mind from that description Apr 30 21:28:16 Gumboot: Well, the *easiest* way would simply be to maintain a bitset, count, and check the cardinality. Apr 30 21:28:18 what's the proper query to get the cursor of images only in DCIM from MediaStore? Apr 30 21:28:37 alankila: who are u talking to Apr 30 21:28:47 dominicdinada: not to you. Apr 30 21:28:56 Gumboot: That's going to use slightly more memory than the best solution, and slightly more processor, but it's usually good enough (especially over naive). Apr 30 21:28:58 alankila: It's a median filter. Apr 30 21:29:20 2 questions how do widgets behave with the android:longClickable="true" prop set Apr 30 21:29:24 i have direct dialers set but want to make it a long click but then can we delete the widget ? Apr 30 21:29:46 dominicdinada: you can't do long clicks on widgets Apr 30 21:29:51 You actually don't need fully sorted lists, but sorting them fully can be helpful for some solutions. Only, I'm putting a fully-sorted solution up against a bitonic sort so I'm curious as to what can be done to the bitonic solution to give it its best chance. Apr 30 21:29:58 evancharlton: thank you :P Apr 30 21:30:17 Gumboot: http://msdn.microsoft.com/en-us/library/aa289166(v=vs.71).aspx would be the optimal solution (pardon the MSDN, but the alternative is a tech paper) Apr 30 21:30:24 guess i need a dialog to bad android doesnt have a clickduration setting Apr 30 21:30:58 guys what dies "reto's 3e" mean? Apr 30 21:31:03 Gumboot: The key is to generate sorted, instead of generate-then-sort. Apr 30 21:31:34 demifuror: context? Apr 30 21:32:00 alright JakeWharton, I removed what was in drawable and relied on the 4 icons i placed in their appropriate folders, it picked up on it just fine :) Apr 30 21:32:10 excellent Apr 30 21:32:16 evancharlton: i aksed for a book on android dev for experience programmers and g00s said maybe reto's 3e was out? Apr 30 21:32:22 Gumboot: another stupid question: a median filter for something like grayscale image? Using a 7x7 kernel? Apr 30 21:32:29 demifuror: third edition Apr 30 21:32:51 JakeWharton: what's reto? Apr 30 21:32:55 hahaha Apr 30 21:32:55 http://www.amazon.com/Professional-Android-4-Application-Development/dp/1118102274/ref=sr_1_1?ie=UTF8&qid=1335821563&sr=8-1 Apr 30 21:33:07 alankila: Greyscale is a reasonable assumption. Apr 30 21:33:18 because I start to understand the problem domain if so. Your 7x7 shorts stuff just did not translate to anything I could understand initially. Apr 30 21:33:19 kamoricks: Generate what sorted? k=65536 here. Apr 30 21:33:23 JakeWharton: cool! thanks very much dude :) Apr 30 21:33:35 Gumboot: The combinations. Apr 30 21:34:04 I can't _choose_ the combinations. They're aribtrary and appear one-at-a-time at the leading edge of the rolling window. Apr 30 21:34:23 Although I've preconditioned the question to sort them because that happens to be a trivial operation at that stage. Apr 30 21:34:41 I imagine I would maintain the data in sorted array in one dimension, and then just do just about enough mergesort to get the median against the other dimension Apr 30 21:35:04 it's plenty of work, so pretty primitive. Can't think of anything better right now Apr 30 21:35:13 alankila: That's the method I'm holding in the other hand as a point of reference. Apr 30 21:35:16 Gumboot: Ah. You have en entirely different problem than what I understood it as. Apr 30 21:35:17 ok so what about the splash screen, it gets shrunk when I have it on the phone Apr 30 21:35:28 wait to see the design site Apr 30 21:35:50 Gumboot: So you're not generating these short combinations from a list, you're attempting to create a list out of them. So you're looking for an efficient on-line sorting algorithm. Apr 30 21:36:18 alankila: The trick is that a merge can't be vectorised on conventional hardware. A bitonic sort can, but within the constraints it's hard to be sure which is actually going to be faster. Apr 30 21:36:27 how difficult would it be to make an application with a map that follows a users location? Apr 30 21:36:31 hmmm, there's no mention of splash screens on android design Apr 30 21:36:43 Retistic: Not especially. Apr 30 21:36:44 Gumboot: well, if this is really a 2d picture processing problem, it's parallelizable in other ways Apr 30 21:36:49 i have programming experience, just not with java or the ndk Apr 30 21:36:51 just hand chunks of the image to different cpu cores Apr 30 21:36:52 i mean adk Apr 30 21:36:53 Sicp: that's probably on purpose :) Apr 30 21:36:57 lol Apr 30 21:36:59 kamoricks: Yep. But the pre-condition for the sort algorithm is the use of combining pairs of lists in the bitonic form. Apr 30 21:37:00 not very advised? Apr 30 21:37:02 you don't *have* to parallelize the algorithm itself Apr 30 21:37:06 fuck it, I could do without it Apr 30 21:37:10 but just to know Apr 30 21:37:18 Gumboot: So uh. The precondition is that you're using an on-line mergesort? Apr 30 21:37:19 alankila: You can't do that with SIMD. Apr 30 21:37:26 Not if you use a sorting algorithm that has branches in it. Apr 30 21:37:29 kamoricks: is it difficult to get the geolocation working? it seems tough from the example Apr 30 21:37:36 just bought that book guys, time for bed and a read of it on the kindle! :D cheers guys :) Apr 30 21:37:36 Gumboot: ah... my apologies, I did read very poorly Apr 30 21:37:43 Retistic: It doesn't work on the emulator. That's the only difficulty. Apr 30 21:37:57 I somehow confused vectorization with parallelization. A different kind of parallelization. Apr 30 21:38:22 kamoricks: i bought on android phone. essentially ive developed an app using titanium and i hate it. i want to go native, but im worried it will take another week to port over Apr 30 21:38:22 kamoricks: Consider it a black box mergesort-like primitive. The implementation is different. Apr 30 21:38:23 Retistic: You set up an Intent to trigger a Service which gets the LocationManagerFactory from your LocationManagerFactorySingleton to grab the Location at a magic interval (0 is okay). Apr 30 21:38:47 Retistic: What's complex about that? Apr 30 21:39:02 I used to kick these things around work all the time in my last job. I kind of miss it. Now I drop them in random IRC channels. Apr 30 21:39:39 kamoricks: that seems incredibly easy. i just need to learn how to trigger a service and what an intent is. titanium abstracts all of that Apr 30 21:39:55 RTFM Apr 30 21:39:56 I would suppose to that preserve the resolution of the splash screen, you just make 4 of them for every density! Apr 30 21:40:05 Sicp: Uh. Apr 30 21:40:14 what? Apr 30 21:40:17 just like the icon Apr 30 21:40:20 I think you are missing the point. Apr 30 21:40:25 how so? Apr 30 21:40:31 Apps don't have splash screens. Apr 30 21:40:42 ? Apr 30 21:40:45 what? Apr 30 21:40:49 ? Apr 30 21:41:16 Sicp: if you had a full screen splash (and I strongly recommend that you don't) it's probably best to have one large image that you scale yourself to fit the screen. Apr 30 21:41:22 Retistic how is titanium? Apr 30 21:41:28 I see Apr 30 21:41:42 Gaz: i hate it, there are so many bugs Apr 30 21:41:47 and why don't you recommend it? it'll only be there for about 1.5 seconds and...well it looks pretty Apr 30 21:41:56 over 1800 Apr 30 21:42:02 Sicp: What value does it add to the application? Apr 30 21:42:10 Retistic shame looks promising Apr 30 21:42:11 and 90% of your dev time is making work arounds Apr 30 21:42:17 it adds both disk usage *and* download time! Apr 30 21:42:18 ouuuch Apr 30 21:42:18 splash screens are there to tell the user the thing did not crash. Apr 30 21:42:23 I don't know man..meh Apr 30 21:42:27 as long as something happens on the screen, people think it's fast Apr 30 21:42:41 alankila: I'd prefer to actually show something useful, then. Apr 30 21:42:41 Retistic how good is your java id say android is a steep learning curve tbh, like 6 months full time Apr 30 21:42:42 alankila: that's a loading screen, not a splash Apr 30 21:42:45 a splash is pure advertising Apr 30 21:42:59 Gaz`: i don't know any java Apr 30 21:43:00 ok, so that can be left as room for advertising Apr 30 21:43:03 "hi! i am the game that you just ran! instead of playing the game you are looking at a confirmation that i am the game you just ran!" Apr 30 21:43:04 ok, now that's an answer Apr 30 21:43:07 ctate: oh. Well, I thought the two are the same. Apr 30 21:43:11 Sicp: splash screens don't make much sense on Android Apr 30 21:43:11 ctate: Is it still a loading screen if it doesn't have a progress bar? Apr 30 21:43:12 Gaz`: really? that long? Apr 30 21:43:13 If it must load things before any sort of initial usefulness, like a game, it should have a progress bar at the least. Apr 30 21:43:18 Sicp: unless it's a game Apr 30 21:43:19 Retistic so maybe some other tech like phonegap Apr 30 21:43:23 alright, fuck the splash screen Apr 30 21:43:28 Indeed, splash is not *terribly* useful although it doesn't have to be annoying of intrusive Apr 30 21:43:30 Retistic - depends, for me it was yesa Apr 30 21:43:31 Gumboot: sometimes (e.g. Angry Birds) they say "Loading..." but as a static image. Apr 30 21:43:34 Gaz`: phonegap doesn't do what i need Apr 30 21:43:38 the best splash screens are somehow interactive and serve as the menu and thematic orientation Apr 30 21:43:40 i'd rather see a progress indication fo some sort Apr 30 21:43:45 Angry Birds has both Apr 30 21:43:46 Retistic what do u need Apr 30 21:43:50 * alankila thinks braid's splash screen is the best, it's actually the game itself Apr 30 21:44:01 besides, I have 2 main loaders at two critical intervals in the app Apr 30 21:44:06 it has a "Rovio" splash, which can be immediately dismissed with a tap; then it has a static image while the game loads all of its artwork and sounds and so on Apr 30 21:44:08 yea, the splash is a deal breaker Apr 30 21:44:29 being able to dismiss the splash on demand wins major kudos Apr 30 21:44:36 (hint) Apr 30 21:44:38 It starts loading before you bring up the loading screen, right? Apr 30 21:44:49 Gumboot: Generally simultaniously. Apr 30 21:44:54 Gaz`: phonegap loads a map from the google maps javascript api and i need one that uses native maps Apr 30 21:45:01 sometimes, a splash screen (if it's minimalistic enough) can make sense, but mainly to give impression that everything is working, not hung Apr 30 21:45:02 Gumboot: yeah Apr 30 21:45:13 Retistic: Javascript API actually has niftier features. Apr 30 21:45:15 Retistic - ah well u could do that in android using examples v fast Apr 30 21:45:21 basically, if you do *not* have a lot of time-consuming setup to do at launch, don't put up a splash Apr 30 21:45:23 Well that's almost like an interactive loading screen. Apr 30 21:45:27 your users will be happier that way Apr 30 21:45:28 Invad-a-load! Apr 30 21:45:36 kamoricks: it just doesn't pan anywhere near as well on the device Apr 30 21:45:51 if you *do* have a lot of work to do by way of setup, then put something on screen fast that lets the user know that's what is happening, and try like heck to minimize the time it takes Apr 30 21:46:05 and preferably give them some concrete indicator that it's making progress Apr 30 21:46:13 yeh Apr 30 21:46:24 Or put nothing up and take the abuse you deserve for being slow to start. Apr 30 21:46:26 disply tips on the loading screens Apr 30 21:46:27 Thus Spake CTate Apr 30 21:46:29 that change Apr 30 21:46:40 Gaz`: thats what im thinking, i just need and app that shows the user a map and follows their location Apr 30 21:46:51 you know, if it wasn't for this channel I wouldn't have finished my app Apr 30 21:46:58 been in the works for 8 months Apr 30 21:47:02 the splash screen thing seems to me like an overflow from iOS Apr 30 21:47:02 Sicp thats all my apps! Apr 30 21:47:12 Gaz`: and then send the location to my server on a button press Apr 30 21:47:14 cause WinCE didn't need it ;) Apr 30 21:47:21 Retistic check your pm im msging u Apr 30 21:47:31 Retistic: Gee, this seems like a remarkably similar concept to the exact app I'm doing. Apr 30 21:47:50 literally without this chan id have completed no apps, stackoverflow is also up there Apr 30 21:47:51 kamoricks: really? Apr 30 21:47:56 Yes. Apr 30 21:47:59 and no google well game over Apr 30 21:48:07 Gaz`: didn't get the pm Apr 30 21:48:26 sent again Apr 30 21:48:29 what irc u on lol Apr 30 21:48:41 Gaz`: stupid empathy in ubuntu Apr 30 21:48:45 ok why do u need this software is what im asking? Apr 30 21:48:50 ive written something similar Apr 30 21:48:58 or identical Apr 30 21:48:59 :) Apr 30 21:49:10 but it just sits on the hd Apr 30 21:49:10 :) Apr 30 21:49:26 * kamoricks wonders how many times this app has been written. Apr 30 21:49:31 "I have an elegant app for this but this margin is too small to contain it" Apr 30 21:49:44 kamoricks: whats the purpose of yours? Apr 30 21:50:01 Retistic: Crowd-sourcing locations of interest. Apr 30 21:51:36 kamoricks: i bet its really popular, and i don't know why i wasted a month developing it in titanium Apr 30 21:56:56 my text view background fills the entire layout. How can I best make it just fill as much as is needed (just behind all the text)? Apr 30 21:57:23 Anyone experienced with the new amazon IAP stuff? Does anyone know if they consider using IAP items to be "user specific" and tracked completely differently based on user even if the app otherwise has no user specific stuff? Apr 30 21:57:47 ninjai: Set the TextView's size to wrap_content. Apr 30 21:58:23 property.setBackgroundResource(R.color.stateViewChangedHighlight); is not changing the color either. Why not? Apr 30 21:59:55 hello all Apr 30 22:00:10 kamoricks, both height and width are set to wrap_content Apr 30 22:02:48 hi, how can i have a activiy with many textview and have a actionbar that disappear while entering the data, what should do? Apr 30 22:03:09 call .hide() when any EditText gets focus Apr 30 22:03:32 .hide() syntax error Apr 30 22:03:53 i dont think you can start a statement with a dot like that can you? Apr 30 22:04:05 thwap Apr 30 22:04:17 canadiancow: it's a free country Apr 30 22:04:20 well, here it is Apr 30 22:08:20 currently with wrap_content in my text view for both attributes, my textview's background is taking up the whole layout. Can't I compact it to just surround the text in my text view somehow? Apr 30 22:09:15 I have http://pastebin.com/JybV7s62 . Long.toString() is giving me 0xffffee00 , but why is the text still white and the background still black? Apr 30 22:11:48 anybody have a good alert dialog builder to customize everything like boarders buttons boarder besides the ref sits Apr 30 22:11:56 color Apr 30 22:17:03 it's called 'Activity' :) Apr 30 22:18:53 lol all the examples i see show none still all boarders and just that do you suck yes or no.... or 300 words Apr 30 22:21:24 ctate: ^^ Apr 30 22:22:13 i was serious. pretty much any time you want to customize a dialog more than the titles of the buttons, you're better off writing an Activity that uses the dialog visual theme Apr 30 22:22:16 that doesn't even make sense Apr 30 22:22:40 and the "do you suck yes or no" basically just threw out any good will on the part of the channel ops you might have enjoyed by default Apr 30 22:24:30 opps it wasnt directed to anybody it was to showing basic "custom dialogs" Apr 30 22:25:02 which are hardly the likes of say zedge facebook zoosk and the likes Apr 30 22:25:55 all white backgrounds or transparebnt like droid notify Apr 30 22:26:41 ctate: Apr 30 22:26:53 those typically look that way because the platform default theme has been customized by the OEM Apr 30 22:27:07 im using viewpager with a tab host containing four tabs, each tab is a fragment and i need to show a footer on three of the four tabs, which is also a fragment, any ideas? nested fragments crash Apr 30 22:27:40 no smspopup for 4 years has had very custom ones no matter what same on my g1 as my desire and mesmorize and now my electfiy Apr 30 22:27:51 electrify* Apr 30 22:28:04 birbeck: either use a View for the footer or use a PagerAdapter and lay the fragments out on the pages yourself Apr 30 22:28:29 birbeck: my god, tabs and viewpager concurrently? Somewhere android-support developer just killed a kitten Apr 30 22:28:38 they do use an image based alert as i have seen in smspopup and droid notify which are both open source Apr 30 22:28:54 maybe mobile tuts has one Apr 30 22:29:02 but you are quite right, fragments can't nest. It's natural to want to use fragments within fragments. The viewpager's views don't have to be fragments though, technically... Apr 30 22:29:20 dominicdinada: http://developer.android.com/guide/topics/ui/custom-components.html Apr 30 22:29:22 dominicdinada: if htey do what you want, and they're open source, then that's your answer -- get their source and look at how they did it Apr 30 22:30:05 ty both jeppy and ctate Apr 30 22:30:08 I am a winner. Apr 30 22:30:49 There is some guy hounding me on google play. He's 1-starring all my apps; how do I get rid of this guy? Apr 30 22:31:09 Libel! Apr 30 22:31:19 maybe he just has very high standards Apr 30 22:31:22 pragma link ? Apr 30 22:31:31 report him to google Apr 30 22:31:32 or more likely, is a developer for competing application Apr 30 22:32:02 http://pastebin.com/6v8wMrsn <- This should work! Why is this not working? The colors don't change, even though I get the logging statements! Apr 30 22:32:40 if its either id file a complaint Apr 30 22:32:49 dominicdinada: file a complaint where? Apr 30 22:32:59 Google says to click the "spam" button. Apr 30 22:33:02 JakeWharton: thanks, ill look at adding them through my pager adapter Apr 30 22:33:19 kamoricks: what is 'property'? Apr 30 22:33:21 look around the dev website i havent used it yet as im new to android Apr 30 22:33:28 ctate: A TextView. Apr 30 22:33:28 alankila: tabs and viewpagers are very commonly used together, most google apps do it Apr 30 22:34:47 kamoricks: my guess is: these values are not used by android as property references, the properties have been resolved by this point and changing them might only affect future components? Apr 30 22:35:01 birbeck: really? I've seen actionbar and viewpager, fused, not a tabhost Apr 30 22:35:24 maybe you did not mean tabs-with-multiple-viewpagers, one per each tab which is how I read what you said Apr 30 22:35:36 pragma-: as in where u upload the apps on play i mean Apr 30 22:36:40 alankila: Well, the property exists. I'm setting it. What else is required? Apr 30 22:36:42 alankila: no, a single view pager, multiple tags Apr 30 22:36:44 tabs* Apr 30 22:37:18 yeah shouldn't you be using TabWidget and not TabHost Apr 30 22:37:50 kamoricks: maybe you have to construct new components which use that property or something? Don't really know. Apr 30 22:38:11 kamoricks said that 'property' was a TextView Apr 30 22:38:38 try explicitly invalidating it after you set the colors. that is supposed to happen automatically if the colors actually changed; i'm curious whether it affects things. Apr 30 22:38:55 ideally it won't have any effect, and you'll be confirmed that the bug is something else :) Apr 30 22:39:02 ctate: With an .invalidate() call? Yeah, no effect. Apr 30 22:39:23 ctate: Which begs the question why it's not being set, or rather, why it is being set and then later changed back with no interference from my part... Apr 30 22:39:25 need to see more code, then. are you sure that 'properties' points to the view you think it does? Apr 30 22:39:39 etc Apr 30 22:40:05 http://pastebin.com/1RB4F1BW is the untrimmed version. Apr 30 22:40:13 JakeWharton: im doing this… http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html Apr 30 22:40:21 yeah Apr 30 22:40:30 use a PagerAdapter and attach the multiple fragments to each page yourself Apr 30 22:41:05 wait why are you linking this? Apr 30 22:41:29 just as an example of what im doing Apr 30 22:41:37 oh Apr 30 22:42:30 Hello, im creating a small game, I'm using an AlertDialog in a thread that is not my main, using looper, but when it displays the AlertDialog and the user clicks the "cancel" button my game thread starts running again but the Alertdialog is in top and won't dissapear: http://pastebin.com/g6VVmrFJ Apr 30 22:42:40 Any ideas? :D Apr 30 22:42:54 kamoricks: ah, I indeed had some difficulties understanding your shorter earlier code fragment. You can safely discard what I said. Apr 30 22:45:47 why on earth are you starting and then stopping a new looper thread? Apr 30 22:46:01 (deini) Apr 30 22:56:23 ctate: :$ I tought it had to be that way Apr 30 22:56:42 can I develop for Android using the Android SDK + OpenJDK in GNU/Linux ? Or do I need Oracle JDK ? Apr 30 22:57:06 I just want to be able to show my AlertDialog from my GameSurface but I don't know how, been reading tons and still can't figur eit out Apr 30 23:00:43 openjdk works Apr 30 23:00:53 thanks Apr 30 23:02:02 and can you suggest a nice book in Android Development ? I already know a bit of Java (basic concepts, OOP, etc.) but I've never developed anything for android Apr 30 23:02:57 o riley has a good android dev book I think Apr 30 23:04:10 Am I the only one who reads 'kernelpnc' as 'kernelpicnic'? Apr 30 23:04:41 no Apr 30 23:04:43 kernel panic Apr 30 23:04:48 kernel panic? Apr 30 23:04:54 panic! Apr 30 23:05:04 A picnic sounds much less alarming. Apr 30 23:06:18 I mean, you don't think "oh crap! My kernel has gone for a picnic." You think "ooh... that's a good idea." Apr 30 23:07:59 and would you think it's worth learning generic android development instead of going directly at Android game dev ? Apr 30 23:09:06 dysoco, well you never know if you'll need to write an app real quick that does the same thing as another app on the market Apr 30 23:09:26 hum ? Apr 30 23:09:48 that was my sarcastic way of saying that no matter what app you make, odds are one already exists for it Apr 30 23:09:59 nevertheless it is fun Apr 30 23:11:51 :/ Apr 30 23:17:17 omnom Apr 30 23:44:09 http://www.fiercedeveloper.com/story/evans-data-developers-are-moving-away-native-platforms-app-development/2012-04-26 Apr 30 23:44:31 hi Apr 30 23:44:52 g00s: why don't the trend lines match the actual bar graphs? Apr 30 23:45:38 because FUD drives more traffic methinks Apr 30 23:46:21 g00s, you like following fud, don't you Apr 30 23:46:34 why is this fud ? Apr 30 23:46:51 moving away from native apps sounds like a bunch of bull, too Apr 30 23:47:11 * pfn hasn't seen any anecdotal evidence that seems to indicate that mobile webapps usage is increasing Apr 30 23:47:50 for many types of apps, a webapp makes perfect sense. not to start a war; maybe people are getting better at identifying which types those are Apr 30 23:48:01 instead of knee kerk native app impl Apr 30 23:48:34 * pfn hasn't really seen any good mobile webapps Apr 30 23:48:36 JakeWharton: pfn: i'm very curious why you think this is fud, somehow you see this as an attack on your way of life or something Apr 30 23:48:45 lighten up ;) Apr 30 23:48:52 I don't do android professionally :p Apr 30 23:49:00 well, I do a little Apr 30 23:49:03 I DGAF Apr 30 23:49:05 but it's not my bread and butter Apr 30 23:49:06 but when you show a chart Apr 30 23:49:09 make it accurate Apr 30 23:49:24 the chart's also pretty bogus, since it shows a future projection without showing a past trend Apr 30 23:50:04 and people had plenty of time to write mobile apps before ios2 came out Apr 30 23:50:10 but they didn't Apr 30 23:50:52 hi, I'm looking at this: http://www.ezzylearning.com/tutorial.aspx?tid=1763429&q=customizing-android-listview-items-with-custom-arrayadapter Specifically, WeatherAdapter.java -> row.setTag(holder); The android docs weren't a lot of help. What are tags, or what are they doing in this example? Apr 30 23:55:05 Hey, I'm looking into using startActivityForResult() Apr 30 23:56:00 How do I send the result back? Apr 30 23:56:29 setResult()? Apr 30 23:58:14 g00s, i can see why you'd move away from native Apr 30 23:58:19 for most stuff May 01 00:00:26 canadiancow|work: her is an app for you. if you think you are being profiled by the TSA for being bovine, you can flag that May 01 00:00:27 http://www.theverge.com/2012/4/30/2989647/flyrights-app-profiling-complaint-tsa May 01 00:00:34 :) May 01 00:01:19 ... May 01 00:01:39 so im a truster traveller May 01 00:01:43 i dont put up with that shit May 01 00:01:59 and if they give you any trouble, hoof to the head ! May 01 00:02:04 *bam* May 01 00:02:45 The MyTouch 4G corrupted their public classpath by exposing a partial GSON implementation but I remember hearing that another device did this with Jackson too. May 01 00:02:49 Anyone able to cite that? May 01 00:03:03 I can't find references to the Jackson version being exposed May 01 00:04:30 JakeWharton: so you were including your own jar, but it collided with something on a few models ? May 01 00:05:14 It hasn't happened to me personally. I'm just trying to find a citation May 01 00:05:29 i only heard about this once, i think it was on SO May 01 00:05:37 Which? GSON? May 01 00:05:41 that one is well documented May 01 00:05:49 maybe May 01 00:14:49 what does repo do that git submodules does not ? May 01 00:15:23 did submodules just get implemented too late in the game ? May 01 00:17:49 submodules are a huge pain May 01 00:17:59 the API is shit May 01 00:18:52 repo lets you coordinate branches that span multiple repos May 01 00:19:00 using submodules that would be a huge pain May 01 00:19:22 hm May 01 00:25:33 I want to keep track of how much time is spent on an activity, I wanted to just do: in the oncreate do timeLong = System.currentTimeMillis() then in the onPause do theRealTime = System.currentTimeMillis() - timeLong; The docs say: This method shouldn't be used for measuring timeouts or other elapsed time measurements. Does that mean what I'm trying to do I should do a different way? May 01 00:27:35 T-Dub|DlolPics onResume and onPause May 01 00:27:49 Does onResume get exicuted on initial startup? May 01 00:28:07 http://developer.android.com/images/activity_lifecycle.png May 01 00:28:31 Oh sweet, thanks. May 01 00:28:50 So even though the docs say "This method shouldn't be used for measuring timeouts or other elapsed time measurements." It would be ok to do what I stated? May 01 00:29:53 'this method' = ? May 01 00:30:44 timeLong = System.currentTimeMillis(); in the onResume then theRealTime = System.currentTimeMillis() - timeLong; in the onPause May 01 00:31:06 i reckon it's what i would do May 01 00:31:10 The docs say not to use System.currentTimeMillis(); for measuring timeouts or other elapsed time measurements. May 01 00:31:27 I just wanted sure why the docs say that, because I'm specifically measuing an elapsted time May 01 00:31:33 wasted* not wanted May 01 00:31:48 This method shouldn't be used for measuring timeouts or other elapsed time measurements, as changing the system time can affect the results. May 01 00:32:18 i wonder how anyone would go about changing the system time while your activity is visible May 01 00:33:23 xorgate, adb shell May 01 00:33:24 Alright, thanks for the help. I wasn't sure what that last part ment because it isn't a method to change the time, so I wasn't sure why that was put in. May 01 00:33:42 well anyone doing that by hand... May 01 00:33:43 xorgate: DST May 01 00:33:51 xorgate: NTP sync May 01 00:33:56 evancharlton, dst doesn't change clock May 01 00:34:01 at least not on a non-dumb OS May 01 00:34:02 dst should not matter i think May 01 00:34:40 hm, wonder how leap seconds work with System.currentTimeMillis() May 01 00:34:41 if at all May 01 00:34:50 no idea May 01 00:36:35 i think it has nothing to do with it May 01 00:36:47 your locale handles that May 01 00:36:51 timezone etc May 01 00:37:14 it's not like 1000 millisec suddenly didn't happen May 01 00:37:30 leap seconds aren't locale May 01 00:37:52 evancharlton: just like anything else that changes the current wall time May 01 00:37:57 i.e NITZ or NTP May 01 00:39:06 there's a reason we have SystemClock.uptimeMillis() :) May 01 00:41:38 I have a button under listview, yet listview is always covering it when there's enough items - how can I make it not do so? May 01 00:45:10 vadi2 try setting its layout_weight May 01 00:45:31 hm, weight? May 01 00:46:33 http://stackoverflow.com/questions/7253455/linearlayour-below-listview-is-not-visible May 01 00:48:28 layout_weight, not weight May 01 00:48:50 layout_wait May 01 00:48:56 its like a delay May 01 00:52:17 I wish java had python's triple quoted multi-line strings. May 01 00:52:26 wish java had a lot of features May 01 00:52:46 readme que? May 01 00:52:54 python's docstrings May 01 00:53:11 Jug6ernaut: in py, you can have mutliline string literals like """ this """ May 01 00:53:29 which does? May 01 00:53:35 Jug6ernaut: python May 01 00:53:50 * Jug6ernaut saw that lol May 01 00:54:00 python does not lol May 01 00:54:08 indeed May 01 00:56:58 can you actively change the options menu? May 01 00:57:21 anyone can suggest the right layout to use to create (programmatically) a 2x2 table with cells that have all the same size? May 01 00:57:30 i had it that when i hit one button it sets a flag so that it should show a different set of buttons May 01 00:58:16 GridLayout screws up the column widths, TableLayout doesn't stretch its children as expected May 01 00:58:33 lol May 01 00:58:37 damn was about to suggest those May 01 00:58:55 Pragma: write your own that does the measurement/layout May 01 00:58:57 it's really simple May 01 00:59:01 *relatively May 01 00:59:36 jakewharton any thoughts on my connundrem? May 01 00:59:47 onPrepareOptionsMenu is called before the menu is shown May 01 00:59:49 I would like everyone to know that Pragma is not pragma- May 01 00:59:56 invalidateOptionsMenu will call onCreateOptionsMenu May 01 00:59:59 extrapolate May 01 01:00:09 yes, we're different pragmas :D May 01 01:00:21 * ctate | GridLayout screws up the column widths May 01 01:00:21 can anyone direct me to main samsung dev channels? May 01 01:00:23 Pragma: how so? May 01 01:00:37 I'm trying to work on a At&T i717 May 01 01:00:49 ctate: I have no clue, it stretches only the last column to fill the parent May 01 01:01:08 Pragma: instead of stretching both columns equally? May 01 01:01:11 ctate: I'm possibly setting wrong parameters somewhere.. don't know May 01 01:01:17 ctate: yes May 01 01:01:22 RussellAlan i doubt theres such a thing. why so specific May 01 01:01:28 yeah, i'd assume the problem is how the layout is defined first May 01 01:01:52 xorgate: Having trouble with the At&T Note sim unlocking May 01 01:02:03 Working ona dev project which requires it. May 01 01:02:35 Pragma: i'm curious. can you pastebin the nonworky GridLayout approach? May 01 01:02:37 Root/custom ROMs, head to #android-root May 01 01:02:39 there's a #teamhacksung May 01 01:02:44 hm, I've been even looking at the code of GridLayout itself, but it's quite hard to understand May 01 01:03:08 Pragma: just one table, 2x2, with 4 cells? May 01 01:03:10 ctate: hm, yes, give me some minutes to rewrite it (as I've been experimenting with other approaches now) May 01 01:03:17 k May 01 01:03:37 this can be done in seconds by nesting LinearLayout and using layout weight, but it is not a resource friendly way to do it. May 01 01:04:04 readme: no resources, I'm doing everything programmatically May 01 01:04:17 I wasn't referring to resources in R. May 01 01:04:26 I was referring to CPU, Memory etc. type of resources. May 01 01:04:36 ah May 01 01:04:57 why ? It's a very simple layout... May 01 01:05:09 nested layouts are bad for performance May 01 01:05:20 but it would get you what you want very quickly May 01 01:05:36 that is all May 01 01:05:52 i hear that all the time, and while i dont doubt it at all, with what? initial loading of the activity/layout/dialog w/e? May 01 01:06:33 inflation, calls to onMeausure, onLayout, and onDraw May 01 01:06:35 findViewById May 01 01:06:43 just about everything that needs to recursively traverse the view hierarchy May 01 01:06:45 Jug6ernaut: layout passes May 01 01:06:50 drawing May 01 01:06:58 mostly layout passes / invalidates May 01 01:07:06 ok May 01 01:07:20 * Jug6ernaut is satisfied hehe May 01 01:07:30 time to do an invalidate can, in the pathological cases, *double* with every extra level of nesting May 01 01:07:36 wow May 01 01:08:00 the layout implementations are very flexible May 01 01:08:20 this means that they can require a lot of work to sort out the final result among various lazy-calculated constraints May 01 01:09:00 [this is actually another reason why writing your own custom layouts can be good for performance. if you know your layout requirements, you can write something that very efficiently handles *just that case*] May 01 01:09:37 something I would do only after the simplest possible implementation proves to be too slow May 01 01:10:00 it could be about flexibility too, not just speed May 01 01:10:29 ctate could you elaborate on what you mean by "writing your own custom layouts"? by hand as opposed to ui builder? May 01 01:10:43 JakeWharton: i wrote one single HttpRequest method that does all the request in the api I'm consuming today, including Get, Post, and Put :) May 01 01:10:55 Jug6ernaut: no, i mean implement your own layout to use instead of e.g. RelativeLayout or whatever May 01 01:11:03 ahhh ok May 01 01:11:34 flexible is nice May 01 01:12:45 exactly May 01 01:13:01 for the platform-provided toolkit, it's important that they be usable to achieve all kinds of everything May 01 01:13:04 ctate: http://pastebin.com/gW7WEJrJ <-- this code is actually close to what I want: the grid is 2x2 with all cells of the same size. However the children aren't resized to match the cell size (they are aligned on top/left). May 01 01:13:38 im sad to admit this but I cannot find invalidateOptionsMenu May 01 01:13:39 yikes Y U NO XML LAYOUT May 01 01:13:54 lol May 01 01:14:00 it should be in the activity context right? May 01 01:14:42 ctate: the ColoredButton is derived from View and implements onMeasure(), however I have no clue about what to return from there to make the child fully stretchable May 01 01:14:44 api level 11 + May 01 01:14:48 NNominatus: ^ May 01 01:14:48 ^ May 01 01:15:25 Pragma, you should return what the child should be based on the MSpecs that were passed to you May 01 01:15:26 Pragma: why do you need a ColoredButton type? Button is already colored May 01 01:15:57 i see May 01 01:16:10 figures... May 01 01:16:24 t0mless: the specs give me the whole screen space, that is, for one children I get the width of the whole screen (not of the cell) May 01 01:16:59 then your parent view is passing the wrong specs May 01 01:16:59 Pragma: so 1/1, 1/2, 1/3, 1/4, ...? May 01 01:17:01 xorgate: thanks, that did it May 01 01:17:27 readme: because that button does other things too: I just need a custom class May 01 01:17:45 so how can i change the options menu in 2.3.3? May 01 01:18:15 onPrepareOptionsMenu is called before showing the menu May 01 01:18:24 onCreate is only called the first time it's created May 01 01:18:34 onPrepare is called everytime it's shown May 01 01:18:46 readme: well.. I could trick it by returning 1/2 * width-of-screen in this case, but that would be cheating: what if I have a 9x9 grid? May 01 01:18:50 i see May 01 01:18:51 thx May 01 01:19:53 you should be passing the max width they're allowed in an MeasureSpec in your parent view's onLayout() May 01 01:20:00 or layout()... I forget which May 01 01:20:00 Pragma: if 9x9, then width = screenwidth / 9, height = screenheight / 9 May 01 01:20:28 but you've got to figure out what you'd do for something like 1x3 May 01 01:20:32 readme: hehe.. that's cheating: the button doesn't know the grid size May 01 01:20:41 I think that should be width / 3, height / 1 May 01 01:20:41 Pragma: i guess i wasn't clear that i was curious why GridLayout wasn't working for you May 01 01:20:51 but thought you were just defining it in xml May 01 01:20:52 :) May 01 01:21:41 t0mless: if I return the maximum width I get one children that covers the entire area of the screen May 01 01:22:03 haha.... I'm getting crazy over this :D May 01 01:22:03 you should be passing the max width they're allowed in a MeasureSpec in your parent view's onLayout() May 01 01:22:56 the parent is GridLayout, and the MeasureSpec it's passing is the whole width of the screen May 01 01:23:06 I guess I'll try the nested LinearLayout thingie May 01 01:23:07 You extended gridlayout May 01 01:23:19 so the parent view is X May 01 01:23:59 X is actually a LinearLayout that contains a GridLayout that contains the ColoredButtons... It's a complex layout May 01 01:24:26 why do you need a linear layout to hold a grid layout? May 01 01:24:55 yeah, that's ... odd May 01 01:24:56 because there are different grids May 01 01:25:06 seriously, what goes wrong if you just use GridLayout straight? May 01 01:25:11 i'm still unclear on that May 01 01:25:15 So... they can just be their own grids without being inside a linear layout May 01 01:25:18 one is 2x2, another contains different children May 01 01:25:33 they overlap or something? May 01 01:26:01 i mean, GridLayout is quite flexible if you conceptualize your "2x2" as actually being 20x20 with colspans/rowspans of 10 each way.... May 01 01:26:30 well.. say that I want a 3x3 grid above and a 2x2 grid below May 01 01:27:02 ctate: do you know what kind of layout the android market is using? May 01 01:27:09 the home activity) May 01 01:27:10 it's quite hard to do with a single GridLayout (though I'm not saying it can't be done.. maybe it can) May 01 01:27:15 Pragma you don't have to extend LinearLayout to do that May 01 01:27:18 Play uses a vertical LinearLayout with custom rows May 01 01:27:33 afaik May 01 01:27:37 hmm, ok thanks May 01 01:27:51 g00s, oh, as to your question, no, I never posited that it was a listview May 01 01:27:57 because they have to run very far back in versions May 01 01:28:05 pfn: no worries :) May 01 01:28:13 (like, Donut or something) May 01 01:28:26 I might have said that it could be easily implemented using a linearlayout May 01 01:28:40 for some value of easy May 01 01:29:51 is there a pageflip animation for android, other than en't resized to match the cell size (they are aligned on top May 01 01:29:56 sorry, let me try that again May 01 01:30:08 is there a page flip animation for android, other than http://code.google.com/p/android-page-curl/ May 01 01:31:06 mmm donuts May 01 01:36:48 argh damn recruiters May 01 01:36:58 I can have more than one element in a test project's manifest, right May 01 01:47:35 * readme facepalms May 01 01:47:56 it was because I changed my project to a library and never pointed the test project at an application, I think. May 01 01:50:44 it turns out that two nested LinearLayouts work nicely, as long as I provide the right implementation of onMeasure() May 01 01:50:50 readme: thnx for the hint :) May 01 01:51:27 In RelativeLayout how do I make something appear under another view? May 01 01:51:33 I thought it was layout_bottom May 01 01:51:35 but it isn't working May 01 01:51:37 Man, unit tests are awesome until they fail May 01 01:52:07 I tried layout_above and layout_alighTop May 01 01:52:51 http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html#attr_android:layout_below May 01 01:53:27 oh, my poor droid-1, trying to update 10 things at once May 01 01:53:42 phone is going into convulsions May 01 01:53:47 layout_below didn't show up in my library suggestions May 01 01:53:47 wtf May 01 01:53:49 thanks readme May 01 01:54:03 great, all my tests are passing again :) May 01 01:54:05 I love tests May 01 01:54:16 g00s: you literally have the only droid1 still in use in the entire world May 01 01:54:23 :) May 01 01:54:31 its a good dev phone May 01 01:54:37 so is the Galaxy Nexus May 01 01:55:05 i would get an n1 if i could May 01 01:55:20 what's yalls opinion on sprint's flavor of the One X May 01 01:55:32 ours hasn't arrived yet May 01 01:55:36 That thing is ug-ly May 01 01:55:48 yeah it is May 01 01:55:56 but it has stock GB, good for testing May 01 01:56:25 uh May 01 01:56:27 it has ICS May 01 01:56:32 JakeWharton: false, I have a Droid 1 in my drawer May 01 01:56:33 N1 ? May 01 01:56:48 have one of those, too May 01 01:56:51 evancharlton: drawer != in use May 01 01:56:54 g00s: One X May 01 01:57:09 JakeWharton: good point May 01 01:57:17 TBH I think the T Mobile One S is a more solid option May 01 01:57:30 I <3 the Galaxy Nexus May 01 01:57:37 its a little big May 01 01:57:38 thats all May 01 01:57:47 oh also the back cover tabs are weak May 01 01:57:47 it is, until you use one May 01 01:57:47 :( May 01 01:57:47 not the first time I've heard that May 01 01:57:55 OH SNAP May 01 01:57:55 then every other phone is small May 01 01:58:01 no May 01 01:58:03 yes May 01 01:58:05 if i hold it in my right hand May 01 01:58:10 i cant reach the actionbar up button May 01 01:58:10 JakeWharton: going back to my nexus one I'm all "wtf who shrunk my phone?" May 01 01:58:16 with my thumb May 01 01:58:25 canadiancow: grow yourself May 01 01:58:27 im not saying i want 3.5" May 01 01:58:32 but maybe 4.5 instead of 4.65 May 01 01:58:42 damnit, i have this issue with Calendar giving me times one hour ahead when i'm in a locale with dst May 01 01:58:43 thats what she said May 01 01:58:49 oh you guys May 01 01:58:50 I think the 4.3" screen of the droid x is more or less perfect May 01 01:59:08 what was nexus s? May 01 01:59:12 4" May 01 01:59:18 yea 4.3 might be good May 01 01:59:21 4.65 is too big May 01 01:59:38 that's not what she said May 01 01:59:40 when my phone sceren is bigger than my penis... May 01 01:59:43 I'm switching from verizon in august and tbh i'm torn between going to tmobile for the one s or to sprint for their evo 4g lte May 01 01:59:44 you can't measure in diagonal size alone May 01 01:59:48 that IS what she said May 01 01:59:54 the nexus S had hardware buttons May 01 01:59:55 Pragma, lol May 01 02:00:03 wrong pragma May 01 02:00:38 you've got to calculate the TMI May 01 02:01:25 so ctate has still not responded about friday May 01 02:01:31 remember to use SI units May 01 02:02:13 I wonder if there will be cases that will make the one s look not so fugly May 01 02:02:32 i saw a couple stupid phone ads on tv tonight May 01 02:02:41 one was wp7, one was an htc android May 01 02:02:53 OMG IF I GO SKYDIVING I CAN TAKE A PHOTO ON MY HTC!!!!!! May 01 02:02:59 were they for the MOTOROLA DROID RAZR MAXX 4G LTE PROFESSIONAL EDITION 7? May 01 02:03:03 like...HOW ABOUT YOU ADVERTISE ACTUAL FEATURES May 01 02:03:26 hahaha May 01 02:06:07 is there a bear grylls edition that turns piss into water ? May 01 02:06:53 g00s: May 01 02:07:54 hehe May 01 02:11:15 heh. Meanwhile I get complaints about Samsung's ICS screwing up Exchange May 01 02:11:40 and, of course, broken applicatios May 01 02:11:44 *applications May 01 02:12:42 Welcome to true fragmentation. Supporting every API level is easy. Support every API level of the bastardizations these OEMs spew out is damn near enough to drive you insane. May 01 02:13:48 JakeWharton: actually, the Exchange part I believe is possibly a Samsung error (either in the supplied mail app, or in the exchange connector May 01 02:14:15 the apps however... At least one developer owned up to having screwed the compatibility with ICS by themselves May 01 02:14:21 is it safe to assume that a connection opened in Activity.onCreate is always present, or does the android OS sometimes kill a process, then bring back the Activity view without calling onCreate? May 01 02:14:26 rest is probably too ignorant May 01 02:14:45 JakeWharton May 01 02:14:50 canadiancow May 01 02:14:52 JakeWharton: and this channel isn't building up my confidence regarding dev skills :> May 01 02:14:56 the trick is to email the company and say "we wont write for you if you dont fix your shit" May 01 02:15:14 or at least, i wish that owrked May 01 02:15:31 in the end, the companies big enoguh to exert that influence get preload deals May 01 02:15:40 and the small devs who would actually fight get stomped on by the OEMs May 01 02:16:09 anyway, funny thing - the versions of TouchWiz I had actually used weren't quite as invasive as some (though I suspect some theming might be screwed up) May 01 02:16:53 canadiancow, ive been trying to think about moving away from global resources to managing it within the context of an activity, so your input is valued May 01 02:17:06 aww <3 May 01 02:17:10 as per your suggestions the other day May 01 02:17:20 the OS can kill a process May 01 02:17:22 or an activity May 01 02:17:28 but if its on screen, onCreate will have been called May 01 02:18:04 so if i open a TCP connection to my Twisted server in onCreate, then I can safely assume that the connection hasnt been killed by android on a button click event right May 01 02:18:19 im going to say "yes" May 01 02:18:20 BUT May 01 02:18:24 other things can happen May 01 02:18:27 i can drive through a tunnel May 01 02:18:29 canadiancow go tell the draw something peoples to get on a landscape layout asap May 01 02:18:43 has that buyout even gone through yet? May 01 02:18:45 t0mless... i came this ->| |<- close to working on DS May 01 02:18:48 yes May 01 02:18:59 It could use the cow's touch. May 01 02:19:08 it could use quite a few things May 01 02:19:17 but the last update seemed decent from a technical perspective May 01 02:19:23 having to turn tablet into portrait mode to use it pisses me off everytime May 01 02:19:30 it also crashes a lot when trying to open it May 01 02:19:47 i can see about getting access to the source May 01 02:19:49 it seems like a nasty solution to have, on every button click, something that checks for connection activity, and if not runs an async task to open connection and then call the desired function...but maybe thats necessary May 01 02:19:52 give it a little cow polish May 01 02:20:03 but my whole system was being weird so I just updated my tablet to the official acer ICS rom May 01 02:20:30 but now it launches their stupid fucking docking app when I put it on my dock May 01 02:20:38 lol May 01 02:20:39 CM9 baby May 01 02:20:42 it's sooooo bad May 01 02:24:28 I will probably made a deskclock docking app to replace it eventually May 01 02:24:36 do you think theres enough room to do android dev on a plane? the most ive ever done on a laptop is watch a movie May 01 02:25:05 canadiancow: yeah, I've done android dev on a plane May 01 02:25:18 i should totally do ADK dev May 01 02:25:18 I wish that adb-over-bluetooth was a thing, though May 01 02:25:22 it would make it more convenient May 01 02:25:24 lol May 01 02:25:36 when i got that ADK, people at IO were joking about airport security and pipe bombs May 01 02:25:39 at the very least, just use it to write unit tests, since you can just leave your phone in your lap May 01 02:26:49 i wish our apps werent so network dependent though May 01 02:26:55 i cant get even get to the main screen without net May 01 02:27:03 i suppose i could run a local instance of the server on my laptop May 01 02:27:14 canadiancow: powerful enough laptop... or working on apropriate parts May 01 02:27:26 what May 01 02:27:37 regarding developing on a plane :) May 01 02:27:45 i use a laptop for all my dev May 01 02:27:48 or 95% of it May 01 02:28:44 sure. But it depends on what you want to do... I know a laptop I could use to develop AOSP on with good enough compile time to work on a plane ;) May 01 02:29:11 ok we're in an app dev channel May 01 02:29:18 im not going to go compile android on a plane May 01 02:29:51 I need a new laptop May 01 02:30:00 i got a cheap mbp last year May 01 02:30:02 mine is from like 2003 May 01 02:30:06 upgrded the hdd and put win7 on it May 01 02:30:08 now its awesome :) May 01 02:30:14 canadiancow: I had at least one app where, had we continued, parts of AOSP would have been necessary for developement May 01 02:30:19 only lasts like 15 mins when not plugged in May 01 02:30:22 lol May 01 02:31:00 mine is a low end R61i from 2005... can't even use virtualization :/ May 01 02:33:39 as for the "compile AOSP to get app to work" - have you tried getting libcurl with HTTPS support? >_> May 01 02:35:35 * p_l tried to share code between Linux, OSX, Windows, iOS and Android version of the app.... May 01 02:36:38 just write it in javascript May 01 02:37:53 canadiancow: yeah, the heavy crypto would definitely make it run nice in JS May 01 02:38:00 exactly May 01 02:38:27 I can't seem to get swiping to work using ViewPager with a FragmentPagerAdapter…any ideas? May 01 02:39:18 the issue came up because 1) We had to go NDK for the crypto anyway (using Java version gave big lag on my phone) 2) we wanted to have as much commonality as possible when it came to the protocol library May 01 02:41:11 I have a custom image view, and my goal is to force open the soft keyboard, and listen for key strokes. Is this possible without extending an edit text view instead? May 01 02:41:23 yes May 01 02:42:13 Could you alaborate canadiancow? I know how to force opent he keyboard, my trouble comes when I implement the listener May 01 02:42:18 elaborate* May 01 02:44:10 edit text has a text changed listener May 01 02:44:25 as well as key event listener May 01 02:44:50 oh, you want to extend image view May 01 02:45:10 I need help trying to get the id of something. The name is blah_button_NUMBERHERE. So I can manually type like blah_button_1 or blah_button_2, etc. I'm trying to make a univeral dialog though, so I add the "number" to the bundle before I start the activity, and I want to do something like blah_button_ + intVarFromBundle May 01 02:45:22 But obviously that doesn't work, anyone know a way I can go about doing this? May 01 02:46:01 why can't you just pass the whole id? May 01 02:46:12 Oh I probably could do that too. May 01 02:46:22 Hmm I might be able to make it a string, then use the string for the id too. May 01 02:46:41 how do you plan to make that work? May 01 02:47:25 seems like just passing the R.id.blah_button_WHATEVER as the extra in the intent would be your best bet May 01 02:47:41 Yeah May 01 02:47:46 I see what you mean, and will do that. May 01 02:47:47 Thanks May 01 02:48:46 http://meatball.thatdailydeal.com/home.php?id=23130 May 01 02:48:46 HA May 01 02:50:38 time to watch last nights ep of Game of Thrones May 01 02:52:00 Why isn't there a setStyle for a button, for setting the style reference of a button in java May 01 02:52:23 In xml you just do Style="reference" May 01 02:52:27 But I want to do it in java May 01 02:52:42 because styling happens at creation time May 01 02:52:58 and is not runtime-adjustable. However, you can just set all of the properties at runtime... May 01 02:56:03 JesusFreke: you awake? May 01 02:56:17 * JesusFreke zzZZzzzzz May 01 02:56:36 may i pm u a quick question? May 01 02:56:48 * JesusFreke zzZZzzzz May 01 02:56:51 :p May 01 02:56:52 sure **** ENDING LOGGING AT Tue May 01 03:00:01 2012