**** BEGIN LOGGING AT Mon May 07 02:59:59 2012 May 07 03:16:50 how do uevents work in android? May 07 03:17:35 here's the short version of what I'm trying to do: I want to mute the built-in speaker in my device by fooling it into thinking that headphones are plugged in May 07 03:21:34 okay, I've asked this before, didn't really get a good answer... and this might not be the best time of week to ask, I know... in the CDMA world, does the concept of roaming really exist? May 07 03:30:36 Leeds: theoretically May 07 03:32:33 p_l: but is is something users care about? May 07 03:33:01 Leeds: no idea, CDMA doesn't exist as a mobile network where I live May 07 03:33:28 there actually is a network here, but it's not really public May 07 03:33:58 Leeds i know as a US Verizon person I had roaming when I went to canada May 07 03:34:07 on my CDMA phone May 07 03:34:16 t0mless: cool... data roaming? May 07 03:34:24 it wasn't a smartphone -_- May 07 03:34:35 so I dunno if it was available May 07 03:34:49 ah May 07 03:34:56 Leeds: in Europe CDMA is mainly used for data or "cellular landlines" May 07 03:38:54 anyone know wat Error (-4 -4) is? May 07 03:39:46 wat http://i0.kym-cdn.com/photos/images/newsfeed/000/173/576/Wat8.jpg May 07 03:40:01 Storm2010: http://stackoverflow.com/questions/9733455/mediaplayer-error-4-4 May 07 03:40:07 googled "Error(-4 -4)" May 07 03:40:12 with quotes May 07 03:40:12 i cant find any docs on it or posts... May 07 03:41:03 omg really?!! quotes May 07 03:42:29 and it still doesnt help as im not streaming video or audio.. May 07 03:43:47 sorry, my expertise isn't in error -4 -4's May 07 03:45:27 hmm May 07 03:45:39 what context is it in? May 07 03:45:51 hey p_l you still around? May 07 03:46:30 i figured out that if i plug the headphones in, the content of /sys/devices/virtual/switch/h2w/state changes from 0 to 2 May 07 03:46:33 and vice versa May 07 03:57:35 hey does someone know how to use intents pretty well? May 07 04:06:45 just ask your question May 07 04:48:29 Leeds, in the US with 2+ cdma providers, roaming used to exist, not so much with coverage as it is now May 07 04:49:27 I have a ListActivity with custom ArrayAdapter. Whats the best way to make each list item handle loading an image in the background May 07 04:52:55 anyone ever seen HeadsetObserver running? May 07 04:52:59 or familiar with it? May 07 04:53:21 short version of what I want to do -- mute the speakerphone by making the phone think the headphones are plugged in May 07 04:56:27 pfn: I was thinking more of international, but thanks... I guess I'll ignore CDMA for now, not that many people using it anyway ;) May 07 05:31:31 Hi friends iwa reading about contact contract. I didn't get the concept of raw contact. Can anybody plz help me with this?? May 07 05:36:50 I have a ListActivity with custom ArrayAdapter. Whats the best way to make each list item handle loading an image in the background May 07 05:38:18 Try using onListOptionSelect listener. Or something like this May 07 05:45:05 hmm, is this broken for just me now ? May 07 05:45:11 https://play.google.com/store/apps/details?id=your.package May 07 05:45:39 uh, wtf now it works May 07 05:45:55 Can anyone plz xplain me what os raw contact. Plz :-( May 07 05:48:14 Sometimes uploaded apps take a little while to be available May 07 05:49:11 XVincent: it was up since Feb :D May 07 05:49:18 but its working now May 07 05:49:45 your.package? May 07 05:52:01 Guess google is just messing with you then :P May 07 05:54:55 i didn't understand the concept of how permissions are determined until i started developing for android May 07 06:00:30 helllo May 07 06:03:29 so I'm trying to create a horizontal scrolling browser such has in Tasks or Google Play Music May 07 06:03:44 ViewPager May 07 06:04:00 is a HorizontalScrollView with several ListViews on the right track? May 07 06:04:19 no, ViewPager + ListView or ListFragment May 07 06:04:20 ah, so each category is a separate View? May 07 06:04:34 er, nvm May 07 06:04:42 If you grab the support library from the SDK manager there are samples in SDK/extras/android/support/v4/sample May 07 06:07:30 JakeWharton: so, what merge tool ar eyou using on mac now :) May 07 06:07:43 no idea May 07 06:07:48 haven't had conflicts in weeks May 07 06:07:55 and for the minor ones I just use nano May 07 06:08:00 or in IntelliJ itself May 07 06:08:41 i'm about to do my first merge in git, and i'm nervous :| May 07 06:09:46 git 1.7.10 changed something with merge commits ... May 07 06:09:53 git cherry-pop May 07 06:15:43 nice, i can't wait to pop my cherry May 07 06:16:05 everybody is nervous the first time May 07 06:16:35 i hope i don't typo May 07 06:18:04 btw, 1 million iterations of String.split() takes about 1500ms versus 1 million iterations of String.substring(String.indexOf) taking 30ms May 07 06:18:07 pro-tip. May 07 06:20:53 Nice... sexy string optimizations always help me sleep better at night May 07 06:23:54 so write substringSplit that evaluates regex against a string and then picks merely the start and end positions of each match and returns an array avoiding the piece-by-piece string copy. May 07 06:24:53 no u May 07 06:39:45 <`z> yes me May 07 07:49:01 i don't think google is ever going to fix the apidocs at this point May 07 07:49:48 whih sucks, because frequently when the javadoc is ambiquous, i need to check the code, and that usually makes me want to vomit May 07 08:12:43 some parts of android is closed source ? May 07 08:13:42 elkng: yes May 07 08:14:08 <_Auron_> either for security reasons or part of internal google services, etc May 07 08:15:57 i thought it was all open source May 07 08:16:14 except for stuff like gmail May 07 08:17:35 Drivers, gapps and manufacturer modifications are closed source May 07 08:18:56 oh, i didn't consider manufacturer mods 'android' :) May 07 08:19:28 stuff like the skins are more like frothy puss May 07 08:19:49 <_Auron_> I prefer a clean and basic look with decent menus May 07 08:20:38 me too May 07 08:21:16 so once Jelly Bean is out, is Jake going to come to the rescue and backport all of that doen to donut for us ? May 07 08:21:40 i guess thats a "yes", so i'm excited May 07 08:24:56 why Uploading onto emulator takes forever? app size is 100k. May 07 08:25:26 100k * 0b/s = forever May 07 08:25:29 :) May 07 08:25:59 g00s: how funny. May 07 08:26:32 normally pretty fast for me May 07 08:27:11 Leed: how i make emu faster? any parameters? May 07 08:28:04 i try my best not to close emu but still speed is slow. May 07 08:28:41 g00s: Backporting to donut is probably not going to happen, by Eclair for sure :p May 07 08:28:55 SimonVT: i can live with that :P May 07 08:30:47 Just compile android.jar in your app, insta ICS all the way back! May 07 08:31:09 yeeeaaaaahh ! May 07 08:32:53 can you guys help? relly need to make emu faster because its wasting my time. May 07 08:34:06 jaami: it wastes everybody's time May 07 08:34:25 better to use real hardware May 07 08:34:46 g00s: you are not serious. i am asking for help. May 07 08:34:59 hi alll May 07 08:35:01 <_Auron_> he is serious May 07 08:35:11 <_Auron_> the emulator is going to be slow. period. May 07 08:35:26 <_Auron_> unless you have a 20Ghz machine at your disposal May 07 08:35:30 "Drivers, gapps and manufacturer modifications are closed source", after google bought motorola they can make those parts opensourced, can they ? May 07 08:36:00 how to get size of my screen in px in my activity May 07 08:36:02 ? May 07 08:36:09 <_Auron_> for the sake of potential patents, probably not elkng May 07 08:36:31 mine is not so slow actually. it used to be veeeery slow before, but since upgrading to sdk 17 it has become pretty fast May 07 08:37:39 mine is rev 18. May 07 08:38:27 jaami: which device version and screen res are you emulating? May 07 08:41:16 AVD details CPU/ABI: ARM (armeabi-v7a) Target: Android 4.0.3 (API level 15) Skin: WVGA800 SD Card: 96M hw.lcd.density: 240 hw.cpu.model: cortex-a8 vm.heapSize: 48 hw.ramSize: 512 May 07 08:43:25 mmm, maybe emulating 4.0 is slow, don't know. see if emulating a 2.3.3 is any faster May 07 08:43:32 does this help to figure out reason for slow emu? May 07 08:43:44 (or 2.whatever, for what matters) May 07 08:44:09 Try the x86 emulator, or gpu acceleration May 07 08:44:19 i will have to setup older ver May 07 08:44:33 i haven't tried the x86 version yet May 07 08:45:35 i hav 64bit machine. is this reason? May 07 08:46:02 First, google what emulation means May 07 08:46:07 Then you'll know why it's slow May 07 08:48:30 SimonVT: my problem is that im newb :) kindly explain how i set x86 emulator, or gpu acceleration May 07 08:48:49 http://developer.android.com/guide/developing/devices/emulator.html May 07 08:49:02 thanks May 07 08:51:14 hi May 07 08:52:36 the other day i was recommended to use fragments + buttons to design a custom tab bar, on the bottom of the screen. but i just found that tabs are only supported since v3, right? May 07 08:52:52 is there a way to make it back-compatible with v2 ? May 07 08:53:26 :| May 07 08:53:41 why stop at v2, go back to 0.9 :) May 07 08:54:12 ddreamer0: use ActionBarSherlock or the android compat library May 07 08:54:25 If you use a custom tab bar, why do you care when X tabs were added May 07 08:56:33 hi, i am trying to call a web service from android 3.2 using native connection (Url.openConnection()). on 4.0.3 it is working ok. on 3.2 it gives me a FileNotFoundException (http code 400 bad request). using apache http client works well on both versions. does anybody else also experienced this? May 07 09:00:13 m1hael: i haven't used either, but in imho i would grab the latest apache and use jarjar to package it with your app minus naming conflicts May 07 09:01:27 that way you have a api that works consistently across a bunch of android versions :) May 07 09:01:28 g00s: apache works out of the box with the version shipped with android. apache is not the problem. but i have read that sind android 3.x the native http client should be used instead of the apache one. May 07 09:01:47 m1hael: yeah, i remember that advice May 07 09:02:06 somehow i disagree May 07 09:02:10 I think they mentioned since 2.3 .. I just found it a hassle May 07 09:02:18 yeah =) May 07 09:02:25 but older apache had issues too May 07 09:02:36 thats why i recommend grabbing the latest official one :) May 07 09:02:44 ok. thanx for the advice May 07 09:03:26 imho, it was dumb for android to package that in May 07 09:04:26 i have to disagree. i find it very useful because mobile apps don't get the data shipped with the app so they have to communicate with some server. a http client shipped with the os makes sense imo May 07 09:04:35 though it should be one that works =) May 07 09:04:51 m1hael: well, if you can just dl from apache website and it works … whats the point ? May 07 09:05:38 g00s: it is easier if it is shipped with the os May 07 09:05:53 m1hael: not if every version of the os has a differently broken one May 07 09:05:59 g00s: yes May 07 09:06:09 glad you agree :) May 07 09:06:25 an argument was averted on the internets tonight May 07 09:06:40 \o/ May 07 09:11:58 Ge0rG: can ABS make a custom tab bar at the bottom ? May 07 09:15:05 haha, wuuut http://www.meet-an-inmate.com/ May 07 09:15:55 ddreamer0: for a tab bar you might also look at http://viewpagerindicator.com/ May 07 09:17:18 Hi , Any one works on augmented reality android May 07 09:18:34 Hi, Has any one works on augmented reality ... May 07 09:21:28 anybody woke? May 07 09:25:54 amad27k1: what s the exact question May 07 09:36:35 ali_ i was needing somebody to test something but i got it. turns out my et4g has a gb bug that alot of people have May 07 10:14:42 how do u actually line up what images a viewflipper will show? May 07 10:14:46 how i can get button height in my activity ? getHeight() and getMeasuredHeight() returns 0 May 07 10:15:03 kselos: are you getting it in onCreate? May 07 10:15:12 yes May 07 10:15:19 try it in onResume May 07 10:15:32 or do u just change the image on the imageview where u dtecte the swipe? seems too late May 07 10:15:35 gaz`: doesn't the adapter have that May 07 10:15:44 im not sure really May 07 10:16:03 I think the order is decided by the datasource order May 07 10:16:45 ok May 07 10:16:51 not seen ay of thisin tutorials May 07 10:18:07 ali__: still return 0 even in onResume May 07 10:18:35 are u setting the content view first kselos May 07 10:18:42 kselos: this happens because the you cannot know when the onMeasure on the View is called May 07 10:18:45 try this May 07 10:18:56 do a delayed post on the view and log the size May 07 10:19:20 kselos: viewName.postDelayed() May 07 10:19:31 or something like that May 07 10:19:40 give a delay of say 500 May 07 10:19:53 I dont know why you want the size ideally you shouldn't need it May 07 10:20:01 but I think this should work May 07 10:21:53 Guys, I'm newbie and, of cause, I have a problem. I tried to create compound control (TextView+ListView), but it is not displayed when placed in main layout. There are no errors displayed while running too. There are my layouts: http://hash.su/7380 and compound control's class: http://hash.su/7381 May 07 10:22:00 What I'm doing wrong? May 07 10:23:35 (I'm doing kinda file browser if it does matter) May 07 10:23:44 it cant be so long May 07 10:25:18 ali_ im thinking xa0c needs an adapter? May 07 10:25:25 nope May 07 10:26:04 THere will be two custom controls that already contains listview with custom adapter and items layout. May 07 10:26:15 oh ok nvm May 07 10:27:01 I must create layout in java where I have from up to down : button, customView, button2, and I must set dimension of the customView like this height of all screen - height of button - height of button 2 May 07 10:28:35 Has anyone got an ICS phone? If you have a live wallpaper running and long-press on a homescreen -> wallpapers do you get the "Configure..." option like in previous android versions? May 07 10:28:56 Because the emulator doesn't have this option anymore May 07 10:31:53 hi, i have two widgets which should be place side by side, each consuming 50% space. how should i prog this (xml), (android 3.2)? May 07 10:33:25 m1hael: read the docs on linearlayout :) May 07 10:34:25 g00s: that was no big help. i tried linearlayout but don't know how to apply it in my case. layout_weight? May 07 10:34:35 thats it May 07 10:34:51 g00s: ok. i give it a try. May 07 10:34:57 (another try) May 07 10:35:16 make sure you have your width or height set to 0dp May 07 10:35:28 i guess width in your case May 07 10:35:33 g00s: ok. thanx May 07 10:35:53 how the fuck does one get seconds out of this flaming piece of shit http://developer.android.com/reference/android/text/format/DateUtils.html#formatDateTime(android.content.Context, long, int) May 07 10:38:31 guys I am using color class to get rgb values from image. Problme is some of images with almost same color have slighttly differente value for RGB. Those colors need to be grouped together(because in real image it is same color) not sure what tollerance I could give the color and still be precsise. If you know what I mean May 07 10:40:16 Just to clarify: I'm not trying to create custom ListView's items view. I'm trying to create compound control like TextView+Button or TextView+CheckBox. It looks like I missed some kind of 'attaching' my view to activity or something. Give me the direction what I should google, at least. :) May 07 10:42:24 g00s: worked. thanx May 07 10:44:57 Can you suggest a documentation about creating custom drawables? May 07 10:45:24 Like, photoshop tutorials? :P May 07 10:45:36 lol @Simont May 07 10:45:47 I laughed as well. May 07 10:45:56 ops forgot the v :p May 07 10:46:05 I need to define a drawable that decode a bitmap in background, downsampling it to the current size available for the drawable. May 07 10:46:17 SimonVT, talking to me? May 07 10:47:26 mastroWork: I dont need cusom draw %) May 07 10:48:06 xa0c, ? May 07 10:49:20 look at the api demos mastro May 07 10:49:49 Might as well just extend BitmapDrawable May 07 10:50:03 Do your logic for scaling, then setBitmap or whatever the method is called May 07 10:50:09 or wat he said ^ May 07 10:50:54 Let's say you're creating registration page. There will be two fields(TextView): "email" and "username". And also there will be an button after each textView: "check availability". You may do it by placing two textviews and two buttons (first way), but you may create compound control (textView+button) and place two such controls (the way I'm trying to do) May 07 10:50:59 got it? :) May 07 10:52:48 http://developer.android.com/resources/articles/layout-tricks-reuse.html May 07 10:52:50 Like this? May 07 10:53:17 thanks, will check it May 07 10:55:20 do I need to install JavaFX SDK too? May 07 10:55:56 Storm2010, SimonVT, I'll see if the demos has something useful (doubt it). I can't use BitmapDrawable and set it up because I need a drawable that adjust the image sampling when the size change May 07 10:58:31 I didn't suggest you use BitmapDrawable, I suggested you extend it May 07 10:58:49 Then you only have to take care of scaling, BitmapDrawable will do the drawing for you May 07 10:59:51 SimonVT, yup... but that's what I'm doing... :) I'm looking for something that document the "drawable" lifecycle or, if you prefer, the Drawable contract with other classes to follow it May 07 11:00:43 SimonVT, also... the empty constructor for BitmapDrawable is deprectated, and I do not really have a real bitmap until I actually decode it, which should happen in background May 07 11:01:04 SimonVT, I was hoping to be able avoiding studying the android source code May 07 11:03:00 is JavaFX SDK required for the android SDK? May 07 11:07:56 Hi, does anybody knows how to add SSLv1 support so I could do the server handshake ? May 07 11:08:11 any external libraries or something May 07 11:09:21 Hi all May 07 11:09:24 SimonVT: thank you. that link gived me right direction and I fount the answer (here: http://android-developers.blogspot.com/2009/03/android-layout-tricks-3-optimize-by.html), "" did all work. May 07 11:09:41 :) May 07 11:10:57 Like XNA for WP7, is there a game engine for android? May 07 11:11:10 i think there are like 60 game engines May 07 11:11:45 g00s how do you know what to choose then? May 07 11:11:56 i think andengine is popular May 07 11:15:16 g00s looks good, but its only 2D May 07 11:27:13 uh, DateFormat.getTimeFormat() does not include seconds May 07 11:27:16 gaaaaaahhhhh May 07 11:27:20 /me rages May 07 11:28:16 guys? I downloaded the Android SDK. But i thought that the programming-language-program would come with it. 0_o Is there something else i should download? May 07 11:28:35 wut May 07 11:28:46 PsychoX75: you mean eclipse? May 07 11:28:51 no, eclipse is a separate download May 07 11:29:11 ohhhh May 07 11:29:14 eclipse u say? May 07 11:29:15 * g00s pnders what the programming-language-program is May 07 11:29:19 lemme go grab it. :) May 07 11:32:26 k now i'm really ashamed to ask. Is eclipse a software that i'm supposed to buy? Cuz for some reason I dont see it's download link on the Android developers site. May 07 11:33:00 PsychoX75: www.eclipse.org May 07 11:33:38 Cruz, her name is Cruz, not Cuz May 07 11:49:11 DOes anyone have a strategy for handling the (occasional) wild GPS fix certain devices seem to give from time to time? May 07 11:50:45 when china gona make Android phones? i always have to wait longer for low price prods. emulator sucks. May 07 11:51:55 <`z> jaami, china already makes android phones May 07 11:52:03 <`z> you can always use android x86 though May 07 11:52:13 ahh, must be joking. is that true? May 07 11:52:19 <`z> yes May 07 11:52:42 <`z> jaami, http://www.engadget.com/2012/04/15/meizu-mx-quad-core-launch-android-4-0/ May 07 11:52:53 wow wow, wait a minute, im newb, plz tell me what is x86 May 07 11:53:28 <`z> >laptop May 07 11:53:31 <`z> or computer May 07 11:53:31 <`z> PC. May 07 11:53:42 -.- May 07 11:54:51 hmm, :(, i have it installed. i think you are talking about emu. May 07 11:55:44 <`z> then your computer is really old May 07 11:55:50 <`z> or you're using a umpc May 07 11:56:43 Z: ITS core 2 due 64bit May 07 11:56:54 <`z> ULV processors? May 07 11:57:48 z: ULV, sorry that good in computer terms. what is it ULV May 07 11:57:58 <`z> ultra low voltage May 07 11:58:18 z: no idea. d620 dell May 07 11:58:25 <`z> oooooold May 07 11:58:33 <`z> http://www.hahgay.com/ May 07 11:58:34 :(((((( May 07 12:01:06 z: i need to grough link somonVT gave about Virtual Machine Acceleration. i hope this will help. May 07 12:01:17 <`z> somonVT? May 07 12:01:20 <`z> hmm May 07 12:01:21 <`z> k May 07 12:04:56 z: you said china already making android phones? can you give me link other than ebay? May 07 12:05:17 <`z> jaami, google May 07 12:05:25 ok, sure May 07 12:05:28 <`z> china has been making androi dphones for a long time already... May 07 12:06:42 well then the last option is always there. wait a longer for a price in reach May 07 12:10:13 <`z> o May 07 12:10:14 <`z> or May 07 12:10:18 <`z> you can always get a T-mobile G1 May 07 12:10:26 <`z> or shit like dat May 07 12:11:15 $40 is all i can spend on a Android phone May 07 12:11:46 <`z> jaami, $40? May 07 12:11:47 <`z> USD? May 07 12:11:49 <`z> that's way too little May 07 12:11:56 sup suckahs May 07 12:12:01 <`z> $40 SGD can't even buy a half-decent phone May 07 12:13:00 i think Oracle is playing shit otherwise google may give lower price than china in an year May 07 12:13:44 just , think , may be thinking wrong May 07 12:14:35 <`z> no. May 07 12:14:40 <`z> if you want a decent android phone May 07 12:14:48 <`z> be prepared to spend at least $150 May 07 12:14:56 <`z> $40 USD is way too fucking little May 07 12:14:57 <`z> as I said. May 07 12:15:08 <`z> that can only get you a basic phone May 07 12:15:11 oterwise wait for 1 year or 2? May 07 12:15:16 <`z> no. May 07 12:15:20 <`z> not in a year May 07 12:15:27 <`z> maybe not even in 5 years May 07 12:15:27 <`z> :| May 07 12:15:33 <`z> okay May 07 12:15:39 <`z> just save up money May 07 12:15:57 cpmeon :)))) lol 5 years too long for android phone to hang on $150 May 07 12:16:35 <`z> http://techcrunch.com/2012/03/27/please-do-not-buy-cheap-android-phones/ May 07 12:16:51 <`z> jaami, if phone prices are going to fall from $150 to $40 in 4 years May 07 12:16:54 <`z> 1 year* May 07 12:17:07 <`z> that means that they'll be free soon... May 07 12:17:11 <`z> okay dude May 07 12:17:18 <`z> just get a used htc G1 May 07 12:17:19 z: thank May 07 12:17:27 <`z> but the G1's like May 07 12:17:29 <`z> 4 yuears old May 07 12:17:54 <`z> years* May 07 12:18:00 <`z> and probably can't even run GB May 07 12:19:31 used one in local market is about $130 right now May 07 12:19:54 <`z> used one? May 07 12:19:55 <`z> what model? May 07 12:20:14 <`z> are you talking about a Galaxy Nexus that's only been used for 3 months May 07 12:20:26 <`z> or a HTC Dream that's been used for 3-4 years May 07 12:20:31 iphone May 07 12:20:42 jaami: wrong channel, dude May 07 12:20:49 almost same price for both but android is not available May 07 12:21:10 Leed: closing discussion, sorry about this May 07 12:21:19 <`z> jaami, #android May 07 12:21:22 <`z> or #android-offtopic May 07 12:21:30 i want a galaxy note :( May 07 12:21:53 z; thanks, nice discussion May 07 12:24:01 ive got a ViewFlipper working and going thru my images, but i also want to change a caption under the image when the user swipes, but how do i get the current index? May 07 12:24:42 hello , any idea how can I achive a seamless video loop on android 2,1 ? May 07 12:32:47 I've got a List view containing LinearLayouts made up of a textview and gridview, gridview items keep stealing focus even though bloackDescendants is set on the gridview, anyone any ideas? May 07 12:34:28 don't put a gridview in a listview May 07 12:36:06 youll just have problems, also dont put a listview in a listview May 07 12:37:11 mikedg: I am only using the gridview for display so though I could disable any focusability on ti all together as I don't need the items to be clickable e.t.c May 07 12:39:56 hi May 07 12:40:16 i want to fix an ImageView's height to 100dp May 07 12:40:46 while having the maximum width it can get May 07 12:41:08 but I don't know how to code that May 07 12:41:23 because I can't set that in XML May 07 12:41:30 you can't? May 07 12:41:42 set the layout_height to 100dp and the layout_width to match_parent? May 07 12:43:19 it works for ImageView width less than screen size May 07 12:43:42 but if ImageView's max width is larger than screen size, then it will be squeezed May 07 12:44:02 I wish it could overflow the screen May 07 12:44:03 yes.. well, you can put the imageview inside a scrollview then May 07 12:44:46 is there a way to detect when a textview has gone over the lines its allowed and tack on "..." May 07 12:46:24 kanelbul1e: you saved my day! May 07 12:47:36 vanson2012: no problem May 07 12:47:58 gaz`: android:ellipsize="end" May 07 12:48:05 thanks! May 07 12:48:30 I use the following to download a PDF, but the pdf is always around 400bytes and wont open. I used this same code in another project and it works, what can change so that it can download an incomplete pdf file ? May 07 12:48:31 http://pastebin.com/qkV1263E May 07 12:48:45 did you see what's in the file you downloded? May 07 12:48:54 it's probably somehting like 203 denied May 07 12:48:58 the pdf wont open May 07 12:49:02 says invalid pdf May 07 12:49:08 because a 400 byte file is not a pdf May 07 12:49:16 when i open the url in a browser it opens fine May 07 12:49:25 doesnt do anything wongk ;/ May 07 12:49:36 gaz`: wfm May 07 12:50:10 perhaps it's the redirect ? May 07 12:50:18 maybe May 07 12:50:26 but why would it work on another project? May 07 12:50:34 and not this one? May 07 12:50:35 with the same url ? May 07 12:50:52 yes May 07 12:51:05 wel it changes ofc, but has same structure May 07 12:51:31 so what is actually in the file? May 07 12:52:11 Blou_Aap: have you read this: http://docs.oracle.com/javase/6/docs/api/java/io/FileOutputStream.html#write(byte[], int, int) ? May 07 12:52:27 sometimes u need to flush after write May 07 12:52:28 which is the overload oyu're calling May 07 12:52:30 well in j2me u did May 07 12:52:32 was a bug May 07 12:52:56 i do call flush May 07 12:53:04 yeh only once May 07 12:53:11 i might be talking shit but try call it right after the write May 07 12:53:13 in the loop May 07 12:53:26 lol ok May 07 12:53:28 worth a shot May 07 12:53:32 it's worth the try, i remember something like that as well May 07 12:53:34 oh n/m me, i misinterprested the language in the docs at first May 07 12:55:06 nope that didnt work May 07 12:55:11 :( May 07 12:55:12 booo May 07 12:55:32 maybe the buffersize? May 07 12:55:37 think im talking shit again May 07 12:55:37 :) May 07 12:55:42 tried that already May 07 12:56:57 and what is in the file if you pull it from the device and check on your pc? like wongk said? May 07 12:57:29 Hi to open a BT socket, can I use hcitool in my Android app? May 07 12:58:07 jellenagels, looks like html :O May 07 12:58:25 what does it say? perhaps it might give you a clue May 07 12:58:52 it says Object moved, thats probably from the server ofc May 07 12:58:55 fairuz: or use Android's native BT API? May 07 12:59:06 Blou_Aap: that's from a 302 redirect May 07 12:59:12 with a href link May 07 12:59:20 :p May 07 12:59:44 When releasing a new update that only creates a few new tables in my database, about 0.1% of my users report that they lost parts of their data. Is this perhaps a known issue? May 07 12:59:50 wongk, so how would i handle that ? May 07 12:59:55 Leeds: I will take a look at it. Android's native BT API is using hcitool too in the background? Or something else. May 07 13:00:29 Blou_Aap: you're better off using the more verbose method: http://developer.android.com/reference/java/net/URL.html#openConnection() May 07 13:01:57 i'm not very familiar with URLConnection, i've always used the apache classes May 07 13:02:00 Uhttp://stackoverflow.com/questions/1884230/java-doesnt-follow-redirect-in-urlconnection May 07 13:02:03 me too May 07 13:02:38 I have some ImageButton with custom image as background, how can I easily add color highlight when button is pressed? May 07 13:02:51 check with HttpClient, HttpGet, BufferedHttpEntity, HttpResponse May 07 13:03:16 will try May 07 13:03:24 ahhh May 07 13:03:32 cast the return value to http://docs.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html May 07 13:03:50 wongk got it, needs android:singleLine="true" for some reason May 07 13:04:20 the problem is, when you call openConnection, it's already connected May 07 13:04:35 so telling it to follow redirects at that point is likely too late May 07 13:05:10 "HttpURLConnection will follow up to five HTTP redirects. It will follow redirects from one origin server to another. This implementation doesn't follow redirects from HTTPS to HTTP or vice versa." May 07 13:06:07 hmmm, says follow redirects is true by default May 07 13:08:21 at least this class lets you get the response code, which you should always check in your application anyway May 07 13:08:59 try with this : http://developer.android.com/reference/java/net/HttpURLConnection.html Blou_Aap May 07 13:09:12 it has some documentation about how to use it. May 07 13:17:05 is it possible to detect flings as well as clicks on an imageview and or viewflipper May 07 13:17:14 seems when i add onclick it stops donig the gesture stuff May 07 13:18:00 You could try to detect when the x-y deltas are small May 07 13:18:09 smart May 07 13:18:10 Hello all. I am getting a SAX Parse exception on 4.0.1. The same XML reads fine in 2.3 (phone and emulator). May 07 13:18:10 if they are too small that means they must have clicked May 07 13:18:11 thank May 07 13:18:16 thanks May 07 13:18:22 No problem :) May 07 13:18:49 org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT @13:1 in java.io.InputStreamReader@40e4f328) May 07 13:19:03 hi, in a table layout how do i align a textview right and vertical center? May 07 13:19:42 m1hael: Try the android:layout_gravity attribute May 07 13:19:50 right|vertical_center should do it May 07 13:20:29 Knossos actually you only get one motionevent unless its a fling May 07 13:20:30 Knossos: thanx. i knew the layout_gravity attribute but didn't know that i could combine values with a pipe. thanx May 07 13:20:32 so i dont think that can work May 07 13:20:38 Lachezar: Try putting your code/error/xml into a pastebin or so. May 07 13:21:02 Knossos: Doh... That will be hard :( May 07 13:21:05 gaz`: Can't you then check if you only get one motionevent? :P May 07 13:21:34 If that is how it works, I'm not 100% sure. May 07 13:22:03 ill try :) May 07 13:22:15 There is probably a better way May 07 13:22:58 <[twisti]> im developing an android application with the eclipse stuff thats linked everywhere, and i saw that it includes proguard - does that mean it automatically obfuscates my stuff ? May 07 13:23:43 no. May 07 13:23:44 [twisti]: not unless you tell it to May 07 13:23:50 You have to set a line in your eclipse project May 07 13:24:02 And ideally do a fair amount of fiddling in the config itself May 07 13:24:07 <[twisti]> i see May 07 13:24:09 SimonVT, just as information: extending BitmapDrawable takes you nowhere, there's no accessible setBitmap method May 07 13:27:31 SimonVT, extending BitmapDrawable takes you nowhere if you need to change the bitmap dynamically: it doesn't expose a setBitmap method May 07 13:27:55 Copy the source and make it public May 07 13:30:53 Does anyone know how the get a list of fragments from an activity using instrumentation? May 07 13:40:56 In the Notepad tutorial it says "The Activity class implements the Context class" but in the documentation http://developer.android.com/reference/android/app/Activity.html it doesn't say so in the "implements" part .. why is that ? May 07 13:41:00 how can I run code I created with Eclipse 2.3.3 sdk on a 2.3.5 device? May 07 13:42:57 yannick_gagnon: change your to 10 May 07 13:43:27 CVirus: no May 07 13:43:31 absolutely not May 07 13:43:37 yannick_gagnon: wait a minute .. 2.3.5 is level 10 May 07 13:43:56 2.3.3* May 07 13:44:03 regardless, it's a MINIMUM sdk version May 07 13:44:08 my project.properties has this: target=android-10 May 07 13:44:09 you can do targetSdk ? May 07 13:44:13 if minSdKVersion="9", you can run it on 10, 11, 12, etc May 07 13:44:23 that doesnt matter May 07 13:44:25 canadiancow|work: oh yes .. got confused .. sorry May 07 13:45:08 yannick_gagnon: Android is forward compatible as canadiancow|work just mentioned May 07 13:45:20 Oh, I'm new to android ;) I see this in AndroidManifest,xml May 07 13:45:48 yannick_gagnon: that is still fine May 07 13:46:06 are you using Eclipse to build your apps? May 07 13:46:21 yannick_gagnon: http://developer.android.com/training/basics/supporting-devices/platforms.html May 07 13:46:41 is there an actual problem? Does your app crash on higher versions? May 07 13:47:23 Eclipse doesn't see the device May 07 13:47:41 I assumed it was because the versions differs May 07 13:47:55 yannick_gagnon: no May 07 13:48:08 do you have USB Debugging set on true on your device ? May 07 13:48:31 Android Device choose says, select a device compatible with target Android 2.3.3 May 07 13:48:41 jellenagels: Maybe not :( May 07 13:48:47 let me check that out May 07 13:48:54 check under Settings somehwere May 07 13:48:57 Development May 07 13:49:09 Is there a check I can run in my program to see if the device I am on is already rooted? May 07 13:49:18 su May 07 13:49:22 and/or id May 07 13:49:31 I have a HP touchpad with CyanogenMod - how can I enable the screen orientation with acceleration? May 07 13:49:45 KungPhoo: #android-root or #cyanogenmod May 07 13:49:48 KungPhoo: this is the wrong channel. May 07 13:50:16 yannick_gagnon: if the device doesn't show up at all, you need to set it up first May 07 13:50:20 yannick_gagnon: http://developer.android.com/guide/developing/device.html May 07 13:50:39 lov: Thanks, I'll check that out May 07 13:51:37 jellenagels, SHOT MAN!!!!! THANKS!!! May 07 13:51:47 and wongk May 07 13:51:54 you too man thanks thanks thanks May 07 13:52:03 Blou_Aap: np May 07 13:52:42 Bilhetes pa queima, alguem arranja? May 07 13:52:52 wc May 07 13:53:02 lov: That was easy, thanks again May 07 13:56:24 What good place did you find for your android-sdk dir on a Linux system? May 07 13:58:15 aleb: where my package manager put it May 07 13:58:39 wongk, what package manager do you use? May 07 13:58:45 portage May 07 13:58:51 and where did it put it? May 07 13:59:04 /opt May 07 13:59:10 ls /opt May 07 13:59:16 er May 07 14:02:21 <[twisti]> hm, i cant get proguard to work May 07 14:02:34 <[twisti]> i uncommented the line in project.properties, like it says, but it just doesnt do anything May 07 14:02:55 [twisti] it only works when you export the apk May 07 14:03:01 [twisti]: and your are exporting the application package through the Android Tools menu? May 07 14:03:13 <[twisti]> ah, ok, no, i was just using the run config, my bad May 07 14:03:26 progaurd for debug = bad :P May 07 14:03:38 wongk y? May 07 14:03:51 jug6ernaut: do you enjoy debugging obfuscated code? May 07 14:04:01 <[twisti]> wongk: well, i wanted to "debug" whether it was working or not ;) May 07 14:04:06 wongk u can un-obfuscate it May 07 14:04:19 that doesn't mean i want to May 07 14:04:57 well i would rather un-obfuscate code then release non-obfuscated code May 07 14:05:24 fortunately we don't have to make that decision :P May 07 14:05:44 you release debug builds? May 07 14:06:32 <[twisti]> stack traces can be 'unobfuscated' just fine May 07 14:09:10 it saddens me that we still have customer integrating our product with source safe May 07 14:09:17 let it die already... May 07 14:12:42 wongk: put the customer into the source safe and throw away the key, literally speaking May 07 14:13:56 Hey guys, check out my new app https://play.google.com/store/apps/details?id=Erowid.MantasCode May 07 14:14:36 mantas322: you won't get more positive ratings this way. May 07 14:14:54 oh dont rate it, I just wanted to share May 07 14:14:57 also, the UI sucks :) May 07 14:15:04 not acceptable to do so here? May 07 14:15:07 Users who viewed this also viewed : Bible summary. Did lol May 07 14:15:17 also requires the user to know what Erowid is. May 07 14:18:34 mantas322, looks cool but whats the diff between this and wikipedia? May 07 14:18:35 xd May 07 14:18:45 would be cool if i could take a picture of something and it would pull up the right thing May 07 14:19:00 not much May 07 14:19:06 haha, that would be hard May 07 14:19:14 yeah but would make for an awesome app May 07 14:19:40 the "wtf is this" app May 07 14:19:45 yeah May 07 14:20:00 i see more use to that than to google goggles May 07 14:20:01 lol May 07 14:20:16 let us know whe nyou get it written May 07 14:20:20 google goggles is a thing? May 07 14:20:23 yeah May 07 14:20:24 its an app May 07 14:20:31 wongk, sure thing, give me 5 minutes May 07 14:20:36 * Bear10 writes up some code May 07 14:20:37 done May 07 14:20:46 Can a Nexus S with 4.0 currently emulate RFID tags using the sdk? May 07 14:20:47 can one suggest what j2me program is best for android ? May 07 14:21:02 mms_: none. May 07 14:21:56 Ge0rG: ok among options available which is best ? May 07 14:23:29 [2012-05-07 10:19:48 - LoopbackTest] 'default' is not a best match for any device/locale combination. [2012-05-07 10:19:48 - LoopbackTest] Displaying it with 'Locale Language ___Region __, sw320dp, w320dp, h533dp, Normal Screen, Long screen aspect ratio, Portrait Orientation, Normal, Day time, High Density, Finger-based touchscreen, Soft keyboard, No keyboard, Exposed navigation, Trackball navigation, Screen resolution 800x480, A May 07 14:23:32 fuck u May 07 14:23:59 hi May 07 14:24:20 hi May 07 14:24:38 does anyone knows if there is a google checkout API for sellers ? something to get notified everytime a sale is made or to get sales history ? May 07 14:24:39 mms_: android is not running j2me. besides of that, your question is not precise enough to be answered in any useful way May 07 14:24:56 Estragon: there is, but only for a subset of us merchants May 07 14:25:00 s/us/US/ May 07 14:25:38 ok, bad news :( May 07 14:25:52 Estragon: https://play.google.com/store/apps/details?id=com.kwproductions.checkouttrackerv2 love a good sales opportunity :P May 07 14:26:09 Ge0rG: I want to run an app written using javafx and learned it can be done using j2me and my phone is android phone. I hope it clears up. May 07 14:28:46 mms_: then my answer remains. there is no way. May 07 14:28:56 sad May 07 14:29:37 wongk: nice :) May 07 14:29:49 brb May 07 14:37:21 I have a TabActivity with two tabs, then i have a search menu button. User comes to a activty where he/she can search but now how to i send the results to the underlying activities under TabActivity? May 07 14:37:31 How do I read out the raw bytes stored in a RFID tag? May 07 14:37:52 joelmob: you may get crucified in here mentioning TabActivity :P May 07 14:44:22 what is the desired way to have an event run at a specifc time, alarm manager? May 07 14:44:27 delayed runnable? May 07 14:45:02 android's layout XML makes me die *cry* May 07 14:45:10 jug6ernaut: AlarmManager will ensure it gets run even if your app isn't running May 07 14:45:14 iphone interface builder is way BETTER May 07 14:45:32 jug6ernaut: depends on context... if you want it to run in 5 seconds, delayed runnable, if you want it to run at 8am, or every 30 minutes... alarm May 07 14:45:44 u guys agree?? May 07 14:45:53 vanson2012: thank you for telling us - we shall all now decamp to #iphonedev and close this channel down May 07 14:46:05 lol May 07 14:46:41 there, see, people are leaving already May 07 14:46:48 Leeds: lol I am struggling in RelativeLayout inflations May 07 14:47:45 Leeds: I have to inflate one relativelayout after one , Activity -> root Layout -> RelativeLayout (inflated) -> RelativeLayout(inflated) May 07 14:47:47 vanson2012: so tell us what your porblem is May 07 14:47:59 you're nesting relativelayouts? May 07 14:48:30 and then the 2nd inflated RelativeLayout has all the elements being forcibly set alignTop & alignLeft May 07 14:48:44 instead of layout_right & layout_bottom May 07 14:48:52 just don't nest relativelayouts as Leeds was saying. May 07 14:48:55 *layout_alignright May 07 14:49:12 you can position all items inside relative to each other. May 07 14:49:18 ys, i have to make popup menus with custom scrollviews May 07 14:50:05 so a dialog ? May 07 14:50:22 Guys does it worth it to make addition white balancing for android telephone if telephone it self does white balance? May 07 14:50:41 it's kinda hard to tell what the problem is with so little details May 07 14:51:40 i am making a horizontal scrollview thing with icons on it, it popups on between the activity's views & the buttons when I touch the buttons. I still need the buttons above the popup horizontal scrollview May 07 14:52:29 the most important of all, i wish i could make a custom view class for the horizontal scrollview & i can separately edit the elements in the view inside layout editor May 07 14:53:44 i am trying to solve it with one less nest relative layout May 07 14:53:58 * Leeds suspects an IDE addict May 07 14:54:10 i hate inflation very much, why not just addSubview(RelativeLayout) ? May 07 14:54:28 ಠ_ಠ May 07 14:54:41 inflation is very class-sensitive May 07 14:54:47 ... what? May 07 14:55:08 He doesn't understand androids layout system, so he complains May 07 14:55:28 inflation always hits the lower class harder... and the rich guys figure a way to stay rich May 07 14:55:47 Ge0rG: now say something about fiat currency and the mainstream media, go on :) May 07 14:55:51 I fi nd it best to complai n about stuff I don't understand too! May 07 14:55:53 I am getting XML Parsing errors with Android 4, that were not there with 2.3. May 07 14:56:25 I think the problem is for the embedded DTD declaration. If I remove the DTD declaration the parser works :(. May 07 14:56:48 Leeds: naah, we don't want to drift off into politics, do we? May 07 14:57:17 My AVD emulator does not seem to use a "Wireless Network" to connect, even though I am using wireless from the laptop that I code with. Is there a way to test the wireless from the AVD? May 07 14:58:17 I realize that the AVD would not really be controlling my laptop's wireless, but it would be nice to test. May 07 15:01:19 Jonathan_Eyre: you can fiddle with a bunch of emulator network settings - but I think it always emulates a cell data connection, not wifi May 07 15:01:50 http://developer.android.com/guide/developing/devices/emulator.html#netstatus May 07 15:01:53 is it normal for free apps to have a 30% active:total installs ratio? May 07 15:02:23 Ge0rG: if that, I think May 07 15:02:34 there's a lot of churn May 07 15:04:06 probably my apps are all too irrelevant with <<10k downloads to provide useful statistics May 07 15:04:37 j /#processing May 07 15:04:43 ops sorry :) May 07 15:05:05 Jonathan_Eyre: emulator can't mimic wireless network May 07 15:05:37 Ge0rG: It's not uncommon to try several similar apps before deciding on one, if any May 07 15:07:15 I like doing android development, but I want to buy a bb as my phone, is it strange ;) May 07 15:07:29 Where can I know more about the list of @android:id/ that come bundled with android ? May 07 15:08:12 hoangtran: you can remove everything before and including the "but" and it would still be strange ;) May 07 15:08:18 hoangtran: wanting to buy a bb? yeah, that's strange - doesn't matter about android dev May 07 15:08:36 * wongk high fives Leeds May 07 15:08:45 CVirus: http://developer.android.com/reference/android/R.id.html May 07 15:08:53 SimonVT: thanks a lot May 07 15:09:34 SimonVT: it doesn't describe how to use them though May 07 15:09:49 How to use them? May 07 15:10:01 Is it legal for an android dev to use bb or wp o.O May 07 15:10:33 SimonVT: for instance for which Views I can use certain ID's and what is their effect May 07 15:11:10 Classes will tell you if they require an id to be used May 07 15:11:26 hmm May 07 15:20:11 I have a TabActivity with two tabs, then i have a search menu button. User comes to a activty where he/she can search but now how to i send the results to the underlying activities under TabActivity? May 07 15:32:12 someone cracked my app and changed how CursorLoader works in android.support.v4 o.O May 07 15:34:21 canadiancow|work: what was the point of that? May 07 15:34:37 i dont know May 07 15:34:37 :P May 07 15:34:41 its the biggest change May 07 15:44:38 you have an app? May 07 15:47:50 who doesn't, mikedg May 07 15:48:12 you dont May 07 15:48:17 I do May 07 15:48:35 prove it May 07 15:48:53 I would if you'd provide real feedback May 07 15:49:12 here, http://freecode.com/projects/cura May 07 15:49:47 i have a newbie question again... May 07 15:50:19 i am extending RelativeLayout like this: class MyRelativeLayout extends RelativeLayout May 07 15:50:19 thats not a google play link May 07 15:50:31 why are you extending relativelayout? May 07 15:50:49 then I put overrides to make the custom layout appear in Layout Editor May 07 15:51:06 extending a layout is not really a noob question May 07 15:51:24 mikedg: wish to make a zoomable one May 07 15:51:39 nowhere near a noob question May 07 15:52:07 i will go on explaining maybe u will find it noobish May 07 15:52:15 ok May 07 15:52:37 when I try to place some views on the custom layout May 07 15:52:47 i can only align them Left + Top May 07 15:53:01 there is no way to align them Right/Bottom/Center May 07 15:53:21 But I can still match_parent/ wrap_content them without problem May 07 15:53:46 did u try that before? May 07 15:56:30 http://www.googlestore.com/Wearables/Android+Hoodie.axd May 07 15:56:31 hothothot May 07 15:56:49 * wongk buys 6 May 07 15:57:59 mikedg: doesn't look like the android symbol :) May 07 15:59:04 so i got a new android shirt that makes fun of apple May 07 15:59:15 dont they all? May 07 15:59:17 pics or gtfo May 07 15:59:33 http://www.lolshirts.com/shirt/d8a77fc4c17/my-android-eats-apples-t-shirt May 07 15:59:38 i got an android shirt that makes fun of black people May 07 15:59:47 thats original May 07 15:59:50 and racist May 07 15:59:53 the hoodie rather looks like a big frog. May 07 16:00:11 lol Ge0rG my mom thought it was a frog :| May 07 16:01:03 i dont really have a racist android shirt May 07 16:01:06 it was to make a point May 07 16:01:08 http://www.lolshirts.com/shirt/1918d5591d8/facebook-who-cares-t-shirt May 07 16:01:40 are there any emulators than run anything close to real-time on linux? May 07 16:02:03 lol May 07 16:02:09 mikedg: your momma thinks android is a frog! May 07 16:02:09 that would be better with s/crap/fuck/ May 07 16:02:13 snes emulator run great May 07 16:02:31 is JavaFX SDK required for the android SDK? May 07 16:02:32 they have run well since days of 500mhz May 07 16:02:34 on change orientation the Activity is destroyed , isn't it ? May 07 16:02:36 Boscop: no May 07 16:02:50 thx May 07 16:03:22 I have a bunch of OpenGL code, running in the GLSurfaceView/Render stuff. I'm thinking of breaking that out and testing that completely outside the Android environemnt - using standard Java/JOGL stuff. May 07 16:04:27 <[twisti]> gridbag: check out libGdx May 07 16:04:33 yes May 07 16:04:36 do check it out May 07 16:04:36 Emulating the TouchSurfaceView to relay mouse events would be easy enough. May 07 16:04:53 <[twisti]> its sort of a wrapper for java opengl libraries that lets you run the same code on desktop and android May 07 16:05:18 [twisti], ah, thanks. weird name libGdx. May 07 16:05:22 mikedg, I cancelled JavaFX SDK install. now it opened a page in my browser to register with Oracle. do I need to do this? May 07 16:05:43 do you have any java sdk installed? May 07 16:06:17 [twisti], My telephone gets tired of all the .apk installs to test minor OpenGL tweaks. May 07 16:07:58 <[twisti]> gridbag: they also have a rather populated irc channel, chat.godsandidols.com #badlogic May 07 16:08:44 aLeSD: yes, onDestroy called May 07 16:13:52 http://developer.android.com/design/building-blocks/buttons.html Google makes mention of borderless buttons in this document, and I would like to recreate the same effect as shown in the right-hand of the two images (i.e. the Cancel and OK buttons), but cannot find any information about how to do this May 07 16:13:55 Can anyone help? May 07 16:14:34 neilalexander: just set your backgrounds default drawable to transparent May 07 16:15:10 Napalm: Okay, and I guess there is probably nothing special about the dark grey separator lines also? May 07 16:15:11 neilalexander: you can place views in or use shape drawables with negative padding to create the dividers May 07 16:15:25 Ah, okay. I'll give that a go May 07 16:15:27 Thanks May 07 16:15:42 the way its actually done in that screenshot is ICS specific May 07 16:15:58 Yeah that's fine, my application is already targeted only to Android 4.0 because of the VpnService API May 07 16:16:01 so unless you want to use a custom view you are not going to functionaly do it the same May 07 16:16:07 ok May 07 16:16:11 well if its ICS only May 07 16:16:17 LinearLayout now has dividers May 07 16:16:48 http://developer.android.com/reference/android/widget/LinearLayout.html#setShowDividers%28int%29 May 07 16:16:57 http://developer.android.com/reference/android/widget/LinearLayout.html#setDividerDrawable%28android.graphics.drawable.Drawable%29 May 07 16:17:07 these can be done from layout files May 07 16:17:33 may I store a reference to a fragment in the activity ? May 07 16:17:51 aLeSD: should be ok May 07 16:18:04 Napalm: Great, I'll look at that too, thanks! May 07 16:18:18 Napalm, thanks May 07 16:18:27 aLeSD: its probably better to use FragmentManager.find... May 07 16:18:55 aLeSD: this way you dont have a problem with fragment lifecycle or state May 07 16:19:02 it all depends on how your fragment is used May 07 16:19:23 Anyone here have any experience using JakeWharton's DiskLruCache? May 07 16:19:35 o_O May 07 16:19:48 Napalm, one of my fragments is a listener of an data struct in the Activity May 07 16:19:48 i think JakeWharton might May 07 16:19:57 actually, i've never used it :P May 07 16:20:13 when the data struct change it call onChange() in the fragments and it redrw all May 07 16:20:23 s/redrw/redraw/ May 07 16:21:05 Napalm, it's a struct of WeakReference May 07 16:22:09 JakeWharton, lol. I'm having trouble figuring out how to use it. Dunno what's wrong with me today. I wanna use it to cache some bitmaps. I'm trying to simply get an editor and then call newOutputStream on that, passing it to a bufferedoutputstream and then committing the editor May 07 16:22:17 bbl May 07 16:22:35 and then retrieving the bitmap by getting the snapshot from the cache and getting the inputstream from there and finally decoding with bitmapfactory May 07 16:22:39 am i using it all wrong? May 07 16:22:46 bah, cant get headset audio recording working May 07 16:22:48 wtf :/ May 07 16:23:42 no May 07 16:23:48 that sounds exactly how you should use it May 07 16:24:14 hmm, might have to do with the fact that i had mDiskCache.edit("key") instead of using the passed in key May 07 16:24:18 haha lets try again May 07 16:25:20 keep getting null on BitmapFactory.decodeStream(snapshot.getInputStream(0)) May 07 16:26:00 If I use Camera.open(0) and the default camera isn't available .. Will it go to the next camera ? May 07 16:26:02 Does anyone know of an easy way to find the screen coordinates for a certain point? May 07 16:26:33 I remember using a tool that I think came with the SDK, that showed an image of the screen, and allowed you to click somewhere and see the coordinates of the click May 07 16:27:01 I can't seem to find it anymore May 07 16:27:04 JakeWharton, should be mDiskCache.edit(key).newInputStream(00? May 07 16:27:58 JakeWharton: why is localbroadcastmanager overly complicated May 07 16:28:32 it's not overly complicated in and of itself, but as a solution for event dispatching it's overkill May 07 16:28:44 mikedg: to keep the noobs out? ;) May 07 16:30:28 its kind of funny how incompatible OpenGL ES 2 is with OpenGL ES 1. May 07 16:30:51 you need completely different code. May 07 16:31:56 it sucks because there's no ordered broadcast :/ May 07 16:32:11 I found something very strange May 07 16:32:29 android is serializing a transient field May 07 16:32:40 JakeWharton will you be at I/O ? I had tickets to see you speak at AnDevCon but unable to make it, unfortunately May 07 16:32:59 I will indeed May 07 16:33:15 also as speaker, or just as hanging around? :) May 07 16:33:25 he's going to be there drunk May 07 16:33:33 giving drunk android lessons May 07 16:33:38 hi, is is possible to insert Gradient drawable in EditText in android:drawableLeft ? May 07 16:33:39 how to compile the aosp while drunk May 07 16:33:48 "and this is how you empty a keg while porting Holo to 2.2" May 07 16:33:55 aqu: i dont believe so May 07 16:34:07 Chainfire: not speaking haha, just a normal attendee trying to suck up some knowledge May 07 16:34:27 mikedg: ok thx May 07 16:35:04 also color #rrggbb doesnt work ther May 07 16:35:48 try #aarrggbb May 07 16:36:51 like what would you be trying to do? May 07 16:36:59 is your drawable set to be a certain size? May 07 16:37:23 Chainfire: doesnt work May 07 16:37:32 why not just shove a drawable and eittext in a linearlayout? May 07 16:37:44 mikedg: i want to higlight that something is ok (making it green or something like that) May 07 16:38:47 JakeWharton: im having audio recording issues, can you fix them? ill buy you a beer May 07 16:38:59 yes, http://apple.com/iphone May 07 16:39:01 fixed May 07 16:39:22 :| May 07 16:39:29 what apis May 07 16:39:37 mikedg: if i insert edittext inside linear layout background would be outside bounds :P May 07 16:40:19 can you draw what you are trying to do May 07 16:41:25 http://www.theregister.co.uk/2012/05/06/screw_caused_iphone_fire/ May 07 16:41:27 "... a crew member noticed smoke coming from near a passenger seat. This turned out to be an overheating iPhone, which was also glowing red." May 07 16:43:08 really May 07 16:43:11 I have this line May 07 16:43:24 transient public Deque viewLeafObserver = new ArrayDeque(); May 07 16:43:35 and it's serialized when added to the bundle May 07 16:43:53 what are you talking about May 07 16:43:55 is it a bug of Android or I am wrong in something ? May 07 16:44:01 transient is only used in conjunction with Serializable May 07 16:44:18 pfn I have a Serializable class that has that field May 07 16:44:29 and what behavior are you seeing exactly May 07 16:44:42 and are you certain that it is serializing that field like you think May 07 16:44:48 each time I restore the activity I add an element May 07 16:45:02 Log.e(TAG,"--->" + ((SensorGraph) savedInstanceState May 07 16:45:02 .getSerializable("sensorGraph")).viewLeafObserver.size()); May 07 16:45:16 each time I change the orientation of the device it more 1 May 07 16:45:21 1,2,3,4,5,6 May 07 16:45:29 it seems to be serialized May 07 16:45:36 I am sure of it May 07 16:45:44 but it's a bug May 07 16:45:48 big bug May 07 16:45:57 yeah, "I don't know what I'm doing" is a bug May 07 16:46:07 lol May 07 16:46:18 Pragma, :( May 07 16:46:29 why ? I think I am doing it well May 07 16:46:29 But yeah, android is such a pain in the ass to work with. May 07 16:47:14 Pragma, do you see something wrong in what I am doing ? May 07 16:47:40 because you may be getting the same instance of the object back May 07 16:48:02 e.g. System.identityHashCode(b.getSerializable("sensorGraph")) May 07 16:48:09 mikedg: something like that http://tinypic.com/r/346qm2a/6 May 07 16:48:10 print that out, and notice that it hasn't changed May 07 16:48:12 why are you using Serializable and not Parcelable? May 07 16:48:23 pfn oh shit May 07 16:48:37 but so ... transient doesn't work May 07 16:48:45 it has nothing to do with "doesn't work" May 07 16:48:57 but you're getting the same instance of the object back because it didn't really need serialization May 07 16:49:15 I see May 07 16:49:42 good evening May 07 16:49:43 wongk, why use serializable rather than parcelable? because it's easier, of course May 07 16:50:06 i heard, but have not tested this May 07 16:50:08 and everything i've read says it's significantly slower May 07 16:50:10 wongk, yes : it's easily May 07 16:50:11 that serializable is not as performant May 07 16:50:22 on android, anyway. May 07 16:50:46 hello. i "need" to have a TextView display the character '?'. i tryed using xml-escaped ? but it doesnt work (Error: Resource id cannot be an empty string (at 'text' with value '?'). every other characted seem to work...any workaround ? May 07 16:50:48 depends on what you're doing, the performance hit may not matter May 07 16:50:51 pfn, anyway it'a bug May 07 16:51:23 I mean if I pass throw the bundle ... it has to "reset" the transient fields May 07 16:52:03 I don't care if I have the same instance ... but I want something that "simulate" deserialization May 07 16:52:05 no, it doesn't May 07 16:52:13 but it has to May 07 16:52:15 it's a bug in your code May 07 16:52:20 for assume that it *will* be serialized May 07 16:52:26 s/assume/assuming May 07 16:52:41 pfn I think you are right May 07 16:53:03 I'm using serialization in wrong way May 07 16:55:06 pfn suggestion on how fix that ? May 07 16:55:29 there's lots of ways, one would be to clear the list after you retrieve it from the bundle May 07 16:55:41 seems rather obvious May 07 16:55:56 yes ... but it's not elegant May 07 16:56:15 your serialization isn't elegant to begin with May 07 16:56:39 pfn why ? May 07 16:56:50 I have to store a graph May 07 16:56:53 mikedg: found something http://blog.vimviv.com/android/edittext-android/ May 07 16:57:19 Hi just started Android dev, read the docs. First thing my app needs is to show a list of contacts which have sms messages stored. I cant find anything about reading from sms data in the API. Am I missing something? May 07 16:57:29 aLeSD, use a parcelable like the platform recommends May 07 16:58:01 pfn I will ... but it will not resolve my issue May 07 16:58:28 sure it will May 07 16:58:36 pfn ahh May 07 16:58:40 you write your parcelable to clear out the flag when unparceling May 07 16:58:46 s/flag/data May 07 16:59:00 assuming that it doesn't follow the same lazy serialization approach May 07 16:59:07 ahhhhh ... I see the point . Thanks May 07 16:59:44 david028: it's not in the api May 07 17:00:33 aqu: ooo fancy May 07 17:01:22 I can get a list of contacts with phone numbers very easily. How do I get them with sms? May 07 17:02:02 david028: read the content provider dev guide May 07 17:03:15 there are only unsupported ways of quering the device's existing sms messages. May 07 17:03:23 but to get contacts, is supported. May 07 17:05:53 that seems very strange to me. I though android apps all had the same privilages etc May 07 17:05:58 And therefore id be able to do something simple like returning a list of contacts that the user contacts often via sms May 07 17:06:01 yet you can do the same for email or phone numbers easily. May 07 17:06:24 it's because OEMs have the ability to change the SMS stuff May 07 17:06:46 you can write a fairly reliable SMS app, but you have to receive all the SMS and save them yourself. May 07 17:06:54 and that, is not documented either. May 07 17:07:56 some devices you can get the sms using a content provider but it's kind of a waste of time because it's prone to break May 07 17:10:10 I have another question : the fragment stack is preserved on changing orientation. Ex. I have a fragment above another . If I change orientation I have the same stuff . How to reset the fragment stack ? May 07 17:14:10 is there a mobile phone whose complete hardware documentation is openly accessible (enough to write a custom OS)? May 07 17:20:44 readme: thanks it seems like most people are using the content provider content://sms/inbox but Google have warned not to because its not fully supported. I dont see any alternatives though. May 07 17:20:45 Boscop: openmoko probably May 07 17:20:58 Or what's it called May 07 17:21:02 Neo Freerunner or something? May 07 17:21:09 is there an efficient way to compare 2 pictures if they are the same or not for motion detection purposes? May 07 17:21:11 question you can call intents from within a class and dont need permissions ? May 07 17:21:42 Intent callIntent = new Intent(Intent.ACTION_CALL); May 07 17:21:48 xemi, exactly the same? May 07 17:22:20 Boscop: I need to see if the pixels/content is different to determine if there is motion May 07 17:22:39 are there function similar to setError but with positive outcome ? May 07 17:22:43 xemi, but for that you first have to make sure they display the same object May 07 17:23:05 Boscop: and how am I supposed to do that? May 07 17:23:29 xemi, object recognition, feature extraction May 07 17:23:30 basically I don't need to see if they are EXACTLY the same just that they're kinda different May 07 17:23:44 nothing revolutionary May 07 17:24:08 you can calculate the vectors where each 'pixel' moved May 07 17:24:16 there is much research done on that May 07 17:24:25 Boscop: so you'd say a simple image comparisson isn't enough? May 07 17:24:38 depends on how complex the image is May 07 17:24:41 I mean I'll get detection on every step that way? May 07 17:24:54 you can get exact deformation info May 07 17:27:57 xemi, e.g. google markerless motion capture May 07 17:28:08 http://www.mpi-inf.mpg.de/~theobalt/multitrack_cvpr11.pdf May 07 17:29:06 * aLeSD is Android harder than C++11 ? May 07 17:30:35 that question doesn't have an answer May 07 17:31:41 on so many levels! May 07 17:33:26 aLeSD, 1. apples & oranges 2. difficulty is subjective 3. depends on the goal 4. why do you even ask? if you don't want to learn anything? May 07 17:34:05 :) May 07 17:34:27 smiling doesn't help and is not an answer May 07 17:34:34 :) May 07 17:35:44 how can my app check a MySQL-Server if there is new data? May 07 17:36:09 aLeSD: also there is an ndk May 07 17:36:19 I wonder how long it takes until C++11 can be used for android dev May 07 17:36:31 a have a news-script on my website and my app loads this data - but i want my app to give me a notification if there is a new news May 07 17:37:21 vorwaerts: you would need to make a request May 07 17:37:45 to the server to verify that the app is up to date or news in the app May 07 17:37:45 the closest to C++11 support on android is probably this: http://www.crystax.net/en/android/ndk/7 May 07 17:38:41 dominicdinada but then i neet all the data to be safed on my phone to compare? May 07 17:39:13 vorwaerts: this sounds like RSS May 07 17:45:09 fucking photon doesnt want to record via mediarecorder when a headset is connected May 07 17:48:55 utter newbie here, I am having trouble replicating the "google search app" layout? Am i correct in thinking it is nothing more than a listview (with added java code to handle the voice-to-text, search bar, autocomplete (filtering) and animations)? May 07 18:29:18 any of you guys own a photon? May 07 18:29:57 uhm May 07 18:30:01 a what? May 07 18:30:09 a motorola photon May 07 18:30:21 I mean no May 07 18:31:45 haha :D since photons are indiscernable noone could tell whether it's mine or yours.. May 07 18:32:42 i'd like to take this opportunity to say: thank you motorola, for bringing that timeless late 90s look to android May 07 18:45:25 whats the command that tells you how much CPU each process is using? May 07 18:45:31 ... in "adb shell" May 07 18:48:19 gridbag: ps May 07 18:49:20 oh "top" has the CPU% in there. May 07 18:54:00 Is-it possible for an activity to know which activity launched it? May 07 18:54:33 JulienDev: an intent extra May 07 18:55:09 Quick question, whats the biggest improvements from ABS 3.2 to 4.0? May 07 18:55:35 Every ActionBar change in ICS May 07 18:55:53 So its up to date with ICS but offers backwards compatibility? May 07 18:56:02 Instead of the honeycomb action bar compatibility? May 07 18:56:26 yes May 07 18:57:04 Awesome!, that was a huge feature I actually needed May 07 18:57:31 wongk: Can you be more accurate please? May 07 18:57:49 JulienDev: do you feel my answer was inaccurate? May 07 18:57:56 or perhaps you mean more precise :P May 07 18:58:13 I have a quick question also, say I want users to login to my app from a MYSQL database, how can I store a "session" so that users can select to be logged out when the app closes or automatically be logged in when your start the app? May 07 18:58:30 Just store their password hashed in a local database? May 07 18:59:59 wongk: Yes, maybe more precise :d May 07 19:00:17 JulienDev: http://developer.android.com/reference/android/content/Intent.html#getExtras() May 07 19:00:46 wongk: Do I have to pass an intent extra? It's not possible to get it form the getIntent()? May 07 19:00:59 Snwspeckle, I made a document to try and be an idiot proof guide to getting started with abs 4.0. Instructions are all there, but only the first part has images. Feel free to add comments. https://docs.google.com/document/d/1g1RuUri3tBKmUx5Rpj74p1sn8AXEVr68-DRjYdtXAKw/edit May 07 19:01:09 Is it possible to store data "privately" (i.e. data that only my app can access)? May 07 19:01:28 JulienDev: i don't believe so, that would be a less clean way to go about it May 07 19:01:47 Thanks jeppy, I was using ABS 3.2 but I halted the app because I needed a stable release of ABS 4.0 to continue on but I plan to use this reference, thanks! May 07 19:02:01 wongk: Yes, good idea. Thank you May 07 19:02:13 xarxer: yes May 07 19:02:31 evancharlton: Can this be done with shared preferences? May 07 19:02:46 xarxer: sure May 07 19:02:57 xarxer: Context#getDir(..) May 07 19:03:06 evancharlton: So App-A cannot open App-B's shared preferences? May 07 19:03:11 correct May 07 19:03:22 Great, thanks :) May 07 19:08:04 If the file does not exist, will getSharedPreferences(filename, 0); create it? May 07 19:09:36 wongk: We can't put an Activity as an extra May 07 19:09:49 certainly not May 07 19:10:14 what information does your activity need? May 07 19:11:26 My activity needs to restart previous activity. Both are singleInstance activities May 07 19:12:59 descrie the flow from one activity to the next and back again May 07 19:13:06 describe May 07 19:15:09 http://devopsangle.com/2012/05/07/dell-announces-a-linux-laptop-designed-for-developers/ May 07 19:15:34 wongk: In fact I have three activities. 1st and 2nd can launch the 3rd. The 3rd must start the previous. All of them are in singleInstance mode. May 07 19:15:50 utter newbie here, I am having trouble replicating the "google search app" layout? Am i correct in thinking it is nothing more than a listview (with added java code to handle the voice-to-text, search bar, autocomplete (filtering) and animations)? May 07 19:15:55 http://www.fiercedeveloper.com/story/its-time-treat-mobile-device-prime-screen/2012-05-04 May 07 19:16:55 JulienDev: sounds like you should pass a numeric identifier as an extra, and based on that id, start the activity as you normally would using an Intent May 07 19:16:56 Can anyone suggest a good starting point for someone just getting into porting roms or is this the wrong place for that? May 07 19:17:33 BumpyClock: #android-root May 07 19:17:36 wongk: Yes, I think it's the best way ;) Thank you May 07 19:20:30 wongk: thanks :) May 07 19:22:37 http://mashable.com/2012/05/07/facebook-like-fired/ May 07 19:23:29 I am trying to move file from /sdcard to /system/bin and getting "cross device link" error. the /system is remounted rw and I am root. any ideas what's wrong ? May 07 19:23:29 is it possible to use the navbar menu button without setting the minsdkversion to 13? May 07 19:23:34 the file is a wpa_supplicant May 07 19:26:37 nebkat: are you referring to the action bar? May 07 19:27:10 wongk: the software navbar on nexus May 07 19:32:21 what version of android do you need to target to use ABS 4.0 May 07 19:32:57 Snwspeckle 7 (2.1) May 07 19:33:08 Ok thanks May 07 19:33:25 I thought it was 2.2? May 07 19:33:41 >=api14 May 07 19:33:48 got yea May 07 19:33:52 Or well, build against rather May 07 19:34:03 "target" May 07 19:34:46 You can target whatever you want May 07 19:34:59 you need to target api-14+ May 07 19:35:06 target = build against for all intents and purposes May 07 19:35:07 as long as it's >= 14 ;) May 07 19:35:10 I gotta remove android sdk and eclipse, they both are corrupt :( May 07 19:35:13 in android sdk terminology May 07 19:35:18 is it possible to use the navbar menu button without setting the minsdkversion to 13? May 07 19:35:22 pfn: False! May 07 19:35:53 setting your target also specifies which android.jar to use for the bootclasspath May 07 19:36:08 if you want to make a hacked up build that doesn't, that's a different matter May 07 19:36:27 of course, manifest xml target vs. sdk target is a different matter May 07 19:36:37 you can specify whatever you want as your manifest target May 07 19:37:21 does anyone know how to produce a localized timestamp for display like '0:00:00 am May 5'. i'm familiar with SimpleDatFormat of course. I'm actually wondering why DateUtils.formatDateTime() and android.text.format.DateFormat.getTimeFormat dont include seconds … gaaah May 07 19:37:21 Is ABS 4.0 quicker than 3.2? Like smoother? May 07 19:38:04 the provided utility thingies take into account user preference for 12/24 hour, etc May 07 19:41:20 to make things even worse, DateUtils.formatDateRange is controlled by flags, so if you use this, its pretty hard staying consistent with it when using SimpleDateFormat or whatever, that would need localization through the usual means in res/strings May 07 19:41:27 who thought of this shit May 07 19:43:55 g00s: http://developer.android.com/reference/java/text/SimpleDateFormat.html May 07 19:44:06 oh, missed a bit of what you said May 07 19:44:11 :) May 07 19:45:52 need to use DateFormat.Long flag... to get seconds... *shrugs* May 07 19:46:03 nah May 07 19:48:10 Should I build the ABS library as 2.2 or does it not matter? May 07 19:48:24 you need to build it as 4.0+ May 07 19:48:34 4.0.3 will work then? May 07 19:48:38 makes sense ;P May 07 19:48:40 fail lol May 07 19:48:47 is 4.0.3 the same as 4.0+? May 07 19:50:43 Just newer May 07 19:51:10 The target defined in project.properties, what exactly does that influence? (minSdk=8, targetSdk=10, target in project.properties=8) May 07 19:51:17 things are a little more dramatic with this court case than i expected. it isn't going to be such an easy win after all. May 07 19:51:26 kakazza: build target May 07 19:51:50 Yeah, but what is the recommended value for that target? minSdk? May 07 19:52:18 Weird, the com_actionbarsherlock library is giving me a ton of superclass method errors May 07 19:52:23 Recommended value for targetsdk? 14 or above May 07 19:52:23 g00s: why don't you entertain and enlighten us with your expert opinion? May 07 19:52:39 Set it to the highest version you test on May 07 19:52:52 Our test device is 2.3.5 May 07 19:53:04 kakazza, recommended target is the one that will make your app build May 07 19:53:06 Snwspeckle, is it referring to override? May 07 19:53:12 oh wait, what JDK do I need to build ABS for? May 07 19:53:23 6 May 07 19:53:26 i.e. 1.6 May 07 19:53:31 support 1.7 or no? May 07 19:53:36 pfn: Well... anything >=8 May 07 19:53:37 no May 07 19:53:47 darn, that was it :P May 07 19:54:12 you can download the jdk7, but in eclipse make sure it is built against 1.6 (like my doc says :) May 07 19:55:05 where can I get the ABS supportlib jar that is needed? And changing it to build with 1.6 fixed my problem jeppy May 07 19:55:31 use the support lib in the sdk May 07 19:55:45 abs comes with the support lib May 07 19:56:08 just add a library project ref to your project.properties and it's there May 07 19:56:22 yes, abs comes with it. For your project you need to add it, correct? May 07 19:56:36 I'm not sure I understood the difference between AndroidManifest.xml targetSdk and project.properties build-target. Can someone try to elaborate? May 07 19:56:41 I added the library but its not locating the jar for it? May 07 19:57:43 I have another question, do we build our actual app with 4.0+ also? May 07 19:57:50 Or 2.1/2.2? May 07 19:59:19 kakazza, the manifest target is what api you're mainly targeting (for market/google play use it seems) and the build-target is the android source code you're building against. I usually set both to the highest and set minSdk to whatever the minimum i play on supporting is (often 4, 7, 8, 11) May 07 20:00:01 plan* May 07 20:00:24 I see. But I wonder what the implications are when building against higher API levels. May 07 20:00:39 it will support that api May 07 20:00:40 jeppy, did they change the name of the JAR snapshot for ABS 4.0 because I do not see it when I am trying to add the jar to the library to build May 07 20:01:31 Snwspeckle, in abs 4.0 you can use the stock compatibility jar -- it no longer requires custom ones May 07 20:01:57 so under libs just add android-support-v4.jar? May 07 20:02:20 yeah but it might complain about differing jars May 07 20:02:30 so thats not the correct jar to add? May 07 20:02:34 jeppy: Well, it also does support 14+ when I build against 8. May 07 20:02:58 It works no matter what I set it to, probably. But the things that changed under the hood would be interesting. May 07 20:03:10 is it possible to use the navbar menu button without setting the minsdkversion to 13? May 07 20:03:13 kakazza, i'm not sure May 07 20:04:24 Snwspeckle, use the most to date support jar May 07 20:04:25 Was the method for onCreateOptionsMenu changed in ABS 4.0 changed because its throwing me errors? May 07 20:04:53 i dunno May 07 20:05:19 Says it needs to override a supertype method, weird May 07 20:06:35 Snwspeckle: do you have compiler compliance at 1.6 ? May 07 20:06:58 Correct, it looks like some @override methods were changed in ABS 4.0 from 3.2 May 07 20:07:45 Snwspeckle, http://actionbarsherlock.com/migration.html May 07 20:08:21 fix your imports May 07 20:08:30 import com.actionbarsherlock.view.MenuItem May 07 20:09:03 Alrighty being done Jake May 07 20:09:08 I saw a bug while looking at the abs website May 07 20:09:14 I fixed the errors by removing @overrides May 07 20:09:18 no May 07 20:09:32 that is worng May 07 20:09:38 wrong, also May 07 20:09:51 if you have to remove @Override you have other problems May 07 20:10:04 Reakky> May 07 20:10:08 Really*? May 07 20:10:12 he has 99 problems, but @override ain't a one anymore May 07 20:10:35 haha May 07 20:11:05 you are still overriding methods from the ABS base classes May 07 20:11:16 the @Override guarantees that you are overriding the correct ones May 07 20:11:37 the likely cause of @Override error in your activity is using the wrong types (which usually results from bad imports) May 07 20:11:42 JakeWharton, good evening :) May 07 20:11:50 good mid-day May 07 20:11:58 oh i see, where are you from ? May 07 20:12:14 Well my app was built correctly May 07 20:12:16 San Francisco is currently where I rest my head at night May 07 20:12:48 well May 07 20:12:49 right :), wee emailed last light , <- matthias ;) May 07 20:13:00 there can be issues around @Override if you're going from Java6 to Java5 May 07 20:13:11 because prior to Java6 you could not @Override an interface method May 07 20:13:28 also true, but pragma- covered that with setting the compliance May 07 20:13:29 or so i though May 07 20:13:31 t May 07 20:13:45 JakeWharton: no, the compiler switches for java5 mode didn't work all the way May 07 20:13:57 believe me, we said a lot of four letter words over the years about that May 07 20:14:03 oh, gotcha May 07 20:14:05 haha May 07 20:14:16 until we could finally make the jump to java6 proper, in ... i want to say the froyo time frame but i don't properly remember May 07 20:14:22 Anyone know if Google is going to fix their emulator so it doesn't lag so badly in future updates? May 07 20:14:32 I think it was api 8 -> 9 that made the jump May 07 20:14:36 Snwspeckle: try the intel one May 07 20:14:44 Intel one? May 07 20:14:54 you should see it in the sdk manager. May 07 20:14:54 Snwspeckle: try running on an ARM machine May 07 20:14:58 haha May 07 20:15:09 is there anyway to stop AAPT stop stripping underscore filenames? any hack or workaround will do if it enables me to build a phonegap app in the meantime before shitey dojo provides enough docs on their build system May 07 20:15:16 * Snwspeckle is confused :P May 07 20:15:32 stripping what underscore names May 07 20:15:45 Snwspeckle: http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/ May 07 20:15:49 every filename prepended with an underscore May 07 20:16:02 rebuild aapt probably May 07 20:16:03 * pfn shrugs May 07 20:16:07 it seems to be a long term bug that no one has ever addressed May 07 20:16:19 cool thanks May 07 20:17:36 I instaalled the HAX thing but I can no longer emulator, crash everytime.. May 07 20:17:44 omg hax May 07 20:18:38 I once emulatored so hard, it killed a man. May 07 20:19:31 you people are making me laugh out loud and get some funny looks from coworkers May 07 20:20:14 JakeWharton: bunch of squares. May 07 20:20:37 Snwspeckle: also try turning on hw accelerated drawing etc in your AVD May 07 20:21:06 cf http://android-developers.blogspot.com/2012/04/faster-emulator-with-better-hardware.html May 07 20:21:43 * Chainfire has highlights on "cf" May 07 20:21:54 turn off that highlight :p May 07 20:22:50 "We’re working on providing emulator support for more hardware features including Bluetooth and NFC." May 07 20:22:58 I've been wanting to set up highlights using an index of the class names in the android sdk, so I can come when we're actually on topic. May 07 20:22:58 would be nice to know the timeframe :) May 07 20:23:17 http://code.google.com/p/android/issues/detail?id=5343 feedback on this is damning of android May 07 20:27:19 lbod: so patch it in AOSP May 07 20:28:04 lbod: lack of customer support on google's part provides a great opportunity for you to be a hero May 07 20:28:14 we need more heroes ! May 07 20:28:21 like the avengers club for android May 07 20:28:35 squashing bugs and patching aosp like nobody's business May 07 20:29:40 with regard to some bugs, the amount of time people invest in bitching about it is significantly more than learning repo/Gerrit and patching it yourself May 07 20:29:49 lbod, it's mostly because of windows May 07 20:29:58 some windows tools often create _files as temp files May 07 20:30:01 e.g. vim on windows May 07 20:30:04 rather than .files May 07 20:30:38 vim on windows is hardly a windows tool May 07 20:31:01 it's a tool on windows May 07 20:31:03 g00s: and jakeWharton: I would if i had the time to investigate all the tooling but AAPT is only a small part of the job im trying to do, this bug seems a minor bug but had drastic consequences May 07 20:31:54 if dojo themselves provided even half decent docs on their new build system i wouldnt be asking as id be able to intern all the JS into a single file, but they dont May 07 20:32:46 Chainfire, vim just comes to mind, I think there are others, but can't think of any May 07 20:33:09 if you could point me in the direction of the code ill have a look and if possible patch locally to start with but WTF would AAPT strip underscore filenames anyway? May 07 20:33:14 This might not be the place, but I'm using pythons Twisted as a server when handling communication from android, and when I write to a sockets dataoutputstream like writeUTF("Hello there"); it seems to append som bogus data since the server gets a newline, and lots of spaces.. ideas on that? May 07 20:33:17 lbod: ----> May 07 20:33:28 lbod, that issue you linked had the pointer to what you want to change May 07 20:33:35 ahha May 07 20:33:50 lbod: Sorry that wasn't directed to your specifically, just a general complaint. I have no idea what the scope of your bug is. May 07 20:33:55 Also seems like a design choice, since they actively ignore them May 07 20:34:10 I'm sorry it wasn't directed to his, as well. May 07 20:34:10 yeh, mac and linux only with some prerequisites May 07 20:34:14 git blame May 07 20:34:20 and you can see why that choice was made May 07 20:34:29 fyi, jarsigner from java 1.7 does not work with android apks May 07 20:35:08 ah May 07 20:35:11 probably because of OSX May 07 20:35:13 more than windows May 07 20:35:18 for those stupid ass __MACOSX directories May 07 20:35:20 or whatever May 07 20:35:35 don't forget .DS_Store May 07 20:35:39 FFUUUUUUU May 07 20:35:41 What would be the best way to go about sending a picture and a news story. I am creating an app where field reporters can take pictures and add a story and submit it kind of like CNN's iReport May 07 20:35:53 drdreed: HTTP POST May 07 20:36:30 is it possible to use the navbar menu button without setting the minsdkversion to 13? May 07 20:36:33 So post it to a web server? May 07 20:37:15 g00s: and jakeWharton: sorry for the rant, ive been on this for a week now at work and from home, im blaming dojo but theyre blaming android May 07 20:38:12 well, partly it's because of aapt for making the assumption that anything starts with _ is internal/hidden May 07 20:38:24 rebuild aapt without the _ filtering May 07 20:39:03 pfn: thats a huge assumption to make though May 07 20:39:05 drdreed: how else are you imagining this would work? May 07 20:39:16 nebkat: no May 07 20:39:42 * g00s hates .DS_Store stuff, how stupid May 07 20:39:50 evancharlton: plz May 07 20:39:55 g00s: .gitignore May 07 20:40:03 evancharlton: its launcher, where else should I put it? :P May 07 20:40:08 drdreed: just base64 encode the image. multi-part posts are painful. May 07 20:40:09 aqu: yeah, that works for git :) May 07 20:40:23 lbod, kind of, without being overly specific on what files to ignore May 07 20:40:25 i mean in a more general sense May 07 20:40:26 nebkat: somewhere else ;) May 07 20:40:52 g00s: thats what you get for pretty alligned icons in dir view ;) May 07 20:41:02 Haha that's why I came here the only thing I could come up with was attaching the image to an email and sending it that way but I like the Web server approach better May 07 20:41:54 pfn: at one point i thought i could just zip the apk with the underscore files included, which obviously didnt work. it must cost years in lost man hours May 07 20:41:56 Okay, it seems when I try to write a string to a socket, for example "Hello", the server receives it as "\x00\x0cHello".. May 07 20:42:01 Why would it be so? May 07 20:46:03 No one? May 07 20:46:32 I guess I'll need to look up a tutorial on posting to a web server then May 07 20:48:56 xarxer: isnt it like STRING ? but send as utf8 ? May 07 20:49:21 if you serialize string it might be like that May 07 20:49:38 xarxer: that looks like a unicode string May 07 20:50:24 lbod: oh, hmm... May 07 20:50:29 s/utf8/utf16 May 07 20:51:25 wtf8! \o/ May 07 20:52:33 Ge0rG: it's easy to amuse you May 07 20:53:01 xarxer: are you using DataOutputStream or something like that? May 07 20:53:09 hrnt: Yes May 07 20:53:13 don't do that May 07 20:53:16 :P May 07 20:53:27 hrnt: What should I do then? May 07 20:53:28 unless your server expects that as well May 07 20:53:28 xarxer: its serializing string causing this result May 07 20:53:48 DataOutputStream converts your stream to "modified UTF-8" IIRC and prefixes the length to it May 07 20:53:58 it is useful if you are planning on reading it back with a DataInputStream May 07 20:54:09 converts your string to "modified UTF-8", that is May 07 20:54:13 been a while since ive done java but dont you need to set the encoding? May 07 20:54:14 aqu: positive feelings prolong your life, you should try it out as well May 07 20:54:14 aha.. Thought I was getting odd numbers of bytes received May 07 20:54:34 hrnt: How do you suggest I send data to the server then? May 07 20:54:41 what does the server expect? just the string? May 07 20:54:54 hrnt: A string followed by '\n' May 07 20:55:07 ,oO( you can make any odd number even again with a simple mathematical operation ) May 07 20:55:12 ok. and you have a DataOutputStream, right? May 07 20:55:18 Ge0rG: +1? May 07 20:55:33 hrnt: Yes May 07 20:55:38 n*2 May 07 20:56:05 xarxer: among others, yes May 07 20:56:05 String str = str + "\n"; byte[] arr = str.getBytes("UTF-8"); os.write(arr, 0, arr.length); something like that May 07 20:56:09 there is probably a better way to do that May 07 20:56:13 J2ME has corrupted me :( May 07 20:56:18 or n - 1 May 07 20:56:30 yes, zero is even. I just looked it up. May 07 20:56:41 Or -3! May 07 20:56:45 hrnt: Thanks.. I'll try that in a bit.. Really, thanks a bunch! May 07 20:56:58 SimonVT: -e sounds better May 07 20:57:23 http://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Scale_of_justice_2.svg/204px-Scale_of_justice_2.svg.png May 07 20:57:24 android is a better java platform than j2me May 07 20:57:26 it's so sad... May 07 20:57:29 right, so ill need to use a patched version of android utils to do this which specifically say 'They are provided "as is"'. Oh well May 07 20:57:31 zero objects, divided into two equal groups. May 07 20:57:55 e is not 3 ;/ May 07 20:57:56 lbod, just patch it if that's what you're really after... submit the patch if you want May 07 20:58:15 pfn: j2me is horrible May 07 20:58:19 pfn: are you referring to the outcome of the trial? May 07 20:58:20 evancharlton, it is May 07 20:58:24 i'm just checking it now May 07 20:58:28 pfn: it's actually patched in that link, just that it doesnt seem to be supported? May 07 20:58:35 readme, no, just someone's prior statement May 07 20:58:48 lbod, no, someone /wrote/ a patch, it's not applied May 07 20:58:49 pfn: the jury says google infringed, but is arguing over damages May 07 20:58:58 I hate copyright law May 07 20:59:05 no, they infringed, assuming that apis are copyrightable May 07 20:59:08 it kills progress & innovation May 07 20:59:10 that's done, and means nothing May 07 20:59:14 pfn: ah really! what does it take for me to submit a patch? have you a link? May 07 20:59:19 the jury is hung on whether it counts as fair use May 07 20:59:23 lbod, review.android.com May 07 20:59:24 pfn: i know that is for the judge to decide, right May 07 20:59:38 readme, also keep in mind that other courts have ruled that apis are /not/ copyrightable May 07 20:59:54 so, the jury's guilty verdict is just a matter of academics May 07 21:00:07 imho a jury of laymen isn't qualified to decide May 07 21:00:14 but hey, it's america May 07 21:00:21 readme, well, the jury is hung on fair use May 07 21:00:31 in any case, it all comes down to the judge, really May 07 21:00:35 only one guy on the jury uses android May 07 21:00:44 the jury is only advisory and for a matter of fact May 07 21:01:10 I don't know, I read this thing on groklaw and they had some questions to answer that seemed pretty heavy. I think they do have a say in some parts of the outcome May 07 21:01:20 basically, the guilty verdict is moot May 07 21:01:22 i'll see if I can find it May 07 21:01:44 so we're all going to start programming android in c# now, right ? May 07 21:01:48 :) May 07 21:01:49 Using ExpandableListView to create sidepanel menu with each heading having the same 3 children, I seem to be messing something up as the children are repeated twice after first expand, maybe in my implementations of the onGroupClickListener, onChildClickListener or onGroupExpandListener, redesigned thinking cuom adapter was issue still no luck :S May 07 21:01:54 it's much more enjoyable than java :p May 07 21:02:06 well, it is. May 07 21:02:16 http://pastebin.com/AGFUyuUG - anyone any ideas ? May 07 21:02:34 android needs node :D did i hear its failry easy to install anyway? May 07 21:02:40 node.js? May 07 21:02:41 yuck May 07 21:02:44 haha May 07 21:02:54 lbod, if you want javascript on-device, you can either hack webview, or use rhino May 07 21:03:03 i use webviews May 07 21:03:06 Node.js is just V8 javascript with some libraries on top May 07 21:03:23 i know but its actually damn good May 07 21:03:38 looks like there are people using V8 on android without webview? not sure May 07 21:03:38 it's ok May 07 21:03:40 http://stackoverflow.com/questions/6880778/android-utilize-v8-without-webview May 07 21:03:50 this is coming from an old java developer.. most of my work is web/js now May 07 21:03:52 there was a time when any story involving node.js got instant upcoting on hn and such May 07 21:04:00 *upvoting May 07 21:04:08 we're still there, I think. May 07 21:04:33 although my comment on a JS implementation of the JVM that I'd like to see android run on javascript got downvoted ;P May 07 21:05:45 so i fret details; and i'm still having a hard time figuring out how to nicely format timestamps like yyyymmddThhmmss based on user preferences and locale for things like 12/24 hours. May 07 21:05:47 Is there a wavefront .obj OpenGL parser in the Android samples directory? someone said they were in there, but I can't find it. May 07 21:05:47 hi -> i'm trying to use Encoding class with ascii 437 but i get UnsupportedEncodingException May 07 21:06:22 g00s: use SimpleDateFormat May 07 21:06:39 g00s: yeah doesn't simpledateformat have locale-specific short and long time and short and long date May 07 21:07:03 parse in with a UTC-configured simpledateformat, get the absolute moment in time, format to some other timezone May 07 21:07:12 well, i guess i would have to do 12/24 hour stuff manually May 07 21:07:24 I am pretty sure SimpleDateFormat can do that for you. May 07 21:07:33 android itself has a huge table of locale specific formats in res/values/strings May 07 21:07:47 oh, nice May 07 21:07:56 but they don't include seconds :( May 07 21:07:58 I also often write MessageFormat.format("{0,date,short} {0,time,short}", someDate) May 07 21:08:15 * g00s looks at messageformat May 07 21:08:32 or was it somehow different for time May 07 21:08:33 hmm May 07 21:09:31 it should generate the AM/PM as the locale wants May 07 21:09:35 see, i would like the timestamp to be 'May 6' or '6 May' or 'am' base on what the users locale and prefs are, SDF is agnostic of this from what i can see May 07 21:09:37 though you can't give Locale for this particular invocation May 07 21:09:59 you have to do something like MessageFormat mf = new MessageFormat(locale); then mf.format() that above May 07 21:10:06 there are android.text.format classes to help with these things, but they all stop short of showing seconds May 07 21:10:23 alankila: ok, i'll look into it. thanks May 07 21:10:26 with seconds it's probably a long time format then May 07 21:11:04 these things are not too carefully specified but I use this shit to generate dates and times in the user's preferred locale anyway May 07 21:11:47 i don't see how this handles 12/24 hour preference May 07 21:11:57 i guess thats up to me then May 07 21:12:01 Although last time I did it, they saw american mm/dd/yy dates and told me the date format is supposed to be dd/mm/yyyy May 07 21:12:03 Has anyone tried those Coby tablets? It's amazing that they are sub-$200 May 07 21:12:17 g00s: it just picks it up from the locale. whatever the locale says it renders May 07 21:12:34 if locale is for 12-hour clock, then you get AM/PM, it's simple as that May 07 21:14:30 are you allowed to rate your own app in the play store? May 07 21:14:35 hrnt: Yep, works now, and the delimiter was supposed to be "\r\n".. thanks! May 07 21:14:38 yes tank-man May 07 21:14:42 YOU can rate it May 07 21:14:49 just dont rate it from >9000 accounts May 07 21:14:55 incase anyones interested the problem I was seeing with ExpandableListView repeating child entries seemed to be related to returning false in the onGroupClickListener, I was only trying to intercept and stop collapsing if it was expanded if it wasn't was returning false and letting adapter expand the view, solution was to always return false and manually call expandGroup when it was relevant May 07 21:15:00 or indeed from > 1 account May 07 21:15:05 yea, i mean from my one legit account May 07 21:15:28 hi May 07 21:15:45 but i feel dirty :) May 07 21:15:50 ctate you missed the free beer May 07 21:15:52 i'm using google.MyLocationOverlay, it's normal that when location is acquired, no point is shown on map ? May 07 21:15:55 JakeWharton drank all the things May 07 21:16:05 xarxer: *standard* EOL for pretty much all network protocols is a \r\n pair May 07 21:16:19 including e.g. HTTP May 07 21:16:31 ctate: Yeah but that wasn't the main problem :3 May 07 21:16:32 JakeWharton did not eat all the things prior to drinking May 07 21:16:56 JakeWharton: that sounds like a tactical error May 07 21:17:49 ctate, it was May 07 21:17:56 although i was not present at the time May 07 21:18:07 i was busy tryingto find something that jake had not drunk May 07 21:19:53 sounds like a frat party May 07 21:20:05 pretty much May 07 21:20:16 I followed the live blogging May 07 21:20:19 Highly entertaining May 07 21:20:22 LOLOL May 07 21:20:25 oh man May 07 21:20:37 ar eyou guys brogrammers :) May 07 21:22:00 beergrammers May 07 21:22:53 is there an intent to take a screenshot? May 07 21:23:09 like android.intent.action.SCREENSHOT ? May 07 21:23:57 publishers / apps http://www.technologyreview.com/business/40319/?p1=BI May 07 21:24:11 there is no API for taking screenshots programmatically May 07 21:24:27 the original argument was these were supposed to enable some super rich experience, guess nobody figured out how to do that well May 07 21:24:34 thanks ctate May 07 21:27:55 there is an unofficial library for it May 07 21:28:01 android-screenshot-library May 07 21:28:25 afaik it doesn't need root on all devices. the project "screenshot ux" uses it May 07 21:28:33 and it has a hell of a lot of installs. May 07 21:28:36 we should probably do what we can to break that. May 07 21:28:41 why May 07 21:28:44 the reason there's no such lib is for security May 07 21:28:48 s/lib/API May 07 21:28:52 ah, yeah May 07 21:29:00 otherwise it's trivial to, say, write a password sniffer May 07 21:29:15 What, why can't I make a service that secretly takes screenshots and submits to a webservice :( May 07 21:29:28 I read a question on SO today, guy's first question ever: "how can I log into Gmail to monitor user email with AccountManager" May 07 21:29:33 Atarii: if you need screenshots at specific intervals, you could make something that sends a notification over adb and triggers a ddms screenshot on the pc. A little hacky, but depends what you need to do. May 07 21:29:42 i brandished the downvote button quickly. May 07 21:30:50 cool idea dragorn May 07 21:31:10 which btw, is what android-screenshot-library does May 07 21:32:00 maybe android just needs a "secure mode" May 07 21:32:15 so it can claw into the space blackberry occupies but still be good for casual users. May 07 21:32:42 s/occupies/occupied ftfy May 07 21:32:52 they don't have any of the enterprise space left? May 07 21:32:57 what are they all using now, iphones? May 07 21:32:59 what would be the alternative? insecure mode? why would I ever choose that? May 07 21:33:00 Does the EventQueue thread (as in EventQueue.invokeLater(...) ) do anything interesting in Android land? What other events does the EQ deal with? May 07 21:33:02 even government is abandoning BB May 07 21:33:22 evancharlton: i dunno, I guess insecure mode wouldn't kill your ability to use cool apps like screenshot ux that lots of people like. May 07 21:33:35 gridbag, android doesn't have EventQueue May 07 21:33:41 gridbag, the closest analog is a Handler May 07 21:33:51 maybe secure mode could implement an ACL for which permissions users are allowed to have when they install an app May 07 21:34:00 so that corporate users don't install malware May 07 21:34:35 pfn: hey, you're right. EventQueue is in awt. no wonder it made no sense. May 07 21:34:56 Handler models EventQueue quite closely May 07 21:36:59 JakeWharton and others: do you know the reason why the Galaxy S2 doesn't use the overflow menu? May 07 21:37:59 does it have a hardware menu button? May 07 21:38:05 I assume it does since it predates ICS May 07 21:39:19 yeah May 07 21:39:29 so, all devices with hardware buttons doesn't show the overflow icon? May 07 21:39:36 incorrect May 07 21:39:43 i think you can customize that in the actionbar May 07 21:40:32 incorrect May 07 21:40:34 You can't May 07 21:40:46 And yeah, if the device has a menu button, no overflow May 07 21:40:54 evancharlton: the S3 also has a hardware menu button May 07 21:40:59 and it has ICS May 07 21:41:16 SimonVT i swear i forced it to show up on my nexus one May 07 21:41:31 canadiancow|work: ABS allows you to force it using the compat implementation May 07 21:41:36 Native ActionBar does not May 07 21:41:37 g00s: so? May 07 21:41:39 oh May 07 21:42:06 g00s: if a device predates ICS, it doesn't have the option to leave off the menu button. If it's in the ICS world, it has the option to. May 07 21:42:18 ok May 07 21:43:46 my droid3 has a menu button and ics :) May 07 21:44:00 evancharlton: that makes sense. started to fear that I had a hard-to-find bug creeping around :) May 07 21:46:20 :( my device is not finding any apps in CATEGORY_APP_MESSAGING May 07 21:46:26 Any ideas? May 07 21:46:47 http://pastie.org/3875700 May 07 21:46:58 How do I get a stacktrace from an app that crashes on a tablet, but not on any of my virtual dev machines May 07 21:47:09 The code is supposed to offer the user the opportunity to share something via sms. May 07 21:47:19 It just stops running on a certain operation.... May 07 21:48:23 * SimonVT public static final String CATEGORY_APP_MESSAGINGUsed with ACTION_MAIN May 07 21:48:37 hm, I found another one. May 07 21:48:41 https://bitbucket.org/qmriis/gps-coordinates/src can I get some comments on that? May 07 21:48:44 SimonVT: yeah, I had no luck with ACTION_MAIN either. May 07 21:48:53 It just oepeend the SMS but not to send or use the extras at all May 07 21:48:57 opened* May 07 21:49:09 seems you can use an sms:// uri with ACTION_VIEW though May 07 21:49:30 Does anyoen have any experience with debugging an app on an actual device? May 07 21:49:58 probably not, because developing with the emulator is so awesome May 07 21:50:21 answer with 25 votes using a magic string "sms_body" http://stackoverflow.com/questions/2372248/launch-sms-application-with-an-intent May 07 21:50:30 anyone know about that, if there is a constnat somewhere I am better off using May 07 21:50:42 readme: I'd check the manifest of the messaging app, see what it listens to May 07 21:50:44 constant* May 07 21:50:51 Then check code of the activity launched, see how it handles it May 07 21:50:55 I don't see where to get any error logs or stacktraces... May 07 21:51:17 Jonathan_Eyre: ..but you are able to see other log messages? May 07 21:51:17 can you flip between setRenderMode(RENDERMODE_WHEN_DIRTY) & setRenderMode(RENDERMODE_CONTINUOUSLY) many times on the same GLSurfaceView ? May 07 21:51:42 hrnt: No. I don't know where to find them... May 07 21:51:50 i think continuously is blowing out my battery. May 07 21:51:50 DDMS and logcat May 07 21:52:05 http://developer.android.com/guide/developing/debugging/ddms.html May 07 21:52:33 Is logcat available on a phone or tablet? Or is that just something available in virtual debugging?? May 07 21:52:49 it's something you should have in your eclipse May 07 21:52:49 alogcat May 07 21:52:51 Jonathan_Eyre: May 07 21:52:55 did you read the article i linked? May 07 21:54:42 and yeah, you can use alogcat or any of the other og viewers, but surely it makes more sense to use DDMS May 07 21:55:26 hrnt: Yes, it talks about getting ddms to work with eclipse. I don't think that is how to see what makes the production app fail on a real device. May 07 21:55:39 It doesn't fail at all when running in debug mode. May 07 21:56:08 hm, DateFormat.getDateTimeInstance() doesn't consult the 1/24 hour preference - guess i expected that May 07 21:56:14 But when I box up the app, download it on a tablet, and run it, it blows up. May 07 21:56:15 *12/24 May 07 21:56:38 Jonathan_Eyre: you don't need to debug the app to see the logs May 07 21:57:09 Do the logs get printed to a place that is readable by the OS? Or do I need to connect the device to a PC? May 07 21:57:47 yes, they are printed to a place where they are readable by the OS May 07 21:58:30 you can view those logs either with a log viewer app, like alogcat, or you can view them with DDMS's logcat May 07 21:59:27 or you can use ADB's logcat, or you can access the logs programmatically in your own app (with proper permissions) May 07 22:03:36 so android.text.format.DateFormat is the answer to the date / time formatting issue ... May 07 22:03:45 uh, but it doesnt take a f'ing timezone ! May 07 22:05:47 why should it?> May 07 22:05:56 dateformat gives you a dateformat object, set the timezone on that May 07 22:06:51 android.text.date.format.DateFormat.getTimeInstance().setTimeZone(TimeZone.get("EST5EDT")).format(new Date()) May 07 22:08:37 wut May 07 22:09:37 SimonVT: figured it out from reading several different stack overflow answers and combining them May 07 22:09:40 https://github.com/tom-dignan/nifty/blob/master/src/com/tomdignan/nifty/intents/NiftyIntentHelper.java May 07 22:09:44 pfn: .... we must go deeper? May 07 22:09:48 That works as well :p May 07 22:09:57 there needs to be a getDateTimeFormat for one May 07 22:10:18 ctate: please go deeper :) May 07 22:10:29 (with pfn, thx) May 07 22:11:26 wth is android.text.date ? May 07 22:14:54 the api for android.text.format.DateFormat is totally fucked up. getLongDateFormat … getMediumDateFormat … whatever, should have used DateFormat.LONG, MEDIUM … but there are no corresponding medium/long for the time one, and no verion of getDateTimeFormat May 07 22:17:08 g00s, doesn't really matter whether it takes an arg or has the method named explicitly May 07 22:17:15 It looks like the device I had trouble with is getting a NullPointerException because the getHardwareAddress() function is returning a null. May 07 22:18:11 Obviously I need to check the variable against a null, but does anyone have any idea how to force it to get the eth0 hardware address? May 07 22:18:34 Possibly it does not even HAVE an eth0, although that is hard to believe. May 07 22:18:45 NetworkInterface.getHardwareAddress() is *documented* as returning null sometimes May 07 22:19:04 why is it hard to believe that a phone doesnt' have an ethernet port? May 07 22:19:30 ctate: I heard/read that wifi was eth0 on Android. May 07 22:19:49 on all Android phones from all OEMs? May 07 22:19:59 when that aspect of thing is not part of public API? May 07 22:21:22 and even if it is not on data at the moment? May 07 22:21:50 I am comparing the MAC address against my hash to make certain that the HASH only works on the device it was created on. If the device MAC is not always available, that will be problematic. However, if I compare it to the ACTIVE Network, then it will only work if they always use the same network interface, which would SUCK for the customer. May 07 22:22:08 looks like the implementation reads /sys/class/net/[name]/address and parses it for non-zero entries May 07 22:22:55 There has to be a stable way to read a unique device ID. May 07 22:24:00 there isn't May 07 22:24:11 if you want a unique id, generate one on first run May 07 22:24:29 Generate it from what? A timestamp? May 07 22:24:36 Jonathan_Eyre: nope May 07 22:24:48 I beleive the UUID class has a suitable method for generating one May 07 22:24:49 also increasingly it is being made impossible to get hold of unique device IDs May 07 22:24:55 deliberately May 07 22:25:12 cf for example http://www.cultofmac.com/109663/apple-starts-process-to-yank-developer-access-to-uuid-in-ios-5-privacy/ May 07 22:25:16 the time is probably part of how it works, but I'd hope it uses something else. May 07 22:25:23 whats cf ctate May 07 22:25:40 http://en.wikipedia.org/wiki/Cf. May 07 22:25:59 Hi there. Can someone help me to fix framework-res.apk permission errors ? I get a bunch of error like "W/PackageManager( 1365): Unknown permission android.permission.GET_TASKS in package com.android.mms" in my logcat after decompiling/recompiling using apktool. Thank you :) . May 07 22:26:42 How do I lock my app in portrait mode? I know it's in the manifest, I'm wondering how to do it with the eclipse gui tools May 07 22:26:59 qmr: :( just type it in the manifest, ffs. May 07 22:27:14 readme: I'd like to know how to use the gui tools ffs May 07 22:27:19 qmr: fools errand. May 07 22:27:21 good luck May 07 22:27:33 ctate: There's a lot of possible answers on that wiki page you linked. (I'm going with Celtic Frost, a Swiss heavy metal band) May 07 22:27:35 JeanEdouardf: you're requesting a permission string that is not defined by the system May 07 22:27:44 Jonathan_Eyre: ha ha May 07 22:28:00 you didn't include the final . May 07 22:28:03 which is part of the URL May 07 22:28:13 bad URL parser, no biscuit May 07 22:28:24 nevermind, I found it. now I just need to figure out how to align things better May 07 22:28:44 ctate, okay, so I just have to remove every "extra" permission which are not system defined ? May 07 22:29:13 qmr: yeah, just click under "Application Nodes" May 07 22:29:17 I would never have even looked for it May 07 22:29:27 the autocompletion in XML is more than enough May 07 22:29:38 hm, strange; android.permission.GET_TASKS is one of the publicly defined ones May 07 22:29:41 so i do not know what's up with that May 07 22:32:17 ctate, a have thousand of issue like this then. http://paste.ubuntu.com/974623/ May 07 22:32:57 oh, looks like the cause is May 07 22:32:57 W/PackageManager( 1365): Removing dangling permission: android.permission.RECEIVE_BOOT_COMPLETED from package android May 07 22:33:13 i..e the platform no longer seems to define that program, so it's being erased May 07 22:33:25 and then the subsequent "unknown permission..." messages make sense May 07 22:33:34 ctate, I just have to remove it so far ? May 07 22:33:42 did you say you're rebuilding the system somehow? sounds like you're mucking it up in the process. May 07 22:36:37 ctate, yes. I'm debuilding rebuilding every apk (apps and framework) in order to translate and remove config_showNavigationBar . I get the same kind of issue in a port I'm trying to do. May 07 22:37:08 you're breaking the framework apk in the process, clearly May 07 22:38:26 * evancharlton smells a winzipper May 07 22:41:15 forgive my cluelessness.. im thinking of making an app where users can log in and post comments and such on my webserver. Looking at the android side of it, how does that generally work? Do i have a session and use http post and such? May 07 22:42:46 readme: You heard that news, Google will remove support for Java due to copyright infringement, and you have to rewrite your app in C# haha :P May 07 22:43:43 WARNING: GROSS OVERGENERALIZATION AND SENSETIONALIZING May 07 22:43:54 ALSO, MISSPELLINGS May 07 22:44:08 ctate, well, really it's too wreid. RECEIVE_BOOT_COMPLETED is clearly outdated, but thousand of apps in my ROM seem to use it. And when I let the original framework-res.apk, everything works. I missed something, really. May 07 22:44:13 also, i'd rather people not chatter about ongoing lawsuits, y'know? May 07 22:44:25 JeanEdouardf: it is not outdated if people use it :) May 07 22:45:19 ctate: so, maybe i just didn't get enough sleep last night and i'm retarded, but whats the easiest way to get a locale sensitive date format with timestamp, that includes the user's preference for 12/24 hours ? May 07 22:45:37 ugh, java and date/time May 07 22:45:45 DateFormat has default, long, medium, and short specs for date and time May 07 22:45:54 i dont' think i'm sufficiently up to date with my animal sacrifices to be able to get that crap right May 07 22:46:13 hehe May 07 22:46:16 g00s i got whatcha need hold on May 07 22:46:21 * g00s looks around for animals to sacrifice May 07 22:46:49 ctate, well, but if it doesn't work, people will not use it for a long time. No, really, I can't understand how and why does it crashes. May 07 22:47:11 JeanEdouardf: like i said, you're corrupting the framework when you're processing it May 07 22:47:14 so no wonder everything breaks May 07 22:48:15 ctate, yep. My framework-res.apk is not signed. Can that come from here ? May 07 22:48:23 osxorgate: cool. i'm ideally looking for something like DateFormat.getDateTimeInstance(SHORT, MEDIUM) that just does the right thing with 12/24 hour preference set on the phone May 07 22:48:54 hm, it may matter that it isn't signed with the platform cert; i don't know how that stuff is handled during startup May 07 22:49:03 if that's the case then obviously you won't be able to do this May 07 22:49:24 g00s hm not quite sure it's what you want and im sure you already found it but i use getTimeFormat(Context) May 07 22:49:48 osxorgate: oh, ok thanks - yeah saw that May 07 22:49:49 and is24HourFormat May 07 22:50:18 i use it for a TimePickerDialog May 07 22:50:29 ok, thanks May 07 22:56:08 I'm going to bed now. Thanks for help ctate :) . May 07 22:56:49 public static final java.text.DateFormat getLongDateFormat(Context context) {return java.text.DateFormat.getDateInstance(java.text.DateFormat.LONG);} May 07 22:56:51 W T F May 07 22:57:05 lets just take a context for the fuck of it :) May 07 22:57:18 and do absolutely nothing useful May 07 23:01:00 does anyone know the legality around "clones" of games? I have an idea to make a game similar to a particular card game, but change the name of it. The cards in the game will be more or less the same... is this an awful idea? May 07 23:01:26 sounds like an awful idea May 07 23:01:32 lol May 07 23:01:33 ninjai: let me tell you how much legal advice you should get from IRC May 07 23:01:36 ninjai: none. May 07 23:01:40 :( May 07 23:01:50 yeah srsly May 07 23:02:04 evanchalton you do see that by your simple statement hes also telling you to not listen to you? :P May 07 23:02:10 haha May 07 23:02:20 badly circular argument is bad May 07 23:02:28 This statement is false. May 07 23:02:35 tautological statement is tautological May 07 23:02:46 buffer overload May 07 23:02:47 lol May 07 23:03:13 tautological statement about tautological statement being bad is tautological May 07 23:03:28 I am pleased to discover that MAT can be installed stand-alone without a need for an Eclipse installation. May 07 23:03:28 This sentence no verb. May 07 23:03:40 I accidentally the whole sentence. May 07 23:03:54 ctate, lol May 07 23:04:16 ctate: +1 May 07 23:05:12 what's mat May 07 23:05:19 * pragma- stares at pfn May 07 23:05:26 pfn: your apps have memory leaks! May 07 23:05:52 I see, I normally just use jhat May 07 23:05:57 and bulldoze my way through May 07 23:06:37 nice, MAT has the 2 views I /really/ liked from heapanalyzer May 07 23:06:39 I heard jhat wasn't very compatible May 07 23:06:41 (ibm tool from waybackwhen) May 07 23:06:52 dominator tree + path to gc roots > * May 07 23:09:26 pfn: IBM Support Assistant Workbench May 07 23:10:42 i no longer feel comfortable developing anything in java.. really, i dont feel very comfortable developing at all now that the idiot jury has decided that an API is copyrightable.. May 07 23:10:49 what is safe anymore? May 07 23:10:51 no May 07 23:10:56 the jury didn't decide that an api is copyrightable May 07 23:11:04 anyone know how to remove the trailing and leading white space in a gallery widget? May 07 23:11:06 the judge instructed the jury to /assume/ the api is copyrightable May 07 23:11:10 and if so, did google infringe May 07 23:11:18 if java owns toString() then what is safe? May 07 23:11:20 nothing May 07 23:11:24 its not safe to type anymore May 07 23:11:52 pfn: the jury decided May 07 23:11:55 clearly, if an api is copyrightable, google did infringe, but who cares May 07 23:12:02 the jury didn't decide on copyrightability May 07 23:12:06 they decided on infringement May 07 23:12:13 from what i read May 07 23:12:15 google lost the case May 07 23:12:21 not at all May 07 23:12:22 therefore the judge must have decided then May 07 23:12:26 that it is copyrightable May 07 23:12:34 the judge hasn't decided that it is copyrightable May 07 23:12:55 Another newbie question: I'm watching samples code and always when someone needs a control, they are using something like this: "TextView titleManager = (TextView) findViewById(R.id.lblDirectory)", why to not get and cache this object as class field in the constructor? Will it be unsafe? May 07 23:13:02 what i don't understand is , from a comment somewhere "If not even a judge knows if APIs are copyrightable or not, how should Google have known? " May 07 23:13:05 google is winning the case as the jury cannot convict google on violating *fair use* May 07 23:13:22 well im glad they are calling for a mistrial May 07 23:14:03 xa0c: doing so is common, though it's done in onCreate, not the constructor May 07 23:14:10 g00s, an EU court has already ruled that apis cannot be copyrighted May 07 23:14:21 What this country needs is more co-ed bath houses. May 07 23:14:23 so the jury's guilty infringement verdict will be meaningless May 07 23:14:33 yes, the judge asked oracle and google to comment on the EU ruling last week if i recall May 07 23:14:36 I'm trying to use a ViewPager May 07 23:14:52 RustyShackleford, get to the meat of your problem May 07 23:14:53 can I specify nested ListViews in the xml file? May 07 23:15:11 I'm sorta confused about how to use a PagerAdapter May 07 23:15:20 RustyShackleford, you cannot specify viewpager contents in xml May 07 23:15:30 wongk-home: well, onCreate is still better than queryAndCast an object every time you need it. I just wondering: may it be changed in runtime, an that is the reason of such code style. May 07 23:15:30 nested ... listviews? May 07 23:15:37 RustyShackleford, use the fragment pager adapter, look at the sample code supplied in the android-support package May 07 23:16:03 g00s: again, please don't chitchat about the lawsuits here, ok? May 07 23:16:11 k May 07 23:16:22 xa0c: there's no reason to use a class member if you do not need one, minimize scope May 07 23:16:24 i didn't bring it up :| May 07 23:16:28 it was svchost May 07 23:16:33 isn't Fragment for API 11 and up. I'm using API 10 right now May 07 23:16:42 xa0c: if you need to access the control outside of onCreate, then use a class member May 07 23:16:42 RustyShackleford, no, it is not May 07 23:16:58 RustyShackleford, you are using the android compatibility library /already/ for viewpager May 07 23:17:05 that includes an implementation of Fragments May 07 23:17:06 use them May 07 23:17:07 transparent webview = sweet May 07 23:17:19 can overlay all the HTML on my existing background, no sweat May 07 23:17:24 pfn, ah ok. Didn't realize it was included May 07 23:17:37 wongk-home: of cause I'm talking about using control outside of onCreate (onClick/onTouch handlers, etc). Thanks. May 07 23:17:45 are the support library api's exactly the same/ May 07 23:17:52 RustyShackleford, yes, with minor exceptions May 07 23:17:55 Can you put an animation on a view pager? May 07 23:18:02 RustyShackleford, look at the sample demos May 07 23:18:09 RustyShackleford, run them, learn them, love them May 07 23:19:58 I want to display scrollable list inside this ViewPager. FragmentPageAdapter is definitely what I'm looking for? May 07 23:20:03 ... and don't nest ListViews :) May 07 23:20:37 RustyShackleford, yes May 07 23:23:04 anyone know how to remove the trailing and leading white space in a gallery widget? May 07 23:28:04 hello May 07 23:28:11 herro May 07 23:28:29 what gpu should i have if i want to use the android emulator with 3d acceleration? May 07 23:28:39 is the intel atom avd supposed to run faster than the normal ones? i run it on an actual atom processor but it's been booting for 15 minutes now May 07 23:29:11 linuxuz3r emu doesnt do opengl afaik. only emulation of opengl es which is slow May 07 23:29:25 best run on an actual device May 07 23:29:33 ok May 07 23:29:38 thats good to know May 07 23:29:41 thanks May 07 23:30:00 i think it does do opengl es 1.1 but not 2.0 May 07 23:30:05 which is where the fun is May 07 23:34:16 ok May 07 23:41:56 whats a good way to know what cpu type i have in my phone May 07 23:42:39 look at the OEM's spec sheet? May 07 23:42:58 other than that May 07 23:43:10 linuxuz3r: programatically ? May 07 23:43:11 disassemble! May 07 23:43:15 decompile May 07 23:43:15 take a hammer to it May 07 23:43:34 linuxuz3r: https://play.google.com/store/apps/details?id=com.jphilli85.deviceinfo&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qcGhpbGxpODUuZGV2aWNlaW5mbyJd May 07 23:43:44 maybe something like /proc/cpuinfo May 07 23:44:30 no disassemble. May 07 23:45:05 you can try to cat /proc/cpuinfo yeah May 07 23:45:13 pragma-, yeah, I was hoping to get to that May 07 23:45:22 pragma-, but no one gave me a prompt to say that :-/ May 07 23:45:58 holy fuck...im out of date on my tv shows cause i was travelling May 07 23:46:06 but google wallet on the sprint galaxy nexus was featured in fringe ! May 07 23:46:17 it didn't look like google wallet May 07 23:46:23 I don't know what that means May 07 23:46:33 I mean, the sprint branding was obvious, but it didn't look like wallet May 07 23:46:35 canadiancow|work: oh no, now your life is screwed. May 07 23:47:17 huh? May 07 23:47:25 yea pfn i guess May 07 23:47:31 but... it has google wallet right? May 07 23:47:35 wtf is fringe? May 07 23:47:39 all i saw was a sprint GN being held up to a payment terminal May 07 23:48:09 oh, yet another CSI clone May 07 23:48:24 ????????????? May 07 23:48:27 not at all o.O May 07 23:48:31 its more like a modern xfiles May 07 23:49:15 fringe is just another jj abrams gone mad kinda show May 07 23:49:25 xfiles isn't modern :( May 07 23:49:27 CSI is stupid May 07 23:49:30 enhance! May 07 23:49:32 There's no glVertexPointer in GLES20. That's crazy! May 07 23:49:48 wow thats a LOT of product placement May 07 23:49:55 holy balls May 07 23:50:47 I got a chubby while watching Josie and the Pussycats May 07 23:51:21 Er, I shouldn't IRC while taking truth-serum-esque drugs. May 07 23:51:29 pragma-: viagra working good for you ? May 07 23:51:44 viagra + truth serum = ftl May 07 23:54:02 kinda cool http://www.gizmag.com/pv-packing-ipad-cases-logitech-wirelessnrg/22440/ May 07 23:54:19 case charges tablet May 07 23:54:50 was the tablet above to avoid it? May 07 23:54:53 able May 07 23:55:17 it couldn't get out of the way in time, no May 07 23:55:39 "Stampeding case mows down tablet!" May 08 00:00:26 http://phandroid.com/2012/05/07/npd-android-now-on-61-percent-of-us-smartphones/ May 08 00:00:38 but ... May 08 00:00:40 http://www.sfgate.com/cgi-bin/article.cgi?f=/g/a/2012/05/07/businessinsiderwhy-android-cant-mon.DTL May 08 00:00:51 I don't understand the thinking behind GLES1 and GLES2. Developers of apps need to have 2 complete implementations of their code in the apps. May 08 00:04:18 this looks like the android-gossip channel. May 08 00:04:41 gridbag: yes, ctate will confirm all your queries May 08 00:04:58 (or deny) May 08 00:05:33 TMZ for android. May 08 00:08:01 I can neither confirm nor deny either the confirmation or the denial of any such rumors or of the alleged confirmations or denials. May 08 00:08:05 error: No resource identifier found for attribute 'measureWithLargestChild' in package 'android' fragment_pager.xml May 08 00:08:55 i get this error from the code in the FragmentPagerAdapter docs May 08 00:09:15 Guys, we're approaching crunch time for Republique - I hope you all will at least check it out, and maybe pledge if the game interests you (Mac/PC/iOS). I really want these guys to make this game. - http://kck.st/HEZHSo May 08 00:09:27 woops, wrong chan, sorry May 08 00:10:27 Can you apply an animaiton to a ViewPager so when you scroll, it can flip or spin or what ever I choose? May 08 00:10:33 svchost: blatant advertising is obvious May 08 00:12:01 pragma-: it was the wrong chan for one.. for two, it's not like its my game.. i just want it made so i can play it.. for three, the channel i was going to post it in doesn't have a problem with me shilling for cool stuff i like. again, sorry i posted it here. feel free not to click. May 08 00:12:51 svchost: why so defensive? May 08 00:13:34 pragma-: why so twitchy; he said up front that it was a mispaste May 08 00:13:42 i don't mind people talking up stuff they own May 08 00:13:46 i just mind them doing it *here* May 08 00:14:07 and even then things like ABS get a friendlier eye because it's clearly android app development related May 08 00:14:36 ctate: and well, svchost owned up to his mistake fast May 08 00:14:59 hey guys, check out my app, http://google.com May 08 00:15:03 oops, mispaste, sorry guys May 08 00:29:13 can you have just two textviews in a resource? or do they have to be contained within a viewgroup (they are going to be added into a tablerow) May 08 00:29:35 wait scratch that, they are not in tablerows May 08 00:29:44 heh: https://play.google.com/store/apps/details?id=com.google.android.finsky May 08 00:30:00 * pragma- points at wongk-home May 08 00:30:11 with which finger?! May 08 00:37:05 is it possible to require a password for adb? May 08 00:38:30 afaik no, but that's a cool idea. May 08 00:39:06 wat? May 08 00:39:12 well, the user has to explicitly turn it on May 08 00:39:27 I guess I better start toggling dev settings on / off then. don't want someone to get hold of my phone and get access like that May 08 00:39:33 correct May 08 00:39:49 having usb debugging turned on is a significant security opportunity May 08 00:40:09 are there widgets to toggle it? May 08 00:40:10 which is why there's a disclaimer which nobody reads when you turn it on :) May 08 00:40:16 i am told that there are gadgets int eh field that can be plugged into a phone, which will pull a bugreport and do whatever scraping they can, automatically and within seconds May 08 00:40:19 no one ever reeds disclaimers May 08 00:40:24 if you've got a malicious program trying to use adb on your host machine, you've got big problems :) May 08 00:40:26 ctate: i like your choice of words there... "security opportunity" May 08 00:40:28 afaik there are no widgets for it May 08 00:40:35 birbeck: indeed May 08 00:40:39 readme: Not a program, a person. May 08 00:40:48 rking: there's no reason why a program couldn't do it. May 08 00:40:53 I guess one could make a widget to open the activity .. slightly faster than menu, foo, bar, foo, bar, what setting did I want to change? May 08 00:41:02 If I know you're an Android tweaker, I could wait til you leave your phone to go to the bathroom and then backdoor the crap out of it in about 3 seconds. May 08 00:41:04 i am also told that these devices have been seen in the hands of, say, customs officials May 08 00:41:08 border security May 08 00:41:10 etc May 08 00:41:12 qmr: Yeah, that app is a good idea. May 08 00:41:16 rking: imo, leaving your phone to use the bathroom is a terrible idea May 08 00:41:24 readme: So you never sleep? May 08 00:41:29 rking: you should tell me if the app I'm working on now is a good idea .. May 08 00:41:30 lets just agree that both secenarios are potential problems. May 08 00:41:38 qmr: What is it? =) May 08 00:41:39 you can get brain cancer if you sleep with your head near your phone May 08 00:41:40 solution: bunch of dead cops. May 08 00:41:47 if you really want to secure your phone, that's what full device encryption is for May 08 00:41:50 rking: I can post apk? it's for quickly sharing location May 08 00:41:53 rking: I'm going to follow that up and say that if you're letting someone roam your house who you don't trust while you sleep, then you have much worse problems than adb. May 08 00:41:56 ctate: is that available yet ? May 08 00:41:59 qmr: Yeah man.. I'll take a look. May 08 00:42:13 ok. let me build latest version.. May 08 00:42:15 qmr: it's on ICS, at least May 08 00:42:27 HC+ May 08 00:42:32 so for phones, it appeared in ICS May 08 00:42:32 well that's reassuring. is there anything yet for encrypting SD card on older versions? May 08 00:42:39 fill your phone with thermite and implement a self destruct function May 08 00:43:13 I have thought about buildign some kind of time bomb daemon to wipe stuff May 08 00:43:15 didn't work for this gameboy: http://www.geekologie.com/2008/03/gameboy-survives-bombing-still.php May 08 00:43:23 like if you don't auth every X days, wipe everything May 08 00:43:23 this is also why certain adb operations do require that the user unlock the device and perform an on-screen confirmation action May 08 00:43:27 Actually, a fun one would be a bit of a honeypot - make the login script for adb do something crazy unless you first cancel it with a secret command. May 08 00:43:30 [specifically, adb backup / adb restore require this] May 08 00:43:33 ctate: what operations are those? May 08 00:43:36 qmr: Yeah, it's a good idea. May 08 00:43:39 qmr: s/time bomb/dead man switch/ May 08 00:43:47 qmr: Or do something worse, like set itself on fire from overclocking. May 08 00:43:53 all you need to know about android security apps May 08 00:44:00 Guys... I'm tired of "intuitive debugging" and ready to ask you a question about exception handling in eclipse. Here is an screenshot: http://xa0c.net/tmp/android/exceptionEclipse.png (huge). Exception happend in UI thread at the onTouch event (I know it), but stackTrace has no info about "onTouch". May 08 00:44:00 http://www.youtube.com/watch?v=LZpepAK83NY May 08 00:44:02 So, the first question is: why there is no info about my code in stackTrace? The second question: why sources downloaded by androidSources plugin doesn't match to SDK compiled class (api10)? May 08 00:44:14 http://qtech.us/gps-coordinates.apk May 08 00:44:32 it needs prettified a bit... but the core functionality is all there May 08 00:44:41 * pragma- points at qmr May 08 00:44:56 qmr: lol nice sales pitch on your site May 08 00:45:09 xa0c: hunh. are you running a custom rom? May 08 00:45:16 qmr: K, I'm not worried about the prettiness. May 08 00:45:20 readme: heh, thanks. a few people "didn't get it". gently caress those people. :p May 08 00:45:37 qmr: i have a feeling it won't work on most clients... does it? May 08 00:45:47 I'm wondering if I should show site to hiring manager I'm meeting tomorrow .. and or sign him up for my cat facts list.. May 08 00:45:48 ctate: I'm using my XperiaS for debugging. Not rooted. May 08 00:45:52 flying to east coast tomorrow, whee May 08 00:45:54 readme: hmm? May 08 00:46:04 qmr: human clients May 08 00:46:41 readme: oh. yea. I don't care anymore. I had a computer business several years ago, it went under... so.. it's all a big joke to me now. just do hosting for a few people now May 08 00:47:04 xa0c: is it only your app that does this? May 08 00:47:35 Well... It's my first application. I didnt check other. ^) May 08 00:50:21 So, super awesome app amirite? May 08 00:50:32 inspired by taking like two minutes to explain to 911 dispatch where I was at May 08 00:51:39 Looks like I found the answer for 2nd question: ctate, you're right, sdk is 2.3.3, while XperiaS using 2.3.7. Looks like I should get somewhere sources of 2.3.7. May 08 00:52:21 * readme has a "Not Yet Shipped" order for his app in checkout *scratches head* May 08 00:53:14 readme: coould of been an issue between after the payment went through and downloading May 08 00:54:42 Hi, I'm having a very strange issue with edittext and onKeyListener stackoverflow.com/questions/10467184/edittext-not-receiving-tab-key-events-stock-soft-vk May 08 00:54:49 yea May 08 00:54:55 Any help would be appreciated May 08 00:55:42 Really? I keep my phone under my pillow! Phone signal is non-ionising, so doesn't cause cancer. Right? May 08 00:55:47 01:41:39 < pragma-> you can get brain cancer if you sleep with your head near your phone May 08 00:55:50 Really? I keep my phone under my pillow! Phone signal is non-ionising, so doesn't cause cancer. Right? May 08 00:56:05 are you sure you don't have brain cancer right now JamesJRH May 08 00:56:09 because you repeated yourself May 08 00:56:48 readme: forgot to quote, then it was wrong order. May 08 00:57:02 yeh better get an mri stat May 08 00:57:13 so an activity that does not have any filters is a private activity and cannot be started by other applications correct? May 08 00:57:27 readme: Lol. May 08 00:57:31 even with an explicit intent? May 08 00:58:34 But why about first question (about stackTrace)? I put all onTouch's code into try-catch and get more useful information: http://xa0c.net/tmp/android/exceptionEclipse2.png May 08 00:58:57 How can I get such stacktraces without try-catching everything? May 08 01:00:53 Yop, I'm searching the best way to get the current time and transform it in a good string format to send it in a DATETIME for a MySQL database. SystemClock.currentthreadmillblabla() didn't work, any idea? May 08 01:01:07 xa0c: if you don't catch an exception, it will be handled by the default uncaught exception handler May 08 01:02:06 http://developer.android.com/reference/java/lang/Thread.html#setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler) and it can be set on a per Thread basis. May 08 01:02:20 oh, i'm sorry. it's for all threads.. May 08 01:02:42 If you want to create a stack trace when there is no exception being thrown, you can just throw an exception and catch it. May 08 01:02:55 heh, "what don't you like about android" 1097 comments May 08 01:03:22 i could comment on what i dont like about android May 08 01:03:26 only 1097? May 08 01:03:33 but i could comment 100x more on what i dont like about ios May 08 01:03:36 we're not doing so bad :) May 08 01:03:52 i dont use android cause im an android fanboi, i use it cause ios sucks balls May 08 01:04:27 idk, android is pretty crappy too May 08 01:04:45 it probably is the least crappy alternative though. kind of like why I use linux. not because it's good, because it sucks less May 08 01:04:45 readme: Well... I'm doing something in onTouch() handler, than it brakes something (nullpointer) in the system classes. I'm still in the onTouch() handler and I expect that exception thrown by system class will contain onTouch() in the top of stack. May 08 01:04:47 then make a good mobile os May 08 01:04:47 OMG FRAGMENTED May 08 01:05:24 xa0c: sometimes when you do something in a callback there's a try {} catch {} around it in the framework you're using. May 08 01:05:27 nothing you can do about it. May 08 01:05:50 Oh... That's sad. Thak you anyway. May 08 01:05:55 Thank* :) May 08 01:06:01 not sure about onTouch though. UTSL May 08 01:06:27 romainguy_: can you recommend anything for photo stitching panaroma views? May 08 01:06:44 stuff like hugin May 08 01:06:58 on your phone? May 08 01:07:12 anything, pc, tablet May 08 01:07:19 Photoshop May 08 01:07:22 Hugin May 08 01:07:23 :( May 08 01:07:47 ok, thanks May 08 01:09:07 g00s: still using those az pics you took as wallpaper btw May 08 01:09:16 best wallpaper i've had, honest May 08 01:09:29 readme: hehe, thanks :) i need to get a good camera :D May 08 01:09:47 what camera do you have? May 08 01:09:54 canon powershot s95 May 08 01:10:00 it's a good camera :) May 08 01:10:04 good for p&s May 08 01:10:54 someone tell me where the hell I put my market signing key plz May 08 01:11:26 romainguy_: i would like to get something i can attach a polarizer & nd filter. i was reading that Bruce Percy uses an ND filter for everything, maybe a little extreme May 08 01:11:31 eosornothing May 08 01:11:51 g00s: I snagged https://play.google.com/store/apps/details?id=com.debaclesoftware.pano in the 25 cent sale a few months back May 08 01:11:55 the ND is useful in some situations, not all May 08 01:12:07 the future's so bright, i gotta wear NDs May 08 01:12:08 it's okay, kind of tricky to do them on a phone without a tripod May 08 01:12:17 pragma-: cool, thanks May 08 01:12:58 what's cool are those pano balls that do a 360 shot May 08 01:13:26 they use them for crime scenes and stuff May 08 01:14:15 not just horizontal 360, but everything 360 May 08 01:15:19 http://www.nytimes.com/interactive/2011/11/20/nyregion/nypd-crime-scene-panoramas.html May 08 01:15:22 does the SDK allow reading from the earphone jack? May 08 01:16:00 romainguy_: i think my biggest qualms with the s95 is that (1) at its widest angle, the raw file has a bunch of barrel distortion unless its corrected, and correcting it sacrifices some pixels. so its 10mp, but less effectively. and (2) raw output seems to not reallh be very flexible May 08 01:16:35 you'll get barrel distortion with any wide angle lens May 08 01:17:01 how do you know your eyes aren't distorting reality? May 08 01:17:27 Is it possible to provide an Android 4 phone with a USB host port through an adapter using Android accessory protocol (without OTG)? The adapter would need power and 2 USB ports. One USB port would plug a device like a keyboard, the other would plug into the phone. May 08 01:17:44 * pragma- would be amused and/or bored to watch a documentary on how they create custom eye-glass lenses for people with huge deformities, and how they detect the deformities. May 08 01:17:48 romainguy_: maybe thats why i could take a raw from my g9 in any app and it looked normal, since it was not as wide angle. May 08 01:18:03 qmr: I haven't forgotten you & your .apk... I'm working ATM so it's taking me a minute to get to. May 08 01:18:15 rking: I'd forgotten it. May 08 01:18:19 i didn't need anything like cxo for my powershot g9 May 08 01:18:20 I know what you're thinking.. rking is working? Yes. It happens sometimes. May 08 01:18:23 Does such an adapter exist? May 08 01:18:32 g00s: you're overthinking this :) May 08 01:18:33 has anyone attempted to integrate IOMX with ffmpeg? May 08 01:18:42 rking: <3 May 08 01:18:49 romainguy_: hehe, where have i heard that before :) May 08 01:18:56 those nytimes click-and-drag images need zoom :( May 08 01:20:21 I guess that's a no :-( May 08 01:22:03 romainguy_: so, when you put a picture from your camera in adobe camera raw or whatever, is it automatically correcting the barel distortion ? May 08 01:22:11 qmr: Do you have the source somewhere public? May 08 01:22:16 video resizing on android is a bitch for previously saved videos May 08 01:22:22 g00s: you can ask it too May 08 01:22:30 g00s: but it will do so at the expense of sharpness May 08 01:22:33 without hardware acceleration, it takes way too long May 08 01:22:40 again, you're over thinking this :) May 08 01:22:49 rking: sure, why do you ask? May 08 01:22:57 even after correction, wide angle lenses will show "artifacts" May 08 01:23:02 qmr: Cuz I'm a sourcemonger. May 08 01:23:09 (the picture will look stretched in the corners) May 08 01:23:13 qmr: I'm about to install it on my actual phone and I'd like to peek first. May 08 01:23:19 proprietary qtech technology! :P May 08 01:23:27 permissions is only GPS, not sending. but... see PM for src May 08 01:24:45 for i in `ls -R` ; do file "$i" | grep 'Java Keystore' ; done maybe that will work May 08 01:24:48 why are you PMing the source, but publicly talking abot the app? May 08 01:25:08 in fact, why are you PMing at all? why don't go just PM the whole thing if you're going to PM at all? May 08 01:30:11 * readme doesn't think it's a good idea to install qmr's binary blob. May 08 01:30:34 I mean, unless you want to join his botnet. May 08 01:31:54 readme: android sandboxing? May 08 01:32:15 not sure you could take over the world with a smartphone botnet May 08 01:32:22 says the permissions right on the tin.. only one person enquired about the source. May 08 01:32:32 just when you need that processing power to calculate missile trajectories, signal would drop. May 08 01:32:32 and if I share source link you get link to all my other horrible code. :( May 08 01:33:57 qmr: even apps without permission can do a surprising amount of damage May 08 01:34:37 I'd install it if it was put up on the web somewhere, (like the market) May 08 01:34:48 so I've read. thanks for thinking so much of me that you think I could do that much damage .. May 08 01:34:54 readme: as soon as you tell me where I put my signing key! May 08 01:35:08 qtech.us is part of the web btw May 08 01:35:09 you want to use eclipse to do it? May 08 01:35:27 Export->Android->Export Android Application May 08 01:35:48 I've done that, but idk where I put my signing key May 08 01:35:53 well I exported it unsigned May 08 01:36:01 or if you want to use the command line $ jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore my-release-key.keystore May 08 01:36:20 use keytool to make keystore May 08 01:36:43 keytool -genkey -v -keystore foo.keystore -keyalg RSA -keysize 2048 -validity 10000 May 08 01:36:48 then you just zipalign it May 08 01:36:58 read building cmdline docs & signing May 08 01:37:25 I already have it open thnx. May 08 01:37:38 50th time, I'm just looking for my key May 08 01:37:47 yeah, you might want to not lose that. May 08 01:37:57 ^ good advice May 08 01:38:01 or ant release -Dkey.store="path/to/keystore" -Dkey.alias="alias" -Dkey.store.password="password" May 08 01:38:25 yeah, because putting your password in the ps list is a great idea May 08 01:38:38 heck yea! May 08 01:38:42 you can also just do ant release May 08 01:38:49 and it will ask for the stuff May 08 01:38:58 you might have to indicate the keystore path though May 08 01:39:06 you can also put all that stuff in local.properties May 08 01:39:15 options and options! May 08 01:42:04 I would never have thought about the fact that it puts that in ps May 08 01:42:11 good thing I don't use multiuser systems, ever May 08 01:42:56 the last time i did a release build, the damn thing asked for my keystore passphrase and echoed it in plaintext May 08 01:43:07 I want to make a global application cache of downloaded images. I use Context.getCacheDir(), but is that just tied to the activity or global level? May 08 01:44:38 yea, they actually put that in a warning May 08 01:44:48 either on d.a.c or in the build.xml file May 08 01:44:54 that it will not hide it when you type May 08 01:45:06 g00s, store your password in local.properties :p May 08 01:45:16 pfn: i do now, thanks to your advice :) May 08 01:45:22 which is also in plaintext <.< May 08 01:45:32 hahahaha May 08 01:46:39 i'm going to submit a complaint to amazon, that every focal press kindle book i have purchased is f%#$ing defective May 08 01:47:15 somehow, i doubt anyone here is surprised i'm so upset :) May 08 01:48:20 I am planning to put an ImageCacher on the global Application class. whenever an activity needs to access it, if it is null, it will create a new ImageCacher. However it uses Context.getCacheDir() of the current activity. Is this guaranteed to always be in the same place? so that, ie, it will not end up creating multiple diferent copies of the cache? May 08 01:49:50 i'm waiting for a phone that has an ozone sensor. do you guys think i will be waiting a long time ? May 08 01:49:56 :/ May 08 01:50:36 airnow.gov data is hopelessly out of date or busted May 08 01:51:33 http://www.walmart.com/browse/iPad-eReaders/Tablet-PCs/_/N-9819?_refineresult=true&_refineresult=true&ic=16_0&path=0%3A3944&ref=500684+430317&povid=cat14503-env172199-module050512-lLinkPOVTABLETS tablets from $89!!1 May 08 01:52:06 ematic eGlide, that sounds like deoderant or something May 08 01:52:25 I was eying that lepan tablet.. looks pretty sweet for $200 May 08 01:52:31 android 2.2 :| May 08 01:52:34 froyo ftw ! May 08 01:52:35 idk what tech the screen is, but it looked ok enough. May 08 01:52:41 it's very heavy though. 6800mah battery May 08 01:53:12 i'm going to wait for the google nexus tablet, even if its not great spec wise May 08 01:53:25 i just don't want to deal with this crap :) May 08 01:53:50 didn't know GOOG was making a tablet May 08 01:54:04 should be out … soonish May 08 01:54:28 hopefully before sep May 08 01:55:23 are OEMs still making new honeycomb tablets? May 08 01:55:27 because that would be strange May 08 01:55:28 of course, ctate can confirm the exact date May 08 01:57:01 hey, so when they say google 'stole' the java api, do they mean just the naming conventions of the methods (and their arguments), data structures, etc., or do they actually mean the underlying code behind those things? May 08 01:57:20 the API hence the name, is just the 'interface' May 08 01:57:21 g00s: I can neither confirm nor deny either the confirmation or the denial of any such rumors or of the alleged confirmations or denials. May 08 01:57:24 not the underlying implementation May 08 01:57:34 google did a clean room implementation of the java apis May 08 01:57:40 ctate: thanks for the confirmation :) May 08 01:57:42 i.e. the engineers had only documentation and API defs May 08 01:57:53 svchost, readme, everyone else: please don't chatter about the lawsuits, ok? May 08 01:58:03 not in this channel i mean May 08 01:58:45 i was watching judge judy earlier May 08 01:58:53 lol May 08 01:59:08 some crazy lady was like THIS GUY GAVE ME A STD AND I ALMOST DIED AND NOW I HAVE A $10K HOSPITAL BILL May 08 01:59:19 only 10k ? May 08 01:59:21 and judge judy said something like "why are you telling me this disgusting story? it wasn't in your paperwork!" May 08 01:59:35 and then she dismissed the case May 08 01:59:37 lol May 08 01:59:42 and then the show i actually wanted to watch started May 08 01:59:45 canadiancow: life is rough in america May 08 01:59:58 ctate: is there a reason why? May 08 02:00:03 Judge Judy must support STDs May 08 02:00:10 svchost: because he said so May 08 02:00:20 svchost: it's off topic. talk about STDs instead. May 08 02:00:24 I was just wondering if there was a particular reason.. May 08 02:00:35 because this is #android-dev May 08 02:00:39 not #google-litigation May 08 02:00:40 readme: lol May 08 02:00:52 All I'm saying is, I am terrified of overloading a method now. I'm afraid Oracle will sue me. May 08 02:00:53 gonna watch some tv May 08 02:01:04 svchost: it's our official app-dev support channel, and some of us are google employees who might be involved in some ways in the cases. it's just not friendly to chatter about it in a venue where you know it might not be helpful, y'know? May 08 02:01:16 svchost: yes, i 'm sure you are personally in Larry's crosshairs May 08 02:01:20 k May 08 02:01:52 and yes to be honest this is me making an arbitrary decision about channel policy, but that's partly what the +o is about May 08 02:01:59 svchost: for all we know, you could be an oracle employee or something :) May 08 02:02:24 or like the foos patent guy May 08 02:02:27 *foss May 08 02:02:37 * ctate had no idea that Judge Judy was indeed a legally binding court May 08 02:02:56 I am pretty sure any of those court shows are legally inding May 08 02:02:57 (private arbitration court, but still) May 08 02:03:26 no, oracle is a garbage company. i would never work for them.. but thatll be the last comment about that.. May 08 02:07:12 Cow! May 08 02:07:31 Why doesn't DS make noise with the notification. May 08 02:08:12 t0mless: androidplot still down, wth May 08 02:08:14 hi, I parse an xml file, I can take lat and lon but when i try to display all the locations in mapview it only shows me the last one... some code here http://pastebin.com/8SU7mZYJ May 08 02:08:30 or have the option to set sound/vibrate on the notifications? May 08 02:08:39 g00s I know right... been forever May 08 02:09:23 what am i doint wrong? :/ May 08 02:10:16 ancanta: does the method you are using support multiple location input? sounds like to me it doesnt May 08 02:10:43 not.. method as in function of an object, but whatever you are doing to do the display May 08 02:11:41 drpenguin, u are talking about the callme() method i use ? May 08 02:12:06 ancanta: I dont know, what *do* you use? :P May 08 02:12:49 hmmm....i think u got a good point here!! May 08 02:13:09 Awesome! Because I have no idea what that point is May 08 02:13:20 :) May 08 02:13:39 i have an idea :P May 08 02:13:56 can you recommend a good video tutorial? most tutorials i have seen on youtube are terrible May 08 02:14:32 ultrixx: have you gone through the I/O sessions? May 08 02:14:33 video tutorial for......... making origami cranes? need to be specific here May 08 02:14:39 Oh he had previous questions, nevermind May 08 02:14:55 drpenguin: I assumed for TV-sized widget development using BT 4.0 May 08 02:15:15 Leeds: You have more information than me, I went away an hour ago to eat some dinner May 08 02:15:47 drpenguin: yes making origami cranes good guess May 08 02:15:51 I just arrived from post-breakfast nap May 08 02:15:55 life is hard :) May 08 02:16:01 Leeds: *glare* May 08 02:16:27 Leeds: thank you May 08 02:16:32 I hope you get ageda May 08 02:16:41 agenda? May 08 02:16:52 No silly, ageda :P its an italian word meaning discomfort May 08 02:17:11 Although if you find yourself in a disorganized state, an agenda would certainly cure that May 08 02:18:12 canadiancow .:19:07:33:. ( t0mless ) Why doesn't DS make noise with the notification. May 08 02:23:45 http://i.imgur.com/a9dJE.jpg May 08 02:23:58 truths May 08 02:24:54 did you see the doc i made about setting up abs? May 08 02:25:18 was that you who shared it with me? May 08 02:25:26 I get a lot of emails... May 08 02:25:32 it could be a lot better but i had just done it and someone else was asking May 08 02:25:36 yeah that was me May 08 02:25:40 * t0mless mails canadiancow to JakeWharton May 08 02:25:49 I gave it a look over May 08 02:25:54 there's was something factually incorrect on it May 08 02:26:00 i forget what May 08 02:26:17 having to do with the support lib? May 08 02:27:50 meh i was doing it from memory of setting it up earlier that day May 08 02:28:31 I wish I could just bundle .jars with resources May 08 02:28:35 or everyone used Maven :) May 08 02:28:43 but the former is more likely to happen in the future May 08 02:29:43 just a plain ol jar would be great May 08 02:29:46 Theoretically, if you "killed all the .jar's" people would *have* to use maven May 08 02:29:57 just sayin May 08 02:31:35 jeppy: they forgot links, which is like the noisy cricket May 08 02:32:14 links? that's a browser? May 08 02:33:36 JakeWharton: couldn't you put the jar in res/raw and load it with DexClassLoader? May 08 02:34:11 just a thought. somewhat unsure of whether it would work smoothly. in assets/ would, though. May 08 02:34:49 g00s, according to wikipedia, Links has "partial" html 4.0 support May 08 02:39:51 * pragma- idly wonders how many duplicate compatability jars his system has now May 08 02:40:09 about 320 apps... assume 5% of them use the jar... May 08 02:40:35 * pragma- bloats. May 08 02:40:36 Hi all, I am not able to run android command May 08 02:40:59 Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM May 08 02:41:12 Any idea ? May 08 02:41:26 readme: not sure what would work May 08 02:42:00 *that May 08 02:42:24 sri13: uh… use a 32-bit JVM? May 08 02:42:52 or download the 64-bit SDK May 08 02:43:01 as a device administrator I can set the lockscreen password using resetPassword()... how can I remove the password all together? May 08 02:43:50 JakeWharton: I am building android on ubuntu 11.04 64 bit. May 08 02:44:10 you might want to try the android-building mailing list then May 08 02:44:13 we're app developers May 08 02:44:44 oh, ok. Do u know irc channel name ? May 08 02:45:06 don't think there is one May 08 02:45:12 could try #android-root May 08 02:45:49 ok, thanks :) JakeWharton, t0mless May 08 02:59:39 i'm still really stuck on coming up with a locale and preference sensitive timestamp format that is sane. the closest thing i can come to is: May 08 02:59:41 DateFormat format = SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM); May 08 02:59:55 but i don't know how to change this based on the 12/24 hour preference of the phone **** ENDING LOGGING AT Tue May 08 03:00:01 2012