**** BEGIN LOGGING AT Tue Jul 03 02:59:58 2012 Jul 03 03:31:02 where do I put icon files in Eclipse as a resource ? Jul 03 03:31:29 example, I've got a flag picture but where would I put this file with other images ? Jul 03 03:31:30 res\drawable Jul 03 03:31:33 thanks Jul 03 03:31:50 oh yeah... which one ? Jul 03 03:32:15 any they all act as the same Jul 03 03:32:29 why so many btw ? Jul 03 03:32:39 different phone models I assume. Jul 03 03:32:40 when your talking about setting it up for many different devices you use such differences Jul 03 03:32:57 yes and different resolutions but for basic apps Jul 03 03:33:08 gotcha Jul 03 03:34:30 samthewildone: for those read the docs on which goes where but if you have an app icon make sure in your manifest choses myicon not the default ic_launcher Jul 03 03:34:44 hey how do i make the android alarm sound from the command line Jul 03 03:34:48 i got this so far Jul 03 03:34:50 # am start -a com.android.intent.action.ALARM_ALERT -n com.android.deskclock/.AlarmAlertFullScreen Jul 03 03:35:01 but it forcequits Jul 03 03:36:55 I'm trying to move a sprite from one location on my board to another. I have a call to draw the background image where the sprite used to be, and a call to draw the sprite where it should go. I call invalidate on both of these rectangles after I draw them. The sprite does in fact show up where it should.. but everything between it and where it used to be is blank Jul 03 03:37:08 in other words, invalidate erases too much of my board and i'm not sure why. Jul 03 03:37:41 my onDraw function has a callback switch to handle the different draws appropriately Jul 03 04:04:06 Correct me if I am wrong, but the only way to silence the ringer is via AudioManager and the only way to listen for an incoming call is via a BroadcastReceiver ? Jul 03 04:04:47 Therefore the only way to mute the phone on an incoming call is to use an AudioManager in a BroadcastReceiver? Jul 03 04:08:08 anyone know how i can make an alarm go off from command line? Jul 03 04:08:20 so far i'm at am start -a com.android.intent.action.ALARM_ALERT -n com.android.deskclock/.AlarmAlertFullScreen Jul 03 04:21:34 you guys know any way to check if a receiver is still listening? Jul 03 04:23:23 Hi, what are my options for tracking user uploads without the need for a use to create an account? Jul 03 04:24:33 Can I just use the devices gmail name or is that asking for trouble? Jul 03 04:24:49 would mac address be good enough? ip addresses can change Jul 03 04:26:06 when i install apps.. some of them say they want to identify the type of device and location... Jul 03 04:27:49 does pageviewer work in android 2.x Jul 03 04:27:56 ViewPager? Jul 03 04:28:02 yes it's part of the support library and works on 1.6+ Jul 03 04:28:04 er, that yeah Jul 03 04:28:05 hmm Jul 03 04:28:29 i built an application, works perfectly in 4.0.4 but swipe doesnt work in 2.3 Jul 03 04:28:46 tabs + swipe to switch between fragments Jul 03 04:29:03 are you using support library fragments? Jul 03 04:29:30 yes Jul 03 04:29:40 support.v4.app.fragment; imported Jul 03 04:30:10 hey guys, i must've missed something here, but I downloaded the SDK from Google, used the SDK manager to load Android 4.0 and 4.1 SDKs.... now what? Jul 03 04:30:23 do I need to open Eclipse and add the software sources or something? Jul 03 04:30:39 or does it ship with its own Eclipse install? Jul 03 04:31:00 you should download eclipse Jul 03 04:31:16 joholz: already have Eclipse. Jul 03 04:31:57 have you installed the plugin to eclipse? Jul 03 04:32:24 do I need to further authenticate the accountmanager's gmail account, or can I use it knowing it is already secure Jul 03 04:32:47 HorizonXP, http://developer.android.com/tools/sdk/eclipse-adt.html Jul 03 04:35:59 adt = android development t...... Jul 03 04:36:16 ools Jul 03 04:37:01 str.insert(0,"f"); Jul 03 04:37:04 what's preferred, ADT or Eclipse plugin? Jul 03 04:37:14 wait Jul 03 04:37:18 they're one and the same. Jul 03 04:37:19 derp Jul 03 04:38:52 download eclipse, and inside of eclipse Help>installNewSoftware> then type in the correct address for the ADT i believe. Jul 03 04:39:01 jerry_l: yup Jul 03 04:39:11 similar to BlackBerry Java dev Jul 03 04:39:21 they are very much NOT one and the same, but they complement each other well (or at least that's what Google recommends) Jul 03 04:39:41 JakeWharton: ADT Plugin and ADT are different? Jul 03 04:39:48 Yes Jul 03 04:39:55 I use ADT, I do not use Eclipse nor the ADT Plugin Jul 03 04:40:29 how come all I see is the ADT Plugin Jul 03 04:43:07 I'm not sure what you're asking. Jul 03 04:43:30 On Google's developer.android.com, all I see is reference to the Eclipse plugin. Jul 03 04:43:38 ADT Eclipse plugin. Jul 03 04:43:47 I do not see a reference to ADT alone Jul 03 04:43:52 android dev with intelliJ is pretty nice these days, i use a lot of library projects and got throughly fed up with eclipse breaking Jul 03 04:45:17 probably because they have to make it as easy as possible for people to try and get setup Jul 03 04:47:36 JakeWharton: lol, for idjits like me? fair enough. Jul 03 04:47:56 i should be fine with Eclipse for now. I know I'll regret it eventually, but until then, i'll stick with it. Jul 03 04:48:17 i was playing on some drum/synth apps and i can only press 2 at the same time.. is there a limit for multitouch? or sounds? Jul 03 04:48:58 Eclipse is fine really, it isn't great, but it gets the job done. Jul 03 04:49:47 I ogtta say adt 20 is better especially in the gui dept Jul 03 04:49:53 Start Eclipse, then select Help > Install New Software.... Jul 03 04:50:05 In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location Jul 03 04:50:17 Jul 03 04:50:26 https://dl-ssl.google.com/android/eclipse/ Jul 03 04:50:39 You don't say? Jul 03 04:56:26 why doesn't the second textview show Jul 03 04:56:27 http://pastebin.com/LA6LWud6 Jul 03 04:56:52 Eclipse: add orientation="vertical" to the LinearLayout Jul 03 04:57:00 JakeWharton: i changed android:minSdkVersion from 8 to 7 and swiping started working in 2.3 too Jul 03 04:57:13 but it changed the way the actiontabs look a bit Jul 03 04:57:28 Eclipse: reason: default is horizontal, so the second view is in the right of the first one, but the first one fills the width. Jul 03 04:58:47 aaah Jul 03 04:59:05 i thought default was vertical Jul 03 04:59:15 i normally use relative layout Jul 03 04:59:41 wow, that's super annoying Jul 03 04:59:50 I need a USB driver for my host OS Jul 03 05:00:07 fine. but stupid when Samsung doesn't refer to Galaxy Nexus by its name Jul 03 05:00:20 but instead refers to it by the arcane name of SCH-I515MSAVZW Jul 03 05:02:15 with default drivers linux should be able to support usb drivers.... Jul 03 05:02:48 jerry_l: i'm on Windows. maybe I should switch to using my Ubuntu VM. Jul 03 05:03:57 xp>linux still wont work.. Jul 03 05:04:32 try a live boot if you wont dual boot. i have about 10 boot. Jul 03 05:04:45 love grub Jul 03 05:06:19 Hey guys, so I've been trying desperately to learn how to dynamically add buttons to a View all day and can't figure it out.... Jul 03 05:06:30 Is anyone good at that kind of thing? Jul 03 05:08:11 Hey I have some issues with WebView and SSL Jul 03 05:08:46 can some one tell me why WebView doesn't cache TLS session id? Jul 03 05:08:52 jessicajames, what have you been trying? Jul 03 05:09:05 I'm pretty sure there is a wealth of tutorials on that subject Jul 03 05:10:37 I just found another tutorial Jul 03 05:10:43 if this doesn't work, I'll be back :( Jul 03 05:10:43 yeh addview(view,layoutparams) Jul 03 05:10:52 your layoutparams are probably effed Jul 03 05:11:02 ron_frown: what did the commonsware guy do ? Jul 03 05:11:22 bah. those books sucked high hell Jul 03 05:11:22 to do ADB over wifi, do I need to use an app on a Galaxy Nexus? Jul 03 05:13:14 high hell = heaven Jul 03 05:13:33 if you believe in those kinds of thongs Jul 03 05:14:16 high hell = heaven = thong :) Jul 03 05:14:36 i'm sure bacon, or the lack thereof, fits into the equation somewhere :) Jul 03 05:14:47 Knossos, would you recommend any particular tutorials?? Jul 03 05:15:06 JakeWharton: I love abs man Jul 03 05:15:06 I can't think of any off hand. I'll have a quick search. Jul 03 05:15:27 Eclipse: but JakeWharton does not like Eclipse :O Jul 03 05:15:42 JakeWharton: I HATE U!!!! Jul 03 05:15:56 I'm sorry!!! Jul 03 05:16:05 so ADB Wifi requires an app? Jul 03 05:16:13 I seem to do it a different way to these tutorials Jul 03 05:16:18 i just upgraded to eclipse 4.2 today Jul 03 05:16:29 i was using indigo Jul 03 05:16:51 how is it going ? Jul 03 05:16:54 I kept getting stackoverflow errors a lot at random though with indigo Jul 03 05:16:57 i stuck to 3.8 Jul 03 05:17:02 why? Jul 03 05:17:16 the ui looks nice Jul 03 05:17:18 hipster Jul 03 05:17:24 There has to be an easy approach to this.. Jul 03 05:17:29 the tool bar at top better support android now Jul 03 05:17:31 by the way, asking again, is there any simple guide to place the label text below the icons in actionbar (tabs) Jul 03 05:17:39 everything I found was confusing or didn't deal with buttons Jul 03 05:18:19 last time i asked someone told me this is not suggested , not a proper way of doing things on android but twitter uses it, the task manager uses it etc Jul 03 05:19:03 http://4.bp.blogspot.com/--PUDMq5E4kQ/TVli6mUTcVI/AAAAAAAAAA0/_jq0WU1mWWQ/s1600/Top-Android-App-Advanced-Task-Manager-New-Home.png kinda like this Jul 03 05:19:19 JakeWharton: I been trying to learn how to get tabs on while using abs(Hey that rymes), but I cant find any good explanations. I guess im gonna have to learn tabs without abs first. Jul 03 05:19:50 those are buttons Jul 03 05:19:58 oh Jul 03 05:20:26 they lok like tabs, would the user be confused if i had tabs with similar layout Jul 03 05:20:33 look* Jul 03 05:20:40 Eclipse: i tried 4.2 and didn't even notice any difference. i expected something totally different i guess. when i looked at the 'whats new' i was pretty meh. Jul 03 05:21:28 the 4.x branch has been in the works for like years Jul 03 05:21:42 anyhow, 3.8 uses the JDT from Juno Jul 03 05:22:04 jessicajames: http://pastebin.com/CHne07YU Jul 03 05:22:59 Knossos, thank you so much. So, all I need to do is change TextView to Button and we're good? Jul 03 05:23:02 I'll try it now.. Jul 03 05:23:19 ok here i ask again... Everytime hit a page from android webview it seems to be doing a handshake everytime. Ideally it should cache the session id and skip handshakes on subsequent requests until the session id expires Jul 03 05:23:27 Basically, you find the layout you want to add the view to. You create the new view to add (in this case, textview). You add the view to the layout using LayoutParams of the layout. Jul 03 05:23:35 anyone can help me? Jul 03 05:23:38 g00s: Performance is better I think and I havent got any stackoverflow errors yet Jul 03 05:23:48 If you change textview to button, you will add buttons to the textview Jul 03 05:23:50 er Jul 03 05:23:51 there's 22% more stack in Eclipse 4.x Jul 03 05:23:53 add buttons to the layout Jul 03 05:24:25 * g00s never saw any stack overflows in eclipse. Jul 03 05:24:41 Eclipse: did you first see the stack overflow with Indigo + ADT 20 ? Jul 03 05:24:46 awesome Jul 03 05:24:50 i need to reboot my laptop Jul 03 05:24:52 but will try it Jul 03 05:24:54 ADT 19 Jul 03 05:24:56 thank you so so much again Jul 03 05:24:59 The only thing that annoys me about Eclipse is how it deals with library projects Jul 03 05:25:01 Np jessicajames Jul 03 05:25:02 weird Jul 03 05:25:09 There were stack overflows a plenty if you used ABS and the layout editor Jul 03 05:25:22 hmm Jul 03 05:25:27 maybe thats why Jul 03 05:25:30 Xav finally got it sorted Jul 03 05:25:41 never used abs :P Jul 03 05:25:50 JakeWharton: why would abs do that Jul 03 05:26:03 because it uses both prefixed and unprefixed attributes in themes and there was a bug in ADT Jul 03 05:26:26 no one :( Jul 03 05:26:51 its fixed in ADT 20 or is it still there? Jul 03 05:26:59 g00s: why Jul 03 05:27:24 i was going to use abs or some actionbar, but i'm rethinking the whole thing because the app is designed to be used in harsh / cold conditions; some users may have those touchscreen-sensitive gloves on Jul 03 05:27:42 the actionbar in general is too small, i need about a 14mm patch Jul 03 05:27:55 http://stackoverflow.com/questions/11271469/ssl-session-not-being-reused-in-android-webview Jul 03 05:28:04 my app is unusual, lets just say Jul 03 05:28:05 you know the action bar can be resized right? Jul 03 05:28:18 really ? can the overflow menu ? Jul 03 05:28:24 be more specific Jul 03 05:28:41 the height of items in the overflow menu; can one have control over those also ? Jul 03 05:29:09 probably Jul 03 05:29:11 i'd have to check Jul 03 05:29:20 they derive their height from a style though Jul 03 05:30:07 i want to resize the action bar too Jul 03 05:30:15 >_< Jul 03 05:30:54 I want to extend it by about 1/4 of it's original size Jul 03 05:32:13 Knossos, for FIND_YOUR_LAYOUT_HERE, do I reference the xml? Jul 03 05:32:16 ok i'm alone! no one replies here. I ll go hunt for my solution myself Jul 03 05:32:26 As a matter of fact, what all should the xml have in it? Jul 03 05:33:31 my users might be using these http://www.agloves.com/ ; so i have to design things a little bigger / easier because they are a tad bit more clumsy Jul 03 05:33:42 just a tad Jul 03 05:34:20 or something like this http://www.smartouchgloves.com/smartouch.htm Jul 03 05:37:24 StackOverflow is becoming a giant source of misinformation Jul 03 05:37:32 LOL Jul 03 05:37:56 "I want to download images and store them in sqlite" Jul 03 05:38:02 accepted answer should be "DON'T" Jul 03 05:38:14 instead it's a link that'll probably be dead in a few months Jul 03 05:38:21 it's his choice Jul 03 05:38:33 we just give him the answers Jul 03 05:38:42 we do say our choice most of the time Jul 03 05:38:45 Can someone please quickly help me with a linearlayout question. I am getting #1, but I am trying to get #2 in this link: http://s48.radikal.ru/i120/1005/ff/6e439e04bbc8.jpg Jul 03 05:39:12 basically, the height of my linear layout is being dictated by the first element it contains, but I want it to use the second element Jul 03 05:39:21 use RelativeLayout Jul 03 05:39:34 or use android:layout_weight Jul 03 05:39:37 and then just rightOf/leftOf? Jul 03 05:39:39 1 Jul 03 05:39:50 weights only control size in the direction of the orientation Jul 03 05:40:07 i couldnt get the layout_wight to work Jul 03 05:40:21 are you trying to fit bot images in one screen? Jul 03 05:40:31 or you want them side by side? Jul 03 05:40:51 i want them side by side. The second element is another linearlayout that contains two pieces of text, one on top of the other Jul 03 05:41:08 then use would need relative layout Jul 03 05:41:10 i would like the outer linearlayout to scale to the height of the second element, which is the vertical linearlayout with two text fields Jul 03 05:41:32 and place the linearlayout as the first element inside the relative layout and use rightOf/leftOf to place? Jul 03 05:41:35 just use relative layout Jul 03 05:41:40 yeah Jul 03 05:41:51 then put the text below and above Jul 03 05:42:29 haha, i just ran into this http://productforums.google.com/forum/#!topic/websearch/80GcWKQBZhs Jul 03 05:42:54 i thought all of the google was down :P Jul 03 05:43:21 device isn't showing in Eclipse Jul 03 05:43:24 htc evo Jul 03 05:43:34 my build target is lower than the firmware version on the hardware Jul 03 05:44:13 JakeWharton: any specific info on how resizing. I was thinking of just putting it in your base theme and the other themes would inherit it. but i im not sure what the line for changing the size for actionbar size Jul 03 05:44:22 actionBarSize Jul 03 05:44:28 cool Jul 03 05:44:44 JakeWharton: I wish you would love me though... Jul 03 05:45:05 Eclipse: i'm sure with enough beer, he will Jul 03 05:45:07 I'm sorry, you're an inferior IDE. It's just life. Jul 03 05:45:15 T_T Jul 03 05:45:32 JakeWharton: But adt supports me Jul 03 05:46:04 Yes well the one I'm with has support baked in natively rather than hacked into a moderately stable plugin. Jul 03 05:46:19 JakeWharton: Which one are you using? Jul 03 05:46:25 IntelliJ IDEA Jul 03 05:46:36 hmm Jul 03 05:46:43 i'll check her out Jul 03 05:46:59 My phone is plugged into my laptop but won't go into debugging mode Jul 03 05:47:03 Don't give up after a day either. It took me a week to switch from Eclipse. Jul 03 05:47:23 I'm on ubuntu. Anyone else have this issue? Jul 03 05:47:37 Once you get proficient you'll realize how under-featured Eclipse + ADT Plugin really is. Jul 03 05:47:57 debugging mode is on the phone. not the program. Jul 03 05:48:02 jessicajames: did you turn on debugging on the phone (settings -> applications -> develoepr options) or something like this. or on ICS directly in settings -> developer options Jul 03 05:48:11 pboos, yes i did Jul 03 05:48:17 :) Jul 03 05:48:21 it was working initially but stopped for some reason Jul 03 05:48:33 i unplugged the phone and replugged it, still doesn't work Jul 03 05:48:33 jessicajames: try: adb kill-server Jul 03 05:48:40 jessicajames: and then adb start-server Jul 03 05:48:41 omg it works. Jul 03 05:48:48 JakeWharton: thanks Jul 03 05:48:55 jessicajames: and then to check "adb devices" Jul 03 05:48:57 Eclipse: you too. even though you suck as an editor Jul 03 05:49:08 jessicajames: that should list your device (hopefully) Jul 03 05:49:32 didn't work pboos Jul 03 05:49:39 the commands were successul Jul 03 05:49:47 but my phone won't go into debugging mode Jul 03 05:49:57 jessicajames: hmm... disconnect usb and reconnect Jul 03 05:49:58 it happened again today and was temporarily fixed after a reboot Jul 03 05:50:04 pboos, tried that Jul 03 05:50:06 jessicajames (the cable) Jul 03 05:50:11 does the phone state an error somewhere? Jul 03 05:50:36 no Jul 03 05:50:43 not that i see Jul 03 05:50:53 ??? i c Jul 03 05:53:08 is it just me or is understanding android app development harder and more weird than almost any other dev experience Jul 03 05:53:26 USB debugging for an Android phone is a method of opening up the phone and allowing it to work with the Android SDK Jul 03 05:54:51 warning dont leave it on al the time... Jul 03 05:55:00 USB debug mode must be on for the smartphone to be rooted. Jul 03 05:56:16 jessicajames: Try a different USB port on your PC Jul 03 05:56:51 Knossos, odd Jul 03 05:56:57 I once used the front USB ports on my PC for attaching my phone. Jul 03 05:56:58 it worked on the 3rd port i tried it on Jul 03 05:57:05 wth.. Jul 03 05:57:11 And for some damned reason, it stopped working with those ports Jul 03 05:57:27 So now I have to attach it in the rear (bow chicka) Jul 03 05:58:01 each port has an address and you may have to unistall hidden conflicted devices that are not pluged in. Jul 03 05:58:11 p_l|backup: cool stuff http://web.ncsu.edu/abstract/technology/wms-jiang-clickjack/ Jul 03 05:58:54 jessicajames: And your previous question, you would use findViewById to get the Layout Jul 03 05:59:01 if i just want a button to do some calculations on inputs from an activity Jul 03 05:59:06 do i need to fire off an intent? Jul 03 05:59:38 thank you Knossos Jul 03 05:59:40 like if i have 1 4gigabyte USB card and plug it into 6 different usb ports the hidden devices will show 6 of the 4gigabyte usb drivers isntalled (hidden) Jul 03 06:00:03 JakeWharton: 67dp right? Jul 03 06:00:12 yes Jul 03 06:00:25 and one without a prefix for pre-ICS Jul 03 06:01:53 you mean this? android: Jul 03 06:01:59 yes Jul 03 06:02:05 hmmm Jul 03 06:02:10 that's weird Jul 03 06:03:18 because it's not built in to the pre-ics devices, so android: would point to a invalid directory in the OS right? Jul 03 06:04:24 if it was defined in a layout XML we could read the attribute even though it didn't exist on the older platforms, but due to the behavior of how styles are parsed on pre-API 10 there is no way to read them Jul 03 06:04:49 Knossos, for the first line of that code, should it be: LinearLayout layout = new LinearLayout(getBaseContext()); Jul 03 06:04:51 so we specify them without a prefix and read those Jul 03 06:05:54 oh Jul 03 06:06:09 JakeWharton: Also, what's your default value for that line? Jul 03 06:06:15 depends Jul 03 06:06:28 could be 40dp, 48dp, or 56dp depending on device configuration and orientation Jul 03 06:07:01 how could i change all 3 Jul 03 06:07:11 by specifying your own you override all three Jul 03 06:07:14 so it could still have compatibility support Jul 03 06:07:36 which file Jul 03 06:07:46 what do you mean which file? Jul 03 06:07:56 aren't you specifying it in your own theme? Jul 03 06:13:48 Okay, I have XML: http://pastebin.com/VYUt8aP8 and Java: http://pastebin.com/aApP6bbR but I see no "BLARG" What's wrong with my code? Jul 03 06:15:55 lol im specifying by edit it in a theme in holoeverwhere; I could make 3 different themes but that is a little bit too much work. I will just raise/drop the size for all sizes too 53 Jul 03 06:18:21 I feel obligated to tell you that I do not approve of HoloEverywhere Jul 03 06:18:45 JakeWharton, would you be able to help me? Jul 03 06:18:48 lol Jul 03 06:19:05 jessicajames: whats your problem Jul 03 06:19:25 Eclipse, look at the two things I just pasted Jul 03 06:19:26 JakeWharton: Lol, holoeverywhere is helpful Jul 03 06:19:38 I'm trying to dynamicaly add a textview to an activity Jul 03 06:19:45 and it's not working Jul 03 06:19:46 It backports a default Android theme... Jul 03 06:19:58 you should *never* be using only the default Android themes Jul 03 06:20:20 you should be building on and tweaking them to create a unique, memorable style for your app Jul 03 06:21:01 plus HoloEverywhere does a poor job of backporting, there's assumptions made about styles and drawables which don't display correctly across all platforms Jul 03 06:21:14 jessicajames Jul 03 06:21:24 jessicajames: first thing i noticed is android:id="@+id/listView" Jul 03 06:21:28 dont use getBaseContext Jul 03 06:21:50 yes...just plane "context" gives me an error Jul 03 06:21:53 just use menu.this Jul 03 06:23:11 jessicajames: Did that solve your problem Jul 03 06:23:26 jessicajames: you need to specify a id for the textview Jul 03 06:23:37 jessicajames: just like list Jul 03 06:23:44 *layout Jul 03 06:24:05 i mean layout not list Jul 03 06:24:07 i just changed it to menu.this Jul 03 06:24:11 and it didn't solve Jul 03 06:24:12 You dont need to specify an ID Jul 03 06:24:13 hmm Jul 03 06:24:22 for the TextView(s) Jul 03 06:24:41 And the ListView is irrelevant in this example Jul 03 06:25:09 by setId, you guys mean setTag? Jul 03 06:25:21 You don't need to jessicajames Jul 03 06:25:35 Knossos: since when dont you need one? Jul 03 06:25:46 also remove the listview Jul 03 06:25:48 Eclipse: Explain to me why she needs one in this case? Jul 03 06:26:13 Yes, looking at the XML Jul 03 06:26:25 The ListView is set to fill_parent on width and height Jul 03 06:26:43 That means you may have difficulties in seeing new items added Jul 03 06:27:14 Knossos: I normally do this >>> textView Next = (TextView)findViewById(R.id.next); Jul 03 06:27:30 *TextView Next = (TextView)findViewById(R.id.next); Jul 03 06:27:55 is there a better method to formatting decimals than DecimalFormat in java? Jul 03 06:28:03 for android dev that is Jul 03 06:28:45 ugh :( Jul 03 06:28:50 why is this so hard? Jul 03 06:29:01 She is creating the textviews programmatically, so you dont have to find by id in the XML Jul 03 06:29:13 She already has the textview in the code Jul 03 06:30:01 i dont see where she added it, let me refresh the page Jul 03 06:30:29 jessicajames: http://pastebin.com/fTFLr4TF Jul 03 06:30:38 See if that helps you Jul 03 06:30:49 I changed the ListView so the height of it is dynamic Jul 03 06:31:07 Ah yeah, I see it in the paste now Knossos Jul 03 06:31:18 <- off to work Jul 03 06:31:34 k Jul 03 06:31:36 i'll try it Jul 03 06:32:10 Knossos you've won this time.... Jul 03 06:32:38 BLARG showed up!!!! Jul 03 06:32:45 at the very bottom of the screen Jul 03 06:32:47 \o/ Jul 03 06:32:52 but still, it showed up! this is great progress! Jul 03 06:33:30 thank you all so much for your input :) Jul 03 06:33:34 esp Knossos ! Jul 03 06:40:11 Okay, so adding too many controls causes the some controls to not be seen. So, I would need to use ListView or ScrollView to solve this? Jul 03 06:40:12 right? Jul 03 06:40:14 one of those Jul 03 06:47:50 IncomingHandler() <- what package I need to import to get that? developer.android.com has instance of that created in example but can't find the package Jul 03 06:48:22 nvm Jul 03 06:50:52 this is never going to work though :( Jul 03 07:23:33 Hi Jul 03 07:24:27 I've heard that the source code will be released in a "few weeks." Jul 03 07:25:01 Now therefore, it is already an utter failure for you that you go to law against one another. Why do you not rather accept wrong? Why do you not rather let yourselves be cheated? No, you yourselves do wrong and cheat, and you do these things to your brethren! Do you not know that the unrighteous will not inherit the kingdom of God? Do not be deceived. Neither fornicators, nor idolaters, Jul 03 07:25:01 nor adulterers, nor homosexuals, nor sodomites, nor thieves, nor covetous, nor drunkards, nor revilers, nor extortioners will inherit the kingdom of God. And such were some of you. But you were washed, but you were sanctified, but you were justified in the name of the Lord Jesus and by the Spirit of our God. Jul 03 07:25:39 but that was five days ago. Jul 03 07:26:25 Is the source code released now? Jul 03 07:26:36 I mean jelly bean Jul 03 07:26:46 android 4.1 Jul 03 07:26:57 sigh Jul 03 07:27:03 my galaxy nexus might be on the fritz :\ Jul 03 07:27:26 jimmy_lo_chien_f: easy enough to go check. but i dont think so. Jul 03 07:28:04 i think that they said it would be released in the mid-july Jul 03 07:28:35 jagbg, thank you. Jul 03 07:28:55 they keep releasing new android versions but integration is very slow..someone showed me a link yesterday that showed 64 percent of android devices are still using android 2.3.3 and around that version Jul 03 07:30:55 ah had a week off, back to android ;) Jul 03 07:30:59 X-suriV, will it be possible that 64 percent of android devices are still using android 2.3.3 because hardware limitation Jul 03 07:31:42 jasta, thank you Jul 03 07:32:01 jasta, I think waiting is the only way. Jul 03 07:32:59 X-suriV: I think this is on android page: http://developer.android.com/about/dashboards/index.html Jul 03 07:33:05 gaz`: back to the good old image / memory stuff :D Jul 03 07:35:27 g00s yep! Jul 03 07:35:35 g00s i did manage to find one of the major leaks :) Jul 03 07:35:37 go in with all guns blazing ! Jul 03 07:35:47 oh yeh i will be like john preston from equilibrium Jul 03 07:35:58 time with slow down as i blast up the memory leaks Jul 03 07:36:31 ive spent a week messing with the ps vita dev kit Jul 03 07:36:48 now i thoroughly want to dev ps vita games :D Jul 03 07:37:04 i got kicked out said i changed my name to jerry_l1 nickserver. Jul 03 07:38:18 g00s so my code will go thru every listview removing the images, recycling them and nulling them before moving on, seems to help Jul 03 07:39:37 and im sure theres nowhere that says do this :) Jul 03 07:39:57 okay what's the whole binding thing supposed to do. onBind is supposed to be implemented so that it binds but what's the reason for binding Jul 03 07:40:45 argh eclipse is doing that shite thing where it says it cant use your workspace Jul 03 07:41:19 guess I need to do 2nd rewrite from scratch if I want to even have any chance of getting this to work Jul 03 07:41:26 but of course, no quarantee it will work even if I do it Jul 03 07:42:35 wish i could win enough cash to make my own games all day instead of apps Jul 03 07:42:47 appz bl0w! Jul 03 07:46:03 yup. not working and no idea where it could be going wrong. Back to square 1 then. Jul 03 07:46:07 stupid android. Jul 03 07:46:34 :) Jul 03 07:46:53 da dr0id rawKs! Jul 03 07:47:15 with the ps vita dev kit u can compile for sony experia play etc too well cool Jul 03 08:15:23 Is there any way to use preprocessor statements in eclipse Jul 03 08:15:39 so i can do say //#ifdef OLD_VERSION etc Jul 03 08:22:00 damn, I've got some jank in my app. Time to profile. Jul 03 08:22:19 you need more butter ! Jul 03 08:23:37 hahaha Jul 03 08:23:38 i do? Jul 03 08:23:44 If I could just take some from my fat deposits.. would have made both me and my app smooth Jul 03 08:23:47 i just had 2 pints of milk, no good? Jul 03 08:24:05 im making myself sick here by drinking so much Jul 03 08:24:11 but its stupidly hot Jul 03 08:30:42 your phone needs to be rooted for systrace I guess? Jul 03 08:30:45 hmm preprocessors have removed my @s from Ovverides Jul 03 08:33:57 The service will be considered required by the system only for as long as the calling context exists. <- okay so how making the gps tracking part into service is supposed to help with android killing off the program if it kills the service anyway if the activity is killed off? Jul 03 08:34:01 hi. why are android sources unreadable? I mean if i try to open the source of a class i get public java.lang.String getPackageCodePath() { throw new RuntimeException("Stub!"); } Jul 03 08:34:04 etc Jul 03 08:34:08 Stub.. Jul 03 08:34:13 i want to read the source Jul 03 08:39:44 bindService(new Intent(ServiceTest2Activity.this, myService.class), mConnection, Context.BIND_AUTO_CREATE); <- doesn't at least result in onCreate function of myService. bleh Jul 03 08:40:14 krad: http://s.android.com Jul 03 08:40:15 krad probably because including the src in the sdk would be much bigger Jul 03 08:40:18 or look on GitHub at the mirror Jul 03 08:40:39 http://github.com/android/ Jul 03 08:40:49 most classes are under platforms_framework_base Jul 03 08:40:52 * gaz` has github.com/amiga :) Jul 03 08:41:21 just dbl clicked by accident and i see evancharlton on ban list? Jul 03 08:41:27 or was it someone masqueraring Jul 03 08:41:36 probably mikedg Jul 03 08:42:04 can't trust him as far as I can throw him Jul 03 08:42:10 hehe Jul 03 08:42:18 and with that, bed. Jul 03 08:42:23 night! Jul 03 08:42:36 i hope no zombies attack u in the night Jul 03 08:42:43 its happening all over now Jul 03 08:42:53 soon it wont be on tv, it will be in your garden Jul 03 08:42:55 teehee Jul 03 08:46:02 evan is not banned, he's the one /who/ banned :| Jul 03 08:46:16 ah Jul 03 08:46:33 what a l33tOP Jul 03 08:47:23 so i tried to convert my activity to a service, but now the file type is not being recognized http://pastebin.com/mnhjbJck Jul 03 08:50:12 how to add the character '@' to strings.xml. Jul 03 08:50:35 well spent time at work, go to lunch, get back, start android source code download, wait till it's ready so you can actually do something Jul 03 08:50:54 \@ ? Jul 03 08:51:18 ah i miss the days of doing nothing in the office Jul 03 08:51:32 *slightly* anyway Jul 03 08:51:35 i hate offices Jul 03 08:51:38 its full steam ahead where i am Jul 03 08:51:41 it gets boring after a while Jul 03 08:51:44 i even have to work overtime this weekend and next Jul 03 08:51:48 but at home its pointless to waste time :) Jul 03 08:51:53 CallumTaylor ouch Jul 03 08:51:56 CallumTaylor. it's not accepting it Jul 03 08:52:06 i did a 79 hr week last week Jul 03 08:52:07 gaz`, I can't get as much done as at the office really Jul 03 08:52:13 gaz`, home* Jul 03 08:52:22 i get more done at home Jul 03 08:52:29 mostly cause im not mega tired and depressed Jul 03 08:52:35 I have the liberty to work from home though, but I mostly prefer to come to the office Jul 03 08:52:40 wow Jul 03 08:52:42 i don't mind, i like the money Jul 03 08:52:43 madman Jul 03 08:53:00 krad: not sure :/ Jul 03 08:53:01 oh i dont get paid for my over time Jul 03 08:53:07 because at home I might find myself working at 2am Jul 03 08:53:25 im a scum sucking bottom feeder remote freelance, shit on me til i crack - thats how my clients see me anyway Jul 03 08:53:46 yeh Zharf im often working right thru til 9am Jul 03 08:53:46 I'm a sexy office developer, 9-5 Jul 03 08:53:53 nice and secure Jul 03 08:53:57 hehe Jul 03 08:54:00 i wish i could be Jul 03 08:54:06 i cant handle it Jul 03 08:54:07 can i send data to an android device that is compressed on-the-fly using command-line zip, and read it with a ZipInputStream? Jul 03 08:54:17 i used to work for rockstar studios, if id stayed there id be rich Jul 03 08:54:25 or even better, a GZIPInputStream Jul 03 08:54:32 my monitor, keyboard and table at work are much better suited to coding than the one I have at home Jul 03 08:54:40 lol, i like office work Jul 03 08:54:47 especially the company i work for Jul 03 08:54:55 my home set up is all good, 2x hdtvs + 2x lcd monitors, main problem is my damn chair suckkks Jul 03 08:54:56 but I don't do work in cubicles.. Jul 03 08:54:56 the best thing is, i don't have to deal with clients, i can just get on with coding Jul 03 08:55:06 our office is far from a cubical Jul 03 08:55:20 http://www.facebook.com/3SIDEDCUBE Jul 03 08:55:37 i hate turning up early, getting distracted by mostly pointless meetings, not being able to listen to music or nap or do whatever when u want to Jul 03 08:55:45 gaz`, oh I can turn up whenever I awnt Jul 03 08:55:59 this is sounding like a great job Jul 03 08:56:00 we have a big jambox on at the moment :) Jul 03 08:56:13 and I listen to music all the time, got some great headphones here at work Jul 03 08:56:51 well if the company give u that kind of freedom, i can see the office not being so depressing Jul 03 08:57:09 yeah my boss is really against the whole 'corporate' style Jul 03 08:57:13 real measure of coder efficiency is what he can get done in the allocated time... not how much of the time he actual does work Jul 03 08:57:14 being able to come and go and work at home if u want is really forward thinking, even more so than what google allow Jul 03 08:57:16 imo Jul 03 08:57:39 so true Zharf Jul 03 08:57:42 very true Zharf Jul 03 08:58:00 i probably spend like 3-4 hours actually working, everything else is like internet or thinking Jul 03 08:58:05 im not a fast coder by any means, but i know a lot slower :) Jul 03 08:58:40 and i get things done, me and my mate co design an idea and go off to make our protottypes, mines out in weeks, his never happens Jul 03 08:58:44 the stuff I get from china to be "fixed" is clearly built on the $/loc principle :p Jul 03 08:58:54 :) Jul 03 08:59:03 do intent-filters work with ? Jul 03 08:59:09 yeh ive done a fair bit of optimising on taiwanese/chinese coe Jul 03 08:59:10 code Jul 03 08:59:25 man, our golden rule is to NEVER touch anyone else's code Jul 03 08:59:32 it's quicker and better to just start again Jul 03 08:59:36 haha Jul 03 08:59:51 i often port games, it certainly wouldnt be quicker to tart again there Jul 03 09:00:09 well porting is different to taking over an old project Jul 03 09:00:14 true Jul 03 09:00:23 depends really, but a lot of the time has to be spent on either reverse engineering or studying the code in either case Jul 03 09:00:29 yeah Jul 03 09:00:45 but you even have to do that to your own code if you return to it after a few yrs lol Jul 03 09:00:59 agreed Jul 03 09:01:00 yeah but at least you will remember what's going on Jul 03 09:01:03 that really sucks eh, shame u cant dump a snapshot of understanding from your brain in some way Jul 03 09:01:13 comments :) Jul 03 09:01:18 hehe Jul 03 09:01:21 comments ar eall over Jul 03 09:01:22 I had this stuff I wrote 12 years ago... it was horrible Jul 03 09:01:29 doesnt ereally give u a feel for the overall program Jul 03 09:01:31 so I just looked at the application adn how it worked and rewrote it from there Jul 03 09:01:33 haha Jul 03 09:01:42 i remember looking at an old website i did, the indentation was horrific Jul 03 09:01:46 yeh i went back to some code even 6 yrs ago and i was like wtf Jul 03 09:01:49 literally slapped myself Jul 03 09:02:14 i told the client the code is too badly for me to maintain/change it for the price given Jul 03 09:02:19 and theyre like YOU wrote it Jul 03 09:02:21 * gaz` sniggers Jul 03 09:02:27 :p Jul 03 09:02:27 hahaha Jul 03 09:02:28 badly written* Jul 03 09:03:00 mind u i must have been going thru some recusive phase, i never do that now i hate recusion mostly Jul 03 09:03:01 yeah I'm going to rewrite a library I wrote 6 years ago... when I can find the time Jul 03 09:03:29 and just generally writing code a little "too smart" for myself to follow later Jul 03 09:03:32 partly because c++11 was released and I have new toys to play with Jul 03 09:03:43 one project got like that gaz` Jul 03 09:03:52 i wrote it so like dynamic, it was too good for its own good Jul 03 09:04:00 hehehehe Jul 03 09:04:01 yeh! Jul 03 09:04:01 eventually it got so bodged i was like eh fuck it Jul 03 09:04:08 was a shit project anyway Jul 03 09:04:11 hehe Jul 03 09:04:19 extremely hard client to deal with Jul 03 09:04:25 i get to say 95% near the end of a project and i lose it, becomes a mess in that last 5% Jul 03 09:04:30 lol Jul 03 09:04:31 I feel this is related to this conversation Jul 03 09:04:34 http://pikersden.eu/~eclipser/test.cc.html Jul 03 09:04:39 same as exams when im down to my last few paragraphs i cant write anymore for some reason Jul 03 09:04:41 my masterpiece Jul 03 09:04:45 never used Jul 03 09:04:46 :E Jul 03 09:04:47 they say the first 80% of the project takes 20% of the time, the last 20% tames 80% of the time Jul 03 09:04:49 becomes a proper scrawl, must be the pressure of finishing Jul 03 09:05:12 haha Zharf Jul 03 09:05:15 seems pretty true, nailign those final bugs, realising your design sucks etc :) Jul 03 09:05:16 looks sexy Jul 03 09:05:24 is it because that action can only be received by an Activity? and not a service? Jul 03 09:06:23 any of you actually use uml or even plan software before you begin? i mean small projects like upto 25k loc Jul 03 09:06:41 we sort of do, we have detail specs and stuff Jul 03 09:06:46 fresh out of uni i would do it all so nice Jul 03 09:06:49 but i sit down and roughly think through how I'm going to do it Jul 03 09:06:50 i never bother now Jul 03 09:06:53 pen and paper usually Jul 03 09:07:04 cool Jul 03 09:07:16 damn it Jul 03 09:07:21 sometimes i comment the file with stubs of what to do Jul 03 09:07:23 ran out of space downloading android source code.. Jul 03 09:07:28 < :) parco Jul 03 09:08:00 i want to get back to my games project before i forget the code, scary feeling Jul 03 09:08:12 i started writing a game in c++ Jul 03 09:08:18 nice Jul 03 09:08:21 its myst have been about 3 months since i wrote anything :/ Jul 03 09:08:21 https://codereview.qt-project.org/#change,26014 Jul 03 09:08:23 gaz`, I never graduated :p Jul 03 09:08:28 im going to port my java game to ps vita soon :) Jul 03 09:08:28 sry, missclick Jul 03 09:08:38 Zharf hehe too much alcohol? Jul 03 09:08:54 gaz`, or maybe it was the total lack of? Jul 03 09:08:55 i wanted to get the psp SDK Jul 03 09:09:01 but they never released it for homebrew Jul 03 09:09:03 its free now Jul 03 09:09:07 for indies! Jul 03 09:09:09 eh i don't have one any more :( Jul 03 09:09:16 new PS VITA! Jul 03 09:09:19 don't have one Jul 03 09:09:20 cant wait to get one Jul 03 09:09:24 its freakin cool Jul 03 09:09:30 me neither but their emu is fast Jul 03 09:09:45 i wrote a game in c++ for college, its terrible Jul 03 09:09:45 https://github.com/scruffyfox/Goldeneye-Revenge Jul 03 09:09:58 i just did it as i went along with no knowledge of how games are actually coded Jul 03 09:10:02 interesting results ensured Jul 03 09:10:24 will this have an exe if i grab the zip Jul 03 09:10:32 nope :( Jul 03 09:10:34 yeh my first java game was done all in one class Jul 03 09:10:37 the config was annoying to set up Jul 03 09:10:40 gaz`, hahah Jul 03 09:10:42 ah Jul 03 09:10:45 anyone know if it's possible to use systrace with the emulator? Jul 03 09:10:51 but i have screen shots Jul 03 09:10:54 it didn't do much Jul 03 09:10:58 <- in android manifest is this supposed to be within (nothing happens when I call startService) or outside(class not found crash happens)? Jul 03 09:11:02 As soon as I'm more than one person on a project I make use of that person to flesh out as much design and planning as possible. Jul 03 09:11:03 only did player movement and gun animation Jul 03 09:11:14 making games is tough as hell Jul 03 09:11:15 http://callumtaylor.net/software-portfolio/Goldeneye%20Revenge/ Jul 03 09:11:33 yeah i know haha, i was like 'my project: I'm going to recreate the first level of golden eye' Jul 03 09:11:42 genius idea Jul 03 09:11:49 and with unity3d prob would have been easy Jul 03 09:12:03 yeah, but i was egotistical i was like I WILL WRITE THIS FROM SCRATCH IN A LANGUAGE I DONT KNOW Jul 03 09:12:10 heehee Jul 03 09:12:12 I use Redmine for taking down notes and plans for what to do and create issues as a basis for the planning. Jul 03 09:12:17 it was so fun writing it Jul 03 09:12:28 yeh ive done that - once u get over it, u can reuse engines, i still havent yet tho Jul 03 09:13:04 only one gameplay screenshot :) Jul 03 09:13:11 yeah you couldn't really do much Jul 03 09:13:16 I tried that... but in my last case the language I didn't know was haskell Jul 03 09:13:22 ... Jul 03 09:13:22 i wanted to finish early so i left it as it was Jul 03 09:13:27 still got full marks Jul 03 09:13:32 yeh i cant do haskell Jul 03 09:13:34 tneva82_: hold on, will look at my code/manifest Jul 03 09:13:34 nice one CallumTaylor Jul 03 09:13:36 lol haskall Jul 03 09:13:49 why on hell people put up example code on web when it doesn't even work as is Jul 03 09:13:51 I can do haskell as long as there's no monads involved Jul 03 09:14:01 I still don't understand them Jul 03 09:14:15 tneva82_: because some men just want to watch the world burn Jul 03 09:14:22 need to rewrite frigging program but of course can't even get the service to start up so no point rewriting it since it won't work Jul 03 09:14:27 i dont get haskell at all Jul 03 09:14:27 make that every men Jul 03 09:14:32 tneva82_: Outside of but make sure it's inside Jul 03 09:14:34 #join #clojure Jul 03 09:14:47 5 different example code to get service started, none cause the oncreate function to be called Jul 03 09:15:21 tneva82_: In my manifest I have an intent-filter on the service, Jul 03 09:15:58 feel like just saying boss "sorry, can't do it". Hurts like hell chances of getting employed but can't get the frigging program to work as intended Jul 03 09:15:59 tneva82_: startService(new Intent( "com.mobileapp.TestService")); Jul 03 09:16:32 tneva82_: If you give up, then yeah, you probably won't get hired Jul 03 09:16:43 What are you doing currently to start the service? Jul 03 09:16:47 what's the com.mobileapp supposed to be then? package name? Jul 03 09:17:06 Yes, your namespace Jul 03 09:17:07 startService(new Intent(this, myService.class)); <- is what I try now Jul 03 09:17:25 hachr: but should I waste time on project what won't work or do something I actually can do... Jul 03 09:17:43 Perhaps try using getBaseContext() instead of "this"? Jul 03 09:18:14 well packagename.myService results in "cannot be resolved to variable" Jul 03 09:18:15 use intent-filter and just send an action-string Jul 03 09:19:08 hell i have one problem like, when i install apk from mail and run then in that application when i press home key or back key then application go in background and when click on application icon then it will start from the first activity instead of last activity.but if i run in emulator or lauch from eclipse to mobile then that will work.so what is the problem? Jul 03 09:19:08 getbasecontext just results in the "what the hell it means anyway" source not found error Jul 03 09:20:21 Not sure what's going on, then... I'd have to see the project setup Jul 03 09:20:29 Hi Jul 03 09:20:44 bah. week spent on trying to get program work as intended and still not one bit closer. Works just fine as long as user stays on the program screen but once out nope Jul 03 09:20:53 tneva82_: You could try a project clean, maybe Jul 03 09:21:06 http://developer.android.com/reference/android/app/Service.html#LocalServiceSample <- that with renamed variables and rather than toast I use alert dialogs. Also added the manifest Jul 03 09:21:08 jagruti_: it depends on how activity stack works. you can modify it using singleTop or singleInstance parameters in manifest Jul 03 09:21:29 then I noticed that bindservice is not what I need(it can get killed once activity is killed) so went to startservice Jul 03 09:22:21 pihhan:thanx your reply could you give me any idea for set that parameter? because i am new in this issue Jul 03 09:22:27 sheesh. shouldn't be so frigging hard to get phone send quick message to server repeatedly Jul 03 09:22:32 When I use activity.getWindow().getDecorView().findViewById(android.R.id.content); Jul 03 09:22:43 without having the android kill the program Jul 03 09:23:13 Does this android.R.id.content come from res/screen.xml Jul 03 09:26:13 jagbg: have you read http://developer.android.com/guide/components/tasks-and-back-stack.html ? it explains it well i think Jul 03 09:27:03 pihhan:its for me? Jul 03 09:27:49 jagruti_: ah, sure Jul 03 09:28:00 thx i will refere that Jul 03 09:28:35 but still i have question? why it is work if we launch from eclipse and not work if we install Jul 03 09:44:47 Hi! Any Dutch Android dev's here? Jul 03 09:50:44 Anyone knows why the context menu doesn't appear when I long click an item in the list? I've tried miscellaneous things but none work, here is the code so far http://pastebin.com/Q72whYV3 Jul 03 09:51:53 Woohoo , I just removed jank! :) pro-tip. to hide stuff, set it to invisible instead of gone, unless you really need your layout to change when you hide it. Jul 03 09:52:10 The list is a standard one http://pastebin.com/8vHPtPx3 Jul 03 09:53:52 In my case, I had a floating header on my listView on the top, similar to PinnedListView in the Contacts app. With View.GONE, there was a huge jank when I wanted to display/hide the static part of the pinnedHeader Jul 03 09:56:24 havchr: Yeah but my XML doesn't have any of that, its as simple as you can get... my manifest has could this be a problem ? Jul 03 09:57:33 havchr: fuck I've minimized the XML to this: http://pastebin.com/Gv50ypES and it works Jul 03 09:57:34 holy shit Jul 03 09:57:42 :) Jul 03 09:57:49 good stuff Jul 03 09:57:55 I've literally wasted 2 days Jul 03 09:58:11 nah, you've learned to cope for two days :D Jul 03 10:00:15 The bugger was this line: android:listSelector="@drawable/list_selector" Jul 03 10:15:28 okay so how do I determine if there's the service already running so I could bind? Or does the startservice call sort that out? I don't need n+1 copies of it but I can't use the bindservice alone as lifetime of those services isn't as good as needed Jul 03 10:26:10 when (if ever) are the labels fr activities displayed? Jul 03 10:26:26 [as set in the manifest] Jul 03 10:29:03 hi room Jul 03 10:30:28 USB Host Mode/OTG is it only for Samsung devices? Jul 03 10:31:33 anyone set up preprocessors for android as described here: http://stackoverflow.com/questions/1797930/how-to-get-eclipse-to-recognize-preprocessor-statements it all works except when i try to set device name "android" is not an option Jul 03 10:36:19 is anyone in the room ??? Jul 03 10:37:09 Nope, just 666 ghosts. Jul 03 10:38:25 nope, noone around Jul 03 10:38:29 frustrating Jul 03 10:38:41 true. looking for love in all the wrong places Jul 03 10:39:11 i wanted to know, USB Host Mode/OTG is it only for Samsung devices? Jul 03 10:39:29 sadly there's noone here to answer :D Jul 03 10:39:46 all their love is to sleep in the room :) Jul 03 10:39:50 damn it, ive got one of the issue that even google doesnt know Jul 03 10:40:19 google only replies based on FAQs Jul 03 10:41:45 hello Jul 03 10:55:22 I bet I don't have enough disk space to compile this android source Jul 03 10:56:04 well Jul 03 10:56:08 it didn't even compile :p Jul 03 11:20:53 ppl anyone works with admob? I want to know how eCPM changes... because i've some days with same impressions and clicks, and my eCPM could decrease 3 or 4 times :s Jul 03 11:21:46 Well technically, it is supposed to be clicks per 1000 impressions Jul 03 11:22:40 sweet i got preprocessors working, this is awesome Jul 03 11:23:05 i need a bacon sandwich Jul 03 11:26:24 Knossos-: no, it's not "clicks", it's "cost" per 1000 impressions. it depends on how much the advertisers pay to put banners on your app Jul 03 11:26:38 Ah, I see Jul 03 11:26:53 That would explain it Jul 03 11:27:31 I have a fragment (http://pastebin.com/ccQ6bQju) that is inflated as a dialog. When inflated the dialog takes up the entire height of the screen, and I'm trying to figure out how to style it to NOT do that. Any ideas? Jul 03 11:28:53 hum ok Jul 03 11:29:04 but for example i've 2 days Jul 03 11:29:08 Specifically, the dialog uses a horizontal list view of images. I'd like the dialog to only be a bit taller than the images themselves. Jul 03 11:29:12 revenue: 0.1231 | ecpm: 0.4351 | impressions: 283 | clicks:6 | ctr: 0.0212 Jul 03 11:29:12 revenue: 0.1061 | ecpm: 0.5558 | impressions: 191 | clicks:2 | ctr: 0.0105 Jul 03 11:29:33 3 times more click and same revenue? Jul 03 11:35:46 Thresh0ld: maybe you had clicks on more valuable ads, who knows Jul 03 11:37:32 Anyone with insight into the view / dialog sizing issue above ? Jul 03 11:43:36 dada, do you mean that some clicks were done in ads with lower "bid" ? Jul 03 11:48:48 interesting, FirefoxOS is getting more support than I expected Jul 03 11:50:06 Hi, where can I find resource android.R.id.* Jul 03 11:51:04 I mean where are the possible locations of these Jul 03 11:54:01 hi all, i need suggestion about my app. how to create a chat messenger with smiley? i cant find any code that work for me Jul 03 11:55:07 ask smiley :) Jul 03 11:55:54 ask smiley? what do u mean? Jul 03 11:57:22 i'm working on chat messenger for my forum so i can chat without open the chatbox on my forum. Jul 03 11:57:44 currently, it's working with text message. but i wanna improve it to using smiley in message Jul 03 11:58:11 How can I change the UI language after the user has changed the value of the ListPreference, lets sayfrom English to French? Jul 03 11:58:39 I'm using a PreferenceFragment for getting the preferences from xml Jul 03 12:04:11 hmm Jul 03 12:06:05 BadDesign: not sure if any of that has changed but... I did it like this once: http://pastebin.ca/2166630 Jul 03 12:06:10 It's quite.. iffy. Jul 03 12:06:32 hi all, i need suggestion about my app. how to create a chat messenger with smiley? i cant find any code that work for me Jul 03 12:06:54 The key is to set Locale.setDefault at the right time (I did it in the activity's oncreate) Jul 03 12:07:46 TheTrash: the right time being before calling setContentView ? Jul 03 12:07:54 BadDesign: yes Jul 03 12:08:21 I subclassed activity to do that. Jul 03 12:08:36 uthadehikaru: textview with imagespan might work. Jul 03 12:09:27 thx Jul 03 12:20:09 I have a choice of an ArchLinux or Windows7 platform to do my Android development on. Any reason to pick one over the other? Jul 03 12:25:31 Mojito always pick linux for android dev Jul 03 12:26:04 much faster compiling Jul 03 12:26:11 Mojito and faster emulator Jul 03 12:27:05 I like my fancy logcat in a terminal, it's a pain in Windows, no nice terminal app for it. Jul 03 12:29:00 Mojito try elementary OS, the stable build is old but it's awesome and it doesn't stop you from anything Jul 03 12:30:05 I also found the sdk a pain to update in Windows, not sure if that got better (granted, I haven't used Windows for Android dev in over a year) Jul 03 12:30:16 it got better the Jul 03 12:30:20 it got better TheTrash Jul 03 12:30:46 Hm, elementary OS looks reasonable for a tablet. Jul 03 12:30:55 it's not a tablet os :P Jul 03 12:31:49 TheTrash but there's a tablet mockup Jul 03 12:31:59 log cat on osx is so laggy its unbelievable Jul 03 12:32:14 luckily they added a pause button because every time it outputs it jumps back down Jul 03 12:33:49 CallumTaylor: they also removed the tooltip upon hovering Jul 03 12:33:57 what? Jul 03 12:33:58 which sucks donkey's private parts Jul 03 12:34:09 at least for me.. Jul 03 12:34:10 ok ill stay away from any new updates Jul 03 12:34:11 tapas donkey's cock Jul 03 12:34:35 Dany0: thanks, sherlock :D Jul 03 12:34:40 :P Jul 03 12:34:47 i love how sometimes it opens the file in a different project when you double click on an error Jul 03 12:35:11 CallumTaylor: oh that. it did that consistently for me for the last few updates.. Jul 03 12:35:22 yeah its so fucking annoying Jul 03 12:35:48 i wonder if anyone has done a good android integration for emacs ;D Jul 03 12:36:02 eclipse is nice, but eclipse also sucks hairy man breasts.. Jul 03 12:36:19 no Jul 03 12:36:21 eclipse isn't nice Jul 03 12:36:31 eclipse just sucks hairy man breasts Jul 03 12:36:32 partly it is.. Jul 03 12:36:37 and yeah, it does :D Jul 03 12:36:40 compared to other IDEs Jul 03 12:36:46 visual studio is the BEST one i've ever used Jul 03 12:36:54 Xcode is ok, but buggy Jul 03 12:37:08 IntelliJ IDEA FTW! Jul 03 12:37:15 i like it Jul 03 12:37:18 BadDesign nope Jul 03 12:37:19 never used visual studio.. xcode annoyed the hell outa me.. Jul 03 12:37:21 CallumTaylor: i think you'll find many who disagree with you on that point Jul 03 12:37:21 i just don't have the time to invest to move everything over Jul 03 12:37:37 i like software environments that leave the editor choice to the individual developer Jul 03 12:37:44 * tapas misses the unix world Jul 03 12:38:09 Graphics on *nix sucks big time Jul 03 12:38:26 if you need to have an IDE to get anything done, the environment sucks (insert something here) Jul 03 12:38:31 BadDesign nope Jul 03 12:38:36 i'm trying to build this library(number picker for lower APIs) https://github.com/mrn/numberpicker/tree/master/lib, and getting this error on values-11/styles.xml "error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.EditText'." Jul 03 12:38:39 BadDesign: what do you mean? Jul 03 12:38:40 everytime there is an update to the driver or a change in X version the entire system explodes Jul 03 12:38:51 BadDesign nope Jul 03 12:38:52 BadDesign: i like my mac, it has good gfx Jul 03 12:38:53 clearly, bad design Jul 03 12:38:59 BadDesign nope Jul 03 12:39:02 i use linux exclusivley at home for ca. 8+ years.. Jul 03 12:39:11 BadDesign everything you said is wrong and you should feel bad Jul 03 12:39:21 Mac OS X is fine at graphics, I should say Linux Jul 03 12:39:30 sucks at graphics Jul 03 12:39:32 i use a mac os x at work.. it has its ups and downs.. Jul 03 12:39:37 lol Evolution is only a theory. Just like gravity. If you don't like it, jump off a bridge. Jul 03 12:39:40 i find the user interface mostly hideous.. Jul 03 12:39:52 all the polish just dimimshes the productivity.. Jul 03 12:40:04 tapas: Agreed. Jul 03 12:40:08 at least it has BSD tools beneath it.. Jul 03 12:40:09 BadDesign elementary OS, and fuck you Android FTW Jul 03 12:40:13 so one has access to decent shells.. Jul 03 12:40:34 my work machine is an iMac and i rather enjoy it Jul 03 12:41:06 i dislike how the separated menu bar makes mouse-follows-focus impossible Jul 03 12:41:07 having an IDE full screen on a 27" screen is nice Jul 03 12:41:10 so many wasted clicks ;D Jul 03 12:42:47 Ok, Linux it is. Jul 03 12:43:06 Mojito eOS :( Jul 03 12:43:09 I used Eclipse a couple years ago, but not for Java Jul 03 12:43:50 Mojito: arch linux is nice, but use the 32-bit version Jul 03 12:44:05 don't Jul 03 12:44:08 and be prepared for much more setup than you'd encounter with windows Jul 03 12:44:13 arch linux is hard to install and maintain Jul 03 12:44:19 no it's not Jul 03 12:44:25 yes it is Jul 03 12:44:28 unless you're not familiar with linux Jul 03 12:44:31 I find Arch Linux very easy to maintain. And I do have the 32bit version Jul 03 12:44:32 Mojito elementary OS Jul 03 12:44:37 wongk he's not familiar Jul 03 12:44:45 did he say that? Jul 03 12:44:58 oh ok Jul 03 12:45:03 still Jul 03 12:45:06 Mojito elementary OS Jul 03 12:45:08 I have Arch running on 4 different machines, both x86 and ARM Jul 03 12:45:08 :P Jul 03 12:45:42 then you know the story :P Jul 03 12:45:58 o.o Jul 03 12:46:00 :( Jul 03 12:46:59 Dany0: I'm with you. But I really really dislike how graphics works on Linux, X is crap. DEs are slughish and unusable. I've tried GNOME 2, GNOME Shell, KDE, XFCE, Unity, LinuxMint's DEs (different version for several years), etc... I don't like them. GNOME 2 was fine at some point but now they've replaced it. I don't think Linux is ready for desktop/laptop users. I prefer using Linux with no desktop environment or window manager at all. That way Jul 03 12:47:24 BadDesign have you tried pantheon? Jul 03 12:47:31 That's why I use Xfce. I didn't like the way Gnome was going either Jul 03 12:48:02 Dany0; never heard of that one Jul 03 12:48:16 BadDesign elementaryOS Jul 03 12:48:24 I agree that X is the wrong way to do graphhics on a machine with it's own graphics card. X was developed for a remote scenario Jul 03 12:48:52 thx for TheTrash, now my chat messenger can upgrade to version 1.2 with added smiley feature :D Jul 03 12:49:33 Morning all Jul 03 12:49:55 Was wondering if anyone could help me out.. I've been using alertdialog builders to make my alert dialogs, but these get lost on orientation change. It seems I need to have global dialog ids, along with an onprepare function that has a switch case of all the dialogs I want? Or something? I've looked around but am only getting more confused.. Was wondering if someone had a clean example they could point me towards? Jul 03 12:54:39 So Jul 03 12:54:45 Did someone here get an ADK? Jul 03 12:54:47 ADK 2012 Jul 03 12:55:04 not I, but tbh, not sure what an ADK is =\ Jul 03 12:55:52 Zee: https://developer.android.com/tools/adk/index.html Jul 03 12:55:56 Accessory Development Kit Jul 03 12:57:47 My problem would be how to attach the speaker to the bag Jul 03 12:57:49 back Jul 03 12:59:48 Timmaah1201: use fragments Jul 03 13:04:31 hmm theres no way to check how often a char appears in a string in the normal apis? Jul 03 13:04:43 java strings are a huge pita Jul 03 13:04:54 like "hello".amountOf("l"); Jul 03 13:05:06 you could "hello".split("l").length or somesuch ;) Jul 03 13:05:07 weird thing not to have Jul 03 13:05:15 er Jul 03 13:05:20 gaz`: use String.doMyJobForMe('c'); Jul 03 13:05:25 i just wanna see if theres one comma in a string Jul 03 13:05:27 i can't think of a time i've ever needed that function Jul 03 13:05:36 or none Jul 03 13:05:47 lov dont see that in the docs!! Jul 03 13:06:07 to be fair ive needed it ever either ill prob use a stringtokenizer.. Jul 03 13:06:19 ive never needed it* Jul 03 13:06:22 Hell, the didnt break the seal of the Q. Im glad Jul 03 13:06:51 seriously dude? Jul 03 13:06:53 are you fucking serious? Jul 03 13:06:54 gaz`: if the count is 0 or 1, you can use indexOf Jul 03 13:06:55 use indexOf Jul 03 13:07:10 indexof will tell you if theres none Jul 03 13:07:12 but not if theres 1 Jul 03 13:07:16 heh Jul 03 13:07:45 so call it twice, and provide the first index. Jul 03 13:07:53 you are the laziest developer Jul 03 13:07:57 haha Jul 03 13:08:09 gaz`: indexOf() == lastIndexOf() Jul 03 13:08:10 if this is such a problem for you, create a util library that does this for you Jul 03 13:08:16 ^^ Jul 03 13:08:19 that's a good one too Jul 03 13:08:41 create a util library to provide answers to trivial questions, instead of bothering #android-dev :P Jul 03 13:09:01 StringUtils! https://github.com/scruffyfox/X-Library/blob/master/src/x/util/StringUtils.java Jul 03 13:09:08 create a util library to write your games for you, since you're apparently terrible at it. Jul 03 13:09:17 jesus u sure do get shit sometimes for randomly speaking ur mind :) Jul 03 13:09:18 I'm always in for a round of java bashing, but it has to have at least some height Jul 03 13:09:38 lov ive written a games maker tool already to do everything for me :) Jul 03 13:09:46 no coding needed to make games with it at all Jul 03 13:10:11 then shut up and get out Jul 03 13:10:15 hah Jul 03 13:10:23 whats that mean :) Jul 03 13:14:43 Trying to install the Eclipse ADT plugin. It says it can't because org.eclipse.wst.sse.core is missing. What is that? Jul 03 13:14:47 http://commons.apache.org/lang/api-2.5/org/apache/commons/lang/StringUtils.html#countMatches(java.lang.String, java.lang.String) Jul 03 13:15:52 Really, about 9 out of 10 times, whenever I ask "Why the F doesn't Java have this?", there's something in the apache commons libs that solves it. Jul 03 13:16:37 wongk: do fragments work on 2.3.3 as well? Jul 03 13:16:45 yes, with ACL Jul 03 13:17:23 Timmaah1201: you need to include the support libraries Jul 03 13:18:44 oh k cool, will they also allow action bars to work on pre android 3.0, or do i just need to make a new layout for earlier versions? Jul 03 13:19:13 Timmaah1201: use ActionBarSherlock Jul 03 13:19:38 actionbarsherlock.com Jul 03 13:19:41 http://actionbarsherlock.com Jul 03 13:19:47 oh k, cool, thanks for the help so far Jul 03 13:20:14 so using fragments is the best option to ensure dialogs dont lose focus on orientation change? Seems a bit overkill? Jul 03 13:20:25 Timmaah1201: worth mentioning that actionbar will be coming in the ACL as well soon(TM) Jul 03 13:20:39 Hello,i have one problem like,when i press back button and click on application icon then it shold be start from last activity.this will work only if i will restart the application otherwise it will start from first activity.so what can i do? Jul 03 13:21:00 thanks for heads up kenji Jul 03 13:21:02 Timmaah1201: s/to ensure dialogs dont lose focus on orientation change// Jul 03 13:22:19 jagruti_: you need to put your activities into the same task stack. Jul 03 13:22:21 wongk: ? Jul 03 13:22:43 lov: thanx fro reply but how? Jul 03 13:22:56 using fragments is the best option, the last clause in your question is not relevant Jul 03 13:23:52 jagruti_: that's not how android works Jul 03 13:24:18 should the first activity always be skipped after it has been run once? Jul 03 13:24:52 wongk: but it will work fine if just i will restart the application Jul 03 13:25:40 how do you "restart the application" Jul 03 13:25:52 * SimonVT has no idea what he's talking about Jul 03 13:26:31 from eclips if i run again and in mobile setting->application->manage..->application->force close Jul 03 13:26:33 Restarts from elipse if u make a space and redeploy :) Jul 03 13:27:11 jagruti_: and you are saying that when you do that, it starts on the last visible activity and not your first activity? Jul 03 13:27:37 The back button finishes your current activity.. If you launch the app again, that activity should not be shown Jul 03 13:28:11 Can I change the font size for the entire application from programatically or do I have to change the font size of each view that I'm interested in? The user selects the font size from the application settings, between Small, Medium, Large Jul 03 13:28:16 after restart it will from first activity and then when i press back button and icon then it will start from last activity Jul 03 13:28:20 _*without from Jul 03 13:28:56 No it wont Jul 03 13:28:59 jagruti_: that's not how the back button works, once you press back the activity finishes Jul 03 13:29:02 If you press the home button and then the icon it will Jul 03 13:29:48 ya exactly i want that thats y i have write the code in backpress evnt so thats y it will work thats way Jul 03 13:30:09 You just lost 2 stars in your ratings Jul 03 13:30:09 er, can you translate that? Jul 03 13:30:28 SimonVT: why? Jul 03 13:30:59 You're deviating from the most simple expected behavior Jul 03 13:31:24 but if it is requirement then we have to do that way Jul 03 13:31:25 Back button finishing the current activity is how it works in every single app (except yours, and whoever came up with the great idea of overriding that behavior) Jul 03 13:31:47 you need to clear the top and set the new task in the intent Jul 03 13:32:10 wongk: Sorry to keep bringing this up, just went to better understand! Does using fragments have any advantage over overriding onCreateDialog, other than it handles nested dialogs better? Jul 03 13:32:15 you can check the viber application also that application has also same functionality Jul 03 13:32:46 I can tell, without even looking at it, that it's crap, then Jul 03 13:32:58 Timmaah1201: i suggest you read about fragments and you can make that determination yourself Jul 03 13:33:12 jagruti_: https://gist.github.com/3039716 Jul 03 13:33:32 also set android:clearTaskOnLaunch="true" in your Jul 03 13:33:37 for the first activity Jul 03 13:33:40 i also expect that when i use the back button, the actvity will stop consuming resources on my device Jul 03 13:33:52 SimonVT:ok but even home button will also start application from start activity instead of last activity Jul 03 13:33:58 No it wont Jul 03 13:34:03 Unless you fucked that up as well Jul 03 13:34:25 but why this happen in my application Jul 03 13:34:27 Pressing home and launching from the icon will show the last activity Jul 03 13:34:58 i don't think you can override the home button, even if you could, dont Jul 03 13:35:27 i'd like to override both and switch their roles! Jul 03 13:35:38 * wongk evil laugh Jul 03 13:35:40 It happens cus you think you know better, and don't let android work as the user expects Jul 03 13:35:47 wongk: i want to make the volume controls the other way around Jul 03 13:35:52 haha Jul 03 13:36:18 wongk: For devices with a search button, you can have even more fun Jul 03 13:36:22 Maybe randomize it a bit Jul 03 13:36:23 CallumTaylor: ya that is true but i just want that when i press home button or back button it should go in background and when i click on icon then it shold be start from last activity Jul 03 13:36:26 haha yeah Jul 03 13:36:30 Every click, different behavior Jul 03 13:36:50 for what possible reason would you want that Jul 03 13:36:53 jagruti_: your users don't want that Jul 03 13:37:06 so if you care about your users, don't do that Jul 03 13:37:11 throw the scenario at us Jul 03 13:37:13 s/or back button// and android already does it like that Jul 03 13:37:18 i'd like something like onMeasure, after other children and thus parrent (WRAP_CONTENT) has been measured (or what is it called)... right now i get height: 0, i'd like a view in framelayout to be as high as other view wants (WRAP_CONTENT) Jul 03 13:37:22 am i clear? :( Jul 03 13:37:26 Don't override the backbutton behavior Jul 03 13:37:28 like linearlayout weight Jul 03 13:37:56 hi there! I have updated the SDK to r20 and I can't use Eclipse anymore. Help! Jul 03 13:38:10 SimonVt: ok but what about home button why it is not start last activity Jul 03 13:38:16 hi, I had no problems with this on another computer but now when I connect my phone adb doesn't recognize it ( no permissons, it's listed as ???????? ) this is the content and rights of my 51-android.rules file: http://pastebin.com/XtUCxrtj ( using debian ) Jul 03 13:38:16 Goofy_: update ADT Jul 03 13:38:20 anyone has an idea? Jul 03 13:38:21 I don't know, it's your app Jul 03 13:38:32 SimonVT: I did Jul 03 13:38:48 You did what? Jul 03 13:38:57 message the wrong guy Jul 03 13:39:07 SimonVT: updated adt Jul 03 13:39:15 Maybe you should tell wongk that Jul 03 13:39:51 SimonVT: ya its my application i have problem so i need the help Jul 03 13:39:51 i've got my SimonVT costume on again Jul 03 13:40:57 :| Jul 03 13:41:01 wongk: I've done it : Android Development Tools 20.0.0.v201206242043-391819 but no result Jul 03 13:41:15 SimonVT: sorry ... Jul 03 13:41:20 Goofy_: don't know then Jul 03 13:42:03 wongk: thx Jul 03 13:42:22 Can you help me? When I executed Eclipse 3.7, this error occured https://www.dropbox.com/s/dj71qnfgsaaklom/Screenshot%20from%202012-07-03%2020%3A35%3A21.png Jul 03 13:42:25 Goofy_: Just to help wongk help you, you should probably have elaborated on what the hell "I can't use Eclipse anymore" means Jul 03 13:42:58 * SimonVT is off Jul 03 13:44:19 SimonVT: ok. When I opened-up Eclipse this morning I've got the message to update the SDK to r20. So I did it and when Eclipse rebooted the Android references from menu and perspectives disappeared Jul 03 13:45:29 SimonVT: ... so I updated the ADT but I still have no reference of Android in Eclipse anymore Jul 03 13:46:18 SimonVT: This said, the ADT is well listed under the 'already installed software' in Eclipse Jul 03 13:48:59 hi, I had no problems with this on another computer but now when I connect my phone adb doesn't recognize it ( no permissons, it's listed as ???????? ) this is the content and rights of my 51-android.rules file: http://pastebin.com/XtUCxrtj ( using debian ) Jul 03 13:49:01 anyone has an idea? Jul 03 13:50:11 dzan: One alternative would be to run adb as root. Other than that, you have to fix your udev rules. Jul 03 13:50:46 drlaban, well I'm running adb as root now but the udev rules are copy pasted from the other machine that does work... same phone Jul 03 13:50:56 so i don't get why it doesn't work on this computer? is that possible? Jul 03 13:51:25 dzan: Might be that this specific distro/version of Debian is a bit more picky about udev-rules. Jul 03 13:52:01 dzan: Might be that there are other rules that interfere with those you want to have working. Jul 03 13:52:07 drlaban, it's the same one :D Jul 03 13:52:53 dzan: Did you set the right permissions on your udev file? Jul 03 13:53:31 drlaban, i think so, they are in my pastebin maybe you can check? Jul 03 13:53:40 well, here:-rwxr-xr-x Jul 03 13:55:20 well, here: http://developer.android.com/tools/device.html Jul 03 13:57:06 Remove any unnecessary devices from your file and do it from scratch. There are all kinds of things that can be the reason for Debian not allowing you to access the device. Jul 03 13:58:16 Also, restarting udev, un/replugging the device and rebooting are among those things that you probably have to go through. Jul 03 13:59:05 I am looking for the android examples, but only in api 3 and 4 a directory samples exists. I found no option for downloading it with the sdk manager. Does someone know whats wrong? Jul 03 13:59:59 see: http://developer.android.com/tools/samples/index.html Jul 03 14:06:06 hi Jul 03 14:06:14 With dialog fragments.. (got the example open and been doing a bit of reading) how does one go about implementing multiple different dialogs with different options for positive/negative clicks without code duplication? Jul 03 14:06:31 it doesnt seem like you can use a switch case as the doPositiveClick and negative dont take any arguments in the example Jul 03 14:06:47 or is that juts cause their example is for one? Jul 03 14:10:46 So, I have 20 buttons dynamically created, but the buttons go off the screen (and it's not scrollable). What can I do to make the buttons be added to a scrollable view? I feel like this is easy, but just can't figure it out. Here's the XML: https://gist.github.com/3039930 and here's the Java: https://gist.github.com/3039933 Jul 03 14:14:19 is eclipse juno worth installing, or should I stay on indigo? Jul 03 14:15:44 lk16: interface looks kinda broken on Linux/OS X so I suggest you stay on Indigo unless there's something you REALLY need Jul 03 14:17:48 jessicajames: I'm just a bit puzzled about the fact that you place a ListView in a ScrollView. Jul 03 14:18:53 drlaban, I was just messing around ,trying to add a ScrollView and that happened :/ Jul 03 14:19:14 Mavrik: gotcha, i figured there'd be some bugs. I'll wait till the next update or so Jul 03 14:19:20 I think Google strongly advise against it because of a huge host of issues it gives. Jul 03 14:19:54 anyone can tell me how i enable an app on a rooted phone to access files in /system/framework? Jul 03 14:20:56 hello Jul 03 14:21:09 can someone please add sgs3's exfat support to sgs2 Jul 03 14:21:10 kthx Jul 03 14:22:45 jessicajames: I'd first decide to use either the ScrollView in combination with, ie. a LinearLayout (to simulate a scrollable ListView) or creating a ListView and get it going from there. Jul 03 14:23:15 I think just creating a ListView would be easiest, right? Jul 03 14:23:23 jessicajames: I'd say trying to use them both at once is asking for trouble. Jul 03 14:23:46 jessicajames: Well, depends on what you'd like to achieve and how you will add your views to the ListView. Jul 03 14:23:55 jessicajames: But any which way should work fine. Jul 03 14:24:27 drlaban, should i remove the LinearLayout and ListView from within the ScrollView ? Jul 03 14:27:08 jessicajames: I usually have a single ListView by itself and feed it the layout I want to have populated. Jul 03 14:29:04 jessicajames: You should really read up on ListView if you haven't. It's a pretty extensive subject in the Android world. Jul 03 14:29:14 drlaban, like this? https://gist.github.com/3040052 Jul 03 14:29:42 jessicajames: That could work. Jul 03 14:30:07 drlaban, after the buttons are added, they still go off the screen though Jul 03 14:30:14 and it's not scrollable Jul 03 14:30:16 hmm Jul 03 14:31:57 jessicajames: You're adding the buttons to the layout "R.id.layout". That's the root of your entire layout. And that in itself is not scrollable. Jul 03 14:33:20 If you add views to your ListView, the contents will scroll when there are more views than fits the screen. Jul 03 14:35:17 jessicajames: Like this: A ListView's content is scrollable. A LinearLayout's contents by itself is not scrollable. A LinearLayout within a ScrollView, however, is scrollable. Does that make sense to you? Jul 03 14:35:35 Yes Jul 03 14:35:36 okay Jul 03 14:35:46 I think I can fix it now...hopefully Jul 03 14:35:52 jessicajames: gl Jul 03 14:37:40 If I'm showing a notification from a service with startForeground(NOTIFICATION_ID, mNotification); then I don't need to use notificationManager.notify(), right? Jul 03 14:43:40 !!!! Jul 03 14:43:55 thank you drlaban (: Jul 03 14:46:12 galaxy nexus is loading my 'notlong' assets, anyone else experience this problem? Jul 03 14:47:33 jessicajames: np Jul 03 14:57:36 does anyone have their own example of using dialog fragments to make multiple alert dialogs? Jul 03 15:02:07 How can I set the visibility of a Translucent view to GONE? I need to finish the activity and have read that it will only call onPause() whilst still visible Jul 03 15:02:29 ..... what? Jul 03 15:02:36 how are any of those things connected Jul 03 15:02:44 changing the visibility of a view to GONE doesn't finish your activity Jul 03 15:02:55 nor will it affect whether your activity can or will be finished Jul 03 15:06:58 also, you can set any view to gone the same way Jul 03 15:07:04 view.setVisibility(View.GONE); Jul 03 15:11:49 Apple BANS the Galaxy Nexus! (lol) Jul 03 15:12:04 https://www.google.com/webhp?sourceid=chrome-instant&ie=UTF-8&ion=1#hl=en&safe=off&sclient=psy-ab&q=apple%20bans%20galaxy%20nexus&oq=&gs_l=&pbx=1&fp=2b517dae9b2cd17f&ion=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&biw=857&bih=383 Jul 03 15:13:55 us patent system is retarded Jul 03 15:14:23 can somebody explain to me how the WifiManager class actually works? All I can see in its code is passing on method calls, and not the actual implementation of these methods Jul 03 15:14:24 this shit really pisses me off Jul 03 15:15:01 judges who know nothing about tech ruling judgements, governments who know nothing about tech proposing retarded bills Jul 03 15:15:13 can't wait till my generation take over Jul 03 15:15:16 Where I can read if I want my app to start an ARM compiled native application? Jul 03 15:15:20 Does anybody know a way to supply a theme to an activity you start outside your app? We use Holo.Light in our app but the calandar entry activity is black on some devices. I'd like to get that in Holo.light too Jul 03 15:15:22 then at least we'll have people with a clue Jul 03 15:18:01 mdim: right Jul 03 15:18:07 mdim: the actual implementation lives in the system service Jul 03 15:18:12 the WifiManager class is just a relay Jul 03 15:18:22 same for Locationmanager and most of the other managers Jul 03 15:18:31 you'll need to pull the android source to see what's actually going on Jul 03 15:18:42 Damn Samsung and their changing the calandar app Jul 03 15:19:02 lov: how do I do that? Jul 03 15:19:08 source.android.com Jul 03 15:19:17 Dark-Side: No, you cannot actually change other people's apps. Jul 03 15:19:24 lov: ok, I got the code, but now what? Jul 03 15:19:30 seriously? Jul 03 15:19:39 ok, uh, frameworks/base/core/services iirc Jul 03 15:19:45 lov: I got the WifiManager class implementation Jul 03 15:19:52 just do find . -iname 'WifiManagerService.java' Jul 03 15:19:53 *its source code Jul 03 15:19:56 ok Jul 03 15:20:00 or find . -iname 'WifiManager*' Jul 03 15:20:14 lov: I'd of thought of it more of a hint heh Jul 03 15:20:46 At least it will look nice on normal phones Jul 03 15:21:27 have you read this patent... it's like they've have patented the entire idea of search Jul 03 15:22:05 also the aquare? Jul 03 15:22:07 i love how companies now have to use odd bevels on their devices so they don't get sued by apple Jul 03 15:22:09 square Jul 03 15:22:18 the kindle has a larger bottom Jul 03 15:22:29 the xoom2 has weird corner rounding Jul 03 15:24:19 the Xoom2 is rather ugly imo Jul 03 15:24:23 I wasn't a fan Jul 03 15:24:30 yeah, thats because of apple Jul 03 15:24:42 it would have looked a bit better if they we'rnt scared of getting sued because of the corners Jul 03 15:25:00 even the galaxy s3 Jul 03 15:25:06 horrible shape Jul 03 15:25:08 lov: I couldn't find the WifiManagerService.java file. Does it boil down to native method calls? Jul 03 15:26:28 F1rstAid: do you have an app on the store? Jul 03 15:26:40 Where I can read if I want my app to start an ARM compiled native application? Jul 03 15:26:51 CallumTaylor nop Jul 03 15:26:55 I am going to develop it Jul 03 15:27:00 is it a first aid app? Jul 03 15:27:01 and it is not going to be on the store Jul 03 15:27:06 oh? Jul 03 15:27:11 mdim: it might eventually. Grep for the AIDL interface that WifiManager is using. Jul 03 15:27:15 it is needed for private project Jul 03 15:27:23 will it be a first aid app? Jul 03 15:27:29 nope Jul 03 15:27:35 but it will help people :) Jul 03 15:27:41 are you under NDA? Jul 03 15:27:47 NDA? Jul 03 15:27:58 non disclosure agreement, not allowed to talk about a project Jul 03 15:28:06 F1rstAid: i'd google it http://stackoverflow.com/questions/3350283/any-way-to-run-shell-commands-on-android-programmatically http://stackoverflow.com/questions/3054973/android-how-to-run-a-shell-command-from-within-code http://stackoverflow.com/questions/6802810/running-shell-commands-from-app-rooted Jul 03 15:28:39 lov: it uses IWifiManager.aidl. I know that, but I can't see where is the implementation of these interface methods Jul 03 15:29:01 SuD thanks :) I was going to google too. I was just wondering if there is official source Jul 03 15:29:12 well it seems there is :D Jul 03 15:32:35 mdim: look in frameworks/base/services/java/com/android/server/WifiService.java Jul 03 15:32:53 can someone name one real world Android application that uses AIDL, but fairly simple, and that is publicly available (as free software)? Jul 03 15:33:03 I can't name a simple one. Jul 03 15:33:51 mdim: http://stackoverflow.com/questions/7497970/need-aidl-tutorials Jul 03 15:35:53 Anyone know if it should be possible to set a view in a listview to be invisible ? I'm doing a custom listView to get a pinned-header functionality. Everything was working great, until I decided my pinned-header should have some padding on the top. Jul 03 15:36:38 also, what's a good paste site ? Jul 03 15:36:51 http://paste.lisp.org/ Jul 03 15:40:05 http://pastebin.com/jMsiXq9T here is my code, which works for showing the static pinned header view, but since there's padding on that view, the items in the listView get vissible where the padding is. I'm trying to make them invisible when to go over the actual static View Jul 03 15:40:53 havchr: I use privatepaste.com Jul 03 15:43:37 privatepaste...sounds kinky Jul 03 15:46:07 canadiancow|work: it's too bad that you didn't use it :> Jul 03 15:46:22 why Jul 03 16:03:34 okay, found the solution for my problem, but at the same time, that made me jank like hell. Jul 03 16:05:10 when the static header is showing, I set the listview's padding to be the same as the static header's padding. but it janks when I change the padding. Probably it needs to do some layout math Jul 03 16:13:10 anyone know good tricks to improve the speed of a change in padding operation, or hide the compuation of it, to avoid jank ? Jul 03 16:16:56 does anyone have a good recommendation for something I can use to generate a class diagram out of my project within eclipse? Jul 03 16:18:14 doxygen maybe? Jul 03 16:21:29 hey, i'm having trouble with SpannableStringBuilder Jul 03 16:21:46 i'm calling setSpan multiple times, but it only seems set the last span Jul 03 16:22:09 Also I am NOT re-using the StyleSpan's Jul 03 16:22:41 although while debugging the style span it received was indeed the same as one it already contained Jul 03 16:22:43 which confuses me Jul 03 16:28:29 nvm I found the problem Jul 03 16:29:02 i was actually re-using the StyleSpans, but it looked as if I didn't Jul 03 16:36:20 damn, what's up with my dateformat? i'm using "yyyy" and for the year 1974, i get 3874. anyone know what's going on? Jul 03 16:37:11 weird, hasn't happened for me Jul 03 16:37:13 time travel, apparently Jul 03 16:37:21 its probably basing it off of 1900 Jul 03 16:37:24 read the docs Jul 03 16:37:51 have you come in contact with an flux capacitors recently? Jul 03 16:38:52 canadiancow|work: the docs don't mention anything about what it might be basing on Jul 03 16:39:45 ah got it, so rather than make a Date() i had to use new GregorianCalendar() Jul 03 16:43:32 is there an "official" wait to generate mouse/keyboard events from code? Jul 03 16:47:24 is the index of a child View determined by its position in the ViewGroup? Jul 03 16:48:16 like if I have a vertical LinearLayout with 3 or 4 child views in it, all on the same level, would I be able to programatically insert a child in there at the top by calling ParentViewGroup.addView(child, 0) or something? Jul 03 16:48:38 err, by "at the top", I mean "as if it were at the top of the XML" Jul 03 16:48:44 hey guys, question: how does Android know that a particular tag is associated with an app? Jul 03 16:48:45 yes Jul 03 16:49:00 I know that if the app is installed, the app registers its tags (NFC tags, sorry) Jul 03 16:49:13 but what if it isn't installed? Jul 03 16:49:22 how does Android know which app to go to in the Play Store? Jul 03 16:52:23 with the recent sdk i get deprecated warnings for simplecursoradapter. is there a nice tutorial on what i should do now? i heard something about content provider but my database is really not that large (20 items max), so i don't want a full blown solution Jul 03 16:53:35 should fragments be used as much as possible? Jul 03 16:55:12 jrockjiggz: should a hammer be used as much as possible? Jul 03 16:56:22 wongk: it was a serious question. so many tutorials are not updated (include official android dev articles).. i'm just a little confused if I should be using a mix, or just use fragments and forget the 'old way'.. Jul 03 16:56:51 might point was that fragments are a tool, use when appropriate Jul 03 16:57:04 you just need to understand their purpose Jul 03 16:58:08 well i see that fragments be used for dialogs or lists, I see no difference between using an activity and styling as a dialog or list Jul 03 16:58:43 fragments are there for code reuse Jul 03 16:58:45 basically Jul 03 16:58:56 ^ Jul 03 16:58:58 so you dont have to write the same code >9000 times if you support multiple screen sizes Jul 03 16:59:20 there's also the fragment stack and transactions, etc... Jul 03 16:59:43 Alright, so fragments are here to stay Jul 03 16:59:46 :) thanks Jul 03 17:07:19 is there a simple way of setting default font sizes? Jul 03 17:07:30 my weak googling seems to net people setting custom fonts Jul 03 17:07:43 oh hang on, ive just seen the themes.xml, probably in there Jul 03 17:08:24 amr: probably! :-D Jul 03 17:08:31 :) Jul 03 17:15:44 can you get a ViewGroup (the outer-most layout) by doing: ViewGroup layout = (ViewGroup) findViewById(R.layout.main_layout) ? I'm trying that from the main activity (for a test) and it's coming back null Jul 03 17:17:40 tnzr, it would be R.id.layout_name and also make sure your layout has an android:id field Jul 03 17:17:46 hi, I have a ListView with a custom adapter, each item has a button too, so both the button and the item should be clickable, I added an onClickListener to the button in the getView of the adapter and the button works but now I can't trigger the regular item anymore Jul 03 17:17:49 any ideas? Jul 03 17:19:03 kyau: ahh thanks, that was it :) Jul 03 17:19:31 TheTrash, yesterday's problem had to do with an uninitialized Handler; SimonVT would've spotted it! Jul 03 17:35:34 is there any way to programmatically set the id of a View to something other than an int? Jul 03 17:35:44 no, has to be an int Jul 03 17:35:56 ok, thanks Jul 03 17:37:08 tnzr: http://developer.android.com/reference/android/view/View.html#setTag(java.lang.Object) perhaps Jul 03 17:37:59 hey what does it mean in log cat when it says "call to openGL ES API with no current context (logged once per thread) Jul 03 17:38:11 wongk: come to think of it, I was trying to set the id to some name so I could findViewById(R.id.some_name) on it later, but I just realized that if I know the id, I don't need to feed it R.id.some_name, I can just feed it the id :) Jul 03 17:38:27 heh Jul 03 17:38:52 tnzr, If it is all in code, it has to be a non-unique int, you can use any possitive number, then use it again when finding by id.... ll.setId(42) and findViewById(42) should work... Jul 03 17:39:01 or basically what you just said ;) Jul 03 17:39:27 kyau: the only thing that I'm not sure about is how it doesn't have to be unique, but I'll take your and the docs' word for it :) Jul 03 17:40:12 If you have duplicate Id's I believe it just returns the first one it finds in the hierarchy... don't quote me on that though. Jul 03 17:40:49 I'm trying to make a drawable animate across a view, does anyone know if that's possible? Jul 03 17:40:59 Trying to make a barberpole-style progress bar animation thingy. Jul 03 17:41:09 And use the indeterminate drawable to draw across the view. Jul 03 17:41:40 :P https://play.google.com/store/apps/details?id=com.engrave.the_bro_code Jul 03 17:42:50 hi, I have a ListView with a custom adapter, each item has a button too, so both the button and the item should be clickable, I added an onClickListener to the button in the getView of the adapter and the button works but now I can't trigger the regular item anymore Jul 03 17:43:10 someone has an idea? as I understood i should make the button non-focusable and then it should work Jul 03 17:43:12 tried that Jul 03 17:46:42 if a parent and a child view are both listening for clicks/touches, and the child receives focus, then the child will be the one that receieves the touch/click event? Is that how focus works? Jul 03 17:49:53 I ask because I had to do something kind of complex to solve a problem like that and i'm going to be a little miffed if it was as easy as just giving focus to the appropriate child(ren) Jul 03 17:53:02 Sicp: I'd do no such thing! Jul 03 17:53:06 hehe Jul 03 18:09:59 anyone have any advice as to why an animation that does nothing other than changing the alpha value of a View doesn't seem to work (that, or the View never seems to show) when you initialize the View with a fully transparent alpha? (0x00FFFFFF for example) Jul 03 18:10:17 if I start the alpha at anything other than fully transparent, I can see the animation working just fine Jul 03 18:13:24 has anyone ever had an ActivityNotFoundException when it's definitely declared inthe manifest? Jul 03 18:15:06 probably. Jul 03 18:15:15 usually it's something silly like a typo though :> Jul 03 18:17:59 canadiancow|work: yeah Jul 03 18:18:14 birbeck, what was the problem? Jul 03 18:18:24 Always clean before exporting #protip Jul 03 18:18:56 either that or a modified pirated copy Jul 03 18:19:36 finally took a look at guava's eventbus, it's pretty nice Jul 03 18:20:04 no birbeck this is a debug build Jul 03 18:20:13 and i can repro it on other devices Jul 03 18:20:18 which is why i cant fucking understand it :P Jul 03 18:20:31 i guess i'll try cleaning all the lib projects too Jul 03 18:20:37 * canadiancow|work waits 10 minutes for a new build Jul 03 18:20:42 i'm having problems rendering textures on powervr graphics chips Jul 03 18:20:50 seems to work just fine on all other devices Jul 03 18:20:56 and opengl is not throwing any errors Jul 03 18:21:04 and it's not all textures, just some Jul 03 18:22:14 I mean I'm checking glGetError and it's all good Jul 03 18:22:34 i've run out of idea Jul 03 18:22:36 *ideas Jul 03 18:22:56 all power of two textures Jul 03 18:23:00 GL_RGBA format Jul 03 18:24:48 are you doing something funny in the shaders ? Jul 03 18:24:52 no shaders Jul 03 18:24:59 gles 1.0 Jul 03 18:25:15 nothing fancy at all Jul 03 18:25:23 it's just weird that some of them work and some don't Jul 03 18:25:28 even though i'm drawing them identically Jul 03 18:25:42 png textures, or generated ? Jul 03 18:25:43 almost one after another Jul 03 18:25:45 png Jul 03 18:25:59 i'm using libpng to load them Jul 03 18:26:36 check that the png's actually have alpha channels, sometimes they don't Jul 03 18:26:42 they do Jul 03 18:27:09 if they didn't, why would it work on other devices? Jul 03 18:27:25 because OpenGL-drivers can be weird :p Jul 03 18:27:25 it works on galaxy sII, doesn't work on galaxy tab Jul 03 18:27:44 works on htc legend, some huawei crap Jul 03 18:27:57 galaxy sII runs ARM mali chip, the galaxy tab runs something different I think Jul 03 18:28:01 pretty much everything that does not have powervr in it Jul 03 18:28:12 it's powervr in tab Jul 03 18:28:29 and htc legend is adreno Jul 03 18:29:46 if you load more textures, some of them start working Jul 03 18:29:50 but others stop working Jul 03 18:30:03 and I don't think it's running out of memory Jul 03 18:30:13 it's just a couple 1024x1024 textures Jul 03 18:30:36 i've tried lowering the resolution to something really low - didn't help Jul 03 18:30:49 nothing changed at all, tbh Jul 03 18:30:57 just lower resolution graphics Jul 03 18:31:25 i've been fighting with this bug for a few months Jul 03 18:31:45 funny I am getting all these emails about focus groups for RIM/Blackberry to improve developer adoption Jul 03 18:31:46 but I don't have a device with powervr graphics myself so I'm just sending the apk to one of my friends once in a while Jul 03 18:32:38 okay, this is a far fetched tip.. Maybe you are having some weird bug with your texture id's, but since they are sequential, it works for drivers that have them implemented in a sequential way.. As I said, really far-fetched Jul 03 18:33:50 worth looking over Jul 03 18:34:07 but I'm plugging in the id's that I got from glGenTextures Jul 03 18:34:28 I don't suppose anyone knows a straightforward way to alter the open/close speed of a SlidingDrawer programatically? Jul 03 18:34:47 might be worth just double checking just that code, to make sure you can rule it out. Jul 03 18:35:14 imbusy: and also, make a reproducable "proof of concept" , and send it to the powervr people. Jul 03 18:35:35 ron_frown: i would expect many bb devs would say : release BB10 yesterday ! as one answer :) Jul 03 18:35:46 honestly Jul 03 18:35:53 I think blackberry should use maemo Jul 03 18:35:54 g00s, did you say you used the eventbus in aosp framework or guava's? Jul 03 18:35:55 not maemo Jul 03 18:35:57 g00s: sorry, i never got to ask your question Jul 03 18:36:04 that newer nokia os Jul 03 18:36:09 pfn_: i used a modified guava Jul 03 18:36:11 g00s: there were no office hours on friday Jul 03 18:36:18 g00s, why'd you not just guava directly? Jul 03 18:36:40 birbeck: no worries; thanks very much though ! Jul 03 18:37:36 meego Jul 03 18:37:47 meego is really actually superior to most of what I've seen Jul 03 18:37:56 pfn_: 3 things: stock guava did not have unregistering a listener, i have events generated on another thread potentially - so i wanted to throw events from anywhere and have them land on the main thread (so I did that with a Handler) , i needed prioritized targets so that events went to receivers in an order , and lastly, cache reflection Jul 03 18:38:01 4 things i guess Jul 03 18:38:07 isnt meego moblin now? Jul 03 18:38:10 yeah Jul 03 18:38:13 thats not superior Jul 03 18:38:14 first thing, probably changed in recent revision, because unregistering is there now Jul 03 18:38:24 I dont know what it will take for people to realize html is for the web Jul 03 18:38:25 pfn_: oh sweet Jul 03 18:38:33 and if you wnt to do something serious, html+js isnt the answer Jul 03 18:38:34 but I see, ok Jul 03 18:38:38 g00s, reasonable reasons Jul 03 18:39:42 I'm mad!!! Jul 03 18:40:05 "Google's Jelly Bean statue overheats and melts" :| Jul 03 18:40:09 haha Jul 03 18:40:11 I've heard Jul 03 18:40:16 pretty funny Jul 03 18:40:19 the beans have been spilled ! Jul 03 18:40:20 I was trying to add new features to my app but now it doesnt ever work right anymore Jul 03 18:40:23 infact I'm still mind boggled that html+js and js being used for everything is actually being adopted Jul 03 18:40:31 > 10% on ICS Jul 03 18:40:32 g00s any advise Jul 03 18:40:33 jelly bean is nice, I'm glad I updated Jul 03 18:40:40 the notifications are tits Jul 03 18:40:44 I was trying to add new features to my app but now it doesnt ever work right anymore Jul 03 18:40:57 and now is surprisingly good... like siri without the bs Jul 03 18:41:22 Hello folks. Jul 03 18:41:43 http://www.urbandictionary.com/define.php?term=the+tits Jul 03 18:41:59 GeeksOnHugs: Jul 03 18:42:00 precisely Jul 03 18:42:02 g00s: Jul 03 18:42:03 I am experiencing a problem when running my application. I am getting this error message: http://pastebin.com/kgKRAFVH. Jul 03 18:42:12 Sorry if that is too much information. Jul 03 18:42:50 http://www.urbandictionary.com/define.php?term=TMI Jul 03 18:42:51 No such file or directory Jul 03 18:43:00 GeeksOnHugs: stfu Jul 03 18:43:20 http://www.urbandictionary.com/define.php?term=STFU Jul 03 18:44:25 "and is often said by people that are losing an argument or can't think of a comeback." Jul 03 18:44:35 GeeksOnHugs: ur a loser Jul 03 18:44:48 anyone know the height of the status bar on a galaxy nexus Jul 03 18:45:02 Nope. I always just remove it. Jul 03 18:45:04 you can get that from I think windowmanager Jul 03 18:45:08 Anyway, can anyone help me? Jul 03 18:45:14 http://www.urbandictionary.com/define.php?term=loser Jul 03 18:45:17 and that would be the correct way to deal with it Jul 03 18:45:55 -__- Jul 03 18:46:23 I remember my first visit to urban dictionary Jul 03 18:47:14 u thought it was porn didnt you... Jul 03 18:47:33 Is there any possibility that my problem can be fixed? Jul 03 18:47:45 And by the way, can anyone see my messages? Jul 03 18:48:00 yes Jul 03 18:48:09 Good good :) Jul 03 18:48:27 To which one of my questions? Jul 03 18:49:06 07-03 18:35:30.498: E/AndroidRuntime(853): Caused by: java.lang.NullPointerException Jul 03 18:49:06 07-03 18:35:30.498: E/AndroidRuntime(853): at com.madsclausen.engine.EngineCanvas.startMainThread(EngineCanvas.java:39) Jul 03 18:49:37 So mainThread has to be null. Jul 03 18:50:50 But I have "mainThread = new EngineThread(getHolder(), this);" inside surfaceCreated() in a class that extends SurfaceHolder and implements SurfaceHolder.Callback. Jul 03 18:50:56 Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) also .. Jul 03 18:51:06 Sorry, it extends SurfaceView. Jul 03 18:51:17 What is ENOENT used for? Jul 03 18:51:39 err never mind, seems to be unrelated Jul 03 18:52:09 anyone here living as a digital nomad? I mean, travelling the world and coding at the same time? I'm seriously considering to start doing that Jul 03 18:54:05 Wow. I just needed to move one line, and it worked. And then make an if statement. Jul 03 18:54:28 Is it normal that it does not draw for about 1-1.5 seconds? Or is this some emulator only stuff? Jul 03 18:55:21 Try it on a device and see Jul 03 18:58:55 I am getting an ASUS Transformer TF300 in 2 weeks :) Jul 03 18:58:59 Can't wait. Jul 03 19:02:39 mad1231999: O.o >,..,< NICE! Jul 03 19:04:24 Also while I am here.... I could use a hand. Who knows how to get an app to start up when a volume button is depressed and held. Jul 03 19:04:51 http://www.youtube.com/watch?v=kDsOtdRtG0Q&feature=related Jul 03 19:05:50 cythes: you don't Jul 03 19:06:16 MDijkstra: Any idea what else I can do? Jul 03 19:06:45 well Jul 03 19:06:50 cythes: no, because I don't know what you're trying to do Jul 03 19:06:51 i assume you'd have to have it running in the background Jul 03 19:06:58 MDijkstra: +1 Jul 03 19:07:02 and get the view up when you hit that Jul 03 19:07:04 Works fine on a device, but if I exit the app and then re-enter it, it is not responding. Jul 03 19:07:46 cythes: but it would be rather ridiculous if an app could hijack your volume button presses Jul 03 19:07:56 lol exactly Jul 03 19:08:02 I am sorry if this is a stupid question, but how can I pause a thread when the application is exited? Jul 03 19:08:21 As in when the "home button" is pressed. Jul 03 19:08:47 mad1231999: the application is not exited when the home button is pressed Jul 03 19:09:09 [09:08.22] As in when the "home button" is pressed. Jul 03 19:09:15 I said "As in" Jul 03 19:09:40 But anyway, how can I pause a thread. I am thinking something with surfaceDestroyed(). Jul 03 19:10:24 mad1231999: and there's no application at this level, the currently visible activity gets paused if it's sent to the background Jul 03 19:10:38 paused, and then stopped Jul 03 19:12:33 ie, you have a topmost activity, and it gets notified that the home button was pressed by onPause and then onStop Jul 03 19:17:18 Anyone here ever successfully used negative number values in a NumberPicker? Jul 03 19:17:38 mad1231999: Android doesn't work like you think it does. Jul 03 19:17:55 your application doesn't quit when the user presses home Jul 03 19:18:10 your activity might be sent to the background, but your services, etc will still be there, and your thread will still run. Jul 03 19:18:17 and there's no monolithic application that receives lifecycle callbacks at all Jul 03 19:18:26 however, there's no way to differentiate between, say, pressing home and the user getting a phone call Jul 03 19:19:03 I'd recommend reading this: http://developer.android.com/guide/components/activities.html#Lifecycle Jul 03 19:19:58 kyau: You can't..ish Jul 03 19:20:05 minvalue and maxvalue can't be <0 Jul 03 19:20:07 I am I am just getting really wierd results Jul 03 19:20:18 Your displayed items can be whatever you wan't Jul 03 19:20:24 I populate a String[] with (-50 -> 50) then setMinValue/setMaxValue of the NumberPicker to (0 & 100), then setValue(50)... so it defaults to String[50] which = 0. However then when I cycle through the NumberPicker it displays the values completely different than it is storing them in memory. Jul 03 19:20:49 do i need to install a driver or anything so that i can debug my app on my actual device? Jul 03 19:20:59 Basically what is happening is when I select any number it displays fine, except -1 through -5, they display as -19, -29, -39, -49, -50. Jul 03 19:21:37 I even parsed through the setOnValueChangeListener and according to that it should be displaying -1 through -5 and not the results I am getting. Jul 03 19:21:53 jimi_hendrix: what platform Jul 03 19:22:14 wongk, fedora linux Jul 03 19:22:17 forgot to mention that Jul 03 19:22:22 you shouldn't, no Jul 03 19:22:32 well adb cant find my device Jul 03 19:22:37 i have it plugged in and debug mode is on Jul 03 19:22:38 but you need to setup udev rules Jul 03 19:22:44 to access usb as a non-root user Jul 03 19:22:45 Hi Jul 03 19:22:47 and adb devices shows nothing Jul 03 19:23:00 well thats ubuntu, dont know if its the same Jul 03 19:23:02 i guess mine were already setup that way Jul 03 19:24:07 SimonVT: any reason why I would get those wierd results? Jul 03 19:24:07 Anything more detailed than logcat in eclipse available for debug? Jul 03 19:24:36 you ccan do full debugging Jul 03 19:24:38 Nope, kyau Jul 03 19:25:22 I think its bugging out on something, cause the faded values (prev/next) on the NumberPicker display currectly but then get changed when selected (hense why I thought to parse the Listener). Jul 03 19:26:45 Have yet to see that issue anywhere Jul 03 19:27:04 Yea I just spent 2 hours on StackOverflow trying to debug the issue to no avail. Jul 03 19:27:39 I was basically being told it might be a bug in NumberPicker, so I figured I would ask if anyone else had ever gotten similar results. Jul 03 19:28:26 Well, I really doubt that, tbh Jul 03 19:28:36 Then stuff like datepicker and timepicker would be fucked as well Jul 03 19:28:36 Thats what I said... Jul 03 19:28:41 Throughout all applications Jul 03 19:28:45 Well, none of those use negative values though. Jul 03 19:28:56 You're just using strings Jul 03 19:29:04 It doesn't know they are negative values Jul 03 19:29:14 It just draws the text Jul 03 19:29:23 man i'm loving this cyanogenmod Jul 03 19:29:48 Trying to get this example to work: http://www.edumobile.org/android/android-beginner-tutorials/using-bitmap-class-object-to-draw-an-image/ not sure how to deduce from the logcat to find out the problem. any tips? Jul 03 19:30:40 Does the package name need to match the activity name? Jul 03 19:31:12 then you'd only be able to have one activity :P Jul 03 19:32:14 SimonVT, I understand its all a String[] but I don't understand why the OnValueChange would say the current string value is "-1" but then on my device or emulator it shows "-1" for half a second and then becomes "-19" Jul 03 19:32:29 one starting activity? Jul 03 19:33:03 LogCat is showing deep system errors but not telling which line has non-instanciated object or what the problem is. Jul 03 19:33:04 Droido: this is just a Java language thing. The package name is totally independent of the names of the classes declared within that package Jul 03 19:33:07 heh, the answer is no Jul 03 19:33:42 Droido: it could just as easily be "class TheActualActivity extends Activity..." in this example, within the same com.sample.DrawBitmap package, and it would *run* identically Jul 03 19:34:09 assuming the activity is delcared properly in the manifest Jul 03 19:34:30 as far as actual runtime failures, stacktrace or GTFO :) -- that is, you need to pastebin the actual text of the errors, and some code + manifest, if you want people to be able to help you Jul 03 19:35:16 (wooo, ICS > 10% of installed base!) Jul 03 19:35:23 :] Jul 03 19:35:24 ( http://developer.android.com/about/dashboards/index.html ) Jul 03 19:35:35 and froyo down to 17% Jul 03 19:35:37 im not sure if i'll be satisfied when i can drop 2.2 Jul 03 19:35:42 what's eclair at Jul 03 19:35:50 i dont know if i'll care until minSdkVersion="11" Jul 03 19:35:51 4.7% on eclair Jul 03 19:35:56 decently small Jul 03 19:36:00 but all the eclair devices are hitting the 2 year wall Jul 03 19:36:07 and froyo within about six months Jul 03 19:36:21 yea cause no eclair devices were sold after froyo was released... :P Jul 03 19:36:25 well i added the /etc/udev/rules.d file, and lsusb can find my phone, but adb cant Jul 03 19:36:29 any ideas? Jul 03 19:37:01 upgrade to a Mac? :) Jul 03 19:37:09 did you try restarting the adb server afterwards? Jul 03 19:39:21 i was reading an interesting piece (on the verge i think) the other day that blamed the slow updates not on skins, but backporting closed drivers Jul 03 19:39:37 s/backporting/porting Jul 03 19:39:37 What is a good way to persist an ArrayList of custom objects in Android? Is using serialization on the sd card a better option than using SharedPreferences? Given that the latter method only permits storage of primite types Jul 03 19:39:50 g00s, they're not really closed to the OEMs though Jul 03 19:39:57 they're only closed to teams like cyanogenmod Jul 03 19:40:08 @ctate: thanks. why wouldn't it work is maybe an easier question. It is copied and pasted, a fresh project and requires nothing from the mail.xml file. it has the folder with the jpg it is looking for with the right name. It lists about 70 errors. Jul 03 19:40:18 SharedPreferences isn't for storing random data Jul 03 19:40:31 Are eclipse the best IDE for androide ? Jul 03 19:40:32 wongk, yes Jul 03 19:40:35 you can serialize to internal storage, or use SQLite Jul 03 19:40:53 Entvex: that's extremely subjective Jul 03 19:41:02 what do you use ? Jul 03 19:41:09 eclipse Jul 03 19:41:17 Entvex: it is used in the tutorials at the android site Jul 03 19:41:29 for every person in here that uses eclipse, there is probably one that doesn't Jul 03 19:41:40 ye Jul 03 19:41:58 that being said, the android team supports eclipse Jul 03 19:43:16 the adt is slowly getting better Jul 03 19:43:24 Is there a way to step through code and see the line number where it has a problem? I'm just getting a massive logcat and only one line listed in my code. That line looks fine. Jul 03 19:43:34 i liked that feature they demoed that showed all the previews for a bunch of configurations at the same time Jul 03 19:43:42 Droido: run in the debugger Jul 03 19:43:58 and some small things like color swatches Jul 03 19:44:06 Droido: yeah without actually seeing the logcat contents & your code people will have a hard time helping you Jul 03 19:44:42 Should the project name be capitalized as a standard? Jul 03 19:45:14 irrelevant; do what makes sense to you Jul 03 19:46:34 okay creating a freshh project. it wants to name the activity DrawBitmapActivity but am going to change it to DrawBitmap to match the example. Jul 03 19:46:45 the post the code on pastebin Jul 03 19:47:12 anyone using zeromq for android ? Jul 03 19:49:50 g00s that sounds famil Jul 03 19:50:14 but i dont recognize the site Jul 03 19:50:49 its a very interesting piece of software Jul 03 19:51:44 can be used for inproc communication (between threads, like message queues) as well as socket Jul 03 19:51:44 great it works with fresh project. changing one of the names ruined it and its confusing what is where. Jul 03 19:52:07 Is there a visual diagram anywhere with a line going from xml into the java source showing dependencies across files visually? or do we just need to read and read, experiement until that picture forms in the mind? Jul 03 19:52:29 Or a checklist for when you changed names across packages etc... and nothing is working. Jul 03 19:53:03 The framework is very very non-intuitive. Jul 03 19:53:14 Must be designed by Linux programmers :) Jul 03 19:54:11 Droido: dependencies across files? in the android framework or your own code ? Jul 03 19:55:25 it was emphatically not designed by linux developers. Jul 03 19:55:51 in the code. for instance I printed out the main.xml and the java source. drew line from the ids in the .xml to where it is instanciated. Where it is instanciated has a line in the .java going to the object declaration. Many of my errors have been leaving off the declaration, id's in the xml and something that checks for everything to e Jul 03 19:56:07 I'm confused. Throwable implements Serializable, hence I put it as an extra in an Intent. Sometimes though, I get crashes from that: https://gist.github.com/3042537 Jul 03 19:56:13 there's a lint tool, you know. Jul 03 19:56:29 but yeah, if you refer to constants that you didn't actually declare, you'll have trouble. Jul 03 19:56:56 i think there is some validity to the idea, that the xml resources can have complex dependencies between each other (and the java code) and the IDE should help visualize that. Jul 03 19:57:01 xist that is declared in the xml to be both instanciated and have a reference. guess I'm over the hill with todays frameworks. years of coding is irrelevant to how the framework is setup. Jul 03 19:57:21 like a dependency tree (this layout uses this layout which uses these colors, etc) Jul 03 19:57:33 luxurymode: you left off what the actual error is Jul 03 19:57:58 and just pasted the middle of the stack crawl Jul 03 19:58:20 @ctate, my bad: 150 java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = java.net.ConnectException) Jul 03 19:58:22 Yes. And using a red square for an activity with colored squares that are specific to the layout objects they are tied to. Its the computers job to interpret the code and for the few relations we are describing we have a lot of nasty looking text. Jul 03 19:58:52 luxurymode: with no 'Caused by...' later on? Jul 03 19:59:07 Too bad javascript is sooo hard compare to C++ and Assembly otherwise I'd make it lol. Jul 03 19:59:40 @ctate, good point. i forgot to look at the one last part of this huge trace: 07-03 15:46:31.557: E/AndroidRuntime(5700): Caused by: java.io.NotSerializableException: org.apache.http.HttpHost Jul 03 19:59:41 okay, i have no idea what you're talking about with "using a red square with an activity..." -- i guess you're using some kind of UI wizard, not just writing it yourself? Jul 03 19:59:58 also, why are you suddenly talking about javascript? javascript has nothign to do with Android. Jul 03 20:00:14 sure it does Jul 03 20:00:19 android uses java Jul 03 20:00:22 and it's JAVAscript Jul 03 20:00:23 Maybe it is easier to think of the framework as a game library and Activities and other objects as generic sprites. Each sprite has certain things they can control. The system calls their onpaint etc... some sprites can launch threads. Jul 03 20:00:29 don't make me smack you, canadiancow Jul 03 20:00:33 therefore android == javascript Jul 03 20:00:38 canadiancow, thats a seriously way too common misconception Jul 03 20:00:43 what kyau said Jul 03 20:00:52 blame Netscape for that fuckup. Jul 03 20:01:09 for all that matters you could call javascript somerandomwordscript, it still has nothing to do with java Jul 03 20:01:22 in fact they probably should have Jul 03 20:01:47 @ctate, sorry full thing here: https://gist.github.com/3042562 Jul 03 20:01:51 the official standard name for that language is Ecmascript btw :) Jul 03 20:02:13 Caused by: java.io.NotSerializableException: org.apache.http.HttpHost Jul 03 20:02:14 luxurymode: so right, you can't serialize an HttpHost, so don't do that Jul 03 20:02:22 exactly what it says :) Jul 03 20:02:27 lol yeah i guess not Jul 03 20:02:31 just gonna try/catch Jul 03 20:02:36 or not even send the throwable Jul 03 20:02:41 i dont absolutely need it Jul 03 20:02:42 [aside: Serializable is horrifically awful and wtf are you doing with it? :) ] Jul 03 20:02:43 @ctate: because I once made appletmaker that let you combine classes online and it would compile and give you a folder with a running applet to redirect to. so you would be able to go online and define names in a layout and it would make the java file for you with everything setup. I don't know how to make it work in Eclipse. Jul 03 20:03:15 err, "applet"? like, Sun Java applets? Jul 03 20:03:19 totally not relevant for Android Jul 03 20:03:34 different execution model, different UI toolkit, etc. Jul 03 20:03:52 @ctate: any java code. it can handle different execution models, ui toolkits etc... Jul 03 20:04:21 @ctate: lets not go there. Jul 03 20:04:54 @ctate, why is it horrifically aweful? Jul 03 20:04:55 For now each thing added to the layout must be documented on paper or immediately setup in code. The one at a time approach. Jul 03 20:05:07 luxurymode: it's really slow and cumbersome and weird Jul 03 20:05:29 @ctate hard to really argue with that Jul 03 20:05:34 heh Jul 03 20:05:55 "Android 4.1 Jelly Bean is one of the best products Google has ever produced. It's fast, fluid, and beautifully designed. " (from theverge review). congrats android team Jul 03 20:06:19 I'm really looking forward to reduced jank Jul 03 20:06:28 i just want to fell the new animations Jul 03 20:06:32 feel Jul 03 20:07:04 I have an application with 4 activities, all of which are supposed to be using Actionbar Sherlock. all extend SherlockActivity, Two of them show the action bar, two of them don't. what might I be doing wrong that the action ba doesn't show Jul 03 20:07:08 ? Jul 03 20:07:19 theme Jul 03 20:07:27 @ctate, i guess i meant that in two ways: if what you say is true, then hard to argue its awful. but i also meant that i cant really discuss the issue intelligently when you provide no basis for the claim ;) Jul 03 20:07:38 :) Jul 03 20:07:45 @ctate: you took applet out of context and missed the point. Jul 03 20:07:51 i just got a really weird notification that looks like the text message icon only green, something about zombie lands.... Jul 03 20:07:51 luxurymode: briefly: it's slow and cumbersome and weird *and Android never uses it* Jul 03 20:07:57 canadiancow|work I have my manifest set to use android:theme="@style/Theme.Sherlock" Jul 03 20:07:59 anyone seen anything like that? Jul 03 20:08:07 then i dunno Jul 03 20:08:12 Droido: okay, "applet" has pretty much always been a technical term; that's why i took it that way. sorry. Jul 03 20:08:24 it took me to google play Jul 03 20:08:26 wongk, if it was 4.1 you could find out what it is Jul 03 20:08:29 sounds airpushy Jul 03 20:08:34 @ctate: ignore the word applet in the sentence. Jul 03 20:08:35 luxurymode: and it's not at all unlikely that whatever your'e using it for, there's some better way. Jul 03 20:08:46 i have no idea what this is Jul 03 20:09:06 yeah, sounds like airpush / leadbolt or somethign like that Jul 03 20:09:11 not running 4.1, eh? Jul 03 20:09:15 heh Jul 03 20:09:18 notsomuch Jul 03 20:09:25 let me google airpush Jul 03 20:09:30 oh you Jul 03 20:09:42 We're not running it cus google is slacking with updating gnexus Jul 03 20:09:57 flash it yourself Jul 03 20:10:03 :D Jul 03 20:10:16 and i don't have a genx, don't forget that part Jul 03 20:10:20 gnex Jul 03 20:10:26 ctate's sitting over there running 4.2 and making fun of us for not having 4.1 :( Jul 03 20:10:44 an ad network, i have nothing of this type on my phone Jul 03 20:11:04 you dont have any apps? Jul 03 20:11:17 Flash it myself? Jul 03 20:11:22 jellybean Jul 03 20:11:50 There's no jb factory image on googles page Jul 03 20:12:00 yeah, factory image only available for N7 Jul 03 20:12:01 there are other places to get it :P Jul 03 20:12:06 is airpush something random apps include? Jul 03 20:12:10 yes wongk Jul 03 20:12:19 Yeeeeah, no Jul 03 20:12:23 wtf... i don't have anything shady running Jul 03 20:12:24 I think I'll wait Jul 03 20:12:29 wongk: It sounds like an app has stealthily connected you to an ad network, AirPush is an example of this. Jul 03 20:12:40 i bet it's 'GPS status' Jul 03 20:13:16 Playing around with my NumberPicker more I still cannot derive the source of the issue I am having, I made a video and included source and logcat pastebin links in the comment, as I am having a hard time explaining the issue with text... https://www.youtube.com/watch?v=bF39THktVY4 ... Not getting errors but results are not as intended. Jul 03 20:13:59 gps status is lov's app, innit? Jul 03 20:14:06 or am i thinking fo something else Jul 03 20:14:10 er, is it? Jul 03 20:14:45 hello Jul 03 20:14:51 quite possibly not; there are a lot of gps related apps Jul 03 20:14:51 kyau: Huh Jul 03 20:15:09 not unless lov is also known as 'MobiWIA - EclpSim' Jul 03 20:15:17 i'm a little confused by getActivity(); how come i can use it without importing anything? Jul 03 20:15:39 because... it's a method? Jul 03 20:16:10 SimonVT: the values in the NumberPicker for -1 through -5 are changing as i cycle through it (as shown in video) Jul 03 20:16:23 @ctate, what do you mean android never uses it? internally in the OS? cuz there's intent.putExtra("foo", someSerializable)..obviously Jul 03 20:16:24 Yeah Jul 03 20:16:30 That seems like a bug :p Jul 03 20:16:34 :( Jul 03 20:16:38 yeah i bet they regret putting that in :) Jul 03 20:16:49 I can't find the getActivity() documentation.. Jul 03 20:16:54 it's there as a convenience for 3rd party app developers like you. nothing int he OS implementation itself relies on it. Jul 03 20:17:15 "Today, a single Apple product—the iPhone—generates more revenue than all of Microsoft’s wares combined." bwhaha Jul 03 20:17:22 jrockjiggz: It's in the docs for whatever class you're calling it from Jul 03 20:17:40 SimonVT: thanks i will look there Jul 03 20:17:43 canadiancow|work: lawl Jul 03 20:17:52 kyau-prime: The issue is somewhere with the edittext that shows the current value getting focus Jul 03 20:18:31 Pretty sure there's a way to not let it get focus Jul 03 20:18:36 kyau-prime: Is this only happening with negative numbers? Jul 03 20:18:36 I'd imagine that would fix it Jul 03 20:18:49 Yes only with -1 through -5... Jul 03 20:18:59 But it is populated with a String[] thats why it makes no sense Jul 03 20:19:23 Like SimonVT pointed out to me earlier the control doesn't even know they are numbers. Jul 03 20:19:32 @ctate any more material on this issue? interested see comments from anyone at android or thoughts on whats so bad about serializable in general Jul 03 20:19:42 kyau-prime: Right, but what about your conversion - (i - 50) Jul 03 20:20:05 Thats just from a ton of implementations, switching that around so it looks proper I get the same result Jul 03 20:20:07 luxurymode: more seriously, that's about it (slow / cumbersome / weird) in practice Jul 03 20:20:15 luxurymode: it has to do with dalvik and reflection. i'm sure you will find posts on google groups from dianne about it Jul 03 20:20:36 g00s, right i had her in mind. shes usually pretty clear and loud about things she thinks are bad ideas Jul 03 20:21:06 also trying ot externalize thigns using Serializable will break yoru externalized data at some point and you will be sad Jul 03 20:21:13 g00s, and there you have it http://stackoverflow.com/questions/3611843/is-using-serializable-in-android-bad Jul 03 20:21:15 from dianne herself Jul 03 20:21:26 MontyCarleau, I have it like that for simplicity to use the same incrementing value for the place in the array and the value of the array. (one value less memory was the thought) Jul 03 20:21:27 (for "things" meaning Android framework classes; with your own you have control over the long-term format) Jul 03 20:21:29 @ctate, could you explain what you mean Jul 03 20:21:37 re: externalizing things Jul 03 20:22:10 converting to a byte stream and storing to non-RAM media Jul 03 20:22:30 which is basically what Serializable is *for* :) Jul 03 20:22:45 well, that and putting things across sockets or whatever Jul 03 20:22:51 so, I just tried forcing a custom theme on my action bar sherlock menu and it still fails to show, but this time if i press the menu hardware button I get a menu affect ... Jul 03 20:23:07 but for transient uses like that, Parcelable is a whole hell of a lot sleeker Jul 03 20:23:39 but implements Serializable is easier than implements Parcelable! Jul 03 20:23:47 I am trying to make my first andrpode app can't seem to get the button eventhandler to work http://pastebin.com/b7xLK6wf error OnClickListener cannot be resolved to a type Jul 03 20:23:58 im not sure we use serializable anywhere that isnt stored to disk though Jul 03 20:24:22 Entvex: Do you know about imports? Jul 03 20:24:25 you can't rely on Parcel if you write to disk Jul 03 20:24:44 kyau-prime: Can you change it so that the line "currentScoreArray[i] = Integer.toString(i - 50);" reads "currentScoreArray[i] = Integer.toString(i - 50) + "_";" Jul 03 20:24:49 ctate: with newer versions of android; its easy to find info on new apis - but i rarely see info on improvements to dalvik.is this located somewhere else ? Jul 03 20:24:56 Yes SimonVT Jul 03 20:24:58 but as dianne said there, if you *are* writing to disk, a hand-rolled serializer will probably be a lot faster and lower overhead than Serializable Jul 03 20:25:15 Entvex: *hint hint* Jul 03 20:25:18 g00s: i don't think so, no; it's all in AOSP Jul 03 20:25:44 hmm so do you think i am missing an import Jul 03 20:25:57 MontyCarleau, I get where you are going with this, let me try adding that Jul 03 20:26:56 hmm i fixed one error SimonVT in the Toast Jul 03 20:27:26 You need to import the classes you're using, unless they're in the same package Jul 03 20:27:31 Else it can't resolve the type Jul 03 20:27:55 MontyCarleau, I believe NumberPicker is converting my String[] into an int[] or at least performing like it is.. By conectating the "_" to the end of all the numbers like you suggested it now displays as intended. Jul 03 20:28:17 maybe it's View.OnClickListener Jul 03 20:28:44 kyau: So if you replace the "_" with a "", the app behaves as intended? Jul 03 20:29:21 SimonVT i got import android.widget.Button; :-/ Jul 03 20:29:26 MontyCarleau, nope :( Jul 03 20:29:39 Entvex: .. you're not importing OnClickListener Jul 03 20:29:43 MontyCarleau, wait is that a space or nothing between the "" Jul 03 20:29:44 kyau: Then can you be more descriptive? Jul 03 20:30:20 okay i'll find it in the api then :D Jul 03 20:30:32 kyau: Oh god, this is lame Jul 03 20:30:37 MontyCarleau, using "" it goes back to old behavior of making -1 into -19, etc. Jul 03 20:30:50 SimonVT, I have been fighting this for 2 days heh Jul 03 20:31:31 kyau: Here's my bet, Jul 03 20:32:00 kyau: You're adding these as strings, and it's alphabetizing them instead of ordering them by insert. Jul 03 20:32:18 kyau: Yeah, so.. it's that edittext :p It's doing strange things with it Jul 03 20:32:39 MontyCarleau, But wouldnt -6 through -9 also be messed up Jul 03 20:32:47 SimonVT :D found it import android.view.View.OnClickListener;! Jul 03 20:33:43 kyau: It depends on the ordering. It might think those are numbers but the others are strings - who knows. What kind of object is currentScoreArray? Jul 03 20:33:57 Thanks for the hint SimonVT it's so just better then just getting it all on a sliver plate :D! Jul 03 20:34:01 ^.^ Jul 03 20:34:17 This is the application block from my manifest file, (http://pastebin.com/00rgmsBK) Capture and playback activities have functional action bars, but the momentsDetails does not. Is there something wrong with my manifest file? or ? I can't figure out why the action bar does not display on those two activities Jul 03 20:34:25 MontyCarleau, "String[] currentScoreArray = new String[101];" Jul 03 20:34:37 Found the android:onClick attribute as well! Jul 03 20:34:44 that seems like the way to go Jul 03 20:34:53 I guess I could add whitespace to the strings and remove the whitespace on the recieving end before converting back into an int, seems like an ugly hack though. This seems to work... Jul 03 20:35:09 kyau: And how are you passing that to the View? Jul 03 20:35:17 kyau: So, it's because they only display "valid" values in the edittext Jul 03 20:35:38 MontyCarleau, http://pastebin.com/bqgKEhbL Jul 03 20:35:40 The edittext with -1 gets focus.. They iterate through your values, and using String.startsWith(..) to find a valid value to display Jul 03 20:35:49 -10 is before -1 in your array Jul 03 20:35:53 So -10 gets shown Jul 03 20:36:00 it shows -19 though not -10 Jul 03 20:36:01 or, -19 I guess Jul 03 20:36:04 heh Jul 03 20:36:11 Same with -29, -39, -49 and -50 Jul 03 20:36:45 -01 would work ^_^ Jul 03 20:37:57 So then the question comes down to is it more efficient to populate the first 9 differently or add and remove a whitespace character? Jul 03 20:38:42 No idea Jul 03 20:38:54 You just gotta make sure "-19".startsWith doesn't match on your -1 :p Jul 03 20:39:13 Guess it really doesn't matter, well thank you all for the help at least I now have a solution. Jul 03 20:39:24 Hi droids! Jul 03 20:44:07 alex853; welcome Jul 03 20:44:24 852 just left Jul 03 20:46:22 If an activity was represented on a diagram as a square with little squares in it connected to parts of a square representing a layout what color do you think the Activity would be? Jul 03 20:48:40 Depends on the theme of course Jul 03 20:50:27 im doing a little jpg and found http://snag.gy/ to post it if there is a more standard one for programmers please let me know. thanks! Jul 03 20:55:18 it sure takes a long time to just draw a few things in photoshop Jul 03 20:55:49 This is the application block from my manifest file, (http://pastebin.com/00rgmsBK) Capture and playback activities have functional action bars, but the momentsDetails does not. Is there something wrong with my manifest file? or ? I can't figure out why the action bar does not display on those two activities Jul 03 20:59:01 when i update my widgets pending intent it doesnt seem to update correctly. is this an issue with pending intents? is there some flag i need to set on it? Jul 03 20:59:46 /proc/pid/ <-can i grep here to find current instance variables of my running app? Jul 03 21:00:03 guess i need flag_cancel_current in the pendingintent Jul 03 21:00:13 brx_: "instance variables"? Jul 03 21:00:23 ye, like strings and what not Jul 03 21:00:32 found throughout the classes in my app Jul 03 21:00:38 at runtime Jul 03 21:00:42 not at all Jul 03 21:01:02 what are you trying to accomplish Jul 03 21:01:03 im sure ive done this before in debien Jul 03 21:01:04 ? Jul 03 21:01:22 i have an old build of an app installed, ive lost my source, i want some data rom it Jul 03 21:01:29 in some configurations the entirity of process memory is exposed somewhere in /proc Jul 03 21:02:00 is there any way to accomplish this in android/ Jul 03 21:02:13 you can pull the apk file Jul 03 21:02:37 an old non-purchased app like that, the apk will be world-readable Jul 03 21:02:58 you can then extract all the resources, decompile the bytecode if you want with smali/baksmali, whatever you want Jul 03 21:03:01 ye i might go down that route instead Jul 03 21:03:33 ctate, any experience with Actionbar sherlock ? Jul 03 21:03:43 i have never used it. ask JakeWharton. Jul 03 21:03:54 i used it once Jul 03 21:04:10 I bet, just before you wrote it eh? Jul 03 21:04:22 he liked it so much he bought the company! Jul 03 21:04:50 http://stackoverflow.com/questions/5663671/creating-an-empty-bitmap-and-drawing-though-canvas-in-android getting bitmapconfig not resolved Jul 03 21:05:17 JakeWharton, I have a really strange issue where two of my activities have functioning action bars and two don't. I've set the theme in the xml and am at quite a loss.... here's my xml: http://pastebin.com/00rgmsBK do you hany any ideas? tips? debugging vectors ? Jul 03 21:05:35 is Google Now supposed to tell me that there is driving traffic from work to home? Jul 03 21:05:40 i have driven to work like....twice Jul 03 21:05:40 ever Jul 03 21:05:46 and i dont usually leave at this time Jul 03 21:08:33 what did it tell you through? Jul 03 21:09:04 that there's a delay Jul 03 21:09:10 on a street that i wouldnt take even if i were driving :) Jul 03 21:09:29 Traffic to Home - ETA: 40 minutes (15 minute delay) via Yon... Jul 03 21:10:06 ctate: this is the first thing ever that i havnt liked about android! (not being able to get at stuff that is in memory) Jul 03 21:10:54 but... it's in your own process's memory so if you've lost track of it, it's your own damn fault Jul 03 21:10:59 and it's a major MAJOR security issue Jul 03 21:11:18 on desktops you have to be root to get at random processes' ram contents anyway Jul 03 21:11:49 ye, so why not allow root to get at it on a device? rooting is legal isnt it? Jul 03 21:18:02 brx_: root bypasses all the security measures in the phone. On the nexus phones you can gain root "legitimately" without using exploits, becuase that's the point Jul 03 21:18:28 brx_: on vendor phones they don't want to let you have root because it allows you to remove things they get money for (ad/crapware) or lets you bypass account restrictions (like tethering) Jul 03 21:19:18 brx_: giving the masses root is a Bad Plan because malware would go rampant and be basically unsolveable. If you're trying to do something that requires root, consider if tehre's any reasonable way to do it without, because it's a bad plan to tell users to root their phones if they don't understand the implications. Jul 03 21:20:11 ye i understand that Dragonene_ Jul 03 21:20:15 dragorn: Jul 03 21:22:52 07-03 17:16:08.801: E/AndroidRuntime(17949): java.lang.NullPointerException Jul 03 21:22:52 07-03 17:16:08.801: E/AndroidRuntime(17949): at android.preference.ListPreference.findIndexOfValue(ListPreference.java:215) Jul 03 21:22:53 any ideas Jul 03 21:23:17 don't use a null pointer Jul 03 21:23:23 thanks lov Jul 03 21:23:36 this is loading a PreferenceFragment from an xml file Jul 03 21:23:42 err adding the prefs from* Jul 03 21:24:26 brx_: rooting actually ISN'T legal in a lot of cases, at least in the U.S. You have to beg the chief librarian every 3 years to pretty please let you use your device that you own in a way that you'd like. Jul 03 21:24:36 So, with the help of a lot of people here, I'm finally able to add buttons to my Activity, dynamically (code here: https://gist.github.com/3043288). My question now, is: how can I set up an onClick listener for each separate button that is added? Jul 03 21:25:50 wherever you set up the button, call setOnClickListener? Jul 03 21:26:10 lov so can a rooted device get at the apps contents? Jul 03 21:26:24 brx_: yes, rooted devices are unrestricted Jul 03 21:26:36 do you just need the app itself? Jul 03 21:26:39 or do you need some app data? Jul 03 21:26:43 i thought so Jul 03 21:26:48 if you just need the app itself, you can pull the apk directly. Jul 03 21:26:49 For now, moving forward apps will be encrypted on the device. Jul 03 21:26:55 and i tried grepping at /prc/[pid]..wouldnt let me Jul 03 21:26:59 i dont want to pull the app tbh Jul 03 21:27:08 ive done it that way in the past, i want to try another way Jul 03 21:27:30 brx_: do you have the same key that you used to sign that app? Jul 03 21:27:44 you could always create another app with the same packagename and signature, and have it just move everything in app private storage to the SD card Jul 03 21:27:49 i might Jul 03 21:28:05 ahhh thats a nice idea Jul 03 21:29:11 i have 4 galaxy nexus' on my desk right now Jul 03 21:29:18 hard to keep track of which is which Jul 03 21:29:22 i am your friend Jul 03 21:29:43 birbeck: give one to me, that'll help. Jul 03 21:29:46 I'll give you a latte Jul 03 21:29:55 then you can keep track of 3 phones and 1 latte Jul 03 21:30:43 i hate lattes, i only drink black coffee Jul 03 21:30:54 then I'll give you a coffee :> Jul 03 21:30:56 https://groups.google.com/forum/?fromgroups#!topic/android-building/u0RgVFy6y84 Jul 03 21:31:01 the last two posts there Jul 03 21:31:07 cam, gps, nfc are broken on maguro? Jul 03 21:31:35 yeah, last post is a zinger Jul 03 21:32:06 like im pretty sure my camera works :S Jul 03 21:33:41 canadiancow|work, I just tried that. However, when I click one of the multiple buttons (that were dynamically generated), the action activity is the exact same for each button. I can upload the code if it'll help explain my situation more Jul 03 21:33:52 it will Jul 03 21:35:06 canadiancow|work, here's what I did: https://gist.github.com/3043399 Jul 03 21:35:26 As you can see, I use the variable "subject" to pass the "subject" onto the next activity Jul 03 21:35:32 ah Jul 03 21:35:38 ok remove teh subject field from the class Jul 03 21:35:51 and change subject = cursor... to final String subject = cursor... Jul 03 21:36:11 the onclicklistener was always referencing the field, which would always be whatever it was last set to Jul 03 21:36:30 also if you're not using the tag, dont set it Jul 03 21:38:35 thank you so much, that did it Jul 03 21:38:38 i'll remove the tag Jul 03 21:38:44 i thought i'd need it, but i guess i don't Jul 03 21:38:51 so do you understand the problem there? Jul 03 21:38:54 and why it was always the same subject? Jul 03 21:39:16 I think Jul 03 21:39:18 Is it because... Jul 03 21:39:58 the variable kept changing and when the onClick happened, it would reference the last modification to "subject" because it wasn't final? Jul 03 21:40:08 err Jul 03 21:40:16 :/ Jul 03 21:40:28 so in setup, you set subject = "1", subject = "2", etc, in your loop Jul 03 21:40:39 so before any clicks happened, setup had the value from the last row Jul 03 21:41:06 when you received a click, it checked the value of subject, and then launched the activity Jul 03 21:41:18 but by then, the value was always the same Jul 03 21:41:38 so, by setting it to final... Jul 03 21:41:39 what? Jul 03 21:41:54 its not "by setting it to final", its by making it local to that iteration of the loop Jul 03 21:41:59 "final" has a different purpose Jul 03 21:42:25 by declaring it in the loop, it only exists within that block (as opposed to your original class-level field, which existed as long as the instnace of the class does) Jul 03 21:42:50 and by declaring it final, you're allowed to use it within the anonymous onclicklistener's methods Jul 03 21:43:13 okay Jul 03 21:43:27 that kind of makes sense. I wish i had a more fundamental grasp of programming Jul 03 21:44:51 solution: write more code :) Jul 03 21:45:10 id say the solution is to go to school :P Jul 03 21:47:26 good day Jul 03 21:58:56 is there a way to play sounds in my game using the ndk on android 2.2 devices? Jul 03 21:59:33 seems silly to limit myself to 2.3+ just because I can't play sounds from ndk on older devices Jul 03 21:59:51 I did the hello world tutorial (with slight modification) but the EditText in my app looks different from the one in the tutorial. Mine looks like a html input box with an orange borden when selected. In the screenshots it is blue and ICS like. What defines this? Jul 03 22:02:33 where is fileoutput stream putting my file. lol. Jul 03 22:05:21 Does this look correct? http://snag.gy/0qzkA.jpg Jul 03 22:09:52 FileOutputStream puts it wherever it's told. this is basic Java-language library stuff.... Jul 03 22:12:07 imbusy: < 2.3 is not a very large slice of hte user base at this point, and it's dropping pretty fast Jul 03 22:12:18 25% Jul 03 22:12:30 enough for me Jul 03 22:12:32 http://developer.android.com/about/dashboards/index.html Jul 03 22:12:39 ok Jul 03 22:12:46 but it won't be 25% for six months :) Jul 03 22:12:56 20 then in 6 months Jul 03 22:13:23 and it's a tradeoff on your part vs maintenance complexity, amount of work to develop it, not being able to rely on the HUGE bump in NDK support in GB, etc. Jul 03 22:13:48 ctate: 2.3? Jul 03 22:13:53 at this point i'd hesitate to ship a new app that supported froyo if there were good technical reasons that might suggest 2.3+ Jul 03 22:13:55 I don't care Jul 03 22:14:00 ah Jul 03 22:14:01 I just want it to work on android 2.2 Jul 03 22:14:06 that's fine - i'm not trying to say you're wrong Jul 03 22:14:15 and i'm happy that people do still support older revs Jul 03 22:14:20 majority of phones are 2.2+ right? Jul 03 22:14:21 don't get me wrong on that Jul 03 22:14:33 Technodrome: as he said, 25% of devices are 2.2 or earlier Jul 03 22:14:34 everything is working fine on 2.2 except the audio at the moment Jul 03 22:14:37 look at the link Jul 03 22:14:48 ah ctate Jul 03 22:14:59 this is my first android app I'm working on Jul 03 22:15:06 such an idiot for not getting on it earlier Jul 03 22:15:07 stupid me Jul 03 22:17:07 i have a surfaceview. in its ctor, i am adding a callback to the holder i get from getHolder, but surfaceCreated never seems to get called, although i am sure i am creating and setting the view. am i missing something? i can give more information if that would be helpful. Jul 03 22:17:56 another question: is there a way to swap buffers in opengl es directly from ndk? I'm trying to make a loading screen work, but I can't present it to the user until everything is done loading Jul 03 22:22:44 so... this is giving me a real headache... Jul 03 22:23:11 the linter is going crazy and marking nonsensical stuff and not even keeping up with the state of the code Jul 03 22:27:01 basically, any time i make the mistake of stopping typing for longer than half a second, the linter craps itself Jul 03 22:27:09 and to fix it i have to basically delete the code and rewrite it Jul 03 22:28:29 and on Windows i can't actually force the android linter to update Jul 03 22:28:52 I have problems with MediaPlayer and illegal state and error (1, −18) Jul 03 22:29:06 or actually (1, -10) Jul 03 22:29:25 and (1, 26) Jul 03 22:30:05 I think I found the error codes here https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h Jul 03 22:31:45 Alan: click the lint button above, or clean your project in eclipse Jul 03 22:32:17 Related http://code.google.com/p/android/issues/detail?id=33985 Jul 03 22:33:01 I convert an object to a string, in this case just a 1, now i make a second string with 1 and match them both, but it doesnt work, it always say, that it doesnt match Jul 03 22:33:18 http://pastebin.com/jH8vTjqq Jul 03 22:34:46 sukramTM: you can't compare strings with ==, you have to compare them with .equals(). I'd recommend reading some Java books. Jul 03 22:34:54 and spending some time learning the language Jul 03 22:35:47 just like comparing C strings, == compares whether the pointers refer to the same thing, not whether the contents are identical Jul 03 22:36:11 Ok thx Jul 03 22:38:34 mdwright: thanks Jul 03 22:38:40 nice to know it's not just me going crazy :D Jul 03 22:39:05 oh, so THERE'S the lint button... Jul 03 22:40:47 Lint seems to be a bit broken when it comes to syntax parsing Jul 03 22:41:25 yeah, it really really does Jul 03 22:41:42 i've spent all day trying to convince lint that its errors don't even remotely match what's on the scren Jul 03 22:41:45 *screen Jul 03 22:41:53 it sometimes gives errors but it goes away if you cut code and paste it back Jul 03 22:42:09 ah well, manual linting it is.... Jul 03 22:42:12 Lint has some useful help though Jul 03 22:42:19 yeah, it does Jul 03 22:42:21 hmm...so SlidingDrawer doesn't actually use an Animation? Anyone know if this is correct? Jul 03 22:42:24 that's why i don't want to disable it Jul 03 22:42:32 right, time for sleep... Jul 03 22:42:42 and for tomorrow: working out how to background record video! Jul 03 22:43:04 Arafat might've been murdered Jul 03 22:43:09 (news flash) Jul 03 22:43:18 oops wrong channel Jul 03 22:43:19 ;) Jul 03 22:43:51 luyang: Lint's parsing issues are fixed. See the bug I linked above Jul 03 22:43:57 they'll be out in 20.0.1 Jul 03 22:44:11 so I'm trying to get the duration of a SlidingDrawer's animation... not sure which component of the drawer uses an Animation or if there's just one manually rolled up into the SlidingDrawer itself, anyone know anything about this? Jul 03 22:44:19 nice turnaround time on that though Jul 03 22:44:20 :) Jul 03 22:45:56 mdwright: good to hear! :) Jul 03 23:06:42 Hey guys - can somebody helpme with this problem : http://stackoverflow.com/questions/11297734/why-when-i-call-an-asynctask-from-the-activity-onresume-do-i-not-get-to-see-the Jul 03 23:12:25 well, none of the code links work Jul 03 23:12:49 yeah, why put code on pastebin for a so question ? Jul 03 23:13:09 ctate oh, god, they mustve expired!, NOt cool Jul 03 23:13:17 let me repaste, one second please Jul 03 23:16:00 ok ctate this is my activity : http://pastebin.com/KUsg3Mri Jul 03 23:16:09 and it contains the asynctask Jul 03 23:16:18 pastebin has had some responsivity issues lately Jul 03 23:16:36 what happens is - the progress bar shows, but the publishprogress calls dont ever seem to call onprogressupdate Jul 03 23:19:30 renegadeandy: i don't get how this even *compiles* Jul 03 23:19:46 ReplayListRetrieve rlr = new ReplayListRetrieve(ReplayListActivity.this,mApi); Jul 03 23:19:46 AsyncTask> task = rlr.execute(); Jul 03 23:19:48 augh Jul 03 23:19:59 anyway, ReplayListRetrieve is an AsyncTask Jul 03 23:20:02 yeap Jul 03 23:20:06 but AsyncTask.execute() is 'void' Jul 03 23:20:08 isn't it? Jul 03 23:20:17 dont think so, let me check Jul 03 23:20:41 oh hm Jul 03 23:20:43 no, it returns : AsyncTask> Jul 03 23:20:49 uh Jul 03 23:21:37 AsyncTask does not *have* an execute() method that takes no arguments. Jul 03 23:21:39 like, all of the doInBackground stuff works Jul 03 23:21:56 so the task itself is working Jul 03 23:22:08 the .get all is working too Jul 03 23:22:16 its the publish progress specifically Jul 03 23:22:17 execute returns itself so you can optionally call .get() (which defeats the purpose of AsyncTask!) Jul 03 23:22:54 Jake, thats not true, as you may want to do something and inform user of its progress, like me Jul 03 23:23:01 and you block with .get() and publishprogres Jul 03 23:23:19 false Jul 03 23:23:32 .get() blocks the UI thread hence no updates will be seen Jul 03 23:23:39 omg... Jul 03 23:23:42 maybe thats whats happening Jul 03 23:23:44 let me test Jul 03 23:23:49 yeah it returns 'this' Jul 03 23:24:16 yeah, get() blocks whatever thread you've called it from Jul 03 23:24:26 I can't imagine a reason why you would want it to return 'this' Jul 03 23:24:37 and you're calling it from a lifecycle callback method, which means you're blocking the main thread Jul 03 23:24:43 wow Jul 03 23:24:44 ok Jul 03 23:24:48 this may be the breakthrough i was looking for Jul 03 23:24:48 dont' do that :) Jul 03 23:24:51 testing it now Jul 03 23:25:12 most of the time, if you're using AsyncTask.get(), yor doin it rong Jul 03 23:25:29 build your code to do work in response to triggers Jul 03 23:25:34 not to wait for stuff to happen Jul 03 23:25:36 (if possible) Jul 03 23:25:38 so onPostExecute instead? Jul 03 23:25:44 exactly Jul 03 23:25:46 wow, Jul 03 23:25:47 ! Jul 03 23:26:28 there are a few basic approaches to building multthreaded / asynchronous programs Jul 03 23:26:40 and they can all be useful / powerful / appropriate in various circumstances Jul 03 23:26:47 but that partly depends on what the toolset at hand is designed for Jul 03 23:27:07 Android has very good tools for what i just called "trigger"-based async architectures Jul 03 23:27:44 and is conversely *not* suited to "wait for completion and then proceed" barrier-type architectures, in most cases Jul 03 23:28:45 so definitely wrap your head around the idea that you spin off work, and when that worker thing completes it will post a message/runnable/invoke a callback/whatever in order to set off the next chunk of work using the result Jul 03 23:28:59 completion callbacks and message queues Jul 03 23:29:06 Looper is yor frend! Jul 03 23:30:24 thus endeth the ctate lecture on android app design :) Jul 03 23:30:35 :) Jul 03 23:30:37 (s/lecture/sermon/ ? :) ) Jul 03 23:31:48 preach brother preach ! Jul 03 23:33:22 omg ctate it actually works! Jul 03 23:33:27 you were right! Jul 03 23:33:36 man , that makes me so happy Jul 03 23:33:38 oh thank you so much for the vote of fucking confidence there :) Jul 03 23:33:47 i followed some stupid tutorial... Jul 03 23:33:51 ha ha ha Jul 03 23:33:53 which was missing using it Jul 03 23:33:54 so.. Jul 03 23:34:02 its hard to know whats a good example Jul 03 23:34:03 386 my friend Jul 03 23:34:05 lol!!!!! Jul 03 23:34:07 386? Jul 03 23:34:19 http://xkcd.com/386/ Jul 03 23:34:20 :D Jul 03 23:36:24 lol! Jul 03 23:36:32 ctate it actually works! Jul 03 23:36:32 :D Jul 03 23:36:49 canadiancow|work: s'okay, i already know you're a lost cause ;) Jul 03 23:36:55 its not working until the cow has moo'd. Jul 03 23:37:02 :D Jul 03 23:37:06 moo Jul 03 23:38:30 anyone getting incorrect error flags in eclipse in the newest ADT? I have to clean and then it works itself out. Jul 03 23:38:54 jayd16: problem is fixed in ADT 20.0.1 which is coming "soon" Jul 03 23:39:38 people only use Eclipse because a veil has been pulled over their eyes from seeing the light Jul 03 23:39:44 DO YOU SEE WHAT I DID THERE?!? Jul 03 23:40:30 JakeWhaton: what do you use? Jul 03 23:40:36 jayd16: http://code.google.com/p/android/issues/detail?id=33985 for more info Jul 03 23:40:48 JakeWharton I use it because generally its excellent Jul 03 23:40:48 mdwright: thanks! Jul 03 23:40:51 a magnetic needle and a steady hand Jul 03 23:40:56 lol Jul 03 23:41:14 and when i'm being serious, I use IntelliJ Jul 03 23:41:24 All my code is recycled xkcd comics Jul 03 23:41:41 renegadeandy: unless you've used IntelliJ Jul 03 23:42:12 is it free? Jul 03 23:42:21 there's a free version Jul 03 23:42:28 and the paid version is worth every penny Jul 03 23:42:34 and why is it better than eclipse? Jul 03 23:42:51 last I checked the android tools were better in eclipse. Is that not true anymore? Jul 03 23:43:09 (hm) Jul 03 23:44:12 I saw a mix of eclipse and intellij in the I/O sessions so I'm sure its debated passionately on the google campus Jul 03 23:44:57 its like canon vs nikon, vi vs eclipse, etc Jul 03 23:45:13 just use what you want to use Jul 03 23:45:21 jayd16: not really Jul 03 23:45:23 well can somebody conciselly tell me what they belive is better about intellij Jul 03 23:45:30 jayd16: we just use whatever gets the job done Jul 03 23:45:36 All the cool kids use intellij Jul 03 23:45:56 You wanna be cool, don't you? Jul 03 23:46:02 freudian slip: vi vs emacs, not vi vs eclipse :) Jul 03 23:46:27 renegadeandy: better editor/code completion/refactoring/code analysis Jul 03 23:46:49 g00s: I assume you were being funny with that :) Jul 03 23:46:54 hehe Jul 03 23:47:09 they do call eclipse the emacs of java :) Jul 03 23:47:16 actually, I have one. The merge tool is nicer in intellij Jul 03 23:47:21 by like a lot Jul 03 23:47:22 that too Jul 03 23:47:27 i didn't realize the android plugin worked with intelliJ Jul 03 23:47:32 git support is pretty awesome too Jul 03 23:47:35 s/plugin/sdk Jul 03 23:47:35 tnzr: it doesn't Jul 03 23:47:40 intellij has android support built in Jul 03 23:47:44 tnzr: IntelliJ has its own plugin Jul 03 23:47:48 oh really? Jul 03 23:47:54 I just updated adt/etc/whatever else eclipse wanted to update and afterwards it didn't show the Android stuff as part of the projects - the project properties still had Android 4.0.3 ticked under libraries etc, but it just didn't seem to pick that up. Also all the src folders went to normal folders and generally everything was screwy.. kinda the last straw Jul 03 23:47:57 and the SDK is just command line stuff Jul 03 23:47:57 perhaps it's time I made the switch? :) Jul 03 23:48:08 although work will make me use eclipse no matter what Jul 03 23:48:11 g00s: is that because people learned it are unwilling to change because they think it's the end-all, be-all of editors? Jul 03 23:48:15 sounds like an emacs user... Jul 03 23:48:18 to be honest ADT is better than IntelliJ's aNdroid plugin Jul 03 23:48:20 by far Jul 03 23:48:25 but I cannot use ADT so… :) Jul 03 23:49:12 JakeWharton: its probably because of the second system effect Jul 03 23:49:22 Yeah the new stuff from I/O looked really nice. If you're in to those kind of things like graphical layout editors. Jul 03 23:49:36 How would I listen for the system alarm going off on android? I have an app that plays media, but the system alarm doesn't trigger "onAudioFocusChange" all other media seems to but the alarm doesn't. My client wants the app's audio to pause if the alarm sounds. any tips / direction? Jul 03 23:49:53 I actually use 3 IDEs: IntelliJ, Eclipse and a second Eclipse :p Jul 03 23:50:10 If all you do is write Java and XML and create resources in the context of Android then IntelliJ is far more powerful at understanding the interactions of components across types. Jul 03 23:50:13 romainguy: don't even get me started on the number of instances of eclipse I have... Jul 03 23:50:16 intellij just lookng at the featurs section, has no really different, 'better' features Jul 03 23:50:32 Not to mention vim for a whole bunch of non-Java things. Jul 03 23:50:34 renegadeandy: but each feature just works better :) Jul 03 23:51:18 IntelliJ server deployment is a bit weird so if you have server devs working close to client devs eclipse seems to prevail Jul 03 23:51:18 i see Jul 03 23:51:22 ill try it tomorrow at work! Jul 03 23:53:17 Hey, how do you get an ADK 2.0 can you buy it? Jul 03 23:55:46 anyone know how would I listen for / detect the system alarm going off on android? (it doesn't trigger OnAudioFocusChangeListener) Jul 03 23:57:21 saving jpg with fileoutputstream and no file. any way to trace what is happening? Jul 03 23:57:54 hm maybe i should make the jump to IntelliJ Jul 03 23:58:05 inertia and all that Jul 03 23:58:05 Droido: nothing in the logcat like a permission warning or something? Jul 03 23:58:49 Droido: how are you instantiating the FileOutputStream(), i.e. what File are you giving it as the path to the destination? and where are you looking for the resulting file on disk? Jul 03 23:58:56 pastebin some code :) Jul 03 23:59:09 jayd16: thanks clearing it. it was not up or popping up. Jul 03 23:59:27 @ctate: sounds good need a few minutes Jul 04 00:00:27 jay16: thx it is getting permission denies which may be leading to the java file not found exception. Jul 04 00:00:47 jay16: for the path. I'll post source. Jul 04 00:01:10 i'm thinking this Bloomberg "rumor" about a 7" ipad is perfectly timed Jul 04 00:01:15 Droido: that can be a bad path or you dont have the right android permission Jul 04 00:04:22 permission denial sounds like your'e trying to save to shared storage but haven't declared in your manifest that your app needs to be able to do that Jul 04 00:04:37 ooh, epic G+ post about the N7's screen from dianne. https://plus.google.com/105051985738280261832/posts/6eWwQvFGLV8 Jul 04 00:04:56 * ctate | Some people have commented that the UI on the Nexus 7 isn't a scaled down version of the 10" UI. This is somewhat true. It is also not just the phone UI shown on a larger display. Jul 04 00:04:57 @ctate: thanks I will check how to declare that Jul 04 00:05:23 dianne is a cat ? Jul 04 00:06:11 If she wasn't a cat on the internet, would we be discussion this? Jul 04 00:08:29 Dianne makes awesome posts Jul 04 00:08:40 i wish she would write a book Jul 04 00:09:01 and romain can write the part about building custom rich ui components :) Jul 04 00:09:37 Chet and I want to write http://www.filthyrichclients.com for Android Jul 04 00:09:41 too bad we don't have the time Jul 04 00:09:59 romainguy: yeah, i hope you guys get around to it sometime Jul 04 00:10:27 i think it would be a HUGE benefit to the android community Jul 04 00:10:53 guest author: ctate Jul 04 00:10:58 edited by the cow Jul 04 00:12:14 You don't need to supply bitmaps for every possible density, Android will scale your bitmaps (typically when they are loaded) to match the current density. Jul 04 00:12:19 who was arguing wtih me about that one? Jul 04 00:13:31 Probably someone who doesn't know what they're doing Jul 04 00:14:12 i think it was ctate :P Jul 04 00:14:40 oh shi.. Jul 04 00:15:39 cow: now that you mention it, actually…I have a question on that. Does it save any memory to supply small assets? I guess it doesn't really save anything. Jul 04 00:15:56 you don't want to scale up small assets :| Jul 04 00:16:35 and yes, it will scale them. but that will take some processor time. if it does not have to scale them, that is faster.. it is a tradeoff :) Jul 04 00:17:01 pboos ah ok Jul 04 00:17:13 That you don't need to doesn't mean you shouldn't Jul 04 00:17:20 hi guys :-) quick question, does the web view use exactly the same rendering engine as the native browser, and if does a web view in 4.1 use chrome ? Jul 04 00:17:36 i find that while you can provide a high-res image and scale that down, you really shouldn't. Jul 04 00:17:46 most interpolation schemes don't do it well Jul 04 00:17:48 canadiancow: it's a tradeoff! Jul 04 00:17:50 quality suffers Jul 04 00:17:57 extra ram vs rendering speed Jul 04 00:17:59 and quality Jul 04 00:18:19 plus, when you get really small, details get lost, and it becomes worthwhile to just redesign the asset to accomodate the smaller size Jul 04 00:18:31 quality especially if you're upscaling, which is pretty much guaranteed to look like ass Jul 04 00:18:51 jameschurchman: they answered that at IO. They said that in 4.1 it will use the engine it ships with and wont be updated, but the chrome browser will be updated Jul 04 00:20:41 i dont understand that Jul 04 00:20:49 i talked to someone on the browser team who said something different :S Jul 04 00:20:50 does anyone remember the NFC session from I/O 2011? Jul 04 00:20:53 jayd16: thanks for your reply .. ok do you mean that 4.1 will use chrome in a web view but you can manually update chrome app to a newer version of chrome Jul 04 00:20:59 how they showed off Fruit Ninja and multiplayer? Jul 04 00:21:21 or that in 4.1 web view is some random older webkit non chrome thing and that's that Jul 04 00:21:24 if I do ImageView.setImageResource() on the main thread i tend to make sure I provided the right densities … i wonder if my reasoning is faulty here Jul 04 00:21:27 and how if a user tried to start a game with another user via NFC and they didn't have the app, it would open up the Play Store so they could download it? Jul 04 00:21:32 anyone know how that's done? Jul 04 00:21:41 jameschurchman: my understanding is that 4.1 will be chrome but the chrome app will be separate and updatedable Jul 04 00:21:44 Does the Play Store have a list of NFC tags associated with each app? Jul 04 00:22:02 g00s: How is doing it in code any different from doing it in xml Jul 04 00:22:26 ok that's cool if its chrome in the web view even if not the very latest version ! Jul 04 00:22:37 makes a difference to my app Jul 04 00:22:43 WebView in 4.1 is not yet Chrome, i believe. They will probably be unified at some point, but of course it's a bit complicated for various reasons including licensing etc. Jul 04 00:22:52 why does it make a difference? Jul 04 00:22:57 HorizonXp: they have a url, which you can put into NFC tags so technically yes Jul 04 00:22:59 they're both webkit, for example Jul 04 00:23:05 What is the best way to parse data from the web? json, xml etc? Jul 04 00:23:09 last try... does anyone know of a way to detect when the alarm goes off? (it does not trigger the on audio focus change listener) .. my app got rejected from the samsung app store because the audio doesn't pause automatically if the users alarm goes off. I'm using audio focus and all other apps / media triggers the audio focus listener but the alarm doesn't seem to. Jul 04 00:23:09 SimonVT: no, i didn't mean that … setImageResource does the image reading and decoding on the main thread. it seems like its extra bad if it also has to do the scaling? this is not xml vs programattic Jul 04 00:23:20 @ctate: /sdcard is external correct? Jul 04 00:23:21 (also Chrome isn't quite up to Android Browser's performance yet, but it's getting there) Jul 04 00:23:29 well the pre chrome web browsers are not fantastic on android Jul 04 00:23:35 jayd16: you mean, it's putting a URL-containing NDEF record in the NDEF message? Jul 04 00:23:38 Droido: maybe. you can't rely on /sdcard as the path. Use the APIs to look up its location. Jul 04 00:23:43 jayd16: and that URL points to the Play Store? Jul 04 00:24:08 jameschurchman: not fantastic in what way? curious what differences you're seeing. Jul 04 00:24:24 g00s: I just mean, if you use a drawable in xml, it will also load on the main thread Jul 04 00:24:25 well its much more iOS to android really .. even 4.0 Jul 04 00:24:38 HorizonXP: I actually don't know for sure but thats my guess Jul 04 00:24:45 SimonVT: oh, i see what you mean. Jul 04 00:24:47 jameschurchman: i don't knwo what that even means; there's no iOS anything Jul 04 00:24:49 I would really love to try out the new Google Mobile Analytics. Too bad I was not at IO :(. Guess for now I have to stick with other stuff for my app. Jul 04 00:24:52 jayd16: fair enough Jul 04 00:24:57 things like contenteditable sections are sluggish on android etc.. i have not tested crome Jul 04 00:24:58 would love to see documentation on it Jul 04 00:25:04 not sure what to search for Jul 04 00:25:13 Or does anyone who went to IO have an access to it, that I could use? ;-) Jul 04 00:25:34 oh, the provisional HTML5 stuff? god, who knows; none of that shit is standard yet anyway Jul 04 00:25:37 Like sharing an account with me? I do not care if you look at my statistics. :) Jul 04 00:26:01 but its might well be a lot better Jul 04 00:26:19 is latitude working for anyone in jellybean? Jul 04 00:26:30 that is a pretty interesting post on the nexus 7's screen. Interestingly, there's a rom for the Galaxy Note (5.3", 1280x800) which allows users to 'set' the dpi per-app, to have some apps run in a tablet UI mode, some phone (ugh, but users like it) Jul 04 00:26:32 do note that the Android browser is better in JB than it is in ICS [which was better than in HC, which was better than GB, etc] Jul 04 00:26:40 http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Is this internal storage not accessible through the myfiles icon? If a file is saved this way does it go to a default folder in the data folder for your app? or does it depend on dependencies? Jul 04 00:26:56 but thanks guys that did really answer my question.. the web view is not the same as chrome app which is a shame but one day maybe :-) Jul 04 00:27:06 wabz: yeah. one thing you notice with that is that neither the straight large-tablet UI nor the standard-phone UI are ideal on a 7" device Jul 04 00:27:27 jameschurchman: chrome can be updated independently of the platform Jul 04 00:27:52 jameschurchman: they both use WebKit and they'll both use the same versions at some point but Chrome will always be iterated on faster and therefore have better rendering than the platform. Jul 04 00:28:16 ctate: oh ok cool, well if the browser view is better on JB then maybe it will run more smoothly with out being chrome .. Jul 04 00:28:27 listen carefully: Jul 04 00:28:35 Chrome on Android is slower than Android Browser. Jul 04 00:28:52 the differences are pretty small now in most ways [though not all], but that is still the case. Jul 04 00:29:36 [and Chrome on desktop does some things that are really inefficient and slow, and they get away with it because modern desktop hardware is massively overpowered :) ] Jul 04 00:29:43 What is the best way to parse data from the web? json, xml etc? Jul 04 00:29:49 yeah but JS speed is not the only quality test ;-) Jul 04 00:30:08 i wasn't talkign about JS speed; chrome is about as fast as android browser on that front Jul 04 00:30:14 it's the other stuff it's slow at, liek scrolling Jul 04 00:30:20 and drawing Jul 04 00:30:35 the actual *Android*ish stuff. Jul 04 00:30:37 oh really ? i see Jul 04 00:30:49 did not know that Jul 04 00:30:55 i mean, Android browser has used the V8 javascript engine and the Chrome http stack and so on for a long time now Jul 04 00:31:25 so does JB ship with both browsers then ? Jul 04 00:31:35 No, it depends on the device Jul 04 00:31:59 File not writing. Got external write permission in manifest. http://pastebin.com/s2FZLDLW Jul 04 00:32:23 jameschurchman: it ships with chrome, upgrades will get both Jul 04 00:32:32 Does android have a destop page . Like Gnome or KDE Jul 04 00:32:41 oh dear: new FileOutputStream("/sdcard/collage.jpg"); Jul 04 00:32:58 JakeWharton: The Nexus 7 ships with Chrome, GNexus still has Android Browser Jul 04 00:33:02 i did tell you not to rely on "/sdcard" as a valid path, and to use the APIs for getting the path to the shared storage Jul 04 00:33:03 so it's per device Jul 04 00:33:09 Droido: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Jul 04 00:33:16 mdwright: the GNex was an upgrade Jul 04 00:33:24 @ctate: yes a tip would help I put in the comments what I got so far on that Jul 04 00:33:35 Droido: read the link SimonVT just posted Jul 04 00:33:37 JakeWharton: right i see, so on the nexus 7 will there be any way to get the "normal" browser or not ? Jul 04 00:33:45 Chrome is the normal browser Jul 04 00:33:49 jameschurchman: no, you can't get the Android Browser on the N7 Jul 04 00:34:14 unfortunately :( Jul 04 00:34:21 mdwright: i see v interesting ! Jul 04 00:34:22 s/un// Jul 04 00:34:57 mdwright: but the web view will still be the android browser Jul 04 00:35:40 @ctate: do you guys find that easy to read- it just takes 1 min and away you go coding along? Jul 04 00:35:42 mdwright: so an app embedding only a web view ( + address bar etc.. ) would effectively give you the "normal" browser back again Jul 04 00:36:17 Droido: You wont learn the api in 1 minute Jul 04 00:36:18 Droido: if you haven't sat down and read the "fundamentals" discussions about Android programming, you need to stop writing code and go do that first. Jul 04 00:36:46 it helps *enormously* to get your head straight with the Android app model and so on up front, and then think about APIs with that as background Jul 04 00:37:31 also recommended to find & work through some basic tutorial info, maybe get hold of Reto Meier's Android programming book for a second view, etc. Jul 04 00:37:39 I've watched hours of videos and look over it but my background which is an api that handles classes like activities interferes. The only way I know how to understand how to code is knowing how the machine is handling it not so I have probs :) Jul 04 00:37:59 can't even make sense lol reading... Jul 04 00:40:43 Will I get pulled over if I try new FileOutputStream(getResources(), R.drawable.outimage); :) Jul 04 00:40:59 is that even valid syntax? Jul 04 00:41:28 it won't work Jul 04 00:41:29 guess not Jul 04 00:41:45 to read images from resources, there are Resources and Bitmap (and Asset Manager) APIs that do what you want Jul 04 00:41:51 confused it with bitmapfactory.decoderesource parameters Jul 04 00:41:52 because they are not distinct files on disk Jul 04 00:42:02 right, that is the one you want to look at first :) Jul 04 00:42:17 btw, re the N7 and screen density and so on: Jul 04 00:42:18 night all, thanks again for the support ctate Jul 04 00:42:19 * ctate | To underscore Dianne’s point about not needing tvdpi-specific artwork: Many of Nexus 7’s platform assets are hdpi images, downscaled at load time. You can't tell! They look great. Jul 04 00:42:27 * g00s just learned about intelliJ MPS, seems like xtext ? Jul 04 00:42:34 that from a guy who did a lot of the nuts-and-bolts of the UI on N7 Jul 04 00:42:56 but note that they are *downscaled*, not upscaled :) Jul 04 00:43:05 so just include xhdpi Jul 04 00:43:07 and nothing else :) Jul 04 00:43:13 unless it looks shitty, in which case, just those images! Jul 04 00:43:20 then small apk, and no need for multi-apk :) Jul 04 00:43:44 * ctate | In fact, there was *one* tvdpi asset created for the open source platform in Jelly Bean, which is is the background of the notification tray. Jul 04 00:44:04 basically everythign else is an hdpi asset, scaled down Jul 04 00:44:45 trying File file = new File(getExternalFilesDir(null), "output.jpg"); thanks for the tips on the adventure... Jul 04 00:46:23 that will typicalliy put the file somewhere like /sdcard/Android/com.droido.app.name/output.jpg Jul 04 00:47:41 still not getting it and that one log screen isn't coming up but can't seem to find the link for it under window->show view. does it not exist when there is no warnings? Jul 04 00:49:39 @ctate: manifest is looking fine. http://pastebin.com/Lma5DuiW Jul 04 00:51:10 Nope Jul 04 00:51:22 And it's something like android.permission.WRITE_blahblah Jul 04 00:51:37 not saving jpg how to debug? http://pastebin.com/U6KLvFzG Jul 04 00:52:01 Jul 04 00:52:08 SimonVT: checking... oh thanks. Jul 04 00:53:52 SimonVT++ Jul 04 00:54:34 Thanks first time a folder for my app showed up! Jul 04 00:54:45 @ctate+=good luck Jul 04 00:55:43 The log which would be telling about a file permission problem is nowhhere to be seen. Hotkey? Jul 04 00:57:31 adb logcat Jul 04 00:57:54 @ctate: the fundamentals are not laid out in a way which makes them easy to connect in visual space. It is great for verbal types. reading spec after spec builds a cloud for me not a picture. career is ruined currently from framework freeze. Jul 04 00:58:25 thanks for the help I need a rest :) Jul 04 00:58:31 new IntelliJ collapses anonymous classes to looks like closures Jul 04 01:00:03 JakeWharton: is the collapsed representation something like java 8 closure syntax, or something else ? Jul 04 01:00:25 i haven't seen it yet Jul 04 01:00:39 .executeDelayed(() -> { callback.call(data); }, delay); Jul 04 01:00:45 is what's shown in collapsed state Jul 04 01:00:55 cool Jul 04 01:01:14 and it's an anonymous Runnable in real java Jul 04 01:04:39 can someone suggest a tutorial for creating an android app using php/mysql backend that DOESNT throw a NetworkMainThreadException? i've been trying to make it work for the last 40 hours and i'm about to throw my computer out the window... Jul 04 01:05:20 jrockjiggz: your back end has nothing to so with networking on the main thread Jul 04 01:05:23 I dont think throwing a ComputerOutWindow Exception is going to help you Jul 04 01:05:36 Yeah, wouldn't that be as simple as just making a new thread for your networking operations? Jul 04 01:05:53 g00s: i'm trying to get data as json.. Jul 04 01:06:10 Uh yeah, don't do networking on the main thread.. Use another thread Jul 04 01:07:54 what would this error mean? "package com.dygmm.library; Jul 04 01:07:54 import java.io.InputStream; Jul 04 01:07:54 import java.net.HttpURLConnection; Jul 04 01:07:54 import java.net.URL; Jul 04 01:07:54 import java.util.ArrayList; Jul 04 01:08:17 wow i'm sorry Jul 04 01:08:39 error: The method execute(String...) in the type AsyncTask>> is not applicable for the arguments (List, String) Jul 04 01:10:06 then when i try to use new JsonAdapter, i'm giving: JsonAdapter cannot be resolved to a type Jul 04 01:10:57 It means you need to read some basic java tutorials Jul 04 01:13:22 yea.. thanks Jul 04 01:22:09 do fragments need to be the same size as the viewpager they're in or can they be smaller? In the PlayStore it looks like its using a view pager, and the categories fragment only takes up half the screen (on a tablet anyway). How do they do that? Jul 04 01:30:22 That's just a listview Jul 04 01:30:45 And just because the parent viewgroup in your fragment is match_parent, doesn't mean its child views need to fill it Jul 04 01:31:26 That said, I have no idea what the answer to your question is Jul 04 01:32:59 On a tablet, when you page over to categories it only takes up half the screen. The other half is part of the featured Fragment/View. Jul 04 01:33:18 On a phone it takes up the full screen so its hard to explain if thats all you have in front of you Jul 04 01:34:06 Okay, well Jul 04 01:34:22 Last time I checked, it's not really a viewpager Jul 04 01:34:38 It's kinda like a viewpager, just not ViewPager Jul 04 01:34:46 They do things a bit differently Jul 04 01:34:55 Its a "ViewPager", imagine me doing the bunny ear thing with my fingers when I say that Jul 04 01:35:36 hrmm, so you don't think ViewPager can do this? Jul 04 01:35:38 and a view pager is just a view group that scrolls Jul 04 01:35:44 and lazily creates items Jul 04 01:36:39 It sounds like you want 2 fragments on 1 page Jul 04 01:36:45 viewpager doesn't support that Jul 04 01:37:22 you could use a custom pager adapter that inflated a layout that contained two fragments! Jul 04 01:37:37 but don't do that Jul 04 01:37:47 unless you really, really know what you're doing Jul 04 01:38:09 JakeWharton, I have a really strange issue where two of my activities have functioning action bars and two don't. I've set the theme in the xml and am at quite a loss.... here's my xml: http://pastebin.com/00rgmsBK do you hany any ideas? tips? debugging vectors ? Jul 04 01:38:33 configChanges="orientation" is not supported by ABS Jul 04 01:38:45 Well I guess what I really want is for it to handle pages that are thinner than the ViewPager…..but I guess what I REALLY want an easy way to implement a side panel that you can swipe to. Jul 04 01:38:47 it's also strongly discouraged by Google Jul 04 01:39:04 jayd16: there is no easy way Jul 04 01:39:49 I liked when I was fresh out of college and my questions had answers =/ Jul 04 01:39:58 thanks guys Jul 04 01:40:01 either a custom view group your write or grab ViewPager's source and special case your behavior in Jul 04 01:41:09 JakeWharton: so the configChanges="orientiation" is what's causing it to not display ? Jul 04 01:43:25 possibly Jul 04 01:43:40 are you also extending the correct base activity? Jul 04 01:51:04 JakeWharton: extends SherlockActivity Jul 04 01:51:41 I'm not really sure i understand what the alternative configChanges is... just different xml views in the port and land layout folders ? Jul 04 01:52:24 you can use the same view Jul 04 01:52:33 it just will destroy and recreate your activity on rotation Jul 04 01:53:19 what if you don't want your activity restarted on rotation ? Jul 04 01:53:54 Then you add configChanges="orientation" Jul 04 01:55:24 which isn't ... well respected? Jul 04 01:55:46 I believe recent Android versions also resize on orientation change Jul 04 01:57:15 It's just hardly ever needed Jul 04 01:57:41 You should already be saving all your state, since orientation changes are not the only think that could kill your activity Jul 04 02:02:03 help with this question please http://stackoverflow.com/questions/11303314/expandablelistview-is-showing-indicator-for-groups-with-no-child Jul 04 02:03:34 leslie: that is correct Jul 04 02:04:43 what does "@+id/text1" do Jul 04 02:06:08 SimonVT: can you say more about saving state ? how? Jul 04 02:09:06 look up Activity.onSaveInstanceState Jul 04 02:09:26 jcromartie: creates a new ID to reference the view with in code Jul 04 02:09:38 more specifically though Jul 04 02:09:53 I know I can then access the ID with R.id.text1 Jul 04 02:10:14 that is quite literally all it does Jul 04 02:10:22 ensures that a reference exists in the R.id class Jul 04 02:14:31 damn im up early how did that happen Jul 04 02:14:35 JakeWharton, wanna grab lunch th or f if you're gonna be around? Jul 04 02:14:54 JakeWharton, since I didn't get to see anyone at i/o :-/ Jul 04 02:15:27 anyone can help me with my question? Jul 04 02:15:42 and an app i worked on just got well into 100k dls after like a week! Jul 04 02:16:12 JakeWharton: I removed the configChanges:Orientation and it's still not displaying in some activities any other ideas? Jul 04 02:20:12 Hi Jul 04 02:20:23 so, more specifically, what do the constituent parts mean? I assume the parts are "@", "+id", and "/(my id)" here. Jul 04 02:20:32 what does @ mean by itself Jul 04 02:22:18 @ means it's a reference, + creates a new instance of the type, "id" is the type, "/" is just a separator, and everything else is the name Jul 04 02:24:17 jcromartie, you may check this: http://developer.android.com/guide/topics/resources/accessing-resources.html#ResourcesFromXml Jul 04 02:24:38 thanks, that's the sort of thing I'm looking for Jul 04 02:24:45 pfn_: not sure if i'll be in town or not Jul 04 02:24:54 pfn_: i'll know by tomorrow afternoon Jul 04 02:25:55 I'm trying to set the groupIndicator via a selector.xml file, but when all the rows are collapsed, it removes all indicators, even for those with children. Jul 04 02:27:56 I have a layout resource called main.xml Jul 04 02:28:08 JakeWharton: I removed the configChanges:Orientation flag and it's still not displaying in some activities any other ideas? Jul 04 02:28:47 I define a TextView like this Jul 04 02:29:59 and I try to reference this text view using (TextView) findViewById(android.R.id.content) Jul 04 02:30:39 But it causes an Exception Jul 04 02:31:08 07-04 10:30:50.133: E/AndroidRuntime(16520): Caused by: java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.TextView Jul 04 02:31:28 Does anyone know why? Jul 04 02:33:32 android.R.id.content references a FrameLayout? Jul 04 02:33:58 Doesn't it just an id resource? Jul 04 02:34:10 Isn't it just an id resource? Jul 04 02:39:12 JakeWharton, k Jul 04 02:45:28 hello everyone, can anyone please explain what is with multiple image folders Jul 04 02:45:33 xdpi, hdpi, mdpi? Jul 04 02:48:28 those are for devices for those sizes Jul 04 02:48:41 Android will be smart and pick the appropriate image resource for its screen size Jul 04 02:52:06 anyone tried Piccollage on android Jul 04 02:52:10 nice app :) Jul 04 02:53:32 dont suppose anyone knows a good site to get android work from at sensible prices Jul 04 02:57:46 pfn_: i'll let you know Jul 04 02:57:52 might be flying across 'MERICA Jul 04 02:58:37 DO I need special permissions to start/kill android process Jul 04 02:59:30 yes Jul 04 02:59:42 thankfully Jul 04 02:59:52 lol Jul 04 02:59:57 * Jug6ernaut thanks google **** ENDING LOGGING AT Wed Jul 04 02:59:58 2012