**** BEGIN LOGGING AT Thu Oct 18 03:00:02 2012 Oct 18 03:05:36 JakeWharton: Or anyone else listening, I am using the ViewPagerIndicator but have a problem with theme. When I go to a white background with black text (android:Theme.Holo.Light), the text of the indicator does not change Oct 18 03:05:54 because it has its own styles Oct 18 03:09:44 is there a way to pass my style to it programmatically. I have an option in preferences that allows be to switch between a black or white theme which then happens in the mainActivity Oct 18 03:14:05 JakeWharton: I can see that I can simply make a style and pass it to the xml component, but I need it to be programmatic. Oct 18 03:19:16 is there a way to have a custom view be the CONTENTS of a dialogfragment, but still have the standard setpositivebutton/setnegativebutton stuff there? Oct 18 03:23:51 epsilonorion: no you need to merge some theme together with the abs theme for use with the vpi Oct 18 03:24:16 i.e create your own theme that has holo.light as its parent Oct 18 03:24:21 and add the vpi theming to that Oct 18 03:25:13 luxurymode: something like http://stackoverflow.com/questions/9737103/no-style-viewpagerindicator-in-combination-with-sherlockactionbar Oct 18 03:25:38 epsilonorion: exactly Oct 18 03:25:50 luxurymode: got it. Working on that now to see if it works Oct 18 03:25:52 luxurymode: thanks Oct 18 03:30:35 luxurymode: and my limitation in xml hits me. Following that link, I try to include the widget for TitlePageIndicator in the style. The widget exists in the VPI library, but not in my project, so it gives me a resource not found. How do I link them Oct 18 03:31:51 you mean it says not found when you specify that as the parent? Oct 18 03:37:49 epsilonorion? Oct 18 03:38:21 @style/Widget.TitlePageIndicator Oct 18 03:38:23 sorry about the delay Oct 18 03:38:39 says the @style portion is not found Oct 18 03:39:02 it is defined in the VPI library, but I assume i have to link or copy it over. Just wasn't sure if this was correct Oct 18 03:39:28 well you have to library project dependencies, right? abs and vpi? Oct 18 03:39:43 make vpi depend on abs and then have your app depend on vpi Oct 18 03:39:49 then you should have everything Oct 18 03:40:01 vpi yes, not sure what abs is Oct 18 03:40:08 oh, actionbarsherlock Oct 18 03:40:10 actionbarsherlock Oct 18 03:40:12 no, not using abs Oct 18 03:40:15 oh Oct 18 03:40:28 then dunno why its not working Oct 18 03:40:35 try regenerating your R.java Oct 18 03:40:45 project > clean if using eclipse Oct 18 03:40:56 and force regenerate R.java in intellij Oct 18 03:41:47 oh if you're not using abs then forget this whole merging thing Oct 18 03:41:54 just define your own vpi theme Oct 18 03:42:01 which sets the appropriate attributes Oct 18 03:42:05 like text color, etc Oct 18 03:42:58 e.g. add this to theme: @style/CustomTitlePageIndicator Oct 18 03:43:06 where customtitlepageindicator is a custom theme Oct 18 03:43:36 like so: https://gist.github.com/3909749 Oct 18 03:44:04 then use this theme in the manifest Oct 18 03:44:16 in place of directly referencing the vpi theme Oct 18 03:44:28 so how long do you think an AOSp build wil take on a 2500+ Oct 18 03:44:33 2500k with 16gb of ram Oct 18 03:45:02 pclov3r: weeks Oct 18 03:45:31 lol Oct 18 03:45:33 luxurymode: trying it now. Oct 18 03:45:36 make -j8 on my core i7 takes 45min from a make clean Oct 18 03:45:39 with ccache enabled Oct 18 03:45:47 maybe 30 Oct 18 03:46:12 25 on my brand new macbook pro Oct 18 03:46:19 also i7 Oct 18 03:46:24 i was pretty shocked Oct 18 03:46:47 that's pretty impressive Oct 18 03:46:56 how much disk space Oct 18 03:46:59 do you need for cccache Oct 18 03:47:03 ccache Oct 18 03:47:12 one more Oct 18 03:47:14 try once more Oct 18 03:47:19 cccache Oct 18 03:47:21 ccache Oct 18 03:47:22 cache Oct 18 03:47:26 I haven't been in the OS building business for many years now, but it used to take us 8 hours... Oct 18 03:47:26 like a stutter lol Oct 18 03:47:52 no problems building on Debian 6 i suppose? Oct 18 03:49:09 i dislike ubuntu Oct 18 03:49:56 luxurymode: perfect, thanks for all of the help Oct 18 03:51:24 only one way to find out tho Oct 18 03:52:42 no problem epsilonorion Oct 18 04:11:31 oic, thou must calleth setview before anything else in alertdialog builder fragment, otherwise thee is screwed Oct 18 06:46:34 Guys I'm looking to show a ListFragment as a DialogFragment Oct 18 06:46:50 just put a listview in the dialogfragment Oct 18 06:47:39 lasserix: Hey, Yeah so for rest of my code I have a BaseListFragment class which basically takes care of all listing look and feel Oct 18 06:47:54 I'm doing the same but then I cant do stuff like setListshown and setemptytext Oct 18 06:48:08 there are equivalent calls I think Oct 18 06:48:37 setEmptyText has a ticket open against it Oct 18 06:48:44 problem is you can't nest fragments Oct 18 06:48:44 I'll look up setListShown Oct 18 06:49:11 *nm i guess you can Oct 18 06:50:08 Are you using a loader? Oct 18 06:50:18 yes ListFragment + Loaders Oct 18 06:50:46 that makes my life very simple, as I don't have sweat over showing hiding ProgressDialogs Oct 18 06:50:49 so lv.setEmptyView(emptyText); where emptytext is a textview defined in the xml Oct 18 06:50:58 \o Oct 18 06:51:46 oh btw how do you do that, start the progress in onloadercreate and close it onloaderfinish? Oct 18 06:52:09 yeah already doing that, and it looks ok too, setListShown is what I'm looking for Oct 18 06:53:05 yeah when I initLoader() I setListShown(false) and when onloadFinish setListshown(true) Oct 18 06:53:17 if there is no data the empty text automatically appears Oct 18 06:53:44 but for DialogFragment I'm doing that all by my own Oct 18 06:53:58 ok how about I show ListFragment inside an DialogActivity ? Oct 18 06:54:35 if you can get it to work Oct 18 06:54:50 alternatively if you can't just copy from line 279 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/support/v4/app/ListFragment.java Oct 18 06:56:25 or here's a better example with xml references : http://stackoverflow.com/questions/10608624/list-fragment-does-not-accept-my-layout/12504097#12504097 Oct 18 06:56:27 same idea Oct 18 06:57:15 got to get back to cooking Oct 18 06:58:51 hmm.. Oct 18 07:08:39 what is a reasonable limit to the amount of stuff I should keep in a SharedPreferences file? Oct 18 07:09:29 !ops can someone unban *!*null@*unaffiliated/juest please? Oct 18 07:15:20 heh, when i search for neuro fuzzy on amazon i get all these rice cookers :P Oct 18 07:37:14 what's the best version of eclipse to use? mine right now (4.2) is insanely slow Oct 18 07:37:29 whomp: lastest? Oct 18 07:37:51 is it? i always hear about new bugs. i wouldn't assume it's the best because it's the latest Oct 18 07:38:16 lol Oct 18 07:38:36 whomp: get stable build then, Oct 18 07:38:47 whomp: you must have been working with oracle stuff :) Oct 18 07:39:01 probably your pc is not good to use eclipse Oct 18 07:39:09 haha no i hear about this all the time, and right now working with xml is insanely slow. i'm on a mac Oct 18 07:39:20 eclipse is slow Oct 18 07:39:23 i'm not sure how particular pc's are "not good to use eclipse" Oct 18 07:39:34 maybe if your pc is from the 90....s Oct 18 07:39:43 90s* Oct 18 07:39:44 except mine is from last year and eclipse is slow on it Oct 18 07:39:51 lol Oct 18 07:39:54 eclipse is so ahead of its time Oct 18 07:39:56 eclipse is just slow Oct 18 07:40:03 Like emulator Oct 18 07:40:14 i always use my phone Oct 18 07:40:49 unless you really want the eclipse gui tools, autocompletion and ADT stuff, dont use eclipse Oct 18 07:40:59 some people love those features but they just annoy me Oct 18 07:41:08 morning all Oct 18 07:41:14 is this a vim discussion again? Oct 18 07:41:17 :P Oct 18 07:41:21 i definitely need the xml previews though. Oct 18 07:41:27 it's hard to get away from that one Oct 18 07:41:37 it's becoming one :) Oct 18 07:41:46 i use emacs Oct 18 07:41:52 i would like to do 'geeky' apk editing right on phone Oct 18 07:42:10 and you know the layout mechanisms well enough to just imagine them on the phone? Oct 18 07:42:12 hmm, probably eclipse is like NetBeans, Slow and Hogging Oct 18 07:42:17 and GUI Oct 18 07:42:36 version control your eclipse Oct 18 07:42:37 if you cant imagine what your gui willl look like without previews you have a problem Oct 18 07:42:49 so you can revert if an update focks it up Oct 18 07:43:20 I'm deleting items from a ListView via a CAB action, but the cab doesn't get the memo that the items are gone from the listview - how do I go about fixing this in a proper manner? Oct 18 07:43:50 sometimes you just gotta tweak it by 2dp. and i can't say that i can't imagine it perfectly, but android throws a lot of curveballs. like image backgrounds for buttons scale to fill the whole button, but the image for an imageview does not Oct 18 07:43:56 hmmm, one could probably write something that refreshes an "xml" feed the whole time Oct 18 07:43:59 inflate(XmlPullParser parser, ViewGroup root) Oct 18 07:44:41 have your xml on a local http server and refresh the gui every few seconds or something Oct 18 07:44:44 yeah, if you could somehow stream the state of your document to the phone Oct 18 07:44:59 that's an interesting thought actually Oct 18 07:45:37 sounds like a sideproject for i-don't-have-enough-work-already-man Oct 18 07:45:42 :) Oct 18 07:45:55 hahaha Oct 18 07:45:58 would probably be difficult to do. or people would do it already Oct 18 07:46:03 i wrote AI for snake last night, that was fun. Oct 18 07:46:04 goood idea though Oct 18 07:46:04 nah not really Oct 18 07:46:20 nice DysonReturns , tried it yet? Oct 18 07:46:24 is good? Oct 18 07:46:33 from that book Beginning Android Game Programming Oct 18 07:46:35 fuck it, i'ma make one Oct 18 07:46:37 today i just need to master sqlite and cursoradapter Oct 18 07:46:38 the source is online somewhere Oct 18 07:46:50 i have that book too. dyson. its good Oct 18 07:46:55 then just added ai Oct 18 07:47:02 Snake AI is a new snake vs player or AI play? Oct 18 07:47:04 tech1: yeah, i'm trying to see if openGL is for me Oct 18 07:47:11 like a demo Oct 18 07:47:30 Juest: its just you playing snake and another snake does seemingly random things, gets in your way and eats your stains Oct 18 07:47:55 because snake wasnt hard enough..... Oct 18 07:47:56 lol Oct 18 07:47:58 lol Oct 18 07:48:13 anyhoo, its device charge day ontop of work. chat later. Oct 18 07:49:15 ah DysonReturns, so it's like a competition Oct 18 07:50:01 i am trying to connect an pidion bluebird bip 6000 to my computer so i can connect with ddms, but it says debugging connected in the notification bar on the phone when i plug it in but it does not show up on ddms for monitoring Oct 18 07:50:03 any suggestions? Oct 18 07:50:41 i'm thinking, make a script that creates a layout with a button for each layout in the project and an activity that the button points to Oct 18 07:50:46 did you install driver asfdd? Oct 18 07:51:06 then, in the activity, have it run GETs every 5 seconds to the ftp server where i'm working in vim Oct 18 07:51:14 or if on linux add the manufacturer code to something like /etc/udev/android-rules (i forgot the exact file) Oct 18 07:51:41 whomp what is the goal of this? Oct 18 07:51:50 realtime view of my layout Oct 18 07:52:23 it should be but i can't find it in the sdk manager Oct 18 07:52:25 hmmmm. if you think it will work try it Oct 18 07:52:26 so maybe thats the problem Oct 18 07:52:32 whats the package called? Driver package? Oct 18 07:52:41 yeah it says installed Oct 18 07:52:47 we'll see :) Oct 18 07:52:50 i think only goolge devices have drivers in the sdk Oct 18 07:52:57 look at your devic manual Oct 18 07:53:26 to test, go to terminal and type "adb devices" Oct 18 07:53:34 it should show up Oct 18 07:53:49 asfdd: probably you want your phone's driver, not SDK driver, usually you install it by downloading from your brand webpage, or downloading phone software Oct 18 07:54:16 it didn't come with one in the box atleast =( its prettymuch a windows phone they installed android on, it has a windows physcial keyboard etc Oct 18 07:54:24 i'll try searching a bit Oct 18 07:54:26 asfdd: the USB driver in SDK is for Google phones and such, Oct 18 07:54:32 well, so it's worse Oct 18 07:54:34 ty Oct 18 07:55:43 hmm the only issue is pulling drawables Oct 18 08:04:38 <_yakubmobiledev> Hello every one Oct 18 08:05:10 I have fragments navigating as home->browse->contentlistmode OR contentpagemode, where the user can switch between page and list mode. However to do that I have to pop up the stack the first content fragment loaded (ie, if going from browse->content list and then switching to page, list must be popped off so going back from page will go to browse) which cause the browse fragment underneath Oct 18 08:05:10 to briefly be shown. This also call's browse's onPause which screws up some saved state; so my question if you can follow all this is, is there anyway to to swap two fragments (the list and page), or alternatively to remove a fragment from the backstack without a corresponding UI change? Oct 18 08:05:20 <_yakubmobiledev> Is there any way to know the ip addresses of the peers connected to my wifi router from the android device Oct 18 08:06:27 <_yakubmobiledev> Lets say there are 10 devices connected to the wifi router or hotspot i need those 10 ip address to comunicate with them from android device and i am using androdi 2.3 Oct 18 08:06:47 _yakubmobiledev: step 1) root your phone I guess Oct 18 08:07:10 cusom rom do not have enough permissions Oct 18 08:07:33 <_yakubmobiledev> I need to do it programatically Oct 18 08:07:34 this is my opinion which is highly likely to be erroneous Oct 18 08:07:38 How can I make the CAB hide when I select an action button? Returning true on onActionItemClicked isn't doing it Oct 18 08:07:50 <_yakubmobiledev> i need it wothout rooting Oct 18 08:09:12 <_yakubmobiledev> will wifidirect feature in android 4.0 and up wil do the same Oct 18 08:09:12 <_yakubmobiledev> ? Oct 18 08:10:11 Hey everyone Oct 18 08:12:06 <_yakubmobiledev> please help me Oct 18 08:12:29 <_yakubmobiledev> is it possible to get the peers list Oct 18 08:12:30 <_yakubmobiledev> ? Oct 18 08:12:42 I'm getting "getCount() of type […] must override a superclass method" in https://gist.github.com/3910395 , it should override int getCount() from android.widget.Adapter, shouldn't it? Oct 18 08:13:07 I have a question about appengine datastore, I want to create a key from a string (user name for example), should I save the key created by the key generator on the client's application? or does key generator will create the same key every time I will enter the same string? Oct 18 08:13:34 _yakubmobiledev: you can take sample from Fing (a network discovery app) Oct 18 08:16:18 oh nvm, ADT was set to java 1.5 compliance even if general pref was to use Java SE 6 Oct 18 08:19:58 could some1 help me with this key generator thing? Oct 18 08:24:27 sasson: what's the prob? every dev haves his own dev key for his apks Oct 18 08:27:00 Juest, it's about entity key generator in the datastore (appengine), I want to know it every time that I use KeyFactory.createKey("User", userPhoneNumber) I will get the same key? Oct 18 08:27:13 ah Oct 18 08:27:26 sasson: probably not, appengine!? Oct 18 08:27:39 Worked it out - you're supposed to use mode.finish(); Oct 18 08:36:13 hi. how can I add comments to the manifest in the xml? Oct 18 08:36:34 of course Oct 18 08:36:36 its a xml Oct 18 08:36:40 or anyways .. whatever the xml i need to add comments Oct 18 08:36:51 <-- --> i think Oct 18 08:36:58 Oct 18 08:38:00 ixc, sorry? Oct 18 08:38:16 ok.. like html? isn't? Oct 18 08:38:29 like xhtml (because it is also xml) Oct 18 08:38:35 i guessed it would be so Oct 18 09:07:36 heya, i have much trouble getting signed application to install Oct 18 09:07:53 i get "Application not installed" and adb logcat shows error 103 Oct 18 09:08:16 i have 1) removed the older debug signed app 2) switched few jdk versions Oct 18 09:09:20 dsirijus: how are you installing it? Oct 18 09:09:32 just downloading from dropbox and clicking on it Oct 18 09:09:41 (yes, i have enabled non-market apps) Oct 18 09:10:24 how would jdk affect that? Oct 18 09:10:54 anddam, supposedly, that was solution for some folks "from the internet" Oct 18 09:11:07 dsirijus: I suggest to paste(bin) the actual error Oct 18 09:11:48 sure, will replicate Oct 18 09:12:34 http://pastie.org/5077749 Oct 18 09:12:43 that's probably a little more than needed Oct 18 09:13:45 I'm trying to record audio with OpenSL ES. In the ndk example recording is made in BufferQueue. To start recording Enqueue for queue interface is called. What should be done for URI as DataLocator (I want to write directly in file) Oct 18 09:14:10 dsirijus: uncomfortable line-breaking Oct 18 09:14:29 yeh, was about to apologize for that Oct 18 09:14:31 :) Oct 18 09:16:03 dsirijus: nothing a replace cannot fix Oct 18 09:16:07 Where's the best place to save first visible position? Oct 18 09:16:14 anddam, replace? Oct 18 09:16:55 Where's the best place to save the first visible position of a listview? On the user clicking a row (doing so launches new fragment), on pause or bind view? Oct 18 09:17:21 dsirijus: "Package com.thefact.crecermolapp has no certificates atentry " did you search the actual error? Oct 18 09:18:59 anddam, atentry? Oct 18 09:19:31 (i'm publishing this from unity) Oct 18 09:20:43 I don't think it's important the entry that is missing certificate but rather the fixed part of the error string Oct 18 09:21:02 I don't have clue about the "publishing from unity" thing Oct 18 09:22:08 hm, well, i've specified everything there :/ Oct 18 09:22:38 dsirijus: I mean I don't know what "I'm publishing from unity" means Oct 18 09:22:52 wth, why you are using Unity? Oct 18 09:22:58 from what I can read there's some issue with the apk signing Oct 18 09:23:06 oh Unity as in the GNOME interface? Oct 18 09:23:09 http://unity3d.com (for who don't know what is) Oct 18 09:23:25 nope, Oct 18 09:24:25 ah unity engine Oct 18 09:24:37 Game developing Oct 18 09:25:41 yeh, unity3d, sorry for the ambigousness Oct 18 09:27:18 dsirijus: I see a reference to JDK 7 for this issue, you said to have tried different JDKs, right? Oct 18 09:27:51 i've tried few that have solved the issue for some, 6.16, 6.24 Oct 18 09:27:58 i guess i'd try few more or something Oct 18 09:28:31 hey, eclipse shows me there's an error in my project but not in which file and will not compile. what can i do? Oct 18 09:28:37 http://code.google.com/p/android/issues/detail?id=830 rename makes the apk install Oct 18 09:28:49 viran: paste a screenshot? Oct 18 09:29:21 of what? Oct 18 09:29:25 dsirijus: check comment 12 on that issue, it's even funnier Oct 18 09:30:26 ahahaha Oct 18 09:30:28 viran: of an actual cat chasing the computer mouse Oct 18 09:30:42 still not installing for me though, changing the .apk filename Oct 18 09:31:08 there was nothing to take a picture of Oct 18 09:31:15 it was just eclipse being an asshole Oct 18 09:31:19 clean build solved it Oct 18 09:31:33 dsirijus: I guess that when talking about filename the reporter was referring to the problematic file not the apk Oct 18 09:32:20 dsirijus: you're using debug key, right? Oct 18 09:32:32 can you build and sign by hand? Oct 18 09:33:26 anddam, well, i can build with debug key, and it runs fine with that, also i can specify keystore, key and lvl things in the interface for proper release (that doesn't work) Oct 18 09:34:14 i'm just guessing it is debug key, i just click and run it without certs Oct 18 09:36:21 Anyone know good references for really obfuscating a key well in code? Oct 18 09:36:32 anddam, one solution suggest that i need to create a keystore file with jdk6, not jdk7 (i'm not doing this, my client is) Oct 18 09:39:26 Hi Oct 18 09:41:14 I see an exception "TransactionTooLargeException", thrown when ApplicationThreadProxy.scheduleLaunchActivity -> BinderProxy.transact Oct 18 09:42:45 Did the ApplicationThreadProxy send a large data so that the exception was thrown? Oct 18 10:04:54 weird, i got notified as being banned from this channel Oct 18 10:05:03 * wei2912 #android-dev :Cannot change nickname while banned on channel Oct 18 10:08:01 <_yakubmobiledev> Juest Thanks for the Heelo eveveryone Oct 18 10:08:11 <_yakubmobiledev> hello every one Oct 18 10:09:11 lol Oct 18 10:09:15 Hehe Oct 18 10:09:56 wei2912: check /mode #android-dev +bq probably you were banned, see if you recognize anything there Oct 18 10:10:03 lol _yakubmobiledev Oct 18 10:11:05 Juest, but i did nothing wrong Oct 18 10:11:14 and i aren't listed anywhere Oct 18 10:12:06 Need to be registered on this channel, I think. Oct 18 10:12:11 I.e. identified Oct 18 10:12:13 HDroid, doubt so too Oct 18 10:12:21 i entered unregistered Oct 18 10:12:37 hello? Oct 18 10:12:38 Hm Oct 18 10:13:01 <_yakubmobiledev> Juest :I have looked in to the Find application Oct 18 10:13:04 I've seen that msg before, though. Can't remember exactly what it meant, but it didn't mean I was banned. Oct 18 10:13:09 <_yakubmobiledev> Thast a fantastic app Oct 18 10:13:30 lol Oct 18 10:13:50 wei2912: lol, without cloak or what? you must be ident: you get +q otherwise Oct 18 10:13:56 <_yakubmobiledev> I need some clarification please let me know is it right or wrong Oct 18 10:14:13 Juest, ah well it's settled anyway :) Oct 18 10:14:18 HDroid, ^^ :) Oct 18 10:14:22 lol Oct 18 10:15:09 <_yakubmobiledev> When i connect to a wifi network i will be assigned to an ip if i scan the starting from 0 to 255 i can get the connected devices Oct 18 10:15:14 <_yakubmobiledev> am i correct Oct 18 10:15:34 _yakubmobiledev: Yes.... with Fing Oct 18 10:16:23 <_yakubmobiledev> is the same concept used in Fing Oct 18 10:16:27 _yakubmobiledev: nope Oct 18 10:16:38 _yakubmobiledev: you need to scan your netmask area Oct 18 10:16:57 <_yakubmobiledev> How they are identifying the ips with device names Oct 18 10:17:06 then you can get devices that answer to pings from your local net Oct 18 10:17:25 <_yakubmobiledev> netmask area means? Oct 18 10:17:33 <_yakubmobiledev> actually i am new to this Oct 18 10:17:36 _yakubmobiledev: DHCP allows a client to give a specific hostname to a server - the server can also respond with "authoritative" hostname and domain to use Oct 18 10:17:48 <_yakubmobiledev> How can i do that? from my devic Oct 18 10:18:00 _yakubmobiledev: netmask tells which part of the IP address is "network address", and which part is for individual hosts Oct 18 10:18:33 <_yakubmobiledev> Thanks p_l Oct 18 10:18:56 <_yakubmobiledev> is there any resource so that i will know hot to implement Oct 18 10:19:26 _yakubmobiledev: for 192.168.0.0/24 it means that 192.168.0 is the network part (first 24 bits) and the last 8bits are intra-network addresses Oct 18 10:19:34 <_yakubmobiledev> How can i do a netmask programatically from my app Oct 18 10:19:36 _yakubmobiledev: get yourself a good book about TCP/IP Oct 18 10:19:51 and you can get netmask from Android APIs, iirc Oct 18 10:22:13 anddam, just a note - creating keystore file with jdk6 and doing it with the same jdk worked Oct 18 10:22:13 <_yakubmobiledev> Thank you very much p_l Oct 18 10:22:56 _yakubmobiledev: go wikipedia netmask Oct 18 10:23:41 Hi everyone, please i can post you errors from log cat, my app crashes when i want to openn activity, it have many things in it, yesterday i was working 8 hours so theres much to look, and iam lost in the error log, can someone figure out for me whats wrong from LogCat log ? Oct 18 10:23:57 <_yakubmobiledev> Juest: Thank you looking for it... Oct 18 10:24:00 _yakubmobiledev: if you're interested in proper networking, find a copy of TCP/IP Illustrated. And some newer references, maybe, for things like classless netmasks Oct 18 10:24:10 hi guys Oct 18 10:24:13 the thing is, it is working correctly in Android virtual device, but when debbuging on phone it crashes Oct 18 10:24:21 _yakubmobiledev: but unless you get heavy into that, it's enough to raid a local university's library Oct 18 10:24:56 DOSP: probably because OS? Pastebin the logcat Oct 18 10:25:07 okay wait thanks Oct 18 10:25:12 <_yakubmobiledev> p_l :I will do my level best to learn as much as i can Oct 18 10:25:48 DOSP: does the platform you choosen differs from your phone? does it lack features? hardware features Oct 18 10:26:04 _yakubmobiledev: I suspect that if you seriously learn IP, you'll be a level higher from typical programmer writing network stuff ;) Oct 18 10:27:13 I used "tcp/ip illustrated" books to learn a bit for my google interview. Let's say that networking wasn't what I failed on ;) Oct 18 10:27:21 well iam debugging it always with various phones, and it workes, but yesterday i was just messing around ViewSwitcher so it is more as a code error but in android virutal device everything works great, just the debug on real phone, so i dont know what to think, wait for pastebin Oct 18 10:27:27 <_yakubmobiledev> Thank you so much for your suggestion p_l I will be vey thanksful to you guys p_l and Juest Oct 18 10:27:28 p_l, did you suceed? :D Oct 18 10:27:59 wei2912: no, I missed the target a bit in programming questions, and since I applied for SRE/SWE, I failed :) Oct 18 10:28:13 p_l, i'm a newcomer so i don't really know who is in google and who isn't Oct 18 10:28:17 applying again next year Oct 18 10:28:17 ah... :( Oct 18 10:28:22 gd luck :) Oct 18 10:28:40 wei2912: romainguy, ctate, those I remember from Google. Oct 18 10:29:06 how to deal with memory if i'm doing an infinite scroll? Oct 18 10:29:07 http://pastebin.com/pxgfA75a Oct 18 10:29:08 p_l, i wonder how work is like there :D Oct 18 10:29:10 it goes out of memory. Oct 18 10:29:15 wei2912: morrildl too. basically, if /whois shows google net, it's someone from google ;) Oct 18 10:29:53 then your network debugging issues turn from "it doesn't seem to connect" to "in the wireshark dump the TCP SYN got answered by a TCP RST which means that the firewall is open but the server was not listening" Oct 18 10:30:04 hm but i see the Error inflating class CalendarView but dont know whats wrong with that :/ Oct 18 10:30:08 SuD: :D Oct 18 10:30:39 and yes, you can use "tcpdump" in a rooted phone Oct 18 10:30:41 SuD: or "there's spurious RST sent by your side, check please"? :) Oct 18 10:31:00 tcpdump into file, then load in wireshark for analysis :3 Oct 18 10:31:46 * p_l hopes not to repeat "bring down the ISP" episode with his phone, though. broken home router was enough Oct 18 10:36:52 p_l, just wondering, wht questions did they ask you? Oct 18 10:38:32 wei2912: things like "describe what happens in OS when you do ", "describe sequence of calls done by TCP server with BSD sockets", "how would you solve on the server without rebooting", "what does that code do", things like that Oct 18 10:39:00 p_l, lol Oct 18 10:39:07 p_l, any weird questions? Oct 18 10:39:08 wei2912: most importantly, each question starts simple then you get extra conditions Oct 18 10:39:33 p_l, ah thanks Oct 18 10:39:34 wei2912: if you mean brain-teasers, no, that's 80s/90s microsoft and early google, no longer true ;) Oct 18 10:39:39 phew Oct 18 10:40:39 it was fun, though, even if I was tired with last interview (5 in a row for onsite) which probably lead to failing Oct 18 10:41:30 p_l, i might give it a try when i graduate... Oct 18 10:41:38 but sounds pretty hard :D Oct 18 10:41:50 I applied before graduating, btw Oct 18 10:42:02 im not even in university Oct 18 10:42:10 Hi, does anyone know how to listen to NFC enabled/disabled? Have an intentfilter on NfcAdapter.ACTION_ADAPTER_STATE_CHANGED, but I do not get any broadcast =( Oct 18 10:42:24 p_l, does having open source projects help? Oct 18 10:42:42 wei2912: yes, at least in getting through initial selection Oct 18 10:42:48 phew Oct 18 10:42:56 (it can also net you direct invitation, which bypasses initial selection) Oct 18 10:43:49 p_l, thanks for telling me all this :) Oct 18 10:43:59 i still hv many years before tht Oct 18 10:46:52 until then, you can always apply as a storm trooper Oct 18 10:47:12 hahaha Oct 18 10:47:32 or have guts and determination and push through :P Oct 18 10:47:53 right now, guess i'll focus on my projects Oct 18 10:47:58 i read somewhere about android being run on some military equipment Oct 18 10:47:59 * p_l still lols at how his first brush with google recruitment happened in high school Oct 18 10:48:07 some device. maybe a map thing Oct 18 10:48:13 Hmmmm... I find it weird that there is less overhead in constantly reading an image from the filesystem rather than reading it as a blob from the database. Oct 18 10:48:25 tech1: the us military has been evaluating android phones for a while Oct 18 10:48:32 just for general use Oct 18 10:48:32 tech1: there are some tries for milspec, secured fork of android for use as PDAs in military and diplomacy Oct 18 10:48:47 tech1: modern military has lots of paperwork Oct 18 10:49:04 is there any chance of approaching them to sell ideas? Oct 18 10:49:07 p_l: I got pinged based on Usenet posts. Oct 18 10:49:14 Either for general use, or a heavily modified version stripped of all the pesky "anonymouse statistics" upload to Google Oct 18 10:49:18 i bet they would pay a lot :) Oct 18 10:49:35 p_l: wish I'd been in a position to accept Oct 18 10:49:56 but then i wouldnt want a bug in my app getting people killed Oct 18 10:50:00 SpeedEvil: same on first try Oct 18 10:50:03 that would be sad Oct 18 10:50:19 SpeedEvil: the later 3 were all related to recommendation from googler Oct 18 10:50:30 tech1: then be wary about making navigation apps Oct 18 10:50:46 I was working for RIM for a short while as a community manager, and I recall everyone going on about how BBs are so secure, that even Obama uses one. If the military starts using droids... heh Oct 18 10:50:46 p_l: do you use ghostery for FF ? Oct 18 10:50:47 yeh Oct 18 10:50:51 Irony abound Oct 18 10:51:41 'I see you were searching for get cursor attributes, no results were found, but wanna job? Oct 18 10:51:49 g00s: nope Oct 18 10:52:16 Tee_Pee: Yes, BBs are used in many places by diplomats and such. But they are also lowest-level stuff Oct 18 10:52:45 and frankly speaking, they aren't so secure and their crypto isn't that good till recently Oct 18 10:54:25 if I flush() a FOS into a file that already exists, will it be overwritten? Oct 18 10:54:44 p_l, finally any languages they test your knowledge on? Oct 18 10:55:38 I have multiple activities sending intent to the main activity,how can i find out from which class the intent has been received in the main activity? Oct 18 10:56:13 Look at intent.putExtra Oct 18 10:56:45 Tee_Pee: ok Oct 18 10:56:49 Tee_Pee: Thanks Oct 18 10:56:59 does it send the calling class as a parameter Oct 18 10:57:19 wei2912: know C and Java. You don't have to be a whiz at them, but at least for C you need to know how it interacts at low level Oct 18 10:59:13 you can do something like Intent intent = newIntent(this, MainActivity.class); intent.putExtra("calling_class", this.getClass().toString()); in your MainAcitivity's onCreate() you'll have String class=getIntent().getStringExtra("calling_class"); Oct 18 11:00:43 wei2912: I actually happened to be talked to by two former lispers, so I had used Lisp in one of the phone interviews :P Oct 18 11:00:58 p_l, wow Oct 18 11:01:03 just happens java is my favorite language Oct 18 11:01:41 p_l, on the topic of such does python rate up there at all? Oct 18 11:01:59 lasserix: I suspect so, but they do ask which language you prefer your interviews use Oct 18 11:02:04 what about go? Oct 18 11:02:14 ahh interesting Oct 18 11:02:14 wei2912: not yet on official list, afaik Oct 18 11:02:29 also, I applied for SRE/SWE, so I was also queried on Bash etc. Oct 18 11:02:38 dunno how it would go for other places Oct 18 11:02:40 phew once more Oct 18 11:02:47 im somewhat adequate in bash Oct 18 11:03:02 morning Oct 18 11:03:03 p_l, thanks a lot for telling us all this :) Oct 18 11:03:09 python is my favorite :) Oct 18 11:03:23 google is creepy Oct 18 11:03:28 python is a good complimentary language too Oct 18 11:03:30 golang.org displayed chinese Oct 18 11:03:45 and english? Oct 18 11:03:49 I haven't used Python in... looong time Oct 18 11:03:52 oops Oct 18 11:04:25 went to Ruby then bit of Haskell, Erlang, then settled on Common Lisp while looking into Haskell, Erlang and Prolog from time to time Oct 18 11:05:19 also, any programmer worth anything needs to know O-notation and basic stuff about algorithm efficiency Oct 18 11:09:07 p_l, ah thanks Oct 18 11:11:03 I suggest "The Algorithm Design Handbook" ;) Oct 18 11:11:27 i remember that :) a long time ago :/ Oct 18 11:11:41 now i read stuff that is unsexy, like UX Oct 18 11:11:50 well, hard to get respect anyhow Oct 18 11:16:56 UX can be interesting Oct 18 11:17:28 though I'll say two things: It was hard to concentrate on, and I failed the exam on first try, like half of my class ;) Oct 18 11:17:36 well, less UX, more HCI Oct 18 11:17:56 :) Oct 18 11:19:00 interestingly enough, it skewed me even more towards CLI interfaces Oct 18 11:22:16 For working with a ListView / SimpleAdapter do I need to extend base adapter and make my own to do something like "click on an item, get a menu with edit options for this item"? Oct 18 11:22:48 I had thought I could say, just modify the view of a list item but I didn't know before hand that android recycles a view multiple times for list items off screen. Oct 18 11:22:59 I ran into the issue of the modified view repeating as I scrolled up/down. Oct 18 11:23:23 tallest_red you can just use the position arguement in the onitemclickedlistener? Oct 18 11:23:49 depending on the position, switch to the correct menu to display Oct 18 11:24:22 Tried that. I thought the position int could be use to if/else any other items from getting the same view Oct 18 11:25:01 But the problem with the recycler is that the inflated view is literally the same for a new item being drawn as you scroll an offscreen item into view Oct 18 11:25:08 oh yeah sorry Oct 18 11:25:14 i use the id but I'm using a database Oct 18 11:25:17 I checked it by printing to my console printout the resource id or tostring of it Oct 18 11:25:25 and found it was exactly the same between multiple items. Oct 18 11:26:25 yea. So far the only way i can kinda get it to work is to sortof break the getview() of simpleadapter by overriding it and forcing it to always inflate a new view every single time. Oct 18 11:27:00 It breaks the recycler they tried to put into things, though i don't really want to do that. It's pretty obviously suppose to do this and to save on resources when drawing things on screen Oct 18 11:27:09 you could (this is a bit of a hack) embedd an invisible text view, setText as an id, then use the view in the onitem click to get its value and use that as "absolute positioning" Oct 18 11:28:29 Ah yea, I wondered after finding all this out if one of the reddit readers (the one I use at least) does this Oct 18 11:28:38 it slides out reddit submittions as list items to the left Oct 18 11:28:43 and from the right menu buttons appear Oct 18 11:29:08 Finding this issue has me thinking it's one wide thing that just keeps it off screen and then it slides left with positioning Oct 18 11:29:11 But i'm not sure Oct 18 11:32:05 well thnx anyways. Maybe i'll ask again later today wehn this place is more lively. 7am, no ones had their coffee yet I guess. Oct 18 11:32:44 atm it looks like I have to just extend base adapter and move away from the simpleadapter class. I think it's just too limited. Oct 18 11:49:27 I get a device id when I do "adb devices", can anyone tell how can I get that device id in app? Oct 18 12:08:31 hey guys. I'm programming an android app that's supposed to read RFID chips. Reading chips is supposed to be working in the background. So when a chip is in front of my phone the background modul reads its uID and fires an event with the uID. That's how the main class gets access to the uID. Oct 18 12:08:37 What do you think about the design? Oct 18 12:08:55 do you read rfid with nfc? Oct 18 12:09:31 yes Oct 18 12:10:06 cool Oct 18 12:16:35 hey guys., Oct 18 12:17:41 Call requires API level 3 (current min is 1): android.text.format.DateFormat# Oct 18 12:17:50 how do i change the min? Oct 18 12:17:59 (in eclipse) Oct 18 12:18:09 manifest file Oct 18 12:19:30 yeah i have this: Oct 18 12:19:34 Oct 18 12:19:39 but i still get the same error Oct 18 12:20:51 BulleTime, right click on project -> Properties -> Android and chose a higher Project Build Target Oct 18 12:21:34 also done that Oct 18 12:21:42 wierd huh? Oct 18 12:21:47 either you didn't Oct 18 12:21:52 or you're setting preferences for wrong project Oct 18 12:21:54 or you didn't run clean Oct 18 12:21:57 i have it set to 2.3.3 Oct 18 12:21:58 or your eclipse is on LSD Oct 18 12:21:59 :P Oct 18 12:22:06 yeah seems so :S Oct 18 12:22:13 is it an actual error or is it just a warning? :D Oct 18 12:22:19 errpr Oct 18 12:22:22 error* Oct 18 12:22:26 can I read RFID chips without being in the main activity? Oct 18 12:22:44 like in a background thread or sth? Oct 18 12:22:53 Cooks, AsyncTask. Oct 18 12:23:05 Hi, should you make a receiver Exported=true or false? Oct 18 12:23:05 BulleTime, hm, hm, usually cleaning the whole project helps Oct 18 12:23:10 i see i had to clean Oct 18 12:23:12 thanks Oct 18 12:25:54 Whats the best way to do an if statement with four long conditionals? Oct 18 12:28:16 Are there any good tutorials on animations? I need an image to be scaled (from the position it has on screen) to fullsize Oct 18 12:28:19 animated Oct 18 12:28:59 ninjalama: bootanimation? Oct 18 12:29:22 Gif, and it must comply density size: read docs Oct 18 12:29:41 lasserix: depends a bit on the in- and output, I guess. Oct 18 12:29:59 ? Oct 18 12:30:30 When you press on the image, it should start scaling until fullsize. Pressing back-button or whatever should remove the overlay image ( and display the layout with the original image size again ) Oct 18 12:30:46 ninjalama: http://developer.android.com/guide/topics/graphics/index.html Oct 18 12:31:05 I have like if ( (currentFragment == OnFragmentLoadedObserver.FRAGMENT_CONTENT || currentFragment == OnFragmentLoadedObserver.FRAGMENT_CONTENT_PAGE && x2 ) {} what's a clean looking way of formatting that is what I meant? Oct 18 12:31:47 clean and easily readable Oct 18 12:32:59 ninjalama: since 3.0 there is an easier way of animating this using properties (and also a blog about how to do these things easier on the site.). for compatibility you can use a third party library http://nineoldandroids.com/ - which allows properties to be animated on pre honeycomb devices. otherwise you should look into http://developer.android.com/reference/android/view/animation/ScaleAnimation.html. Oct 18 12:33:07 hmmm.... In my FragmentPagerAdapter I instantiate a fragment like such Fragment fragment = Fragment.instantiate(cont, SinglePicFragment.class.getName()); Oct 18 12:33:14 Indent each condition one step further than the if, I guess. Oct 18 12:33:25 Now I try to get the imageview defined in the layout associated with SinglePicFragment Oct 18 12:33:40 DysonReturns: need to get this working on >= 2.1 Oct 18 12:33:41 How would I go about doing that? The context.findViewById()? Oct 18 12:33:46 hahah except it scrolls horizontally waay of the page but yeah that makes sense Oct 18 12:33:49 :/ Oct 18 12:34:20 ninjalama: then check if scaleanimation is gonna do the trick for you first, before trying the new methods, which require including nineoldandroids. Oct 18 12:34:21 or not... Oct 18 12:35:00 lasserix: that's still a strange pattern, though. Oct 18 12:35:16 My instinct would tell me to program around it :P Oct 18 12:35:37 But it's hard to tell without context. Oct 18 12:36:10 Yeah, it's not so big a deal, just have always wondered whats most readable way of formatting long if conditionals Oct 18 12:37:01 Other than putting each condition on its own line, pretty much.. don't do long if conditionals :P Oct 18 12:37:08 .w provision Oct 18 12:37:51 maybe just use temp boolean variables and compact the conditionals in those then use that Oct 18 12:37:52 heh Oct 18 12:38:06 only 9 lines...managed to write 9 lines of code Oct 18 12:38:07 @android:color/white matches the constant from http://developer.android.com/reference/android/R.color.html , right? Oct 18 12:38:14 and that is an empty class Oct 18 12:38:37 so that only white, black and darker_gray are defined, is this correct? Oct 18 12:39:42 I mean as plain color names Oct 18 12:56:06 I run this in the constructor of a class: pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0); The class inherits from Activity Oct 18 12:56:19 However I don't call the onCreate method Oct 18 12:59:57 it seems like I get a nullpointerexception Oct 18 13:00:06 but I don't get the reason Oct 18 13:00:52 Cooks: you can't use activities that android doesn't construct for you, I guess. Oct 18 13:01:08 there's some hidden setup that occurs after construction when android is managing its lifecycle Oct 18 13:01:45 alankila I want to use the RFID reader in that class... that's why I have to define intents Oct 18 13:02:06 and it seems like I can only define a pending intent went the class inherits from activity Oct 18 13:02:35 I'm not really into android programming yet. That's why I'm super confused right Oct 18 13:03:09 however my boss wants me to get that piece of software done in like yesterday .... :-P Oct 18 13:03:13 well, firstly do not define constructors for classes that inherit from activity (or fragment). You can do this, of course, but don't expect any part of the android framework with using that class as the context to work yet Oct 18 13:03:28 only use the android methods after onCreate has been called for it by android Oct 18 13:03:50 when i run onCreate it always changes the view :/ Oct 18 13:04:07 but it's supposed to be a modul that runs in the background alankila Oct 18 13:04:12 sounds like your code is somehow messy. It's refactoring time to match the new requirement. Oct 18 13:04:47 in your case it may be enough to declare the interesting methods static Oct 18 13:04:53 then pass a Context in from caller Oct 18 13:05:18 but you should probably move them out of the Activity into utility class generally usable from multiple contexts such as service or activity Oct 18 13:05:58 in other words, android code often has Context object passed. The android-managed objects such as Application, Activity and Service are all contexts Oct 18 13:06:39 I don't know anything about details of accessing rfid readers from android. To my knowledge android has no such capability, unless NFC is that Oct 18 13:06:49 it's nfc Oct 18 13:07:06 ...NFC can be used to read RFID? Oct 18 13:09:03 Hodapp: some chips. NFC is actually a standardization and improvement upon RFID stuff Oct 18 13:09:45 dman that android programming stuff is really confusing Oct 18 13:10:30 Android is not the most clearly designed framework, I am afraid. Oct 18 13:11:02 I've found it clearer than Qt & C++ for a lot of stuff, really. Oct 18 13:11:27 and I'm not sure it's improving with time. Perhaps the deprecations are well-placed, and over time some kind of clarity arises from the jungle of parallel ways to do similar things. Oct 18 13:13:13 the biggest difference is that it doesn't do a simple loop like other GUIs Oct 18 13:14:47 so its the first time I have to do country specific things (just for one country). So correct me if I'm wrong please. The best way to handle this is to have a default and then some resource qualifiers for the [languages spoken*]-r[countryCode] and additionally have mcc[countrycode] as a failsafe. Oct 18 13:14:52 I got a bunch of horizontally swipe-scrollable viewpager fragments in an activity. Is it possible for a fragment to know its position? Oct 18 13:15:23 Tee_Pee: define an activity method (and an interface for activity) that allows the fragment to ask it. Oct 18 13:15:43 ((IPositionFinder) getActivity()).findMyPosition(); Oct 18 13:15:58 the findMyPosition would probably go into the viewpager's fragmentpageradapter or something to answer the actual question. Oct 18 13:16:45 leave I out if you don't like to tag interfaces separately from classes Oct 18 13:16:56 it's not java style but I find it a bit helpful for some reason Oct 18 13:17:23 it used to matter more when it determined if @Override was allowed Oct 18 13:18:35 DysonReturns: something like that. You can use mcc for "country-specific network" stuff, and lang code for language-specific Oct 18 13:18:38 hmmm... thanks, I think I get the gist of it. However, now I realized that I probably don't need to know the fragment's position... :p Oct 18 13:18:43 but the way I use interfaces tends to be so different that it's cognitively immediately useful to me to know if it's a real class or not. Maybe if java also hid the difference between "implements" and "extnds". Not going to happen, probably. Oct 18 13:18:53 * p_l always sets up english UI and polish keyboard Oct 18 13:19:05 Tee_Pee: yes it's the sort of thing fragments should not care about Oct 18 13:19:08 p_l: thanks. i'll use both to be safe and try spoof it somehow for testing. Oct 18 13:19:36 The worst bug is an incorrect assumption. Oct 18 13:22:35 Ok, what I'm trying to do here is to create an image slideshow... I've got everything set up except for the last part - actually setting the image source of the fragments as it comes into view. I take it I can do that from the container activity, in the onPageChangeListener ? Oct 18 13:23:27 uhh why not in the instantiation? Oct 18 13:23:30 I recommend defining an interface in fragments that signals when they come into view, or making it such that the viewpager destroys fragments as soon as they are out of view -- iirc this should be possible, though I'm not sure if it really will do that Oct 18 13:24:01 normally the viewpager keeps the neighboring fragments to the currently displayed fragment Oct 18 13:24:04 a FragmentStatePagerAdapter handles the destroying once they're out Oct 18 13:24:18 oh. That's that sort of thing. Oct 18 13:24:47 Tee_Pee make a note when the viewpager comes into view the first time do not assume onPageChanged is called Oct 18 13:24:57 if you are using it to set up stuff Oct 18 13:25:15 uhh why not in the instantiation? <----Because when I call the container activity, I check how many pictures I have in total, instantiate that many fragments and pass them to the adapter. If I were to set the image of each of those during instantiation I'd be waiting a long time before it finishes. Oct 18 13:25:28 Considering some of these albums have 700 pics or more Oct 18 13:25:37 ahh okay Oct 18 13:25:38 Tee_Pee: sounds like you're just using fragmentpageradapter (with state or not) wrong Oct 18 13:26:07 you could just let the adapter construct the fragments as needed and pass in their initialization info there Oct 18 13:26:13 That's also possible Oct 18 13:26:19 make a note that mViewPager.setCurrentItem(position) whenever called will NOT trigger onPageSelected in the onPageSelectedListener Oct 18 13:26:29 yeah I know that Oct 18 13:27:00 this adapter-constructs-view-objects model is the android expectation, though nothing says you absolutely have to do that Oct 18 13:27:17 hmpf, having the pager create fragments on the go is probably the best way to go about it. Oct 18 13:27:54 I did the equivalent of that when working on web app galleries before, why didn't I think of it now Oct 18 13:30:51 if I have setHomeEnabled(true) on my action bar, is it automatically supposed to pop fragments off the stack? Oct 18 13:31:12 I believe so. Oct 18 13:31:19 Thought so too Oct 18 13:31:20 hmm Oct 18 13:36:36 Anyone know why setHomeButtonEnabled(true) is not working / not even putting the back carrot? Oct 18 13:37:56 If I send a parcelable through an intent as extra, will modifying it on the receiving end change it on the sending end? Oct 18 13:49:04 frankbro|work: no Oct 18 13:52:04 Just want to run some logic through here, if anyone spots anything wrong, smack in the head with it - I initiate the viewpager adapter, add 2 or 3 fragments depending on whether the user selected the begining / end or middle of the album, respectively. Inside the adapter I maintain a "real position" within the dataset. Whenever a new item is requested, I check that real position to see if there are any adjacent elements, and ad Oct 18 13:52:55 This real position integer I update in the viewpagers onPageChangeListener Oct 18 13:54:37 you'll need five original pages if you want it to page endlessly in both directions Oct 18 13:54:59 nah, I don't want it to loop Oct 18 13:55:56 How do I stop that little Stretch to fill screen option from showing up when I run my application on my Tablet? Oct 18 13:56:18 Set target API to the latest Oct 18 13:56:23 In the manifest Oct 18 13:56:49 AlCapwn: I don't want to use that because I want the software menu button to draw. Oct 18 13:58:41 Don't think that's possible then Oct 18 13:58:54 Why not just use the action bar? Oct 18 13:59:22 You don't actually have to change any code,just add stuff to the menu XML if you want Oct 18 14:00:09 AlCapwn: I don't want to have a bar accross the top of my screen, besides I want to support Froyo & Gingerbread Oct 18 14:01:17 AlCapwn: do you know where I could get the three little squares for the menu icon? I'd be happy enough just drawing that in the top right corner of the screen and using that. Oct 18 14:02:05 ankhwatcher you can use ≡ Oct 18 14:02:23 oh nevermind that is the strict equality symbol Oct 18 14:02:35 ? Oct 18 14:03:30 I can't believe that it's not possible to know the direction of the scroll in the viewpager listener.... Oct 18 14:03:51 ankhwatcher the sherlock action bar download has it in its res Oct 18 14:04:19 handy Oct 18 14:04:26 it's cool to just take that, right? Oct 18 14:04:39 believe so Oct 18 14:05:03 JakeWharton: may I steal your squares? Oct 18 14:15:41 Ankhwatcher: if you use target API,your compatibility with older versions won't be affected Oct 18 14:15:53 hi Oct 18 14:16:05 can anybdy tell me how to load an xml layout in a Surfaceview? Oct 18 14:20:15 can anybdy tell me how to load an xml layout in a Surfaceview? Oct 18 14:27:10 you don't. Oct 18 14:27:29 is there any way I can check if a different keyboard is installed? Oct 18 14:28:52 hi, I have some novice/intermediate java skills and I was hoping to get into android development. Does anyone have any experience with the books "Apress Beginnning Android 4" and "Apress Pro Android 4"? I'm debating where to start. Oct 18 14:29:51 hi all Oct 18 14:29:59 If I wanted a project that had a backend library and a frontend app, should I create as two packages in one project or two projects? Oct 18 14:30:19 the library will most likley have a single app using it but I;d liek to keep that option open Oct 18 14:30:39 if two projects, how do I reference the library int he main app? Oct 18 14:30:56 (I'm normally a C# developer so don;t get on well with Java) Oct 18 14:31:49 eindoofus goto a bookstore and check the books out, see if they have any projects you can follow through Oct 18 14:32:20 yeah, I guess that the best way. Oct 18 14:32:27 that's* Oct 18 14:32:45 tbh i had three books I didn't really start using them until after i completed a few very basic projects Oct 18 14:34:52 Anoia if you are using eclipse right click on the package --> properties (at bottom) chose android from the list and check isLibrary Oct 18 14:35:24 err right click on the project Oct 18 14:35:34 then to use that go to same menu place and click add Oct 18 14:36:28 what's the best way to communicate variables between an activity and a fragment? are global variables an option? Oct 18 14:36:51 use an interface in the fragment Oct 18 14:36:59 to talk to the activity Oct 18 14:37:26 there is explaination on dev website Oct 18 14:37:32 *explanation and code Oct 18 14:37:36 lasserix: ahha, I knew I;d seen it somewhere Will these be bundled together in one apk? Oct 18 14:37:48 Yes I believe so Oct 18 14:37:59 ok, I'll give it a try later, thanks Oct 18 14:38:29 np goodluck Oct 18 14:38:30 I'll look for that, thank you- Oct 18 14:38:59 http://developer.android.com/training/basics/fragments/communicating.html Oct 18 14:39:14 awesome, thank you kindly Oct 18 14:42:06 hi Oct 18 14:42:08 Q: I want to start developing for Android. I'd like to know what's the best path ? I've got some experience in Web development with Php / Javascript. Thanks for looking! Oct 18 14:43:26 Shwaiil learn java, work on some simple projects (soundboard, tic tac toe) and go from there Oct 18 14:45:35 lasserix: tks for looking! development trough phonegaps and stuff like that is not worth it ? Oct 18 14:46:33 Does anyone know how to determine which keyboard is being used? Oct 18 14:46:39 i've heard it can break easy, and will frustrate you more. besides, it's been shown people tend to use native apps more than its complementary web interface Oct 18 14:47:01 so if you are serious about making something good, you might as well work with the actual enviroment Oct 18 14:47:15 Phonegap is pretty much unable to offer an experience feels even remotely like a native app, besides, Android's html5 support in webviews leaves a lot to be desired. Oct 18 14:47:59 Titanium might get you further, but easy cross-platform development is pretty much a pipe dream. Oct 18 14:48:47 plus goos put up an interview with Eric Shimdt and he made an interesting point that because of the populatiry of smart phones, new internet based enterprises will start working from native phone --> web Oct 18 14:49:17 *or are starting too Oct 18 14:49:30 Web as an afterthought, I can see how that makes sense for some projects :P Oct 18 14:49:43 lasserix: I see, I guess that's why I bought the smartphone and want to update my skills Oct 18 14:49:50 not as an afterthought, but start from the native phone and goto web Oct 18 14:49:55 but I wish I coud just stick with javascript and html5 Oct 18 14:50:50 Ankhwatcher: you can try Oct 18 14:51:25 HDroid: Is Phonegap really that craptastic? Oct 18 14:51:29 mobile first is the new approach Oct 18 14:51:39 wether that's mobile web or mobile native, its mobile first Oct 18 14:52:01 Hodapp: pretty much... and they pretty much admit it's their goal to be craptastic, as soon as they start to be non-craptastic they're going to stop :P Oct 18 14:52:20 Hodapp: not just Phonegap, though... Android's webview has some serious issues. Oct 18 14:52:21 Phonegap is just a webview right ? Oct 18 14:52:25 like Rhomobile Oct 18 14:52:27 drumer306 google ceo said just the opposite Oct 18 14:52:52 lasserix: opposite of mobile first ? Oct 18 14:52:58 It's not so much a new approach as it is logical for some categories of apps. Oct 18 14:53:06 yeah Oct 18 14:53:18 http://new.livestream.com/accounts/1249127/events/1589787 Oct 18 14:53:40 its all still an opinion, but more and more users are accessing sites through their mobile device Oct 18 14:53:43 I can't remember when it is somewhere post middle, I think there's a transcript somewhere too Oct 18 14:53:43 It's somewhat silly to do location-based web apps aimed at being used in the comforts of people's homes. Oct 18 14:54:01 drumer306: conversion is still a big issue, though. Oct 18 14:54:02 HDroid: noted. Oct 18 14:54:09 so the idea is to design your web site to be mobile first Oct 18 14:54:15 then scale up Oct 18 14:54:41 wether you would make a mobile app first, i dont know Oct 18 14:58:24 what design patterns does the android follow Oct 18 14:58:38 BYOB Oct 18 14:58:40 android devleopment Oct 18 14:58:42 BYOB? Oct 18 14:58:51 nm ;p Oct 18 14:59:10 is that an official term? Oct 18 14:59:14 no Oct 18 14:59:27 Google is working in ChromeOs, is really worth to learn java right now for android development ?! Oct 18 14:59:34 usually its what you tell your friends when you dont have much cash and you're hosting a party Oct 18 14:59:36 so what design pattern does android devleopment follow? Oct 18 15:00:04 iphoe follows mvc Oct 18 15:00:17 i hear android is fundamentally different? Oct 18 15:00:52 Who says it must follow a design pattern? Oct 18 15:00:59 traditionally Oct 18 15:01:05 follows a pattern im assuming? Oct 18 15:01:06 'traditionally'? Oct 18 15:01:14 how to install eclipse (juno) manually in ubuntu 12.04? Need for android development? Oct 18 15:01:26 yes, 'traditionally'... Oct 18 15:01:39 or conventionally Oct 18 15:01:40 profligacy: traditionally _what_? Oct 18 15:01:47 what design pattern Oct 18 15:01:47 geecat: go to #eclipse Oct 18 15:01:50 geecat: easiest is to just download the distro from eclipse.org and dump it in a dir. Oct 18 15:01:58 does android devleopment follow Oct 18 15:02:07 what design pattern does android devleopment follow Oct 18 15:02:11 profligacy: how is this asking anything different? Oct 18 15:02:18 profligacy: it's complicated. Oct 18 15:02:33 alritght thanks lov Oct 18 15:02:38 that actually the best answer i got Oct 18 15:02:54 people here are cranky a lot huh? Oct 18 15:03:02 alright well thanks Oct 18 15:03:09 profligacy: Just please, please don't treat design patterns like a checklist. Oct 18 15:03:22 like a check list? Oct 18 15:03:35 no just want to have some insight into android development Oct 18 15:03:50 If you want insight into it, you're not gonna find it as a list of design patterns. Oct 18 15:04:16 a "list" of design patternS ? Oct 18 15:04:18 Just download the SDK and mess around a bit. Oct 18 15:04:22 alright got you Oct 18 15:04:24 thanks Hodapp Oct 18 15:04:31 thanks lov Oct 18 15:04:52 It's fairly easy to MVC in Android, if you treat the XML (plus some helper classes) as the views, the Activity as the controller and make your own model structure. Oct 18 15:04:59 But nothing dictates that you use MVC. Oct 18 15:05:05 (it makes sense to do it, though). Oct 18 15:05:53 I'm not sure if you can call iphone MVC, as you can pretty much ignore M and C, the only thing that's more or less set in stone is the V part. Oct 18 15:07:32 I say dont worry so much about it , just start reading the docs and coding a bit in Java :) like anything sometimes design patterns make things more difficult, all depends on the task Oct 18 15:07:32 Q: Can we develop with Sublimetext instead of Eclipse ?! :T Oct 18 15:08:27 Shwaiil: sure, the docs on developer.android.com for the sdk describe the manual approach as well, be prepared to set up a lot of stuff on the side, though. Oct 18 15:09:10 HDroid: I'd rather keeps thing simple. So with Eclipse I don't have to setup too much stuff right ? Oct 18 15:09:21 Hope Eclipse has a nice dark theme :X Oct 18 15:09:25 Shwaiil: well, to put it like this.... a lot less :) Oct 18 15:09:37 hum ok Oct 18 15:09:46 Of course, you could edit stuff in sublime and launch / run from Eclipse at the same time. Oct 18 15:10:08 Eclipse just dumps its project structure in its workspace directory, there's nothing preventing you from editing the files from sublime. Oct 18 15:11:00 I've seen some dark variants of Eclipse, and pretty much everything is configurable anyhow... if dark is the only thing you're concerned about :P Oct 18 15:11:33 11:09:52 < HDroid> Of course, you could edit stuff in sublime and launch / run from Eclipse at the same time. Oct 18 15:11:36 yeah. Oct 18 15:11:42 You have to tell eclipse every time you change a file outside of eclipse Oct 18 15:11:46 eclipse is really clingy. Oct 18 15:11:51 There's settings for that Oct 18 15:11:52 So enjoy constantly refreshing your project if you take this route Oct 18 15:12:00 really, eclipse is useful as an IDE. Oct 18 15:12:05 If you're not going to use it as an IDE, just use ant. Oct 18 15:12:17 I don't think it does it by default, but you can tell Eclipse to monitor changes. Oct 18 15:12:23 anyone here work with custom fonts/typefaces in an android app? Oct 18 15:12:24 But yeah, eclipse isn't that bad. Oct 18 15:12:25 HDroid: I know there is, but it never seems to work for me. Oct 18 15:12:32 I do find Eclipse pretty helpful as an IDE. Oct 18 15:13:11 ours is using helvetica, but there seem to be rendering problems on ICS and above Oct 18 15:13:53 hello Oct 18 15:13:58 i am starting on android Oct 18 15:14:11 can anyone provide me some good tuturial to use ? :) Oct 18 15:14:38 karakuri you can use custom but the font renderer typically will not necessarily handle all characters well Oct 18 15:14:53 MalMen: http://developer.android.com/training/basics/firstapp/index.html Oct 18 15:15:06 lasserix: its not even handling standard characters well sometimes Oct 18 15:15:29 but its not consistent Oct 18 15:15:42 some screens it shows up fine, others it renders poorly Oct 18 15:16:01 MalMen, best is developer.android.com, its enough Oct 18 15:17:07 MalMen, understand the building blocks and there you go are ready to write your android applications Oct 18 15:19:21 Hey all... When creating an AlertDialog with a View inside how do I make it look well. It takes the theme from the activity, and looks ugly, since the dialog does not use the same theme... Oct 18 15:20:05 Lachezar you can provide a ContextThemeWrapper in the constructor for AlertDialog.Builder Oct 18 15:21:03 karakuri: I am using getLayoutInflater().inflate() to inflate the View... Oct 18 15:21:28 karakuri: and in the Builder Constructor I am providing 'this', which is the Activity... Oct 18 15:25:03 <[7]> dragorn: hey Oct 18 15:25:21 <[7]> I recently reported a wpa_supplicant problem... do you remember? Oct 18 15:25:31 <[7]> any news on this? Oct 18 15:25:40 Lachezar: so you want the dialog to use a different theme than the activity, correct? Oct 18 15:26:06 karakuri: No, I'd like the contents in the dialog use the Dialog theme. Oct 18 15:28:41 Lachezar: not sure I understand then Oct 18 15:28:54 are you extending a platform theme? Oct 18 15:30:10 karakuri: Nope. Oct 18 15:30:51 karakuri: I have declared all my activities to use the Light Theme. The dialogs look OK, unless I try to make them use custom views. Oct 18 15:32:12 lachezar are you using dialog fragment? Oct 18 15:32:30 [7]: i remember; i haven't heard anything Oct 18 15:32:32 lasserix: Nope. No fragments. Oct 18 15:32:39 oh that would be why Oct 18 15:32:42 dialogs are deprecated Oct 18 15:32:49 supposed to use dialog fragments Oct 18 15:32:52 [7]: i no longer work for the job i had when you reported it, so i dont' know if they're still looking at tweaking the supp, either Oct 18 15:32:52 lasserix: I am not using fragments at all... Oct 18 15:33:06 you don't need to use other fragments Oct 18 15:33:11 just the dialog fragment Oct 18 15:33:21 if you check the developer website its quite easier than dialogs Oct 18 15:33:33 lasserix: ... and FragmentActivity and etc. Oct 18 15:33:48 just fragmentactivity :) Oct 18 15:34:06 lasserix: I am developing against 2.x... I'll have to use the back-ported support library... No thanks... Oct 18 15:34:30 if you are using new eclipse /adt it is automatically a part of your project Oct 18 15:34:40 lasserix: I don't want to. Oct 18 15:34:58 well i am dev from 2.1 >= and have had no problems Oct 18 15:35:13 besides its the way of the future! Oct 18 15:35:33 lasserix: Like I said: I don't like fragments, and unless some one beats me with a stick (before I shoot him) I will not use them. Oct 18 15:35:44 lasserix: Drop it. Oct 18 15:36:02 lasserix: I need to make the Dialog contents look as if they're made for the dialog. Oct 18 15:36:42 * Lachezar hates having the same Fragments conversation every time he visits the channel. Oct 18 15:37:27 ahh..gotta love channel drama Oct 18 15:37:31 Then stop visiting :p Oct 18 15:37:49 if you're doing it wrong, it's going to get mentioned Oct 18 15:38:26 i was reluctant too for a while , now life is so much easier but anyways Oct 18 15:38:31 I really hope I'm told "Don't target this to the Nikon Coolpix S800c, it's not suitable" so I can focus on devices that run >= Honeycomb and actually have ADB drivers Oct 18 15:38:50 because this compatibility Fragment stuff is annoying. Oct 18 15:38:51 For now the only way I've found it actually working is to make the content background explicitly light_background... Which is kinda... Well... Hacky. Oct 18 15:38:57 lasserix: Like I said: I don't like fragments, and unless some one beats me with a stick (before I shoot him) I will not use them. Oct 18 15:39:06 why would you decide to use it, after you shoot them? Oct 18 15:39:40 profligacy: No, I mean I'll try to shoot him before he attempts to beat me with a stick :) Oct 18 15:39:54 it's the You stole my horse! I'm no horse thief, besides your horse is crummy logic Oct 18 15:40:06 lasserix: WTF? Oct 18 15:40:06 but you suggested you will use them if some beats you with a stick Oct 18 15:41:05 Lachezar are you threatining to shoot people in the channel? Oct 18 15:41:07 * Lachezar tries to drop the off-topic and focuses on th eissue at hand. Oct 18 15:51:17 QUERY/AUDIO: Is it possible for an app to utilize both the analog audio out (specifically the headphone jack) *and* BT/A2DP simultaneously, as separate audio channels? If so, what codecs are available for A2DP? (lov says this is probably impossible; anyone want to dispute it today? :-) Oct 18 15:56:20 Hi All, need some guidence on sdk redistribution, can anyone help. Oct 18 15:58:38 hi all, i am trying to create a custom distribution which has sdk, and android dev related items precompiled in one, just like android kitchen, i am confused whether i am alowed to distribute andorid sdk with package or not. Oct 18 16:08:30 anantshri: I'm pretty sure you can Oct 18 16:08:47 excluding the Sun^WOracle JDK, which is a different thing Oct 18 16:09:35 need tip. i have a textview and a dialog for edit that. after press "OK" of dialog i need to render new value, how i can do it? Oct 18 16:10:59 TextView#setText(int) or TextView#setText(CharSequence) Oct 18 16:11:44 so I got a freebie playbook today... is it weird that I'm more interested in using the nice slipcase for my N7 than using the tablet? Oct 18 16:13:14 Leeds: got confused as https://developer.android.com/sdk/terms.html suggested that i can't redistribute item specifically in 3.3 Oct 18 16:13:29 Hmm, I hadn't thought about using the Playbook's slipcase. Oct 18 16:13:47 (I do like the Playbook's hardware though, the edge swipe should be more common on Android) Oct 18 16:14:07 anantshri: that's very odd - I was under the impression the SDK was open source Oct 18 16:16:34 Leeds: is there any contact where we can get some clarification on this. Oct 18 16:20:30 huh, I didn't know there was an bash autocomplete file for adb in the sdk source :) Oct 18 16:21:51 there's no startActivityForResult allowing user to choose a position and get the co-ordinates from the maps app right? only option is to have a map view? Oct 18 16:22:10 anantshri: the large number of copies of - and references to - the Apache license in the SDK source, as used by Android generally, would seem to conflict with the terms you found Oct 18 16:22:35 https://android.googlesource.com/platform/sdk/+/8e301e151f7d6c00eeb299e3d84f0d462c097cc3/ Oct 18 16:24:11 any known ports of pcre to android? Oct 18 16:24:22 Seems mine which I had to hack to compile is broken. Oct 18 16:24:23 Leeds: ya that's my problem actually not able to accertain whether the inclusion is right or wrong. that's why i was asking if we can send an email to someone. Oct 18 16:24:30 Read item 3.4 as well Oct 18 16:24:37 is webview the best way to show image from internet in an app Oct 18 16:24:55 Chances are you can build and distribute the sdk yourself, you just can't include stuff like intel's x86 emulator, motorola's images, etc Oct 18 16:25:01 SimonVT: yeah, but you've got to admit it's confusing Oct 18 16:25:09 Unless that's allowed by their license Oct 18 16:25:30 YOU MAY NOT DISTRIBUTE ANY OF THIS UNDER ANY CIRCUMSTANCES. UNLESS YOU MAY. Oct 18 16:26:25 anantshri: try tools at android.com Oct 18 16:26:50 SimonVT: Leeds my plan was to distribute the SDK as downloaded from google site along with 2 platforms 2.3.3 and 4.1 basically arm emulator and platform files so that in my distribution anyone can start working on it as soon as yhey boot. Plus i will be packaging ADT with eclipse. Oct 18 16:27:03 Leeds: thanks just sending a mail to that id. Oct 18 16:27:09 hey what IRC clients do you guys use? Oct 18 16:27:18 Floe Oct 18 16:27:30 xchat, usually Oct 18 16:27:45 back in the old days before all the Androiders had better things to do with their lives, xav - head of the tools team - hung out here sometimes Oct 18 16:28:20 Ravenheart: never heard of it but looks cool Oct 18 16:28:42 i just bought a nexus 7, i hope it isn't doa Oct 18 16:29:04 its not a very light IRC client but its quite practical and am finding it very good Oct 18 16:29:59 anantshri: alternatively, I would never suggest this, because it would be completely wrong, but if all else fails... many Android engineers can be found on G+ Oct 18 16:31:36 Leeds: ya i agree i did found few on g+ but felt wrong in doing it thats why came to irc. Oct 18 16:32:20 what is the license gpl? Oct 18 16:32:37 ZSpook: license listed here https://developer.android.com/sdk/terms.html Oct 18 16:32:39 as I said, if all else fails... a respectful "Sorry to bother you, but where is the appropriate place to ask this question" wouldn't necessarily be terrible Oct 18 16:32:46 anantshri: *no*, that's not the license Oct 18 16:32:51 Oren: hi Oct 18 16:33:21 Leeds: ya its basically the terms and conditions / agreement. Oct 18 16:33:35 that's the whole point - pretty much all the Android-originated code is under the Apache license, which is more permissive than the GPL... clause 3.3 there says "You may not copy this", clause 3.4 says "unless it's under a license which allows you to" Oct 18 16:33:45 Oren: whats up? Oct 18 16:34:27 Oren: okay bye then Oct 18 16:35:50 any hot girl android developers? Oct 18 16:36:04 If you have a physical menu button you can open the menu with this.openOptionsMenu(), but how can you open it if there is no physical menu button? Oct 18 16:36:05 no Oct 18 16:36:29 ZSpook: did you seriously just ask that? Oct 18 16:36:35 yes i did Oct 18 16:36:46 foolish question? Oct 18 16:36:50 do you want to take this opportunity to either apologise or leave? Oct 18 16:37:01 errr why? Oct 18 16:37:13 what did i do? Oct 18 16:37:14 because it's an insanely immature and sexist thing to say Oct 18 16:37:33 If you want to meet attractive girls who want to be objectivised become a hairdress, not a developer. Oct 18 16:37:35 just asking Oct 18 16:37:43 it was the wrong question to ask Oct 18 16:37:53 sorry, my mistake Oct 18 16:38:25 didn't mean to offend anyone but it was a serious question Oct 18 16:39:21 ZSpook: interested in apps or girls ? ? Oct 18 16:39:30 erm... are you aware of any sayings regarding future digging when one is already below floor level? Oct 18 16:39:49 ZSpook: you nust need to learn the rules: http://rulesoftheinternet.com/index.php?title=Main_Page Oct 18 16:40:39 i apologized, i did not mean to be offensive Oct 18 16:40:41 anyhow, how about making this OptionsMenu come up? Any suggestions? Oct 18 16:40:42 Oh, is *that* where Rule 34 comes from. Oct 18 16:40:51 Baylink: yup Oct 18 16:41:25 Oh, and to answer ZSpook's question in the way that will cause him maximal annoyance: "Yes." Oct 18 16:41:47 (I'm sure there has to be at least one. :-) Oct 18 16:42:01 i am doubtful Oct 18 16:42:07 Hey gang, little help here. Trying to dynamically set the height of my LinearLayout to half of the device height. But I keep getting the error, android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams . Here's my code: http://pastie.org/5079657 ... any help? Oct 18 16:42:09 one can always hope i guess Oct 18 16:42:21 weird Oct 18 16:42:38 I have no idea why when trying to compile pcre(for android) as static makes nothing... Oct 18 16:42:48 fakingfantastic: don't do it that way. Use layout weights Oct 18 16:42:49 building as shared works, as static..nothing to be done according to make Oct 18 16:43:16 evancharlton: ahh good call, thanks Oct 18 16:44:03 so, going with webview seems the best idea to me if no one has anything against it Oct 18 16:44:23 Looney: no Oct 18 16:44:25 easy to implement as well hopefully Oct 18 16:44:40 download the image, show it using a native imageview or similar Oct 18 16:45:03 Looney: that's a terrible idea Oct 18 16:45:29 evancharlton: actually, how would I do that with weights, since LinearL is in a RelL Oct 18 16:45:33 http://boingboing.net/2012/10/18/why-casual-sexism-in-science-m.html Oct 18 16:45:39 hmm, so you want to use http, ftp or whatever it takes Oct 18 16:45:49 to download image Oct 18 16:46:02 almost certainly http, yes Oct 18 16:46:21 ok Oct 18 16:46:52 12:35:58 < ZSpook> any hot girl android developers? Oct 18 16:47:03 I don't even know where to begin with this one. Oct 18 16:47:16 sheesh what is the big deal? Oct 18 16:47:39 none if you're 14 I guess. Oct 18 16:47:51 if you're an adult, it's a little immature. Oct 18 16:47:52 xkcd.com/322 Oct 18 16:48:07 yes, that too Oct 18 16:48:22 why do want to marry say someone you are not physically attracted to? Oct 18 16:48:39 ZSpook: this is not a dating service. Oct 18 16:48:39 really that much harm in asking? Oct 18 16:48:45 ZSpook: you're looking for love in all wrong places, then Oct 18 16:48:50 lol Oct 18 16:48:56 there is no love on IRC Oct 18 16:49:02 there is only lov Oct 18 16:49:05 * lov glares Oct 18 16:49:06 :P Oct 18 16:49:07 ahh ok so the android-dev as particular rules, i understadn Oct 18 16:49:13 well no Oct 18 16:49:18 these are rules for functioning in adult society Oct 18 16:49:26 grothendieck: that's not true, I developed my love for ascii art in IRC Oct 18 16:49:29 because on a lot of freenode rooms it wouldn't be a big deal Oct 18 16:49:34 heh Oct 18 16:49:38 thanks leeds Oct 18 16:49:40 it's a big deal in this channel Oct 18 16:49:41 hehehe Oct 18 16:49:46 trooll Oct 18 16:49:46 how straightforward would it be to change the actionMode color? Oct 18 16:49:51 yeah Oct 18 16:49:52 I wasn't sure Oct 18 16:49:55 but it probably was Oct 18 16:50:13 lov: more like it was so bad it hurt to read Oct 18 16:50:18 so everyone here is taken then Oct 18 16:50:23 lol Oct 18 16:50:37 * p_l doesn't have an issue with derailing a programming channel with relationship talk, but that guy was really... bad Oct 18 16:50:49 anyone with kids here? Oct 18 16:50:54 yes. Oct 18 16:50:58 they are vomiting shit monsters Oct 18 16:51:03 lol Oct 18 16:51:06 pop from popiz looks like rayman's rabbids Oct 18 16:51:08 Snuffel: I'm reminded by my parents that at my age they had me Oct 18 16:51:11 even if he wasn't a troll he was pretty intolerable ;P Oct 18 16:51:13 he sounds like him too Oct 18 16:51:15 consider our wrecked lives the shipwrecks to mark the shoals Oct 18 16:51:34 incidentally, and to go off topic in a different way - Engadget appear to have just accidentally posted the announcement of a $249 ARM-based chromebook Oct 18 16:51:40 Snuffel: I do Oct 18 16:51:52 lov: then I'm the flying dutchman of a shoal ;) Oct 18 16:51:57 Leeds: can you develop for android on those things yet? Oct 18 16:52:01 I'm the dutch oven Oct 18 16:52:05 my kid loves babytv ;) Oct 18 16:52:05 and the Verge just confirmed, to release on Monday Oct 18 16:52:07 that's wild Oct 18 16:52:32 http://www.theverge.com/2012/10/18/3521492/google-new-samsung-chromebook-249-monday Oct 18 16:52:47 hmm Oct 18 16:53:02 hmm... pity I can't get one for free from somewhere Oct 18 16:53:02 so if API 11-13, there is no android:actionModeStyle, how does ABS address this? Oct 18 16:53:13 Snuffel: babytv sounds like one of those call-in channels on satelite Oct 18 16:55:14 guys, how does one tackle the varying screen size problem for layout in case of android TV box Oct 18 16:55:28 I read somewhere that you can't typecast a Parcelable[] to Class[], what would be the best way to achieve that then? Oct 18 16:55:44 I mean, someone might use 32 inch and someone might use 72 inch screen Oct 18 16:55:44 Loonacy: scalable UI layouts and appropriate high-res graphics resources. Oct 18 16:55:57 Looney: that's not your problem, those are the same resolution Oct 18 16:56:15 Looney: it's either 720 or 1080. The pixels are just bigger. Oct 18 16:56:46 so, if I have an images of say 800 x 600, I need not worry that it might get too right of screen to get cropped Oct 18 16:57:01 ok Oct 18 16:57:12 other than 800x600 looking relatively shitty if you scale it to 720 or 1080, correct Oct 18 16:57:27 and the 720 and 1080 aspect rations not being 4:3 Oct 18 17:00:20 not much problem because the image will not be shown on full screen, rather only on some part of it Oct 18 17:02:37 ohk a mail send lets see what i get as reply. Oct 18 17:23:59 hi Oct 18 17:24:03 ubuntu isn't that bad, of course you need to swap out the window manager Oct 18 17:24:14 sorry, wrong chan Oct 18 17:24:21 what is the reasonable max width for a picture to put in android phones ? Oct 18 17:24:41 the max reasonable width Oct 18 17:28:26 Hello Oct 18 17:29:15 Please, the XML Button's attribut following : android:onClick Oct 18 17:29:44 It need a methode in parameter, but this methode, where I must to write ? Oct 18 17:29:51 (sorry for my bad english, I'm french) Oct 18 17:31:05 where must I* Oct 18 17:31:45 public void thisIsTheOnClickMethod(View v) { .... Oct 18 17:33:00 Yes, but it need to be writed in a package Oct 18 17:33:42 My question is which package ? Oct 18 17:34:00 it should be a public method in the Activity class for the XML layout that it's in Oct 18 17:34:02 In the activity where you use the layout Oct 18 17:34:19 Ah, ok :) . Thank you :D Oct 18 17:36:39 and my class didn't need to be inherited to OnClickListener, no ? Oct 18 17:37:35 isn't it ?* Oct 18 17:40:50 Thanks Jake Wharton. You are my hero! eom Oct 18 17:42:04 er, you're welcome! Oct 18 17:43:47 evancharlton: will you weight advice work if Im applying it to a LinLayout that's in a RelLayout? Oct 18 17:44:22 RelativeLayout doesn't have a weight,. So put it in a linearlayout instead Oct 18 17:46:16 anyone here? Oct 18 17:46:30 Can you guys recommend me good java/android-dev podcasts? Oct 18 17:46:40 starting an android/java job monday Oct 18 17:46:48 and wanna stay in the loop Oct 18 17:47:02 Congratulations on the job SpearThruster Oct 18 17:47:06 No idea though Oct 18 17:47:07 cause till recently I was doing mostly C#/.NET stuff Oct 18 17:47:15 I see Oct 18 17:47:23 and thanks! :) Oct 18 17:47:24 But someone here may Oct 18 17:47:29 Check again Oct 18 17:47:59 well All About Android is pretty good, but it's not hosted by developers Oct 18 17:48:04 it's just Android News Oct 18 17:48:08 google does do (weekly?) android developer office hours which are pretty interesting Oct 18 17:48:08 no idea about podcasts. http://android-developers.blogspot.com/?hl=en Oct 18 17:48:13 https://developers.google.com/live/android/ Oct 18 17:50:01 thanks guys Oct 18 17:52:03 SimonVT: that's what I thought - the issue is I need to stack this LinLayout ontop of a ImageView, so it's all in a relativelayout Oct 18 17:52:27 SimonVT: so I have RelLayout > ImageView, LinLayout Oct 18 17:52:55 I want LinLayout to be half the device height and cover the top half of the image Oct 18 17:53:14 hello? Oct 18 17:53:43 hi Oct 18 17:54:13 RobinB- thanks, just confirming network connectivity. Oct 18 17:54:23 you're welcome. Oct 18 17:54:37 Hey - does anyone here do unit testing with Android? It doesn't seem like it quite "fits'". yes, you can create the project with eclipse, but... Oct 18 17:55:17 rgvneil: http://developer.android.com/tools/testing/index.html Oct 18 17:55:32 fakingfantastic: well... you could create a linear layout that entirely fills the relative layout, then make your linear and an empty one weighted to take up half the screen each Oct 18 17:56:21 Ankhwatcher: wow, im dumb... thanks Oct 18 17:56:49 fakingfantastic: glad to help Oct 18 18:09:35 I'm having a problem with ListFragment: I have a subclass of BaseAdapter which I use as the list adapter. After the call into the constructor, nothing else in the class gets called Oct 18 18:09:41 getView. getCount, etc Oct 18 18:10:11 I set the adapter using getListView.setAdapter(new (....)) Oct 18 18:10:46 All I see in the fragment is the circular loading icon Oct 18 18:10:58 Use ListFragment.setListAdapter Oct 18 18:12:32 wooo, thanks SimonVT Oct 18 18:28:24 lol, debug certificate expired in march Oct 18 18:28:28 i should code more often Oct 18 18:48:21 What is the best platform for simultaneous development for iOS and Android? Oct 18 18:49:17 probably OS X since you need it for iOS Oct 18 18:49:29 lov: No, I Oct 18 18:49:53 I'm talking about PhoneGap, Appcelerator, Corona SDK, etc Oct 18 18:50:04 None of them are going to be as good as a properly made native UI Oct 18 18:50:40 dragorn: Agreed, but most apps don't need native code... Oct 18 18:50:52 i didn't say native code, i said native UI Oct 18 18:51:08 native code is probably a lot easier to maintain (except that ios likes everything to be obj-c, I suppose) Oct 18 18:52:27 dragorn: But, the UI won't be that much different. You can also create a common UI, which some see as more important than using the native UI Oct 18 18:52:37 appcelerator wasnt too bad, but your still basically learning a new language and dealing with all of its issues Oct 18 18:53:23 drumer306: Yea, but it's easier to deal with the quirkiness of one language than trying to code the same app on iOS, Android, and Windows Phone Oct 18 18:53:55 I hear ya, hopefully it will be able to deal with whatever you need it to Oct 18 18:54:26 I coded for ios first now android, really not too difficult once you get a few things in place, but im mostly consuming webservices at the moment Oct 18 18:54:44 drumer306: Well, Appcelerator looks good, but I'm not sure it's worth the $$$ over just using PhoneGap...and I like the UI designer for Corona Oct 18 18:55:30 is appcelerator money now ? Oct 18 18:55:35 how much they charging ? Oct 18 18:55:48 OneFix_Work: that's one position to take, however with the work google is doing to unify themes and appearances, it's not one i particularly agree with. if an app is blatantly not designed w/ android in mind, it really tends to show. Oct 18 18:56:03 14:52:53 < OneFix_Work> dragorn: But, the UI won't be that much different. You can also create a common UI, which some see as more important than using the native UI Oct 18 18:56:13 Yeah, that's great until people start dinging you for having an iOS UX on their android app Oct 18 18:56:26 if there's a button that says "Back" in the upper left hand corner, you're doing it wrong. Oct 18 18:56:32 lov: my point exactly... Oct 18 18:56:40 it really is lame Oct 18 18:56:43 (unless your app is called "back" and it's in the action bar) Oct 18 18:56:45 drumer306: Right, the majority of mobile apps (not games) are just a "pretty" interface for a website anyhow Oct 18 18:56:48 the only thing im porting over, is the slide menu Oct 18 18:56:59 is that too ios-y ? Oct 18 18:57:10 majority? Oct 18 18:57:36 its just a main menu of sorts so you can navigate to different activities Oct 18 18:57:54 like this? Oct 18 18:57:54 lov: Well, I would much rather have one code base with multiple UIs than multiple UIs with multiple code bases Oct 18 18:57:54 http://android.cyrilmottier.com/?p=658 Oct 18 18:58:06 but you would still go back like normal until you go back to main screen Oct 18 18:58:19 doogan: its like that yes Oct 18 18:58:25 only much simpler Oct 18 18:58:38 OneFix_Work: hey, it's your choice. No one is going to force you. That said, if you use something like phonegap the best you'll do is a strong mediocre. Oct 18 19:00:26 lov: I understand, but the apps I'm looking at making are generally an interface to a service (serving mostly as a client) which means that the mobile app is not the selling point of the app Oct 18 19:01:45 so basically it's to tick a box instead of being something useful? Oct 18 19:01:46 eh. Oct 18 19:01:57 If it gets it done quicker for you, go ahead. Oct 18 19:02:24 anyone know any good android ui mockup tools? Oct 18 19:02:28 lov: No, it's just to provide a more integrated experience for the user... Oct 18 19:04:35 OctoByte: there aren't any mature ones that I know of Oct 18 19:05:03 eclipse has something, DroidDraw would be ok if it weren't so outdated Oct 18 19:05:18 pen and paper/photoshop is probably the way to go Oct 18 19:06:25 so when I set a tablerow background to list_selector_background to get on-click highlighting, things work as expected, but it causes the whole table to wiggle sometimes - ie, re-do all its offsets for items, the clicked row gets vertically fat... I don't see the same behavior w/ an onclick row w/out the background animation Oct 18 19:06:43 is this just android choking on doing the animation, or am I overlooking something... or am i speaking crazy talk :P Oct 18 19:06:58 sounds like your row's height is smaller than the background's Oct 18 19:07:03 ahhh alright, pen and paper it is. Oct 18 19:07:23 is the android emulator always slow as hell..... Oct 18 19:07:38 like not even the startup, just the normal operation Oct 18 19:07:41 romainguy_: but the list selector background is set on the row... I'd expect it to figure it out? b/c otherwise it'd have the same problem on traditional lists Oct 18 19:07:57 btw has anyone here uses scala for android development? I know it's possible, just wanted to see if anyone else tried it Oct 18 19:07:59 it depends on how you set the row's height Oct 18 19:08:21 romainguy: wrap_content Oct 18 19:08:41 Is anyone using a mac to develop? Oct 18 19:08:58 i do ! Oct 18 19:09:11 I've an issue, that the emulator with 2.3.3 (api10) isn't refreshing the display, unless I move the screen around.. Oct 18 19:09:35 I tried with or without GPU emulation, no difference.. Oct 18 19:09:37 oh not sure man i just started using it like two weeks ago , havent seen that Oct 18 19:09:52 Other versions like 4.0 and 4.1 are running without a problem.. Oct 18 19:10:03 I'm using ADT 21r9.. Oct 18 19:10:23 Retina Mac with Lion.. Oct 18 19:10:52 help Oct 18 19:12:22 I also can't find anyone on google who has the same issue.. Oct 18 19:14:09 you really learn a lot about yourself when tooltips stops working Oct 18 19:14:20 for example I learned that I cannot spell visibility Oct 18 19:15:07 :) lol Oct 18 19:15:40 Hi again Oct 18 19:16:09 Please, I have a probleme with android:onClick of the Button widget Oct 18 19:16:43 I do this :http://sprunge.us/GVNZ Oct 18 19:16:52 http://sprunge.us/GVNZ?xml * Oct 18 19:17:12 you misspelled it Oct 18 19:17:14 it's onClick Oct 18 19:17:16 not onCLick Oct 18 19:17:21 lol Oct 18 19:17:36 And the ant's error : res/layout/menu.xml:7: error: No resource identifier found for attribute 'onCLick' in package 'android' Oct 18 19:17:48 arf... Oct 18 19:17:51 lol Oct 18 19:17:54 it is a funny mistake :D Oct 18 19:17:54 another casualty of over-reliance on tooltips Oct 18 19:22:43 romainguy_: it appears to be list_selector_background vs an abs internal version; i just saw that l_s_b is for 2.x only and 4.x has a different one, plus abs has its own. Oct 18 19:57:51 when using GCM(push) sometimes a devices regid expires when the device is switched off. next time the device turns on does it will it recieve any intent so that my device can register again and also update the regid in my remote server db? Oct 18 19:57:52 Sorry again, how can I redoing a R.java.d ? Oct 18 19:58:08 I have delete this file, and now, my program don't compile correctly Oct 18 19:58:58 Gaulois94, have you tried clean/fix project setup (eclipse)? Oct 18 19:59:27 I'm on vim Oct 18 19:59:50 thus, I can't to use the eclipse"s fonctions x) Oct 18 20:03:14 hmm surely i dont just use on_boot_completed intent to register with GCM? Oct 18 20:03:29 I have a listview, and onItemClick, it goes to the detail view of the item. I want a swipe to the right get the user back to the list screen. How I can I implement this functionality? Oct 18 20:03:33 Gaulois94: ant clean, ant build Oct 18 20:05:26 thank you :) Oct 18 20:10:04 basically I would like to know if that is even possible by not intercepting touch event hooks. Oct 18 20:11:10 Hi. I'm trying to get an instance of LocationManager in a non-activity class. There are examples with passing the context to the class, but in the API-Reference there is an example using android.content.Context diretly. Which one is the way to go? Oct 18 20:17:28 I have some fragments that are hidden until the user presses a button Oct 18 20:17:53 is it better to hide the fragment and then unhide it when the user presses the button, or not add it to the view until the user presses the button? Oct 18 20:18:08 All I have is a SectionedListView in my Fragment (made with ExpandableListAdapter) Oct 18 20:20:56 is it possible to glean the information in a keystore alias (organization, city, state, etc.) if so, how? Oct 18 20:24:39 Hey gang, I'm using a TranslateAnim to slide a button to center screen. The button isn't clickable after that; I've read it's because Im just moving the image of the button, and not the actual button, and you need to update layoutParams. But how do you do that if my button XML is getting it position from layout_centerHorizontal|Vertical. Thanks in advance Oct 18 20:25:43 fakingfantastic: Before you animate, get the layoutparams Oct 18 20:25:53 add the translate animation length Oct 18 20:25:59 to the x/y params Oct 18 20:26:02 profit Oct 18 20:28:43 hwrd|work: wow thanks man. So by set x/y -- we are talking the margins in this case? Oct 18 20:29:00 like, LayoutParam doesn't have setY ... just setMargin Oct 18 20:31:55 fakingfantastic: Sorry. I meant setLeft/setBottom etc Oct 18 20:32:46 k Oct 18 20:33:36 fakingfantastic: Also, have you tried setFillAfter()? Oct 18 20:37:08 any freelance devs interested and available for a chat?? if so pls pm me Oct 18 20:39:35 hello Oct 18 20:40:07 Azra-el: please don't recruit in here Oct 18 20:41:03 So i'm writing an android lib to track installs and I need to load a webpage in the background but it doesn't seem to happen http://pastie.org/private/fv5tousqiuajby64beyvg Oct 18 20:41:15 I don't see any http traffic Oct 18 20:41:43 why are you using a WebView for this? ಠ_ಠ Oct 18 20:42:06 so my idea is to put all the tracking stuff on a page on my server and just load that page Oct 18 20:44:29 gross Oct 18 20:46:50 what i've learned from advertisers is you'll wait forever if you expect them to change so best deal with the tracking they have now Oct 18 20:50:13 i hope the next android version to be announced here has bluetooth low energy support Oct 18 20:50:55 what does low energy mean wrt bluetooth? Oct 18 20:51:31 hwrd|work: for some (probably "good") reason, that's not doing it for mw Oct 18 20:52:08 fakingfantastic: Er, have you also tried setFillAfter? Oct 18 20:52:20 hwrd|work: yeah, that's in there Oct 18 20:52:39 oh i see, it's one of those fancy 4.0 things Oct 18 20:54:32 hwrd|work: all im doing it buttonWelcomeOrigLayoutParams.setMargins(0, 287, 0, 0) in the onAnimationEnd callback Oct 18 20:54:46 hwrd|work: that value is hardcoded just cause I'm debugging Oct 18 20:56:08 It’s probably better if you paste the code. Oct 18 21:01:10 any freelance devs interested and available for a chat?? if so pls pm me Oct 18 21:03:44 I'm having issues loading my hidden web view http://pastie.org/5080876 I'm trying to do this in code instead of the xml. Oct 18 21:05:49 Azra-el: for the second time, do not recruit in here. Oct 18 21:07:18 evancharlton: he could either be the angel of death or gargamel's cat; be careful Oct 18 21:14:51 If i use TranslateAnimation, is there a way to get the final positions from the animation instance in onAnimationEnd() ? Oct 18 21:37:14 Ok, I created a custom theme, that inherits from android:Theme. When the buttons are not enabled, they dim out with a really ugly gray bar, horizontally across the entire button. Why would it do this? Oct 18 21:38:48 Right now, the only attribute in it is no title bar. Oct 18 21:41:29 Any ideas? Oct 18 21:43:53 hey, i've got a question about the Application context. In the constructor for our application class, i set a static reference to it. This allows easy access to the application context. I added an assert in the constructor to make sure the field was null before setting it, since I was making the assumption the application class will only ever be initialized once. the problem is, i'm getting exception reports where this ass Oct 18 21:44:43 is there any reason why android would initialize the application class more than once? i thought that when android killed an app, it just killed the process Oct 18 21:45:29 lagann: two different processes, restart from an empty process? Oct 18 21:46:48 Hi. Anyone doing any 3d development? Looking for good open source engine to use Oct 18 21:46:50 p_l: static fields aren't cross-process, right? Oct 18 21:49:13 lagann: they are once-per-process Oct 18 21:49:31 different processes will have different Application instances Oct 18 21:49:39 Hey Oct 18 21:49:59 p_l: also, it's not exactly an "empty process" if it has run application components before. i mean, re-using a process is the only way i can think this could happen, but android's own docs state that in production instances when the application is terminated, android just kills the process Oct 18 21:50:15 as stated here: http://developer.android.com/reference/android/app/Application.html#onTerminate() Oct 18 21:50:16 also, in certain cases, when another application starts yours by intent, the intent-handler might actually run inside the calling process Oct 18 21:50:23 Im reading about support libraries, so basically these things let you use things from more current versions of android without any hassle? Oct 18 21:50:35 You just need to import them Oct 18 21:50:42 p_l: actually, i think its static-per-classloader Oct 18 21:50:57 maybe somebody can chime in; thats an interesting one Oct 18 21:51:37 Ok, I created a custom theme, that inherits from android:Theme. When the buttons are not enabled, they dim out with a really ugly gray bar, horizontally across the entire button. Why would it do this? The only item I added was NoTitleBar... Oct 18 21:52:24 g00s: so static references could end up being shared across processes? Oct 18 21:52:54 wow, the ripple effect from google's stock drop messed up amazon and FB too! Oct 18 21:54:03 lagann: i'm not a java expert; i think for the common case … sidestepping semantics … if you are normal and using one classloader, its one per process Oct 18 21:54:52 lagann: no, they wouldn't - it's not a java os, in the end ;) Oct 18 21:56:26 Anybody? Oct 18 21:56:58 yeah, that would be pretty complex, though i thought it did share system classes across processes Oct 18 21:58:16 lagann: it preloads the framework into zygote process, then froks from that Oct 18 21:58:31 *forks Oct 18 21:58:43 however, your process' code is loaded *after* the fork Oct 18 22:00:14 Any theme/styles gurus in here? Oct 18 22:07:01 Ok, I created a custom theme, that inherits from android:Theme. When the buttons are not enabled, they dim out with a really ugly gray bar, horizontally across the entire button. Why would it do this? The only item I added was NoTitleBar... Oct 18 22:09:14 So, setStartOffset() seems to be calling onAnimationStart(), how do I call something right after the offset, but before the animation? Oct 18 22:12:08 any ideas what this means? Oct 18 22:12:09 Conversion to Dalvik format failed with error 1 Oct 18 22:12:23 Im trying to try a fragment tutorial from the android website Oct 18 22:12:39 There are no errors in the code Oct 18 22:12:42 but when i try to run it Oct 18 22:12:44 that happens Oct 18 22:12:49 usually its a problem with library references Oct 18 22:12:54 What's the best forum for getting help with android dev? Oct 18 22:13:02 stackoverflow Oct 18 22:13:08 Belacan: http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar Oct 18 22:13:20 thx DarkXPh Oct 18 22:13:50 yeah, that Oct 18 22:13:52 i hate that error Oct 18 22:14:13 Ok, thanks. No one here can think of why I'm having issue with Styles? Oct 18 22:14:25 whats the issue? Oct 18 22:14:52 Ok, I created a custom theme, that inherits from android:Theme. When the buttons are not enabled, they dim out with a really ugly gray bar, horizontally across the entire button. Why would it do this? The only item I added was NoTitleBar... Oct 18 22:15:16 DarkXPh: Thanks man, it worked a charm. Oct 18 22:17:11 whats the best way to create a url query string? Can I do it from a HashMap? Oct 18 22:18:06 I've been using formatted strings, pretty easy. Oct 18 22:18:15 hadees: you can use Uri.Builder Oct 18 22:20:51 codebutler: I saw that but i don't think I can get the query string back from it, webview.postUrl wants bytes[] as input Oct 18 22:23:52 Hey SimonVT or JakeWharton: Is there any way with android-menudrawer to make any swipe on the right-hand fragment open the drawer instead of an edge-swipe? Oct 18 22:24:15 Haven't really dug through the code yet, but was going to roll my own code to intercept the touch event, etc... Oct 18 22:24:18 Thought I'd check first. :) Oct 18 22:24:52 Guys, quick question. I add a LinLayout in another LinLayout, and set weight=.5, which makes it half the height..nice! But howcome, when I add an image into that LinLayout, it increases the height ... and how do I prevent that Oct 18 22:25:57 So LinLayout -> LinLayout -> ImageView Oct 18 22:26:20 qkzoo1978: did you create a button style? Oct 18 22:26:52 No,. Oct 18 22:27:09 … are you just seeing the regular button background drawable? Oct 18 22:28:53 When the button is enabled, it looks like the gray standard button. Disable, its a paler color, with that gray bar. Oct 18 22:29:21 can you link to a screeshot by chance? Oct 18 22:31:10 Can you post images on stackoverflow? Oct 18 22:32:23 yes Oct 18 22:32:37 you may need to have some reputation score though Oct 18 22:33:20 also, is this happening on physical device, emulator, or both? Oct 18 22:36:29 device Oct 18 22:43:50 after moving my project from one workspace to another and using a different version of eclipse (4.2 mobile), eclipse stopped generating the R.java file. furthermore, while it recognizes older themes like Theme.NoTitleBar, it doesn't recognize newer themes, like Holo. i've tried cleaning the build and setting it to build automatically. what else should i try? Oct 18 22:46:38 Chronax: your own GestureDetector + its API Oct 18 22:46:46 you can programmatically trigger opening Oct 18 22:49:53 karakuri picpaste.com/2012-10-18_18-44-52-Yqh2Z9TV.png Oct 18 22:50:32 It looks fine in portrait, it's doing this in landscape. Oct 18 22:55:56 karakuri: did you see what I meant? Oct 18 22:55:57 that is strange Oct 18 22:56:04 is it on emulator, device, or both? Oct 18 22:56:36 Device, my pc is too slow for emulator. Oct 18 22:58:01 Yes, emulator is ALWAYS slow, is not just your pc Oct 18 22:58:09 i'd probably have to look at actual code, but i'm log gin off in a minute Oct 18 22:58:15 emulator is fast if you use gnu rendering Oct 18 22:58:19 *gpu Oct 18 22:58:21 qkzoo1978: probably you want to add -land to your Oct 18 22:58:29 karakuri: how to enable it? Oct 18 22:58:34 it's called HW ACCEL Oct 18 22:58:39 does anyone know? Oct 18 22:59:14 I dunno Oct 18 22:59:45 qkzoo1978: umm, do you have the proper -land pieces? Oct 18 22:59:46 Juest: it's in my normal-land folder Oct 18 22:59:57 oh Oct 18 23:00:54 qkzoo1978: probably because you havent adjusted the layout to fit fine on landscape, plus you got a senseui big Oct 18 23:00:56 bug Oct 18 23:00:59 do fragments have any use besides for tablet development? Oct 18 23:01:03 Is thAT what you meant? Oct 18 23:01:19 Belacan: yes. Oct 18 23:01:24 such as? Oct 18 23:02:58 Fit fine? Oct 18 23:04:38 Belacan, reusing Fragments in multiple activities Oct 18 23:05:03 Right Oct 18 23:05:12 also, ditching onRetainNonConfigurationInstance and using Fragment.setRetainInstance(true) Oct 18 23:05:42 cool thanks Oct 18 23:25:29 Is there anything wrong with only producing drawable-xhdpi assets and letting the framework scale down? Oct 18 23:25:43 as opposed to creating ldpi/mdpi/hdpi/xhdpi for ev erything Oct 18 23:26:03 assuming that i dont want different type of assets for different screen sizes Oct 18 23:26:29 there's nothing wrong but it slows down your app on startup Oct 18 23:26:35 and it will churn memory Oct 18 23:26:48 I'd recommend you include at least hdpi and xhdpi Oct 18 23:26:55 interesting Oct 18 23:27:01 fwiw, Nexus 7 is tvdpi and it ships only with hdpi assets Oct 18 23:27:11 (except a couple of tvdpi assets to fix scaling issues) Oct 18 23:27:23 note also that auotmatic scaling may "break" your 9patches Oct 18 23:27:32 oh? Oct 18 23:27:42 like an xhdpi 9patch might not work on an mdpi device? Oct 18 23:28:39 well it will work Oct 18 23:28:43 but the results might be… interesting Oct 18 23:28:56 that said from xhdpi to mdpi the scale factor is 2 Oct 18 23:29:01 so it usually works out pretty well Oct 18 23:30:03 romainguy: so the n7 should be used in HDPI? Oct 18 23:30:12 optimal dpi, i mean Oct 18 23:30:22 well the best is to have tvdpi assets Oct 18 23:30:26 but it's a hassle Oct 18 23:30:31 and hdpi works well in practice Oct 18 23:30:40 any freelance devs interested and available for a chat?? if so pls pm me Oct 18 23:30:40 if cm ever exists for n7 it will be hdpi Oct 18 23:30:41 even though every asset ends up being resized by the system at runtime Oct 18 23:30:48 no tvdpi avail XD Oct 18 23:30:55 Juest: uh? Oct 18 23:32:02 umm Oct 18 23:32:41 romainguy: well, why they get blurred? Oct 18 23:33:18 assets are resized and the device itself is "only" 213dpi Oct 18 23:34:09 well, Oct 18 23:35:05 my androidx-86 haves mdpi only and it renders blurry on other dpis, anyway it works well, especially Launcher, kinda suprised that it can run fine on xhdpi Oct 18 23:35:15 and is not so blurry Oct 18 23:35:18 as systemui is Oct 18 23:35:28 cool well thanks romainguy Oct 18 23:35:29 scaling up will always be worse than scaling down Oct 18 23:35:36 and scaling up from mdpi is going to be pretty bad Oct 18 23:36:35 romainguy: i have ever tested 96dpi lol Oct 18 23:36:42 anyway Oct 18 23:36:57 strangely text looks crispy still Oct 18 23:37:06 text is not bitmaps we scale Oct 18 23:37:17 i wonder why phone ui expects portrait for softbuttons Oct 18 23:37:39 what are you talking about? Oct 18 23:37:44 because i had set qemu.hw.mainkeys 0 and it shows bugged, like an orientation mismatch Oct 18 23:37:59 done heavy testing on it Oct 18 23:43:53 Hey, I've seen various approaches for this, but wanted to know what's considered good practice. My dialog has 6 buttons, so of course I could do Button myButton = (Button) findViewById(…); myButton.setOnClickListener... Oct 18 23:44:02 But that seems pretty meh and produces boilderplate code. Oct 18 23:45:00 Then I've seen MyDialog extends Dialog implements OnClickListener with onClick(View v) { switch (v.getId()) { case R.id.my_button: ... } } Oct 18 23:45:23 And third withing the .xml android:onClick="handleClick" Oct 18 23:45:43 The first two let me implement the handling of the click within the dialog, the third only within the activty. Oct 18 23:46:08 What is considered 'best practice' if there is such a thing, or what are good hints to decide when to use what. Oct 18 23:49:20 android:onClick is an abomination Oct 18 23:49:39 hey guys I'm trying to use NineOldAndroid Animator set but it doesn't seem to work on older devices. I'm definitely importing the NOA class so whats going on? I'm trying to animate alpha and scale. Oct 18 23:50:01 fnord`: Howso? And what would you suggest? Oct 18 23:50:39 kakazza: it breaks mvc and it is rather inefficient if you read the code Oct 18 23:50:52 kakazza: i suggest having one View.OnClickListener per fragment or activity Oct 18 23:50:59 and putting a switch inside it Oct 18 23:51:02 And then switch/case over the ids? Oct 18 23:51:26 But this is a dialog, so this time, View.OnClickListener for the Dialog? Oct 18 23:51:28 yeah.. then you can have a nice default case while your buttons aren't implented yet Oct 18 23:51:32 sure Oct 18 23:51:37 What would be a nice default case? Oct 18 23:51:40 Toast Oct 18 23:51:57 Saying 'not implemented yet?' Oct 18 23:52:03 '?* Oct 18 23:52:10 Sounds good. Thanks Oct 18 23:52:17 I guess it can say whatever you want.. I put "TODO" Oct 18 23:53:00 how many audio channels does the average have? is there a minimum number of channels that all devices must have? Oct 18 23:53:08 android have* Oct 18 23:58:28 is there anything that's Android-specific when applying test-driven development on Android? Oct 18 23:58:33 wat.. Oct 19 00:03:25 can someone give me a quick hand with a regex issue I'm having? Oct 19 00:04:15 http://pastebin.com/nzcVi70J it doesn't match Oct 19 00:04:21 but everything seems fine Oct 19 00:12:47 really? everyone's idle? Oct 19 00:14:33 ok, I expect to be hit with something after asking this, but... because Netflix isn't supported on Linux I've been constantly disappointed not finding anyway around that. one option that some times works is to run it in a VM, but from time to time updates to the hypervisor requires me to muck with my native audio or order to get undistorted playback. because Netflix has an app that will run on Android, could I use the Android emula Oct 19 00:15:29 I'm not really here to ask how, just is it possible? Oct 19 00:16:05 rawburt: try it? Oct 19 00:16:57 I have been, which is why I'm trying to find out if I'm kicking a dead horse. Oct 19 00:18:45 i think the idiom is "flogging a dead horse" Oct 19 00:19:07 orly Oct 19 00:19:17 Guys, quick question. I add a LinLayout in another LinLayout, and set weight=.5, which makes it half the height..nice! But howcome, when I add an image into that LinLayout, it increases the height ... and how do I prevent that Oct 19 00:19:32 Thanks in advance Oct 19 00:19:35 probably cannot resize the image? Oct 19 00:19:46 you might need to resize the image. Oct 19 00:19:48 nobody can help with my pattern issue? Oct 19 00:21:01 rawburt: To clarify, when I add the image to the LinLay, it increases the height of the LinLay Oct 19 00:21:56 is the image > than the LinLay? Oct 19 00:23:07 LinLay > LinLay > Image Oct 19 00:23:26 2nd LinLay is getting it's height increased when I add in the Image Oct 19 00:26:34 I need to include an xml that is for API level 10 and below - if I do layout-v10 and layout, will that work as expected? Oct 19 00:27:07 Or rather layout-v Oct 19 00:28:29 do it the other way Oct 19 00:28:38 override the layout for 11 and higher Oct 19 00:28:51 OK Oct 19 00:50:20 public static final int FLAG_AUTO_CANCEL Oct 19 00:50:26 Bit to be bitwise-ored into the flags field that should be set if the notification should be canceled when it is clicked by the user. On tablets, the Oct 19 00:50:32 anyone able to finish the sentence? :p Oct 19 00:51:11 No. See if it's reported? Oct 19 00:52:39 i have a drawable xml and i want to add a border to it, but i want the top and left border to be one color, and the right and bottom color to be another color Oct 19 00:52:41 whats the best way to do that? Oct 19 00:54:44 Hello, I made a button and want it to open a new activity.The app builds but when I click the button it crashes http://pastebin.com/EXCdnNNv Oct 19 01:10:27 I have an ArrayAdapaterList with AsyncTask call in it. I populate an arraylist in the doInBackground function. When onPostExecute is called I have setListAdapater(new ArrayAdapter..etc) but for some reason the list is not populated Oct 19 01:11:43 the arraylist has elements, ive checked Oct 19 01:12:58 anyone? Oct 19 01:22:15 why don't you just use the old adapter? Oct 19 01:22:26 clear the elements, re-add the new ones, etc. Oct 19 01:22:38 unless i'm missing something important Oct 19 01:25:09 so set the adapter before asynctask Oct 19 01:25:18 then how do i re-add? Oct 19 01:25:42 sampullman: this is my first time using adapter so i dont know how they work :) Oct 19 01:26:42 i'm not the most knowledgeable about them, so this could be bad advice Oct 19 01:26:45 but look here http://developer.android.com/reference/android/widget/ArrayAdapter.html#add(T) Oct 19 01:31:01 it looks like I cant addall(arraylist) when the adapater is arrayadapater Oct 19 01:31:30 I changed string to runner, lets see Oct 19 01:33:15 sampullman: that worked, thanks! Oct 19 01:33:47 glad to help Oct 19 01:33:54 you might want to take a look at notifyDataSetChanged(), too Oct 19 01:46:12 what happens to the gen directory when making an apk? Oct 19 01:50:26 The new signed app exporter in the latest adt isn't being logical. It randomly will decide to throw out "error 1" and it'll be perfectly happy once I switch the build output to verbose - no other changes done at all. Oct 19 01:50:38 terinjokes: it gets generated Oct 19 01:50:59 hi, how it would be possible to test sms broadcast receiver with real device? Oct 19 01:51:10 send it a text message Oct 19 01:51:18 I need to simulate that Oct 19 01:51:41 I know it was working for me with emulator but not with real device Oct 19 01:52:54 and when it does work - it fails to do the package properly, forgetting to put classes in... Oct 19 01:52:58 this might help http://mobiforge.com/developing/story/sms-messaging-android Oct 19 02:08:35 anyone have a good suggestion on a book on kanban :) Oct 19 02:08:40 ot, i know Oct 19 02:09:30 i figure either Anderson or Kniberg Oct 19 02:10:49 Guys, quick question. I add a LinLayout in another LinLayout, and set weight=.5, which makes it half the height..nice! But howcome, when I add an image into that LinLayout, it increases the height ... and how do I prevent that Oct 19 02:14:29 fakingfantastic: so the outer LinearLayout can have a "weightsum" attribute specified. The inner components' weights should all add up to that weightsum. You can use it to decide who gets to take up more space.. for example, if you specify a weightsum of 4 in the parent, and have 4 buttons, all with weight 1, they will all take up 1/4th of the space Oct 19 02:14:45 did you give your image that you added a weight of .5? Oct 19 02:15:19 i'm not sure what the weightsum defaults to (I'm guessing 1 but don't quote me on that).. some ppl find it easier to just deal in integers Oct 19 02:15:29 s/integers/naturals Oct 19 02:15:36 i thought it would default to the total of all child weights Oct 19 02:15:53 clever: very possible, I really don't know for sure Oct 19 02:17:24 it does default to the total of children by default Oct 19 02:17:40 tnzr: thanks so much man Oct 19 02:18:07 fakingfantastic: no problemo, thank these guys for correcting my misinformation :) Oct 19 02:18:23 JakeWharton: is there any point to having a weightsum attribute then? Oct 19 02:18:43 yes, if I want a button to be half the width of the parent I can set its weight to 1 and the sum to 2 Oct 19 02:18:56 ah, to purposely leave an empty void? Oct 19 02:19:01 neat Oct 19 02:19:11 correct Oct 19 02:19:52 what happens if you set the sum low, like 3/2 ? Oct 19 02:21:34 am creating a button that opens a new activity, but when I click the button the app crashes. Here is the little snippet for my button http://pastebin.com/EXCdnNNv Oct 19 02:21:46 then it takes up 66.6% Oct 19 02:21:57 JakeWharton: 3/2 not 2/3 Oct 19 02:22:03 sp_otaku: do you have any logcat output? Oct 19 02:22:10 1 out of 3/2 is 66.6% Oct 19 02:22:18 yeah Oct 19 02:22:23 JakeWharton: i mean 3 on the button, 2 as the sum Oct 19 02:22:38 never tried since it's wrong Oct 19 02:23:23 sp_otaku: does it have a stack trace in it? Oct 19 02:25:14 Umm... here are the couple lines from the logcat http://pastebin.com/u5Gxxj7u Oct 19 02:25:30 every day someone has this problem Oct 19 02:25:37 and every day nobody actually reads the log Oct 19 02:25:45 java.lang.IllegalStateException: Could not find a method beatOnClick(View) in the activity class relishstudios.freestlye.beats.and.oceplla.MainActivity for onClick handler on view class android.widget.Button with id 'button1' Oct 19 02:25:50 sp_otaku: and theres your problem :) Oct 19 02:26:13 sp_otaku: beatOnClick vs beatClick Oct 19 02:26:29 am reading it... Oct 19 02:26:38 dang didn't even see that... Oct 19 02:26:38 click handlers defined in XML are never a good idea Oct 19 02:27:00 sp_otaku: always helps to have a second set of eyes, you know what it should be and see what you want Oct 19 02:27:00 Am using the GUI designer in eclipse Oct 19 02:27:32 clever: agreed, thanks for sparing your eyes for a sec Oct 19 02:37:21 fellow got stuck up w/ onClick vs. onCLick earlier today Oct 19 02:41:23 That's what @Override is useful for. Oct 19 02:41:48 also autocomplete Oct 19 02:42:03 if you I need to override onClick, I type onC Oct 19 02:42:08 maslen: how does @Override help with this? Oct 19 02:42:11 or is it ctrl space. I don't know. it's muscle memory. Oct 19 02:42:48 codebutler: the point of @Override is to annotate overridden methods. It is an error to put it on a method that is not overridden Oct 19 02:43:04 but the problem here is people fat fingering xml Oct 19 02:43:39 codebutler: 'android:onClick' is abominable. This is significantly worse. Oct 19 02:44:09 oh wait, someone already said that Oct 19 02:44:14 22:26 < JakeWharton> click handlers defined in XML are never a good idea Oct 19 02:45:46 i agree with this statement Oct 19 02:46:19 eclipse drive me nuts big tie Oct 19 02:46:26 so mad I cant even type =) Oct 19 02:46:36 i thought you used intellij ron_frow_ Oct 19 02:46:50 im so tired of all these eclipse complaints. USE INTELLIJ IDEA. Oct 19 02:47:02 codebutler I do when I can Oct 19 02:47:02 switch back from intellij when you get mad at intellij, switch back to intellij when you get mad at eclipse. Oct 19 02:47:10 I dont get mad at intellij Oct 19 02:47:22 thre are weird things with intellij Oct 19 02:47:32 today I had to use it for some stuff I was working on Oct 19 02:47:44 intellij isn't as good as everyone says. it can't even build incrementally like eclipse which sucks up valuable dev time while you wait for compiles. Oct 19 02:48:00 fucking source control bindings decided to stop showing in the project/package panel Oct 19 02:48:03 I just like it for the layout editor Oct 19 02:48:14 oh man, screw egit, screw source control in intellij. Oct 19 02:48:16 fnord`: lack of incremental building is the biggest problem with it Oct 19 02:48:18 use git on cmdlin Oct 19 02:48:26 anything else is uncivil Oct 19 02:48:27 its unfortunately not git Oct 19 02:48:32 use svn on cmdline Oct 19 02:48:34 use crap on cmdline Oct 19 02:48:36 p4 Oct 19 02:48:40 which is shittastic Oct 19 02:48:41 BUT Oct 19 02:48:47 not my decision Oct 19 02:49:00 codebutler: well with that said I use either of them depending on my mood Oct 19 02:49:13 latest eclipse and adt are much nicer Oct 19 02:49:14 I obviously use git for my rom dev Oct 19 02:49:21 than what Oct 19 02:49:28 than the previous releases Oct 19 02:49:32 I am using both and getting eclipse crash/deadlock Oct 19 02:49:36 every 5th build or so Oct 19 02:49:46 i think there has been an eclipse vs intellij debate here every day this week Oct 19 02:49:54 <_yakubMobileDev> Hello every one Oct 19 02:49:56 hahahahahahahahahaha Oct 19 02:49:57 I would use anything better =) Oct 19 02:49:59 i guess thats what concerns android devs :) Oct 19 02:50:04 honestly I like netbeans for java dev Oct 19 02:51:04 theres just some real dumb shit with eclipse that intellij figured out Oct 19 02:51:31 <_yakubMobileDev> I am trying to get the current IP address of the device assigned too and using the InetAddress but i am gettign the ip 127.0.0.1 not the one which is assgined to the device Oct 19 02:51:37 p_l: did you have any classes in evolutionary computation ? Oct 19 02:51:47 g00s: unfortunately not Oct 19 02:51:51 ... well, not in uni Oct 19 02:52:03 _yakubMobileDev: did you try googling? http://stackoverflow.com/questions/6064510/how-to-get-ip-address-of-the-device Oct 19 02:52:06 got a bit from stanford, but dropped out from that Oct 19 02:52:11 I just hated eclipse from my java and c++ days Oct 19 02:52:20 and it seems like its still a pile Oct 19 02:52:29 can do a lot of shit ok, nothing well Oct 19 02:52:31 Why program in anything other than Emacs or Vim? Oct 19 02:52:32 hey guys Oct 19 02:52:35 i did some stuff with NNs and fuzzy systems a while back; i was thinking about a problem now where i would need to modify the fuzzy sets on the fly; can't decide on a neuro-fuzzy approach or using GAs. Oct 19 02:52:36 <_yakubMobileDev> address.getHostAddress() always returns 127.0.0.1 Oct 19 02:52:38 I never understand these IDE holy wars Oct 19 02:52:47 im going to make my own scrollview instead of using its default scrollview Oct 19 02:53:01 <_yakubMobileDev> codebutler: I did it nothing find appropriate Oct 19 02:53:16 grothendieck: biggest reason I don't use vim for android dev and instead use vwrapper for eclipse? The source code completion, and static analysis integrated with eclipse's editor. Oct 19 02:53:17 haha Oct 19 02:53:19 I've never once had the feeling "geez I wish emacs had a feature for this" because it has every feature.... Oct 19 02:53:26 and is less bloated than eclipse Oct 19 02:53:29 which frankly says a lot Oct 19 02:53:30 lol Oct 19 02:53:31 naive Oct 19 02:53:39 vim does not have 'every feature', neiter does emacs Oct 19 02:53:48 hrmm Oct 19 02:54:00 is it possible to round just one corner of some shape? Oct 19 02:54:02 eclipse and intellij both have tons of things not even remotely present in vim, ok *maybe* emacs, but probably not. Oct 19 02:54:08 I have exaggerated a million times Oct 19 02:54:09 g00s - funny I see a lot of articles on that crap Oct 19 02:54:15 but its almost heres how yo do it Oct 19 02:54:23 I use Emacs for everything Oct 19 02:54:25 other than a OCR application, I've never seen practical applications of it Oct 19 02:54:28 I've been developing Android for years Oct 19 02:54:38 grothendieck: i wish I could use vim for android dev and be as fast as I am in eclipse. I would. I've tried eclim but it wasn't for me. Oct 19 02:54:40 Tried using Eclipse once at the very beginning Oct 19 02:54:45 ron_frow_: all the japanese rice cookers use it :D Oct 19 02:54:48 fnord`: try Vrapper? Oct 19 02:54:54 that's the vim plugin I use with eclipse Oct 19 02:54:54 I use vrapper Oct 19 02:54:57 cool Oct 19 02:54:58 ? Oct 19 02:54:59 Uninstalled it within a week Oct 19 02:55:04 tnzr: i can't live without at least a vim plugin Oct 19 02:55:09 same Oct 19 02:55:23 I regularly blow minds of ppl at work who dont use vim Oct 19 02:55:32 Yeah Oct 19 02:55:33 we pair, and they sit there in awe at how fast you can do the trivial things Oct 19 02:55:46 Also probably at how well you can actually write the fuckign code Oct 19 02:55:53 haha Oct 19 02:55:56 without having to wait for your crtuches to do the work for you Oct 19 02:56:04 crutches* Oct 19 02:56:07 yep Oct 19 02:56:12 I feel like IDEs promote bad programming methodology Oct 19 02:56:21 thats retarded Oct 19 02:56:23 i disagree. also note that tnzr uses ideas Oct 19 02:56:25 ides* Oct 19 02:56:58 if you're a masochist and want to take 10x the time to build code, more power to you Oct 19 02:57:04 ^ Oct 19 02:57:08 lol Oct 19 02:57:14 Elisp, my friend Oct 19 02:57:19 I write my own crutches Oct 19 02:57:46 I believe ide's allow you to navigate software engineering intuitively Oct 19 02:57:55 nobody knows every method of every class off the top of their head Oct 19 02:58:03 Software engineering to me begins with pen and paper Oct 19 02:58:05 an ide allows you to easily look that up in an intuitive way Oct 19 02:58:08 * fnord` envisions grothendieck proud with a broken leg, crawling over to the forest to cut down a tree with which to fashion his crutches from Oct 19 02:58:09 Etags Oct 19 02:58:23 Lets you find immediately where a function or variable is defined Oct 19 02:58:27 ctags/etags Oct 19 02:58:27 ron_frow_: tags. completion. Things not specific to IDEs Oct 19 02:58:27 is Etags anything like ctags? Oct 19 02:58:30 yes Oct 19 02:58:40 I've never seen it work well outside an ide Oct 19 02:58:40 grothendieck: yah, eclipse has that as well. but I use ctags when working in big projects with vim. Oct 19 02:58:53 because you almost know the content, understand how this file relates to another Oct 19 02:59:04 There is no compelling reason for using an IDE other than not knowing or liking Emacs and not wanting to work in CLI Oct 19 02:59:46 grothendieck: well, I'd argue I have seen reasons to use IDEs for certain specific platforms. Some of them also have plugins to give you Vi interface in the ide Oct 19 02:59:51 emacs probably doesn't build your project incrementally as you write code, and detect errors on the fly with static analysis Oct 19 02:59:53 everything I do for school is in console vim Oct 19 02:59:58 lol Oct 19 02:59:59 but I have to use eclipse at work (doing android) Oct 19 03:00:00 you could write all that in lisp, but I doubt you will **** ENDING LOGGING AT Fri Oct 19 03:00:01 2012