**** BEGIN LOGGING AT Thu Feb 16 02:59:57 2012 Feb 16 03:14:35 it's always a bad sign when googling for help on a topic finds nothing but your own code :-( Feb 16 03:15:33 heh Feb 16 03:15:36 lol Feb 16 03:20:24 :) "oh look here's someone having the same issue that I am....oh wait, that's also me." Feb 16 03:29:17 i was hoping to store a bunch of ints in a preference, using split("|") and combining them and such Feb 16 03:29:40 but "".split("|") gives 1 result for some reason Feb 16 03:30:50 "".split("") is a regexp Feb 16 03:31:27 so you're splitting on "empty string" or "empty string" Feb 16 03:32:04 and java's split returns empty elements Feb 16 03:32:58 "foo".split("o") == {"f", ""} Feb 16 03:33:21 yeh i guess i just didnt understand what was happening Feb 16 03:33:33 try "\|" Feb 16 03:33:40 er, "\\|" Feb 16 03:34:33 actually i went back to a little db, saved me a bunch of hassle going through lists Feb 16 03:34:43 but now i understand this a bit better so cheers for that Feb 16 03:35:06 Anyone do much with currency symbols? Feb 16 03:35:23 Many less common ones don't render (no glyphs in the default font?) Feb 16 03:41:46 p_l : Well, profiling has a somewhat intriguing result.... Feb 16 03:42:39 1.) there's not an appreciable difference detectable by profiling, i.e., seeing the same times/structure before/after triggering the problem. Feb 16 03:43:10 2.) (the interesting bit) the performance of the app AFTER the failure is equivalent to the performance of the app when it is being profiled. :) Feb 16 03:43:56 (This is perception of course) Feb 16 03:44:18 heh Feb 16 03:44:37 to get a phone number, is some extra permission needed? Feb 16 03:44:54 users phone number Feb 16 03:45:38 I pass an extra in an Intent that gets handled by an activity. how can I get rid of that extra after handling it? the problem is after rotation it gets redelivered Feb 16 03:46:50 hei Feb 16 03:47:01 can you give an opacity to a background color of a textview? Feb 16 03:47:12 hkhalid yes Feb 16 03:47:36 just setBackgroundColor(0xAARRGGBB) Feb 16 03:48:37 * hkhalid gives tliebeck biryani to thank him Feb 16 03:48:46 hi all. wondering if it's possible to create an intent such that it gets trigger whenever any app is open? Feb 16 03:49:10 wanna use it to update recent open app in a widget Feb 16 03:50:41 Not sure but if you don't need immediate notification, you might be able to get it out of ActivityManager.getRecentTasks() Feb 16 03:52:22 yep... that's how it is currently being done, with polling, but isn't very elegant I suppose :) Feb 16 03:52:39 can I remove an extra that was passed in an Intent? what about to a Fragment? Feb 16 03:53:06 i guess you could overwrite it Feb 16 03:53:17 pass null or sth Feb 16 03:55:40 mTelephonyMgr.getLine1Number() doesn't return my phone number. any ideas? the permission is set Feb 16 03:55:54 tried this http://www.androidsnippets.com/get-my-phone-number Feb 16 03:58:29 never mind. doesn't work for my sim card, I guess. Feb 16 03:58:38 shows unknown also in the system settings. Feb 16 03:59:22 because it's a widget showing recent apps, ActivityManager.getRecentTasks() would be needed either when app is open or maybe home/widget is shown... if polling isn't used Feb 16 04:01:00 but I can't find any good intent to use to trigger the update... Any idea is apreciated :) Feb 16 04:05:11 gnight Feb 16 04:05:14 abe - just call the intent in your app's main oncreate no? Feb 16 04:06:07 std0s: but I want it to be triggered when all other apps are started... Feb 16 04:06:30 so the widget could be updated to show all those recent apps Feb 16 04:06:49 sounds more like a broadcast listener then Feb 16 04:07:45 wow so it's possible! mind explaining a bit more on which direction I should dig into pls :-) Feb 16 04:10:23 I expect the main launcher app sends some broadcasts - look upwhich ones will help you and then use them in your class which extends broadcast receiver Feb 16 04:10:42 Intellij INterface blowsss, wow Feb 16 04:11:54 std0s: ok I guess this is clear. but would that imply that ppl using other launcher apart from the stock would have to be taken care of separately? Feb 16 04:16:14 I' assuming thats apps have a launch intent - maybe that would do the trick Feb 16 04:17:31 thanks std0s :) I am still not too sure about it, but the big picture is here I guess... ;-) Feb 16 04:18:35 read up on the process fundamentals - theres probaly an intent sent by each app as it lunches Feb 16 04:18:48 sweet :) Feb 16 04:27:10 contactscontract.wtf Feb 16 04:40:33 contactscontract - can someone point me in the right direction? Feb 16 04:45:40 my app has a bunch of activities but whenever i click the icon in the launcher, it always goes to the 'main' activity. my other apps just remember where they were.. i have no idea what i did differently Feb 16 04:46:52 does you main handle resumee gracefully? Feb 16 04:47:19 what do you mena? Feb 16 04:52:23 why is it so hard for apps to accept files AND text when using ACTION_SEND Feb 16 04:52:31 so far i've only seen gmail app do it Feb 16 04:56:16 has anyone backported GridLayout Feb 16 04:56:24 to like... froyo Feb 16 04:57:31 think so Feb 16 04:59:59 xorgate, skillswap - can I make the contactscontract intent test for an existing entry b4 ading in 2.2 gapis Feb 16 05:00:30 no clue Feb 16 05:01:30 xorgate, how long have you been droiding? Feb 16 05:02:30 bout 8 months Feb 16 05:04:29 fair enough - how do you like it? Feb 16 05:08:52 i enjoy it very much Feb 16 05:09:11 had a phase where i didnt like coding so much.. android made it fun again Feb 16 05:09:25 Did you guys know/do any java before learning Android? Feb 16 05:09:26 jljp;ojp' Feb 16 05:09:36 Did you guys know/do any java before learning Android? Feb 16 05:09:48 not me Feb 16 05:10:17 Me either. I think it would have been very quick to learn with prev java exp Feb 16 05:10:34 so what did u learn ? Feb 16 05:10:56 android is not java ???? Feb 16 05:11:02 Similar enough to .NET/c# to be fast enough though Feb 16 05:11:18 Syntax-wise it is. Feb 16 05:11:18 what do i type in google ? Feb 16 05:11:27 .nte or c# ? Feb 16 05:11:31 i want to learn android Feb 16 05:11:52 so enter 'learn android development' Feb 16 05:12:11 There is a metrix fuckload of reasonable tutorials Feb 16 05:13:15 but i cant starre n read on screen all time Feb 16 05:13:30 what prog language book to buy Feb 16 05:13:51 books become outdated before you even get them home. Feb 16 05:13:53 web is better Feb 16 05:14:03 bad for eys Feb 16 05:14:10 and headache Feb 16 05:14:20 thinking in java Feb 16 05:14:24 and java concurrency in practice Feb 16 05:14:25 then maybe looking at code aint for you :0 Feb 16 05:14:25 They are good for the basics, and algorithms, but the Android platform changes relatively quickly Feb 16 05:14:29 are both good books for the android programmer Feb 16 05:14:43 they don't cover any android specifics Feb 16 05:15:42 Also. mobile device programming is *hard* compared to desktop development... Not a good place to start with general programming skills maybe? Feb 16 05:16:09 i thought mobile was small n easir Feb 16 05:16:13 easier Feb 16 05:16:13 I don't know about hard, it's not straightforward without programming skills Feb 16 05:16:16 it's not Feb 16 05:16:26 it's a lot easier to write hello world on a computer than on any mobile platform Feb 16 05:16:31 dfo, and keep it in channel Feb 16 05:16:36 unless you want paid tutoring :p Feb 16 05:16:57 $2 ? Feb 16 05:17:03 per week Feb 16 05:17:05 I don't live in a 3rd world country Feb 16 05:17:06 ? Feb 16 05:17:26 I mean to create responsive, quaality applications, is more difficult for mobile (in general), compared to desktop apps. Feb 16 05:17:28 $2x100 per hour maybe Feb 16 05:17:38 satori99, that's not true, look at all the terrible java swing apps Feb 16 05:17:43 look on the java resources Feb 16 05:18:01 i just want to make 20 butons, some numbers with calculation on clicking/touching Feb 16 05:18:03 android is java Feb 16 05:18:30 I have never used java outside of Android. Managed to avoind it for a decade or so. Feb 16 05:18:36 dfo, it's a good idea to start off with something for the desktop, get used to how UI programming works Feb 16 05:18:50 that will waste lot of time Feb 16 05:18:50 * pfn has been a java developer for >10 years Feb 16 05:18:57 and now that I'm working on android, I don't even use java ;-) Feb 16 05:19:02 i directly want to learn android Feb 16 05:19:11 dfo, you should learn java well, first Feb 16 05:19:19 dfo, get the books thinking in java and java concurrency in practice Feb 16 05:19:44 TIJ 3e is free Feb 16 05:19:48 and jcip... go to a library Feb 16 05:21:33 Grokking the Android libraries and lifecycle stuff was the steepest learning curve for me. Feb 16 05:21:52 what r libraries Feb 16 05:22:19 dfo, it's not a waste of time to learn problem solving skills and general concepts first Feb 16 05:22:42 learning java UI development will segue directly into android in a very straightforward fashion Feb 16 05:23:33 ^ true. Many tutorials will assume you know why.when to use a linked list vs a hashtable. You need to learn the basics of software creation first Feb 16 05:23:48 i meant i dont have time Feb 16 05:24:04 i want to make some android app/game in a week Feb 16 05:24:12 not gonna happen Feb 16 05:24:33 its easy - i copy someone's source code Feb 16 05:24:52 i just wil need to explain outline Feb 16 05:25:23 so just very basic knowlede and few high tech words Feb 16 05:25:27 dfo: you doing this for homework or something? Feb 16 05:25:31 sounds like homework Feb 16 05:25:37 * pfn loses interest Feb 16 05:26:00 dfo: stealing someone else's code and presenting it as your own can get you kicked out of most schools. :) Feb 16 05:26:09 s/can/will Feb 16 05:26:12 if you are caught Feb 16 05:26:17 no i got 2 android phones and emulators and tablet Feb 16 05:26:43 pfn: even the dinky local community college uses a thing to check for plagorism Feb 16 05:26:52 good for them Feb 16 05:27:23 didnt one off the us ivy league start a free online course recently? Feb 16 05:27:59 why i need to learn all that libraries , classes , java , trash when i just want to create few buttons with hyperlinks as in html Feb 16 05:28:39 just want to know the commands n syntax to create buttons in grid and define hyperlinks to each Feb 16 05:29:19 and the smooth scroll thing on touching screen Feb 16 05:29:35 and 3D buttons Feb 16 05:29:37 dfo, d.android.com Feb 16 05:29:39 go read Feb 16 05:29:45 that's all you need to build an android app Feb 16 05:30:21 dfo just do some tutorials and you'll learn as you go Feb 16 05:31:36 Find a tutorial/sample code that is aas close as possible to what you want and massage it till it works. Feb 16 05:31:52 You dont need to understand shit, to makee that happen. Feb 16 05:32:04 I would like to know how to scroll to paritcular item in list view? I realized that there is a scrollTo method in the view, but I want to scroll to last item so that the last item appears at the top. How can I do that? Feb 16 05:32:11 dfo, why noy make a web page? Feb 16 05:32:14 *not Feb 16 05:32:31 edwinkcw, you can't scroll past the end... Feb 16 05:32:40 html pages r 5th grade projects ., Feb 16 05:32:40 edwinkcw, so the last item will always be on the bottom Feb 16 05:33:00 dfo: and putting link buttons on a grid aren't? :) Feb 16 05:33:04 pfn: what if I want to make the last item appears at the top? Feb 16 05:33:26 edwinkcw, that's practically the first item then... Feb 16 05:33:39 you mean a list in reverse order? Feb 16 05:33:47 or you mean having empty space beneath the last Feb 16 05:34:01 pfn: I want to implement a list view that when pressing a item in the list, it will scroll to that item and the item appears at the top of the screen Feb 16 05:34:06 edwinkcw: Only possible if you custom draw your own view/s. Not possible with a regular listview. Feb 16 05:34:16 pfn: yes, empty space Feb 16 05:34:28 satori99: umm, how about scrollview? Feb 16 05:34:48 where to find such a source code . to create grid buttons Feb 16 05:34:54 edwinkcw, you just need to pad the last item in the list enough to fill the screen Feb 16 05:35:08 satori99: I am thinking put lots of linear layout inside a scrollview to simulate list view...although it is not that memory efficient as list view Feb 16 05:35:12 edwinkcw, can you not just call a method on the list when the trigger occurs? Feb 16 05:35:22 edwinkcw, then use setSelection Feb 16 05:35:51 or this for gingerbread and up maybe? http://developer.android.com/reference/android/widget/OverScroller.html Feb 16 05:35:52 std0s: sorry, I don't understand what you mean.. Feb 16 05:36:06 setSelection will scroll so that item is at the top (but remember the last items will not scroll off the bottom without a padding item in the last position) Feb 16 05:36:44 now what tools r needed to compile .java files to android executables Feb 16 05:36:59 .txt/.java Feb 16 05:37:29 dfo, you're not going to learn android in an hour, nor are we willing to answer such very basic questions. You need to learn Java first. Feb 16 05:37:38 mrenouf: yes, there is a problem for the last (few) items. Feb 16 05:37:52 dfo: you won't get anywhere without knowing basics of java Feb 16 05:38:03 i know basic java Feb 16 05:38:07 and c++ Feb 16 05:38:14 satori99: oh, I didn't realize that there is such widget. Feb 16 05:38:14 dfo, and you dont know how to compile? Feb 16 05:38:27 and c and BASIC and QBASIC and FORTRAN and PASCAL Feb 16 05:38:31 no Feb 16 05:38:36 satori99: but it is funny that it doesn't inherit from view Feb 16 05:38:39 Is it possible to include in a jar some resources like images that are referenced to R in the current project ? I want to move some common resources that are used in 2 different projects (copied over in both projects) into a library jar and I wonder if that jar can have resources itself, anyone ? Feb 16 05:38:41 you know none of that Feb 16 05:38:44 stop lying Feb 16 05:38:53 only c++ has the direct F9 button to compile to .exe Feb 16 05:39:10 troll. thought so Feb 16 05:39:13 jar is android ? Feb 16 05:39:16 edwinkcw, just setFooterView() with something that is tall enough to fill your screen Feb 16 05:39:20 jar was j2me Feb 16 05:39:51 sorry, addFooterView Feb 16 05:40:44 i wrote this code " class calc { public static void main(string[args]) int a=11,b=55,c; c=a+b; System.out.printls(c); } " Feb 16 05:40:46 edwinkcw, can you explain your aim? Feb 16 05:40:53 how to compile it into android phone Feb 16 05:41:01 app Feb 16 05:41:17 dfo, that doesnt even compile Feb 16 05:41:31 stop trolling Feb 16 05:41:32 string[args] heh Feb 16 05:41:58 std0s: er.. http://player.vimeo.com/video/35693267 Feb 16 05:42:13 std0s: I want to do something cool like the video Feb 16 05:42:17 just tell me how to compile then i can make my own apps games n giv u for free later Feb 16 05:42:51 std0s: although it is in iphone, I don't know how difficult to put it in android Feb 16 05:43:08 dfo: http://developer.android.com/resources/tutorials/hello-world.html Feb 16 05:44:05 ha, swipe to dismiss Feb 16 05:44:54 that app is not very intuitive. if it wasnt for watching the video I would never have figured out all those crazy gestures Feb 16 05:45:22 mrenouf: that's there selling point Feb 16 05:45:45 http://www.eclipse.org/downloads/ Feb 16 05:45:47 mrenouf: in the past, we heavily rely on long press and menu to do addition and deletion of item Feb 16 05:45:47 that eclipse ? Feb 16 05:45:49 which one ? Feb 16 05:45:52 iOS Apps: they're so cool you can't figure out how to use them! Feb 16 05:45:57 cant see Eclipse for android Feb 16 05:46:16 Eclipse for Scout Developers, 175 MB /? Feb 16 05:46:18 nah, no need for long press there Feb 16 05:46:51 dfo: Eclipse for _Java_ Feb 16 05:47:00 mrenouf: in fact, I don't know if i should use opengl or android ui to implement that Feb 16 05:47:45 Hey Guys, i created an app but it seems to have some issues with htc sensation Feb 16 05:47:56 is there any simulator that test #android-dev Feb 16 05:48:01 lyxus: no Feb 16 05:48:02 no need for opengl Feb 16 05:48:12 edwinkcw: crap Feb 16 05:48:42 edwinkcw: so there is no way to test a specifc device other than buy it Feb 16 05:48:48 lyxus: you can ask your friend to give you the error log, or borrow one Feb 16 05:49:05 lyxus, yes there is the OpenSense SDK you could try that Feb 16 05:49:22 lyxus: this is the problem in android I think, too many customize rom exists. Feb 16 05:49:50 edwinkcw: it still weird it works every where but this device Feb 16 05:50:02 mrenouf: but, how implement scroll item to top.., drag and drop ...I don't know how to do them Feb 16 05:50:07 it's not likely the android build, but the hardware configuration. something that exposes a subtle bug Feb 16 05:50:26 edwinkcw, I told you how to do the scroll item to top Feb 16 05:50:46 but thats not what the video is showing Feb 16 05:51:03 mrenouf: er...yes, I may try overscroller Feb 16 05:51:39 overscroller is not helpful for what you're doing, it's not even a view component Feb 16 05:51:47 mrenouf: if i can scroll everywhere, I can do it. Feb 16 05:51:57 edwinkcw: mrenouf the stack is weird though http://pastie.org/3392417 Feb 16 05:52:26 lyxus: haha, I have the same error but I don't know why. Feb 16 05:52:37 lyxus: I am so lazy that I just ignore it.. Feb 16 05:53:01 you're trying to dismiss a dialog which either no longer visible, or was never shown Feb 16 05:53:18 edwinkcw: mrenouf: i am pretty sure that the dialog is here Feb 16 05:53:47 well, the window manager disagrees :-) Feb 16 05:53:50 lyxus: but... you still can add some checking code before dismiss the dialog Feb 16 05:54:39 edwinkcw: mrenouf: Yes i guess i have to do that ! Feb 16 05:55:05 and only on crappy htc Feb 16 05:55:06 wait hang on Feb 16 05:56:19 are you sure your window/activity/etc is still active when the asynctask completes? Feb 16 05:56:32 whta kind o games hav u all made in android Feb 16 05:57:14 mrenouf: yes 100%, i saw it failing and the window was stil there Feb 16 05:57:35 mrenouf: and again just on htc sensation Feb 16 05:58:13 might be a different view, orientation change? Feb 16 05:59:20 I have a problem with orientation change on a video Feb 16 06:00:17 is there a neat way to hndle orientation change in videoview? Feb 16 06:00:50 not sure...but basically the app start a ProgressDialog and i close it on the onPostExecute Feb 16 06:00:52 std0s: ...what is your problem? Feb 16 06:01:11 when i saw it there was no orientation of any kind Feb 16 06:01:28 lyxus: what if the app exit before onPostExecute? Feb 16 06:01:30 lyxus, um, I mean orientation like landscape/portrait Feb 16 06:01:42 edwinkcw, that too Feb 16 06:01:56 lyxus: then the onPostExecute finish, it may cause your problem. Feb 16 06:02:04 the video erstarts - no state handling Feb 16 06:02:32 std0s, you need to implement the proper state saving in onSaveInstanceState and restore it in onCreate() Feb 16 06:02:43 std0s: you know when the state before orientaion change, then apply the before state after orientation change Feb 16 06:03:17 std0s, if you have only a single layout then you could add android:configChanges="orientation" to the activity in your manifest Feb 16 06:03:37 so throw onSave etc the bundle Feb 16 06:03:58 just override it Feb 16 06:04:16 std0s: I don't think there is onSave Feb 16 06:04:24 onSaveInstanceState Feb 16 06:04:25 edwinkcw: If the app exist before the on resume clear it Feb 16 06:04:34 why does nobody listen to me? Feb 16 06:05:54 lyxus: I mean the program show -> the app exit -> onPostExecute (problem may occur, no dialog is found as the app exited). Feb 16 06:06:17 lyxus: the program show means the dialog shows up Feb 16 06:06:56 onCreate takes a savedInstanceState - so I construct and return that in the overridden onSaveInstanceState method Feb 16 06:07:32 Does anyone know if it's possible to put a checkboxpreference in xml but not in a preference screen? Feb 16 06:07:34 edwinkcw: oh i see what you mean. i guess the short time fix is to verify f this dialog is hee Feb 16 06:07:38 std0s: you can save the state in onSaveInstanceState method, when you trigger onCreate, you check whether the state is null or not Feb 16 06:07:41 *here Feb 16 06:08:30 std0s: if the state is null, this is your first time to launch app. Feb 16 06:08:51 std0s: otherwise, obtain the state from the bundle, and do what you like.. Feb 16 06:09:02 thank you edwinkcw - just poke the variable passed to oncreate Feb 16 06:09:18 i inherited this app - ita mess Feb 16 06:09:25 lyxys: I think you can simulate such problem. Just launch the app and press home button quickly Feb 16 06:09:57 edwinkcw: i will give it a shot ! Thanks for the help Feb 16 06:10:13 lyxys: you are welcome :P Feb 16 06:11:16 one thing I have noticed abot android Feb 16 06:11:23 .. Feb 16 06:11:54 std0s: what do you want to say...? Feb 16 06:12:04 is that everything I have thought would be hard turned ouot to be easy when you know how Feb 16 06:12:32 lots of help Feb 16 06:15:28 std0s: I think it is true for everything in the world Feb 16 06:15:52 like making a nuclear reactor Feb 16 06:15:53 std0s: but if you know how to do everything, there is no point for you to be here Feb 16 06:16:13 Ugh. This is ridiculous. I just want a checkboxpreference not on a preferencescreen Feb 16 06:16:16 meh meh Feb 16 06:16:36 edwinkcw, i wsh Feb 16 06:17:12 std0s: haha, in fact, just practice more, read more codes, especially android code. Feb 16 06:17:32 std0s: sometimes, I am curious and I would read some code in android widget. Feb 16 06:18:25 I like to look at thing with weird permissions Feb 16 06:18:37 std0s: ...hacker? Feb 16 06:18:41 but im newb Feb 16 06:22:22 it is gd cold tonight Feb 16 06:22:53 where u @ ron_frown Feb 16 06:25:21 i found tons of java source codes Feb 16 06:25:29 how to convert all to android ? Feb 16 06:25:39 lol Feb 16 06:25:45 oddu SharedPreferences prefs ? Feb 16 06:25:53 you can't just take java code and convert it to an apk/android file Feb 16 06:25:56 xorgate: what do you mean? Feb 16 06:26:04 oddu you can make preferences in code Feb 16 06:26:11 you have to take specific android code (written in java) Feb 16 06:26:31 i do it all the time Feb 16 06:26:35 xorgate: I just want to use a CheckBoxPreference so I don't have to implement the code. Feb 16 06:27:10 i guess it's one way or the other :0 Feb 16 06:28:36 cali Feb 16 06:28:43 cold = 30s at 10pm Feb 16 06:28:48 not cold like canadian cold Feb 16 06:29:43 what r few major difrences btween android n java ? Feb 16 06:29:48 example Feb 16 06:29:49 xorgate: Do you know what I mean? Like the android.preference.CheckBoxPreference Feb 16 06:29:53 dfo: what? Feb 16 06:29:57 nothgn Feb 16 06:29:59 nothign Feb 16 06:30:40 oddu yes.. but you dont want it in the preferences screen.. so i suppose you should not use that class since it's a widget Feb 16 06:30:57 But I want it's functionality outside of the preferenceScreen Feb 16 06:31:36 so in your own activity then Feb 16 06:31:38 god damn it Feb 16 06:31:42 did you try adding it to the xml Feb 16 06:31:51 xorgate: I want to define it in XML and it throws a "Classdefnotfound" Feb 16 06:31:52 nothing pisses me off more than androids decision to handle contexts the way they did Feb 16 06:31:58 ron_frown: +1 Feb 16 06:32:09 lemme try Feb 16 06:32:09 i'm having a problem installing the adt into eclipse. it keeps telling me there's a conflicting dependency and that only one version of the eclipse ui can be installed. but i've only got one install. it's listing 3.6.0, 3.6.1 and 3.6.2. any help would be greatly appreciated Feb 16 06:33:59 xorgate: It's really wierd. I don't know why the LayoutInflater doesn't know how to inflate that view. Feb 16 06:35:03 i guess it's specific for the preferenceactivity Feb 16 06:35:09 mfreywald: what is your version of eclipse? Feb 16 06:36:30 anyone know of a way that given a context you can tell 1) if the context is an activity context, and 2) if context is attached eg, you can spawn ui elements like dialogs from it etc? Feb 16 06:36:54 Cast it? Feb 16 06:37:03 to an Activity Feb 16 06:37:04 ? Feb 16 06:37:48 3.6.0 Feb 16 06:38:00 oddu idunno.. i would just setonclicklistener and do it myself i guess Feb 16 06:38:46 xorgate: I know. I'm not saying its hard to do it the other way, it's certainly not. But it's just annoying that this doesn't work haha Feb 16 06:38:55 ron_frown yeh cast it or instanceof Feb 16 06:38:58 satori99 just because its an activity doesnt mean its a valid context Feb 16 06:39:04 mfreywald: then it should be ok, Feb 16 06:39:08 eg, it can be detached or just before it cleans up Feb 16 06:39:22 mfreywald: how do you install adt? Feb 16 06:39:30 I've gotten invalid window token null when spawning dialog with a legit activity context Feb 16 06:39:39 because it wasnt visible Feb 16 06:39:43 mfreywald: this one: http://developer.android.com/sdk/eclipse-adt.html#downloading Feb 16 06:40:18 yep thats exactly what i did Feb 16 06:40:48 mfreywald: then, I am sorry that I can't help. Feb 16 06:40:57 ron_frown maybe override ondetached and such Feb 16 06:41:00 thanks anyway Feb 16 06:41:07 mfreywald: I did it and it works fine Feb 16 06:41:37 yeah i don't know what is going on. it's really weird Feb 16 06:41:46 how to use eclipse Feb 16 06:42:46 1) Eat a cookie Feb 16 06:42:51 2) ???? Feb 16 06:42:54 3) Profit! Feb 16 06:43:11 which eclipse zip are you using? maybe mine is the wrong one somehow Feb 16 06:43:55 yeh fuck 100 versions of eclipse Feb 16 06:44:02 you could always try IDEA :0 Feb 16 06:44:51 eclipse classic helios should work just splendid with ADT Feb 16 06:45:04 or eclipse for java devs Feb 16 06:46:21 FU ron_frown, im in London - its 7:30 am its FREEZING Feb 16 06:47:10 Move to Australia.... 27c @ 5;45pm in Sydney :) Feb 16 06:49:02 can I move in with you satori99 Feb 16 06:49:10 ? Feb 16 06:49:56 you don't want to live in Australia.. video games there cost like 3x as much as they should Feb 16 06:50:02 :p Feb 16 06:50:08 alsa ron_frown - what does that mean to you? Feb 16 06:50:10 This is true. Feb 16 06:50:21 I'm not a gamer t0mless Feb 16 06:50:32 but I d like drugs Feb 16 06:50:40 * satori99 only plays bf3, and nothing else. Feb 16 06:50:56 * std0s takes drugs Feb 16 06:51:14 I can't do that anymore. except weed. Feb 16 06:51:29 which kinds ;0 Feb 16 06:51:34 satori99, wn? Feb 16 06:51:52 wn? Feb 16 06:51:56 all of them mwahahahaha Feb 16 06:51:56 oh why not... Feb 16 06:52:04 too many party drugs makes satori something something. Feb 16 06:52:17 happy? Feb 16 06:52:24 high? Feb 16 06:52:27 i prefer the mindexpansion over party Feb 16 06:52:35 (dont listen to me kids) Feb 16 06:52:35 Seriously, that shit was starting to mess with my head when I was going clubbing and raving (lol) Feb 16 06:52:48 Had to stop all of it to stay sane. Feb 16 06:52:59 I think thatwas mostly dow to you Feb 16 06:53:25 probably. Feb 16 06:53:26 do wht you feel none of my biz Feb 16 06:53:53 drugs are fucking excellent Feb 16 06:54:42 nuf sed Feb 16 06:55:24 I tried eveything except heroin over the period of about a decade... have to stay the fuck away from cocaine. I see that shit and willpower crumbles Feb 16 06:55:43 who's with me? Feb 16 06:55:52 im with ya :0 Feb 16 06:56:00 though in moderation Feb 16 06:56:22 My only vice is weed. I smoke nearly every day. Feb 16 06:57:31 I write better code stoned too. Hyper focus kicks in. Feb 16 06:58:06 or at least it seems at the time :0 Feb 16 07:01:39 Does anyone know if its possible to underline text from XML? Feb 16 07:02:13 you can add a style to it using StyledSpan Feb 16 07:02:23 in XML? Feb 16 07:02:28 like in the TextView tag? Feb 16 07:05:14 oddu xml is not formatting Feb 16 07:05:47 hio! Feb 16 07:05:48 hi! Feb 16 07:05:51 another problem Feb 16 07:05:59 has anyone see this error message? E/MapActivity Couldn't get connection factory client Feb 16 07:06:03 gingerbread based rom Feb 16 07:06:20 and the spinner dropdowns are 99% width or something, yet I see absolutely 0 place this is defined Feb 16 07:06:26 I am trying to use google mapactivity and mapview. I am using the debug cert Feb 16 07:06:29 os source or spinner source or themes Feb 16 07:07:41 ron_frown, are you trying to fix this or just pointing it out? Feb 16 07:08:09 I'd like to fix Feb 16 07:08:13 std0s: fair… but i still should be alble to define underline, no? Feb 16 07:08:20 we run our rom on custom hardware that is landscape only Feb 16 07:08:36 and to hit a spinner and end up with 1inch of text centered on hugely long spinner dropdown list Feb 16 07:08:38 just absurd Feb 16 07:08:39 then write a custom theme Feb 16 07:08:43 its not a theme Feb 16 07:08:44 haha Feb 16 07:08:51 I bet it is Feb 16 07:09:06 seems to ignore dropDownItem's android:width Feb 16 07:09:27 Hello I just imported a test project into eclipse. But it seems to have errors. I get this error: Feb 16 07:09:28 [2012-02-16 12:37:25 - TestIntents] Unable to resolve target 'Google Inc.:Google APIs:8' Feb 16 07:09:46 install the google api's sdk for api8 Feb 16 07:09:52 if you are designing for one device use absolute layouts Feb 16 07:10:42 lie fi them all by pixel for tha device Feb 16 07:10:58 apparently you dont get that nothing I do seems to affect how spinners display width wise Feb 16 07:11:11 I suspect because internally it just builds an AlertDialog, with a listview Feb 16 07:12:13 even if I explicitly set a style and one off the spinner Feb 16 07:12:14 std0s: you're funny Feb 16 07:12:18 (not globally theme it) Feb 16 07:12:39 I've tried custom layouts with fixed dp width Feb 16 07:12:42 how you meen Leeds funnt like a fucking clown - im amusing to you????? Feb 16 07:13:15 you want me to tell a joke Leeds ???? Feb 16 07:13:31 I saw a email chain that never came to any resolution with romain saying that in froyo alert dialogs were set up to use a percentage of screen widht Feb 16 07:13:33 I tell you a fucking joke Feb 16 07:13:38 no, I want you not to give terrible advice, even if you were - hopefully - joking Feb 16 07:14:11 honestly I am open for advice, and even if they are off the wall... I dont mean to sound short, but I am seriously at a loss =0 Feb 16 07:14:15 oop - wouldnt want to do that - tell me where I fucked up Feb 16 07:14:27 absolute layout. never use it. Feb 16 07:14:35 also, less swearing would be nice... Feb 16 07:14:43 heh Feb 16 07:14:54 wow Feb 16 07:15:02 for once that wasnt directed at me =) Feb 16 07:15:07 Leeds, one device Feb 16 07:15:08 ron_frown: fsck you :P Feb 16 07:15:21 no I am openly admitting I have a serious potty mouth Feb 16 07:15:35 any intellect I have, I negate with foul language and swearing =) Feb 16 07:15:36 haha Feb 16 07:15:37 I'm from the uk - that was nothing Feb 16 07:15:54 srsly Feb 16 07:16:15 Stop making us Brits look bad :P Feb 16 07:16:44 I made the mistake of starting to develop for IOS... and while I admit the platform is balls for its openess or lack thereof, everything just seems like 10x easier Feb 16 07:16:52 Knossos: it takes more than that... Feb 16 07:17:04 and thats going to objc/c++ with memory management from java with gc Feb 16 07:17:23 my shit do work Feb 16 07:17:26 ron_frown: I think that sort of thing depends a lot on what your background is - if you're having to relearn a bunch of stuff to do Android Feb 16 07:17:27 Leeds, surly the abs layout iss for exactly that.. Feb 16 07:17:40 I'd love to get into iPhone development. But the problem I face is I don't want to buy a Mac. Feb 16 07:17:43 I still do android dev Feb 16 07:17:49 I mean I've ripped apart the os BIG TIME Feb 16 07:18:05 my shit dont work Feb 16 07:18:10 std0s: AbsoluteLayout is for nothing - it's deprecated Feb 16 07:18:18 solved most of my problems in elegant ways... some of which completely change functionality... and sometimes being very un-invasive Feb 16 07:18:22 Knossos: dont go down that path! Feb 16 07:18:56 the no reliable way to just be able to say "give me a god damn ui context I can use" just really boggle my mind Feb 16 07:19:02 Leeds, - they are on an old api.. Feb 16 07:19:04 I'm gonna give spinner styling abotu 2more hr Feb 16 07:19:12 then I'm on to building my own control Feb 16 07:19:18 generally tend to work better anyhow =) Feb 16 07:19:25 DashCC: No need to worry, I can't because I'm not buying a whole new device just to program on. Feb 16 07:19:39 beleive me Feb 16 07:19:53 you'll make the mistake of designing for one device exactly *once* Feb 16 07:20:20 seeing how much work goes into making an app look nice as many places as you can after its been designed for specific hardware Feb 16 07:20:27 yup Feb 16 07:20:29 you'll play it safe attempt 2 Feb 16 07:20:45 I have the additional problem that we have extremely low res displays Feb 16 07:20:53 800x480 120dpi or whatever Feb 16 07:21:10 so even the stock themes tht look fantastic on my personal phone, just dont work Feb 16 07:21:15 or how about out to HDMI Feb 16 07:21:16 nobody wants 2" buttons Feb 16 07:22:05 say Feb 16 07:22:54 it's not the size of your buttons which matter... Feb 16 07:23:02 its the technique, sure ! Feb 16 07:23:59 leeds it does when lowest res 9patches are just out of the question Feb 16 07:24:10 eg, design for 120dpi, build your own theme =) Feb 16 07:24:56 romainguy are you around for a quick question not bitching etc Feb 16 07:24:58 http://developer.android.com/design/static/content/gridview_vertical.png Feb 16 07:25:10 what do you guys use to build illusrtations such as that Feb 16 07:26:36 ron_frown, you mean in the programs, or outside of the program to put into the program Feb 16 07:27:01 I am thinkng about building a mockup ui demonstrating interactions and real life appearances Feb 16 07:27:09 aside from just building the ui Feb 16 07:29:40 is the only processor android runs on ARM or can it run on others chipsets? Feb 16 07:30:24 ron_frown, we use this sometimes http://www.balsamiq.com/products/mockups Feb 16 07:30:41 i never got along with it, but some of our design people love it Feb 16 07:30:47 factor: x86 is semi-officially supported, and there are devices out there on MIPS Feb 16 07:31:53 semi-officially meaning a) Google TV uses it, at least so far, b) Motorola have said they're going to use it, and a demo/prototype has been seen this week and c) apparently just todayish, Google have released an x86 build of 2.3.3 as an SDK (NDK?) target Feb 16 07:32:25 ah, sorry, *Intel* have released an x86 image Feb 16 07:32:45 Leeds, yes was working with MIPSsel on routers but its modified linux Feb 16 07:33:09 factor: there is at least one Chinese Android tablet floating around which uses MIPS Feb 16 07:33:17 nifty Feb 16 07:33:32 good to know other processors are supported. Feb 16 07:33:41 it's not supported, it just exists :) Feb 16 07:33:47 heh Feb 16 07:34:48 I like pencil better than balsamiq Feb 16 07:35:28 linky? Feb 16 07:36:12 don;t worry, google found it Feb 16 07:36:15 *' Feb 16 07:39:08 ron_frown: url for pencil? Feb 16 07:39:37 http://pencil.evolus.vn/ Feb 16 07:39:42 https://addons.mozilla.org/en-US/firefox/addon/pencil/ Feb 16 07:40:00 http://code.google.com/p/android-ui-utils/ Feb 16 07:40:05 for android stencils for pencil Feb 16 07:40:10 too bad its god damn firefox Feb 16 07:40:29 so just for standard flow charts etc? Feb 16 07:40:31 don't like FF? Feb 16 07:40:37 i hate FF Feb 16 07:40:42 oh god Feb 16 07:40:42 not for my version of firefox Feb 16 07:40:46 4 Feb 16 07:40:47 4+ Feb 16 07:40:49 Leedsfu Feb 16 07:40:53 ff is a pos Feb 16 07:40:54 its the new internet explorer. Feb 16 07:40:57 nt u Leeds Feb 16 07:41:03 chrome is the only way to go. Feb 16 07:41:16 I like how you fire it up, 2 minutes of waiting, then ti tells you it yet again needs to update Feb 16 07:41:23 and the updates are invasive inline chrome Feb 16 07:41:24 I use firefox beta on my tablet. it has WebGL support Feb 16 07:41:26 unliek Feb 16 07:41:41 then it wants to upgrade all your extensions Feb 16 07:41:44 which it fails at most Feb 16 07:41:53 although chrome is working pretty good as a normal browser on my tablet Feb 16 07:41:56 just sitting there wiht 1 tab, it takes more memory than my vm =) Feb 16 07:42:20 Leeds, are you from Leeds ? Feb 16 07:42:21 my favorite is http://www.gliffy.com/ Feb 16 07:42:55 Does the android emulator from intel work well for you guys? Feb 16 07:43:11 i still use dia :s Feb 16 07:43:28 gliffy looks cool but the mention of jira on the homepage make me want to run in the other direction Feb 16 07:43:28 http://software.intel.com/en-us/articles/android-237-gingerbread-x86-emulator-image-add-on/ Feb 16 07:43:55 it works quite well, been using it for over a year Feb 16 07:43:58 maybe 2 Feb 16 07:44:57 neekers: is it a lot faster than the arm emulator? Feb 16 07:45:14 coolstar-ipod: i was talking about gliffy Feb 16 07:45:45 std0s: yes, I'm from Leeds Feb 16 07:46:06 you like mint? Feb 16 07:46:20 I prefer licorice Feb 16 07:46:33 if your in led s chedckcout mint Feb 16 07:47:23 its my favourite club in leeds Feb 16 07:47:25 I'm not *in* Leeds... unless I can help it Feb 16 07:47:47 fair enough Feb 16 07:48:20 Leeds - if you wanna come out in London I'm here.. Feb 16 07:48:39 Leeds, you've pulled. Feb 16 07:48:57 :D Feb 16 07:49:00 lol Feb 16 07:50:06 Working on so many thing.. but love I got my Android to control my steppers . having to work on the solid state relays now , but usb device support in ICS is a nice option Feb 16 07:50:31 nah, I was in London a few weeks ago Feb 16 07:50:36 with my gf :P Feb 16 07:51:03 woow, i hadn't switched to chrome because of all hte addons i had before Feb 16 07:51:08 just looked and half are disabled :s Feb 16 07:51:18 *wow the Feb 16 07:51:20 factor using what now... serial? Feb 16 07:51:26 Leeds: i was in london for a night a few weeks ago. we might have seen each other. Feb 16 07:51:43 ron_frown, USB on my android tablet to control stepper motors. Feb 16 07:51:51 cool Feb 16 07:52:09 I was planning on testing some i2c shit for that sort of thing real soon Feb 16 07:52:10 ron_frown, yes I think so as well :) Feb 16 07:52:56 neekers: Jan 25th-28th :) Feb 16 07:53:34 I had made it to work with the printer port first , then thought not even new cpus have the printer port. so I wrote it for libusb.. it works on linux , but then saw android also uses libusb had to upgrade to ice cream sandwich to use this option, but ICS is a nice load over 2.2 Feb 16 07:55:20 factor no shit dude Feb 16 07:55:33 dealing with anything < ics seems... pointless Feb 16 07:55:40 heh Feb 16 07:55:53 How would I get the bounding box of the currently shown Google Map Feb 16 07:57:37 ron_frown, you have just displayed your complete lack of know how Feb 16 07:57:38 someone can tell me if more needed than call setWebChromeClient() to use it? I am using webViewClient also, this is working fine. On my chromeClient is onProgress() not called. What can i do now? Feb 16 08:00:48 std0s ? Feb 16 08:01:21 ron_frown, Feb 16 08:01:58 std0s - misunderstanding on your part Feb 16 08:05:47 haha Feb 16 08:06:13 it just completely changed everythign... its where the ui has become very polished, very clean Feb 16 08:07:09 ron_frown, I wansnt ,isunderstood - I was trying to correct you twat Feb 16 08:07:41 heh Feb 16 08:08:15 o.O Feb 16 08:08:29 Lets all take hands and sit down and sing kum-bah-jah Feb 16 08:08:34 bring it Feb 16 08:08:43 whatever Feb 16 08:09:07 cnut Feb 16 08:09:21 hiii Feb 16 08:09:26 I'll goe-locate your family Feb 16 08:09:51 my emulator cant go out on the internet..ive set in the run config in eclipse: Feb 16 08:09:52 -dns-server 8.8.8.8 Feb 16 08:09:56 learn how to spell first, you little weasel. Feb 16 08:10:13 neekers, you had best not be talking to me Feb 16 08:10:21 ive also tryed to set my dns.. Feb 16 08:10:22 hehe. Feb 16 08:10:30 you chose a good time to join bestKoderEver Feb 16 08:10:47 are you guys fighting.. Feb 16 08:10:54 ok im drunk ill take asec - but srsly Feb 16 08:10:58 i can be the judge.. Feb 16 08:11:34 what about my emulator = no internet.. im running lan..not wireless.. Feb 16 08:12:01 Tobias Saunders :< Are you here in representation of any company? Feb 16 08:12:03 tried creating a new one to see if it's a config problem or something worse Feb 16 08:12:12 ? Feb 16 08:12:24 bestKoderEver you SHOULDNT have to fuck with that stuff Feb 16 08:12:26 what os? Feb 16 08:12:44 would anyone else here expect Collections.unmodifiableList(List) to at least shallow-copy the given base list? Feb 16 08:13:49 tophyr, Returns an unmodifiable view of the specified list. Feb 16 08:13:54 so, no Feb 16 08:13:56 List temp = new List(); list.add("hello"); List fixed = Collections.unmodifiableList(temp); temp.add("world"); fixed.contains("world") == true Feb 16 08:14:12 ahhhhhhh-noying. Feb 16 08:14:41 now i have to go replace all my temp.clear()'s with temp = new List().... such a pain in the ass.. grumble... get off my lawn... Feb 16 08:14:54 me? win7... Feb 16 08:15:12 ive used ipconfig..to get my dns.. seems like there are 2 of them.. Feb 16 08:15:24 can't 'new List' Feb 16 08:15:25 ive tryed both..no luck.. Feb 16 08:15:58 but no, I don't think the unmodifiableList is going to make a copy Feb 16 08:15:58 LINKEDLIST, GRUMBLE Feb 16 08:17:11 the phrasing used by javadocs says it's a "view". Feb 16 08:19:21 yeah the key seems to be the keyword 'view'. Feb 16 08:19:40 it's surprising to me too tho Feb 16 08:20:11 well, it didn't work how immediately wanted so *clearly* it works wrong Feb 16 08:20:13 right? Feb 16 08:20:28 looks like you'd need to create a new list in what's passed into unmodifiedList() to get the behaviour you want. Feb 16 08:20:45 but if you can return a copy, why bother with the unmodifiableList anyway Feb 16 08:21:06 so that exceptions are thrown in the right place Feb 16 08:21:15 don't understand how that relates Feb 16 08:22:16 someone can tell me if more needed than call setWebChromeClient() to use it? I am using webViewClient also, this is working fine. On my chromeClient is onProgress() not called. What can i do now? Feb 16 08:23:25 the case that comes to mind is in an API that exports internal state to clients. you want to insure clients can't modify the state so you wrap the return val in the getter with unmodifiableList(). Feb 16 08:23:31 alankila, ^ Feb 16 08:24:37 kgilmer: sounds like waste of time. If you are returning a copy of the state, how about putting the name 'Copy' on the end of the method call, such as getStateCopy(). Feb 16 08:25:09 you'd be a moron to conclude from this that these objects of the list afterwards have anything to do with the state of the underlying object. Although the ambiguity remains if that is a deep or shallow copy... Feb 16 08:25:46 ita wel design system that lets you tack things on the nd Feb 16 08:25:55 alankila, well you're not returning a copy, you're returning the same list instance with modifications to it's behavior. it's cheaper. and it's a view so your internal state is visible to the client. Feb 16 08:26:15 *sigh* in the above example a copying behavior was apparently desired Feb 16 08:26:29 I'm only opposing the notion of wrapping a copy inside unmodifiableList wrapper Feb 16 08:26:33 that doesn't even make sense anymore Feb 16 08:27:38 ic what you mean alankila. i would still wrap a copy so that a bad client that tried to modify the list would get an exception. Feb 16 08:28:01 who says it's a bad client. Maybe it has a perfectly legitimate reason to want to operate on the copy... Feb 16 08:28:48 although to be sure you would at the very least need to know what kind of list you are getting, so I'd probably declare the returned concrete type explicitly, like LinkedList or ArrayList so that client will know what the runtime characteristics will be... Feb 16 08:29:57 if you think this is idiotic then feel free. I just hate everybody making defensive copies and shit like that, it's what happens a lot on C because you never know how long a pointer you got will hang around so you'll do stuff like copy all string values as soon as you get them. Feb 16 08:30:59 in that vein I don't much like Collections.unmodifiable* stuff either. I used it once and discovered that my expectations how clients wanted to use my values were wrong and that I needed to return copies anyway, so I did that in the end. :-/ Feb 16 08:31:06 * std0s so lost Feb 16 08:31:43 and in this case the client was myself, just a few weeks later. All my fine "I'll return the internal state but wrapped in unmodifiableList" turned out to be shit Feb 16 08:32:17 alankila, i was refering to my example case in which the API contract is explicitly read-only to the client. Feb 16 08:32:27 in any case, time for a cold one Feb 16 08:32:28 hello chatt! Feb 16 08:32:30 * std0s so lost Feb 16 08:32:56 alankila, to call it the app need the permision no? Feb 16 08:33:07 std0s: what the hell are you talking about? Feb 16 08:33:08 faaaaaaaaaaaaaaaaaaaaa** Feb 16 08:33:29 so you are drunk. I'll just ignore you. Feb 16 08:33:33 in the mainfest Feb 16 08:33:53 you are a prick so ... Feb 16 08:34:26 srsly Feb 16 08:34:36 why so rude? Feb 16 08:34:51 So nice weather today, yes? Feb 16 08:34:55 imnowt but nice Feb 16 08:35:41 Mikellip: well. its cloudy and snowy.. so kinda depressing :D Feb 16 08:35:44 one question regarding the Collection.unmodifiableList: does it suffer from concurrentmodificationexception? And I don't mean from threads Feb 16 08:36:11 a = C.uL(b) -> now iterate over a and try to touch b => crash ? Feb 16 08:36:13 Cloudy here, not snowing - but snowy ;-) Feb 16 08:36:45 sunny and 32 degrees here Feb 16 08:36:50 Las Vegas is all ways great Feb 16 08:36:53 :-O Feb 16 08:37:10 Sweden/Stockholm... we have polar bears on the streets and always snow Feb 16 08:37:13 Almost ;-) Feb 16 08:37:23 that's 89.6 f Feb 16 08:37:40 not sure where y'all are from Feb 16 08:37:59 we're from SI Feb 16 08:38:12 the communist collective of international standards :-p Feb 16 08:39:33 Hi all. What is the java-ish way for a method to return 2 values? Feb 16 08:39:56 return an array with 2 values in Feb 16 08:40:09 jaybee_: many ways, create an object and return the object Feb 16 08:40:11 or whatever Feb 16 08:41:08 I often use nothing more than Object[] myself Feb 16 08:41:13 return a callback, which you need to call twice to get the two values Feb 16 08:41:23 :-D Feb 16 08:41:32 see, many ways... Feb 16 08:41:48 it's often worth modeling it a bit more if it's an important object because (Foo) o[1] is going to get annoying after a while, though Feb 16 08:42:01 but for like exactly one place that uses it? Who cares. Feb 16 08:42:05 Mikey - rtfm! Feb 16 08:43:02 i can see you guys have a lot of fun in here Feb 16 08:43:05 jaybee: you could use something like this: http://ideone.com/bUxq0 Feb 16 08:44:22 without using T everywhere instead of U of course :( Feb 16 08:44:52 I'm trying to share (ACTION_SEND) an image with text so, for example, twitter can tweet it as "some text here " http://short.url/pic Feb 16 08:45:05 but I either get a text or an image tweet. Is there a way to combine them? Feb 16 08:45:34 public +final T... Feb 16 08:47:00 i am confused, why is mWebView.setWebChromeClient(new MyWebChromeClient()); not working? Just working is a anonym implementation. Suggestions? Feb 16 08:48:11 drindt: you usually have to say something more than 'not working'. The usual snark reply is to ask you "does it want more money?". Feb 16 08:48:40 a good query explains what you did, what you expected to happen, and what happened instead. Feb 16 08:48:54 alankila, my implemented methods are not called in my own class which is extending the chrome class Feb 16 08:50:31 okay... you are positive that they should be called sometimes, like for instance while clicking a link and navigating to another page? Feb 16 08:50:58 alankila, i just would like to get the page load progress Feb 16 08:51:12 implemented as anonym class its working Feb 16 08:51:14 you have WebView's shouldOverrideUrlLoading handled? Feb 16 08:51:42 i use chrome client and webviewclient Feb 16 08:51:59 the override in webviewclient i use Feb 16 08:52:27 I suspect you have implemented your MyWebChromeClient somehow incorrectly anyway if you can prove that anonymous inner class will work Feb 16 08:53:02 alankila, if so thats a serious noob mistake :-) Feb 16 08:53:28 the Log.d in the constructor is also not called completely weird Feb 16 08:54:05 mWebview.setWebChromeClient(new MyWebChromeClient()); Feb 16 08:55:46 continuously repasting that line of code here does not really help. Feb 16 08:56:13 you usually see Log.d statements, anyway? I normally don't even do debug builds so I can't use it myself Feb 16 08:56:26 alankila, you said you create an Object[] - is it possible to set up attributes, without explicitly subclassing? Feb 16 08:56:48 is there an example and/or docs somewhere? Feb 16 08:57:16 jaybee_: eh. Question like that worries me. I don't think you can subclass an array to begin with Feb 16 08:57:43 and I regret offering that as solution. Please write a simple inner static class that holds all attributes and values you need. Feb 16 08:58:50 grr why is it so hard on non-hw hardware accelerated devices to animate the frame of a viewgroup without leaving a trail on screen Feb 16 08:59:00 hmm I guess it's a twitter issue Feb 16 08:59:04 and/or facebook Feb 16 08:59:27 * jaybee_ googles inner static class, and finds just what he wants - thanks alankila et al. Feb 16 08:59:33 only alternative I can think of is upload the photo myself and share the url myself as text Feb 16 08:59:34 alankila, you're right, i dont see any of the Log messages. Feb 16 09:01:35 alankila, i have moved the class now a private class and tried to use it, same again. just working as anonymous class. Feb 16 09:02:23 drindt: interesting, I suppose, but I do not know why that would be. From java point of view, an anonymous inner class is just an inner class with weird compiler-generated name. Feb 16 09:02:48 and it doesn't matter if it's outer or inner class if you don't use the outer context anywhere in the inner class Feb 16 09:02:53 alankila, i agree, thats what lets me wonder about, Feb 16 09:03:43 alankila, yes, true, true, but that knowledge lets me not stop of wondering. I cleaned the project already... but thats not helping... Feb 16 09:06:00 I'm going to guess you have two classes by that name and are importing the wrong one. Feb 16 09:06:09 alankila, no, no, no Feb 16 09:06:26 i am a bit more of 10 hours in front of eclipse Feb 16 09:07:09 I remember that I once followed a suggestion to create a String class in same package as my main method and later on spent a few minutes debugging why public static void main(String[] args) no longer worked Feb 16 09:07:54 it's easy to understand now that I put the cause and effect in the same sentence, but suppose you forgot and you can't understand why something as familiar as public static void main(String[] args) simply won't be found as main method. Feb 16 09:11:09 :) Feb 16 09:21:50 hey Feb 16 09:22:09 alankila, funny i just wrote new MyWebChromeClient(); and he is simply ignoring the class by a step by step debug, and the class has got a constructor, and its not executed! Feb 16 09:22:34 is switching between Activitys costly Feb 16 09:22:35 ? Feb 16 09:22:45 if the gui is simple.. Feb 16 09:25:03 alankila, haha i found the mistake i did :-) there was a filter set in ddms which excludes messages from that package i placed the class omg!! :-) Feb 16 09:25:24 omg is bite overrated here Feb 16 09:25:33 a bit* Feb 16 09:26:06 1 bit 0/1 Feb 16 09:26:36 bestKoderEver: you could just change the layout instead of creating a new activity Feb 16 09:27:28 Ivru right.. kind of faking it :D Feb 16 09:29:12 bestKoderEver: but is the cost of implementing your own fake activity stack worth it? I doubt it. Feb 16 09:30:25 appel1 im not following,, your saying i should use activity to keep thing conceptually separated? Feb 16 09:30:30 doens't mean facking the stack Feb 16 09:30:45 Ooh, just saw the new lint feature. Awesome Feb 16 09:30:46 i dont fakking stack. Feb 16 09:30:48 Ivru: it would if he wanted the back key to behave in a consistant manner Feb 16 09:31:07 in that case he just need to create a new activity for sure Feb 16 09:32:25 ok guys. thanks. Feb 16 09:32:41 will see!.. the back key is not always that important ;D Feb 16 09:33:20 bestKoderEver: not doing the expected thing when the back key is pressed is a sure way to get a lot of negative ratings and comments.. if you care about that Feb 16 09:34:03 appel1 this one is not for pleasing the masses.. :D thanks. Feb 16 09:34:46 still don't see the point wasting time doing the wrong thing, unless the purpose of the app is to piss people off of course Feb 16 09:35:19 anyway, switching between layout using the back key isn't that hard neither Feb 16 09:35:27 Ivru: true =) Feb 16 09:35:50 Or! Use fragments.. Feb 16 09:36:22 how expensive is a db access for 1 element if the db is already open? compared to an object getter for example Feb 16 09:36:59 appel1 i was thinking of making a costly DB call on the main menu, while the user thinks what to choose..and then display it on click..so maybe just changing layout would go faster..maybe not.. Feb 16 09:37:12 holde: sounds like its time to do some profiling Feb 16 09:38:20 bestKoderEver: you could just lazy load that on a background thread and use some mechanism to make it available to the second activity Feb 16 09:38:45 so 5 calls to db for 1 element is probably way more expensive than 1 call for 5elements Feb 16 09:39:15 holde: sounds like its time to do some profiling Feb 16 09:39:29 what's that supposed to mean exactly? Feb 16 09:39:45 Figure out how much time the two approaches take Feb 16 09:39:47 by my experience in-process database lookups are not terribly slow, there's no remote procedures to call, it's just an exceptionally convolted binary tree that you're likely using Feb 16 09:40:05 holde: http://en.wikipedia.org/wiki/Profiling_(computer_programming) Feb 16 09:40:15 Hi, I have a Problem. I want to add a new Widget to the home Screen by click a Button in my Activity. Is this Possible and how? Feb 16 09:41:18 in my last app i was doing lookups on a table in sqlite with 10,000 rows and it was blazing fast Feb 16 09:42:20 tooob: that's completely counter-intuitive, don't do it Feb 16 09:42:30 SimonVT, is there a tool for something like this (in eclipse/asdk) or is something like endtime - starttime enough Feb 16 09:42:36 hi guys, i'm having issues with fragments and my test framework so i need to get rid of fragments and just use activities to simulate fragments. Anyone know of any good resources to find out how to inflate 2 different activites in 2 different layouts and both be shown on the screen and accept input? Feb 16 09:42:42 holde: no idea Feb 16 09:43:06 yes, SimonVT, please help. :) Feb 16 09:43:17 no neekers :( Feb 16 09:43:23 o.o Feb 16 09:43:40 lokieee, isn't that what cornerstone is supposed to do? ;P Feb 16 09:43:56 so i guess it's not possible as of now Feb 16 09:43:59 Cornerstones hold up the building Feb 16 09:44:12 whats cornerstone? i googled it and it seems like its a church Feb 16 09:44:19 thanks Snuffel, can you tell me what you mean with counter-intuitive? :) Feb 16 09:44:33 it is. it's also where mason's hide things Feb 16 09:44:37 google cornerstone multitasking Feb 16 09:44:42 tooob: nobody would get it Feb 16 09:44:44 maybe + android Feb 16 09:44:58 holde: try googling "android profiling" Feb 16 09:45:00 tooob: google would spank you for it Feb 16 09:45:15 neekers, i will ;) Feb 16 09:45:19 tooob: It's against android convention Feb 16 09:45:24 ah ok Feb 16 09:45:26 that seems like 2 showing 2 seperate apps, i simply want to inflate 2 different .xml files, in the same app Feb 16 09:45:32 so I have an idea I'd like to hash out...anone interested? Feb 16 09:45:34 damn Feb 16 09:45:44 thanks a lot Feb 16 09:46:49 I should say "is anyone interested" Feb 16 09:47:49 billdollar: just state your question or whatever Feb 16 09:50:28 or not Feb 16 09:50:48 sorry, I was reading about my question Feb 16 09:52:44 Can wifi capable devices login to a "server" android device at the simutaneously? Feb 16 09:53:07 at the same time :-) Feb 16 09:53:07 hmm Feb 16 09:53:36 you can have a webserver and access it on a wifi network from a phone if thats what you mean Feb 16 09:53:36 * alankila has one adb server on his android phone and I suppose multiple adb clients could connect to it Feb 16 09:53:54 no, I mean an android device as the server Feb 16 09:53:55 or you can use sockets Feb 16 09:53:59 sockets? Feb 16 09:54:13 yes, you can have a webserver on an android phone Feb 16 09:54:22 who said it's a web server Feb 16 09:54:39 you got it alan Feb 16 09:54:41 I guess android doesn't have basic iptables security though Feb 16 09:54:59 I think it ought to have, no fun if associating to a wi-fi network will allow remote compromise of your phone Feb 16 09:55:01 you can have all kinds of servers Feb 16 09:55:13 he didnt specify which kind Feb 16 09:56:02 alankila: are there a bunch of ports open on an android phone? Feb 16 09:56:29 the kind that would let four (or more) people with WiFi devices participate in the same game displayed via HDMI mirroring Feb 16 09:56:45 apparently there are no ports open on *my* phone at least Feb 16 09:56:49 but no iptables protection rules either Feb 16 09:57:10 * alankila idly wonders if racoon works without setkey Feb 16 09:57:13 billdollar: your questions are a little to open ended Feb 16 09:57:33 so i'm doing a lot of MAth.pow(x, 2) calls in my code - worth writing a little c routine to do it and linking it in? Feb 16 09:57:41 ios has game center, does android have something similar? Feb 16 09:57:44 storkme: no. What about x*x? Feb 16 09:57:50 would that be faster? Feb 16 09:57:56 neekers: not that I know of Feb 16 09:58:12 storkme: no Feb 16 09:58:27 no for the jni thing Feb 16 09:58:33 storkme: almost certainly it will be, because I don't expect that there's enough of futamura projection in android to understand equivalence Feb 16 09:58:49 the x*x would most probably be faster than Math.pow(x, 2) Feb 16 09:58:52 hello Feb 16 09:58:54 remember that Math.pow() is defined for x and y both doubles Feb 16 09:59:03 um, Math.pow(x, y) Feb 16 09:59:05 fair enough Feb 16 09:59:09 i shall reprofile Feb 16 09:59:18 it's probably going to work through logarithm and exponent Feb 16 10:00:13 what channel should I join to discuss open ended android OS possibilities? Feb 16 10:00:15 so it transform x^y into something * e^(something * y). Feb 16 10:00:50 heh, you know you're doing alright when your debug code is 16% of the cpu time Feb 16 10:01:01 (turn it off and get 16% extra cycles, notbad.jpg) Feb 16 10:01:11 thanks alankila, it is faster now Feb 16 10:02:15 although I once saw invsqrt(r*r*r*r*r*r*r) and it was actually better to write pow(r, -7.5) Feb 16 10:02:37 uh, -3.5 Feb 16 10:02:57 i have got a 8x8 matrix, where two columns are in one 128 bit register. i need to transform the matrix in a way that i have two rows in one q-register. I use ARM NEON, does anybody know a good algorithm for that? Feb 16 10:03:01 didn't try if sqrt(r)/r*r*r*r would have been even better though... Hmm Feb 16 10:03:27 good morning guys, or good evening depending where you live! Feb 16 10:03:39 how do you guys organize the layout folder if you have lots of .xml ... layouts.. subfolders? Feb 16 10:03:56 just pick a decent naming convention Feb 16 10:04:00 JimGreece: bizarre. It's noon here! Feb 16 10:04:05 i always use sorta-hungarian and it works nicely for me Feb 16 10:04:22 fragment_*.xml, acivity_*.xml, list_item_*.xml, etc Feb 16 10:04:35 billdollar: this may answer your question, http://stackoverflow.com/questions/5687598/how-to-make-multiplayer-game Feb 16 10:04:52 I try to name them like foo.xml, foo_bar.xml, foo_bar_baz.xml when special to activity/fragment foo Feb 16 10:04:57 neekers: thanks Feb 16 10:05:33 each underscore indicates descent into hierarchy and belonging to a hierarchy it means it's used by foo. If it's used by multiple places, I remove the prefixes which are incorrect Feb 16 10:05:36 one of the games there are using sockets like i suggested earlier Feb 16 10:05:41 yeah, whatever. :-P let me ask you something. is it possible to shoot photos using the camera of a device and then make those photos password-protected? not visible through the file manager? Feb 16 10:06:08 alankila cool...tnx! Feb 16 10:06:16 JimGreece: yes, password-based-encryption could be used to store the files Feb 16 10:06:30 there's a java class for it, since android 2.2 it probably even has good algorithms Feb 16 10:06:40 in 2.1 you had to use the openssl names for the algos Feb 16 10:07:16 cool. I will look up the documentation then. thanks Feb 16 10:08:09 no pm please Feb 16 10:08:25 lo ciento Feb 16 10:10:48 I have created an android library containing an Activity that loads R.layout.main (main.xml) Feb 16 10:11:10 I use this view in an app in an Activity that derives from this base Activity Feb 16 10:11:14 this app also has a main.xml Feb 16 10:11:25 will this conflict? should this work? Feb 16 10:11:34 * iivvoo has the impression the wrong main.xml is loaded Feb 16 10:11:44 name it soemthing else Feb 16 10:11:52 eventhour R should be different in the library / app Feb 16 10:12:10 myleetlayout.xml Feb 16 10:13:01 then there still might be a resource conflict Feb 16 10:13:10 e.g. in the lib, R.layout.myleetlayout will resolve to integer 123 Feb 16 10:13:23 which in the app points to "mylamelayout.xml" (randomly) Feb 16 10:13:31 I'll try it anyway Feb 16 10:13:37 but doesn't really sounds like the right solution Feb 16 10:14:03 o.o Feb 16 10:15:14 iivvoo: Resources in your main project override resources in library projects Feb 16 10:15:51 So if you have main.xml in both projects, only the one in your main project will be bundled Feb 16 10:16:02 oh, i missed the library part Feb 16 10:16:06 is there a max to how many chars a string will display when output in logcat? Feb 16 10:16:16 is there a simple way of clearing current bindings for intents? (so that the popup to chose which app should handle it pops up again)? Feb 16 10:17:24 mitch0: clear defaults for the app in settings -> apps Feb 16 10:17:48 ah, thanks Feb 16 10:19:36 SimonVT, ok good to know Feb 16 10:19:55 SimonVT, in that case, neekers' suggestion is a good one Feb 16 10:20:02 let's see if it works now :) Feb 16 10:20:08 Unless that is intended behavior, try to always prefix your lib project resources Feb 16 10:20:33 MyAwesomeLibrary => mal__main.xml Feb 16 10:22:41 right Feb 16 10:33:08 Hi guys, I've played a bit with WebView and I'm wondering whether the downloaded pages are temporarly saved on sd or other places where it can be saved or are they just kept in RAM? Feb 16 10:33:55 hey guys... whats STANDARD out ther on the cells.. 2.1 OR 2.2 ..pick one :D Feb 16 10:34:03 both Feb 16 10:34:06 ! Feb 16 10:34:16 I can imagine that when someone pushes the back button, the previous page won't downloaded again, but retrieved from the cache. Feb 16 10:34:31 oki... Feb 16 10:38:56 ffuuu emulator's json reader only takes 2624 characters... this is odd Feb 16 10:39:46 quit Feb 16 10:40:20 sorry. wrong message. :-P meant to post this in a different window Feb 16 10:54:42 how to check if a camera is present? <2.1 Feb 16 10:55:52 Wasn't there a time when Android devices were required to have a camera, and didn't "<2.1" fall within that time? Feb 16 10:56:24 * ndim <---- going from a very flaky memory Feb 16 10:57:46 well i read someting like that yes Feb 16 10:58:33 Wonderful Feb 16 10:58:54 2.3.x simulator has JS <-> Java bridge broken Feb 16 10:59:01 My app won't run on 2.2 Feb 16 10:59:17 4.0 simulator won't boot the same day Feb 16 10:59:35 That's the sorry state of android dev tools Feb 16 11:07:27 fpillet: sounds like you should just go back to bed Feb 16 11:07:36 nah, not my type Feb 16 11:07:59 the OS backend is very good, but UI stuff.. man that's not made for dynamic animations Feb 16 11:08:42 I'm constantly fighting the framework while trying to animate views that can transition between various rectangles. The whole layout stack is not thought for that scenario Feb 16 11:17:31 (it only works fine on hardware accelerated devices, where calling View.layout() does the right thing immediately) Feb 16 11:18:53 I have an activity which uses the location of the user. I want to be gentle on the battery, by not aquiring location updates when the activity is paused, using this code: http://pastebin.com/uyGcNiD8 - LogCat tells me that removeUpdates is called in the LocationManager, but the GPS-icon is still shown after i pause the activity. What am i doing wrong? Feb 16 11:25:35 maybe some other app is using the gps Feb 16 11:26:39 Hmm there shouldnt be Feb 16 11:28:27 hi all Feb 16 12:28:57 hi Feb 16 12:30:29 hi mike-d Feb 16 12:30:35 g Feb 16 12:32:11 screenshot of a game im working on https://plus.google.com/116031914637788986927/posts/GE3g3CMWnTF Feb 16 12:41:49 Awesome graphics, mikedg Feb 16 12:45:01 hi guys, what is the command to get a listview to only display full rows? or did i just dream that there is such a paramterer? Feb 16 12:45:34 SimonVT: thanks Feb 16 12:45:35 it was hard Feb 16 12:45:42 cace full rows? Feb 16 12:45:45 what do you mean Feb 16 12:46:06 cace, i would use a listadapter Feb 16 12:46:21 mikedg for a second i thought paratrooper Feb 16 12:46:21 I think you dreamt "full rows" Feb 16 12:47:23 this http://www.atarimagazines.com/compute/issue56/113_1_Paratrooper.php? Feb 16 12:47:24 ie, onlty display the line if it can be rendered in full Feb 16 12:47:31 o.O Feb 16 12:47:33 could there be a common reason for onPause to be invoked almost immediately once my activity is created? Feb 16 12:47:35 http://internettrash.com/users/corn_am_i/descrips/ptrooper.htm Feb 16 12:48:20 http://www.youtube.com/watch?v=CeyvWOigeTQ epic :) Feb 16 12:48:34 i know windows has that, perhaps i am getting my platforms mixed up Feb 16 12:48:37 wasted many hours on it :0 Feb 16 12:49:04 if this game actually turns out fun, im going to add multiplayer Feb 16 12:49:07 i may add multiplayer anyway Feb 16 12:49:16 since thats likely to make it more enjoyable Feb 16 12:54:19 anybody? what i want to do is this: have a layout (say lineary) and then add a bunch of text views to it below each other, as soon as we cant render the complete textview (since the layout isn't big enough) we don't render it Feb 16 12:55:47 cace: I think you will have to create your own layout / listview for that. the standard one will render the partial item. Feb 16 12:56:33 ok, and a custom view can't be placed in a remoteview unless we are on android 3.0+ i guess Feb 16 12:56:46 It can't at all Feb 16 12:56:54 well, thats not an option then :) Feb 16 12:58:27 hey, i'm looking for someone pretty familiar with fragments Feb 16 12:58:33 anyone here ? Feb 16 12:58:48 Ask your question, don't ask to ask Feb 16 12:58:54 Cinetik: ask neoakira Feb 16 12:59:05 he kowns well about fragments Feb 16 12:59:14 thanks Feb 16 12:59:22 you're welcome Feb 16 12:59:32 Cinetik, Ivru: just ask the questions publicly unless it's something private. that way all will learn something (perhaps) Feb 16 12:59:42 ok then Feb 16 13:00:15 yeah but highlighting neoakira is a good idea Feb 16 13:01:47 i have been working on a project for my training period and i'm using fragment. I have a Main class that process data and i have 2 fragments classes, one is a listfragment and the other a view fragment. But i really don't know where to put the list listener to perfom task such as changing the listfragment itself by another list. One thing to know is that i'm populating that list from a Feb 16 13:01:47 distant server Feb 16 13:03:58 Use an interface. Call back to the Activity, and let it handle the fragment transactions Feb 16 13:05:15 Hello, I'm implementing a 3d flip view, in one layout I have a view that extends from GLSurfaceView, the flip works fine if the view is not based on GLSurfaceView but otherwise when the flip is halfway through as soon as the GLSurfaceView based view is made visible the animation does not work and straight away displays the view instead of smoothly transitioning to it Feb 16 13:05:32 i'll try it, thank you Feb 16 13:10:01 Hi all...My company use 802.1x Wireless on WPA2-Enterprise with PEAP MSChapV2 and I'm trying to connect our company's Samsung Galaxy Tab (on Android 2.1) to the Wireless Enterprise APs but I can't the Galaxy Tab to connect the Wireless AP. I always get this: COnnecting --> Authenticating --> (and immediately) Disconnected. This happens to all 30x Galaxy Tab. Why is this happening? Feb 16 13:11:59 anyone has comment about my issue ? Feb 16 13:14:31 Hi guys, check this: http://pastebin.com/gLVzQt7i I try to get textview3 and textview4 next to each other, do I need to encapuslate those two in a horizontal linear layout for that? Feb 16 13:14:34 hi Feb 16 13:14:58 is there a way to determin if a item will fit inside a given container? Feb 16 13:15:13 this layout will be used for a list item Feb 16 13:15:28 cace, why? Feb 16 13:15:31 perhaps i should just make a seperate rendering engine for 3.0+ devices Feb 16 13:15:59 Number5: i have a linear layout that i want to put one or more text views into, but i only want to display items that can be rendered in full Feb 16 13:16:09 ie, say that the linera view is 50dp Feb 16 13:16:17 and the text view are 12dp Feb 16 13:16:24 ok Feb 16 13:16:24 then i want to add just 4 and not the fifth Feb 16 13:16:45 ooh ok, well than you have to do some math for that, I'm afraid Feb 16 13:17:05 it's not that difficult, but you have to put some effort to accomplish Feb 16 13:17:06 problem is that different devices renders text differently Feb 16 13:17:16 i am doing the math right now, but its not just good enough Feb 16 13:17:31 ie, the size of the text views vary Feb 16 13:17:54 I think in the initialization you should determine all the needed sizes and use one function to do the math for you Feb 16 13:18:11 still don't know how large the text views render Feb 16 13:18:16 There's some way to force the textview to measure Feb 16 13:18:19 Google that Feb 16 13:18:25 atleast i don't know of any way to figure that out Feb 16 13:18:27 Hi all...My company use 802.1x Wireless on WPA2-Enterprise with PEAP MSChapV2 and I'm trying to connect our company's Samsung Galaxy Tab (on Android 2.1) to the Wireless Enterprise APs but I can't the Galaxy Tab to connect the Wireless AP. I always get this: Connecting --> Authenticating --> (and immediately) Disconnected. This happens to all 30x Galaxy Tab. Why is this happening? Feb 16 13:18:46 SimonVT: problem is that you want the text to render at the size choosen Feb 16 13:18:47 hmmm, well that's painful part of programming, to figure out text sizes Feb 16 13:19:11 What do you mean? Feb 16 13:19:14 ie, the optimal solution would be to render the text box, then get its size and just keep on adding until there aint any space left Feb 16 13:19:40 SimonVT: forcing the size of the text view will make the text hard to read on some devices Feb 16 13:20:18 a little help please... Feb 16 13:20:43 ReGiStRaS -> #android Feb 16 13:20:49 anyway, check this: http://pastebin.com/gLVzQt7i I try to get textview3 and textview4 next to each other, do I need to encapuslate those two in a horizontal linear layout for that? Feb 16 13:21:33 if someone has some complex relative layout examples it would be great. Feb 16 13:21:41 yo anyone ? Feb 16 13:22:04 As I said, you should be able to force the view to measure Feb 16 13:22:17 As in, trigger onMeasure Feb 16 13:22:24 Then you can just getMeasuredHeight/Width Feb 16 13:23:24 Number5 relativelayout can be tricky. id suggest fiddling with it in eclipse layout designer Feb 16 13:24:26 I already done that, but couldn't figure out, so I came as a solution to embed another layout in it, but I rather ommit that. Feb 16 13:25:06 I mean avoid that Feb 16 13:42:36 * DarkRift brb Feb 16 13:47:35 happy lithuanian independence day! Feb 16 13:48:13 yes that! Feb 16 13:49:19 yes, check your /msg Feb 16 13:53:24 yo anyone ? :) Feb 16 13:53:39 tabman: Hi Feb 16 13:53:49 wilfish: hello :) Feb 16 13:53:57 wilfish: should I repeat my question ? Feb 16 13:54:05 tabman: Probably Feb 16 13:54:37 yo tabman Feb 16 13:54:58 I asked my question here to: http://stackoverflow.com/questions/9312350/android-3d-flipview-involving-glsurfaceview Feb 16 13:56:32 tabman: I've never working with ny of the Android GL stuff, honestly Feb 16 13:56:52 I've tried to find solution from Google without success. When I try to run tests it fails and says "Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'" If I delete test and copy old code to new and reset almost everything it works again. If I close emulator this happens again. Feb 16 13:57:45 argh Feb 16 13:57:53 * iivvoo has ended up in URI vs Uri hell Feb 16 13:59:08 Ok guys, now I managed to get this layout: http://pastebin.com/index/gLVzQt7i The only thing is to get textview 3 and 4 even in size. I try to avoid hardcoded values so it can fit on most devices. Feb 16 13:59:23 Anyone a good idea? Feb 16 13:59:45 even = equal Feb 16 14:00:01 you missing an import ukkopekka Feb 16 14:00:06 ukkopekka: ClassNotFoundException means exactly that. You might want to take a look at what class isn't found. Are you trying to test a Library? You'll actually need to make a dummy app that uses that library and test that. Feb 16 14:00:14 My English is not my main language, but today I make a lot of mistakes :S Feb 16 14:00:17 Number5: have you tried layout_weight already? Feb 16 14:00:29 Xperimental, not really :) Feb 16 14:00:35 Number5: I think you pastebinned the wrong thing Feb 16 14:00:47 and yes, use layout_weight Feb 16 14:00:50 both make it 0.5? Feb 16 14:00:56 make both 1. Feb 16 14:01:12 worse comes to worse, create a linearlayout, put both textviews inside of it, use layout_weight for the textviews in there. Feb 16 14:01:22 lov I guess now it's ok? http://pastebin.com/W2VRqvLd Feb 16 14:01:24 then layout that linearlayout inside your relativelayout as normal. Feb 16 14:01:39 if you want them to have the same size just use the same value. doesn't matter which one. Feb 16 14:02:09 yeah, you've got an imageview there too Feb 16 14:02:18 lov, I was also thinking about embedding a linear, but I thought to try first using without another layout within a layout, as this will be a list item Feb 16 14:02:31 Xperimental, hahaha funny answer Feb 16 14:02:33 er, wait, what Feb 16 14:03:06 this layout will be a list item Feb 16 14:04:49 textView3 has toRightOf imageView1. textView4 has toRightOf imageView1 and toLeftOf textView3 Feb 16 14:04:53 something doesn't make sense here. Feb 16 14:05:10 double check your layout relationships please. Feb 16 14:05:38 Have to avoid XML Relationship Incest Feb 16 14:05:56 xml incest is the worst, you get retarded schemas Feb 16 14:06:21 can we use anything other than .png? Feb 16 14:08:42 yes, there should be a list on d.android.com somewhere :| Feb 16 14:08:45 jpg and gif work Feb 16 14:10:24 oeh Feb 16 14:10:25 i Feb 16 14:10:29 should check that out Feb 16 14:11:20 xorgate: http://developer.android.com/guide/appendix/media-formats.html (I still had that open from when I looked it up a few seconds ago) Feb 16 14:11:36 cheers Feb 16 14:11:51 best not use .bmp Feb 16 14:12:11 yes please don't do this. Feb 16 14:12:24 Is there any reason not to use PNG? Feb 16 14:12:40 Except for JPG for photos? Feb 16 14:12:55 size Feb 16 14:13:04 ndim: whenever you don't have to care about loss in data Feb 16 14:13:06 i gotta stash a lot of pics in the apk :/ Feb 16 14:13:24 Hi Feb 16 14:13:58 it depends on what the resource is of. Feb 16 14:14:04 PNG is lossless, JPG is lossy. Feb 16 14:14:09 pngcrush and optipng can help Feb 16 14:14:11 Can your resources be lossy? If so, JPG might be better. Feb 16 14:14:19 etc Feb 16 14:14:27 yes, make sure you use things like pngcrush and optipng Feb 16 14:14:39 png actually has compression built into it, so if your pngs aren't compressed you might be wasting space Feb 16 14:14:46 (the tradeoff is the time to decompress it to read it) Feb 16 14:16:38 yeah PNGs: http://synchy.org/aD3mGmEFmCaxghDjsxq4dbWt4 Feb 16 14:16:55 When I use "fastboot boot boot.img" is poosible see the kernel output when is booting ? Feb 16 14:17:27 I see "HTC" white screen Feb 16 14:18:03 the pics are all cartoons like so http://www.tringa-paintings.nl/write/Afbeeldingen1/Wadwaaier-waaier_Content.jpg Feb 16 14:24:31 std0s: lov I'm making test for Evernote. I have Evernote apk-file and it seems to miss that file somehow. Where should that apk-file under testing lie? Feb 16 14:27:59 When I change the theme from the default to another theme from the standard collection by clickong the drop down list from eclipse it changes within eclipse but when resorts back to default theme inside an emulator..any ideas why? Feb 16 14:30:10 t432: You are just manipulating the viewer... Feb 16 14:30:23 ukkopekka: I have no idea how to test just an apk. Feb 16 14:30:47 ukkopekka: I don't even know how you're attempting to reference it. Feb 16 14:30:59 lov: I'm using Robotium. Feb 16 14:31:04 Right. How do i make it permanent? Feb 16 14:31:45 ukkopekka: sorry, I don't know how to test with Robotium. I'd recommend looking at the docs and the faqs. Feb 16 14:32:16 lov: It has "New Robotium test from apk" so I don't know either how this references to it. Feb 16 14:32:22 lov: ok Feb 16 14:32:44 Anyway guys, thank you for your help, I really appreciate it. Feb 16 14:33:41 everythingWorks: Do you know how to make the change permanent? Feb 16 14:47:21 t432 you need to define a style and tell your activities to use it Feb 16 14:47:56 solved. thx Feb 16 14:48:35 http://www.curious-creature.org/2009/03/04/speed-up-your-android-ui/ Feb 16 14:55:53 is there a layout in which i can stack views? Feb 16 14:56:05 framelayout Feb 16 14:56:07 define stack Feb 16 14:56:09 thanks Feb 16 14:56:23 2 buttons and a edit text over the middle Feb 16 14:57:02 you can do that in like...anything other than a linearlayout Feb 16 14:57:11 but your best bet is probably a RelativeLayout Feb 16 14:58:19 thanks Feb 16 14:59:22 How can I get kernel messages from "fastboot boot boot.img" command ? Feb 16 15:00:09 I need to put to the kernel somelike "console=ttyMSM2,115200n8" Feb 16 15:00:11 ? Feb 16 15:02:53 If im changing the background of a seekbar from a 9patch to a non-9patch, how do I get the seekbar to reset the scroll limits? Feb 16 15:02:59 Hi. How can i get a notification (etc.) when a person i call answers the phone? (using com.android.internal.telephony)) Feb 16 15:05:13 As4xk: I don't believe you can. If you find a way I'd be curious. Feb 16 15:06:01 As4xk: I believe as far as the phone is concerned as soon as the dial command is sent the call is initiated; ringing is just feedback to the user, it could be music or whatever else if they have a ringback. Feb 16 15:06:27 The phone app must get a notification since the timer for call duration only starts when the person on the other end answers. So it must be posible (at least on rooted phones) Feb 16 15:06:51 "must" Feb 16 15:07:19 Hm does it actually differentiate that? I'm surprised and was unaware. Well... you can get that code from the aosp and look Feb 16 15:10:51 As4xk: well there's people complaining it doesn't exist in the API. I'm going to guess it's not possible on a non-rooted device Feb 16 15:12:32 As4xk: telephonymanager seems to only provide offhook/ringing state to incomign calls. try listening to those tho and see. Feb 16 15:12:49 Ok. I'm on a rooted device (and could rebuild android from source) i'm not familiar with the aosp, do you know in which project i should look to find the phone app? Feb 16 15:15:40 could try that yes. But from what i understand from reading other people's experiences, the telephonymanager's ringing is when the phone is ringing because someone is calling my phone. Feb 16 15:17:48 As4xk: yeah, I beleive from reading it's for incoming not outgoing, but it's a simple enough test. Feb 16 15:21:09 dragorn: Yes. I will try that first. Thanks for your help though :) Feb 16 15:21:48 yeah; i didn't realize the dialer saw the state change. I'm betting it's linked into talking to the radio directly, so unless you make the dialer send an intent when it happens, you're stuck Feb 16 15:21:53 but that's a guess Feb 16 15:21:55 As4xk: you're going down the rabbit hole that is the telephony stack Feb 16 15:22:09 the majority of code you'll find requires that the app actually be the telephony app Feb 16 15:22:15 and/or the system service Feb 16 15:22:23 (or not even the system service but only the telephony service) Feb 16 15:22:40 there's a lot of stuff that's not exposed to the outside world by design Feb 16 15:22:48 yeah, intercepting anything telephony is a huge pain on android Feb 16 15:23:08 mostly because fucking with telephony brings in a whole world of potential trouble. Feb 16 15:23:38 lov: it does indeed. however, the android telephony stack does not all the things the users want Feb 16 15:23:51 so you have to fuck it back :> Feb 16 15:23:55 Ge0rG: that's true, but it's truly a can of worms to expose some of the other stuff. Feb 16 15:24:05 and/or may be illegal in some places Feb 16 15:24:13 (why can't I record call audio? legislation!) Feb 16 15:24:32 (why can't I disable the camera shutter sound programatically? legislation!) Feb 16 15:24:48 (also, perverts) Feb 16 15:24:53 perverts++ Feb 16 15:25:01 (why can't I record call audio? hardware!) <-- more accurate Feb 16 15:25:18 * Ge0rG would like to change the ringtone of an incoming call on-the-fly (i.e. from the android.intent.action.PHONE_STATE listener) Feb 16 15:25:39 evancharlton: yeaaah, but there'd probably be some sort of effort to expose it by now if it wasn't opening a tremendous can of worms. Feb 16 15:26:03 lov: in many cases it's physically routed on PCB, so... Feb 16 15:26:33 p_l: make it an android requirement that android be able to record call audio, or make it an optional feature. Feb 16 15:26:45 presto, hardware manufacturers fall all over themselves to add a "feature" Feb 16 15:27:16 I mean ffs we have barometers built in now. Feb 16 15:27:38 yeah, on two devices... out of ~500 Feb 16 15:28:03 two of the most recent devices yes. Feb 16 15:28:13 as time goes on it'll be a lot more common. Feb 16 15:28:20 (or not, we'll see I guess) Feb 16 15:28:44 what is a barometer good for, except for crowdsourcing weather data? Feb 16 15:29:08 measuring gas pressure as you sleep Feb 16 15:29:30 GPS Feb 16 15:29:39 the barometer can help figure out your altitude Feb 16 15:29:45 lov: who cares about altitude? Feb 16 15:29:50 .... Feb 16 15:29:52 I mean, except from some nerds Feb 16 15:29:53 Ah right, interesting Feb 16 15:29:54 mountain climbers Feb 16 15:30:05 the barometer is a means towards getting a faster GPS fix Feb 16 15:30:10 faster and more accurate Feb 16 15:30:22 lov: is it really? that'd be cool Feb 16 15:30:24 you can kind of guess at the x/y coords by cell tower strengths Feb 16 15:30:32 but the z coord you need something like the barometer for Feb 16 15:30:46 (of course what the pressure actually means depends on what the weather is outside; you may still need a network call to clarify things) Feb 16 15:31:32 (but if you have an idea what the pressure SHOULD be at ground level, you can figure out your rough altitude) Feb 16 15:35:09 if i have values-de and values-de-rAT, the latter will take precedence in Austria, correct?3. Feb 16 15:35:35 it will take precedence if the user's language is set to Deutsch (Austria) Feb 16 15:35:37 lov: if there's one thing manufacturers love, it's being told how to build their phones Feb 16 15:35:43 evancharlton: hah Feb 16 15:35:59 especially when it dictates which SoCs they can use Feb 16 15:36:03 that's the best Feb 16 15:36:09 the point is that there's a disincentive towards making the in-call audio available. It's considered a bug, not a feature. Feb 16 15:36:13 is that happening? Feb 16 15:36:17 who's dictating SoCs Feb 16 15:36:21 canadiancow|work: lov Feb 16 15:36:30 I dictate to my socks what color they may be Feb 16 15:36:35 I assume this is similar Feb 16 15:37:09 point is, tell the manufacturers "We'll reward you for making in-call audio available and shield you from legal liability" and they'll have no problem suddenly making it availble. Feb 16 15:37:59 there are some that have the ability to do that Feb 16 15:38:06 it's a cost thing, not a legal thing Feb 16 15:38:24 and, presumably, a design thing Feb 16 15:38:54 I don't buy the cost thing. Feb 16 15:39:01 I see what you did there Feb 16 15:39:02 especially when they can use it as a bullet point Feb 16 15:39:31 our board does -blah -blah -blah -blah -in-call-audio-routing -blah -blah -blah Feb 16 15:39:47 they'd be increasing the cost of a chip across the board so that 0.001% of their customers' customers can get some obscure functionality Feb 16 15:40:32 lets see Feb 16 15:40:34 my phone plays midi Feb 16 15:40:40 how many customers would you say use this? Feb 16 15:40:58 be honest. Feb 16 15:41:09 if the answer is higher than "zero" I'll actually be kind of surprised Feb 16 15:41:41 didn't android include a midi-like sound system? Feb 16 15:41:49 yes, that's what I'm referring to Feb 16 15:41:57 there's a lot of "features" that phones have that no one even uses Feb 16 15:41:59 lov: removing it would be a regression, though, correct? Feb 16 15:42:09 evancharlton: having it in the first place is a regression :P Feb 16 15:42:13 lov: :) Feb 16 15:42:39 and if I remember correctly, the midi synth is even some closed-source shit Feb 16 15:42:42 I spotted it one day Feb 16 15:43:56 and you are absolutely right, midi is not the sort of tech that makes a whole lot of sense, tracker sound formats and even flat out mono mp3 files are pretty competitive Feb 16 15:45:10 I honestly think that more people would use apps that do in-call audio monitoring or even in-call audio-modification than apps that do midi Feb 16 15:45:23 make an app that turns your voice into darth vader? Feb 16 15:45:30 INSTANT INTERNET GAZILLIONARE Feb 16 15:45:58 hell, there are already apps that do in-call voice recording using some really obscure workaround shit Feb 16 15:46:08 imagine how things would be with official support? Feb 16 15:47:43 alankila: actually, it was kind of tracker, since there's no synth Feb 16 15:47:53 Hello, I am trying to populate a GridView with some data dynamically. I have some code and was expecting getView() in Adapter to hit when my activity loads and data is loaded, but it does not happen. Can someone tell me what am I doing wrong? Here is the code: http://pastebin.com/Fc5aeUHB Feb 16 15:47:59 and the purpose was sound for games Feb 16 15:48:13 handling things like dynamic sound Feb 16 15:50:08 does anyone know where to find the AOSP res/layout folder? Feb 16 15:53:11 is there an android equivalent of LiveView? http://www.zambetti.com/projects/liveview/ Feb 16 16:01:16 does anyone know where in aosp the phone app is located? :) Feb 16 16:01:26 /system/app/ Feb 16 16:03:32 I1m sorry. i ment in the source tree. Not on the device Feb 16 16:03:54 Anyone has got a clue how I would get how much space the soft input keyboard is taking up ? Feb 16 16:04:17 Hello guys, I already asked this question a couple hours ago, if you have a webview in your app and you visit a site with some images in it, will these images cached on a filesystem or will it kept in RAM only? Feb 16 16:06:29 cache Feb 16 16:06:55 win12 Feb 16 16:06:57 oops Feb 16 16:07:21 mikedg, you mean cache like in RAM, I assume? Feb 16 16:07:47 im jus tmaking stuff up Feb 16 16:07:50 so I seem to have won a Lumia 800... Feb 16 16:08:16 so dianne hackborn said to call Thread.sleep() on the main thread Feb 16 16:08:21 related to touch events Feb 16 16:08:30 what sort of touch events? Feb 16 16:08:48 all...to prevent you from getting bombarded with events Feb 16 16:08:59 but sleeping the main thread seems....not good Feb 16 16:09:12 android is a hack Feb 16 16:09:22 hackborn is a hacker Feb 16 16:09:27 advice seems legit Feb 16 16:09:47 sleeping the main thread never seems legit Feb 16 16:09:56 Leeds, thats cool! how is it? Feb 16 16:10:45 isn't the touch thread different from main thread? Feb 16 16:11:12 not according to what my colleague says hackborn said Feb 16 16:11:23 can i buy an io ticket now? :( Feb 16 16:11:24 Wavesonics: haven't turned it on yet :) Feb 16 16:11:39 canadiancow|work: yeah, i got 3 for $600 each Feb 16 16:11:46 Leeds, WELL SHIT! get on it! Also, pics or it didnt happen :P Feb 16 16:11:51 paypal me vinblau@gmail.com Feb 16 16:11:57 lol Feb 16 16:11:58 ya ok Feb 16 16:12:11 600 seems reasonable though rihgt? Feb 16 16:12:15 they were what...550 last year? Feb 16 16:12:18 Wavesonics: https://plus.google.com/113204943296608641880/posts/JrM25L6SLaw :P Feb 16 16:12:31 i think, but they sold out before they went to full price Feb 16 16:12:32 lol Feb 16 16:12:51 oh yea so they were 450 Feb 16 16:12:52 niiice Feb 16 16:12:53 and i snuck by on the student rate ;) Feb 16 16:15:17 cool Feb 16 16:15:23 i just emailed them and said you lied last year Feb 16 16:15:30 one less person to steal my tickets Feb 16 16:15:38 i didnt lie... Feb 16 16:15:42 i was a student when i bought the ticket **** ENDING LOGGING AT Thu Feb 16 16:19:53 2012 **** BEGIN LOGGING AT Thu Feb 16 16:20:19 2012 Feb 16 16:21:11 hi guys. I am very sorry for the dummy question but.. how do i change runtime the android:background property in my layout.xml? Feb 16 16:21:39 View#setBackground_______() Feb 16 16:22:00 Anyone using Boxee? Feb 16 16:22:09 Hello all - Is anyone aware of the memory leak when loading HTML from the file:///android_asset/ on ICS? It seems to be copying over the webview into the JNI table (byte arrays) and losing the reference from there. Feb 16 16:22:25 webviews have leaked activities since forever Feb 16 16:22:28 canadiancow|work, i need to disable the background, not to change it. it is the same? Feb 16 16:22:42 Yeah they have - but this particular leak didn't exist pre 4.0 Feb 16 16:22:49 View#setBackgroundDrawable(null); Feb 16 16:24:15 To reproduce it, all that needs to be done is load any html file from the asset's folder that has a link to another file in the assets folder (image, js, css) - it leaks the entire page when it brances to load that resource **** ENDING LOGGING AT Thu Feb 16 16:24:35 2012 **** BEGIN LOGGING AT Thu Feb 16 16:26:17 2012 Feb 16 16:27:55 I'm willing to pay if anyone has some sort of fix for it Feb 16 16:29:38 pros599_: the fix is likely to involve recompiling webkit :P Feb 16 16:29:56 pros599_: which actually may not be the worst thing. You could always build your own copy of webkit and package it with your app. Feb 16 16:30:11 What about the native code webkit calls? Feb 16 16:30:22 .... package the shared libs too. Feb 16 16:30:26 >.> Feb 16 16:30:56 ._. Feb 16 16:31:02 yeah, I know. Feb 16 16:31:04 it's not GREAT. Feb 16 16:31:07 to be quite honest, I'm not even sure where the hell to start on that Feb 16 16:31:09 but I doubt that there's a quick fix. Feb 16 16:31:23 pros599_: download aosp, build it. Feb 16 16:31:36 canadiancow|work, thank you very much :) Feb 16 16:31:38 MONEY PLZ Feb 16 16:32:12 do I need a permission to play an inapp soundclick? Feb 16 16:32:29 no Feb 16 16:32:36 But possibly to access a file Feb 16 16:32:54 right, the music is stored in the app Feb 16 16:33:25 Then no, you shouldn't - but Feb 16 16:33:49 does anybody know why the holo themed dialogs don't wrap the content of their children? Feb 16 16:34:16 When I remove the dialog title it resizes to wrap the children Feb 16 16:34:18 You may need MODIFY_AUDIO_SETTINGS Feb 16 16:34:33 dunivan: if the resource is bundled with your app and you just want to play it, no, you don't need a permission. Feb 16 16:34:55 @lov - are you familiar with ndk & asop? Feb 16 16:35:02 aosp* Feb 16 16:36:19 pros599_: a little but not enough to reliably help you here Feb 16 16:36:31 pros599_: webkit is built as part of the regular aosp platform build Feb 16 16:36:39 you can probably figure out a way to bundle it out into something separete Feb 16 16:36:42 *separate Feb 16 16:36:54 I know that some apps actually do this; they include a copy of webkit so that they don't have to deal with shitty phone bugs Feb 16 16:36:59 Yeha Feb 16 16:37:00 Yeah Feb 16 16:37:07 I think that's the best way to go about it - Feb 16 16:37:19 I'll just download the source Feb 16 16:37:27 and use it for my own webkit :\ Feb 16 16:37:47 I'm a little confused on the NDK - i haven't dabbled a lot in to it - Any good guides? Feb 16 16:38:24 er, no ._. Feb 16 16:38:30 if you've done any C development, it won't be too terrible Feb 16 16:38:41 Yeah. that was the first language... Feb 16 16:38:42 the ndk DOES come with SIGNIFICANT documentation however. Feb 16 16:38:49 please do feel free to paruse it Feb 16 16:38:51 peruse? Feb 16 16:38:53 any one implemented ActionbarSherlock ? Feb 16 16:38:58 lol Feb 16 16:39:01 one of tose Feb 16 16:39:04 those* Feb 16 16:39:20 That's where I'm a little confused though Feb 16 16:39:22 The linking... Feb 16 16:39:27 Once I fix the issue in the NDK Feb 16 16:39:28 when i import the lib to my project. i get error saying http://i.imgur.com/ZTCU4.jpg Feb 16 16:39:33 (which I know where it is and how) Feb 16 16:39:49 (simple an array byte[] is alloc and never free in a loop) Feb 16 16:40:03 how do I get it to use that vs the default ? Feb 16 16:46:54 pros599_: if your app has a shared lib with the same name as something already on the system, I believe that dalvikvm defaults to your lib. Feb 16 16:47:16 harshamv: well your screenshot covered up the actual line of code Feb 16 16:47:23 harshamv: please PASTEBIN errors. Feb 16 16:47:39 anyway, you probably need to import the appropriate R file for that library Feb 16 16:48:01 make sure that you reference the library as an android library, and not as a java project. Feb 16 16:49:02 I have an activity which uses the location of the user. I want to be gentle on the battery, by not acquiring location updates when the activity is paused using this code: http://pastebin.com/hzBqj8Yc - LogCat tells me that removeUpdates is called on the LocationManager, but the GPS-icon is still shown (10+ mins) after i pause the activity. What am i doing wrong? Feb 16 16:50:00 I'm looking in to it a little further - Feb 16 16:50:12 See if I can get more details on this stupid bug Feb 16 16:50:23 (ノಠ益ಠ)ノ彡┻â”â”» Feb 16 16:52:41 lov: http://code.google.com/p/android/issues/detail?id=21355&q=webkit%20leak&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Feb 16 16:54:52 this too: http://code.google.com/p/android/issues/detail?id=21266 Feb 16 16:54:56 stupid browser Feb 16 17:00:38 Hey guys i have this eerors that some people are reporting Feb 16 17:00:58 it seems that i try to close a window that s not there on the post execute Feb 16 17:01:27 so don't do that? :) Feb 16 17:02:10 evancharlton: but i do a test before if (progDialog.isShowing()) { Feb 16 17:02:33 evancharlton: this problem seems to appear only with htc sensation Feb 16 17:03:12 so i am really confused Feb 16 17:05:21 Surely you are using showDialog/dismissDialog, and not calling show()/dismiss() on the dialog yourself, right? Feb 16 17:06:15 dont call me shirley! Feb 16 17:07:26 ^_^ Feb 16 17:07:58 SimonVT: no i am sure, i am creating it on the o preexecute progDialog = new ProgressDialog(mContext); Feb 16 17:09:06 SimonVT: and i hate when people that the review as a bug report grrrr Feb 16 17:09:46 Okay im going to get some tea. Feb 16 17:10:17 hi mates Feb 16 17:10:24 lyxus: pastebin how you're creating/destroying the dialog Feb 16 17:10:34 does anybody code with Titanium? Feb 16 17:10:58 link? (curiosity) Feb 16 17:12:34 evancharlton: http://pastie.org/3395737 Feb 16 17:17:02 evancharlton: do you see somehting weird ? Feb 16 17:18:09 guys, how to open a file as root? Feb 16 17:18:24 hi Feb 16 17:19:15 is it posible to send files from a PC to an Android Device through USB? programatically? Feb 16 17:19:57 i mean having a USB application in both sides.... perform transactions between those Feb 16 17:19:59 warptrosse: define: programatically Feb 16 17:21:11 lyxus, write two applications (one for pc and other for android) and transfer data like a TCP server/client... Feb 16 17:21:31 lyxus, but through USB Feb 16 17:21:58 err Feb 16 17:22:01 you can do TCP over USB Feb 16 17:22:41 guys, i can run a script as root, but how to open a file as root? im making a file browser :) Feb 16 17:22:53 canadiancow|work, so i will need to write a TCP client/server... and it is all? Feb 16 17:23:55 http://www.tachyondev.com/android/WaveTest.png Feb 16 17:23:57 sweet.. Feb 16 17:24:20 warptrosse, you CAN do that - you dont need to Feb 16 17:24:25 and i have no idea about USB Feb 16 17:26:11 canadiancow|work, the thing is: I have an application in my phone called MYAPP... if i connect the phone to my PC using a USB cable, I want to perform updates procedures.... sending new files from PC to the Phone Feb 16 17:26:18 canadiancow|work do you have any suggestion? Feb 16 17:26:31 no Feb 16 17:26:42 anyone have suggestions? Feb 16 17:27:43 warptrosse: is it big files ? Feb 16 17:28:04 lyxus, yes Feb 16 17:28:36 warptrosse: 1Go 2Go ? Feb 16 17:28:43 you want to distribute that ? Feb 16 17:29:18 lyxus, no Feb 16 17:29:37 lyxus, I just need to upload it to the phone... and it is all Feb 16 17:30:01 just one time ? or mutiple time Feb 16 17:30:34 lyxus, each time i connect the device to the computer... Feb 16 17:31:13 lyxus, the application in the computer will check the version of the device application... and then send the needed files Feb 16 17:31:30 f....stupid users and their Market comments: "blablabla...doesn't work. Please fix!". As if a 1 liner comment is sufficient to understand their shitty issue. Feb 16 17:32:06 warptrosse: the think i would think like this is just plug your cell to your computer and put it on your sd card, and have your app in your cell check the data in the sd card Feb 16 17:32:17 bubbleguuum: i feel the pain ! Same thinkg here Feb 16 17:32:29 bubbleguuum: and i am fighting with this htc sensation crap Feb 16 17:33:14 lyxus, yes, but i need to disable that functionality Feb 16 17:33:35 lyxus, the user wont be able to use the phone as a mass storage device Feb 16 17:33:54 lyxus, wont be able to interact with the phone using the USB Feb 16 17:34:35 bubbleguuum: "App doesn't download, shitty devs, 1 star" Feb 16 17:34:39 fuck you buddy. Feb 16 17:34:45 I hope you download my fist Feb 16 17:34:50 heh Feb 16 17:35:07 i dont think you should be able to rate an app less than 5 without sending an email to the dev Feb 16 17:35:07 DEVELOPER RAGE !!! Feb 16 17:35:18 and i think the requirements for the email should increase as the star rating goes down Feb 16 17:35:21 canadiancow|work: disagree. Sometimes apps legitimately suck. Feb 16 17:35:28 I just think you should have to get a permit to post on the internet. Feb 16 17:35:32 lol Feb 16 17:35:41 warptrosse: you said you will not distribute it.... Feb 16 17:35:44 I've had this position for 15 odd years and I'm not abandoning it now. Feb 16 17:35:57 wow you're old Feb 16 17:36:00 lyxus, yes... i wont publish it :) Feb 16 17:36:00 lov: canadiancow|work i think the best one are the one not finished !and released Feb 16 17:36:06 lyxus, it is for internal use Feb 16 17:36:32 warptrosse: then have it as an internal procedure that you have to put it with usb and upgrade remvoing the usb Feb 16 17:36:35 canadiancow|work: did canada only get the internet in 2005? Feb 16 17:36:59 15 years ago i was not in any position to dictate who should be allowed to post Feb 16 17:37:09 lyxus, mmm Feb 16 17:37:14 15 years ago i was 8 Feb 16 17:37:14 well neither was I but I still held the view. Feb 16 17:37:17 lol Feb 16 17:37:24 lyxus, i was thinking in sending packets through adb Feb 16 17:37:25 ok well you're definitely younger than I am. Feb 16 17:37:56 warptrosse: your call.. but will be harder Feb 16 17:38:46 lyxus, yes I know... but a requirement is that it must be automatic... you connect the cable... and update starts Feb 16 17:43:06 Hello, Is there a way to log jni calls in a java app? I get problems with opengl and I'd like to know what is sent to GPU.Can it be done? Feb 16 17:44:02 Is there a list of styles, such as "Widget.Holo.Light.ActionBar"? Feb 16 17:48:18 Look up R.style on the dev site Feb 16 17:48:21 wtf. I have a Textview, and it does break in the middle of the word like "somewor" and in the next line "d" Feb 16 17:48:36 how can I make it break at a whole if its not big enough ? Feb 16 17:52:41 thegrinch1: yes, you can link against the logging lib iirc Feb 16 17:53:32 has any one implemented CalendarView ? Feb 16 17:53:37 thegrinch1: #include Feb 16 17:53:53 __android_log_print(.....) Feb 16 17:54:14 . Feb 16 17:59:25 Anyone figure out how to get media not to show in the gallery with ASUS? the .nomedia doesn't do anything. Feb 16 18:00:22 this makes me want to vomit http://www.reddit.com/r/Android/comments/prwfu/report_google_to_launch_android_50_jelly_bean_in/ Feb 16 18:02:39 What, you dont like jelly beans? Feb 16 18:02:39 the fucking idiotic commenters Feb 16 18:03:43 i want kulfi Feb 16 18:05:57 roger_padactor: if .nomedia doesn't work then something is wrong with ASUS's code, not yours. Feb 16 18:06:03 check on a couple other phones/devices/emulators Feb 16 18:06:04 And I want my code to work Feb 16 18:06:13 mikedg what are people saying that you dont like? Feb 16 18:06:18 But some things are just not meant to happen :| Feb 16 18:06:20 they are believing this dumb shit Feb 16 18:06:33 ill eat my hat if the next release dual boots chrome os and android Feb 16 18:07:02 oh Feb 16 18:07:03 lol Feb 16 18:07:08 why would you release a full chrome browser Feb 16 18:07:10 and then do that Feb 16 18:07:49 I thought it was windows 8 and android :p Feb 16 18:07:50 * hackkitten has found a possible ICS bug.. Feb 16 18:07:56 anyone else have this error? https://plus.google.com/u/0/114822401067576646327/posts/1kUkqbq9Cwt Feb 16 18:08:15 stop just trying to get people to follow you Feb 16 18:08:41 o.o Feb 16 18:08:52 ICS has 0 bugs Feb 16 18:08:53 I got the stack trace on there >.> Feb 16 18:09:23 i dont think anyone here actually uses open gl Feb 16 18:09:41 it's related to the hardware accelerated drawing Feb 16 18:09:47 i use opengl!!! Feb 16 18:09:53 :D Feb 16 18:09:54 does it work if you turn it off Feb 16 18:10:02 canadiancow|work to the rescue Feb 16 18:10:15 actually thats a good point mikedg Feb 16 18:10:21 hackkitten, try disabling hardware accel Feb 16 18:11:04 they're not my devices, but I will recommend it to the client Feb 16 18:11:29 lov: anyway around it? Feb 16 18:13:09 roger_padactor: where do you work Feb 16 18:13:12 roger_padactor: reread what I wrote please :> Feb 16 18:13:38 hackkitten: you can disable hardware accel per activity and even per view Feb 16 18:13:39 you said its ASUS fault not mine... Feb 16 18:13:45 roger_padactor: right. Feb 16 18:13:52 so if asus fucked this up, you're probably stuck. Feb 16 18:14:12 lov > ah, okay.... that might work then Feb 16 18:15:58 hackkitten: that was a ploy to get me to look at your g+ account Feb 16 18:16:02 .... and it worked >_> Feb 16 18:16:12 yay ;D Feb 16 18:16:13 :P Feb 16 18:16:29 more like a case of not wanting to repaste it on pastebin, but yeah ;) Feb 16 18:16:54 yeah, I don't know why opengl might be crashing with NPE for that, but you could always try disabling HW accel for that activity or even that bitmap. Feb 16 18:17:09 you could always peek at the source and see if there's an underlying problem that can be fixed. Feb 16 18:17:41 * hackkitten nods Feb 16 18:17:56 I'll have to find a testing victim with an ICS device Feb 16 18:18:18 Use an emu Feb 16 18:18:24 even though the GL goes through software, the result is the same. Feb 16 18:18:34 yeah Feb 16 18:18:38 just very, very slowly :D Feb 16 18:18:38 (well down to the actual GL implementation layer but that's aside the point) Feb 16 18:18:46 well you only need to go far enough to crash. Feb 16 18:19:00 even booting ICS on emu takes like ten minutes min :( Feb 16 18:19:28 ah well :) Feb 16 18:19:36 here's a nickel, buy a new computer Feb 16 18:19:37 should be enough to prove the point, I guess Feb 16 18:20:02 thanks ;) Feb 16 18:20:12 * hackkitten runs an X2 4450e system :D Feb 16 18:22:26 i can boot ics pretty quickly Feb 16 18:30:19 canadiancow|work > but you have a real system :D Feb 16 18:32:20 a handful of krays Feb 16 18:32:33 running arm chips Feb 16 18:32:37 built out of real arms Feb 16 18:32:43 :) Feb 16 18:32:47 and you might just boot it in less than a minute Feb 16 18:33:04 wow, Android 4.0.3 is API 15 and 4.0 14? Scary Feb 16 18:33:48 Does webview supports https? Feb 16 18:34:11 hackkitten, why si that scary? Feb 16 18:34:23 it's almost legal Feb 16 18:34:23 hello , can anyone help me with a small matter Feb 16 18:34:32 2.0.0 was 5, 2.0.1 was 6 Feb 16 18:34:36 overburn: not if you don't ask a question, no Feb 16 18:34:39 how do i develop for droid without using eclipse? i hate it Feb 16 18:34:51 ^_^ haha use intellij Feb 16 18:35:00 :) Feb 16 18:35:01 intellij is bonerlicious Feb 16 18:35:07 best IDE ever Feb 16 18:35:13 is the android support good? Feb 16 18:35:18 its good like wood Feb 16 18:35:21 canadiancow > more like that they changed a lot in 3 super-minor revisions D: Feb 16 18:35:40 hackkitten: no, more like they just added an API Feb 16 18:35:48 i wanted something more along the lines of the old text editor , no ide Feb 16 18:35:55 * hackkitten installs 4.0.3 libs and image for testing ICS now... Feb 16 18:35:55 overburn: vim Feb 16 18:35:55 even the addition of a constant necessitates an API version bump, hackkitten Feb 16 18:36:03 oh joy Feb 16 18:36:15 well, doing the API 15 test, then :3 Feb 16 18:36:26 hackkitten: an API version bump implies nothing about the number of changes within said delta Feb 16 18:36:33 mikedg: i know text editors, i'm just not sure how i would go around and pack them Feb 16 18:36:37 *the app Feb 16 18:36:43 use the command line Feb 16 18:36:45 and what file i absolutely need and such Feb 16 18:36:49 any guides on that? Feb 16 18:36:51 read d.android.com Feb 16 18:36:53 *files Feb 16 18:36:57 its somewhere on there Feb 16 18:37:03 ah okay Feb 16 18:37:05 thanks mate Feb 16 18:37:08 no problemo Feb 16 18:37:11 i thought they only put guides for eclipse Feb 16 18:37:11 heh Feb 16 18:37:43 evancharlton > it still frightens me okay? :P Feb 16 18:37:49 * hackkitten is easily scared :P Feb 16 18:38:25 hackkitten, the market dev console says my app works on api level 16 Feb 16 18:38:30 does that scare yoU? :P Feb 16 18:38:31 so after all these years, i just finally discovered that the monster in Adventure is a fucking dragon Feb 16 18:41:25 yay, dragon~ Feb 16 18:41:37 canadiancow|work > I'm terrified ;) Feb 16 18:41:44 hello hackkitten :) Feb 16 18:43:21 also, is there a way to develop purely in c++ or other languages? no java that is ? Feb 16 18:43:39 overburn: There's the NDK. Feb 16 18:46:20 jfpoole: yeah but i still need to use java to bootstrap my code Feb 16 18:46:31 :( Feb 16 18:47:03 overburn: I thought there were NDK samples that included little, if any, Java code. Feb 16 18:47:19 oh , hmm had no idea they changed it Feb 16 18:47:21 thanks mate Feb 16 18:48:17 oi os x 8 gatekeeper - it has begun Feb 16 18:49:09 hi g00s :D Feb 16 18:49:18 hi hackkitten :D Feb 16 18:49:22 :3 Feb 16 18:49:23 http://www.tachyondev.com/android/WaveTest.png .. what do you think guys? Feb 16 18:49:32 (seek bar) Feb 16 18:50:21 not bad Feb 16 18:50:26 looks good Feb 16 18:50:32 VJTachyon: nice - where is the thumb thingy ? Feb 16 18:50:41 does the Android/data/ dir ever get erased ? Feb 16 18:50:43 oh at the beginning hold on Feb 16 18:51:17 I built a custom listview and listadapter in my app, it's fed with an ArrayList. It populates just fine, but when I scroll quickly the contents of the ListView get scrambled up and don't stay in order, any ideas? Feb 16 18:51:30 okay reload the picture Feb 16 18:51:50 bad implementation Feb 16 18:52:03 g00s: better? Feb 16 18:52:20 Ravenheart: what do you mean? Feb 16 18:52:27 VJTachyon: yeah - but the buttons have a very 3d effect, yet the thumb thngy does not (inconsistent) Feb 16 18:52:34 that's the waveform view right? Feb 16 18:52:42 just my preference, i like flat 3d w/o 3d effects Feb 16 18:52:43 you haven't written it properly Feb 16 18:52:51 flat 2d rather Feb 16 18:52:59 i think i agree with g00s Feb 16 18:53:05 hmm Feb 16 18:53:09 emossed buttons are so web1.0 Feb 16 18:53:14 heh Feb 16 18:53:24 they are taken right off a dj mixer Feb 16 18:53:28 along with the dj slider Feb 16 18:53:34 I can't see anything wrong with how I wrote it.. Do you have a place I should start looking to find where I went wrong? Feb 16 18:53:53 Is netbeans okay for android app development? Feb 16 18:54:39 never tried Feb 16 18:55:12 the buttons are from a mixer? they look like the post-original winamp skin circa 2003 Feb 16 18:56:02 * hackkitten takes a nap while the ICS emu instance starts~ Feb 16 18:56:23 any tips on how i get the currently running apps? Feb 16 19:01:42 is there a way to override layout attributes of a layout included in another layout via the tag? Feb 16 19:01:54 I want a Nexus Tablet... Feb 16 19:02:10 say I have a specific view which I want to override its value how would i do that? Feb 16 19:07:23 cool http://www.gizmag.com/aqua-tek-s-iphone-case/21479/ Feb 16 19:08:00 i think the pink camo is for mikedg Feb 16 19:08:13 how do i get my window to pass touch on touch events? Feb 16 19:08:16 hackkitten gets the leopard one Feb 16 19:08:55 sweet thanks g00s Feb 16 19:08:59 when can i expect it Feb 16 19:09:15 not sure, sounds like a kickstarter type thing Feb 16 19:11:28 i'm surprised os x 10.8 is coming out so soon, i just installed 10.7 :/ Feb 16 19:11:37 Fick it Feb 16 19:11:43 I'm done Feb 16 19:12:07 (ノಠ益ಠ)ノ彡┻â”â”» Feb 16 19:12:11 This whole time Feb 16 19:12:19 All I needed to do Feb 16 19:12:28 was load from the SdCard... Feb 16 19:12:34 Webview works perfectly now Feb 16 19:12:40 You can't load from assets. Feb 16 19:12:42 I'm done. Feb 16 19:12:47 4 freaking days on this Feb 16 19:12:48 g00s > of course :3 Feb 16 19:13:06 g00s > Install Windows, far fewer updates ;) Feb 16 19:13:17 Thanks for the help lov! Feb 16 19:13:21 np Feb 16 19:13:31 Why I thought to try the freaking SD ... No clue Feb 16 19:13:33 :\ Feb 16 19:13:55 g00s: Lumia 800... Feb 16 19:14:21 Lumia 900 :) Feb 16 19:14:34 Leeds: haven't seen you in a while, how have you been ? Feb 16 19:15:22 I've been around and about... traveling last month, working and flathunting this month (agreed to *only* a 22% increase on existing flat today) Feb 16 19:15:30 also, Lumia 800 today... :) Feb 16 19:15:40 oh, you got one ! Feb 16 19:15:46 22%??? Feb 16 19:15:48 holy fuck Feb 16 19:15:52 that's all regulated here Feb 16 19:15:54 i have a view that im adding to the system window that takes up the full screen, now do i keep my view from consuming the touch events? Feb 16 19:15:59 it's rare that they're even allowed a 2% increase Feb 16 19:16:00 (would would think this would be default) Feb 16 19:16:13 g00s: freebie :D Feb 16 19:16:28 holy shit, they were going to raise the price of your flat by 22% ? Feb 16 19:16:31 canadiancow: very unregulated here, and that sort of increase is quite normal, unfortunately Feb 16 19:16:43 no, they were going to raise it by 27% and I argued down a bit Feb 16 19:16:47 but i would assume that there are people willing to pay it, right? Feb 16 19:16:54 its not regulated here in the us, and things are dicy now that its not a renter's market Feb 16 19:16:56 otherwise they're going to have an empty unit Feb 16 19:17:13 Is it posible to get the ids of view that were included in another layout via tag? Feb 16 19:17:28 canadiancow|work: actually, here in the US software is pricing rental property much like airline tickets Feb 16 19:17:34 g00s: well, there are some places with rent control, and some states have rental price controls Feb 16 19:17:35 yeah, to be honest what we were paying before was quite a long way below the current market Feb 16 19:17:45 in NJ iirc you can't raise the rent more than 10% every year Feb 16 19:17:48 http://www.ltb.gov.on.ca/en/Key_Information/STDPROD_089489.html Feb 16 19:17:51 is it possible to use the system password store for own passwords on android? Feb 16 19:17:59 though if your tenant leaves, you can make the new rent whatever you want. Feb 16 19:18:13 i spent $200 on dog last night Feb 16 19:18:16 bah Feb 16 19:18:16 essentially, here you can ask for whatever the market will bear... Feb 16 19:18:17 lov: i grew up in NJ :/ Feb 16 19:18:27 Gsingh: sure, just use findViewById as normal. Feb 16 19:18:53 sorry I forgot to specify in the XML itself Feb 16 19:19:02 erm Feb 16 19:19:03 I know i can use findviewbyid Feb 16 19:19:03 so yea in 2011 they were allowed to increase by 0.7% Feb 16 19:19:12 if you don't know if the id exists yet, you can always do @+id instead of @id Feb 16 19:19:13 I don't think it's possible Feb 16 19:19:14 and before that, 2.1%, 1.8%, 1.4%, 2.6% Feb 16 19:19:18 it doesn't hurt to create the id if it already exists Feb 16 19:19:22 anyway, not particularly impressed by the 800, even for a free phone :) Feb 16 19:19:22 ids don't have to be globally unique Feb 16 19:19:58 lov: what do you mean create the id? Feb 16 19:20:00 Leeds: it was not well received , dunno if it was a half assed attempt Feb 16 19:20:11 sorry I dont quite follow.. Feb 16 19:20:15 plus i don't think it was ever available here in the us, at least not initially Feb 16 19:20:46 the poor performance of the lumis 800 in europe was interesting Feb 16 19:20:56 canadiancow|work: that just wouldn't fly here - there's pretty much an ongoing bubble, lack of supply of decent places, flood of demand for new places for investment - not to mention standard agents terms are half-month commission from landlord and tenant, which makes moving not-cheap Feb 16 19:21:18 agents? for a rental? Feb 16 19:21:28 yup Feb 16 19:21:44 Gsingh: when you write @+id/.... that creates whatever the ID is, if it doesn't already exist. Feb 16 19:21:53 @+id = create and use, @id = use Feb 16 19:22:12 I THINK that it's totally valid to do this outside of android:id Feb 16 19:23:32 static abstract or abstract static Feb 16 19:25:59 these agents seem like the typical cretins which implants itself in the system like a barnicles, extracting value Feb 16 19:26:28 Leeds: sounds like a good opportunity for disruption and disintermediation Feb 16 19:26:49 lov: something like this? http://pastebin.com/fgfGxbS2 Feb 16 19:27:11 g00s: too entrenched at the moment Feb 16 19:28:09 anyone know if the stuff in this book applies to android at all ? Feb 16 19:28:11 http://www.amazon.com/Java-Performance-Charlie-Hunt/dp/0137142528 Feb 16 19:28:25 seems more like using the tooling specific to the oracle jvm Feb 16 19:29:01 ..... no. Feb 16 19:29:59 Gsingh: ... Feb 16 19:31:19 thanks lov ill try it now Feb 16 19:34:38 any experiences with Scala development on Android? Feb 16 19:37:09 etuleu: you can ask pfn, he has done a bit of that and seems knowledgeable Feb 16 19:37:30 When creating a website for an Android (or iPhone) device, what are the tricks for getting and setting the width of the device/page? Any clever way I can e.g. decide that my page must be only 360 pixels wide, and then have my Android phone automatically zoom so that the page fills the display width? Feb 16 19:37:57 g00s, great, thanks! Feb 16 19:38:26 indeed Feb 16 19:38:36 pfn, oh hey :) Feb 16 19:38:38 mr_lou, see CSS media queries Feb 16 19:39:02 and meta viewport tags Feb 16 19:39:19 Mavrik, Thanks Feb 16 19:39:29 pfn, I'm interested in writing some parts of my app in Scala Feb 16 19:39:33 etuleu, scala is an actually pleasurable development experience on android Feb 16 19:39:49 pfn, is it slow to start? I read something about that Feb 16 19:39:55 etuleu, it's slow to build Feb 16 19:39:57 not slow to start Feb 16 19:40:02 etuleu, qicr is written entirely in scala Feb 16 19:40:17 so is recontrolr, but that was more of a learning-to-scala kinda thing Feb 16 19:40:59 https://github.com/pfn/recontrolr Feb 16 19:40:59 are these open source? Feb 16 19:41:04 I published source for recontrolr, not for qicr Feb 16 19:41:10 awesome, I will take a look Feb 16 19:41:15 after I make ~1000 or so sales on qicr, I'll open-source it Feb 16 19:41:25 I also haven't updated recontrolr to build using the new sdk... Feb 16 19:41:43 is the apk larger? Feb 16 19:41:56 etuleu, it is larger Feb 16 19:42:07 qicr is about 700kb including about 350kb in a font... Feb 16 19:42:40 recontrolr is about 500kb, and that includes embedding rhino (javascript) Feb 16 19:43:41 that's not too bad Feb 16 19:44:00 do you know how much larger scala makes it? I guess it depends on what scala libraries you use also Feb 16 19:44:15 I assume you package only the required libraries Feb 16 19:44:24 not all the standard scala libs Feb 16 19:45:12 etuleu, need to proguard when publishing Feb 16 19:45:22 for development, you can install the scala libraries to your device (if rooted) Feb 16 19:45:33 so you can iterate quickly if you disable proguard for development Feb 16 19:45:44 that's cool Feb 16 19:45:54 * pfn doesn't have the scala libs installed Feb 16 19:45:58 so I proguard every time Feb 16 19:46:05 takes ~30 seconds in a delta build using ant Feb 16 19:46:13 sbt can make it faster, but I have no idea how to use it Feb 16 19:46:16 30 secs? Feb 16 19:46:21 I see, that's a bit slow Feb 16 19:46:23 or .30 secs? Feb 16 19:46:26 30 Feb 16 19:46:36 proguard takes some time, compilation takes some time, etc. Feb 16 19:46:57 yick Feb 16 19:47:03 dex, aapt and apkbuild take some time as well Feb 16 19:47:13 I guess sbt does some stuff in parallel which might help Feb 16 19:47:19 Hey guys, I am iterating through a Cursor to turn each row into a list. I am currently using a nested loop to step through each column of each row and putting this into a List>. Is there a nicer way to do this? Feb 16 19:47:33 sbt does stuff in parallel as well as doing continuous compilation Feb 16 19:47:46 EasyAt: either make a custom container type Feb 16 19:48:09 and store the stuff in an array, or make your own custom multi-dimensional array arapper Feb 16 19:48:10 Mavrik, any time you generate an apk is gonna take at least ~15 seconds or so Feb 16 19:48:26 Ah, I suppose I could make a struct and just have a list of that struct Feb 16 19:48:31 etuleu, well, comparatively, my smaller java android apps are all well under 50kb, heh Feb 16 19:48:35 pfn, yeah, but that's not during development Feb 16 19:49:24 Mavrik, during development, generating a debug apk takes ~15 seconds or so Feb 16 19:49:53 pfn, oh wow so that seems like 10x bigger with scala Feb 16 19:50:15 that's alot of time compared to 2 seconds when doing Java :\ Feb 16 19:50:35 etuleu, it's an amortized cost Feb 16 19:50:38 Mavrik, I think ant takes more than 2 secs to deploy to a phone Feb 16 19:50:41 Mavrik, it's not 2 seconds Feb 16 19:50:47 unless I'm doing something wrong Feb 16 19:50:58 2 seconds for the /compile/ step Feb 16 19:51:23 anyway, ant debug without proguard takes ~5 seconds for a delta build Feb 16 19:51:29 *shrug* Feb 16 19:51:44 running a dev build with Eclipse takes about 2 secs to copy/startup on my machine Feb 16 19:51:59 so those numbers look like they kill all the speed you gain from developing in Scala Feb 16 19:52:15 * pfn shrugs Feb 16 19:52:23 I don't deploy to device every 5 seconds to test a change Feb 16 19:52:24 get a better pc np Feb 16 19:52:58 Mavrik, eclipse compiles every time you save probably which is why you save time when you deploy Feb 16 19:53:04 ok... I've spent three days trying to get this darn HelloAndroid app working.. but I can't get past getting the emulator to load.. it just freezes w/ a blank screen and I have to use sudo kill to get rid of it... what gives? Feb 16 19:53:15 Mavrik, if you take out the proguard step, builds take ~10 seconds Feb 16 19:53:33 etuleu, yeah, but that compile phase doesn't take 15 seconds either, it's like a second or so if you don't do a clean Feb 16 19:53:36 if i only change java, rebuilding is instant Feb 16 19:53:37 etuleu, the size difference isn't quite so huge... qicr and recontrolr are much larger apps than the things I've written in java Feb 16 19:53:42 or even less Feb 16 19:53:42 if i change a resource, i go downstairs and get a drink Feb 16 19:53:47 likewise canadiancow|work Feb 16 19:53:50 yeah Feb 16 19:53:59 rebuilding resources takes a moment Feb 16 19:54:03 Indeed canadiancow|work Feb 16 19:54:07 6 lib projects = long builds Feb 16 19:54:11 from ctrl+s to app running on my phone is maybe 3-5 seconds Feb 16 19:54:38 pfn, what build tool do you use for scala? Feb 16 19:54:46 like I said, I'm using ant right now Feb 16 19:54:47 which sucks Feb 16 19:54:47 do we still have that rule where if someone pm's me randomly with permission that they get banned? Feb 16 19:54:47 Arg.. Feb 16 19:54:50 I just haven't figured out sbt Feb 16 19:54:54 I see Feb 16 19:56:09 Anyone ran into the same issue I'm having w/ my emulator in the past? Feb 16 19:57:46 etuleu, if you are starting a brand new project, using sbt is easy Feb 16 19:58:16 do you know if ics native action bar is supposed to handle orientation changes also if the activity has the android:configChanges="orientation"? Feb 16 20:02:20 hrm... I can't make this app crash =/ Feb 16 20:02:31 isn't that a good thing Feb 16 20:02:38 ya right? Feb 16 20:02:44 not if you're trying to fix a bug some people are having Feb 16 20:02:46 :P Feb 16 20:02:52 need to replicate it Feb 16 20:02:53 rciovati, what do you mean, it can't load up different orientation resources Feb 16 20:02:58 on 4.0.3 it won't crash Feb 16 20:03:01 hackkitten, well, don't you have the stack? Feb 16 20:03:02 maybe they're using 4.0... Feb 16 20:03:05 yes Feb 16 20:03:07 anyone here work with andengine gles2 Feb 16 20:03:12 then just fix it for that instance :p Feb 16 20:03:13 hooray, 4.0.3 fixes everything :D Feb 16 20:03:20 eplewis89 > just 1.1, I think Feb 16 20:03:27 Wavesonics > :) Feb 16 20:03:54 * eplewis89 shrugs Feb 16 20:03:55 oh well Feb 16 20:05:03 hackkitten > just discovered #andengine, maybe someone there can help Feb 16 20:05:55 pfn, thanks a lot for the tips! I will let you know what I find as well Feb 16 20:06:59 synic also recently started doing scala on android Feb 16 20:07:05 and is reportedly a happy camper Feb 16 20:07:16 true story Feb 16 20:07:48 https://gist.github.com/1763017 Feb 16 20:07:52 https://gist.github.com/1838359 Feb 16 20:08:01 some interesting bits that make my android coding easier with scala Feb 16 20:08:09 pfn, i mean, usually if in the menu i have android:showAsAction="ifRoom|withText" i expect to see onlu the icon in portrait and icon with text in landspace mode. so, there is a ch ange when user rotare the screen. i'd like to know if this change there is also if the activity has android:configChanges="orientation" Feb 16 20:08:29 rciovati, should show just fine and as expected Feb 16 20:08:37 I would think Feb 16 20:09:42 thanks pfn Feb 16 20:10:47 eplewis89 > I have used AndEngine for a while now. It's a fun engine despite the lack of docs :) Feb 16 20:11:52 pfn, wow that seems very useful! thanks! Feb 16 20:12:26 etuleu, the first is a bunch of implicit conversions and shortcuts Feb 16 20:12:36 etuleu, the second is an event bus that you can use to send arbitrary messages around Feb 16 20:14:41 the eventbus is pretty nice, and fits in with my laziness, just let weakrefs clear everything away ;-) Feb 16 20:15:43 pfn, where do you use the event bus? to talk to a service for example? Feb 16 20:16:07 etuleu, I use it to send stuff from another thread to the ui, like in my irc client Feb 16 20:16:15 any time a message comes in, it's on an IO thread Feb 16 20:16:29 it posts a message saying UiBus.send(MessageReceived(...)) Feb 16 20:16:54 and a listener registers itself to receive it by doing UiBus += { case MessageReceived(...) => doStuffWith(...) } Feb 16 20:17:23 etuleu, I also use it to broadcast onServiceConnected without implementing ServiceConnection everywhere Feb 16 20:17:49 so I have onServiceConnected(...) { UiBus.send(ServiceConnected(service)) } Feb 16 20:18:16 and again, anyone that wants the service object can do UiBus += { case ServiceConnected(s) => useService(s) } Feb 16 20:18:50 pfn, ah that's cool Feb 16 20:19:29 I wish the android team would add some Scala support :) Feb 16 20:19:37 and I use UiBus for things that are to directly impact the UI, and ServiceBus for stuff that doesn't Feb 16 20:20:20 and I also use it to do lazy things like, async { doStuffInABackgroundThread; UiBus.post { reflectInUiWhenDone }} Feb 16 20:20:42 don't need to waste your time implementing silly AsyncTasks or Runnables Feb 16 20:20:58 yeah Feb 16 20:21:08 alternatively, async { step1; UiBus.post { progress1 }; step2; ... } Feb 16 20:21:24 whats up everyone Feb 16 20:21:30 also it would cut like 25% of my app where I have to make my activities implement some listener and then write a for loop to fire an event Feb 16 20:21:41 i need a bit of help im trying to install libpcap on my droid Feb 16 20:22:06 and for some reason when i try to install it like i would do on linux its giving me an error Feb 16 20:22:56 (!) error running exec(). ..... Feb 16 20:23:12 etuleu, the implicit EventBus.Owner thing is magic that I use to keep the weak reference valid as long as the containing caller is strongly referenced Feb 16 20:23:53 in my activities in onCreate I have to subscribe and then unsubscribe in onDestroy Feb 16 20:24:06 it seems like this might save me from doing that Feb 16 20:26:08 etuleu, anyway, if you wanna try it out, qicr is on market Feb 16 20:26:45 I will definitely, thanks! Feb 16 20:46:26 Hey guys... my teacher told me about a language that can be used to code for both android and iphone.. I thought he said java lite.. but can't seem to find anything on that. Only find stuff about porting an iphone app to an android device. Any ideas? Feb 16 20:48:23 Timmaah1201 you could use c/c++ Feb 16 20:48:24 c Feb 16 20:48:32 another option is MonoTouch Feb 16 20:48:50 no Feb 16 20:48:55 another option is not monotouch Feb 16 20:48:56 doesnt ios dev need a mac computer? Feb 16 20:49:00 yes Feb 16 20:49:02 it does Feb 16 20:49:12 You guys ever used any of the crosscompilers like monotouch? From what i hear, they're all pretty much terrible Feb 16 20:49:16 and only C/C++/Objective C Feb 16 20:49:20 and they're not allowed Feb 16 20:49:22 on top of that Feb 16 20:49:46 not allowed? Feb 16 20:49:53 ofc its allowed Feb 16 20:49:54 I mean.. my main assignment is to make an android app.. So is it straight simple to just use C/C++? Or does it need to be objective c? Would it be eaiser to just focus on the android rather than both? Feb 16 20:49:57 and its not terrible Feb 16 20:50:01 Timmaah1201: he's probably confused and thinking about j2me or something like. Feb 16 20:50:01 Ravenheart: ofc its not Feb 16 20:50:06 Ravenheart: remember flash? Feb 16 20:50:14 no Feb 16 20:50:17 Timmaah1201: Android development is typically in Java. iPhone development is typically in objective C. Feb 16 20:50:23 Timmaah1201, dont use c++ for general android development Feb 16 20:50:25 ishizzle never had flash Feb 16 20:50:34 Timmaah1201: Android allows you to load shared libs, so you can technically do android dev in C/C++. Feb 16 20:50:38 Ravenheart: adobe built a crosscompiler that produced an iPhone app package from flash Feb 16 20:50:41 and they already tried to pull mono Feb 16 20:50:45 and they got spanked Feb 16 20:50:50 MDijkstra, adobe AIR? Feb 16 20:50:50 Ravenheart: and apple essentially banned every VM Feb 16 20:50:51 Timmaah1201: this is generally only useful if you're trying to write an app that works on multiple platforms simultaniously, and is a lot of work. Feb 16 20:50:54 and as a result THEY WILL NEVER TRY TO REMOVE it again Feb 16 20:50:55 mgj: yeah Feb 16 20:51:02 Ravenheart: source? Feb 16 20:51:05 but its better to do android in java? Feb 16 20:51:06 MDijkstra have you even used mono for iphone? Feb 16 20:51:16 Timmaah1201: yes. Feb 16 20:51:24 Timmaah1201: Java is the expected language for Android development. Feb 16 20:51:25 Ravenheart: no, but I have read the EULA prohibiting it Feb 16 20:51:28 Timmaah1201: start at d.android.com Feb 16 20:51:30 shit, can't talk about that :p Feb 16 20:51:32 Ya I have to do a fairly big sized project.. Won't have time to write the iphoen app in objective c as well.. so was wondering if there was a straight-forward one language approach. Feb 16 20:51:46 Alright, sweet, thanks guys Feb 16 20:51:47 Timmaah1201: ok, so. First, is the project. Feb 16 20:51:48 er Feb 16 20:51:50 first, what is the project. Feb 16 20:51:54 there was a massive news surge at one point when apple ware thinking of "banning" it Feb 16 20:52:02 but the outcry was so big they didn't dare Feb 16 20:52:07 Ravenheart: no, they actually did that Feb 16 20:52:13 you can do a web app and access it with a web browser Feb 16 20:52:15 and the way it works on iphone is that everything is compiled Feb 16 20:52:17 erm to make an android app to integrate with an already existing website, allows the user to upload videos using some form of location authentication Feb 16 20:52:18 Timmaah1201: if it's something you can more or less write in html5, you can just do that and write thin wrappers for both iPhone and android. Feb 16 20:52:32 Timmaah1201: If you want to write a cross-platform application move all of your common functionality into a C or C++ library. Feb 16 20:52:41 Timmaah1201: Then write an Objective-C interface and a Java interface. Feb 16 20:52:52 Ravenheart: they might've backpedaled since then Feb 16 20:53:04 Timmaah1201: You really might want to just do two different apps, honestly; that's not a lot of work. Feb 16 20:53:16 lov: Doing it jfpooles way? Feb 16 20:53:21 the amount of work you'd put in writing glue for code would probably take just as long Feb 16 20:53:23 Ravenheart: but they've definitely banned it for a while in the developer license agreement Feb 16 20:53:24 no Feb 16 20:53:27 write two separate apps. Feb 16 20:53:33 Don't bother with a common component. Feb 16 20:53:41 I'd also recommend studying the html5 idea: place as much code as possible into html and then only provide native hooks to common functionality Feb 16 20:53:48 apple have banned all JITters and virtual machines Feb 16 20:53:56 it depends on what exactly you ahve to do, but "location authentication" is trivial in android, and for uploading content look at httpUrlConnection Feb 16 20:53:57 still, that requires some advanced knowledge of the platforms to select the api correctly... Feb 16 20:54:05 but mono compile everything ahead of time before it even gets to your phone Feb 16 20:54:11 so its completely legal Feb 16 20:54:22 Reckon it's doable in 2 months though? Including testing, evaluation, etc? I've got a fairly good crasp on C, but not C++/objective C, and should have a good grasp on java by the time I start witing the java code Feb 16 20:54:28 Timmaah1201: yes. Feb 16 20:54:36 Timmaah1201: yes, absolutely. Feb 16 20:54:45 Ravenheart: yeah, no: Feb 16 20:54:49 I don't know exactly what's going to be involved in uploading your videos, but you can absolutely do that in 2 months. Feb 16 20:54:49 this was the original agreement: Feb 16 20:54:51 http://redth.info/2010/04/09/is-monotouch-now-dead-in-the-water-what-does-apples-new-iphone-developer-agreement-mean Feb 16 20:54:58 Ah k cool, to explain the location authentication thing bit better.. The app will only allow users to upload videos to the website based on their gps location Feb 16 20:55:06 Unless the application is trivial, writing it twice is going to be a giant pain in the ass. Feb 16 20:55:16 especially note "Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs" Feb 16 20:55:39 also note the date Feb 16 20:55:43 they might've changed their policy since then Feb 16 20:55:43 as I said Feb 16 20:55:48 i don't see what your point is Feb 16 20:55:58 they tried to ban mono Feb 16 20:56:00 I'm having trouble with this code not rendering my listview properly (I've cut out some un-necessary things) it's randomizing the output after I scroll up and down a couple times *quickly* http://pastebin.com/BekDeQ1m Feb 16 20:56:04 developer and consumer outcry was big Feb 16 20:56:05 my point is that you're misrepresenting their history on this issue Feb 16 20:56:09 they didn't Feb 16 20:56:12 so you might be misrepresenting more Feb 16 20:56:24 K0HAX: your views are being recycled, probably. Feb 16 20:56:26 what issue? Feb 16 20:56:30 that mono is dead? Feb 16 20:56:30 K0HAX: handle the case where recycleView is not null. Feb 16 20:56:57 you say 'monotouch was never in trouble on iOS since it's not a VM' Feb 16 20:56:59 Timmaah1201: All the location stuff is at http://developer.android.com/reference/android/location/package-summary.html Feb 16 20:57:04 it's actually pretty simple once you know what's going on Feb 16 20:57:04 which is clearly a false statement Feb 16 20:57:37 Awesome! thanks a lot Feb 16 20:57:38 lov: where would I do that? Feb 16 20:57:59 K0HAX: in your getView or whatever it's called in your adapter, when you get the view to use Feb 16 20:58:05 the fact is that apple did use that to successfully kill flash on iOS Feb 16 20:58:06 that view may or may not be null. In either case, set its contents. Feb 16 20:58:21 (not as a browser plugin, but as an exported app) Feb 16 20:58:21 lov: thanks, it is getView in mine. Feb 16 20:58:50 let me put it this way - mono is perfectly fine on ishizzle and is a perfectly viable alternative if you do not want to write in object-c Feb 16 20:58:55 his original question Feb 16 20:59:08 unless you have something meaningful to add, lets end this Feb 16 20:59:42 we're getting to the point where its no longer "whats an alternative" to "but my language is better" Feb 16 21:00:58 they did backpedal on those restrictions, I wonder why adobe didn't try to get their flash-to-iPhone exporter reapproved Feb 16 21:01:18 MDijkstra: actually JIT engines are not really banned, but can't be implemented as you can't mark a memory page executable from inside a sandboxed app on iPhone Feb 16 21:01:49 fpillet: yeah, I knew that Feb 16 21:01:52 They have loosened the rules on interpreted languages though, and they are permitted "as long as the code to execute ships within the app" Feb 16 21:02:04 fpillet: also why the JS JIT is not enabled in a UIWebView Feb 16 21:02:08 (the idea being to ban anything non-Javascript downloaded from the web) Feb 16 21:02:11 yup Feb 16 21:05:56 hhmm is there any simple statistics/metrics inside Eclipse for projects? Feb 16 21:05:59 lines of code, ect Feb 16 21:07:33 grep ";" | wc -l Feb 16 21:07:35 :) Feb 16 21:08:29 tank-man, so.. no :P Feb 16 21:08:30 pfnguyen@sixia:~/android/irc/common$ grep -r ';' src/ | wc -l Feb 16 21:08:31 85 Feb 16 21:08:32 doh Feb 16 21:08:36 only 85 lines of code ;-) Feb 16 21:08:40 its ok i found a plugin Feb 16 21:10:43 google doesn't load? Feb 16 21:15:34 Is it possible to have animation "layer" of some sort that can be inserted with XML? Feb 16 21:15:58 I'm trying to create 2D rain effect and I wanted the effect to also bein the main menu Feb 16 21:22:15 is it possible to programmatically add styles to elements? Feb 16 21:24:09 hey my code base here @ work is looking quite healthy :) http://dl.dropbox.com/u/10026158/CyclomaticComplexity.jpg Feb 16 21:24:55 no idea what that's supposed to mean Feb 16 21:25:32 it's a plugin for eclipse that runs several metrics over ur code base to try to asses it's health, try to figure out if it's brital or not Feb 16 21:25:59 Cyclomatic Complexity is a meassure of how many different code paths tehre are through a given function Feb 16 21:26:05 more is worse after a point Feb 16 21:26:14 so any branch counts as another path Feb 16 21:26:26 I see Feb 16 21:27:24 I have low feature envy as well :) Feb 16 21:27:58 my lines of code per function looks mostly, good except on the far outside I ahve 30+ lines in quite a few methods due to onCreate() usually being a big guy :/ Feb 16 21:28:24 how do I add more types to mTechLists = new String[][] { new String[] { MifareUltralight.class.getName() } }; ? Feb 16 21:28:46 ok well im out Feb 16 21:30:42 is it possible to specify that a style should only be applied on a certain API level in XML? Feb 16 21:31:34 Gsingh, use dir-vXX Feb 16 21:31:37 Gsingh, to specify api level Feb 16 21:31:48 Gsingh: sure, or only on tablets, or only on devices with with hdpi Feb 16 21:31:49 or w/e Feb 16 21:31:55 what pfn said Feb 16 21:34:20 So.... can I still reuse convertViews if I have different types of items in my ListActivity? What I'm going to do is reuse if the convertView matches the item type in my getItem() Feb 16 21:36:34 Override getItemViewType and getItemViewTypeCount Feb 16 21:36:45 Then you'll get the right view Feb 16 21:37:39 i have a layout that im adding to the system window. how do i prevent my layout from consuming all of the touch events? Feb 16 21:46:30 is anyone having IAP issues? Feb 16 21:46:46 I have I HAVE TO PEE issues Feb 16 21:49:25 thanks mikedg. Feb 16 21:54:14 ok seriously Feb 16 21:56:19 srsly? Feb 16 22:03:34 Could someone explain how this guy sets the Layout of the actionbar spinner? (http://stackoverflow.com/a/9193240/663370) Feb 16 22:03:49 He has an answer that apparently works but there's no example of how to actually apply the layout.. Feb 16 22:18:59 sup people! Feb 16 22:21:27 SimonVT: Whoa I forgot completely about those -- that'll be quite useful. **** ENDING LOGGING AT Thu Feb 16 22:21:34 2012 **** BEGIN LOGGING AT Thu Feb 16 22:22:15 2012 Feb 16 22:31:41 "I need an Android anti-virus engine created" … okaay Feb 16 22:32:35 Budget: $5,000 - $10,000 Feb 16 22:32:37 hehe Feb 16 22:34:04 haha Feb 16 22:34:10 give him an empty service; market does it for him. Feb 16 22:40:02 Hm, when pointing a button's text to a string resource, it shows an @ symbol followed by 11 numbers instead of the text. What could cause this? It shows up fine in the ADT designer, but shows up as e.g. @2130968582 on my phone Feb 16 22:43:32 ooh I think I get it, I've been providing values-en strings, but my phone's locale is not English. How do I make it default to English? Or should I just put the English in values/strings if I want that to be the default? Feb 16 22:44:20 Yes, defaults in values/ Feb 16 22:44:41 i still find it hard to find important content at https://plus.google.com/108967384991768947849/posts Feb 16 22:44:50 maybe i just hate google+ Feb 16 22:44:57 or maybe there is no good content Feb 16 22:45:07 or maybe i just hate all of this social shit Feb 16 22:45:14 "kets put our docs in facebook" Feb 16 22:45:21 *lets Feb 16 22:45:49 first, lets bursy shit in google+, and then lets bury stuff even further in a video Feb 16 22:45:53 *bury Feb 16 22:46:04 wtf Feb 16 22:49:12 romainguy, thanks for the nudge in the right direction. not sure if you got my reply before I deleted the question. I was using ICS's resolveSizeAndState rather than the regular resolveSize Feb 16 22:50:01 Hi ;) Feb 16 22:50:05 I'm developing an app cosisting of an Activity and an BroadcastReceiver which both communicate through the same SharedPreferences. They both can read and write those preferences. The Activity is registered as OnPreferencesChangedListeners at the SharedPreferences object. If the Activity changes those preferences its onSharedPreferenceChanged() method is called. But if the BroadcastReceiver changes the preferences this method of the act Feb 16 22:50:05 ivity is not called! Feb 16 22:50:11 Any ideas? Feb 16 22:50:37 Has anyone any ideas on how to align buttons underneath each other? Feb 16 22:50:55 Renegade001: lots of ideas. you'll have to be more specific. Feb 16 22:51:05 use a linearlayout, use a relativelayout, use a whatever, take your pick Feb 16 22:51:38 whats the difference between creating an inflater using getSystemService then *Button b = (Button)inflater.inflate(R.layout.buttons, null);* .... and combining view and inflate like View v = View.inflate(.... )? Feb 16 22:52:21 tophyr: http://screencast.com/t/BxO8icRIUb Feb 16 22:52:27 Like that Feb 16 22:52:29 devtekbeta: No difference Feb 16 22:52:37 You can also use LayoutInflater.from(Context) Feb 16 22:52:58 so is either one more semantic or efficient or it really makes no difference Feb 16 22:53:01 All of them eventually call Context.getSystemService(...) Feb 16 22:53:08 i see Feb 16 22:53:22 Renegade001: linear layout. pretty basic Feb 16 22:53:26 i guess ill use getSystemService... so i can see what is doing Feb 16 22:53:26 iirc View.inflate calls LayoutInflater.from which calls COntext.getSystemService Feb 16 22:53:37 yeah Feb 16 22:53:45 Context.getSystemService caches it anyway Feb 16 22:53:52 so it's not a big deal no matter which one you do Feb 16 22:53:57 tophyr: Do I need to use separate linearLayout tags Feb 16 22:54:02 Hold on, I'll read up on it Feb 16 22:54:06 cool thanks Feb 16 22:55:39 oh dear, I just odin3'd the latest samsung firmware on my galaxy 10.1 and now it boot loops Feb 16 22:55:54 E/AndroidRuntime( 742): java.lang.IllegalArgumentException: Unknown URL content Feb 16 22:55:57 ://settings/secureE/AndroidRuntime( 742): java.lang.IllegalArgumentException: Unknown URL content Feb 16 22:56:01 meh Feb 16 22:56:14 I wonder if I should wipe data Feb 16 22:59:55 * g00s downloads xcode 4.3 Feb 16 23:00:54 it's a trap Feb 16 23:00:58 :) Feb 16 23:01:26 $99 trap Feb 16 23:01:30 ICS doesn't look half bad at LDPI Feb 16 23:01:34 hmm, i wonder why romainguy liked this Exposure book. i'm mostly through it and was unimpressed Feb 16 23:01:48 SwearWord: its free Feb 16 23:01:59 Sure it is :P Feb 16 23:01:59 woo Feb 16 23:02:04 probably because he likes it Feb 16 23:02:06 lets see if they've fixed anything Feb 16 23:02:07 g00s: well, personal taste comes to mind as an explanation... :) Feb 16 23:02:17 i mean, why do some people like grapefruits, right? :) Feb 16 23:02:38 jasta: have you read any books on photography ? Feb 16 23:02:58 no Feb 16 23:03:03 i don't care at all about it, in fact. Feb 16 23:03:07 :) Feb 16 23:04:43 JakeWharton: what on earth is ldpi and running ics? Feb 16 23:05:18 I had a problem today with an indeterminate progress bar FC-ing on only pre-3.0 LDPI landscape Feb 16 23:05:34 so I was testing all kinds of LDPI stuff, including ICS Feb 16 23:05:56 emulator? Feb 16 23:06:00 yeah Feb 16 23:06:39 I bet at least HTC is going to churn out a LDPI device with ICS in few months :\ Feb 16 23:07:48 now if I can only get it to stop making these drawables ovals on LDPI i'll be set Feb 16 23:10:08 Sorry for the highlight tophyr, but could you point me in the right direction for the correct technique Feb 16 23:10:18 I'm getting errors for usin LinearLayouts Feb 16 23:10:50 http://developer.android.com/guide/topics/ui/layout-objects.html Feb 16 23:10:51 pastebin your layout and the stacktrace Feb 16 23:23:09 so I have a custom version of ProgressBar (basically just the ICS version) and in an onSizeChanged callback it calculates that it's been shrunk from 36x36 to 36x30 and therefore calls .setBounds(0, 3, 30, 33) to make it a 30x30 square Feb 16 23:23:17 when drawn on screen, however, it ovals the drawables Feb 16 23:23:32 and it works on every other DPI Feb 16 23:24:01 anything jump out at you guys that I should look at? Feb 16 23:25:16 actually, i lied Feb 16 23:25:40 it looks like its being scaled properly but the two layers are being rotated at the old center point rather than the new center point Feb 16 23:26:07 it makes for a cool effect, but it's not desired Feb 16 23:31:04 Hello. How does setDisplayOrientation() work for the camera? It does nothing for me. Feb 16 23:48:57 Anyone know any good eBooks for Android development? Feb 16 23:50:07 Programming Android seems good to me so far Feb 16 23:50:22 Huh? Feb 16 23:53:02 Anyone know Feb 16 23:54:17 Snwspeckle, http://ofps.oreilly.com/titles/9781449389697/ Feb 16 23:54:24 "Programming Android" is the title of a book Feb 16 23:55:40 Thanks Feb 16 23:57:37 does ADT require any specific Eclipse version? I'm using it with 3.7.0 I20110613-1736 -- for a long time I was just writing code but now wanted to edit my Android projects and everything went to shits, including randomly deleted files and projects (!!). Anyone else had such experiences? Feb 16 23:57:47 ADT 15 to be specific Feb 16 23:59:37 gilead, it does require 3.6 or newer iirc Feb 16 23:59:41 so you should be fine Feb 16 23:59:56 I am using 3.7.1 myself Feb 17 00:00:07 does that book cover ice cream sandwich? Feb 17 00:00:43 yeah, that never ever happened to me before with any Eclipse/ADT version -- the only thing different is that I started messing with Android project settings thanks jA_cOp Feb 17 00:01:32 gilead: android->fix properties might work Feb 17 00:01:53 The commonsware stuff will cover ICS Feb 17 00:02:02 as for traditional books, that's going to be hard to find Feb 17 00:02:24 *will probably cover Feb 17 00:03:04 Gsingh, I restored my previous source tree which I luckily made a backup of just before stating ;) Will update both E and ADT soon and try again then :) Feb 17 00:06:01 I'm using http://pastebin.com/ucPR8SNe generated from the android maven archetype; how do I get it to compile with the android sdk instead of with my Java SDK? Feb 17 00:06:35 did you install m2e-android? Feb 17 00:07:00 ugh, how the heck do I get my galaxy 10.1 back into fastboot after I reflash it Feb 17 00:07:14 why is it that if i install and run an app on a device (via eclipse), then if i format my computer and install everything again, but i copy the same eclipse workspace files, then try to run the same app on the device... it says package id dosnt match... so i have to uninstall the app on the phone before i can run it again Feb 17 00:07:20 ¯\_(ツ)_/¯ Feb 17 00:07:32 devtekbeta, different debug keys Feb 17 00:08:08 annoyingly, adb reboot bootloader just makes it turn off Feb 17 00:08:24 but why is there a different debug key if im using the same eclipse workspace files? i dont see what or where is generating a new key Feb 17 00:08:39 The debug key isn't in your workspace Feb 17 00:09:00 debug key is in your home directory Feb 17 00:09:03 ~/.android Feb 17 00:09:04 it's in ~/.android/ Feb 17 00:09:40 thats on the phone right Feb 17 00:09:51 No, your pc Feb 17 00:09:58 oh Feb 17 00:10:16 c:/users/name/.android if on windows Feb 17 00:10:34 ahh i found it Feb 17 00:10:36 thanks Feb 17 00:10:59 i never even saw this before Feb 17 00:14:22 did setMeasuredDimensional always allow for passing in a masked value? Feb 17 00:14:29 *setMeasuredDimension Feb 17 00:16:58 here i have a stock rom device with a strange behaviour. it keeps logging gps data, as long as gps is on, 'til sd card is full Feb 17 00:18:12 it logs to a file in sd card: gps/gl-.txt Feb 17 00:31:48 When creating a live wallpaper what are the callbacks that I must implement ? Feb 17 00:33:14 onDraw Feb 17 00:35:21 Hmm... if the teacher wants us to query the ContentProvider for the users phone numbers and addresses - does he mean the e-mail ones or psysical? Feb 17 00:35:31 'cause the first is a lot easier than the latter Feb 17 00:35:51 http://www.networkworld.com/news/2012/021612-google-android5-256233.html Feb 17 00:36:19 Man. Feb 17 00:36:21 saw that crap all day Feb 17 00:36:22 In my activity I want to update every second a textView. How can I do this? Feb 17 00:36:28 one site ran something about jelly bean Feb 17 00:36:33 then another said 5.0 Feb 17 00:36:35 I was able to get used on to the screen, but the battery is killing me. I've charged this thing twice today. Feb 17 00:36:35 JakeWharton: really? i just heard of it Feb 17 00:36:44 and then it was showing up on shit like BGR with wild speculation Feb 17 00:37:00 then all the android sites *had* to run something on it Feb 17 00:37:05 annoying as hell Feb 17 00:37:09 The Motorola ICS in the second half of 2012 pissed me off pretty nicely. Feb 17 00:37:25 "Scott Webster of Android Guys, meanwhile, urges strong skepticism of the DigiTimes report " Feb 17 00:38:09 the librarian here was so android gung ho Feb 17 00:38:18 after she ditched her BB Feb 17 00:38:21 is there anything that can be done about a bad ESN Feb 17 00:38:30 then she went to iPhone, hah Feb 17 00:38:38 or is it hardwired into the phone Feb 17 00:38:45 she could have went to anything other than BB and been impressed Feb 17 00:38:52 they're like TI calculators with telephony Feb 17 00:38:57 hehe Feb 17 00:39:40 I really don't see Android 5.0 coming out in the next year. It just doesn't make sense. Feb 17 00:39:53 I can't wait until iOS 6 comes out to see all the hip new gestures that no one will know about where you have to make a shadow puppet of a duck and then quack three times and it'll close all your tabs Feb 17 00:39:55 So why would anyone post that? Feb 17 00:40:01 BUT THERE'S ONLY ONE BUTTON, IT'S SO SIMPLE Feb 17 00:40:11 Well, I know why. Hits. Still. Feb 17 00:40:20 http://arstechnica.com/business/news/2012/02/google-has-released-dartium-a-chromium-build-with-a-dart-vm.ars Feb 17 00:40:27 wonder if this will make its way to android Feb 17 00:40:34 played with that, it's not ready for mass consumption yet Feb 17 00:40:39 the language is cool Feb 17 00:40:48 i wrote a little wrapper so I could use it with the play framework Feb 17 00:41:04 dart is like javascript++ Feb 17 00:41:17 it's an incremental update like svn was to cvs Feb 17 00:41:19 Must be pretty bad... Feb 17 00:41:51 javascript is bad now? Feb 17 00:41:52 grrr, updated my galaxy 10.1 to 3.2+touchwiz and now I can't fastboot anymore, what kinda crap is that Feb 17 00:42:08 why didnt you update it to 4.0 Feb 17 00:42:12 javascript is /ok/ -- not as great as those node.js wonks make it out to be Feb 17 00:42:18 canadiancow|work, because it's not out yet Feb 17 00:42:26 canadiancow|work, fix bugs Feb 17 00:42:27 you can get a build Feb 17 00:42:29 JakeWharton Feb 17 00:42:30 i am at work Feb 17 00:42:33 putting out a fire Feb 17 00:42:37 literally? Feb 17 00:42:38 on another product Feb 17 00:42:40 no Feb 17 00:42:59 i was supposed to do extra work on my main product today because i have personal shit to do tomorrow morning Feb 17 00:43:01 cows are now on fire depts ? Feb 17 00:43:03 Hello canada! Feb 17 00:43:05 instead, ive been working on something else for over 3 hours Feb 17 00:43:35 canadiancow|work, why don't scaled progressbars work? Feb 17 00:43:56 i dont knwo Feb 17 00:43:57 ask romainguy Feb 17 00:44:05 he's too smart for this mundane crap Feb 17 00:44:08 i almost had a good problem today Feb 17 00:44:12 but then i was just being an idiot Feb 17 00:44:14 what's a scaled progress bar? Feb 17 00:44:24 * pfn wonders how he changes font size in touchwiz Feb 17 00:44:28 everything's so friggin' huge Feb 17 00:44:31 All hail romainguy Feb 17 00:44:36 Emperor of #android-dev Feb 17 00:44:51 romainguy, 36px scaled to 30px causes offset rotation animations Feb 17 00:45:04 it properly adjusts the drawable size but i think the animation already calculated its pivot point Feb 17 00:45:06 romainguy: you mentioned on your google+ thing you liked Exposure by bryan p, do you remember any other photography books that stood out? i didn't like Exposure, actually though. Feb 17 00:45:11 JakeWharton: how do you scale it? Feb 17 00:45:11 so they rotate like a wheel off-center Feb 17 00:45:38 g00s: if you didn't like this book, you suck :p Feb 17 00:46:02 romainguy: heh, i thought it was too Simplistic. I'm reading 4 books on exposure now, and they are all better Feb 17 00:46:17 there isn't much to know about it Feb 17 00:46:27 but you're apparently too good for it already :p Feb 17 00:46:34 Hi. Is it posible to add a sertificated in the keystore on the device, so i can sign apk files with mye sertificate, and my device will acceps this as a system app? Feb 17 00:46:43 romainguy, bar.measure(MeasureSpec.makeMeasureSpec(some large value, MeasureSpec.AT_MOST), 30) Feb 17 00:46:51 As4xk, no Feb 17 00:47:26 romainguy: that book was very popular since it has been around for a long time in one version or another , though. Feb 17 00:47:36 i think it was based on 2 articles he wrote in the 80s Feb 17 00:47:59 bah, all I know is that it taught me what I needed Feb 17 00:48:04 height it 30, progress properly calls setBounds() on the indeterminate drawable of a 30x30 square. The drawables are scaled but the animation seems to already be running and done 36px/2 rather than 30px/2 for the pivot Feb 17 00:48:04 but there were a bunch of typos i reported back to the publisher :D Feb 17 00:48:16 pfn: ok Feb 17 00:48:17 JakeWharton: did you start the animation before the measure? Feb 17 00:49:04 I assume it did as it's essentially the built-in progress bar Feb 17 00:49:12 Mmmmm lag Feb 17 00:50:10 JakeWharton: just toggle the visibility from VISIBLE to INVISIBLE then back to VISIBLE Feb 17 00:50:13 it should reset the animation Feb 17 00:51:00 if you have a handle on the animation object you could also call Animation.initialize() when you change the size of the progress bar Feb 17 00:51:55 romainguy, hmm, I don't suppose you'd know how I'd be able to get an IO galaxy 10.1 to get into fastboot if I've updated it with samsung's latest 3.2 image? Feb 17 00:52:04 no clue Feb 17 00:52:14 power + vol-down takes me to a recovery/odin3 menu Feb 17 00:52:22 but it doesn't let me choose fastboot like it used to (usb icon) Feb 17 00:54:08 I'm attempting to deploy an app with SimpleXML app as a dependency on android using maven. Exactly which of its dependencies are provided by android? Without simplexml itself, my app doesn't build, but with the core library classes, Android refuses to deploy the packages with that warning. What should I do here? Feb 17 00:55:54 I guess I need to use odin3 to flash clockworkmod, that's so lame Feb 17 00:56:04 * pfn kicks samsung for nuking fastboot Feb 17 00:59:21 Aaa Feb 17 01:01:09 JakeWharton, email addy? Feb 17 01:01:54 name@gmail Feb 17 01:02:00 jakewharton@gmail.com Feb 17 01:03:27 heading home... popping back on later :-) Feb 17 01:06:36 hey folks Feb 17 01:06:45 How do I make sure that my android classes are available to my TestNG tests? Feb 17 01:06:57 anyone can tell me if opencore has been deprecated? Feb 17 01:07:24 and if the new framework is already in place for all android 2.33+ releases ? Feb 17 01:11:58 why would i only receive 1 broadcast for message for connectivitymanager.connectivty_action when i enable then disable the wifi connection Feb 17 01:14:57 What component of Android tells the SDHCI driver the desired clock rate to be set for the SD? Feb 17 01:16:54 Hey guys, does the Dashboard layout require Android 3.0 or no? Feb 17 01:26:38 Hey guys if I choose the SDK 4.0.3, can I develop for 2.2? Feb 17 01:27:01 Snwspeckle: No. If you want to develop for 2.2, use a 2.2 SDK and compatability libs. Feb 17 01:27:17 not true Feb 17 01:27:19 But I want to support all the way up to 4.0+ Feb 17 01:27:30 I want to basically support 2.2+ Feb 17 01:27:36 Snwspeckle: thats fine Feb 17 01:27:39 targetSdkVersion="15" minSdkVersion="8" Feb 17 01:27:45 i have minSdk = targetSdk = 8 Feb 17 01:27:56 g00s, fuck you Feb 17 01:27:57 or that Feb 17 01:27:59 i dont want a soft menu button Feb 17 01:28:00 :( Feb 17 01:28:02 :(:(:(:( Feb 17 01:28:03 canadiancow|work: haha Feb 17 01:28:03 TextView setText is fianl Feb 17 01:28:04 final Feb 17 01:28:07 minSdk in eclipse says I can only go to API 15? Feb 17 01:28:10 lol JakeWharton Feb 17 01:28:16 makes no sense Feb 17 01:28:31 can't have anyone messing with setText Feb 17 01:28:40 Snwspeckle, ignore it, change it in manifest once the project is created Feb 17 01:28:50 Ok thanks guys Feb 17 01:29:17 new lint warnings will warn you if/when you use stuff that is not supported above your minSdkVersion Feb 17 01:29:30 I wrote a thing that extends and reads the 'textAllCaps' attribute and does an uppercase on it if it was true Feb 17 01:29:36 but now I have to use setTextCompat Feb 17 01:29:45 mrenouf: thats good. i will switch to targetSdk = 15 and ActionBarCompat when that happens Feb 17 01:30:16 TextView.class.getField("mText") ... Feb 17 01:30:21 So should I use the ActionBar if I am develping for 2.2+? Feb 17 01:30:33 ActionBar is 3.0+ only, natively Feb 17 01:30:46 there are a few third-party libraries you can use on pre-3.0 though Feb 17 01:31:22 lol Feb 17 01:31:30 GEE I WONDER WHO MAKES THE BEST ONE Feb 17 01:31:39 This is a good example of how to use 4.0 API's and compatibility libs in a single prject to target 2.2 -> 4.0 http://code.google.com/p/iosched/ Feb 17 01:31:40 For example, sound hound uses an actionbar for 2.2, so what do they use to use it in 2.2+? Feb 17 01:31:41 but lets be honest. There's only one you *should* use Feb 17 01:31:55 Apps like that write their own Feb 17 01:32:02 iosched is all the place though, it's hard to focus Feb 17 01:32:07 it's just a styled view that's on the top of each activity Feb 17 01:32:24 not that that's really different from any of the others... or the native one Feb 17 01:32:46 the problem with that is you start off with a simple styled bar, then add a few things, and a few more things and before you know it, you've rewritten an ActionBar from scratch Feb 17 01:32:53 precisely Feb 17 01:32:58 I just need to work on a UI that has a dashboard + ActionBar and supports 2.2+ Feb 17 01:33:08 Should I use a 3rd party library? Feb 17 01:33:20 yes Feb 17 01:33:28 too many people waste time on doing things themselves Feb 17 01:33:36 write the app, not the fluff Feb 17 01:33:38 Suggestions? ActionBarSherlock is in beta for 4.0 so yea Feb 17 01:33:53 Yes it is Feb 17 01:33:59 The final release will be March 7th Feb 17 01:33:59 RC actually ;-) Feb 17 01:34:08 So basically its stable? Feb 17 01:34:15 It's stable-ish Feb 17 01:34:33 that's a lie Feb 17 01:34:36 it's extremely stable Feb 17 01:34:42 there's just a few tiny bugs that need fixed Feb 17 01:34:50 So if your on an Android 4.0 device, it will automatically ignore the API and use the regular ActionBar? Feb 17 01:34:54 and one that seems massive, but is tiny Feb 17 01:35:02 no it uses the native bar on 4.0+ Feb 17 01:35:23 Is it hard to implant into any app? Feb 17 01:35:36 No, but documentation for 4.0 is nonexistent at the moment Feb 17 01:35:44 so you'd basically just have to copy from the sample Feb 17 01:35:44 Basically my hardest goal is going to be listviews with images. (I am new to Android) Feb 17 01:36:03 well that's unrelated to ABS, and there are, of course, libraries to assist with that Feb 17 01:36:19 Really? Feb 17 01:36:25 to be honest, if you're not integrating 4-10 third-party libraries in your app then you're writing things you should have to Feb 17 01:36:36 not true :( Feb 17 01:36:37 :(:(:( Feb 17 01:36:44 or you work for Zynga Feb 17 01:36:50 i meant personal apps Feb 17 01:37:40 support lib, action bar lib, dashboard pattern / grid layout backport, async image downloader / cacher Feb 17 01:38:01 i actually couldnt find an async image downloader/cacher that i liked Feb 17 01:38:02 google-api-client, guava, abs, jackson Feb 17 01:38:03 that suited my needs Feb 17 01:38:05 Dashboard, I need that badly lol Feb 17 01:38:05 how much programming do i need to know to make a simple app to list from a database and where should I start? Feb 17 01:38:09 so i wrote one thats fucking awesome Feb 17 01:38:09 oh yeah Feb 17 01:38:11 My current one is not nice Feb 17 01:38:12 i was thinking UI stuff Feb 17 01:38:23 guava should be the first thing you include Feb 17 01:38:29 canadiancow|work, so did I! Feb 17 01:38:39 now we have 3 implementations yay! Feb 17 01:38:44 heh Feb 17 01:38:51 canadiancow|work, open source? Feb 17 01:38:55 no Feb 17 01:38:55 :P Feb 17 01:39:08 useless then Feb 17 01:39:10 the only opensource project i really contribute to is andengine Feb 17 01:39:27 FUCK I NEED TO DO LAUNDRY TONIGHT Feb 17 01:39:30 AND ITS ALMOST 9 Feb 17 01:39:32 AND IM AT THE OFFICE Feb 17 01:39:46 i'm all for proprietary stuff but if you have a small, reusable, extremely useful component that could be open sourced, it probably should be Feb 17 01:39:52 there's so much shit with Android that people do wrong Feb 17 01:40:06 if you have something that does it right you're helping everyone by making it available Feb 17 01:40:07 ^ truth. Feb 17 01:40:25 So can anyone walk me through the steps of using ABS to develop an actionbar and a 3x2 dashboard? Feb 17 01:40:44 not this guy, i have to get back to fixing the bugs in ABS Feb 17 01:40:48 i only used the support library JakeWharton … i guess I need 3 more ? Feb 17 01:40:53 im actually working on a big powerpoint for work Feb 17 01:40:55 to teach people shit Feb 17 01:41:01 and im pushing to open it up to the public Feb 17 01:41:05 minus a slide or two Feb 17 01:41:08 g00s, you don't need three more, you probably wasted time doing things that 3 other libs would have solved Feb 17 01:41:18 everyone does it Feb 17 01:41:32 what lib does the dashboard pattern? i actually yanked that from my app Feb 17 01:41:40 there's a bunch Feb 17 01:41:41 thought the new guidelines discouraged it Feb 17 01:41:48 roman nurik has a gist of his Feb 17 01:41:55 which is based on the one from IO Feb 17 01:41:58 I need to add a dashboard layout.. Feb 17 01:42:05 or other way around, i forget Feb 17 01:42:33 can you do a logical OR of the site: thingy on Google searches? Feb 17 01:42:44 So ActionBarSherlock only handles the actionbar to support it for 2.2+ right, nothing else? Feb 17 01:42:55 4.0 does 2.1+, but yes Feb 17 01:43:12 and it'll probably do 1.5+ by 4.1 :) Feb 17 01:43:13 So you wouldn't design a dashboard using ABS correct? Feb 17 01:43:22 no you would get a separate lib/.java for that Feb 17 01:43:38 I added it but I think its really messy.. Feb 17 01:43:55 messy how? Feb 17 01:44:17 I followed a tutorial, rather than using an API from an addon library Feb 17 01:44:20 JakeWharton don't bother with 1.5. Feb 17 01:44:33 JoeTheGuest, I have people who support 1.5+ in their apps that use ABS Feb 17 01:44:40 1.5 is dirt old Feb 17 01:44:45 april 2009 Feb 17 01:44:46 and they have a large user base on 1.5 Feb 17 01:44:50 surprisingly Feb 17 01:45:02 The number of 1.5 users is so small it doesn't matter anymore. Feb 17 01:45:05 I have about 20 people using my app on 1.5. <0.1% Feb 17 01:45:09 Lol just noticed this dude has the same name as the ABS developer LO Feb 17 01:45:14 mrenouf same here. Feb 17 01:45:15 1% of a 100 million is what... Feb 17 01:45:25 1 mil Feb 17 01:45:33 did you seriously jut ask that? Feb 17 01:45:40 Which is the phones in a warehouse basically... Feb 17 01:45:40 do they not have rhetorical questions north of the border? Feb 17 01:45:44 sorry Feb 17 01:45:46 rhetorical Feb 17 01:45:47 :P Feb 17 01:45:47 But... most apps don't hvae 100million active users. Feb 17 01:45:49 im stressed, not paying attn Feb 17 01:45:52 lol Feb 17 01:45:58 JoeTheGuest, no but this app services over 10k 1.5 users Feb 17 01:45:58 words with friends does! Feb 17 01:45:59 What component of Android tells the SDHCI driver the desired clock rate to be set for the SD? Feb 17 01:46:00 ok maybe not Feb 17 01:46:15 and it fills a market that no other app does Feb 17 01:46:33 stanreg, we dont really talk device drivers here, this is for app dev Feb 17 01:46:50 mrenouf: ah.. where should one go for device drivers? Feb 17 01:46:52 plus it's trivial to support 1.5+ with ABS's new internal architecture so why shouldn't I do it Feb 17 01:46:54 Is ABS easy to implent? Feb 17 01:46:55 someone is bound to use it Feb 17 01:46:59 Ok so here. One of my apps has 10,790 active users and of that 10k only .8 percent are on 1.6 Feb 17 01:47:07 .5 percent are on 1.5 Feb 17 01:47:10 Snwspeckle, yes Feb 17 01:47:18 if you know how to set up a library project Feb 17 01:47:19 you're done Feb 17 01:47:32 Fantastic! Feb 17 01:47:36 I've got 7% on 1.5/1.6 Feb 17 01:48:16 I take that back, we've never supported 1.5 Feb 17 01:48:27 1.6 is 1.7% Feb 17 01:48:31 that's more than on 3+... Feb 17 01:48:52 2.2% on 4.0.3 Feb 17 01:49:18 3.0+ is 5+ % Feb 17 01:49:33 where do you get 2.2% on 4.0.3 Feb 17 01:49:44 oh your own app? Feb 17 01:49:47 yeah Feb 17 01:49:53 My 4.0 is very low. Feb 17 01:50:05 each app's target audience is going to be very different Feb 17 01:50:11 my app that works on 1.5+ is 6.4% on 4.0.3 Feb 17 01:50:18 4.0 is 4.8% Feb 17 01:50:19 damN! Feb 17 01:50:22 im more than 10% ICS Feb 17 01:50:22 lol Feb 17 01:50:33 1.5 is 2.0% and 1.6 is 1.6% Feb 17 01:50:35 canadiancow|work what's your app? Feb 17 01:50:38 im dropping those two soon though Feb 17 01:50:45 www.coveragemapper.com Feb 17 01:50:52 dropping 1.5? Feb 17 01:50:53 lol i've got 1% on 4.0+ Feb 17 01:50:53 you are a brave man, supporting 1.5 through 4.0 Feb 17 01:50:56 i still use 1.5 :C Feb 17 01:50:58 but even in the zynga games, we see much less on 2.1 than the market stats would suggest Feb 17 01:51:48 Tried to add ABS, 100 Errors :( Feb 17 01:51:50 coveragemapper is pretty cool Feb 17 01:51:54 that's a neat idea Feb 17 01:51:55 190* :(( Feb 17 01:52:05 Snwspeckle, compile with 4.0, use 1.6 compatibility Feb 17 01:52:16 properties > android > select 4.0 Feb 17 01:52:18 Will 4.0.3 work? Feb 17 01:52:21 yes Feb 17 01:52:31 properties > java compiler > make sure ocmpliance is 1.6 Feb 17 01:52:32 I have it set to 4.0.3 Feb 17 01:52:37 on both the library and your project Feb 17 01:53:12 Fixed it up but I am getting 61 warnings, awkward Feb 17 01:53:13 JakeWharton can you add in support for forced spit action rather then if there is room? Feb 17 01:53:41 JoeTheGuest, no because I can't do that on 4.0+ Feb 17 01:54:14 JakeWharton, you COULD Feb 17 01:54:16 but so could JoeTheGuest ;) Feb 17 01:54:29 I want to get the width and height a view that has a ninepatch background. Any ideas on the best approach? Feb 17 01:54:47 Hmm Feb 17 01:54:58 I seem to be having troubles getting this notification to work Feb 17 01:55:09 Snwspeckle, like what? Feb 17 01:55:14 errors, i mean Feb 17 01:55:37 Everything works fine, but when I trigger the notification, the debug tab flips out and highlights the line that says "notification.notify();" Feb 17 01:55:49 I have tried this method suggested http://stackoverflow.com/questions/4142090/how-do-you-to-retrieve-dimensions-of-a-view-getheight-and-getwidth-always-r/4406090#4406090 Feb 17 01:55:59 Class is a raw type. References to generic type Class should be parameterized ----- That is an example Feb 17 01:56:24 that's a warning, not an error Feb 17 01:56:34 I should suppress those I guess Feb 17 01:56:45 There is more also Feb 17 01:56:51 blame Chet Haase for not using Class :) Feb 17 01:57:00 :PPPP Feb 17 01:57:07 or blame Java itself Feb 17 01:57:16 actually, blame Oracle because it's easy Feb 17 01:57:16 I prefer Java since it sucks my memory up Feb 17 01:57:47 Attribute minSdkVersion (7) is lower than the project target API level (15) ---- Should I worry about these warnings? Feb 17 01:58:32 nope Feb 17 01:58:40 and they'll be gone with the next ADT+lint! Feb 17 01:58:43 FINALLY Feb 17 01:59:00 :P Feb 17 01:59:04 SuperMeatBoy liverun: http://en.twitch.tv/q00p88 Feb 17 01:59:49 This is cool too: http://code.google.com/p/android/issues/detail?id=25618 Feb 17 01:59:55 not that I use those Feb 17 02:00:03 So how does ABS declare an actionbar? In 4.0, it works as if the targetedSDK is > 11 Feb 17 02:00:28 correct Feb 17 02:00:39 Does it work the same? Feb 17 02:00:41 you have to use Theme.Sherlock or Theme.Sherlock.Light or Theme.Sherlock.Light.DarkActionBar Feb 17 02:00:51 and then extend from SherlockActivity Feb 17 02:00:54 What up nerds Feb 17 02:01:03 Got yea, thanks! I love community help :) Anyway, TV show is on, bbl Feb 17 02:01:23 JakeWharton do I need to extend from SherlockActivcity now instead of FragmentActivity? Feb 17 02:01:44 nah FragmentActivity is still there for support lib plugin Feb 17 02:01:46 he's new Feb 17 02:01:49 baby steps Feb 17 02:02:05 or she Feb 17 02:02:14 It Feb 17 02:02:16 just go with It Feb 17 02:02:19 haha, yeah Feb 17 02:02:29 though anytime I do that I think of Cousin It Feb 17 02:02:32 and then I laugh Feb 17 02:02:54 what Ad networks do you folks use? Feb 17 02:03:06 JakeWharton would have to write a real app for that... so others? Feb 17 02:03:16 :'( Feb 17 02:03:21 :) Feb 17 02:03:40 who develops apps.. honestly Feb 17 02:03:42 Had to be said. Feb 17 02:04:04 so ….. if my phone is sdk 8, and thats what i test on, is setting targetSdk 15 really a good idea? Feb 17 02:04:13 even if it works Feb 17 02:04:16 sure Feb 17 02:04:39 will help you figure out what calls you're making that you need to check when they explode on your device Feb 17 02:05:01 hm, ok canadiancow|work … just for you, once lint has that feature i will put targetSdk = 15 Feb 17 02:05:12 <3 Feb 17 02:05:18 cow Feb 17 02:05:32 what ad netowrk does zynga use? Just AdMob? Feb 17 02:05:39 o.O Feb 17 02:05:43 www.burstly.com Feb 17 02:07:07 ugh, their font is difficult to read on their about page Feb 17 02:07:55 moo Feb 17 02:08:13 what an odd sound for a rabbit to make... Feb 17 02:08:25 I hear that a lot Feb 17 02:09:28 well you do have those big ears Feb 17 02:09:40 why yes Feb 17 02:10:21 Niiice, GF just got a job offer in industry in the bay area at a leading pharmocology company Feb 17 02:10:34 sweet Feb 17 02:10:37 time to retire early Feb 17 02:10:39 doing what? Feb 17 02:10:48 In Vivo pharmacology research Feb 17 02:11:13 They pretty much develop drugs for cancer/alzheimer's/dementia/etc drugs and test them Feb 17 02:11:22 her degree is in Neuroscience Feb 17 02:11:46 nice Feb 17 02:11:47 must be a smart cookie Feb 17 02:11:52 or human Feb 17 02:12:02 Indeed Feb 17 02:12:11 I've come to terms with the fact that she's way smarter than I am Feb 17 02:12:18 or cookie man Feb 17 02:12:31 cookie woman Feb 17 02:12:31 but she doesn't know nearly as much about computers so that evens it out Feb 17 02:13:01 now I guess I need to start looking for jobs in the bay area again Feb 17 02:13:15 theres tons Feb 17 02:13:24 t0mless, Square Feb 17 02:13:31 not when you have 0 professional experience in Android/CS Feb 17 02:13:37 and my degree is in Math Feb 17 02:13:40 ok 0 then :) Feb 17 02:13:47 Oh math is good Feb 17 02:13:55 I have 0 professional experience in Android and got a job Feb 17 02:14:03 at least if you want to work in math heavy coding Feb 17 02:14:05 currently working as an insurance agent/IT manager for local insurance broker though Feb 17 02:14:12 theres a depand for math people Feb 17 02:14:24 I had some pretty good leads with Android stuff, but nothing ever panned out Feb 17 02:14:36 do ou have apps in the store? Feb 17 02:14:41 Yup Feb 17 02:15:01 cause an awful lot of ads I see for ios and android seem to just want that Feb 17 02:15:02 Trying to get a v2.0 out that utilizes ABS and fragments/loaders Feb 17 02:15:13 ABS? Feb 17 02:15:21 action bar sherlock Feb 17 02:15:34 JakeWharton's awesome library Feb 17 02:15:39 but not shaders. Feb 17 02:15:56 So many people say sherlock action bar Feb 17 02:16:09 must be a language thing Feb 17 02:16:11 Yea... I know nothing about shaders and very little about open GL Feb 17 02:16:13 yes Feb 17 02:16:26 sherlock is a proper name Feb 17 02:16:37 oh yeah, didn't think of that Feb 17 02:16:41 I was going to start on a text twist type game to learn openGL Feb 17 02:16:54 and I need to relearn C++ Feb 17 02:16:59 good :) Feb 17 02:17:42 \o Feb 17 02:17:47 canadiancow|work you think Burstly would be good for an indie dev like me? Feb 17 02:17:57 no idea Feb 17 02:18:28 What's Burstly? Feb 17 02:18:38 their font fucking sucks Feb 17 02:18:56 or maybe my monitor's contrast is too low... but it's very difficult to read Feb 17 02:19:31 looks good here Feb 17 02:19:35 maybe not good Feb 17 02:20:42 woot Feb 17 02:20:42 http://code.google.com/p/android/issues/detail?id=25586 Feb 17 02:20:45 Trying Icechat for a change Feb 17 02:20:56 both of those lint things were requested by users less than 24 hours ago Feb 17 02:23:19 I wish to create a layout where I display statistics via text, with a bar graph. What's the best layout and view I should use to accomplish this? Feb 17 02:23:37 a relative layout with a textview and an imageview? Feb 17 02:23:56 or just a surfaceview? Feb 17 02:24:11 How are you going to graph the data? Creating your own views or using a library? Feb 17 02:39:39 if I am distributing my .apk for beta testing through a website, does it make any diff if I sign it with my prod key? Feb 17 02:40:01 yes Feb 17 02:40:10 you cannot upgrade to a new version if the key is diff Feb 17 02:40:21 so if you ever intend to release an update... Feb 17 02:40:40 canadiancow|work: ahh so I should make a habit to export a signed version of the apk because later when I dump the final ver in the Market, then people can upgrade? Feb 17 02:40:50 yes Feb 17 02:40:56 great, thanks Feb 17 02:41:17 I'll have to update my Map's key for mapview Feb 17 02:41:22 not sure why Google needs that Feb 17 02:41:33 there is no quota associated with loading the mapview so not sure why they require it Feb 17 02:42:18 to be safe Feb 17 02:42:28 does anyone know what these are for? http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html http://developer.android.com/reference/android/app/Application.html#registerActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks) Feb 17 02:42:32 so that I can't steal your maps API key from your open source app and use it for malicious things Feb 17 02:42:44 What's the easiest way to use a string across activities? Feb 17 02:42:44 or closed source... Feb 17 02:42:52 grantland, hopefully the start of a more componentized Activity.java :) Feb 17 02:42:54 Is it public strings? Feb 17 02:42:57 no more base activities Feb 17 02:43:13 JakeWharton: ok so just associate the api key with my md5 fingerprinted key Feb 17 02:43:27 got it... as long as mapview loads for any number of people without issues, thats fine with me Feb 17 02:43:39 about to release a mapping app in a few days -- www.todomapr.com Feb 17 02:43:58 JakeWharton: like a callback interface instead of the Activity being the callback? would this have anything to do with application lifecycles? Feb 17 02:44:04 if you don't store any data then it doesnt matter the user can just uninstall the debug version and install the new one Feb 17 02:44:22 xorgate: it's a task manager so i'd like to have them upgrade easily without losing their current tasks Feb 17 02:44:37 grantland, it would enable a library to listen to activity lifecycle methods without requiring the implementor to manually call methods in overrides or extend from a base activity Feb 17 02:44:55 ah, kind of like iOS's NSNotification Feb 17 02:44:59 no idea Feb 17 02:45:04 for the UIApplication state changes Feb 17 02:45:09 i'm actually disappointed it's not more of an event bus Feb 17 02:45:17 with pre/post events for each lifecycle state Feb 17 02:45:27 yeah, one thing i like from iOS... Feb 17 02:45:38 it doesn't seem used anywhere, does it Feb 17 02:45:39 ? Feb 17 02:45:50 it's easy to implement yourself, but again, it would require extending from a base activity :( Feb 17 02:45:55 not that I know of Feb 17 02:46:03 I only briefly looked Feb 17 02:46:16 API 14+ means it's pretty much a non-starter for a year or so Feb 17 02:46:25 yeah true Feb 17 02:47:13 the reason was i started to write Application and Activity wrappers to monitor the Application lifecycle… looks like it would be great to add ActivityLifecycleCallback interfaces and ApplicationLifecycleCallback interfaces Feb 17 02:48:16 but thanks! i'm out Feb 17 02:48:40 Ok. Feb 17 02:48:52 now it is offiscal !!!! Feb 17 02:49:52 of course, as developers i'm quite sure you guys already kjnkw!!! Feb 17 02:50:48 hrm? Feb 17 02:53:02 nothing exciting has hit Twitter for hours Feb 17 02:53:04 can't be that big of news Feb 17 02:53:13 no it's not... Feb 17 02:53:23 it's just that the kindle fire is a piece of shit Feb 17 02:53:30 i figure you already knew that Feb 17 02:53:37 HAHAHA Feb 17 02:53:43 Once you get some ABS 4 + support-lib it's not too bad Feb 17 02:53:56 native stuff is ugly though Feb 17 02:54:43 yes, kind of defeats the whole purpose of java Feb 17 02:57:35 Hey guys, I'm trying to pass a string from one activity to another, but the second activity just has blank text instead of the string text Feb 17 02:57:56 Anyone know what I should do to make the second activity get the text from the first activity? Feb 17 02:58:35 In the Intent you used to start it Feb 17 02:58:39 extras in the intent Feb 17 02:58:40 ya Feb 17 02:59:04 Intent i = new Intent(this, Other.class); i.putExtra("text", "your stuff here"); startActivity(i); **** ENDING LOGGING AT Fri Feb 17 02:59:57 2012