**** BEGIN LOGGING AT Sun Apr 29 02:59:58 2012 Apr 29 03:00:48 if you were to use pixels, a layout that looked good on a medium density screen would be twice as small on an extra-high density screen even though both may be the same physical size (like a 4" phone) Apr 29 03:01:05 ah gotcha Apr 29 03:01:19 does this hold for desktop graphics design as well? Apr 29 03:01:36 i've always wondered how different screen resolutions were accounted for Apr 29 03:02:43 I've never done desktop design so I'm not sure Apr 29 03:03:01 nah depth independent pixels is just an android thing Apr 29 03:03:45 how are layouts done on iPhones with respect to retina and non-retina devices? Apr 29 03:03:46 if your doing openGL programming or something they might have their own constants to scale the image but I've always handled it myself Apr 29 03:04:50 haha retina devices eh? Apr 29 03:05:10 like the Futurama eyePhone? Apr 29 03:07:50 i was thinking more like this: http://theoatmeal.com/comics/apple Apr 29 03:09:53 Would it be too difficult to write an app that attaches to google talk, and if it sees a received message that contains a certain string, then it plays an alarm? I'd like to play an alarm if somebody writes me "beep" Apr 29 03:09:56 this is what I was referring to: http://www.youtube.com/watch?v=EaHUpWuqNHY Apr 29 03:10:23 or, is the source of gtalk available to modify it and add that feature? Can you write scripts for it? Apr 29 03:10:47 gtalk is just XMPP Apr 29 03:11:19 no source, no scripts Apr 29 03:11:23 you'd have to write your own client Apr 29 03:19:14 hey would you recommend using cookies to manage authentication sessions? Apr 29 03:20:24 I would like to keep things simple and it's not a production app so I'm thinking I could just use class variables to Apr 29 03:20:32 too* Apr 29 03:21:30 need more info Apr 29 03:21:37 SharedPreferences sounds like a better solution Apr 29 03:21:45 yeah Apr 29 03:22:04 the API you recommended that I uses puts cookies into SharedPreferences Apr 29 03:22:36 I can't type today... Apr 29 03:25:11 how does the k9 uplink killer work Apr 29 03:31:49 lnxmad, ping? Earlier I asked about storing a value for my entire app in a single place and you suggested a singleton - i.e. Util.getDomain() - I'm having trouble finding docs on building that, any ideas / Apr 29 03:32:04 Do I just extend Util ? Apr 29 03:33:24 why don't you just use a public static final Sting in a Constants class? Apr 29 03:34:45 JakeWharton, will that be accessible by all of my other classes? without any special extensions ? Apr 29 03:34:52 yes Apr 29 03:34:58 i.e. I can just create myAppConstants and import it in all classes - ok Apr 29 03:35:06 that makes sense - as long as it's the right way to do it Apr 29 03:35:07 :) Apr 29 03:35:12 Thanks JakeWharton Apr 29 03:36:09 It's right enough Apr 29 03:36:15 certainly not wrong Apr 29 03:36:38 right on Apr 29 03:38:32 for periodically forcing updates (eg. in a game), is there a better way than using a Handler and sendMessageDelayed()? Apr 29 03:59:34 How can I make an a textview in a listview appear 'disabled'? (greyed out?) Apr 29 04:01:56 What can I do to promote my app? Apr 29 04:02:41 I'm a student and don't have any money to spend on ads Apr 29 04:08:54 FunnyLookinHat, have you researched singletons at all? Apr 29 04:09:25 My android emulator isn't working when I turn on GPU emulation. It just shows either a black screen or freezes at the android logo. anybody else get this? I'm on windows and have an nvidia gpu Apr 29 04:10:07 Try booting it first without it. Booting then with it it on worked for me. Apr 29 04:10:25 tried that, no luck Apr 29 04:10:41 my GPU doesnt have optimus, which I read is an issue Apr 29 04:12:51 lnxmad, not really - but the class solution for constants seems to work nicely Apr 29 04:13:09 I'm also creating a class for all of my request functions - rather than half-hazardly dumping them into the activities they belong to Apr 29 04:13:20 i.e. MyRequests.login(username,password) Apr 29 04:13:26 So it trends nicely Apr 29 04:13:43 so they are static methods? Apr 29 04:14:25 err - they are now. Apr 29 04:14:26 :) Apr 29 04:14:38 What does making a method static do in Java ? Apr 29 04:14:50 o.o Apr 29 04:14:59 :D Apr 29 04:15:23 are you FunkyHat from #ubuntu-offtopic Apr 29 04:15:32 no Apr 29 04:15:35 No!?? Apr 29 04:15:36 I'm kidding about the static though Apr 29 04:15:42 FunnyLookinHat all the way Apr 29 04:15:49 I'm in #ubuntu, #ubuntu-us, and #ubuntu-us-co usually Apr 29 04:17:35 FunnyLookinHat, so you worked it all out I assume? Apr 29 04:17:48 lnxmad, yeah - just going to use some static helper classes Apr 29 04:17:50 Thanks though! Apr 29 04:18:08 a singleton works in a simillar way Apr 29 04:18:27 -only a single instance of a class. one that can be reach everywhere Apr 29 04:18:35 I'd like my text to appear greyed out - what would be the best way to setting it, besides using a hard-coded color? Apr 29 04:18:36 ClassName.method() Apr 29 04:18:41 Is there any system property I can use? Apr 29 04:18:50 textColor Apr 29 04:19:05 oh wait Apr 29 04:19:15 nvm Apr 29 04:19:20 no, set the color Apr 29 04:19:38 Are you certain? Apr 29 04:19:54 is it a TextView? Apr 29 04:19:58 Yes Apr 29 04:20:05 whats so hard about changing the color? Apr 29 04:20:20 The background color might not be compatible. Apr 29 04:21:23 color theming isnt easy Apr 29 04:21:47 Yeah, hence why I'm wondering if there's a system property for this Apr 29 04:23:17 not one that will detect your background color/image and apply the correct color Apr 29 04:23:48 hey - if a static method is returning an object - do I need to initialize a new object from the returned one or can I use it as is? i.e. is it lost once the object is returned ? Apr 29 04:24:13 this is a wee bit different than PHP - which is the other half of what I'm building right now :) Apr 29 04:24:17 and PHP is super lazy. Apr 29 04:24:40 Java is pass by value Apr 29 04:25:00 ah ok thx Apr 29 04:28:40 hi all, I'm having an issue with missing proguard.cfg when I'm creating a new android project. This didn't happen a couple of weeks ago. Can anyone give a definitive solution for fixing this? Apr 29 04:29:55 are your sdk tools up to date? Apr 29 04:30:01 lnxmad, yes Apr 29 04:31:08 lnxmad, wait you mean the android sdk or eclipse sdk? Apr 29 04:31:21 both Apr 29 04:31:29 well Apr 29 04:31:46 the sdk tools must be updated Apr 29 04:32:01 but then eclipse most liekly needs most recent version of adt Apr 29 04:32:29 lnxmad, I'm on version 18 of the ADT Apr 29 04:32:37 lnxmad, that's this month ... Apr 29 04:34:25 http://stackoverflow.com/questions/4444818/proguard-cfg-missing Apr 29 04:35:51 with REST transactions do you need to send a token in the headers everytime to validate a login session? Apr 29 04:36:20 for every request Apr 29 04:45:51 anyone know why no one has made anything to run iphone apps on android? Apr 29 04:46:26 why would they do that when there's programs like phoneGap? Apr 29 04:47:11 Objective C is significantly different than Java Apr 29 04:47:11 uhh maybe so people with android can run iphone apps? Apr 29 04:47:29 yes it is, but i have included C libraries in my apps before Apr 29 04:47:57 surely some sort of Objective C vm could be loaded Apr 29 04:48:27 it would be slow Apr 29 04:48:32 and probably buggy Apr 29 04:49:20 anyone with an idea about my gpu emulation issue? the emulator is almost unusable at this state Apr 29 04:49:32 djshotglass: in theory possible, in practice a) :effort: b) some Apple lawyer will sue the fuck out of you c) :effort: Apr 29 04:51:37 djshotglass: you're talking crazy now :) Apr 29 04:52:13 if you want to run iphone apps, get an iphone :D Apr 29 04:52:38 sooooo any ideas of how to handle RESTful Authentication through android? Apr 29 04:52:39 hello, I am having problems with playing shoutcast streams continously in Android 2.3.3 which has builtin support for them. My issue is that the stream will play for like 4 minutes on a real phone and then just quit. I setup listeners of the media player object and saw that the onCompletionListener was being called. Anyone know how to do continous live audio streaming on Android and to Apr 29 04:52:39 avoid having to reset media player object each time it terminates early? Apr 29 04:53:08 multimedia on android == hurt Apr 29 04:56:22 @g00s : is audio streaming really difficult thing to achieve ? are there any third-party library that you know which provide alternative multimedia implementations on android ? Apr 29 04:57:10 jervisfm: i'm not sure, i just constantly hear of people having problems with the media frameworks Apr 29 04:59:11 yeah, i have audio playing at the moment but there are hiccups in between when the media player stops playing and completes Apr 29 04:59:30 so nobody cares about REST here? :/ Apr 29 05:01:44 nlaveck: i'm not sure about the authentication aspects Apr 29 05:02:15 ughh Apr 29 05:02:19 wish Jake was here Apr 29 05:02:25 he's probably hiding from me Apr 29 05:02:38 lol Apr 29 05:04:26 if I want to send data from my android app (for example my current location) to a server, which are the best options to do it ? Apr 29 05:05:50 kulas: you should have the app print it out so you can fax it Apr 29 05:07:46 pragma: but I send it in HTTP protocol for example? Apr 29 05:22:54 this story on the verge about wozniak and wp7, android, and iOS generated a shitstorm of comments! Apr 29 05:26:26 is this more old news g00s? Apr 29 05:28:27 Android has tiled home screen apps... Apr 29 05:35:14 hi all, I'm trying to run an app I've developed in Eclipse using an AVD on my Samsung Galaxy Note. I'm running Windows 7, I've installed the drivers from samsung, and verified the device is connected using platform-tools/adb.exe Apr 29 05:37:13 according to http://developer.android.com/guide/developing/device.html i should "run or debug your application as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). ", but this isn't happening. Eclipse is just starting up an AVD. I'm running Eclipse as admin, and I've tried creating a new run config.. any advice? Apr 29 05:38:14 Under run config, set it to manual Apr 29 05:38:51 AbelianHorizon: thanks so much, that worked :D Apr 29 05:39:02 Yeah yeah Apr 29 05:56:39 anyone awake? Apr 29 06:00:22 Yup Apr 29 06:01:14 nope Apr 29 06:01:17 not a single person Apr 29 06:01:19 anywhere Apr 29 06:01:22 What are you working on with REST nlaveck? Apr 29 06:11:30 hello Apr 29 06:12:36 I'm having some trouble with http basic auth... primarily in that it doesn't seem to be working. I get "Authentication Error: Unable to respond to any of these challenges: {}" Apr 29 06:14:24 Hmm - getting "04-29 00:13:41.261: E/AndroidRuntime(5470): Caused by: java.lang.NoClassDefFoundError: org.apache.http.entity.mime.MultipartEntity" even though I have the mime4j libs included - Apr 29 06:19:26 oh people are awake Apr 29 06:19:49 i'm trying to fill a jshortArray from a JNI thread and to GetShortArrayElements() from that array in another JNI thread, but somehow the array values don't seem to change: https://github.com/Libvisual/LibVisualAndroid/blob/input_android/jni/libvisual/libvisual-plugins/plugins/input/android_AudioRecord/AudioRecordJNI.c does anyone have a clue what could be wrong? Apr 29 06:19:50 I'm working on creating a Client / Server app Apr 29 06:20:16 Jake told me to use this: http://loopj.com/android-async-http/ Apr 29 06:20:47 but I've never done REST before so I'm reading stuff and it looks really confusing Apr 29 06:20:58 the Array is allocated in AudioRecord_init(), written in AudioRecord_readThread() and AudioRecord_lockBuf/unlockBuf() return the pointers to the jshort * buffer... Apr 29 06:27:56 can I suppose that int16_t == jshort ? Apr 29 06:28:21 i get no compiler warning with -Wall tho Apr 29 06:35:28 hi, any1 knows how to add scroll to a dynamic adding rows table? Apr 29 06:38:51 wrap the view in ScrollView and it should scroll automatically Apr 29 06:47:41 I've tried it.. it didn't work. Apr 29 08:18:49 One thing I haven't quite understood, is how I can "start" my Path on x,y instead of 0,0 as an uninitialized instance + lineTo(x, y) starts off at 0,0 Apr 29 08:26:15 moveTo(x,y)? Apr 29 08:27:51 tors: Well, doesn't that start off on 0,0? Or did I misread the docs? :-) Apr 29 08:27:55 * n20 checks again Apr 29 08:35:52 canadiancow: i don't think its too old :) Apr 29 08:47:59 tors: I can't believe I missed that one, or the functionality of it. I supposed it would be angry at me if I did it on an "empty" Path. Apr 29 08:48:08 tors: Thanks :) Apr 29 08:48:18 canadiancow: Mooh Apr 29 08:49:48 yeah, one wouldn't want to anger the Path :) Apr 29 08:52:53 tors: Path seems a lot better than manually drawing lines from x1 to x2 Apr 29 09:07:04 is it possible to run SDK with emulator on PIII with 400MB RAM ? Apr 29 09:07:12 Hi all Apr 29 09:07:56 elkng: provided you have enough swap space, yes, but its no fun. Apr 29 09:24:39 I wrote the following Android.mk for freetype: http://paste.ubuntu.com/954561/ Apr 29 09:24:40 but when I run ndk-build nothing happens Apr 29 09:24:45 any ideas? Apr 29 09:25:07 I _love_ SSL. Playstore won't work on my tablet due to "No connection". The reason is, when the tablet lost power, it resets its date to 01/2009, which is before Google's chat service cert was valid /o\ Apr 29 09:44:04 anyone tried to build freetype for android? Apr 29 09:44:23 hello Apr 29 09:44:55 am having a problem with sorting an rss feed Apr 29 09:45:33 taptapir ask that in somewhere else Apr 29 09:45:41 this channel is dedicated for application Apr 29 09:45:50 but not something low-level / arm code Apr 29 09:46:00 and i want to sort it with the rss pubdate Apr 29 09:46:05 UnknownzD: ok sorry, you know where? Apr 29 09:46:24 problem is that it is different than mysql datetime Apr 29 09:46:36 sample of pubdate Sat, 28 Apr 2012 15:19:35 +0000 Apr 29 09:48:54 #android-root, #Cyanogenmod, #cyanogenmod-dev Apr 29 10:46:20 can i implement a custom lock-screen application? Apr 29 10:53:11 Hello Apr 29 10:53:56 Could someone possibly help me with a problem? Apr 29 10:54:47 i 'd like to use that shape-drawing locking mechanism in a custom screen locking app Apr 29 10:57:22 WindowsNT: Could you possibly help me? Apr 29 11:00:18 Is there anyone available? Apr 29 11:02:13 seemingly not mad Apr 29 11:03:13 mad1231999: you should just ask your real question on IRC.. then wait.. if necessary repeat later Apr 29 11:03:27 nkuttler: Ok, thanks Apr 29 11:04:05 I have a problem(obviously). When I press the button saying "Dial Menu", it pops up with a box saying "Unfortunately, Test has stopped" Apr 29 11:04:35 mad1231999: Explain what you have done as well. I guess you are making an app called "Test"? Apr 29 11:05:16 I was coming to that part now. I have 2 classes, one called Test.java, and another one called CallMenu.java Apr 29 11:06:08 In the Test.java, I have a button, and when it get's clicked I call startActivity(new Intent("com.mads.test.CALLMENU")); Apr 29 11:06:26 (the package is name com.mads.test) Apr 29 11:06:47 If you wan't to see the source code, here it is http://pastebin.com/g8BcCb0c Apr 29 11:07:22 mad1231999: What does logcat say? Apr 29 11:07:35 Shall I pastebin it? Apr 29 11:07:50 Yes Apr 29 11:08:28 04-29 13:00:04.129: E/AndroidRuntime(914): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.mads.test.CALLMENU } Apr 29 11:08:28 seems like a permission issue Apr 29 11:08:32 ah Apr 29 11:08:37 startActivity(new Intent(this, CallMenu.class)); Apr 29 11:08:39 no activity declared in the manifest? Apr 29 11:08:52 Look at the pastebin link, at the bottom Apr 29 11:09:20 put also the intent filter to that activity. with .DEFAULT instead of .LAUNCHER Apr 29 11:09:35 Ok Apr 29 11:09:55 No need to change your manifest Apr 29 11:10:12 Not even if I have multiple Activities? Apr 29 11:10:22 You already added your activity Apr 29 11:10:38 I don't know why they're suggesting you change anything in it Apr 29 11:10:39 Where? Apr 29 11:10:45 Your intent is wrong, as I already said Apr 29 11:10:52 I did change it Apr 29 11:10:55 And it works Apr 29 11:11:07 But not when I hit the button saying "Call" Apr 29 11:12:24 new Intent(ct,Activity.class); Apr 29 11:13:05 for example new Intent(ct,com.mads.test.callmenu.class); Apr 29 11:14:49 Windows: I did that Apr 29 11:16:47 Brb Apr 29 11:35:10 so, is there a way i can override Apr 29 11:35:15 the lock screen? Apr 29 11:36:45 If it comes down to that, you're asking the wrong question. Apr 29 11:42:15 Back Apr 29 11:49:32 <`z> WindowsNT, why would you ask Apr 29 11:49:51 <`z> o.o Apr 29 11:50:04 <`z> well, maybe add your app as a device administrator Apr 29 11:50:05 <`z> maybe Apr 29 12:28:37 Hello folks, is possible in java to import different modules per platform? Apr 29 12:28:45 For example I want to import modules android.* only for android and for window/linux use awt to display Apr 29 12:29:39 i dont think so Apr 29 13:22:36 So what's the difference between EF17 and EF24? Apr 29 13:23:12 7 Apr 29 13:27:52 What? Apr 29 13:58:25 hi all, I'm writing an app that requires making a Http get call. I know that this should be kept out of the main UI thread. But I'm new to Android and not sure if I should be using AsyncTask or Services. Any advice would be appreciated. Thanks Apr 29 13:58:54 asysntask generally Apr 29 14:02:34 Jug6ernaut, thanks. So does the async task allow the UI be responsive while its processing things queue in the background ? Apr 29 14:02:52 yep Apr 29 14:02:57 thats whats awesome about it Apr 29 14:03:27 Jug6ernaut, have you been doing android for long? Apr 29 14:03:41 about 1.5 years now Apr 29 14:04:29 Jug6ernaut, nice, any advice for someone who's just starting out ? ie how to be more productive? Apr 29 14:05:08 produtive? naa, that all depends on what you are doing. If i had to sayone thing is polish, polish, polish Apr 29 14:05:21 Jug6ernaut, I find eclipse to be a little complicated now. do you prefer command line or through eclipse? Apr 29 14:05:29 noo Apr 29 14:05:38 Jug6ernaut, no ? Apr 29 14:05:38 eclipse while it blows, is still a must imo Apr 29 14:05:45 Jug6ernaut, why? Apr 29 14:06:22 any one of a million reasons, auto completion, organization, refactoring, building apks. Streamlines everything Apr 29 14:06:48 ok Apr 29 14:07:36 Jug6ernaut, thanks Apr 29 14:07:44 np Apr 29 14:15:21 Okay, I have connected the tablet with my pc via a USB cable, and the USB storage mode has also activated, so how to access the storage on the tablet on my computer? Apr 29 14:16:49 Pip, it should show up as a USB drive Apr 29 14:16:51 what OS ? Apr 29 14:16:57 Linux Apr 29 14:17:03 Distro ? Apr 29 14:17:07 Arch Apr 29 14:17:13 hm Apr 29 14:17:17 Should be showing up in Nautlius Apr 29 14:17:27 You've clicked the button on the tablet to enable it right? Apr 29 14:17:38 The one that says "Turn on USB Storage" ? Apr 29 14:18:22 Yes Apr 29 14:18:29 Well, let me recheck Apr 29 14:31:09 How is it possible for me to get a "java.lang.NoClassDefFoundError: org.apache.http.entity.mime.MultipartEntity" if I'm able to import the MultipartEntity package without any error? I have the java libs all included and referenced in build paths... Apr 29 14:34:22 this class (MultipartEntity) is not part of the apache httpclient part of the Android runtime Apr 29 14:36:07 bubbleguuum, I know - but I imported extra jars to support it... Apr 29 14:37:02 you can't Apr 29 14:37:36 if you want to do that you need to repackage the apache http client jars you are using (with jarjar) and reference that in your code Apr 29 14:41:23 bubbleguuum, wha? seriously? hmm Apr 29 14:41:52 Is there any support for HttpPost requests w/ file payloads built into Android? I could have sworn I did this before with earlier versions of this library. Apr 29 14:47:50 FunnyLookinHat: yes seriously. if you need apache HttpComponents features, repackage the current version and be done with it. forget the version included in the SDK. It is old buggy and unmaintained and incomplete Apr 29 14:48:41 Google should never have included it in the first place Apr 29 14:55:13 Hi , I am trying to get src of a android app to compile in eclipse - i got the source of git - started a new project from existing source - and i am stumped on errors : the import cannot be resolved : import org.apache.http.entity.mime.HttpMultipartMode; - where do i get the JAR/file for this and more importantly - how do i add it to the priject to be referenced correctly ? Apr 29 15:04:10 Well, I was trying to update from EB28 to EF17 via an update file downloaded from xda, I put it in /sdcard and enter Recovery mode "apply update from sdcard" but it failed: failed to verify whole-file signature Apr 29 15:04:14 Any ideas? Apr 29 15:04:44 aCilnv: http://stackoverflow.com/questions/9168718/install-android-app-in-eclipse-without-running-it Apr 29 15:05:06 Ohmer, this is a SAMGSUNG Galaxy Tab from Sprint Apr 29 15:06:52 veyres - thanks - I have the APK - but i need the source to compile before i can make small changes to the code -bug fixes - not much exp with ADK before - thus the question .. Apr 29 15:12:44 Nobody? Apr 29 15:21:42 You're in the wrong channel.. this is for application development Apr 29 15:26:45 simple question that has me baffled i have a git clone project i was checking out and there are errors in it but the only errors is the R.java is not being generated i tried to clean...... did everything i can think of to force the project to build the Resource file but how do i ? Apr 29 15:30:01 Hello, I'm wondering the best way to display a star rating in my app. I want to have 1-5 identical ImageViews to display the stars, what would be the best way to do this? Apr 29 15:30:50 http://developer.android.com/resources/tutorials/views/hello-formstuff.html#RatingBar Apr 29 15:30:53 So far I have tried to use a single ImageView but I'm not sure how to re-use this layout when the star rating is >= 2 Apr 29 15:31:21 hi Apr 29 15:31:52 is there a way to send to an sms the msg received on whatsapp ? Apr 29 15:37:42 SimonVT, thanks Apr 29 15:44:43 Hi , I am trying to get src of a android app to compile in eclipse - i got the source of git - started a new project from existing source - and i am stumped on errors : the import cannot be resolved : import org.apache.http.entity.mime.HttpMultipartMode; - where do i get the JAR/file for this and more importantly - how do i add it to the priject to be referenced correctly ? Apr 29 15:45:56 apache commons jar Apr 29 15:46:12 simply copy the file somewhere into your project, right click and select 'add to build path' Apr 29 15:46:19 from some submenu Apr 29 15:46:32 err, not apache commons Apr 29 15:46:35 apache http lib Apr 29 15:47:18 thanks MD - let me go try that .. Apr 29 15:47:24 aCilnv, you can do it! :) Apr 29 15:47:44 oh i do wish i could - like thomas the tank engine :P Apr 29 15:47:58 Hi - Anyone here use Eclipse with the ADK? Haven't used it for a long time - in the Graphical layout view I have a picker of widgets on the left, then the view in the right but I think I used to have a property inspector over on the right. Can't find this inspector now. Anyone know where to look for it? Apr 29 15:49:56 Ah found it - the property inspector is called "Outline" ;-) Obvious really... Apr 29 15:50:13 D: Apr 29 15:50:23 SmashCat, I had never noticed it before myself :) Apr 29 15:50:52 adamDavis: Yeah I think I found it by accident in one of Eclipses thousands of menus :-) Apr 29 15:51:31 There's a kitchen sink thrown in there too - heh Apr 29 15:51:50 ah great, i just finished breakfast so the dishes need to be cleaned D: Apr 29 15:53:24 dishes? pft, just eat out of the packaging. Apr 29 15:53:57 I tried that with raw chicken once - it didn't end well Apr 29 15:54:00 Hi, I've got the following Problem: I have an App with 4 Activities. I switch between these Activies with Buttons but now i also want to swipe between these actities, is there any way to realize something like this? (sorry for the bad english) Apr 29 15:59:22 Krid86 i wouldnt really use activities for that Apr 29 15:59:27 maybe something like a ViewPager Apr 29 16:01:49 you mean, i should put the 4 activities into 1? Apr 29 16:10:13 So having added the httpmime-4.1.3 jar to the build path of my uncompiled app in eclipse - and now i get this error java.lang.IllegalArgumentException: already added: Lorg/apache/http/annotation/GuardedBy ..any ideas ? Apr 29 16:10:46 and i can't see where it's been added before .. ? Apr 29 16:56:20 My android emulator isn't working when I turn on GPU emulation. It just shows either a black screen or freezes at the android logo. anybody else get this? I'm on windows and have an nvidia gpu Apr 29 16:58:35 are you sure it's not just really slow? Apr 29 16:59:21 zpmorgan, without gpu emulation it works fine Apr 29 16:59:28 slow, albeit fine Apr 29 17:13:45 Can an AutoCompleteTV share an adapter with, say a listView? Apr 29 17:14:06 for some reason, whenever I hit the threshold of the autocomplete, the items disappear from my listView Apr 29 17:28:31 is there a way to send to an sms the msg received on whatsapp ? Apr 29 17:35:54 "emulator: Can't start OpenGLES renderer?" Apr 29 17:39:59 Anyone know how to set the font color for a custom spinner? I've created a theme with android:spinnerStyle setting the background using a 9-patch PNG. However I can't set the font color for the spinner selector button. The list (when it's open) is just the default colour which is fine. Apr 29 17:40:30 I've tried using #ffffff in the style for the spinner but it has no effect Apr 29 17:41:02 (problem is the background is black, and the default black text is unreadable, obviously) Apr 29 17:45:14 I have an app with a webview and I want users to be able to save some pages as favorites that can later be retrieved from a list or something. My problem right now is that I can't think of how I could save the favorites in a way that I could populate a listview from them later. Have any of you guys done something like this or have a suggestion of what I could try? Apr 29 17:50:39 is there a way to say, register a KeyEvent.Callback with an activity? Apr 29 17:50:44 Hmm, so to change the font color in a spinner, I need to create the whole thing programmatically with a custom textview container for each cell. Cool Apr 29 17:51:25 Guess I'm a bit spoiled with having properties to change simple attributes ;-) Apr 29 17:55:00 pastie was bumped twice last night :o Apr 29 17:56:08 dd Apr 29 17:56:10 whats wrong with my onclick listeners http://pastebin.com/m0D2BGpn Apr 29 17:56:23 ddos Apr 29 17:56:29 what should be wrong there? Apr 29 17:57:15 everythingWorks: what does logcat say? Apr 29 17:57:28 brx_ dominicdinada ? Apr 29 17:57:41 ok Apr 29 17:57:51 brx_ a lot, but why do you ask me? ;) Apr 29 17:57:58 Im not having an issue right now :P Apr 29 17:57:58 sory wrong highlight :> Apr 29 17:58:11 both on click listeners emailButton.setOnClickListener(new OnClickListener() { Apr 29 17:58:15 and setviews Apr 29 17:59:17 this is not even a problem description, sorry. Apr 29 17:59:26 ummm Apr 29 17:59:34 logcat gives nothing Apr 29 17:59:40 cause it wont run Apr 29 17:59:42 at all Apr 29 18:04:36 brx_: ??? Apr 29 18:05:50 how can i reference externally defined themes in my androidmanifest file? Apr 29 18:06:19 for example i want to give an activity a actionbar sherlock theme: Apr 29 18:06:20 public void onClick(View v) { Apr 29 18:06:20 launchEmailToIntent(""); removing the overide might fix it Apr 29 18:06:29 does gpu emulation not work on windows or something Apr 29 18:06:38 i cannot for the life of me get it to work, ever Apr 29 18:06:45 android:theme="Theme.Sherlock.NoActionBar" … but the editor complains about string typed not allowed Apr 29 18:06:53 saz: not all gpus are supported Apr 29 18:07:06 generally, it should work on windows, yes. Apr 29 18:07:29 everythingWorks, on my nvidia gpu I just get a black screen Apr 29 18:07:50 if you actually get a black screen, then its definitely not supported. :/ Apr 29 18:08:16 Maybe you should create an "issue thread" at the pending google group concerned about this. Apr 29 18:08:29 if nvidia gpus arent supported, wat *are* Apr 29 18:08:32 <_|_> please make this channel +r Apr 29 18:08:41 <_|_> as in +r to join Apr 29 18:08:41 intel? ati? Apr 29 18:08:53 SiS! Apr 29 18:09:00 SiS is the BEST! Apr 29 18:09:30 Sazpaimon: It just says your special gpu is not supported, not the whole family. Apr 29 18:10:36 maybe laptop GPUs arent supported Apr 29 18:11:32 even though my notebook uses a high end gpu, GTX 570M Apr 29 18:16:35 Sazpaimon: which is probably disconnected from display and the emulator goes for whatever embedded stuff you have? (if it's an intel laptop, at least) Apr 29 18:19:36 bubbleguuum, I figured it out - I'm using the Apache versions... but they weren't being included correctly ( even though I added them to build path ) - but adding them to /libs/ within my project fixed it. Go figure: http://tools.android.com/recent/dealingwithdependenciesinandroidprojects Apr 29 18:20:05 p_l, it's not an optimus gpu Apr 29 18:20:09 thank god Apr 29 18:37:04 hmm... anyone here actually used MonoDroid in anger? Apr 29 19:01:36 http://news.ycombinator.com/item?id=3906277 Apr 29 19:04:37 how do u force it to build the R file there is zero errors GRRRRRRRRRR Apr 29 19:05:29 dominicdinada: rm your gen/ directory Apr 29 19:05:35 or clean your project Apr 29 19:05:49 ok :) ty will try Apr 29 19:07:27 ok heres the thing match_parent was working for me and today it decicded to pfffft Apr 29 19:07:47 Folks, the repo command that has been running for the past three hours just started hanging right after downloading everything Apr 29 19:07:49 At the same time you decided to build against api7? Apr 29 19:08:11 if I ctrl-c out of it then rerun it, will it have to go download everything again? Apr 29 19:09:52 dang Apr 29 19:09:54 g00s, what is considered "proprietary android" Apr 29 19:09:55 it does Apr 29 19:10:00 like i can see amazon falling under that category Apr 29 19:10:02 but not samsung Apr 29 19:10:08 canadiancow|work: yes, amazon Apr 29 19:10:15 but the chart for market share doesnt make sense Apr 29 19:10:21 samsung may not be "huge", but its by no means small Apr 29 19:10:46 chart made sense to me, amazon has the greatest android tablet share to date Apr 29 19:11:00 if samsung pulled an amazon, it would be a huge mess :) Apr 29 19:11:16 (that has beenspeculation for a while, but it hasn't happened yet - thankfully) Apr 29 19:11:44 isnt samsung an even larger distributor than than Nokia these days Apr 29 19:11:57 enthdegree: yes Apr 29 19:13:07 but if samsung did that, google could just stop Apr 29 19:13:24 and then youd have incompatible samsung, amazon, etc, versions Apr 29 19:13:41 right now it only works because getting an app to work on amazon just requires some in app billing changes Apr 29 19:13:58 "Google could take full control of Android, by not releasing future versions to open source and changing licensing terms." Apr 29 19:14:03 canadiancow|work: there are some api differences, though - apis that are missing. the kindle does not pass CTS Apr 29 19:14:10 what apis are missing? Apr 29 19:14:28 i think some regarding geolocation, for one. maybe the accelerometer Apr 29 19:15:16 does it have an accelerometer? Apr 29 19:15:19 are android devices required to? Apr 29 19:15:22 regardless Apr 29 19:15:23 g00s, the accelerometer works Apr 29 19:15:27 you're talking minor differences Apr 29 19:15:43 I heard something about it not having a gyroscope Apr 29 19:15:47 I haven't tested that though Apr 29 19:15:50 most devices dont have gyros Apr 29 19:15:51 ahh, ok Apr 29 19:16:12 kindle is still GB, and a non CTS GB at that - so if it has the greatest market share, its not that good Apr 29 19:16:22 i think, this is the reason why google is putting out the nexus tablet Apr 29 19:16:27 but you say "still GB" as if thats uncommon Apr 29 19:16:34 id be surprised if amazon doesnt try to merge in ICS Apr 29 19:16:47 its easier for them - there's only one device Apr 29 19:17:01 CTS? Apr 29 19:17:05 canadiancow|work: i wouldn't be surprised either. i would not have been surprised if amazon took webOS and ran with it. Apr 29 19:17:25 but that seems unlikely now Apr 29 19:17:40 canadiancow|work: http://imgur.com/8hmSq Apr 29 19:17:54 :D Apr 29 19:18:28 lol Apr 29 19:18:52 Ginto8: Compatibility Test Suite Apr 29 19:19:07 Button uninstallButton = (Button) findViewById(R.id.UninstallButton); Apr 29 19:19:07 uninstallButton.setOnClickListener(new OnClickListener() { Apr 29 19:19:24 whats wrong with that nothing grrrrr Apr 29 19:19:40 <`michael`> ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ ก้้้้้้้้้้้้้้้้้้้้ ก็็็็็็็็็็็็็็็็็็็็ กิิิิิิิิิิิิิิิิิิิิ Apr 29 19:19:42 <`michael`> shhhh Apr 29 19:19:43 dominicdinada: that's not a complete description of your problem. Apr 29 19:19:45 why do you cast that to a Button? Apr 29 19:20:30 http://pastebin.com/m0D2BGpn Apr 29 19:20:44 only errors are the onclick listeners Apr 29 19:23:16 stack trace or gtfo Apr 29 19:24:31 canadiancow cant even st Apr 29 19:24:47 wont run or throw errors to the logs Apr 29 19:27:27 Description Resource Path Location Type Apr 29 19:27:27 The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new DialogInterface.OnClickListener(){}) Donate.java /SplashDemo/src/dinada/splash/demo line 24 Java Problem Apr 29 19:27:47 finally got it not from console or logcat Apr 29 19:28:43 the error pane... Apr 29 19:29:06 I have a layout set as invisible, can I set it visible with a fade in effect ? Apr 29 19:29:18 yes Apr 29 19:29:21 use an alpha animation Apr 29 19:29:57 and call startAnimation(theAlphaAnimationBro); setVisibility(View.VISIBLE); Apr 29 19:32:11 alankila: there in my full desc Apr 29 19:32:30 The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new DialogInterface.OnClickListener(){}) Donate.java /SplashDemo/src/dinada/splash/demo line 24 Java Problem Apr 29 19:34:45 okay, you took the wrong OnClickListener Apr 29 19:34:49 that's pretty obvious from the error Apr 29 19:35:42 (another way, imo, where android fails: I have struggled enough with these static inner classes to always write new Outer.Inner() myself Apr 29 19:35:51 so I always write View.OnClickListener to eliminate this very problem you struggle with Apr 29 19:35:52 right but i have tried set onTouchListener Apr 29 19:37:46 and that onTouchListener is related to this ... how? Apr 29 19:38:06 JakeWharton: thanks :) Apr 29 19:38:23 heh it offered it as a fix but im looking on ref sit now Apr 29 19:38:40 my eclipse so slow it isnt poping up options atm Apr 29 19:39:46 many o guides to speed up eclipse Apr 29 19:41:26 my eclipse is pretty fast. If there's one thing I'd uninstall, that's mylyn. It's doing something nasty half the time, but it's core shit Apr 29 19:41:30 import android.content.DialogInterface.OnClickListener; Apr 29 19:41:34 * alankila idly wonders if eclipse features could be turned off Apr 29 19:41:44 mine has tons of projects and has been running all day Apr 29 19:41:46 import android.content.DialogInterface.OnClickListener; Apr 29 19:41:48 dominicdinada: pro tip: write 'new View.OnClickListener()' Apr 29 19:41:58 thats the one im calling Apr 29 19:42:01 take it from me, this way you always know which kind of OnClickListener is being used Apr 29 19:42:03 alankila :O Apr 29 19:42:10 ty Apr 29 19:42:44 im a dumbass Apr 29 19:42:50 still newer to java Apr 29 19:45:06 Hello, I'm kind of stuck with my code using loopers and handlers, can anyone help me? Will paypal $5 pm me Apr 29 19:46:17 deini: just ask your question here; its likely you won't have to pay $5 Apr 29 19:58:48 alankila: i always install the eclipse platform runtime, and add jdt + adt. that will result in the leanest setup, if all you do is android Apr 29 19:59:01 no mylyn Apr 29 20:04:54 yo dog Apr 29 20:05:17 hi mikedg Apr 29 20:05:30 who gave you ops? Apr 29 20:05:41 my bff evan Apr 29 20:06:13 Hello, I'm kind of stuck with my code using loopers and handlers, can anyone help me? Will paypal $5 pm me Apr 29 20:06:33 ok deini, let me give you some advice Apr 29 20:06:46 the people in this channel competent enough to help you probably make upwards of $75/hour Apr 29 20:07:09 so if you just ask a question here in the open, you're much more likely to get some help than offering your pocket change Apr 29 20:08:40 i am iron man! Apr 29 20:09:09 you are lead man Apr 29 20:09:14 mikedg: fess up; you sleep with a teddy bear Apr 29 20:09:32 if thats what you wanna call your mom! Apr 29 20:09:33 I know that canadiancow|work it's just a small offering, didn't know you guys will get upset for a random kindness Apr 29 20:09:40 JakeWharton: lead what ? Apr 29 20:09:42 :D Apr 29 20:09:49 feman! Apr 29 20:10:03 deini we're not in here to make money Apr 29 20:10:10 and you still havent asked an actual quesiton Apr 29 20:10:18 pbman Apr 29 20:11:57 I'm trying to make an AlertDialog in a game, when it appears it pauses the game thread and when I click the cancel button the game thread starts again, but the alertdialog stays there, it wont dissapear: http://paste.ubuntu.com/944450/ Apr 29 20:12:26 did you call .dismiss()? Apr 29 20:12:42 I tried that Apr 29 20:12:59 dlg.dismiss()? Apr 29 20:13:28 yep Apr 29 20:14:45 finally getting around to setting up my own server for git, znc, and builds Apr 29 20:14:59 nice Apr 29 20:15:04 I miss having znc Apr 29 20:15:17 I use the cloud *waves hands* for builds Apr 29 20:16:34 lol Apr 29 20:16:41 JakeWharton the dlg.dismiss() I'm using it inside the onClick is that correct or needs to be elsewhere? Apr 29 20:16:50 i need to order more rams Apr 29 20:18:24 im really fucking pissed blizzard hasnt updated diablo 3 to work on lion Apr 29 20:19:13 get windows Apr 29 20:19:21 or tell Apple to not break shit with updates Apr 29 20:41:03 what the D3 beta? Apr 29 20:46:59 hi guys. I'm quite new to android/java development so this may sound silly, but is there a way to set a custom value for a spinner/radio button like in HTML so that the label/text of the element would be different from the value? e.g. Apr 29 20:48:33 anyone? :) Apr 29 20:49:10 StyxLT, a radio button's id is different from its text Apr 29 20:49:37 having the text be what you identify it by would be silly because then you couldn't reuse the objects Apr 29 20:51:00 i forgot about the id.. Apr 29 20:52:30 on a radio button it may make sense, but what about a spinner? spinner's items can't have ids can they? Apr 29 20:53:34 hi, I'm newbie android - i do installed android-x86-4.0-rc1-eeepc in virtualbox - Anyone know how do setup to acess the internet Apr 29 20:55:46 kessius that's probably a better question for #android-root or even #android Apr 29 20:55:52 this channel is for app development Apr 29 20:55:53 i do netstat appears 0.0.0.0:555 Apr 29 20:57:02 oooh android is compiled on x86 now? Apr 29 20:57:51 canadiancow I do ping 127.0.0.1 loopback it is - OK Apr 29 20:57:59 ... Apr 29 20:58:04 [16:55:39] <@canadiancow> kessius that's probably a better question for #android-root or even #android Apr 29 20:58:04 [16:55:45] <@canadiancow> this channel is for app development Apr 29 20:58:21 in other words, go ask there Apr 29 21:00:10 canadiancow ur still an op Apr 29 21:00:20 * Jug6ernaut likes asking obvious questions Apr 29 21:00:23 T_T Apr 29 21:00:29 canadiancow I'm as root # Apr 29 21:00:52 kessius you're still asking inappropriate questions here Apr 29 21:01:35 kessius: /join #android then ask Apr 29 21:01:52 also did my question get through before i was disconnected? Apr 29 21:02:40 I'm having trouble setting up eclipse (3.7.2) with ADT (18.0.0) on Ubuntu 12.04 (x64). The ADT plug-in installs without errors, but it is nowhere to be found in the menus. Looking around on google I can only see reports of failed ADT installs due to errors. I'm not sure how to go about troubleshooting this. Apr 29 21:03:48 vinaur, did you install it from the ubuntu repos? Apr 29 21:04:15 installed eclipse from ubuntu repos and ADT through eclipse's interface Apr 29 21:04:36 try installing eclipse from the website Apr 29 21:04:58 I wasn't able to correctly install it from the repos, but the website worked for me Apr 29 21:05:44 do i need to remove eclipse beforehand? remove /home//.eclipse? Apr 29 21:05:59 sudo apt-get remove eclipse Apr 29 21:06:15 I think Apr 29 21:06:58 vinaur, but yes, you should probably remove eclipse settings by removing ~/.eclipse as well and start from scratch Apr 29 21:10:58 g00s: yes, not a bad idea, sadly I need most of the J2EE junk Apr 29 21:11:05 web tools platform at the very least Apr 29 21:11:10 ah, ok Apr 29 21:11:47 hello. is it possible to have a TabHost not at the root of the layout? i'd like to have some TextView before the tabs.. Apr 29 21:12:11 use a TabWidget instead Apr 29 21:12:14 you can put it anywhere Apr 29 21:12:17 that's what she said Apr 29 21:12:30 my latest hack is a little piece of industrial automation, a rfid scanner combined with a canon eos camera, both controlled from java Apr 29 21:12:56 Ginto8, damccull, that worked. Thanks! Also, I didn't have to remove eclipse or ~/.eclipse, but now that it works, i will anyway. Apr 29 21:13:22 alankila: cool ! Apr 29 21:13:29 tabwidget is part of tabhost architecture..isnt it ? Apr 29 21:13:31 I'm currently struggling with low performance of data transfer with libusb though. It looks like synchronous transfers are the only thing the java-libusb port supports Apr 29 21:13:35 i can use it alone ? Apr 29 21:13:46 so hello, 4 MB/s transfer speed Apr 29 21:13:50 alankila: can you turn the picture res down on the eos ? Apr 29 21:14:09 yes, there's commands for comprehensively controlling the camera settings using the EOS PTP extensions Apr 29 21:14:20 although I haven't really examined those capabilities Apr 29 21:15:09 I just wrote the minimal stuff required to remotely launch the camera and then download the picture it just took, the operator uses the camera gui to select suitable settings Apr 29 21:16:01 may as well go with the smalles suitable resolution ;) Apr 29 21:16:30 can probably also play around with aspect ratio; maybe 1:1 is ok Apr 29 21:16:39 (if its a pic of a box) Apr 29 21:17:52 Hey guys, I've managed to create a list of dynamic radio buttons if my JSON is an array, however I'm now trying to set the id and the text of the radio button but can't figure out how. This is my json with the code: http://pastebin.com/10K6ZmwF Apr 29 21:18:15 maybe make sure the times on the camera and phone are synced; have the anroid part get the rfid event & timestamp, and have it lazily & async get the image data later Apr 29 21:18:44 * g00s has no idea what he's talking about, btw :D Apr 29 21:19:01 g00s: well, I'll have to look into this ... I could download the thumbnail of the photo first and display that and then fill it with the real data in the background Apr 29 21:19:07 or something Apr 29 21:19:29 or I should try to get the usb async mode to work Apr 29 21:19:48 but its cool you can talk to the camera, thats probably a relief Apr 29 21:19:52 how would I change the webList.get(i).getString("title") so it would work Apr 29 21:20:04 i mean to what should i change it Apr 29 21:20:06 and not storing the thing on the internal card but directly to memory and then download from there would also be an improvement Apr 29 21:20:27 I'm just running out of time, delivery is tomorrow and this is pretty much the best I can do for now Apr 29 21:21:54 I'll have to see what the thumb looks like, if it isn't very small, or if I can control that, I can fake this Apr 29 21:23:25 could anyone help me out? :/ Apr 29 21:23:26 canadiancow, damccull, someone - I need to store data in postgres, I've studied about BD_local " RMS" - I humbly ask how to integrate: bd---web--android Apr 29 21:24:09 the scope of that question extends far beyond this channel Apr 29 21:24:10 StyxLT, what do you mean 'so it would work'? Apr 29 21:24:46 the line doesn't work and throws an error as I don't quite get how i should handle the json object Apr 29 21:25:28 basically i need to loop through my json object and for each array item i need to create a new radio button Apr 29 21:26:00 with the text and id from the array Apr 29 21:26:09 if that makes sense Apr 29 21:26:48 Are you using built in json stuff? Apr 29 21:26:58 yes Apr 29 21:27:07 And what is it doing now? Apr 29 21:27:31 http://pastebin.com/10K6ZmwF Apr 29 21:27:34 nm see your pastebin. looking\ Apr 29 21:28:13 how do you know that isn't working? Apr 29 21:28:40 StyxLT, what is the error you're seeing? Apr 29 21:28:50 "the method getString is undefined for this object" Apr 29 21:29:07 i was just guessing how to get the values Apr 29 21:29:08 oic Apr 29 21:29:09 lol Apr 29 21:29:38 i'm really new to java, but i've got an app to build for a university project Apr 29 21:30:15 and so far everything works except this Apr 29 21:30:33 someone, people know any tutorial or link that teaches step by step to integrate mysql______server-Web____android Apr 29 21:30:44 ok you're trying to get a string from an array of many objects that each have many objects (strings) Apr 29 21:31:07 StyxLT, you need to get a JSONObject from your JSONArray then get the string from the JSONObject Apr 29 21:31:09 yup Apr 29 21:31:47 try getJSONObject Apr 29 21:31:49 instead of get Apr 29 21:32:16 because get() returns a generic object, which yo uwould have to cast into a JSONObject in order to see the getString method Apr 29 21:32:17 howeever Apr 29 21:32:34 if you getJSONObject, yo uhave the correct type to see the getString method Apr 29 21:32:59 StyxLT, http://developer.android.com/reference/org/json/JSONArray.html#getJSONObject(int) Apr 29 21:33:00 got it working! Apr 29 21:33:27 thanks a lot! this was giving me a headache Apr 29 21:33:58 np. Just remember, objects that are derivitives of 'Object', which in Java is pretty much everything, will almost always have EXTRA methods that Object doesn't have. Apr 29 21:34:14 You have to cast to, or retrieve the appropriate type in order to see its methods Apr 29 21:34:55 StyxLT, great Apr 29 21:34:57 yeah i get that, i was just a bit confused how to actually cast the types correcly Apr 29 21:35:32 StyxLT, if you use an IDE it can really help to discover which methods an object has available (or not available) Apr 29 21:36:00 Peoples. I have a fragment with this code: http://pastebin.com/ECshJ4W3. It uses http://pastebin.com/muYjwCqv and http://pastebin.com/zt6d81gX in order to store part of the fragment's state and restore it on configuration change. However, at the completion of this act, all of the restored components are exaclty the same (and always the LAST restored one) instead of retaining their uniqueness. Why is this? Apr 29 21:36:22 spuz, code-hints ftw Apr 29 21:37:03 spuz: I'm using eclipse and it is pretty awesome, but even so it requires some experience to use it's hints appropriately :) Apr 29 21:37:17 its* Apr 29 21:37:23 Ctrl-space is your friend :) Apr 29 21:38:24 oh, nice :D Apr 29 21:38:43 appreciate the help guys! thanks Apr 29 21:39:29 are there no layout_alignParent* parameters for ImageViews? Apr 29 21:40:24 intellij is complaining about it Apr 29 21:40:26 :/ Apr 29 21:40:34 <3 ctrl-space. it's the most used key combo in my eclipse Apr 29 21:42:06 Ok i found my problem.. Apr 29 21:42:37 apparently reassigning a variable to a new object changes that object in the view i attached it to. Are views passed by reference to addVIew()? Apr 29 21:43:55 And why would running MyView v = new MyView(stuff); hostView.addView(v); in a forloop not create and add 4 separate views? Apr 29 21:50:51 maybe i didn't find my problem. It seems like INSIDE the onViewCreated method, I can Log.d the appropriate output from the view, but sometime after that it changes them all to match the very last one. Apr 29 21:52:27 hiya Apr 29 21:52:35 :) Apr 29 21:52:54 i was wondering if you guys could help me on why my code deletes all my blocks instead of just one Apr 29 21:53:16 blocks ins Apr 29 21:53:21 Ack! Apr 29 21:53:34 http://pastebin.com/RdpNGnQP Apr 29 21:54:42 what i am trying to get it to do if the ball in within the dimensions of the block it sets visible to false so it is not draw on the screen Apr 29 21:57:52 smallfry1989, you've got two greater than or equals checks for the y dimension Apr 29 21:57:59 yeah Apr 29 21:58:01 just seen that Apr 29 21:58:20 hi! alright, so I got a quick & newbie question: I have a ListView inside an AlertDialog which I have populated with a ListAdapter containing some data. the data shows up fine, however I have a custom footerView which for some reason takes up a HUGE amount of space. Apr 29 21:58:43 screenshot: http://i.imgur.com/PNSWv.png pastebin of code: http://pastebin.com/TZ7WQD0N thanks Apr 29 21:59:24 that's one really big button Apr 29 21:59:24 the footerView is the "dodaj novu xicu" button which should be, well, small. the layout files are either wrap_content or specify a small (10-20dp) height Apr 29 21:59:26 I'm new to android dev. I'm trying to mimic the stock calculator app as a test project Apr 29 21:59:41 I'm having trouble with the layout Apr 29 21:59:54 where can I specify my desired height so it doesn't take up half the screen? :D Apr 29 22:00:53 how do I make it so that I have a grid of buttons that are equally spaced Apr 29 22:01:06 and so that they expand to the screen size? Apr 29 22:01:23 RustyShackleford: How many buttons do you need? Apr 29 22:02:09 20: 4 columns, 5 rowns Apr 29 22:02:54 SeriousWorm: try adding the footer view to the alertview instead Apr 29 22:03:20 there's no addFooterView method, though. Apr 29 22:03:20 or rather wrap the listview and your button view inside a linearlayout and add that linearlayout to the alertview Apr 29 22:03:58 right, I'll try that. but that doesn't really *fix* the problem, it just solves it in another way. thanks, though Apr 29 22:04:04 do you want the button to scroll with thh contents? Apr 29 22:04:24 no Apr 29 22:04:44 there should be no scrolling, at least not most of the time, a person shouldn't really have more than 2-3, max 5 items Apr 29 22:05:01 do you definite your layout all in an xml file? I have seen several examples where it seems they are making the layout within a .java file instead Apr 29 22:05:05 it's a student personal identity card, let's say you have a GF, you have her ID as well as yours, maybe a friends, but not really more than 5 of them :D Apr 29 22:05:39 RustyShackleford: the suggested way is to use the xml layouts. Apr 29 22:06:03 if I'm programmatically adding a custom view to my fragment, how do I keep it from being destroyed on orientation change? Apr 29 22:08:12 RustyShackleford, You could use nested LinearLayouts, or a tablelayout. If linearlayouts, I would use layout_weight and make them all the same Apr 29 22:11:56 do you generally write the html directly, or do you use eclipse's interface? Apr 29 22:17:27 damccull, use layout_weight on what? the buttons themselves? Apr 29 22:18:50 RustyShackleford, Have each row of buttons contained in a horizontal linearlayout, with each button a layout_weight of 1, and a width of 0dp. Then have all the linearlayouts contained in a vertical linearlayout, and each of the horizontal ones have a layout_wieght of 1, with a height of 0dp. Apr 29 22:19:53 linearlayout and now tableRow? I planned on nesting it in a TableLayout Apr 29 22:19:58 *now = not Apr 29 22:21:31 where should I put a socket that I need to keep open without disturbing the UI thread? Apr 29 22:22:04 In any non-UI thread (possibly a service) Apr 29 22:22:51 right now i made an AsyncTask that gets run on buttun click, but that creates the socket each time. im not sure how to store it on a separate thread so that each asynctask accesses the same socket Apr 29 22:23:27 Few ways... store a static reference to the field, in a separate class, in your application class or your activity class. Apr 29 22:23:59 i am still having no luck with it just destorying one rectangle on my screen it deletes them all Apr 29 22:26:06 I dont want to break the connection when i switch activities, so im guessing that means it needs to be stored on the application class. stupid question: where is that? I deal only with Activities right now. Apr 29 22:26:57 I have a custom view that saves its own state and restores itself within its own class. Now, I dynamically create this controls at runtime and v.setId(v.getId() + parentV.getChildCount + 1);. Apr 29 22:27:06 mahamoti, you probably want a service Apr 29 22:27:07 How do I preserve these views across configuration changse? Apr 29 22:27:14 http://developer.android.com/reference/android/app/Application.html Apr 29 22:28:05 mahamoti, http://developer.android.com/guide/topics/fundamentals.html <- under "application fundamentals" Apr 29 22:28:47 application components* dammit Apr 29 22:30:32 question.. i need my ASyncTask to call my activities onResume().. but there is some important utility or step in logic i'm missing.. as my ASyncTask doesn't have access to onResume().. Apr 29 22:31:45 er, from onPostExecute(), ofc. what is the standard/common way to allow for this? Apr 29 22:34:05 Hey, I'm trying to find a way to build webkit/skia without the "-Os" gcc flag. Where are the (specifically optimizing) compile flags in the android build tree? Apr 29 22:43:24 djustice, onResume() is called by the system. if you access to its stuff, try refactoring the needed code into a separate method, then manually call THAT method from your asynctask AND your onResume Apr 29 22:43:30 damccull, thank's dude, I got my numberpad setup Apr 29 22:44:08 machinaut, try on #android or #android-root. This channel's for app dev Apr 29 22:44:09 one final question. How do I eliminate the padding in between buttons? Apr 29 22:44:41 notice how the stock calculator's are all tightly spaced? Apr 29 22:44:47 RustyShackleford, you will have to look into setting the padding on the controls. Google iit, not really sure. I don't care about padding usually :) Apr 29 22:45:21 damccull, yeah it's not the end of the world. Just trying to figure out how all of this stuff fits together Apr 29 22:45:41 with glue Apr 29 22:45:41 do you think its a button setting, or rather a setting in one of the wrapping containers? Apr 29 22:46:12 RustyShackleford, I don't know. In html padding is a containing object thing, and margin is an object thing. Apr 29 22:46:20 I never looked into android's way of doing it Apr 29 22:48:51 damccull: hm.. thanks.. Apr 29 22:50:36 RustyShackleford.. hope to see you at an op defense ii stand-in. ;) Apr 29 22:56:45 damccull: my onResume call is activity specific.. so i guess my real question is how to inform the task which activity's onResume to call.. in c++ it would be by using a &Activity.. for which, and activity subclass could be passed.. Apr 29 22:56:52 but here in java-land.. i have no legs. Apr 29 22:57:16 s/, and/, any/ Apr 29 22:57:38 onResume is called automatically :/ Apr 29 22:57:55 djustice, let android worry about onResume. You worry about the code yo uwant to use. Apr 29 22:58:32 ofc, and once again by my asynctask.. i need to do seperate things based on which activity is using this asynctask. Apr 29 22:58:51 djustice, also, you can think of all java object types as automatically dereferenced T*'s (like T& but can be reassigned) Apr 29 22:58:52 make a separate asynctask for each activity Apr 29 22:59:18 Ginto8: that sounds terrible :/ Apr 29 22:59:29 Ginto8, You got any idea how I can persist a programmatically created view across orientation changes? Apr 29 22:59:31 damccull: that also sounds terrible.. Apr 29 22:59:54 djustice, why does that sound terrible? Apr 29 23:00:19 djustice, if you're doing two separate tasks depending on the activity, then only one will be working, right? So why not have one per activity to do that activity's specific task? Apr 29 23:00:33 damccull, no clue, I didn't know it couldn't do that automatically Apr 29 23:01:02 Ginto8, it persists xml controls just fine, but programmaticlaly added controls get dumped when the activity is killed and recreated Apr 29 23:02:13 in my case, i need a task.setActivity(x), whose onPostExecute calls x.onResume().. x would be any &Activity that has an onResume, but java doesn't seem to allow for this, as onResume is not visible at that scope.. Apr 29 23:02:40 damccull: because 95% of this task is exactly the same.. only the last bit is different per-activity Apr 29 23:02:56 djustice, Java is much less gung-ho about pointing to stuff than C/++. Since all these things are technically pointing to stuff but they don't want to deal with the slightly messy "pointers are also numbers YAY!" deal, and they didn't GC and polymorphism to be gigantic headaches, all non-primitives are dynamically allocated reference types Apr 29 23:03:23 didn't want* Apr 29 23:04:02 damccull, find a way to bundle it up in OnPause and recreate it? Apr 29 23:04:09 djustice, where are you storing that taskt hen? Apr 29 23:05:03 yea.. i understand this. just coming from my background into this current situation is cooking my brain a bit.. i missed out on the 'de-evolution'.. Apr 29 23:05:15 damccull: task.class? Apr 29 23:06:02 seperate file.. either way, i can't call an anon out of scope method the way i would in c++.. so.. i must read more. Apr 29 23:06:07 thanks for your time :) Apr 29 23:06:09 djustice, simple then: pass a boolean argument to it Apr 29 23:06:24 if true, do a, if false, do b Apr 29 23:06:59 de-evolution? Java provides abstractions for the same reason any other thing provides abstractions: so people don't have to deal with the computer's shit (and computers are pissy bitches). C and C++ have advantages, but Java does too Apr 29 23:07:19 djustice, http://developer.android.com/guide/topics/fundamentals/services.html Apr 29 23:07:21 damccull: no.. the different bit at the end being 'adjust this activity's ui for the data that came in' Apr 29 23:07:37 Ginto8: yep. thanks ;) Apr 29 23:07:47 doesn't mean you can't pass a boolean to the task to tell it waht to do Apr 29 23:08:00 djustice, it sounds like you have 2 separate entities and you're having trouble drawing the boundary line between them Apr 29 23:09:14 yep.. my task finds and prepares the needed data.. but how do i signal my activity that it should update it's interface? Apr 29 23:09:59 Ginto8, I CAN 'store' the views by storing their data in a parcelable in onSaveInstanceState and then programmatically recreating them with the same data in onRestoreInstanceState, but in doing that I have an issue where all of them end up with the same data displayed, even though running a trace through the code shows each has different and distinct data a time of creation and being added to the parent view. Ideas? Apr 29 23:10:58 djustice, can you not store the task part on a separate objct, and the taskresult method on the activites themselves? Apr 29 23:11:23 damccull, store them under different tags of some sort (I'm not super proficient with bundle terminology) within the bundle? Apr 29 23:11:43 then when you create asynctask in the activity, pass the 'do stuff' from the separate object, and in each activity, define the callback code Apr 29 23:13:10 Ginto8, they're coming into onViewCreated just fine as separate objects, but when I loop through and do a new MyView(), parent.addView(MyView), in the trace they all have different data, but when displayed on screen they are all displaying the same Apr 29 23:14:13 then your display code is fucked Apr 29 23:14:31 lol yep :) Apr 29 23:14:50 it's pissing me off Apr 29 23:15:02 it's http://pastebin.com/ECshJ4W3 if you want to see it Apr 29 23:15:14 i'm even trying to set an id on it Apr 29 23:15:21 on each one Apr 29 23:19:51 how can i get my Application context from within an AsyncTask? I can call getApplicationContext but this returns Context, and I need an Activity in order to call Activity.getApplication. I tried casting the Context to Activity and got runtime error. Apr 29 23:21:30 If your Aysnctask is inline, you can use SomeActivity.this.getApplicationContext(). If it is not, pass in the Activity through the constructor or something. Apr 29 23:21:55 mahamoti, was going to suggest same thing - pass through Constructor via Context :) Apr 29 23:22:20 getApplicationContext doesnt return Application Apr 29 23:23:05 mahamoti, Context.getApplicationContext() Apr 29 23:24:10 right Apr 29 23:24:23 pfn: are you there by any chance ? Apr 29 23:25:15 can I just do (MyActivity)getApplicationContext() ? Apr 29 23:25:45 no Apr 29 23:25:47 mahamoti, why not just Context.getApplicationContext()? Apr 29 23:26:13 JakeWharton: do you know, what layout they are using for the android market , err play store ? Apr 29 23:26:25 pfn thought it was a listview, I have my doubts Apr 29 23:26:32 for what part? Apr 29 23:26:40 i guess the main activity Apr 29 23:26:45 kinda looks like tiles Apr 29 23:26:55 it's probably a custom ViewGroup Apr 29 23:27:14 similar to a GridLayout Apr 29 23:27:23 damccull, is Context.getApplicationContext() different from getApplicatoinContext() ? Apr 29 23:27:36 JakeWharton: thanks Apr 29 23:27:47 mahamoti, as I understand, it the application context. Apr 29 23:28:01 right, but thats not what I want Apr 29 23:28:05 I want the Application class Apr 29 23:28:13 so pass a reference in Apr 29 23:28:25 theres no way to get the application from the context? Apr 29 23:28:30 no Apr 29 23:29:00 JakeWharton, is http://developer.android.com/reference/android/content/Context.html#getApplicationContext() not what he wants? Apr 29 23:29:05 no Apr 29 23:29:21 he wants the Application Apr 29 23:30:00 why Apr 29 23:30:03 any idea what the minimum and maximum jvm pool is on any given device? Apr 29 23:30:06 who knows Apr 29 23:30:08 which is different? Apr 29 23:30:13 yes, it is different Apr 29 23:30:16 i see Apr 29 23:30:16 like say a g1 vs a galaxy nexus Apr 29 23:30:21 canadiancow: i don't ask questions anymore Apr 29 23:30:24 i do Apr 29 23:30:27 just answer people's crazy questions Apr 29 23:30:28 id rather help them do it right Apr 29 23:30:42 i either have the time, and will help them, or i ignore them Apr 29 23:30:47 im not going to help someone make a shitty app Apr 29 23:30:50 I want the applicatoin because thats where I stored global variables. Apr 29 23:30:56 global state is bad Apr 29 23:31:13 why not just make everything static everywhere Apr 29 23:31:13 why would you say that Apr 29 23:31:24 uses memory, hard to debug Apr 29 23:31:28 ? Apr 29 23:31:30 i could go on Apr 29 23:31:32 canadiancow, is using application for defining constants also bad? Apr 29 23:31:48 i wouldnt put cosntants in the application Apr 29 23:31:51 damccull: yes Apr 29 23:31:52 but i wouldnt call that "bad" Apr 29 23:31:56 well...maybe Apr 29 23:32:02 * g00s looks at the cow Apr 29 23:32:08 please tell me where I can read about why that's bad Apr 29 23:32:12 there are situations under which your app will run with android.app.Application, not your specified subclass Apr 29 23:32:12 right, well some apps simply do not function without persisent data. Apr 29 23:32:20 oic Apr 29 23:32:22 mahamoti, then you wrote it poorly Apr 29 23:32:37 it has nothing to do with programming Apr 29 23:32:45 its the purpose of the app Apr 29 23:32:49 mahamoti, persist your data in a database, content provider, or sharedprefs Apr 29 23:32:58 lol Apr 29 23:33:27 so i should create a database to store a finite state machine of application state Apr 29 23:34:07 what exactly are you doing that requires state to be stored in the Application Apr 29 23:34:13 rather than an Activity or Service Apr 29 23:34:29 im storing an open socket Apr 29 23:34:54 it would probably be better to have the service baby sit the socket Apr 29 23:35:14 and i will also be storing the results returned by database queries that need to be maintained when switching views Apr 29 23:35:22 wut Apr 29 23:35:30 1. pass them in the intent extras Apr 29 23:35:37 2. requery on the new activity Apr 29 23:35:56 and yea...socket...why do you need to maintain that throughout multiple activities Apr 29 23:36:00 you realize these are mobile devices right? Apr 29 23:36:06 so/ Apr 29 23:36:30 3. store it in a file and reload that in the new activity Apr 29 23:36:52 why would i go to such trouble to constantly throw away data that is still needed and being used? Apr 29 23:37:12 i just presented three options Apr 29 23:37:16 only one of those involved throwing anything away Apr 29 23:37:32 but, to answer your question, so that you don't need to maintain global state Apr 29 23:37:38 Should a ViewHolder be static in a ListView? Apr 29 23:37:43 no Apr 29 23:37:54 err Apr 29 23:37:58 depends what you mean Apr 29 23:38:07 i wouldnt use "ViewHolder" anyway Apr 29 23:38:13 global state is still maintained, its maintained either in memory, on disk, or on a remote db. no reason to move out of memory for something that is being actively used. Apr 29 23:38:24 it's a poor implementation that only serves well for showing the basics in a time-constrained presentation Apr 29 23:38:43 mahamoti: except when i press the home button, it's no longer being actively used Apr 29 23:38:46 but it's still in memory Apr 29 23:39:17 canadiancow: I read a lot of "smooth examples" using ViewHolder. Do you have other examples you think better? Apr 29 23:39:25 not sure Apr 29 23:39:27 maybe i'll write one Apr 29 23:39:33 and by maybe i mean i will Apr 29 23:39:40 * canadiancow needs to set up a blog somewhere Apr 29 23:39:49 i wonder if canadiancow.com still exists Apr 29 23:39:58 apparently not Apr 29 23:40:08 cow.ca Apr 29 23:40:14 that was taken Apr 29 23:40:18 i own canadiancow.com Apr 29 23:40:27 but the blog software's gone Apr 29 23:40:34 i'd probably prefer this on skennedy.ca anyway Apr 29 23:40:35 JakeWharton, do you know if there is a way to make Lint not complain about minSDK when I'm making calls to actionbarsherlock? Apr 29 23:40:43 ive been debating "/nick skennedy" for a while now Apr 29 23:40:50 damccull: no Apr 29 23:40:54 JakeWharton, k thanks :) Apr 29 23:41:18 canadiancow changing his nick... never! :) Apr 29 23:41:29 it would be slow. i'd probably start with ccow|skennedy Apr 29 23:41:33 so that people can get accustomed to it Apr 29 23:41:45 you've been canadiancow here for at least 3 years Apr 29 23:41:56 canadiancow: Can't wait for your post :) Apr 29 23:41:58 close, but not quite Apr 29 23:42:04 i started in mid august 2009 Apr 29 23:42:17 feels a lot longer Apr 29 23:42:23 hey JakeWharton Apr 29 23:42:27 hello Apr 29 23:43:08 ive been looking around at drag-drop listview implementations, they all seem flawed Apr 29 23:43:15 or badly implemented Apr 29 23:43:36 why not just ListView Apr 29 23:43:36 im going to write a decent one and open-source it Apr 29 23:43:50 oh you mean you want to drag cells aroudn? Apr 29 23:43:54 yea Apr 29 23:44:01 i thought i saw an example of that once Apr 29 23:44:20 i should go to the gym Apr 29 23:44:24 it's been a while and im getting fat Apr 29 23:44:30 like a cow Apr 29 23:44:32 :( Apr 29 23:44:52 lol Apr 29 23:45:21 i was gonna do some google tv work tonight, but maybe i'll do that listview thing instead Apr 29 23:45:22 hehe Apr 29 23:45:33 AFTER I GO TO THE GYM Apr 29 23:45:36 wow its late Apr 29 23:45:37 FATTY Apr 29 23:45:39 cow Apr 29 23:45:41 i kno rite Apr 29 23:45:44 grade b meat Apr 29 23:45:48 hay Apr 29 23:45:48 unacceptible Apr 29 23:45:50 i think commonsware dude did a dnd listview, after admitting he didn't really know how it worked :) Apr 29 23:45:54 i'll give you some grade a meat on friday ;) Apr 29 23:45:59 oh yeah Apr 29 23:46:04 it was swipted from the old music player Apr 29 23:46:07 *swiped Apr 29 23:46:31 yea Apr 29 23:46:34 whats a good blog software Apr 29 23:46:35 that code is aweful Apr 29 23:46:39 what about the built-in drag and drop API? Apr 29 23:46:40 if im going to be writing android articles Apr 29 23:46:52 canadiancow: jekyll + github pages Apr 29 23:46:56 JakeWharton: plan Apr 29 23:47:01 I'm adding a series of views to a LinearLayout programmatically and explicitly setting an ID on each using setId() and a counter. I storing their IDs in an ArrayList which I then put in the bundle in onSaveInstanceState. I get that arraylist from the bundle in onViewCreated (in a fragment), and programmatically create one view per id in the list, explicitely settings its ID to the stored id. As I understand it, this should cause android to repopulat Apr 29 23:47:01 e those controls with the data they contained before an orientation change. Yet they are all displaying the SAME data, from the last one stored. Apr 29 23:47:06 anyone know how I fix that? Apr 29 23:47:19 canadiancow: Can you ping me when you will be done with the listview thing? I don't want to miss it :) Apr 29 23:48:16 i think the dnd api is HC and above Apr 29 23:48:28 so is the action bar and animation API Apr 29 23:48:29 which makes it pretty useless :) Apr 29 23:48:30 Can anyone recommend a good IRC for java programming? Apr 29 23:48:31 :) Apr 29 23:48:36 #java Apr 29 23:48:37 ##java Apr 29 23:48:45 ###java Apr 29 23:48:57 ##java Apr 29 23:49:01 Thanks guys. I'll give it a try. Apr 29 23:49:58 i think there should also be a standard PopupWindowFragment implementation similar to DialogFragment Apr 29 23:50:06 thats another job i got to do :) Apr 29 23:52:45 Does anyone see anything wrong with this loop? http://pastebin.com/xgJgRqBW As in, why would I not have 4 unique controls if I ran it 4 times? Apr 29 23:54:43 JulienDev: it will show up on http://android.skennedy.ca/ when i'm done Apr 29 23:56:21 canadiancow: Awesome, you're too fast for me. I have to sleep now. Thank you, bye Apr 29 23:57:35 wordpress?!? Apr 29 23:57:36 ew Apr 29 23:58:23 i dont want to write my damn shit in ruby Apr 29 23:59:18 jekyll uses markdown Apr 29 23:59:31 or html Apr 29 23:59:37 or whatever markup you want Apr 30 00:03:09 REVOKED Apr 30 00:03:17 OH SNAP Apr 30 00:03:29 sadface Apr 30 00:03:37 but hi evancharlton Apr 30 00:03:41 wait, did I just set a bunch of flags? Apr 30 00:03:43 you know theres no reason to revoke it Apr 30 00:04:03 has this place always been +cnt? Apr 30 00:04:12 canadiancow: it's the principle of the matter :P Apr 30 00:04:20 sigh Apr 30 00:04:26 its ok. i still love you Apr 30 00:04:30 but im reconsidering the maple syrup Apr 30 00:05:07 haha Apr 30 00:05:45 AOSP is taking up 12GB on my machine Apr 30 00:05:49 is there a 'clean' task? Apr 30 00:05:55 rm -rf out Apr 30 00:06:21 but yeah, you can make clean Apr 30 00:06:51 build/core/main.mk:99: *** Case-insensitive filesystems not supported. Stop. Apr 30 00:06:58 guess i've never done a build... Apr 30 00:07:25 oh yeah you have to set up a new partition on osx Apr 30 00:07:28 have fun with that :P Apr 30 00:08:03 just think of all my AOSP patches you've approved and I never even built them Apr 30 00:08:17 I haven't approved squat, homie Apr 30 00:08:44 i know its sunday night and you guys dont want to think about android dev stuff Apr 30 00:08:48 why would you ever set up a computer as case-insensitive when you have the option Apr 30 00:08:55 anyway Apr 30 00:08:56 GYYYM Apr 30 00:08:58 but wanna look at this response about fragmentation? anything to add to it? Apr 30 00:08:59 http://pastebin.com/wp6myPFW Apr 30 00:09:12 we're web devs Apr 30 00:09:23 that's how/why we don't do pixel perfect designs Apr 30 00:09:35 lol Apr 30 00:09:36 we write responsive, scaling, badass layouts that scale to infinity Apr 30 00:09:51 ==JakeWharton Apr 30 00:10:07 most layouts can be broken down into a stretchable region Apr 30 00:10:08 huh? you guys trade nicks? Apr 30 00:10:30 no, I'm saying my input is the same as JakeWharton's Apr 30 00:13:05 oh fuck Apr 30 00:13:06 birbeck: i wrote something similar recently, mine was relating to stupid designers ;) Apr 30 00:13:10 the gym closes at 6 on sunday? Apr 30 00:13:12 SON OF A BITCH Apr 30 00:13:14 leveraging the resource framework is probably the single most important thing a developer can learn to do properly Apr 30 00:13:15 lol Apr 30 00:13:23 developer and designers Apr 30 00:13:33 especially with the new -w and -sw qualifiers Apr 30 00:13:51 <3 resource framework. Apr 30 00:13:53 * Napalm goes to look them up Apr 30 00:13:59 its hard to use sw though Apr 30 00:14:05 it only owrks on like 5% of devices Apr 30 00:14:06 * damccull hates, however, this retarded bug he's trying to find. Apr 30 00:14:09 JakeWharton: i have trying to describe the new -w -sw modifiers to newbs Apr 30 00:14:38 you have to then explain layout aliases and such, and then they are like fuck android Apr 30 00:14:59 oh smallestWidth Apr 30 00:15:06 yea i read that before Apr 30 00:15:19 which i guess if they dont want to learn correct design, then fuck them ;-) go do ios Apr 30 00:15:41 birbeck: you can ask them if they want to go back to S60 or WinCE Apr 30 00:16:10 birbeck: i literally refered to some page from d.android.com/design at the end of each paragraph Apr 30 00:16:18 thats how messed up things were Apr 30 00:16:46 If I create a view programmatically, call setId on it, and recreate it after an orientation change, and call setId again with the SAME id as before...should that not automatically restore its data? Apr 30 00:17:04 no Apr 30 00:17:29 i don't know what I did but i can't see my Log.e output any more. it just stopped working. can anyone help me ? Apr 30 00:17:37 ...but the interet says it should, birbeck Apr 30 00:17:55 damccull: the internet is often wrong, where is that stated though? Apr 30 00:18:06 can anyone help me out ? Apr 30 00:18:15 devslash: check the pause button in logcat, if still an issue restart adb deamon and if still a problem restart eclipse Apr 30 00:18:32 i did restart eclipse and adb Apr 30 00:18:43 devslash: did you change the log level on your output, did you select the correct device? is your log statement wrapped in isLoggable? Apr 30 00:18:47 birbeck, true. Ok, then how do controls that can save their own instance state do that when programmatically created instead of inflated? Apr 30 00:18:55 devslash: open a console and type: adb devices, is your device listed? if it is try adb logcat there Apr 30 00:19:13 devslash: do you have multiple android devices plugged in? Apr 30 00:19:20 birbeck: 1. no i wouldn't know how to do that 2. yes 3. no idea Apr 30 00:19:26 no only 1 device Apr 30 00:19:27 devslash, did you jack up the filters in eclipse logcat output? Apr 30 00:19:39 i think i may have Apr 30 00:19:43 damccull: Apr 30 00:19:51 i did adjust it Apr 30 00:20:02 devslash, then just edit your filter and re-add error levels Apr 30 00:20:03 birbeck: since when can you select what device logcat uses? Apr 30 00:20:05 i don't see any of my log cat output from dab logcat Apr 30 00:20:23 adb Apr 30 00:20:24 Napalm, I just click the device I want in the DDMS view and it changes logcat Apr 30 00:20:27 Napalm: since forever... you select the device in the devices view, not in logcat Apr 30 00:20:35 logcat will show the logs for the device selected Apr 30 00:21:11 iamb devices shows my device Apr 30 00:21:17 damccull: Apr 30 00:21:22 oops, i keep doing that Apr 30 00:21:32 i dunno what else to do Apr 30 00:21:44 damccull: even custom views need to ovverride onSaveInstanceState and onRestoreInstanceState Apr 30 00:21:57 birbeck, it does. Apr 30 00:22:22 birbeck: never seen devices view outside of DDMS, 3 years and counting :| just pulled the view into my perspective Apr 30 00:22:27 damn now i feel like a fool :( Apr 30 00:23:04 any other ideas Apr 30 00:23:09 birbeck, but the custom view is then instantiated and id-set in code instead of xml. I override those two in the fragment as well, to store the id and then reset it when they're recreated Apr 30 00:23:52 devslash: if your not seeing the logcat in a console window typing "adb logcat" and you also only have one device plugged in, then your device is not sending its logcat Apr 30 00:23:59 devslash: reboot your device Apr 30 00:24:03 i have Log.e("in onCreate()","") and i don't see it Apr 30 00:24:11 my g2x ? Apr 30 00:24:20 or the mac I'm developing on Apr 30 00:24:28 your g2x Apr 30 00:24:29 anyone have tips as how ICS does transparent welcome screen on first boot? Apr 30 00:24:37 http://dl.dropbox.com/u/173412/overlay.png Apr 30 00:24:39 ill try Apr 30 00:25:19 radioact1ve: look at it in hierarchyviewer Apr 30 00:25:21 radioact1ve: popupwindow with translucent attribute set on its style and background set to a semi transparent color Apr 30 00:25:22 radioact1ve: transparent activity? full screen dialog? Apr 30 00:25:32 radioact1ve: or dialog Apr 30 00:25:32 I'd probably do a transparent full-screen activity Apr 30 00:25:40 or activity hah Apr 30 00:26:24 gah, i have popup windows on my mind .. i see them everywhere Apr 30 00:26:32 :'( Apr 30 00:26:38 haha Apr 30 00:26:49 PopupWindow sucks, haha Apr 30 00:27:06 i wonder if my problem is the simple fact that I was storing my arraylist in the bundle while INSIDE the loop that was creating said arraylist....time to run and check. Apr 30 00:27:08 i was thinking fullscreen transparent activity but can you still "click through" Apr 30 00:27:25 no, but you can't with the launcher, can you? Apr 30 00:27:39 iirc, it eats the first click (until the overlay is gone) Apr 30 00:28:06 right you have to tap the circle or ok then its gone Apr 30 00:28:19 trying to do a similar "tutorial" Apr 30 00:28:36 nope that wasn't it Apr 30 00:29:30 still doesn't work Apr 30 00:30:08 devslash_: now do, adb kill-sever; adb devices Apr 30 00:30:15 does it list your g2x Apr 30 00:30:58 yes Apr 30 00:31:04 42a10517037c7106 device Apr 30 00:31:05 and adb logcat shows nothing? Apr 30 00:32:53 devslash_: ? Apr 30 00:32:54 none of my output from Log.e Apr 30 00:32:54 it shows a shit ton of other stuff Apr 30 00:32:54 hang on let me paste bin some of it Apr 30 00:33:00 ah Apr 30 00:33:02 ffs Apr 30 00:33:12 i was asking if it shows "anything" Apr 30 00:33:13 :P Apr 30 00:33:19 yes Apr 30 00:33:20 then its a problem in your app Apr 30 00:33:25 breakpoint the log.e line Apr 30 00:33:25 if I have many buttons, is there a way to set all of their properties? Apr 30 00:33:36 use a style Apr 30 00:33:37 in my on create the first thing i have is Log.e but i don't see it Apr 30 00:33:41 run as debug, does it break? no.. thats because your log code is not runnig Apr 30 00:33:59 devslash_: if it doesnt break, check your code-paths Apr 30 00:34:34 any guesses as to where in the source that welcome screen would be located? Apr 30 00:34:57 packages/apps/Launcher3 Apr 30 00:34:57 use log cat to find the name of the activity Apr 30 00:34:58 oops Apr 30 00:35:00 grep -r it Apr 30 00:35:00 packages/apps/Launcher2 Apr 30 00:35:14 RustyShackleford: if you using a theme then you can simple override android:buttonStyle to point to your own style Apr 30 00:35:16 probably src/com/android/launcher2/Launcher.java or something Apr 30 00:36:30 copy that thanks! Apr 30 00:36:49 like I said, hierarchyviewer will help a lot for this Apr 30 00:36:52 ok i put a breakpoint on the Log.e line which is the first line of my on create and i stepped over it but i don't see it in my logcat output Apr 30 00:37:24 devslash_: thats because your filter is set too high Apr 30 00:37:46 can you tell me what the default filter is ? Apr 30 00:37:53 devslash_: change the dorp down on the right to vebose Apr 30 00:38:14 its set to verbose Apr 30 00:38:16 for sure having something issues with that but im working on it Apr 30 00:38:30 devslash_: on the left filter list, select "all messages" Apr 30 00:38:54 I'm in perspective mode and i don't see that in the logcvat window Apr 30 00:39:05 oh nm Apr 30 00:39:57 i selected all messages Apr 30 00:40:02 i still don't see it Apr 30 00:40:34 devslash_: go into ddms and make sure you have your device selected Apr 30 00:40:42 the ddms perspective Apr 30 00:41:02 remind me where that window is at Apr 30 00:41:19 window menu > show views > search for devices Apr 30 00:41:21 :P Apr 30 00:41:23 ok Apr 30 00:41:43 yes it is Apr 30 00:41:51 and you still dont see it? Apr 30 00:41:52 my phone is selected at the top Apr 30 00:42:05 but you see other logcat messages from your device? Apr 30 00:42:09 the same device id Apr 30 00:42:10 no Apr 30 00:42:12 hmm Apr 30 00:42:15 let me try the emulator Apr 30 01:02:00 I'm setting icons for my menu and I'm using @android:drawable but ic_menu_refresh says it's not public. Is there a way to use that or do I have to find another icon? Apr 30 01:04:00 copy it into your project Apr 30 01:06:54 whaddayamean 'not public' ? Apr 30 01:07:17 Napalm: I'm running the emulator and i still don't see my logcat output Apr 30 01:08:13 xorgate, 2012-04-29 19:59:45 - EqD] /home/cr5315/android-sdk/workspace/EqD/res/menu/menu.xml:4: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh'). Apr 30 01:08:27 cr5315: as JakeWharton said, copy it into your project Apr 30 01:09:09 what causes this error? i've not encountered such problems using standard icons Apr 30 01:09:23 it's not a public resource Apr 30 01:09:26 it's not a public resource in the framework Apr 30 01:13:23 I was wondering if anyone could help me build an android kernel from source (or do it for me, if I provide the link) :0 Apr 30 01:19:26 that's really not what we're here for Apr 30 01:20:18 I've never done it, and the only tutorial I've found is pretty shoddy and outdated Apr 30 01:20:36 try #android-root Apr 30 01:20:41 or even #Cyanogenmod Apr 30 01:20:49 hmm Apr 30 01:20:56 evening everyone, I'm using a JsonParser class from http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ and what i'm trying to figure out now is how to add a callback function so that on every post request I'd show a Progress dialog Apr 30 01:20:57 I asked root, but i'll try cyanogenmod Apr 30 01:24:40 because atm if I show a progress dialog before I create a new JSONParser object and dismiss the dialog after the request, I don't even see the dialog. Apr 30 01:25:43 because you're doing it on the UI thread Apr 30 01:25:49 which is blocking the screen from refreshing Apr 30 01:26:21 try using an AsyncTask Apr 30 01:27:11 ah.. makes sense Apr 30 01:27:21 I'll give it a go. Thanks :) Apr 30 01:28:32 hello Apr 30 01:29:24 i need some help with smali editing. I am trying to fix a camera app, which in my phone whenever i start it, it is upside down Apr 30 01:29:52 It does respond to the accelerometer Apr 30 01:30:05 it is simply... upside down :P Apr 30 01:30:10 there's a smali channel Apr 30 01:30:17 either #smali or #baksmali Apr 30 01:30:21 oh Apr 30 01:30:21 can't remember which Apr 30 01:30:24 sorry Apr 30 01:30:28 they'll be able to help more Apr 30 01:30:30 thanks ill go ask there Apr 30 01:47:01 http://lifehacker.com/5906041/five-best-android-phones Apr 30 01:47:15 is voting over? Apr 30 01:47:22 :) Apr 30 01:48:01 apparently not Apr 30 01:48:18 GNex was winning by a landslide yesterday Apr 30 01:48:18 GN seems to have the most :) Apr 30 01:48:56 er, maybe that was this morning Apr 30 01:49:05 it says it was posted today Apr 30 01:49:34 my galaxy nexus loves to reboot sometimes when i push an app from eclipese Apr 30 01:52:15 http://gigaom.com/2012/04/29/the-phone-is-poised-to-usurp-the-computing-throne/ Apr 30 01:52:35 my friend works for zumobi :) he tells me what their android devs really think :D Apr 30 01:53:14 yeah boys, I had ops in #java a moment ago. Apr 30 01:53:18 <- Apr 30 01:56:20 * g00s shudders at the thought of pragma- being op of any channel Apr 30 01:56:23 lol Apr 30 01:57:03 how would I set the 10.1" tablet layout to the default editing config for layouts in eclipse? Apr 30 02:02:43 * g00s begins reading http://www.amazon.com/Language-Implementation-Patterns-Domain-Specific-Programming/dp/193435645X Apr 30 02:10:00 Why does android take so long to compile ): Apr 30 02:10:39 i'm starting to wonder - with phones these days, if there is any point to supplying assets which are simply rescaled for all dpis- and not just provide xhdpi and let the phone rescale it Apr 30 02:11:02 g00s: depends on your assets Apr 30 02:11:06 this was important back in 2009 i'm sure, but even my droid-1 did a decent job of rescaling icons quickly Apr 30 02:11:11 yeah, they are pretty small Apr 30 02:11:34 no, I mean on what the actual content is Apr 30 02:11:42 i have this elaborate system to take svgs and rasterize all these assets Apr 30 02:12:01 te content is just simple monochromatic listview icons , mostly Apr 30 02:12:15 some stuff you can do offline much better quality than the relatively low quality resampling done on device Apr 30 02:12:29 There are a lot of cases where you'll want fewer things in your icons when they're smaller. Apr 30 02:12:35 yeah, stuff like that isn't a big deal and should be scalable on device Apr 30 02:12:42 freecandy: technically you're not supposed to do that Apr 30 02:13:00 you're supposed to have identical content, just at a different image resolution Apr 30 02:13:12 I am inclined to agree with freecandy Apr 30 02:13:21 but frankly, I think it's reasonable to cheat a bit and clean up images for lower res versions if you can Apr 30 02:13:23 technically fuck them. I do what I want! Apr 30 02:16:26 well, a good summary is here, http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html Apr 30 02:16:47 but i argue that most of us don't have the time to reauthor vector graphics they way google does Apr 30 02:17:19 I argue you take far longer to do that stuff than you should! Apr 30 02:17:36 ...says the guy currently wasting a bunch of time tweaking artwork Apr 30 02:19:07 one of the things he mentions can be dealt with csg media queries, but i haven't tried that Apr 30 02:19:11 *svg Apr 30 02:19:18 http://my.opera.com/ODIN/blog/2009/10/12/how-media-queries-allow-you-to-optimize-svg-icons-for-several-sizes Apr 30 02:19:52 love me some css media queries Apr 30 02:20:01 it'd be nice if android supported svg :-/ Apr 30 02:20:09 there are third party libs Apr 30 02:20:15 of course, svg is a bitch of a format to support Apr 30 02:20:28 those third party libs don't render my icons from a single .svg in my apk though! Apr 30 02:20:46 they're probably open source Apr 30 02:20:49 you could contribute Apr 30 02:21:59 I don't fault them for not supporting it, because it is a huge PITA, but it would have been nice to have Apr 30 02:25:41 Hi, any suggestions when adb can't recognize a device that it recognized this morning Apr 30 02:25:58 kill-server, start-server Apr 30 02:25:59 reboot the machine Apr 30 02:26:01 reboot the phone Apr 30 02:26:04 or all three Apr 30 02:26:15 plug the usb cable back in? Apr 30 02:26:17 pull the batteries Apr 30 02:26:25 All have been done Apr 30 02:26:28 unplug the devices Apr 30 02:26:34 :) Apr 30 02:26:44 unplug all the things Apr 30 02:26:46 Its this stupid shitty device I think Apr 30 02:27:22 And fyi if you pull the battery it doesn't shut off Apr 30 02:27:48 last resort : dissasemble the phone and put it back together Apr 30 02:28:06 probably because you have it plugged in Apr 30 02:28:55 No it can hot swap batteries Apr 30 02:29:05 The only cool function it has Apr 30 02:29:37 step 1) pull battery step 2) wait for it to die step 3) ???? step 4) profit Apr 30 02:29:51 You guys are so much help :P Apr 30 02:32:45 is this for your crazy motorola enterprize tablet? Apr 30 02:32:59 Yes Apr 30 02:33:00 Omg Apr 30 02:33:04 It sucks so hard Apr 30 02:33:13 time for it to go out the window? Apr 30 02:33:32 I was like well I'll just see if this app works and email it to myself Apr 30 02:33:41 Can't even set up a gmail account on this thing Apr 30 02:33:52 Microsoft exchange or gtfo Apr 30 02:37:28 Hi. I'm trying to synchronize two or more Androids. The app is receiving a udp package from a wireless router, to set black or to set white the screen. So they are just blinking the screen. Apr 30 02:37:40 the thing is that they are blinking the screen sinchronized, but sometimes it (one android at a time) missed a cicle. Apr 30 02:38:27 source of my program here: http://pastebin.com/7QsaiuKh Apr 30 02:39:02 udp is sometimes missing a cycle? Apr 30 02:39:04 gee willigers Apr 30 02:39:09 missed a cicle? using UDP? Apr 30 02:39:10 NO WAI Apr 30 02:39:19 Not that I know what a cicle is Apr 30 02:39:24 Cycle Apr 30 02:39:33 cycle* Apr 30 02:40:09 if it is important to not drop packets, it's known to NOT use udp Apr 30 02:40:20 lucy33, UDP does not guarantee packet order, does not guarantee that packets will not be corrupted, and does not even guarantee that they will arrive Apr 30 02:41:06 unless you're sending rather high data loads multiple times per second (eg. a multiplayer game), TCP is probably a better choice Apr 30 02:42:00 i can understan that... but i can't understand why Android1 is getting the right cycle at the same time that Android2 is getting a wrong cycle..... Apr 30 02:42:08 udp packet's are sent over broadcast Apr 30 02:42:22 one get's the packet, one doesn't Apr 30 02:42:26 yes Apr 30 02:42:32 that's UDP in a nutshell Apr 30 02:42:36 Because wireless is good at dropping packets? Apr 30 02:42:50 Well not dropping them Apr 30 02:43:01 just making them disappear somewhere Apr 30 02:43:02 lol Apr 30 02:43:08 Corrupting or not delivering them Apr 30 02:43:11 yeah Apr 30 02:43:24 yay for ecc Apr 30 02:43:44 lucy33: you are not even guaranteed to receive an UDP packet you sent to yourself on loopback interface Apr 30 02:44:01 ok Apr 30 02:44:53 with UDP, you need to do your own synchronization Apr 30 02:47:37 ok... i need to change the background near to 6 times a second. do you think that LinearLayout can handle that? Apr 30 02:48:47 can you suggest a faster one (i just need the background color... as i'm not going to show anything more in it)? Apr 30 02:51:24 lucy33: I would directly use Surface Apr 30 02:52:49 i'm new to android... i will give it a look... thanks Apr 30 02:58:14 hello? Apr 30 02:58:33 maybe Apr 30 02:59:02 JakeWharton maybe Apr 30 02:59:13 canadiancow|work: change your theme Apr 30 02:59:15 finally got the hang of this nickserv thing! I was looking for help with Bitmaps Apr 30 02:59:22 wut JakeWharton Apr 30 02:59:50 wordpress Apr 30 02:59:53 to what **** ENDING LOGGING AT Mon Apr 30 02:59:58 2012