**** BEGIN LOGGING AT Mon Jun 04 02:59:59 2012 Jun 04 02:59:59 I'm unable to install Android ADT Plugin for my eclipse (downloaded from eclipse official website, Indigo classic version). Please help me someone... Jun 04 03:00:01 Now I see why he told you to use a service. Jun 04 03:00:43 I have tried giving http and https also.. but still it did not work :( Jun 04 03:00:49 readme, hey I got a lot done, however I can't get a LayoutParams layout = new LayoutParams(LayoutParams.FILL_PARENT, 50, 0x50); to be the right gravity now. Jun 04 03:01:09 ZettaZete: what kind of layout params is that Jun 04 03:01:11 ok paste bin is here Jun 04 03:01:12 YES Jun 04 03:01:19 i am using a service Jun 04 03:01:33 LinearLayout Jun 04 03:01:45 what is up with 0x50? Jun 04 03:01:58 but the service directs messages to an activity Jun 04 03:02:03 Isn't that the id for bottom gravity? Jun 04 03:02:11 Tricknology: use a broadcast receiver instead Jun 04 03:02:14 that activity starts an alert dialog in a separate class Jun 04 03:02:15 i am Jun 04 03:02:23 here's how it works.. Jun 04 03:02:23 so then what's the big deal if the activity is gone Jun 04 03:02:31 please don't tell me until you ask a solid question Jun 04 03:02:44 think of the question first Jun 04 03:02:46 give the details after Jun 04 03:03:21 the question is simply, does the thread persist after the calling activity is terminated? Jun 04 03:03:28 where is the thread started? Jun 04 03:03:32 where is it created? Jun 04 03:03:33 in the activity Jun 04 03:03:41 that wil be terminated Jun 04 03:03:42 is the reference to the thread kept in the activity? Jun 04 03:03:51 yes Jun 04 03:04:12 it is declared there Thread t = new Thread()... Jun 04 03:04:12 it won't persist unless it is declared static. if you declare it static you are doing it wrong. use a service. Jun 04 03:05:06 ZettaZete: http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#LinearLayout.LayoutParams(int, int, float) Jun 04 03:05:19 look what the second param should be Jun 04 03:05:22 50 doesn't make sense here Jun 04 03:05:26 ok.. will the service persist after the activity is terminated? if i don't bind it? Jun 04 03:05:49 0x50 is likely not a good choice for the weight Jun 04 03:06:05 Tricknology: did you read the service dev guide? because you would probably know if you did Jun 04 03:06:26 yeah just confused because I've been reading a lot of different things today Jun 04 03:06:31 threads, services, avcitivies Jun 04 03:06:36 mainly Jun 04 03:06:45 Yea, I guess so. However I think I'm still lost. Jun 04 03:07:21 ZettaZete: well ask a question Jun 04 03:07:31 Tricknology: the answer is yes Jun 04 03:07:34 it persists Jun 04 03:08:01 readme, heh. Alright so it is supposed to be a float. It says its constant is x50 or 80 wouldn't that make it an int? I am confused on what is supposed to be going there. Jun 04 03:09:23 ZettaZete: why would you pass 0x50? Jun 04 03:09:31 did you write that code? Jun 04 03:09:46 1) app started 2)service started 3)service sends notification 4)when notification is clicked activity is started 5) dialog is started, 6)positive click activity started 7) service stopped when app is exited by user… will any of this freeze the UI? Jun 04 03:09:47 Haha yes. I'm not ashamed. I'm still in the learning process. Jun 04 03:09:59 ZettaZete: what is your reason for passing 0x50 Jun 04 03:10:08 what is your reason for passing '50' to the second parameter, as well? Jun 04 03:10:22 It had it referenced in the documentation. The second parameter is the height. Jun 04 03:10:28 I want it to be 50 :D Jun 04 03:10:31 I'm concerned about "application not responding" Jun 04 03:10:56 ZettaZete: ok Jun 04 03:10:58 I guess this is valid Jun 04 03:11:11 50 is a weird choice for the weight Jun 04 03:11:23 x50 rather Jun 04 03:11:38 so what is it that you need to do but this doesn't do for you Jun 04 03:11:41 Alright, I just passed Gravity.BOTTOM same results. It is stuck tot he top. Jun 04 03:11:44 i guess it all comes down to.. should I start threads from the Service? Jun 04 03:11:45 Tricknology: that's an anr Jun 04 03:11:50 you deadlocked your thread probably Jun 04 03:12:02 you wrote some sort of condition that caused both threads to get stuck Jun 04 03:12:19 i haven't yet, unless that top-down is bad Jun 04 03:12:26 trying to prevent that.. Jun 04 03:12:32 but you did Jun 04 03:12:35 20:07 < Tricknology> I'm concerned about "application not responding" Jun 04 03:12:43 thats what casues that Jun 04 03:12:46 causes* Jun 04 03:13:08 im not getting that error, i haven't even finished the code.. i need to learn how to write test cases btw Jun 04 03:13:14 ZettaZete: gravity effects the contents of the LinearLayout Jun 04 03:13:23 any resources you could share? Jun 04 03:13:26 it doesn't effect the layout that it is a child of Jun 04 03:13:26 Ah, so I am applying it in the wrong area. Jun 04 03:13:35 Tricknology: read the testing dev guide Jun 04 03:13:40 ZettaZete: yes Jun 04 03:13:42 okk Jun 04 03:14:02 should i start threads from the service? Jun 04 03:14:21 sure. the SDK examples do it... (hint hint) Jun 04 03:14:32 readme, how can I programmatically make a layout a child of another layout? Jun 04 03:14:42 addView(() Jun 04 03:15:25 Can I modify the layout after I add it to the view? or just before? Jun 04 03:15:46 the thread will persist after onStartCommand() is finished? Jun 04 03:22:36 Could someone tell me whether there is option for manual download of ADT? Jun 04 03:22:53 there is Jun 04 03:23:35 from here Jun 04 03:23:40 http://developer.android.com/sdk/eclipse-adt.html#downloading Jun 04 03:23:49 http://dl.google.com/android/ADT-18.0.0.zip Jun 04 03:23:52 thats adt Jun 04 03:24:18 when you install it in eclipse, select install from archive.. browse to and select that file Jun 04 03:32:00 I have a service that i am trying to use a broadcastreciever in, do i just call br = new myBroadcastReciever() in my onCreate()? Jun 04 03:32:26 my goal is to catch all broadcasts while the app is open Jun 04 03:33:55 Ok, so I created a view, like so frameLayout.addView(adview); how could I remove the view? Jun 04 03:34:08 Tricknology: I've seen that Eclipse needs Sun Java 6 , But my ubuntu is not giving that.. Can I use OpenJDK java instead of Sun Java 6 ? Jun 04 03:34:31 hmmm Jun 04 03:34:38 I've used fedora Jun 04 03:34:48 u got jre6? Jun 04 03:35:10 get ire 6 and jdk 6 i believe and u should be ok Jun 04 03:35:18 jre6 Jun 04 03:35:34 No.. I installed JRE 7 Jun 04 03:35:38 ok.. Jun 04 03:35:52 It should work right? Jun 04 03:35:58 you need jdk too Jun 04 03:36:10 i think 7 is out now Jun 04 03:36:31 since i got my mac i haven't touched my linux machine Jun 04 03:36:57 http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html Jun 04 03:36:59 ok.. Jun 04 03:37:00 there u go Jun 04 03:38:20 you need ire, jdk, art, and sdk Jun 04 03:38:31 not art.. adt* Jun 04 03:38:58 Tricknology: oh.. ok.. thanks :) Jun 04 03:39:05 fail.. you need JRE, JDK, ADT, SDK Jun 04 03:39:26 point eclipse to jdk and jre, Jun 04 03:40:06 Gotta love being noob ^^ Jun 04 03:40:07 np siva4080 Jun 04 03:40:17 heh, we were all there Jun 04 03:40:21 its a mess Jun 04 03:41:01 oh i have to dl this? oh that? oh this too? 750mb and 12 hours later… STUPID HELLO WORLD AAAARGH Jun 04 03:41:17 Ok, so I created a view, like so frameLayout.addView(adview); how could I remove the view? Jun 04 03:41:39 I tried setting id's and then using findViewbyId but that didn't seem to work. Jun 04 03:43:04 ((FrameLayout)frameLayout.getparent()).removeView(adview) ? Jun 04 03:46:09 provided that frameLayout is a view Jun 04 03:46:16 View Jun 04 03:49:30 it would be smarter to cast to ViewGroup Jun 04 03:53:28 Actually I think the function isn't even being called right. Jun 04 03:54:11 i didn't bother reading the scroll buffer Jun 04 03:54:58 JNI is horrible.. Jun 04 04:02:29 I guess I'm doing something manually that might exist. Is there a way to refresh a view? Jun 04 04:03:15 hey guys ive got a webview that is not wide enough to fit the screen, i want it to scale to fit properly but no matter i try it doesnt have any effect - metatags or setInitialScale, any ideas? Jun 04 04:09:21 Is it possible to somehow test a release apk? It won't let me buy my own game. Jun 04 04:09:34 ugh i am so confused.. Jun 04 04:10:17 do i start the service from the broadcastReceiver or do i call the BroadcastReceiver from the Service? Jun 04 04:10:34 Tricknology: yes. Jun 04 04:10:44 so either? Jun 04 04:10:54 no Jun 04 04:10:58 :( Jun 04 04:11:06 :) Jun 04 04:11:36 think a little bit... Jun 04 04:11:44 what does a broadcastreceiver do? Jun 04 04:11:59 It receives broadcasts Jun 04 04:12:33 Tricknology: what does a broadcastreceiver do? Jun 04 04:13:18 i don't even know anymore Jun 04 04:13:26 then go rtfm Jun 04 04:13:33 i thought they listen for broadcasts Jun 04 04:13:53 why are you using a broadcastreceiver? Jun 04 04:14:02 to cature a text message Jun 04 04:14:06 capture Jun 04 04:14:11 how? Jun 04 04:14:20 service Jun 04 04:14:24 no Jun 04 04:14:29 :( Jun 04 04:14:29 how are you capturing a text message? Jun 04 04:14:31 What's the best way to do a sortable table that scrolls h/v? Jun 04 04:14:47 onRecieve Jun 04 04:14:48 work with me here, please Jun 04 04:15:00 overriding onReceive Jun 04 04:15:09 what bloody broadcast are you bloody trying to bloody receive? Jun 04 04:16:06 or, well, no... you're being unhelpful, don't need to waste my time trying to educate Jun 04 04:16:17 i'm trying to Jun 04 04:16:25 i would like to learn Jun 04 04:16:48 try harder... Jun 04 04:16:51 i am trying to receive a sms Jun 04 04:17:18 i don't know what broadcast a sms is Jun 04 04:17:20 Leeds, Any ideas about doing a sortable table? Jun 04 04:17:21 ... it's nice to have a *fast* ICS emu Jun 04 04:17:24 what fscking broadcast are you fscking trying to fscking receive??? Jun 04 04:17:36 if you don't know that, how the fsck are you going to fscking filter for it? Jun 04 04:17:40 FFForever: no idea Jun 04 04:17:49 The only way I got it partially working was to rebuild the table everytime you click a column :/ Jun 04 04:18:33 SMS broadcast Jun 04 04:19:04 that's the official name, is it, "SMS broadcast"? Jun 04 04:19:18 telephony? Jun 04 04:19:26 ah yes, 'telephony' Jun 04 04:19:34 whatever, let me ask another simple question... Jun 04 04:19:42 are *you* sending the broadcast? Jun 04 04:19:52 no Jun 04 04:20:06 http://www.buildroid.org/blog/?p=159 <--- if you need quick ICS emu and can't get good results with SDK emu ;D Jun 04 04:20:20 who is sending the broadcast? Jun 04 04:20:34 bear with me Jun 04 04:20:41 if John has 5 apples and David has 6 apples, how many apples are there? Jun 04 04:20:42 imagine that i am trying to write my own sms app Jun 04 04:20:52 eleven apples Jun 04 04:21:01 what letter does 'cat' start with? Jun 04 04:21:07 M Jun 04 04:21:07 c Jun 04 04:21:14 or ' char Jun 04 04:21:28 I'm trying to establish a baseline for questions you can actually give a useful intelligent answer to Jun 04 04:21:37 seems to be pretty low... Jun 04 04:22:03 such rude people in here Jun 04 04:22:18 canadiancow: have you ever seen such rude people? Jun 04 04:22:19 11 fscking apples!! Jun 04 04:22:33 fuck off Jun 04 04:22:40 Leeds can you ban him Jun 04 04:22:48 pragma-: or I could just stop trying to help, and see the usual thing of people repeating their questions and getting no answer Jun 04 04:23:28 Leeds, imagine that I am trying to build my own sms app.. it only needs to intercept sms while it is running, if it is not then the default sms app takes over. furthermore it must filter sms messages Jun 04 04:23:56 i am trying to listen for a telephony broadcast Jun 04 04:23:57 Tricknology: first, you shouldn't be trying to write your own SMS app if you have no idea how the app lifecycle works - start with walking Jun 04 04:24:17 for science Jun 04 04:24:18 secondly, I don't care what app you're trying to write, I'm trying to educate you on how basic Android stuff works Jun 04 04:24:21 indulge me Jun 04 04:24:37 go read http://www.catb.org/~esr/faqs/smart-questions.html then go read a lot of stuff at d.android.com then come back Jun 04 04:25:07 look like someone forgot to set their targetSdkVersion to 14 Jun 04 04:25:08 http://www.youtube.com/watch?feature=player_detailpage&v=7NosAaZeMnw#t=95s Jun 04 04:25:43 JakeWharton: lame :( Jun 04 04:26:23 hey guys ive got a webview that is not wide enough to fit the screen, i want it to scale to fit properly but no matter i try it doesnt have any effect - metatags or setInitialScale, any ideas? Jun 04 04:26:43 actually in the html the client has Jun 04 04:26:48 should that scale it to the screen? Jun 04 04:26:53 get the width of the screen Jun 04 04:26:56 seems to be 320 wide Jun 04 04:27:05 yeh i can get screenwidth Jun 04 04:27:18 but i cant get the webview to be wide enough to fill screen Jun 04 04:27:33 build the view programatically? Jun 04 04:27:38 idk Jun 04 04:27:48 i can't even figure out a broadcastreciever Jun 04 04:27:56 hehe Jun 04 04:27:56 and telephony Jun 04 04:28:00 this shouldbe easier! Jun 04 04:31:50 WebView wv = (WebView) findViewById(R.id.yours); wv.setLayoutParams(new LayoutParams(width , height); ? Jun 04 04:32:23 leeds quit messing with me Jun 04 04:32:40 can't talk, playing Draw Something Jun 04 04:33:17 +1 Jun 04 04:33:29 do some in app purchasing while you're at it Jun 04 04:33:35 already bought it Jun 04 04:33:44 awesome Jun 04 04:33:46 not giving those Zygna clowns any *more* money! Jun 04 04:33:52 +1 Jun 04 04:33:52 hey! Jun 04 04:33:57 "Zynga clowns" +2 Jun 04 04:34:23 I know the sort of bovines they employ... Jun 04 04:34:59 Tricknology: http://developer.android.com/reference/android/content/BroadcastReceiver.html Jun 04 04:35:03 how do i make a broadcast receiver receive telephony broadcasts... Jun 04 04:35:04 read, read and read again Jun 04 04:35:09 I've been reading that all day :( Jun 04 04:35:18 http://developer.android.com/guide/topics/fundamentals/services.html Jun 04 04:35:23 http://developer.android.com/guide/topics/ui/notifiers/notifications.html Jun 04 04:35:29 http://developer.android.com/reference/android/app/PendingIntent.html Jun 04 04:35:41 http://developer.android.com/reference/android/content/Context.html Jun 04 04:35:47 http://developer.android.com/reference/android/content/BroadcastReceiver.html#ProcessLifecycle Jun 04 04:35:48 stop pasting links, please Jun 04 04:35:56 sorry just frustrated Jun 04 04:36:10 they're for *you* to read, not us - we've already understood them Jun 04 04:36:29 so why will you not at least verify if my approach is correct or not? Jun 04 04:37:10 all I care about right now is if you understand BroadcastReceivers or not - and I don't care that much Jun 04 04:38:04 I am interested in BroadcastReceivers, and I want to know how to call them and I want to know how long they "listen". Jun 04 04:38:43 of course you understand the difference between a receiver declared in a manifast and one registered at runtime... right? Jun 04 04:38:55 Is it impossible to try out? Jun 04 04:39:18 yes, this receiver will be declared in the manifest Jun 04 04:39:45 it is impossible at this time because it hasn't been built fully, i just want to know if this approach is correct. Jun 04 04:39:57 i haven't leaned or taught myself how to build test cases Jun 04 04:40:00 yet Jun 04 04:40:26 ah... so what you need to do is go back a couple of steps and learn to write software, first... Jun 04 04:40:30 I'm done Jun 04 04:40:46 i'm learning Jun 04 04:40:53 fuuuck this Jun 04 04:42:41 argh Jun 04 04:43:19 Hello All Jun 04 04:44:09 I am trying to communicate android app with linux using accessory mode feature Jun 04 04:45:06 the connection is established but i m not able to write to the output stream Jun 04 04:45:18 can sm1 help me with this Jun 04 04:45:19 ? Jun 04 04:46:04 dopeshope: I don't think there are many people around with experience with that sort of thing - and it's not necessarily the best time of day/week for good answers Jun 04 04:47:09 leeds ,, what tym shal i try ?? I m tryin this thing for few days now .. Jun 04 04:47:16 just saying, if nobody answers, it's not personal :( Jun 04 04:51:06 what is the way to print a bundle? Jun 04 04:54:01 You need to use Bundle.keySet() Jun 04 04:54:39 then you can loop through that to get the keys of all your Bundle items, then use those keys to get the value itself from the Bundle Jun 04 04:54:54 hmm okay thanks Jun 04 05:02:06 hmm i cant get a webview to zoom no matter what i do, prob the metatags messing up somehow Jun 04 05:06:50 do you guys know if theres any more information we can get from the results returned by speechrecognizer? Jun 04 05:07:26 other than just the transcribed text? Jun 04 05:07:43 and the confidence scores.. Jun 04 05:29:30 oi Jun 04 05:29:49 oi yourself Jun 04 05:30:16 big jakester Jun 04 05:30:21 finally upgraded to latest asb Jun 04 05:30:22 abs Jun 04 05:30:35 somehow that fixed busted ass code completion in eclipse Jun 04 05:30:36 thank god =) Jun 04 05:33:17 haha Jun 04 05:33:18 excellent Jun 04 05:34:31 gotta love unexpected stuff like that Jun 04 05:36:09 i'll pretend like I did that on purpose just for you Jun 04 05:38:16 if this is in my html in webview shouldnt it scale to fit ? Jun 04 05:39:48 looks as if the css on the site hardcodes width, width: 320px; Jun 04 05:43:36 JakeWharton - its all good... I'm still on track for a drastic departure from software engineering Jun 04 05:43:56 need to get to a better place Jun 04 05:44:13 and my experience has been that what I am experiencing is relatively normal Jun 04 05:46:51 ron_frown: taking a break from sw ? Jun 04 05:47:00 i got here late Jun 04 05:47:31 yeah as of right now... I think so... good money in software, but definitely too many cooks in the kitchen, and by cooks I mean... avg joes Jun 04 05:48:07 my boss has basically thrown me under the bus for the last time Jun 04 05:48:26 he rushed shit and insisted on crap design, and of course its in a process of self destruction now Jun 04 05:48:31 and I'm getting yelled at for it Jun 04 05:48:34 so fuck him, Jun 04 05:48:45 you need to come work with me Jun 04 05:48:53 I know I know Jun 04 05:49:05 i remember you mentioned this happening before ron_frown ; sounds like your boss is a dick Jun 04 05:49:13 when I worked in sf, the company I worked for was actually pretty laid back... sort of meeting of the minds Jun 04 05:49:15 get him that book about 'no assholes' Jun 04 05:49:22 g00s - hes a lot like george bush jr Jun 04 05:49:35 you cant tell if hes just stupid, or he's intelligent and fucking shit up on purpose =) Jun 04 05:49:46 so he knows what he knows and everybody pays the price :( Jun 04 05:50:03 bush was moderately intelligent, but closed minded and biased Jun 04 05:50:03 one could say kruger effect is in full force here Jun 04 05:50:25 not one single person in management has had any experience whatsoever in the field they are managing, nor managing anything Jun 04 05:50:39 and it seems like almost a conspiracy to keep it taht way =) Jun 04 05:50:50 ron_frown: have you tried to find a company that has a better cultural fit ? Jun 04 05:50:55 maybe flatter org, agile, something Jun 04 05:51:05 g00s - I cant move to la or sf Jun 04 05:51:10 they are both super far away Jun 04 05:51:23 well ~200mi at least Jun 04 05:51:33 my options around here... are limited Jun 04 05:52:01 if I was near sf, I'd hit jake up Jun 04 05:52:04 i think where you live, is one of the most important things that shapes your life and career Jun 04 05:52:08 his company seems to provide a decent product Jun 04 05:52:15 yep Jun 04 05:52:44 I'm at a crossroads.. I'm more of an architect than a "programmer" and honestly when I got someone else doing shitty design work and dictating to me how to do it Jun 04 05:52:49 it just aint worth it Jun 04 05:53:29 I care more now about quality and elegance in a solution, than I ever have before... unfortunately that doesnt SEEM to be qualities most companies are looking for Jun 04 05:53:54 I could hone my metal fabrication and woodworking skills... because at least there... the quality and elegance is appreciated. Jun 04 05:53:57 well, elegance is one design force, and its pretty hard to measure Jun 04 05:54:09 so its tough talking to management about it Jun 04 05:54:25 if you made the system 2c more elegant, nobody knows wtf that means Jun 04 05:54:28 *2x Jun 04 05:54:36 they just dont seem to care either way... if it works... its good enough Jun 04 05:54:49 in anycase Jun 04 05:55:00 this is exactly my reasoning for wanting to stop doing it professionally Jun 04 05:55:09 its making me bitter, and I basically bitch non stop =) Jun 04 05:55:27 hehe, android did that to me :) Jun 04 05:55:49 now i am a little more relaxed, trying other things and playing around with photography Jun 04 05:55:59 there are lots of things about android that are just completely fucked... and decisions that continue to get ignored etc... Jun 04 05:56:31 and the sad part? Tons of people willing to submit those missing pieces that consistently get rejected or ignored as well Jun 04 05:57:19 I need to finish my hotrod Jun 04 05:57:23 :) Jun 04 05:57:26 I think that will be awesome for blowing off steam Jun 04 05:57:41 do you have the money for the parts you need ? Jun 04 05:57:58 my buddy was rebuilding an old car, it was very expensive to get what he needed Jun 04 05:58:13 I cna make mostly anything I'd need relatively cheap Jun 04 05:58:24 the problem... I need a car =) Jun 04 05:58:34 but there is a certain satisfaction with working with your hands, creating something, isn't there ? Jun 04 05:58:40 http://img7.imageshack.us/img7/8734/engine3o.jpg Jun 04 05:58:49 http://img238.imageshack.us/img238/2479/bigturbo.jpg Jun 04 05:58:50 i mean, programming is cool, but ultimately its just moving memory from one location to the next XD Jun 04 05:58:56 its all the same Jun 04 05:58:57 creation. Jun 04 05:59:05 i get a lot of satisfaction from my hand Jun 04 05:59:17 just some require real talent to make it anywhere Jun 04 06:01:06 ron_frown: that looks … heavy , you have the engine hoist thingy i take it Jun 04 06:01:12 yeah Jun 04 06:01:27 I've actually got two of those turbos, but dont know if I'll use both or either Jun 04 06:02:07 would you keep the car, or sell / auction it ? Jun 04 06:02:20 I'd keep it Jun 04 06:02:46 I've got unique ideas about how to build cars right... so I am sure I could sell them... but sometimes you just need to get something to show people Jun 04 06:02:58 yeah ! Jun 04 06:03:10 luck = hard work * talking to people about it Jun 04 06:03:48 its also juggling time... between building my db engine, my fascination with quantum mechanics (and attempt to learn all about it), house remodeling Jun 04 06:04:07 and family :) Jun 04 06:04:13 how is your daughter ? Jun 04 06:04:31 i can see her taking your hot rod for a spin - and not returning XD Jun 04 06:04:37 haha... shes superbaby Jun 04 06:04:51 99 percentile for size Jun 04 06:04:54 and super intelligent for her age Jun 04 06:07:45 can you ask your boss for a unpaid leave ? Jun 04 06:07:59 sounds like you need more than a vacation :) Jun 04 06:08:08 honestly right now I could go into his office and say I require an extra 20-30k a year Jun 04 06:08:13 and I'd probably get it Jun 04 06:08:18 but its not the money =) Jun 04 06:08:24 it usually never is Jun 04 06:08:55 I could try and take a vacation... but I think the reality is that the damage is done... I just need out. Jun 04 06:10:02 well, i worked with someone once - who was forced to take vacation (doctor's orders) high BP, it was a mess. don't let it get to that :( Jun 04 06:10:15 you're likely more expendable than you realize; there's a whole line of eager prospects willing to do what your boss wants Jun 04 06:10:31 lets put it this way... a guy who was about 25yr old died of a heartattack working here Jun 04 06:10:40 maybe overworked to death, maybe natural causes Jun 04 06:10:49 maybe cocaine Jun 04 06:10:59 maybe anorexia Jun 04 06:11:05 my coworker, about a 23 yr old indian guy has been to the hospital once for anxiety and once for a supposed stroke Jun 04 06:11:14 he claims is due to stress Jun 04 06:11:15 maybe he drowned in bacon Jun 04 06:11:42 pragma- that was my guess right behind being worked to death Jun 04 06:11:42 ron_frown: these were different people ? Jun 04 06:11:46 yes Jun 04 06:12:06 so i need some help from the pros Jun 04 06:12:18 say i have an input string Jun 04 06:12:23 pragma- probably right... I've ported android to custom hardware etc... so I suspect there are a much smaller sample set of people that could just up and take that over Jun 04 06:12:38 build 3d modeling app for my work Jun 04 06:12:55 just saying Jun 04 06:13:19 and i would like to see if it matches against 500+ regular expressions, any thoughts on how i can most efficiently do this? Jun 04 06:13:22 I know its not like I couldnt get fired... but I do have some projects under my belt that wouldnt be easy to hire to replace Jun 04 06:13:29 wtf Jun 04 06:13:33 500 regexs? Jun 04 06:13:36 sounds like you are doing something wrong Jun 04 06:13:37 yes Jun 04 06:13:43 maybe a bit ass backwards Jun 04 06:13:55 parco: try ragel Jun 04 06:13:59 well I'd question whether a lexer might be a smarter decision than regex Jun 04 06:14:24 http://www.complang.org/ragel/ Jun 04 06:14:37 build your fsm so there is no nondeterminism and backtracking Jun 04 06:14:39 +1 to lexer Jun 04 06:14:42 regex is going to kill you Jun 04 06:14:54 im in over my head, yet again Jun 04 06:14:57 haha Jun 04 06:15:01 dont let that get to you man Jun 04 06:15:08 you dont learn if you always assume you cant do something =) Jun 04 06:15:14 a lexer will be many orders of magnitude faster since you can match everything in one pass Jun 04 06:15:22 I say... when in doubt... anything is possible... just a matter of time and money Jun 04 06:15:42 swim in the sun Jun 04 06:15:47 no money but i have lots of time Jun 04 06:16:17 I taught myself 3d programming in a day to build a pretty badass 3d spatial modeling app Jun 04 06:17:12 ron_frown, that sounds intense Jun 04 06:17:15 opengl is hard Jun 04 06:17:29 eww, id rather use panda3d :) Jun 04 06:18:10 now now, I didnt have to go that far... luckily wpf simplifies a lot of the 3d stuff Jun 04 06:18:19 it was more like programming in directx Jun 04 06:18:38 i was being sarcastic Jun 04 06:18:47 opengl is a bitch dude Jun 04 06:18:48 directx is more complex than opengl Jun 04 06:18:51 no way dude Jun 04 06:19:01 opengl is so simple Jun 04 06:19:04 JakeWharton, does the android sdk offer anything for the lexer approach? Jun 04 06:19:09 I played with opengl building some shit in android... didnt seem like it Jun 04 06:19:26 for loops :) Jun 04 06:19:37 i usually write everything myself Jun 04 06:19:39 s/directx/direct3d/ Jun 04 06:19:51 http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html Jun 04 06:19:54 parco: ragel works fine on android, i used it for my project Jun 04 06:23:37 JakeWharton thats how I roll Jun 04 06:23:54 3rd party libs often end up as 3rd party nightmares =) Jun 04 06:24:06 i just added a state machine to my pairing interview questions Jun 04 06:24:11 haha yes, yes they do Jun 04 06:25:13 I'd probably not get hired at your company because of interviews Jun 04 06:25:39 nah you're the kind of person that would excel at them Jun 04 06:25:39 I usually am ok on the personal side of things... but the whole GIVE ME THE SOLUTION TO PROBLEM X! GO! Jun 04 06:25:50 I usually fall flat on my face =0 Jun 04 06:25:58 it's not about solutions, it's about the process Jun 04 06:26:09 and they're pairing interviews, not "here's a problem, solve it" Jun 04 06:26:23 well I certainly think thats the constructive way to get hires Jun 04 06:26:43 everyone makes off-by-one errors and flips the cases of if statements and all that crap Jun 04 06:26:47 plus people just get stuck sometimes Jun 04 06:26:58 so we help out by nudging them in the correct directions Jun 04 06:27:00 last question before i dive into these, will these approaches allow me to add / delete regular expressions? Jun 04 06:27:01 I got grilled one time on hashmaps... which was fine... I explained it to the best of my knowlege including collision preventative measures Jun 04 06:27:21 ..or however these things work to filter Jun 04 06:27:26 then I was asked to write pseudo code for one... I was like wtf. What programming language on earth doesnt have a decent well tested hashmap implementation Jun 04 06:27:27 haha Jun 04 06:27:48 yeah so we wouldn't expect you to know exactly how collisions are handled in the JDK but we may still ask you how you would consider handling it Jun 04 06:28:03 ron_frown: the trick is to use an external function "hash()" ;) Jun 04 06:28:19 well that was fine, they were asking me to write pseudo code for the whole implementation Jun 04 06:28:21 then suddenly writing a hashtable is easy Jun 04 06:28:39 I get thats a academic activity... probably something educated people were required to do Jun 04 06:29:04 ron_frown: nope Jun 04 06:29:42 ron_frown: it's good to know the very basics (that is, how to construct hash tables, not how to hash the keys) Jun 04 06:30:03 my coworker was well educated and was taught a gob of algorithm and datastructures... and yet, the guy couldnt put any of those concepts to use in real world solution Jun 04 06:30:32 i'd rather someone know how to hash something Jun 04 06:30:35 then, IMHO, he wasn't exactly well educated :) Jun 04 06:31:12 p_l|backup - I think what Iv'e seen in my 15yr experience... its possible to regurgitate, and even understand concepts, but not understand their importance Jun 04 06:31:20 or how to actually put those tools to use Jun 04 06:32:21 I myself am completely self educated... Jun 04 06:32:28 ron_frown: Sometimes I get the feeling that the intention of academic education of subjects like algorithm and datastructures is to let students know there are things like those around, so when people talk about them at least they know names and theoretical use. Jun 04 06:32:37 haha Jun 04 06:32:55 "Spammers create as many as 40 percent of the accounts on social-media sites" Jun 04 06:33:15 my boss was freaking out because a customer asked if we could achieve x... which was pretty much a bit of somewhat advanced spatial analysis... not GIS Jun 04 06:33:17 hehe, probably because half the interwebs is spam :D Jun 04 06:33:33 g00s - no doubt about it Jun 04 06:33:54 cant tell you how many posts I've seen to peoples blogs and shit that were... "designer sunglasses..." Jun 04 06:33:56 or worse Jun 04 06:36:14 Sometimes the spam-bots extract information from other blogs' comment feeds and paste them into other blogs. Saw it happen on one yesterday and it was somewhat confusing. Jun 04 06:37:16 i think if i ever had a blog, i would just disable comments ;) Jun 04 06:37:58 but i don't now, since i don't have anything important to say :D Jun 04 06:40:19 i read through this lady's presentation http://venturebeat.com/2012/05/30/mary-meeker-internet-trends-2012/ Jun 04 06:40:28 holy crap, she did her homework Jun 04 06:42:15 ok so the lexer seems to be the part where i split it into "tokens", what is the part where i actually do that matching? Jun 04 06:42:52 hehe Jun 04 06:43:27 the tokenizer will just tell you whats next, you have to have rules to fire at the right time Jun 04 06:43:36 really, look at ragel Jun 04 06:44:46 parco: even if you don't use ragel, the manual is very instructive Jun 04 06:45:16 you will learn a lot about fsms, lexing, nondeterminisms, etc Jun 04 06:45:54 sounds good, ill be back in 4 hours Jun 04 06:47:44 g00s, last question before i dive in here, will these be something i can add regular expressions to, like i would be able to do in a database table? Jun 04 06:47:53 parco: note, if you don't have to match against regular expressions, maybe you can use a trie ? Jun 04 06:49:26 g00s, that looks like it would be the better option if i stuck with the NLP approach, but that was way over my head Jun 04 06:50:41 parco: you define the fsm in a DSL as a set of rules and actions which run when a rule is met. the DSL includes things like kleene star, etc. it will look like regexes Jun 04 06:51:05 parco: take a look at the examples in the distribution also Jun 04 06:51:37 it took me a few days to learn how to use this tool, honestly. but it replaced the most nasty handwritten state machine … so i was happy Jun 04 06:52:12 the DSL is very intuitive, it looks like lex or flex Jun 04 06:52:58 btw, the regex impl in harmony used to be pretty bad Jun 04 06:53:17 the built in scanner stuff uses regex Jun 04 06:53:28 however, there is one other class .. hold on Jun 04 06:54:31 ah yes, here the beast is. http://docs.oracle.com/javase/1.4.2/docs/api/java/io/StreamTokenizer.html Jun 04 06:54:41 written by knucklehead himself Jun 04 06:54:50 err, Gosling Jun 04 06:55:07 you can wrap this in switch statements, or something like SMC Jun 04 06:56:03 http://smc.sourceforge.net/ Jun 04 06:56:30 just when i think i have a unique task, there seems to be years of solutions Jun 04 06:57:14 morning all! Jun 04 06:57:23 good morning Jun 04 06:57:49 g00s, this is not so much a stream as it is a string Jun 04 06:58:18 how great would it be if StringToken- oh hey, it exists Jun 04 06:58:24 quick question, I have a FrameLayout and I want to access it's children in Java code (2 ImageViews), how can I achieve this? Jun 04 06:59:08 thepoosh: findViewByID() or iterate over the children Jun 04 06:59:13 StringTokenizer is different altogether Jun 04 06:59:58 g00s, if it took you 3 days to implement i cant imagine how long its going to take me, do you think a <100 regex table would be that unbarebly slow at the moment? Jun 04 07:00:39 I think the performance of regex are grossly exaggerated Jun 04 07:00:46 but even still they are much more expensive than other means Jun 04 07:00:50 brian_de: the only problem is that I include the same xml file within different FrameLayouts, can I just write ImageView img = frameLayout.findViewById(R.id.someId)? Jun 04 07:01:11 ron_frown: Douglas Crockford agrees with you Jun 04 07:01:23 real pros use String.indexOf() and String.substring() Jun 04 07:02:02 pragma-, currently using that for the small 3 actions parser Jun 04 07:02:07 thepoosh: yes, this should work fine Jun 04 07:02:22 its like reflection in .net... people btch about how slow it is... and I did some benchmarks that basically said taht reflection was twice as slow as native calls... but that the difference was like .000002 vs .000001 Jun 04 07:02:48 brian_de: thanks a bunch Jun 04 07:03:01 it depends on the regex, the input string, the regex impl … its hard to say Jun 04 07:03:03 so first pulling the array of regular expressions, then looping through each - matching against the string Jun 04 07:03:06 when you can do 1mil reflected invocations in a min, (and thats not EVEN reflective of how people would use it) its kinda negligible Jun 04 07:03:35 well bed time, unless I want to be in even more of an assholish mood tomorrow Jun 04 07:03:43 :) Jun 04 07:04:03 it's morning by me and I feel assholish Jun 04 07:04:06 gootta be up in about 4.5hr to get ready for work... which should be just a peach... Jun 04 07:04:18 hardware failures, software deadlines Jun 04 07:04:22 this week will be awesome =) Jun 04 07:04:51 the only thing i have to worry about this summer is this damn parser and an underwater robot Jun 04 07:04:55 need to find a hypnotist Jun 04 07:05:09 anway Jun 04 07:05:11 gnight ladies Jun 04 07:05:36 gnight Jun 04 07:05:42 (tomorrow looks to be an awesome session of cherry pickin bug fixes for surfaceflinger Jun 04 07:05:43 yay! Jun 04 07:06:05 i could never understand that fing thing Jun 04 07:06:08 (code) Jun 04 07:06:15 its kind of a mess Jun 04 07:06:22 ya :) Jun 04 07:06:31 apparently in the 2.2,2.3,2.4 days Jun 04 07:06:39 there were plenty of race/deadlocking bugs in it Jun 04 07:06:47 ron_frown: GO!!! Jun 04 07:07:07 I think I am going to try patching in that new service binder Jun 04 07:33:43 is there a way to pass an onClick event to the children of a view? Jun 04 07:44:09 thepoosh: don't the children get to handle touches first by default? Jun 04 07:45:03 appel1: I was doing something wrong... forgot to set the onClickListener and thought it was the parent handeling instead Jun 04 07:45:05 silly me Jun 04 07:45:24 ok :) Jun 04 07:45:39 :D Jun 04 07:50:12 is it legal to write in Java: if(cond == (var1 || var2 || var3) ? Jun 04 07:50:22 seems to me like the answer is HELL NO Jun 04 07:50:29 but I'm hopefull Jun 04 07:51:56 of course it's valid Jun 04 07:52:02 you know what it does, right? Jun 04 07:52:20 I hope not bitwise operations Jun 04 07:52:29 what do you think it does Jun 04 07:52:51 I hope it return true if cond equals to one at least Jun 04 07:53:02 but skeptical Jun 04 07:53:18 in java I don't think it would evaluate to 1 or 0, but true or false Jun 04 07:53:24 java is strict about types Jun 04 07:53:33 and has a boolean Jun 04 07:53:57 it would first evaluate (var1||var2||var3) Jun 04 07:54:00 readme: am I right about my assumption? Jun 04 07:54:05 oh crap Jun 04 07:54:12 that is not correct for me Jun 04 07:54:14 then it would compare the result of that evaluation with cond Jun 04 07:54:21 :S Jun 04 07:54:28 thanks Jun 04 07:59:59 I'm having a weird problem. I use the pickintent to pick an image from the gallery and I get the result bitmap on activity result. When I run this a few times, I get an exception at the point where I get the bitmap by decoding the picked file that the bitmap's size exceeds VM budget. How can I fix this error? Code here : https://gist.github.com/2867086 Jun 04 08:08:42 napster: what does the image method do with the bitmap? Jun 04 08:09:05 napster: what kind of exception? Jun 04 08:09:15 And can you provide also stacktrace Jun 04 08:09:19 appel1: It just loads the bitmap into the imagview with that Id Jun 04 08:09:40 napster: do you always replace the bitmap in the same image view? Jun 04 08:09:48 appel1: yes Jun 04 08:11:47 vavirta: Please take a look : https://gist.github.com/2867168 Jun 04 08:13:57 As I googled, I see this is a common issue and said to be solved by calling the System's GC explicitly. But this solution does not work for me. Jun 04 08:15:30 napster: what if you recycle the bitmap you're replacing if there is one? Jun 04 08:15:58 appel1: let me try that Jun 04 08:16:43 yep, it seems that you aren't freeing your memory correctly in some point and VM Jun 04 08:16:53 and VM's is running out of memory * Jun 04 08:17:43 vavirta: appel1: adding "prev.recycle(); " before decoding would suffice? Jun 04 08:18:40 system.gc has been no-op for long, long time, as far as I know Jun 04 08:18:46 maybe never worked on android Jun 04 08:19:02 napster: no, you probably want to retrieve the old bitmap, replace it in the image view and then recycle it. Jun 04 08:20:36 appel1: ok, let me see Jun 04 08:37:58 appel1: vavirta I fixed it by downscaling the image. It looks working fine now. Thank you Jun 04 08:53:11 Hai Guys, any thoughts on this question? http://stackoverflow.com/questions/10878352/android-ontouchlistener-not-working-properly Jun 04 09:01:14 onListItemClick isnt getting called on one of my listviews in my app - all the rest work fine and its basically a copy n paste job, anyone gotany clue what coul be wrong? Jun 04 09:04:31 driving me crazy Jun 04 09:05:51 How do I temporarily disable my app on amazon's app store? Jun 04 09:08:48 I don't think you can :( Jun 04 09:09:00 Also seems like you can't remove it Jun 04 09:09:08 you probably have to email a request Jun 04 09:16:14 Damn it why wont onListItemClick get called Jun 04 09:16:15 :-/ Jun 04 09:17:28 makes no bloody sense Jun 04 09:20:35 oh ur not allowed an button in a row it seems Jun 04 09:20:38 thats why grr Jun 04 09:22:51 if I want to compile my Android project against other-than-default android.jar, how to do it? As far as I can see, one way is to change "android-jar" parameter in project's build.xml. Any other approach? Jun 04 09:23:38 I'm getting : Provisioning Exception , unable to read the repository at http://dl-ssl.google.com/.. Please help me how to resolve this..!! Jun 04 09:24:14 Good morning all, i was just wondering if anyone knew off a App that I could use to upload pictures or even video's to my own personal website? Jun 04 09:28:21 Hello guys, I've seen a tool for Android to analyze cpu usage on a thread or a function. But I can't find it somehow, can someone please help me? Jun 04 09:30:32 It creates a file that that can be loaded in Eclipse and than shows you a graphical view which shows you on which method the cpu uses was. Jun 04 09:42:05 Number5: http://developer.android.com/guide/developing/debugging/debugging-tracing.html Jun 04 09:53:20 Hi guys, I've to exceute this: db.execSQL("INSERT INTO TABLE2 SELECT * FROM TABLE1"); but execSQL says: Execute a single SQL statement that is NOT a SELECT or any other SQL statement that returns data. Jun 04 09:53:35 which is so the best method to call for that kind of sql? Jun 04 09:55:05 query() Jun 04 09:55:16 stermi: but are you sure sqlite supports this? Jun 04 09:55:35 I think so MDijkstra just asked in their channel Jun 04 09:56:05 stermi: and, the docs for execSQL say: Jun 04 09:56:14 "It has no means to return any data (such as the number of affected rows). Instead, you're encouraged to use insert(String, String, ContentValues), update(String, ContentValues, String, String[]), et al, when possible." Jun 04 09:56:32 insert is for 1 single raw insert Jun 04 09:56:50 not for "native" bulk copy like the query I just wrote Jun 04 09:57:20 well yeah, but I'd just query, get a cursor, and insert Jun 04 09:57:22 maybe the best one is rawQuery Jun 04 09:57:51 well yes but if you have 1k raw you have to do it 1k times instead you can use some native call like that Jun 04 09:57:52 well, the point is whether you want to know how many rows you inserted etc Jun 04 09:58:02 nope Jun 04 09:58:08 I just want to do it as fast as possible :D Jun 04 09:58:18 fair enough Jun 04 10:02:31 hi, is there a tree implementation somewhere in the libs shipped with android Jun 04 10:02:41 preferrably generic, since i need to store different things :D Jun 04 10:04:07 MDijkstra, db.rawQuery( "INSERT INTO " + Tables.TRACKS + "_2 SELECT * FROM " + Tables.TRACKS, null ); it's not working :/ nothing has been moved to the new table Jun 04 10:04:48 tapas: what operations do you need to perform on the tree? Jun 04 10:05:05 only inserts and traversal Jun 04 10:05:08 no removal needed Jun 04 10:05:20 HashSet won't suffice? Jun 04 10:05:43 stermi: try it in a sqlite client first Jun 04 10:05:46 i need to represent a decision tree which i later traverse with activities Jun 04 10:05:48 see if it actually works :) Jun 04 10:06:19 kanelbulle: hashset is not a tree :D (it might be implemented using one, but i need the hierarchical structure) Jun 04 10:06:35 tapas: I'd probably not push a new activity on the stack for every 'decision made' Jun 04 10:06:49 also: the number of entries are small (max depth ca. 5 and max 5 children per node) Jun 04 10:07:01 MDijkstra: i'm not pushing it on the stack.. Jun 04 10:07:02 yeah, then I think you need to implement one yourself Jun 04 10:07:11 i maintain a reference to the node in the tree Jun 04 10:07:13 once again, anyone has a thought about my question? http://stackoverflow.com/questions/10878352/android-ontouchlistener-not-working-properly Jun 04 10:07:16 and reuse the same activity.. Jun 04 10:07:24 how many children for each node? Jun 04 10:07:24 tapas: oh, okay, you just said you were going to traverse it with activities Jun 04 10:07:28 nevermind :) Jun 04 10:07:38 MDijkstra: yeah, my bad Jun 04 10:08:06 MDijkstra, done, it works fine :) Jun 04 10:10:26 appel1, Thank you Jun 04 10:11:13 stermi: could be that the interface is to blame, sadly android doesn't offer a 'raw' interface to sqlite Jun 04 10:11:22 no custom functions either, etc Jun 04 10:13:44 ppl what use ti integrate twitter in our app. We need then user cklick button will rise window like in facebook sdk, there he/she can type password etc... Jtwitter? Jun 04 10:15:25 When using relative layout, is it better to design the UI in xml with elements ordered top to bottom or bottom to top? Jun 04 10:15:42 top to bottom imho Jun 04 10:16:15 appel1: havr you seen my question? Jun 04 10:16:53 MDijkstra, I'm afraid of that I think that the only thing that I can do is to select * and than write all back :( Jun 04 10:17:10 My listview needs to be as large as possible but leave space for an edittext at the bottom, what's the easiest way to so that with relative layout and top to bottom ordering? Jun 04 10:49:08 @thepoosh: don't you need to return true if you processed the motion event and false otherwise? Jun 04 10:55:57 mh, seems that my app crashes if I apply proguard obfuscation >.< Jun 04 11:17:36 Hello, we're a team of 4 students that have to create a 2D game for Android. we're discussing on using libgdx or AndEngine. As the game is quite similar to LineRider/CanvasRider we discussed on using SVGs tfor our simple maps. AndEngine supports them, libgdx doesen't. Jun 04 11:18:32 Any experiance with those game engines? Any input/word of coution? Jun 04 11:19:22 hi, does someone have knowledge about qcom-omx decoder? it seems it's ignoring output format set with SetParameter. Are different output formats for h264 inputs available? Jun 04 11:20:57 it's weird, eColorFormat tells me it's using BRGA888, but if I set nBufferSize to w*h*4 it tells me it's wrong, and if I use w*h*3/2 (yuv420p) it says it's ok, but the decoded frames look wrong in the surface... Jun 04 11:23:24 Hello, I am trying to stream video from my server to my android phone. The android ApiDemo doesn't work - i get error (1,-1) I downloaded an app to my nexus one call rtspviewer --> https://play.google.com/store/apps/details?id=com.alemocni.rtspviewer&hl=en I put my link in and it worked perfectly. I have been searching the web for a while but cannot succeed getting this to work. Please Help. Thank You, Amitay Molko Jun 04 11:39:53 hi all, i am trying to use webview with javascript enabled.. do you guys have any idea.. my page would not show up, only loading page.. Jun 04 11:40:07 and in dolphin browser same thing works.. Jun 04 11:40:47 in android browser it does not work, do you have any idea how can i get hands on some custom browser.. that is too complex to write at this stage of project Jun 04 12:17:08 Hello guys, I have a listview which is doing kind of logging. But when I have a lot of strings, it starts to hang a bit and than continues and hang, it doesn't scroll smoothly. I don't use a custom list adapter, it's just a straight forward text I add to the list. Jun 04 12:18:40 Hi I am having query with ICS , My application is running and inbetween i switched off my device. When I start device again and start my application, it will resume the application from where it is being stopped. Jun 04 12:18:41 Is a custom listadapter necessary to make it smooth? Cause I thought custom adapter is more for "complex" listview, like using images and so on. Jun 04 12:19:04 I dnt want to store my application state when application shutdowns , Any idea to avoid this ? Jun 04 12:20:42 Parry_: that is not how android works Jun 04 12:21:09 but i dnt want to restore application Jun 04 12:21:21 it doesnt Jun 04 12:22:09 e.g I am on 3rd screen and after resuming application from shutdown my application will be on 3rd screen.. it is the issue with ICS only.on gingerbread it is working fine Jun 04 12:22:18 Parry_, than add this.finish() in onStop() handler. This will call onDestroy() ans closes the app. Jun 04 12:22:45 Parry_: i have never heard of an application behaving that way on any android version Jun 04 12:22:52 mine doens't Jun 04 12:23:29 what needs to be changed in order for project to be compiled against custom-built Android Library (android.jar)? Jun 04 12:23:32 I have tried that also but still it is resuming application. I tried with android.intent.action.ACTION_SHUTDOWN reciver , I have finish my application in that Jun 04 12:23:33 wongk, it doesn't matter, if he wants that, he wants that. Jun 04 12:23:46 Number5: i think you're misunderstanding me Jun 04 12:24:07 what he wants is the way android behaves Jun 04 12:24:18 what he's reporting doesn't make sense Jun 04 12:24:34 wongk, I do understand, but sometimes developers want something else. Jun 04 12:24:55 heh, no you're not following Jun 04 12:26:04 readme ? Jun 04 12:26:43 I only want to clear/ finish my application when phone is getting shutdown. so when I restart my phone, application will start newly instead of resuming from previous saved state Jun 04 12:31:37 Hi there. Does anyone know how to retrieve traffic stats from TrafficStats by tag ID? Jun 04 12:31:56 (in the same way that the DDMS network traffic view does) Jun 04 12:34:05 Can anyone help me figure out what is wrong with my Application? I get a nullpointer Exception when calling the gameCanvas.renderScreen() from Render.java Jun 04 12:34:08 Source code: http://pastie.org/4025042 Jun 04 12:36:12 mad1231999: stack trace? Jun 04 12:38:20 wongk: 1 sec Jun 04 12:38:48 android noob here. have developed a small application.. can someone peer review it for possible performance improvements? Jun 04 12:39:02 http://pastebin.com/piV0KkMG Jun 04 12:40:04 mad1231999: lockCanvas can return null for a couple of reasons http://developer.android.com/reference/android/view/SurfaceHolder.html#lockCanvas() Jun 04 12:41:18 his stack trace suggests that gameCanvas is null Jun 04 12:44:09 mad1231999: i don't see why gameCanvas would be null, have you run in the debugger Jun 04 12:44:11 to me it looks like it is the Canvas used as arg in the renderScreen call Jun 04 12:44:36 since he gets the npe when calling drawText on the canvas in renderScreen Jun 04 12:44:46 appel1: then why would the NPE be in Render.jaav and not GameCanvas.java? Jun 04 12:46:33 huh? it says at android.graphics.Canvas.drawText(Canvas.java:1368) Jun 04 12:47:19 oh, you're right, i read it wrong Jun 04 12:47:27 canvas is null Jun 04 12:48:14 hmm, or it is the null argument for paint in drawText Jun 04 12:48:17 is that really allowed? Jun 04 12:48:36 I'm using this layout : https://gist.github.com/2868083 for my activity. I load another activity inside that tabhost (as a replacement for fragments). But when I do this, I'm unable to type anything in the EditText in the parent layout. Its kinda not getting focuz. Can someone help me out to fix this? TIA Jun 04 12:49:50 mad1231999: looking at the source it doesn't look like paint is allowed to be null Jun 04 12:49:58 http://developer.android.com/reference/android/graphics/Canvas.html#drawText(java.lang.String, float, float, android.graphics.Paint) Jun 04 12:49:59 mad1231999: in the call to drawText Jun 04 12:57:20 I'm using this layout : https://gist.github.com/2868083 for my activity. I load another activity inside that tabhost (as a replacement for fragments). But when I do this, I'm unable to type anything in the EditText in the parent layout. Its kinda not getting focuz. Can someone help me out to fix this? TIA Jun 04 13:14:07 i have a ListActivity with onListItemClick() event handler. it starts different Activities (which show graphs usin org.chartengine libraries). when i click some item multiple times in a row my program crashes with NullPointerException. Here's the stacktrace http://pastebin.com/qDR7F4Kn Jun 04 13:16:07 does anybody know what Realm is used for in httpclient? I only want to set credentials on certain requests and I am wondering how I would do that Jun 04 13:16:35 realm could possibly be the answer but I can't find any resource that gives me and idea of what it is Jun 04 13:57:13 Can anyone suggest a good tutorial for simple graphics/game design for Android. I've done lots of development before, but nothing graphical/game related. Thanks! Jun 04 14:00:29 ejcweb: Like this http://developer.android.com/resources/samples/TicTacToeMain/index.html Jun 04 14:01:18 ejcweb: you might find http://replicaisland.blogspot.hk/ interesting Jun 04 14:03:45 Thanks jrock20041 & Leeds: I think the TicTacToe one looks pretty simple, but Replica Island is maybe a few steps too advanced! Do most people use OpenGL? Jun 04 14:04:18 is there a way to put a variable in a class that extends View so that it accepts setting the variable via the xml layout? Jun 04 14:04:28 Jun 04 14:04:37 something like that. Jun 04 14:04:43 furthermore, is there a way to require that xml attribute for the class? Jun 04 14:05:30 like the way that LinearLayout requires layout_width and layout_height Jun 04 14:10:52 moonlightcheese: does this help: Jun 04 14:10:54 http://stackoverflow.com/questions/4495511/how-to-pass-custom-component-parameters-in-java-and-xml Jun 04 14:11:45 moonlightcheese: throw an exception if they attribute isn't specified Jun 04 14:26:38 Is there any samble-code to get an ui like the youtube one in this? Jun 04 14:27:37 yes, search for viewpager, fragmentpager Jun 04 14:29:16 I'm using this layout : https://gist.github.com/2868083 for my activity. I load another activity inside that tabhost (as a replacement for fragments). But when I do this, I'm unable to type anything in the EditText in the parent layout. Its kinda not getting focuz. Can someone help me out to fix this? TIA Jun 04 14:29:44 Is there a way to override the listitem text color when using simple_list_item_1? Jun 04 14:30:12 you can do setTextColor(..) in .getView() but just use your own layout Jun 04 14:30:26 it's not that hard and it'll save your sanity :) Jun 04 14:31:12 Ok. Thanks Jun 04 14:34:34 Hello all. Can I *hint* the Android Browser, that a certain input[type="text"] is supposed to be a number (and the appropriate IME mode should be presented)? Jun 04 14:34:57 If I want my app to react to incoming SIP (without using the 2.3 sip framework), do I need to register some kind of custom broadcast? Jun 04 14:35:28 there is no "incoming sip" without the 2.3 framework Jun 04 14:35:32 unless you implement it yourself Jun 04 14:35:39 in which case you're the only one who knows what you need to do Jun 04 14:35:58 Lachezar: "" should work Jun 04 14:36:20 canadiancow|work: yeah, but the question is how to make the OS launch my app, without having a service running constantly in the background Jun 04 14:36:49 i have a question regarding linear layouts and layout_weights. Jun 04 14:37:05 if nothing is listening, there is no "incoming sip" Jun 04 14:37:19 http://pastesite.com/37623 Jun 04 14:37:48 i try to achieve the following: a horizontal layout sized to 60dp in the vertical direction and filling the screen horizontally Jun 04 14:38:24 in that layout there's 5 imageviews that are are resized to have height 60 Jun 04 14:38:42 canadiancow|work: yeah, but Im thinking about the same mechanism as with incoming texts or calls - android is listening for them, and sends a broadcast when needed Jun 04 14:39:10 so USE ANDROID Jun 04 14:39:13 i.e. the 2.3 framework Jun 04 14:39:17 without that framework Jun 04 14:39:18 the space between them should be filled by an imageview consisting of a single pixel horizontally and the same size as the 5 imageviews from my previous statement Jun 04 14:39:20 tapas: can you post a screenshot of what you have and a mock with what you're trying to get? Jun 04 14:39:21 there IS NO INCOMING SIP Jun 04 14:39:27 this works ok, except for one thing.. Jun 04 14:39:31 after orientation change, if i retain textured objects, they get all white. same happened before at 'battery full' event. any ideas anyone? :) Jun 04 14:39:40 some of the views are resized to be 1 pixel smaller then the others.. Jun 04 14:41:22 canadiancow|work: I did not say there is - its just the idea of sip call Jun 04 14:41:44 the idea does not exist without the support in 2.3 or your own stuff runnign in the background Jun 04 14:42:50 canadiancow|work: so I do need my custom stuff running in the background via a service? I cant make android listen to my custom stuff the same way he is listening to incoming texts? Jun 04 14:43:03 wat? Jun 04 14:46:27 canadiancow|work: Let me rephrase it - do I need a constantly running service to receive my custom sip call? Jun 04 14:46:47 yes Jun 04 14:47:22 Oh, sucks Jun 04 14:47:24 :) Jun 04 14:49:26 thanks, though Jun 04 14:50:29 using scaleType="centerCrop" fixed it Jun 04 14:51:08 When developing network-stuff that don't work on the virtual devices, is there a more practical way to test my code than to build -> copy to physical device -> install on physical device -> run on physical device? (/noob) Jun 04 14:52:09 Kvaks, yes Jun 04 14:52:16 are you using eclipse Jun 04 14:52:19 Yep. Jun 04 14:52:42 Kvaks: you can do it automatically with adb, you press f11 and it will deploy the app in your device via usb cable or wifi Jun 04 14:52:56 you can right click on the project and go to Debug As > Android application Jun 04 14:53:03 A'ight, I'll check that out. Thanks! Jun 04 14:53:18 have your device pluged in via usb and make sure usb debugging is enabled (on device) Jun 04 14:53:42 is there a way to make sofftkeyboard go over some UI elements, but not others? Jun 04 14:53:52 and make sure typing "adb devices" in the system console shows your device Jun 04 14:57:06 is it possible to write native code for android using intellij idea? Jun 04 14:57:53 sure Jun 04 14:57:58 its a text editor Jun 04 14:58:10 tapas: that makes no sense Jun 04 14:59:10 Do I need a special version of android on my smartphone to use android ndk version x? Jun 04 15:00:14 no. you just need to be compiling to the proper platform with the ndk Jun 04 15:00:23 most phones would be arm Jun 04 15:00:49 and generally you won't be doing bare ndk, you'd be combining with a standard android project & standard deploy (ie push from eclipse or adb install) Jun 04 15:00:55 mikedg: compile might have been a better word to use Jun 04 15:01:18 you can set up intellij to build via ant Jun 04 15:01:24 i dont remember how off the top of my head Jun 04 15:01:59 mikedg: ok I will figure it out, I didn't want to waste sometime if it was not possible, thanks Jun 04 15:02:10 Ok, I'll come back later when something doesn't work. Thanks for now :) Jun 04 15:02:36 Waynes: there is a pretty good hello world ndk tutorial Jun 04 15:02:50 Waynes: part of the ndk docs on the developer site, i'd walk through that first and make sure things are behaving as you expect Jun 04 15:03:01 Waynes: JNI has strict naming conventions for functions, etc, which you'll need to observe Jun 04 15:03:18 Omg. The paint was the proble, Jun 04 15:03:21 problem. Jun 04 15:03:32 I had been trying to figure it out for 2 days Jun 04 15:04:09 Really thank you appel1 and wongk!!! Jun 04 15:21:31 I'm using this layout : https://gist.github.com/2868083 for my activity. I load another activity inside that tabhost (as a replacement for fragments). But when I do this, I'm unable to type anything in the EditText in the parent layout. Its kinda not getting focuz. Can someone help me out to fix this? TIA Jun 04 15:34:49 I have a webview on a screen, and would like to completely kill it when I leave. I can trap when I leave to another screen, so that part is easy. However, when I create my WebView, I specify that it should use a WebChromeClient. When I move to a different screen, the video I'm playing with my ChromeClient keeps on playing. Jun 04 15:35:09 Is there a way to nicely shut down a webview that is using a chromeclient? Jun 04 15:36:46 I am happy to announce that I succeeded in compiling and running the hello-world-jni sample application and it was quite easy :) Jun 04 15:38:50 woooo beers on you Jun 04 15:43:00 anyone any good with porterduff xfermode stuff? Jun 04 15:44:48 Waynes: excellent. It's not too difficult, just have to play by the rules. Jun 04 15:47:03 how to publish my update to google play? do i just upload the newer version and disable the old? Jun 04 15:49:39 yes Jun 04 15:51:18 readme ? Jun 04 15:51:21 elye: you win! Jun 04 15:51:29 * larryBoy waves **** BEGIN LOGGING AT Mon Jun 04 15:56:03 2012 Jun 04 15:58:03 have anyone tried to implement custom audio player for android? I mean: not by using standard MediaPlayer. Jun 04 15:58:14 where I should start? Jun 04 15:58:45 i'm porting an ios app to android and looking for a way to do layered images for buttons Jun 04 15:59:07 is that possible in a layout, or does it require custom code to make it work? Jun 04 15:59:26 i can't find any examples of doing it with a layout - only manually in code Jun 04 15:59:50 xa0c: I have, it's kind of a pain Jun 04 16:00:14 i did it with a service to play the audio and an activity to provide a UI to the service Jun 04 16:00:59 Hmm... How did you implement this? Native player or what? Jun 04 16:04:07 The main problem with MediaPlayer, that he is full of bugs. Sometimes his behaviour dosn't follow specs. I spent last day trying to fix that but it's really pissed me off. Now I'm thinking about writing simple mp3 player that could play bytes I give. Jun 04 16:05:08 Not sure how I should do that, honestly. Using NDK, or there is simpler way. Jun 04 16:06:54 larryBoy: I think, you did another thing. :) As for yours problem, check it: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Jun 04 16:07:09 oh, i think i misread your question - you mean without using the mediaplayer class? Jun 04 16:07:17 you could do it with the ndk or i'm sure there are plenty of pure-java mp3 decoders too Jun 04 16:07:23 this is kind of what I'm trying to do: http://www.macstories.net/wp-content/uploads/2012/01/4.jpg Jun 04 16:07:23 see the buttons at the bottom? Jun 04 16:07:24 yep :) Jun 04 16:07:26 the shapes are just masks - the blue part and the glossy overlay are separate images - so instead of having to compose 2x images (default and selected for each), i'd only need 2 extra ones (the background and the gloss) Jun 04 16:08:24 have you tried the AudioTrack class? it might work Jun 04 16:08:39 dragorn: well... maybe there are decoders, but main problem, I think is the access to audio hardware. Jun 04 16:08:41 I just need some start point (except google :)) Jun 04 16:10:33 larryBoy: not sure that almost same android classes using different implementation. In my case MP crashes, and no one single action could start new player. I must to restart whole application. Jun 04 16:11:59 larryBoy: are you using tabs to achieve your buttons? if so, you would still use a state list drawable for the background using the state_selected state for when a tab is selected Jun 04 16:12:35 xa0c: https://groups.google.com/forum/?fromgroups#!topic/android-framework/GZZoBZ72dhc Jun 04 16:12:40 xa0c: writing raw pcm into the audo system Jun 04 16:13:31 dragorn: thnks. will check it. Jun 04 16:29:14 mad1231999: don't feel obliged to direct your questions at me.. Tons of other talented people are present. Jun 04 16:29:31 don't ask to ask, just ask Jun 04 16:39:02 Is it possible to disable volume control for media stream while my activity is running? Jun 04 16:40:00 king_jester: i am using tabs, yes Jun 04 16:40:51 i am trying to find an example of composing images together to get them to look right, and failing :) Jun 04 16:40:59 getting closer though, i think Jun 04 16:42:53 how can I register the same receiver more than once? after the onReceive was already called, and I have called unregister on that receiver. Jun 04 16:44:05 i have the images on top of each other - now i just need to get the top one to be a mask and then get them the right size :) Jun 04 16:46:33 hi, i have a fragment transaction taking place, hiding one fragment and showing another. When I press the back button, the hidden fragment shows up and the other one hides. Whats the correct way to prevent this behaviour? Here's the relevant code http://pastebin.com/MBLx9nxt Jun 04 16:48:54 larryBoy: cant get it. what images you have? (button_default + button_pressed)*4+tabs_background+any_button_pressed_background? 10? Jun 04 16:51:02 if so, simply set tabwidget background to xml-drawable state background. It'll work just like on picture you showed. Jun 04 16:52:22 Alright, if I have this executed. http://pastebin.com/jZ5c2C7G would that update the view to have the object I added to it? Jun 04 16:56:38 xa0c: i just can't get the images to layer correctly :/ Jun 04 16:57:41 You don't need to. If you're using TabWighet. It'll be placed to evenly fill all space. Jun 04 16:58:04 no, that's working Jun 04 16:58:21 the problem is that i can't get the masking to work Jun 04 16:58:34 like i'll get one image or the other but not one over the other Jun 04 16:58:57 by masking you mean that I called "any_button_pressed_background"? Jun 04 16:59:40 well, like in the sample image Jun 04 16:59:55 i get either the fg image OR the bg image Jun 04 17:00:15 i must have something dumb messed up Jun 04 17:01:06 what in in your's tabwidget's backgound attribute now? Jun 04 17:02:35 right now, i'm just trying to use a simple imageview - not even a tab Jun 04 17:03:16 maybe i'm just going at it all wrong Jun 04 17:04:07 do i need a layer-list drawable? Jun 04 17:04:46 wtf !! sqlite returned: error code = 11, msg = database disk image is malformed Jun 04 17:04:55 Well, yes. I said it to you: [ 20:06:52 ] larryBoy: I think, you did another thing. :) As for yours problem, check it: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Jun 04 17:07:04 ok, so i should be able to compose the tab buttons as just an imageview, right? Jun 04 17:07:12 just to keep it simple? Jun 04 17:09:05 As I said: use TabHost+TabWidget, set tabwidget's bg to default (black) bg drawable, than describe your's tabButton layout where background is xml-layred drawable, than use .setIndicator() to add such button on tabhost. Jun 04 17:09:32 Not sure it's only one possible, but one time I did it such way. Jun 04 17:11:31 hey, do any of you happen to have experience with library projects? i have three projects, two of which have no activities (just services) and are depended upon by the one with the activities Jun 04 17:11:36 Using WebView, is there any way I can control what type of keyboard input type is shown on a form field? Jun 04 17:12:07 i'd like to "combine" them into a single apk without having to significantly modify any of the projects, and i'd heard you could include a project inside another one as a library apk, but beyond that...not really sure how to proceed. Jun 04 17:13:16 i have a workspace in eclipse containing the three projects, two of which have the "is library" checkmark checked, but again, no idea what to do now :| Jun 04 17:19:24 since when does dev tools and android automatically understand the "app:" property prefix in layout xml?? Jun 04 17:19:35 That's awesome. Is it a tools r20 feature? Jun 04 17:19:44 that seems prone to errors Jun 04 17:19:49 xa0c: i'm not having a problem getting the 2 indicators to work. I'm can't get the one to look right is all Jun 04 17:20:04 the 2 indicators part is a snap Jun 04 17:20:13 the layered images is not so much Jun 04 17:20:26 dont use imageviews. all you need is tabhst Jun 04 17:20:34 tabhost* Jun 04 17:20:43 Hi, I am currently developping a little app and I have run into a problem. When I run my application using Eclipse's Run As android application, it runs fine in the android emulator. If I then terminate the app and try to start it in the android emulator from the icon, it says "App isn't installed".. Even though I just ran/installed it using Run As and the icon shows up in the android Jun 04 17:20:43 menu. Does anyway have an idea why this is happening and I can't run it directly from the menu icon? Jun 04 17:20:59 Same thing happens if I adb install from the generated apk in the bin directory Jun 04 17:21:35 try to use 'debug' instead of 'run' Jun 04 17:22:14 well my issue is that I wanna start it in the android emulator without using eclipse Jun 04 17:22:36 So I adb install it from cygwin into a running emulator and it gives me the App isnt installed Jun 04 17:22:44 I get it. I said: try do 'debug' is once. Jun 04 17:22:57 is=it* Jun 04 17:23:28 Ok, I am unsure what you mean by do 'debut' once then. In cygwin? Jun 04 17:24:16 no. you said you used eclipse for run. I suggest you use it for debug and than watch: is app still installed. Jun 04 17:24:48 ok, I will try Jun 04 17:25:11 yeah it works Jun 04 17:25:16 Does anyone know offhand where I can set the callback for one when someone clicks on an UrbanAirship push notification? Jun 04 17:25:28 using the default/basic notification layout Jun 04 17:25:42 trying to start it from the icon seems to be the only way it doesnt work Jun 04 17:26:33 i heard jellybean is being released on October 10th Jun 04 17:26:33 hi guys, do you know a repository where I could be a short description about whatever third-party libraries used in any android application, like "com.android.vending.billing", "com.facebook.android" etc. ? Jun 04 17:26:35 is this true Jun 04 17:26:44 I could find* Jun 04 17:26:55 MaaaZ: why do you want that Jun 04 17:26:59 i am unaware of something like that Jun 04 17:27:28 mikedg: for a automated risk assesment tool that I'm writing Jun 04 17:27:36 Not sure what you mean by 'start from icon', not used 'run' in eclipse also. But when I'm using 'debug' I'm able to start/stop application even after closing eclipse. Jun 04 17:28:02 if you start identifying risks based on package name, then the risky people will change package names Jun 04 17:28:38 xa0c: By start by icon I mean simply click on my application icon in the android emulator in the apps menu/window/scroll thingy Jun 04 17:29:11 mikedg: it's not the only criteria, but it targets end-users, so a short description would be nice Jun 04 17:29:28 tbh, it's not even a criteria Jun 04 17:29:31 mikedg: As I know you can not change signed package name. Am I wrong? Jun 04 17:29:45 I've got a ViewPager in a RelativeLayout, set to layout_above some other view. That other view is set to layout_alignParentBottom=true. The issue I'm having is that if I set that other view, to Visibility.GONE or INVISIBLE, the ViewPager doesn't seem to draw…it gets all out of whack and I just see white…Any ideas? Jun 04 17:30:06 ampoz: well, than it works for me when eclipse deploying app by 'debug' Jun 04 17:30:49 Yeah I figure it normally works, I was wondering if anyone had an idea why it wouldnt with my app =/ Jun 04 17:31:07 as in if someone had that problem before... can't seem to find on google Jun 04 17:32:29 If you still have such problem, try to uninstall your app using adb. Sometimes eclipse renames packages on deploying (to pkname-1.apk or so), I had it once. Jun 04 17:33:10 ok I will try that, thanks! Jun 04 17:33:28 use ddms to find out your's app package name, btw Jun 04 17:33:43 ok thanks Jun 04 17:34:08 ofc your app's package name is what it says in its manifest.... Jun 04 17:34:31 yeah, I meant apk file name. Jun 04 17:38:50 ctate: someone was in here the other day asking about dynamically expanding permissions after install. The best I could think of was a helper app with, say, contact permissions, which then has a permissioned interface to talk to the base app. Is this considered kosher, or is that a weird permissions dodge that would be frowned upon? Jun 04 17:39:20 ctate: I liked his idea of having the base app with minimal permissions and then expandable later if you wanted to let it manage contacts Jun 04 17:43:16 dragorn: base app should have install_packages permission, than. no? Jun 04 17:44:13 it's hosher Jun 04 17:44:19 no Jun 04 17:44:23 just put everything in the market Jun 04 17:44:34 dragorn: it won't work, in practice Jun 04 17:44:37 i'd be weary of downloading 3rd party shit Jun 04 17:44:40 the CM folks tried it at one point Jun 04 17:44:55 basically apps are crashy all over Jun 04 17:45:10 ctate: why havent you guys fixed those bugs? Jun 04 17:45:24 ctate: i was envisioning a specific "xyz app contacts helper" rather than a gernericized permissions expansion Jun 04 17:45:26 it's possible that at some point we'll have an official concept of "optional" permissions a la optional device features, but not timetamble Jun 04 17:45:29 *timetable Jun 04 17:45:49 ctate: xyz app sends you to the market to download the helper Jun 04 17:46:05 dragorn: that's another approach although passing temporary permissions to other apps is a PITA to try to get right Jun 04 17:46:46 i think he's just talking about you have 2 apk's, the second one has contacts permission and has a bindable service Jun 04 17:46:58 if you install the 2nd apk, the first one binds to that service and does contacty shit Jun 04 17:46:59 mikedg: yeah that's basically my thought Jun 04 17:47:02 yeah Jun 04 17:47:07 but that's pretty skeevy Jun 04 17:47:09 I didn't expand it beyond the basic thought Jun 04 17:47:12 ctate: see that's what I wondered Jun 04 17:47:20 you've just done an end run around the contacts permissions Jun 04 17:47:24 yes Jun 04 17:47:33 though if you lock the service intents down so only your other app can bind it Jun 04 17:47:38 it's not doing anything you didn't tell the user about Jun 04 17:47:43 sure Jun 04 17:47:44 that's how locale plugins work don't they Jun 04 17:47:46 but it sure looks weird Jun 04 17:48:00 but if it's just for your app then why not just state in that app's manifest that it does contacts, and off you go Jun 04 17:48:12 i didn't go beyond the "here's an idea, wonder if it'd do the trick" stage, was wondering what the semi-official opinion would be Jun 04 17:48:16 my opinion is that youll confuse more users by doing multiple apk's than you will lose by having one apk with a million permissions Jun 04 17:48:18 ctate: don't know, wasn't my app I was trying to do it with :) Jun 04 17:48:30 the whole permission system needs to be junked and rewritten from scratch anyway Jun 04 17:48:37 it's basically neigh on worthless Jun 04 17:48:44 #pedant nigh Jun 04 17:48:45 dragorn: it works, i toyed around with it while i was doing a weird thing with my notepad app Jun 04 17:48:48 but i never finished it Jun 04 17:48:51 "neigh" is what a horse says Jun 04 17:48:51 * pragma- horses around. Jun 04 17:48:53 :) Jun 04 17:49:05 whores around Jun 04 17:49:13 ctate: someone else in here wanted a minimum-permission model w/ the ability to add on to it, was wondering if that was a koser way to go from a semi-official opinion or if it was a weird enough dodge around permissions that it'd raise flags Jun 04 17:49:53 the latter Jun 04 17:50:46 Is there a way to have WebView load _images only_ from cache while always loading the network source, scripts, and stylesheets? Jun 04 17:51:31 anyone know what format adb backup outputs in off the top of your head? Jun 04 17:52:10 under the covers it's essentially pax, run through zlib compression and optionally AES-256 encryption Jun 04 17:52:19 ctate: that's cool. it's nothing I need to do in my apps for myself right now, good to know it's probably not worth pursuing ;) Jun 04 17:52:37 i need to write some host-side tools to convert to/from straight pax Jun 04 17:52:47 but ughghghghgh openssl Jun 04 17:53:29 i want to grab a few things from it without having to restore it :/ Jun 04 17:53:47 (pax is an extension format to tar; there's a special pseudo-filetype marker that means the entry is an extended pax header for the following file entry, etc) Jun 04 17:54:12 it's trivially easy to convert to pax format as long as it isn't encrypted Jun 04 17:54:28 yeah no encryption for my backup Jun 04 17:54:29 parse out the header; what follows is a zlib raw stream containing a pax archive Jun 04 17:54:41 (the header tells you whether it's encrypted etc) Jun 04 17:55:33 thanks Jun 04 17:57:30 mikedg: http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/BackupManagerService.java;h=4d5e0a6488442a4f5f3f92cc4c15fd9d19d1c9ec;hb=master#l2385 Jun 04 18:00:11 Hello Jun 04 18:00:18 Hello. With the SDK port for Thunderbolt -- any stable (data/voice) working ICS mods out yet for it? Jun 04 18:00:50 bholzinger: you want #android-root or a CM channel, not this one. this one -- like it says in the channel topic -- is for application development. Jun 04 18:01:00 r Jun 04 18:01:19 ctate: Thanks, apologies. Jun 04 18:03:09 android has support for any adaptive stream method? Jun 04 18:08:23 anyone here tried spring-android yet? Jun 04 18:08:23 hi there, i understand that on device rotation android deletes the current activity and recreates it by default, and if i have different layout, res file... it will automatically loads them from layout-land.... Jun 04 18:08:39 but is there a way to force android create antoher activity instead of the current one ? Jun 04 18:08:39 yes Jun 04 18:08:45 asterisk-Tester: no Jun 04 18:08:50 why would you want that? Jun 04 18:09:47 evancharlton: he's clearly a tester Jun 04 18:09:47 evancharlton: is there a way 2 define 2 activities with each one of them having its own oncreate() method, and force activity1 to load when in portrait mode, and activity2 load in landscape mode ? Jun 04 18:09:53 and coming up with some inane test Jun 04 18:10:08 "what happens if I'm on the moon, is there a configuration change for gravity changes" Jun 04 18:10:32 :D Jun 04 18:10:33 asterisk-Tester: why would you want to do that, thats not a typical use case Jun 04 18:10:54 maybe astronauts have smartphones, too? Jun 04 18:11:09 asterisk-Tester: no Jun 04 18:11:52 mmm Jun 04 18:13:49 evancharlton: everything is possible Jun 04 18:14:32 mikedg: I can't wait for you to check the configuration in onCreate() and call startActivity(..); finish(); as appropriate Jun 04 18:15:00 :) Jun 04 18:15:06 modify the framework Jun 04 18:15:16 add new configurationFlags to the manifest Jun 04 18:15:31 that specify which activities to load in which configurationCases Jun 04 18:15:45 is it possible to use android tools for eclipse to extract the styles from layout xml to styles.xml Jun 04 18:15:48 ? Jun 04 18:15:56 asterisk-Tester: have you looked into just putting something in layout-land and layout-port Jun 04 18:16:01 AlCapwn: yes Jun 04 18:16:12 i can't find it birbeck, help! :) Jun 04 18:16:34 AlCapwn: Refactor > Android > Extract style Jun 04 18:17:06 thanks, i was looking in the right click menu Jun 04 18:17:18 any spring-android users? Jun 04 18:18:00 mikedg: yes yes Jun 04 18:18:47 i think i might have found a solution, adding test for portrait and landscape in 1 onceate and in case of landscapeput the code from the other activity in it... Jun 04 18:20:13 btw any idea how this is done : http://developer.motorola.com/docs/Handle_Screen_Rotation/ the youtube section Jun 04 18:20:58 how can i clear any flags? this is what i set up earlier and would like to clear it "getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);" Jun 04 18:22:35 they probably use layout-land... Jun 04 18:22:54 they explain it right below the pictures Jun 04 18:22:55 Specialized layouts for portrait and landscape go in separate folders in your Android project, res/layout and res/layout-land. You can also create separate folders for drawables (such as res/drawable, res/drawable-port, and res/drawable-land) or values (such as res/values, res/values-port, and res/values-land). The PhotoStream sample app (Romain Guy, Google) is a good example of this. Jun 04 18:24:35 f2prateek: there's a clearFlags() method on Window for the reverse operation Jun 04 18:24:47 mikedg: did I call that or what? Jun 04 18:25:11 he needs an asshat Jun 04 18:25:18 i recommend a Fedora for his ass Jun 04 18:26:21 ctate: thanks, exactly what i was looking for! Jun 04 18:28:00 mikedg: yes, but 1-the photostream app is not available anywhere on the net anymore, 2-it is not just about layout repositionning, in portrait there is no video player , just images and text but in landscape there is a video player Jun 04 18:29:01 layout-land and layout-port can contain radically different layouts Jun 04 18:29:26 s/radically/ENTIRELY/ Jun 04 18:30:12 asterisk-Tester: if you're trying to have different activities per-configuration, you're doing it so very wrong Jun 04 18:30:21 vplayer = findViewById(R.id.vplayer); if (vplayer != null) { ... } Jun 04 18:30:23 like, I can't even express how wrongly you're doing it. Jun 04 18:32:08 your doing it wrong, like 2 ******* trying to ***** in their ***** with no ******* while *******ing all over their ****** Jun 04 18:32:20 worse than that? Jun 04 18:32:36 Way worse Jun 04 18:32:44 hello all Jun 04 18:33:09 birbeck: thx didnt think of that, will try it Jun 04 18:34:20 and thats why you never pay the troll toll Jun 04 18:36:42 any 1 know how i can can get the android market installed on the emulatior Jun 04 18:38:08 you dont Jun 04 18:38:21 you can side load apps on it of course Jun 04 18:38:31 why do you want to install the market Jun 04 18:39:03 im trying to get go luancher installed so i can make theames Jun 04 18:39:29 but i have no way of obtaning the goluancher apk Jun 04 18:40:02 do you not have another android phone with market (play store) access? Jun 04 18:41:09 i do but idont want to have to continue pushing stuff to my phone Jun 04 18:42:24 i would imagine, if you are developing go launcher themes, you probably use go launcher yourself, just an assumption i guess Jun 04 18:43:28 waht is the pont of having a emulatior if you have to compile and install your theam to a real phone just to veiw chages Jun 04 18:43:32 changes Jun 04 18:43:57 you can easily pull the apk from your own phone and sideload it on the emulator Jun 04 18:44:14 ok Jun 04 18:45:13 if the app using google licensing service or c2dm, then you need to use the google apis version of the platform on your emulator Jun 04 18:45:23 then you can add your google account to the emulator Jun 04 18:45:45 ok Jun 04 18:48:11 any idea how to trace calls to all the native methods my Android application could possibly make? Jun 04 18:49:11 just through your own JNI bridges, or all of them ever? Jun 04 18:50:19 ctate: all Jun 04 18:50:38 ctate: like those made by the Binder class Jun 04 18:51:10 ctate: or any other, either directly from my app, or from the Android Library Jun 04 18:52:05 you basically can't trace JNI calls unless you modify Dalvik itself Jun 04 18:52:12 what are you actually trying to accomplish? Jun 04 18:52:30 ctate: stub all the native methods calls Jun 04 18:52:49 yeah but to what goal? Jun 04 18:52:50 i think he was in the other day and his reasoning was not incredibly stupid Jun 04 18:53:06 ctate: so I can run Android app on a different JVM Jun 04 18:54:14 you mean "on a JVM," since it doesn't run on a JVM *now*... :) Jun 04 18:54:15 I'm trying to gap the bridge between Dalvik and Java Path Finder (another JVM) so Android apps can be model-checked with JPF Jun 04 18:54:37 JNI is the least of your issues; remember that android apps are not in java bytecode Jun 04 18:55:41 ctate: but I could use .class files that come out of ant compilation process, right? Jun 04 18:55:55 for your own apps, certainliy Jun 04 18:56:20 (and obviously you'd have to build the Android OS itself too if you go that route) Jun 04 18:56:25 ctate: you mean, for any app which has its source publicly available? Jun 04 18:56:45 you'll either have to recompile dex bytecode to java bytecode, or build everything direclty from source Jun 04 18:56:48 take your pick :) Jun 04 18:56:58 [and recompilation may or may not be legal, remember] Jun 04 18:57:16 ctate: I'll deal with free software only Jun 04 18:57:36 ctate: which route would be easier? Jun 04 18:58:19 does android support devices without a speaker? Jun 04 18:59:23 mikedg: Is that an accessibility question, or a standards compliance question? Jun 04 18:59:53 I was thinking of taking Android source code, stubbing all the native methods calls in the Android Library, and then compiling Android Library Jun 04 19:00:22 hey, have any of you dealt with library projects in eclipse? i'm unsure of how to add these two other library projects to my main, non-library project Jun 04 19:01:43 Escherial: right click on the project and choose Properties > Android, in the bottom click Add Jun 04 19:03:08 birbeck: attempted that, nothing shows up even though the other projects are library -- er, wait, i should probably attempt to build them first Jun 04 19:03:46 make sure the other projects have 'Is Library' checked on that same page Jun 04 19:04:45 birbeck: right, somehow the "is library" box came unchecked...checked them, and viola, there they are. :) Jun 04 19:05:32 Gumboot: standard thing Jun 04 19:05:32 thanks for the advice :) out of curiosity, does making the other projects references of the main project do anything, or is that just so eclipse has some idea of the dependency structure? Jun 04 19:05:47 like if you just didnt put speaker hardware in, do you think you would still be able to adjust the volume? Jun 04 19:06:01 hm, anyone know if the new android instapaper client uses ABS ? Jun 04 19:06:23 anti-break system? Jun 04 19:06:41 * Deifyed is funny when he is funny Jun 04 19:07:06 mikedg: i don't see why not Jun 04 19:07:36 instapaper, lol Jun 04 19:07:51 Presumably system volume could be mapped to something less obvious. Jun 04 19:08:40 thats like saying you cant stop a song from playing without connected speakers Jun 04 19:08:46 Subtitle font size or something. Jun 04 19:09:27 birbeck: and one last question, if i may bother you again. adding projects as libraries to a main one will cause the components (services, activities, etc.) to be available to the main app as though those applications were installed independently, right? Jun 04 19:09:33 I was suprised at how unclear some labelling is when you try to stop music when the speakers are not connected. Jun 04 19:09:46 The general problem of "is this button showing me state or intent?" Jun 04 19:10:09 So in that sense, I did have difficulty stopping a song from playing because the speakers were not connected. Jun 04 19:10:21 Escherial: they become a part of your application, they are not installed independently... you need to add the activities to your manfiest Jun 04 19:10:27 a good button changes into a pause button when the song is playing Jun 04 19:10:41 leave no room for error Jun 04 19:10:57 g00s: Mobelux knows Jun 04 19:11:01 What leaves no room for error is having buttons which never change, and do the same thing every time you hit them. Jun 04 19:11:08 Then you just hit stop, regardless of the current state, and things stop. Jun 04 19:11:16 birbeck: ah, that makes sense. do the manifests in the library projects need to change at all, or just the 'top-level' manifest? Jun 04 19:11:17 Or fail to start. Jun 04 19:11:38 this leaves room for error - what happens if you press play when the song is playing Jun 04 19:11:49 It plays. Jun 04 19:11:52 Escherial: no, the manifest for the libraries dont need to change Jun 04 19:11:57 but it is already playing Jun 04 19:12:06 That's fine. Jun 04 19:12:11 so nothing really happens? Jun 04 19:12:18 ADT20 introduces support for manifests to inherit declared things from library projects Jun 04 19:12:20 FYI Jun 04 19:12:23 i'd say thats an error, having a button which doesnt do anything Jun 04 19:12:27 Sometimes people take "play" to mean "play from start". Jun 04 19:12:36 that's pretty rare Jun 04 19:12:37 its ambigious then at best Jun 04 19:12:41 What exactly is erroneous about that? Jun 04 19:12:49 Is it an error that my mouse has three buttons? Jun 04 19:12:52 buttons which doesnt do nothing shouldnt be there Jun 04 19:13:06 Sometimes my mouse buttons do things. Jun 04 19:13:17 One of them used to glow, but I took a soldering iron to it. Jun 04 19:13:36 well most of your buttons have some kind of functionality i hope Jun 04 19:13:43 So does a play button. Jun 04 19:13:44 the play button will never do anything when a song is playing Jun 04 19:13:48 afaict the most common pattern is for play/pause to be a single button that toggles operation, then optionally having a dedicated 'stop' button; plus of course track forward/back buttons. Jun 04 19:15:21 It's pretty popular, yes. Jun 04 19:15:33 so, do you have any method calls tracking/intercepting tools to recommend? Jun 04 19:15:37 Although I think the casette standard was pause or no/pause, and play was separate. Jun 04 19:15:52 Wait... why would that be? Why not just un-play? Jun 04 19:16:07 Dumb beginner question. If I want to write my own getView() method, how do I wire that up with an array adapter? new ArrayAdapter(this,android.R.layout.simple_list_item_1, listItems); Jun 04 19:16:16 Gumboot: imagine that in some kind of strange world the user would listen to music about 80 - 90% of time the music application would be running Jun 04 19:16:31 this means that 80 to 90% of the time where this button is visible, its useless Jun 04 19:16:35 birbeck: breaking my promise here somewhat, but it seems that the main app communicates with these library's services via aidl. now that they're all in the apk is this still necessary, or should i invest time to change it? Jun 04 19:16:45 Gumboot - the pause was used when recording and when playing. Jun 04 19:17:07 i have a rudimentary idea of how binding to a service vs. using intents to control a service works, but i've never used aidl Jun 04 19:17:09 Deifyed: 80-90% of the time I don't pres the tilde key. Is its presence erroneous? Jun 04 19:17:30 Gumboot: it always has a function, even if you don't press it Jun 04 19:17:33 Escherial: add the services to your manifest if you need to, the services arent going to start up on their own Jun 04 19:17:38 Deifyed: No it's not. Jun 04 19:17:45 you dont need AIDL if it's a local service right? Jun 04 19:17:54 Lots of applications have nothing useful to do when I press it. Jun 04 19:18:01 mikedg: no Jun 04 19:18:12 i'd prefer to modify as little as possible in these projects since i didn't write them Jun 04 19:18:41 Gumboot: its still a function even if its in your usage useless Jun 04 19:18:50 Umm... Jun 04 19:19:00 Escherial: if they are meant to be used as a library project, you (usually) dont need to modify them, see if there is any docs on specific implementation of those libraries Jun 04 19:19:05 Where's your distinction between a play button and a tilde key again? Jun 04 19:19:28 your ideal play button didnt have a function while playing a song Jun 04 19:19:44 Making it erroneous, as I understand you. Jun 04 19:20:01 Well, in my opinion of erroneus yes Jun 04 19:20:06 birbeck: the docs would amount to me jogging over to the next cubicle, heh...fortunately, the main app and library apps were designed to work together, just as standalone apps (for ease of upgrading, mostly) Jun 04 19:20:27 Then my tilde key should be erroneous in your opinion, too. Jun 04 19:20:31 now we're deploying these components together without the need to flexibly upgrade them, hence this whole library snafu Jun 04 19:20:34 Because when I'm playing a song, it doesn't do anything. Jun 04 19:20:49 no, theres a difference. your tilde has a function 90% of the time Jun 04 19:20:57 your ideal play button does the opposite Jun 04 19:21:14 How can I override getView() on an ArrayAdapter? There isn't a .setOnGetView() method like I'd expect. Jun 04 19:21:20 * Gumboot tries to imagine the opposite accent of ~. Jun 04 19:21:40 Xonk: setAdapter( new ArrayAdapter() { overhide here } ); Jun 04 19:21:49 thanks Jun 04 19:21:54 Actually, the common case for applications with a fixed play button is to rewind to the start of the track. Jun 04 19:22:12 And the pause button is still stateful. Jun 04 19:22:33 Gumboot: i'm sorry, i was just discussing to discuss. :P Jun 04 19:23:06 I miss that button, now. Jun 04 19:23:18 I blame Apple for ruining the play button. Jun 04 19:23:20 Bastards. Jun 04 19:23:26 anyone know what units Paint#setTextSize takes? Jun 04 19:23:29 i blame apple for everything bad in this world Jun 04 19:23:35 you can touch my play button anytime Jun 04 19:23:45 too bad the world is still the same Jun 04 19:23:51 Strictly I think it was meant to be the serpent, but Apple was there too. Jun 04 19:23:59 Definitely involved. Jun 04 19:24:31 Wait, no, that's different. Jun 04 19:24:49 eve started it, stealing that apple, now apple has come to steal money from the poor, sue companies and take world dominance Jun 04 19:24:58 JaKeWHarTon: dp.. doesnt it? Jun 04 19:25:54 no idea Jun 04 19:26:13 usually methods don't take anything with dp as units Jun 04 19:26:23 and it's certainly not pixels Jun 04 19:28:55 I think it's a font size measurement Jun 04 19:29:00 which is archaic and arbitrary Jun 04 19:29:05 so if i want to ask my ceo to flex his muscles for google io tickets, should i do it in person or email? Jun 04 19:30:02 JakeWharton: sp maybe? Jun 04 19:30:46 documentation fail. anyhow, all that stuff is pixels Jun 04 19:31:01 birbeck: tell it to him in person, but come up with a really logical reason for why he should do it before hand and say it with a smirk Jun 04 19:31:51 Deifyed: um, ive never even talked to the guy face to face Jun 04 19:31:54 never had a reason to Jun 04 19:32:05 g00s: it's not in pixels Jun 04 19:32:34 i'm specifically determining the height allotted for this text and then passed that value in Jun 04 19:32:37 it was about 400% too large Jun 04 19:33:22 i guess it's probably points Jun 04 19:34:23 yeah. there doesn't appear to be any method for direct conversion Jun 04 19:35:54 birbeck: they dont care aboeu CEO's Jun 04 19:36:02 I tried getting tickets and noone bit Jun 04 19:36:08 i had to earn mine like the rest of the plebes Jun 04 19:36:45 seTextSize, takes PaintSizecules Jun 04 19:36:52 JakeWharton: y u no rtfs? Jun 04 19:37:08 the conversion from dps to it is like DENSITY*1.25/DPS Jun 04 19:37:16 it's native code Jun 04 19:37:24 i went into Paint.cpp and poked around for 5 seconds Jun 04 19:37:35 try blitting around Jun 04 19:37:40 JakeWharton: from TextView.setTextSize: Jun 04 19:37:57 Can someone tell me what I'm doing wrong here? http://pastebin.com/aLJ0JPP3 Trying to create a next TextView in getView() and set the text. The code runs fine, but either the TextViews or the text within them doesn't show up. Jun 04 19:38:07 setRawTextSize(TypedValue.applyDimension(unit, size, r.getDisplayMetrics())); Jun 04 19:38:13 why dont you just use a TextView and use a Paint and draw over eachother until they match Jun 04 19:38:14 JakeWharton: it's probably skia points or some shit Jun 04 19:38:18 fucking skia Jun 04 19:38:20 and then figure out the variables Jun 04 19:38:23 JakeWharton: i'm still pretty sure its pixels ;) Jun 04 19:38:26 unit is TypedValue.COMPLEX_UNIT_SP Jun 04 19:38:38 orly Jun 04 19:38:41 and setRawTextSize passes directly through to Paint.setTextSize Jun 04 19:38:46 birbeck: er, sorry to bother you again; let me know if this is too much. anyway, the dalvik compiler's throwing an "already added" exception due to the stub classes introduced by (i assume) the aidl bindings from the main app to the library apps Jun 04 19:39:17 ctate: so, how come this stuff still isn't documented in 2012 ? Jun 04 19:39:19 is there anything i can do about this in the main app? should i just remove the aidl bindings? i added the library app's services to the main app's manifest, for the record Jun 04 19:39:52 g00s: it's open source, send a pull to gerrit Jun 04 19:39:59 oh yeah, right Jun 04 19:40:00 that does look like raw pixels, though, so… Jun 04 19:40:22 billjings: that's perfect, except I'm on a Paint not a TextView Jun 04 19:40:24 :( Jun 04 19:40:37 raw physical pixels? ha ha sigh Jun 04 19:41:06 Don't have a Resources instance? Jun 04 19:41:23 skia doesn't know about Resources (or density) Jun 04 19:41:38 JakeWharton: Paint.setTextSize is dependent on the display technology Jun 04 19:42:00 I'm saying that you'd do e.g.: Jun 04 19:42:07 PENTILE OLED uses a 1.13 modifier, LCD uses 1.02, and CRT uses 2.01 Jun 04 19:42:10 yeah, it's sounding more and more like it's physical pixels, or skia's idea of what phyiscal pixels would be Jun 04 19:43:44 nm, got an appt to make. Jun 04 19:43:49 adios Jun 04 19:43:51 ... except no, there's code all over that does e.g. setTextSize(16) Jun 04 19:44:08 maybe it really is approximately scaled points? Jun 04 19:44:17 ctate: the canvas could be pre-scaled? Jun 04 19:44:25 oh possibly Jun 04 19:45:11 mm, okay: setTextSize() units are sp Jun 04 19:45:12 not dp Jun 04 19:45:47 ... oh argh that's TextView.setTextSize() Jun 04 19:45:49 ha ha Jun 04 19:45:52 [sob] Jun 04 19:45:52 :) Jun 04 19:45:55 hehe Jun 04 19:46:23 Hello there! Do anybody know a way to increase the (display) size of a TimePicker? Jun 04 19:50:06 http://www.fiercedeveloper.com/story/developers-need-cross-publish-their-apps/2012-05-30 Jun 04 19:50:52 this is interesting but maybe not surprising "Windows Phone 7 Marketplace are much less interconnected than the other stores" Jun 04 19:51:08 okay, traced some code Jun 04 19:51:24 looks like Paint.setTextSize() is, in fact, in raw pixels Jun 04 19:51:29 XD Jun 04 19:51:47 when you set a text size in a TextView, it multiplies the number you specify by the text scaling density, and passes the result to the Paint Jun 04 19:52:59 Yeah I think I just stumbled upon that as well Jun 04 19:53:10 i was accounting for density already operating under the notion it was scaled Jun 04 19:53:38 my defensive programming was, in fact, quite offensive to the result Jun 04 19:53:44 heh Jun 04 19:53:49 anyway, easy enough to verify Jun 04 19:54:12 Can someone tell me what I'm doing wrong here? http://pastebin.com/aLJ0JPP3 Trying to create a next TextView in getView() and set the text. The code runs fine, but either the TextViews or the text within them doesn't show up. Jun 04 19:54:53 Xonk: no layout params? Jun 04 19:55:15 are you talking about width and height? Jun 04 19:55:38 i am Jun 04 19:55:48 you may be better off inflating android.R.layout.simple_list_item_1 Jun 04 19:56:10 or simple_dropdown_item_1 Jun 04 19:57:42 I have a question about using third-party libs Jun 04 19:57:50 When I try to run my program, I see this: Jun 04 19:57:51 "Could not find class 'argo.jdom.JdomParser', referenced from method (...)." Jun 04 19:57:59 ok, I'll give that a try. thanks Jun 04 19:58:09 I did include the necessary JAR files, but it still won't run. Jun 04 19:58:13 you didn't include JdomParser Jun 04 19:58:45 evancharlton: it is listed under Referenced Libraries. Isn't that enough? Jun 04 19:59:38 It looks like this in Eclipse: http://i.imgur.com/XyVLw.png Jun 04 20:03:13 threeletteracron: look higher up in the log cat for any 'VerifyError's Jun 04 20:03:30 the class may be evicted from the class loader due to any number of incompatiblities Jun 04 20:05:27 JakeWharton: All previous log messages (with a filter in place to show only my app) are informational. Jun 04 20:05:50 "Debugger has connected", "waiting for debugger to settle..." and "debugger has settled (1450)" Jun 04 20:06:11 Immediately following those messages, I get the "Could not find class 'argo.jdom.JdomParser', referenced from method (...)." error Jun 04 20:08:43 Jake - Am I doing this wrong? convertView = mInflater.inflate(android.R.layout.simple_list_item_1, parent, false); Jun 04 20:09:23 It complains about not being able to determine the height of it's children. Jun 04 20:09:54 my daughter is 86cm Jun 04 20:10:20 http://i.imgur.com/cpTsb.jpg Jun 04 20:14:12 I got the full error log up: http://pastebin.com/2rtHDiEQ Jun 04 20:14:24 Doh. My inflator wasn't instantiated. Jun 04 20:14:40 It'd be nice if it'd return a null reference exception instad. Jun 04 20:15:04 (RadioScrobblerActivity.java:34) what is here Jun 04 20:15:25 readme: new RadioChannel("MNM", "http://mp3.streampower.be/mnm-high", new VrtFetcher("55")) Jun 04 20:15:25 http://stackoverflow.com/questions/100107/reasons-of-getting-a-java-lang-verifyerror Jun 04 20:15:30 I have no daughter Jun 04 20:15:42 VrtFetcher is the class that tries to use the external library Jun 04 20:15:50 threeletteracron: I would bet on that first answer Jun 04 20:15:54 in the question I linked you. Jun 04 20:18:01 readme: I do have both a normal version and a compacted version of that library in my path. I'll throw away the compacted version and see what happens. Jun 04 20:20:58 readme: Nope... still having the issue. Is it possible by any chance that this VerifyError you speak of happens because VrtFetcher is unable to load a dependency, therefore creating a mismatch between the compiled and runtime code? Jun 04 20:21:48 I don't know Jun 04 20:22:13 I would think that would throw a ClassNotFoundException Jun 04 20:22:18 rather than a VerifyError Jun 04 20:22:36 make sure you are building clean Jun 04 20:22:38 Hmm... here's my project tree. http://i.imgur.com/pcRx9.png Jun 04 20:22:44 that there are no stale class files. Jun 04 20:23:32 After cleaning, it still fails. Jun 04 20:23:34 VerifyError isn't thrown, only logged Jun 04 20:23:42 it will cause a ClassNotFoundException to be thrown Jun 04 20:24:29 iirc it's fine to put that jar in any directory, i.e. 'lib' but that when building against the latest we should use 'libs' as that is standard? Jun 04 20:24:45 I'm not entirely clear on this but I use libs now just as a precaution. Jun 04 20:25:13 using libs causes the jar to be deployed correctly to the device Jun 04 20:25:20 readme: after renaming argo-2.23.jar is now listed as an Android Dependency Jun 04 20:25:29 is it now in libs? Jun 04 20:25:51 lets get a clean build and try again Jun 04 20:25:55 yes, i renamed the directory from lib to libs Jun 04 20:26:05 wongk: thanks for the enlightenment Jun 04 20:26:27 Nice! It works. Jun 04 20:26:45 'libs' should probably be a default folder Jun 04 20:27:07 I mean, if everyone makes the same stupid mistake I do, that's gonna cause a lot of problems Jun 04 20:27:16 they do, and it does Jun 04 20:27:43 Well thanks everyone! Glad this is sorted. Jun 04 20:27:52 anyone watching BBC Jun 04 20:27:54 ? Jun 04 20:28:00 When I update an App, i get the system information that personal data wouldn't delete. Now my App create a SQLite Database at the first start, now i want, when the user install a update, that the database will delete. Is the database personal data? Jun 04 20:28:26 the command-line `android create project` creates the libs directory Jun 04 20:28:39 ecplise is designed to make you suffer Jun 04 20:29:03 sukramTM: no data files are deleted on update Jun 04 20:30:11 pragma-: while the command line has its virtues, I'm one of those spoilt GUI-for-everything guys Jun 04 20:30:11 sukramTM: you can compare the apk version against a version you have stored in shared prefs and do update maintenance accordingly Jun 04 20:30:22 unless you copy paste the example code and put a bunch of DROP TABLE in your onUpgrade callback, like my client's previous developer :P Jun 04 20:30:25 the command-line spoils you Jun 04 20:30:31 the gui is just a tortue device Jun 04 20:30:35 rotture Jun 04 20:30:47 it'd be easier to just drop all tables Jun 04 20:31:21 yeah but most customers don't want their data gone between upgrades :) Jun 04 20:31:59 if you mean, back it up, then re-insert it, instead of altering the schema.. then I guess that's a valid option too Jun 04 20:33:16 In the database are no customers datas Jun 04 20:34:52 sucks for you ? Jun 04 20:36:18 wongk: hey wongk , you helped me out on a force close 5 days ago, the one about the http clients, turned out to be a simple race condition on a file descriptor. In case you wanted to know. thx again for helping me out though Jun 04 20:36:23 Hmm, anyone tried Eclipse 4 with ADT? Jun 04 20:37:47 ironhalik: yes I'm running eclipse juno 4.2 adt works fine Jun 04 20:38:50 hi, how can i use org.apache.harmony in an android app? Jun 04 20:39:13 fmauro: by any chance you got it via some ppa? :) Jun 04 20:39:47 no I'm running fedora 17, it came with the distro. Jun 04 20:40:02 ah, ok, thanks Jun 04 20:41:22 hey, I'm calling notifyDataSetChanged() on an adapter and its resetting the ListView's scroll position to the top. A lot of what I'm seeing online is saying that the notify should actually keep the scroll position….so whats up? Jun 04 20:41:34 Is there any sample project that uses this type of gui, http://developer.android.com/design/media/tabs_stacked.png ? Jun 04 20:41:45 that top menu, and the tabs. Jun 04 20:43:39 whoops, I WAS calling setAdapter unnecessarily Jun 04 20:44:21 granden: action bar + view pager Jun 04 20:44:34 yo dawg, i heard you like buttons Jun 04 20:44:36 jayd16: so it retains the position? Jun 04 20:44:37 so i put in a button in a button Jun 04 20:45:05 Anyone know why I could be getting this error when attempting to download an OBB file from Google Play? com.google.android.vending.expansion.downloader.impl.DownloadThread$StopRequest: too many redirects Jun 04 20:45:14 ctate: And those are available in API 10? Jun 04 20:45:22 fmauro: yes Jun 04 20:45:59 jayd16: ah k, didn't think it would. I did something similar once and used this advice: http://stackoverflow.com/questions/8276128/retaining-position-in-listview-after-calling-notifydatasetchanged Jun 04 20:46:16 jayd16: Looks like I did it wrong then :) Jun 04 20:47:28 sigh, orientation change is too hard for some people Jun 04 20:48:32 orientation change is a royal PITA Jun 04 20:49:05 not really Jun 04 20:49:14 if you need to load a new layout or something, it works beautifully Jun 04 20:49:20 if not, you set configChanges in the manifest, and ignore it Jun 04 20:49:37 granden: ActionBarSherlock; talk to JakeWharton :) Jun 04 20:49:39 s/if not/if not, and you really don't want to recreate the activity/ Jun 04 20:49:43 and the Android support libs Jun 04 20:50:16 canadiancow|work: i think i am not aware of this manifest setting, but should be Jun 04 20:51:30 ctate: Uhm, should I use a third party lib? Jun 04 20:51:38 Oh for the older version, yes yes. Thanks. Jun 04 20:51:48 yup,t hat's what it's for Jun 04 20:52:10 so how can i avoid creating duplicate activities in the stack when im launching one with a pending intent from notificiation? Jun 04 20:52:22 ctate: Thanks a lot, will have to look inte that. Jun 04 20:52:25 "Note: Using this attribute should be avoided and used only as a last-resort. " Jun 04 20:52:46 ctate: Is it possible to include webviews in the tabs content fields? Jun 04 20:52:51 luxurymode: make the activity singleTop Jun 04 20:52:59 granden: sure; they're just views Jun 04 20:53:04 ok Jun 04 20:53:20 JakeWharton: Heard you where the god that fixes everything, :) Jun 04 20:53:25 hmm sunds good Jun 04 20:53:29 thanks JakeWharton Jun 04 20:54:03 granden: I just try to fix things that I think need fixing. Jun 04 20:54:12 yeah, awesome! Jun 04 20:54:39 hmm, ive got a fragment added with FragmentTransaction.replace()... fragment loads but I cant type in its edittext's Jun 04 20:55:01 JakeWharton: Do you have any sample project that could be used for setting up a app pretty easy? And where I can see how your code works / how to use it? Jun 04 20:55:17 http://abs.io and http://abs.io/github Jun 04 20:55:45 there are three or four sample projects each with a bunch of examples Jun 04 20:55:56 there are videos on the website and an FAQ Jun 04 20:56:03 awesome! Jun 04 20:58:25 is there an equivalent to singletop without defining the activity that way in the manifest…? in my particular case the manifest options not gonna work for me Jun 04 20:58:30 JakeWharton, btw awesome project Jun 04 20:58:58 thanks. I strongly urge you to "watch" it on GitHub so I can overtake the #5 watched Java project overall :P Jun 04 20:59:04 lol FLAG_ACTIVITY_SINGLE_TOP yup Jun 04 21:00:52 JakeWharton: oh, i had a question actually... i've got a prefs extended from sherlockprefsactivity... when I go into a second preferencescreen i lose the actionbar. This just how it is? Jun 04 21:01:16 Damn it, it was working last week fine… now all of a sudden I am getting too many redirects when attempting to download from Google play... Jun 04 21:01:17 Watching it already :P Jun 04 21:01:30 Anyone have any recommendations or can confirm it is a problem? Jun 04 21:02:06 dragorn: this? https://github.com/JakeWharton/ActionBarSherlock/issues/447 Jun 04 21:02:49 JakeWharton: ah, yes, that'd be it. Sorry, high on cold meds today. Jun 04 21:04:56 Hello, I am trying to stream video from my server to my android phone. The android ApiDemo doesn't work - i get error (1,-1) I downloaded an app to my nexus one call rtspviewer --> https://play.google.com/store/apps/details?id=com.alemocni.rtspviewer&hl=en I put my link in and it worked perfectly. I have been searching the web for a while but cannot succeed getting this to work. Please Help. Thank You Jun 04 21:11:03 hello. which is the easiest way to generate an html file ? Jun 04 21:11:47 the easiest way is by doing it in code Jun 04 21:12:24 which class/lib should i look at ? im newby sorry if its simple..:) Jun 04 21:13:02 do I dare ask why you're generating an html file? Jun 04 21:13:34 j0p: well, I'm talking about simply doing: Jun 04 21:13:40 im making an application for use at work. i must generate a file to present to customers given some input values Jun 04 21:14:07 ""+helloWorld+"" Jun 04 21:14:19 if you want a template engine or something like that Jun 04 21:14:28 i want to make it in html to have formatting (seems easier than .rtf or am i wrong?) Jun 04 21:14:58 better to just use a textview tbh Jun 04 21:15:06 unless your formatting is very complex Jun 04 21:15:21 and unless it's meant to be sent anywhere Jun 04 21:16:01 no its not complex at all. but i must be able to send it through email.. Jun 04 21:16:17 j0p: can you give an example of how this would look? tables only, of graphs, what is it? Jun 04 21:16:47 nono really simple formatting.. just font style, font size and font allignment Jun 04 21:16:59 JakeWharton: The best thing I read about your ActionBarSHerlock so far is, "Can you add functionality *X* to the action bar?" NO! :) Jun 04 21:17:24 haha well people seem to think that it's a standalone library and not just a back port of the Android action bar Jun 04 21:17:33 so if you want a feature, get it added to android first! :) Jun 04 21:17:45 j0p: well it will not be too hard at all then. you are simply writing streams in a predetermined structure. should be very doable Jun 04 21:18:18 No not that I want, but I like the ideo of actionbarsherlock more and more. Just expanding it to more devices, not expanding the actionbar it self. Jun 04 21:18:44 yes..actually its not just that. i want to but custom tags in html to "save" the input values and be able to parse them to get them back Jun 04 21:19:00 i did it in a win mobile application long ago..i want to recreate it in android Jun 04 21:19:46 i save the file, which is the final file to give to customers. they open and read what they're supposed to read but i must be able to open the same file and get this values in custom tags Jun 04 21:19:50 sorry for my poor english Jun 04 21:21:17 j0p: yes I understand. well if it's just a small amount of data you can just write it in your run-of-the-mill parseable format as a string in the html, in a div, that you display:none through some css :) Jun 04 21:22:18 and what should i do to parse the html file and get these values ? XmlReader ? Jun 04 21:24:47 j0p: I don't know how complex your data is, but if you have complete control over the html output you could save yourself the trouble and overhead of huge libs and just work with the strings. This is not recommended procedure ofc, but a small app for the office, that's what I would go for. Jun 04 21:24:53 j0p: lxml does a nice job of parsing html Jun 04 21:25:03 j0p: or that. Jun 04 21:25:13 thanks men :) Jun 04 21:25:53 you had a .5*.5 = .25 chance of being right, heh (disregarding gender prevalence in the field) Jun 04 21:26:06 in my case, you are Jun 04 21:26:10 ehehh Jun 04 21:26:14 same here Jun 04 21:27:08 well it was .5 i would have been surprised to know a female "mauro" Jun 04 21:27:09 :) Jun 04 21:28:33 :3 Jun 04 21:31:06 JakeWharton: Probably a really stupid question, but I tried looking through actionbarsherlocks website but could not find anything, when importing the library folder in the .zip file of abs, a lot of functions get an error message Jun 04 21:31:18 saying it should override a super type function Jun 04 21:31:30 project properties > java compiler Jun 04 21:31:34 set compliance to 1.6 Jun 04 21:31:39 ah Jun 04 21:32:09 assuming you're using Eclipse Jun 04 21:32:51 JakeWharton: Yes I am. Jun 04 21:33:25 thought it would be a good idea to use eclipse when working/learning android development as that seams to be pretty much generic. Jun 04 21:35:39 yeah it's good enough, just not great Jun 04 21:36:20 what would you recommend then? Jun 04 21:37:26 i'm also new, and started with eclipse. some things i moved to the maven build system this week Jun 04 21:38:05 basically everything that does not directly use android builds with maven now. i think you can even use maven to dev for android Jun 04 21:38:28 but i'm not gonna ditch eclipse, it's just a great ide Jun 04 21:39:12 so, i'm trying to make these two apps that only expose services libraries of my main app; i've got as far as adding them as libraries, but the issue is that the main app ordinarily communicates with the service-exposing apps via aidl Jun 04 21:39:19 Ok, will look into that, eclipse without maven is still good enough for me. Jun 04 21:39:32 now that they're all in the same apk, i'm getting "already added" errors when it tries to create the stub for the service binding Jun 04 21:39:38 any idea what i can do to resolve this? :| Jun 04 21:39:59 should i just remove the aidl files from the top-level app? Jun 04 21:42:09 granden: yes, it's good enough. but maven integrates into eclipse, and for me, i improved my .jar consistency and some other overall design bugs Jun 04 21:42:37 granden: but learning it was... a bit of a curve, but the #java ppl are helpful Jun 04 21:42:46 okej Jun 04 21:42:56 Younos: on what server is that? Jun 04 21:43:07 I am in a #java channel that only gives people shit :) Jun 04 21:43:18 oh. ##java here on freenode Jun 04 21:43:24 yeah, wont be doing that much of stuff for android acctually so most probably just this simple app, an app with 5 view/tabs and load 5 different webviews and have a splash screen. Jun 04 21:43:24 ok well done Jun 04 21:43:46 so dont think I would need to learn maven. Jun 04 21:43:49 just for that. Jun 04 21:43:55 no true Jun 04 21:44:23 my app has a big part that is non-android specific, i use it in a few commandline tools Jun 04 21:44:41 but all the android stuff lives in eclipse Jun 04 21:45:37 i'm an old fart:) i like commandline tools, and i <3 emacs :P Jun 04 21:46:04 one day i would like to make a decent android application, and not some shit with a menu and 5 webviews. Jun 04 21:46:23 but that will be later, this is for a small project at work and they like it like this :( Jun 04 21:47:18 well if they like it, they can have it :) Jun 04 21:47:35 ncie fireworks in england Jun 04 21:47:36 nice Jun 04 21:47:38 granden: I use IntelliJ IDEA Jun 04 21:47:47 and Maven over Ant Jun 04 21:47:55 is there some national party in the UK or something? Jun 04 21:48:14 ok Jun 04 21:48:21 yeah Jun 04 21:48:24 got intellij as well :) Jun 04 21:48:26 the queens' jubilee Jun 04 21:48:29 's Jun 04 21:48:47 ok bedankt Snuffel :) Jun 04 21:48:50 utterly lost. i have no idea how to resolve these aidl issues with converting these service apps to library projects :| Jun 04 21:49:26 i've never used aidl Escherial, sorry:/ Jun 04 21:50:34 Younos: no problem; i appreciate the response, in any case :) Jun 04 21:50:51 The Android All Apps menu, is that a Grid View? Jun 04 21:51:56 is there a way to fix "sending message to a Handler on a dead thread" after intentservice? Jun 04 21:52:05 as far as i understand it, what's happening is that both sides that have the aidl file which gets converted into an interface Jun 04 21:52:27 since they're now being built into the same apk, the interfaces conflict and cause the dalvik compiler to complain viciously (with good reason) Jun 04 21:52:50 i can't just remove the aidl files, because the apps still need to communicate with each other :\ Jun 04 21:53:13 perhaps i could exclude it from the host app and just hope its accessible from the library's copy when the whole thing gets pieced together? Jun 04 21:53:25 *it's accessible, even... Jun 04 21:53:58 its worth a try :) Jun 04 21:54:16 maybe you can specify an application specific prefix at interface generation or someting Jun 04 21:54:46 i'm unfortunately not in control of that; it's handled by the toolchain automagically Jun 04 21:54:57 i will try excluding it, though :) er, again, that is...let's see what happens this time Jun 04 22:06:22 yay, i think i removed all the conflicting interfaces...let's see what happens @_@ Jun 04 22:09:28 I have created a new Android project in Eclipse and added ActionBarSherlock as a library but I now get the "Unparsed aapt error(s)! Check the console for output." error. In console I get this message and a lot of similar "/home/johdah/git/ActionBarSherlock/library/res/values-v14/abs__styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.". Anyone knows a Jun 04 22:09:29 solution? Jun 04 22:18:50 Hi, I would like it if "Google Play" could accept my ICS Android Virtual Device as a "Supported Device". Is there a way to do this? (Running Eclipse Indigo) Jun 04 22:19:27 no, you can't get at the Play store from the emulator Jun 04 22:22:01 ctate: maybe you can answer? ive been held up on this for a few hours now... added a fragment using FragmentTransaction.replace(), and now i cannot get keyboard input to the fragment Jun 04 22:22:34 when i focus the edittext, it gives focus, but no soft keyboard, when i type a key, it looses focus Jun 04 22:24:36 ctate Does that sort of suck? You'd think a coder would want to test his product through an AVD and Google-Play. Is this a dead horse already discussed a bunch? Jun 04 22:24:37 funky. Jun 04 22:25:09 richtroye: testing download-from-the-store is only a tiny piece of the puzzle Jun 04 22:25:22 sure, but. Jun 04 22:25:47 remember that it's strongly recommended that you have at least one real device to test with Jun 04 22:25:57 richtroye: plus it would make ripping apk's from the store essentially trivial Jun 04 22:26:03 at which point hey, you can verify the play store thing right there Jun 04 22:26:09 ==MDijkstra Jun 04 22:26:35 MDijkstra: how does that change how simple it is? Jun 04 22:26:43 download, then adb pull Jun 04 22:27:06 My goal is to somehow convert my Lenovo IdeaPad-A1 to ICS, probably with CM9, and I would like some confidence that that real device would be liked by Google Play. Jun 04 22:27:13 true enough, still, I can understand why one would not want to make it easier than it already is Jun 04 22:28:14 richtroye: you very likely will not get market on there Jun 04 22:28:34 which reminds me Jun 04 22:28:52 probably not the right channel, but I can't download youtube on CM9-running galaxy tab 10.1 Jun 04 22:28:58 *my CM9-running Jun 04 22:29:04 I'm on the other side of the fence, looking to install nextissue.com to continue reading my New Yorker subscription. The kind NextIssue folks up the street decommitted Android-2.3 support. Jun 04 22:29:24 richtroye: on your laptop, you will need to use either a third-party market, or proxy applications from market through your real device Jun 04 22:30:13 scrum, bbl Jun 04 22:30:15 birbeck I've downloaded and installed, and for that matter created on my own, apk packages and they do install nicely on my whatever AVDs, yes. Jun 04 22:31:01 I presume NextIssue and GooglePlay are joined at the hip, hm, maybe that is a false assumption. Jun 04 22:33:11 So... about enums, should I use them in 2 different applications (or activities) for IPC (Messenger and whathaveyou) purposes? Jun 04 22:36:36 What is the best way to send/receive data from a website? Jun 04 22:37:42 omg there *does* seem to be a NextIssue.apk and I bet it'll install on my AVD! Jun 04 22:38:08 Anyone? Best way to communicate with a website? Jun 04 22:38:17 Send and receive data Jun 04 22:39:07 since websites pretty much all operate over http i'm guessing the answer might possibly be http. Jun 04 22:39:37 SSL Jun 04 22:40:57 SPDY! Jun 04 22:42:12 jobo I like to use the command 'wget', do you know it? Jun 04 22:42:32 Unfortunately I don't, I am fairly new to the online communication aspect Jun 04 22:43:11 jobo pm me if you like so as not to disturb the channel Jun 04 23:00:44 Is there any one here who is skilled in communicating with websites/servers without direct login to the MySQL server? Jun 04 23:02:40 hello. could you help me with this question? http://stackoverflow.com/questions/10889559/draw-chart-legend-on-different-layout Jun 04 23:14:27 Jobo's question scares me :( Jun 04 23:15:03 lawl Jun 04 23:16:03 haha Jun 04 23:17:08 any idea for this question? http://stackoverflow.com/questions/10889559/draw-chart-legend-on-different-layout Jun 04 23:26:01 teehee Jun 04 23:41:28 looks like the market Bouncer will need some more work :/ Jun 04 23:41:59 What's happened? Jun 04 23:42:34 https://threatpost.com/en_us/blogs/researchers-find-methods-bypassing-googles-bouncer-android-security-060412 Jun 04 23:42:48 should be easy enough to patch, though Jun 04 23:45:03 "should be easy enough" are words that no experienced software person should EVER utter. Jun 04 23:45:11 (protip!) Jun 04 23:45:21 heh, just came across that story on slashdot just then... Jun 04 23:45:43 ctate: perhaps you are right, but it's okay to say it to a fellow developer, no? Jun 04 23:46:01 about your own app, sure. about other peoples', use only advisedly :) Jun 04 23:46:55 ctate: it's fine to utter those words if you're not the person who has to patch the flaws ;) Jun 04 23:47:07 karmically unsound :) Jun 04 23:52:51 whoami Jun 04 23:58:03 you are StPatrick Jun 05 00:03:28 hey i need some help with a custom adapter Jun 05 00:06:08 http://tinypic.com/r/2psiyy0/6 in this pic the first song is supposed to be -Pain- which it really is. if you click on "high for this" -Pain- actually plays Jun 05 00:06:22 g00s: lol, i clicked that link Jun 05 00:06:28 its like this for every item in the list Jun 05 00:06:37 g00s: and chrome tells me "Warning: This site has insecure content" Jun 05 00:06:57 also if you fast scroll tht top item stays on top Jun 05 00:07:04 http://tinypic.com/?t=postupload Jun 05 00:07:22 http://tinypic.com/r/2luz4au/6 Jun 05 00:07:45 ^ thts while its scrolling Jun 05 00:08:44 Hi, with my code here: http://pastebin.com/D259ssmF on line 268, I have this error: The method getSupportActionBar() is undefined for the type FragmentActivity. What's wrong exactly? Jun 05 00:09:02 " 99 percent of downloaded apps are not used within 30 days and of those 99 percent are not used after 90 days." hmm, i wonder if this is true Jun 05 00:09:54 spanksa tht means tht method doesnt exist Jun 05 00:10:10 hi all, I've been struggling with updating ListView backed by a custom cursor adapter for a while and I'm not sure what I'm doing is correct. I have an asynctask that is ran periodically which pulls data and stores them into my content provider. I would like the ListView to be automatically notified when new data is added into the content provider. Can anyone point me to the proper way of doing this? Jun 05 00:12:23 g00s: so 1% use it within 30 days, and 0.5% after 90 days? maybe for all the $0.99 throw away games Jun 05 00:12:45 its a stat thrown around by vc's , but i could never find the source Jun 05 00:13:14 Storm2010: why? I don't understand why, I use that code elsewhere and it works! Jun 05 00:13:31 Storm2010: elsewhere being in this same class Jun 05 00:14:40 i'm curious about this review of instapaper " Ellis Hamburger notes that using the app on a One X sticks users with a triple-whammy of navigation bars cluttering up the bottom of the screen, something my Galaxy Nexus thankfully managed to avoid." Jun 05 00:14:45 what could this mean ? Jun 05 00:15:25 try taking away the activity.getSupportActionBar() and just put getSupportActionBar Jun 05 00:15:30 *getSupportActionBar(); Jun 05 00:16:16 or MainActivity.getSupportActionBar(); Jun 05 00:17:53 Oracle sues Lodsys (finally, they aim their gun in the right direction) Jun 05 00:18:18 MainActivity being the activity where the method was created made. Jun 05 00:21:42 * g00s still doesnt know anything about the actionbar Jun 05 00:23:08 y Jun 05 00:23:12 learn it nao Jun 05 00:23:20 wait Jun 05 00:23:21 nothing to learn Jun 05 00:23:24 hehe Jun 05 00:24:46 g00s: does instapaper have bottom tabs? Jun 05 00:27:16 birbeck: just looked at the screenshots in play Jun 05 00:28:11 well, old record, but i agree with this article, just wished they identified who exactly "the frustrated developers" were, and how they measured that Jun 05 00:28:21 i saw a pick on a one x, and it had the action bar on top, and the menu soft button on bottom, but it looked photoshopped Jun 05 00:28:21 http://www.fiercedeveloper.com/story/frustrations-grow-over-ice-cream-sandwichs-sluggish-rollout/2012-05-31 Jun 05 00:28:32 birbeck: hmm Jun 05 00:28:37 im not about to install it on my one x (evo 4g lte) Jun 05 00:29:38 whats interesting from that article above, is the hw requirements (even if none are officially mentioned) for ics 4. one thing google can do to reduce fragmentation is make the next version of android play much better with low end hardware Jun 05 00:29:48 if the app is named insta* and its a long over do and no longer relevant crappy ios port, it doesnt belong on my devices Jun 05 00:30:03 that way, there will not be this differentiation between high end ics stuff, and low end whatever (Gb, etc) Jun 05 00:30:16 memory seems to be the biggest issue Jun 05 00:30:45 MDijkstra: mostly for games ported from ios Jun 05 00:30:58 but when sony ericsson says 'problems with game performance' Jun 05 00:31:27 what I suspect they actually mean is 'compatibility problems with games written for gb' Jun 05 00:32:52 so we need Sherlock equivalents for all the ICS apis :) Jun 05 00:32:58 Hello Every one, I'm attempting to display an image from the res folder to a surfaceview but the image runs of the screen of my phone when held portrate and displays normally when held landscape is there an artical i missed about scaleing an image to fit the screen regardless of orientation? Jun 05 00:35:00 I do think that this will become less of an issue as android matures though; I doubt the jump from ICS -> JB will be as dramatic as the jump from GB -> ICS Jun 05 00:35:33 just like it's not that big a deal for most users whether they're on 2.2 or 2.3 Jun 05 00:36:15 people who are moving up from feature phones don't care Jun 05 00:36:56 well, imo most people want the latest and greatest because the current version is deficient in some specific way Jun 05 00:37:28 if you ask me most people using android don't care and just have whatever came with their 2 year contract, i.e. gingerbread. Jun 05 00:38:11 It's a big deal for me, MDijkstra -- the app I love, reading The New Yorker on my Lenovo IdeaPad A1, no longer works on GB Jun 05 00:38:21 only on Android >= 3 Jun 05 00:38:42 Storm2010: thanks, with your suggested change plus a couple other changes it works fine ;) Jun 05 00:39:01 richtroye: that's an interesting move by the developer Jun 05 00:39:53 'interesting' Jun 05 00:40:26 ur welcome Spanska Jun 05 00:40:58 Blame NextIssue, then Jun 05 00:41:15 I think the New Yorker is an innocent victim Jun 05 00:41:37 NextIssue's up the street in Palo Alto, as I recall Jun 05 00:44:17 hello. can u help me with this question plz? http://stackoverflow.com/questions/10889559/draw-chart-legend-on-canvas-and-add-to-different-layout Jun 05 00:49:52 Hello Every one, I'm attempting to display an image from the res folder to a surfaceview but the image runs of the screen of my phone when held portrate and displays normally when held landscape is there an artical i missed about scaleing an image to fit the screen regardless of orientation? Jun 05 00:52:32 jeffjs: can you pastebin your lasyout.xml Jun 05 00:52:48 would help to see how you are doing this Jun 05 00:54:59 can anybody help me with a canvas issue? Jun 05 00:56:15 okay no problem Jun 05 00:58:05 jrock20041 here is it although it is not a layout.xml Jun 05 00:58:08 http://pastebin.com/5sQRdEbY Jun 05 00:58:16 i'm using a surfaceview and holder Jun 05 00:58:42 can u help me with this question? http://stackoverflow.com/questions/10889559/draw-chart-legend-on-canvas-and-add-to-different-layout Jun 05 01:01:33 jeffjs: you probably want to create a kayout for each and call based on the rotation Jun 05 01:01:47 There might be a way you can do this all in one layout though Jun 05 01:03:43 jeffjs: Here is your answer https://groups.google.com/group/android-developers/browse_thread/thread/a640da2a01bdfde5?pli=1 Jun 05 01:04:19 You have to create a layout for potarite and landscape Jun 05 01:05:00 or just measure your width and height Jun 05 01:05:02 height Jun 05 01:05:15 height > width, portrait Jun 05 01:08:35 i was thinking along the lines of t0mless, but i'm not trying to change the layout so much as the bitmap Jun 05 01:09:03 well your layout would be the same either way Jun 05 01:09:14 just a fill parent surfaceview Jun 05 01:09:19 so making two is pointless Jun 05 01:09:38 well, I guess I'm making assumptions there Jun 05 01:10:16 jeffjs you can have resource modifiers on drawable directories too Jun 05 01:10:29 res/drawable-hdpi-land Jun 05 01:10:46 res/drawable-mdpi Jun 05 01:10:47 etc Jun 05 01:11:06 and the framework will pick the best one based on the current situation Jun 05 01:16:14 hmm okay Jun 05 01:16:19 does anyone know bout a good android ui testing framework, looking at calabash or robotium at the moment Jun 05 01:19:21 okay I understand what you mean, now how would I scale the image size to fit portrait you see the image is 720*720 and my width is much smaller the app wouldn't have to use landscape just portrait Jun 05 01:21:23 i would have to decode the image then scale and encode? Jun 05 01:22:06 it should scale it automatically Jun 05 01:22:52 but it's not. Jun 05 01:23:04 and from what i understand it should Jun 05 01:23:21 depends on how you define your layout params Jun 05 01:23:32 if you do wrap_content it's going to try and draw it full size Jun 05 01:23:39 if you define a specific size in dp Jun 05 01:23:41 it should scale it Jun 05 01:24:55 but when working with a surfaceview wrap_content and fit_parent are synonymous ? Jun 05 01:29:52 nvm figured it out.....after 7 hours.... Jun 05 01:57:13 My app is taking up 7mb of ram, is that a lot for android? Jun 05 01:57:18 On an average phone, for an app Jun 05 01:58:31 the average is 6.9MB Jun 05 01:58:39 you need to optimize 0.1MB out of your app Jun 05 01:58:47 Will do! Jun 05 02:08:04 Has a competent alternative language to java appeared for android in all these years? Jun 05 02:08:55 how can i make a tile bar similar to the one in iphone (back, forward, etc) ? Jun 05 02:14:12 serban: don't Jun 05 02:16:29 serban: read the design guidelines - the part about navigation Jun 05 02:17:24 any mechanisms to check for power consuption by different apps? Jun 05 02:18:25 also, i need to start an activity(X) from an activity(A) which is in a tabwidget. But once i start X from A, X takes all the screen and i need to have the tab widget on all of my activities Jun 05 02:31:18 so either use inheritance and make a base activity class that automatically includes the tabwidget, or use the actionbar, because tabwidget is lame. Jun 05 02:32:09 i cant really use the actionbar because im developing for api level 8 Jun 05 02:32:24 that's not true at all. Jun 05 02:32:26 and actionbar is api level 13 afaik Jun 05 02:32:33 you must not have done much research Jun 05 02:32:50 perhaps, you should enlist a detective Jun 05 02:32:56 to help you find an actionbar Jun 05 02:33:37 You can control the behaviors and visibility of the action bar with the ActionBar APIs, which were added in Android 3.0 (API level 11). Jun 05 02:34:15 http://developer.android.com/resources/samples/ActionBarCompat/index.html Jun 05 02:34:18 http://abs.io Jun 05 02:34:49 ActionBarCompat is a sample, not a library. If you choose to follow it you will be doing a lot of the work yourself Jun 05 02:35:10 I would consider it functionally on par with writing your own Jun 05 02:35:55 I just mentioned it in order to communicate the idea that the android team must in some way be in favor of the concept Jun 05 02:40:44 true Jun 05 02:41:15 i concur, ActionBarCompat demonstrates how you can use the functionality and look of an action bar through the traditional menu API on pre-Honeycomb devices Jun 05 02:41:45 readme: yeah, that whole thing is weird. and if they use action bars in their main apps below ics, it would be interesting to know what exactly they use / do Jun 05 02:41:55 below hc, rather Jun 05 02:43:05 i don't really care what they do, tbh Jun 05 02:43:07 we already have abs Jun 05 02:43:09 it work sgreat Jun 05 02:43:55 i still haven't gotten around to trying it :| Jun 05 02:44:33 I'm using it in a real estate related app I'm working on. Jun 05 02:46:17 i dont understand why GB phones are still now just being announced Jun 05 02:46:21 hehe Jun 05 02:46:51 not hitting the market, being announced - Leeds tipped me off to this, but upon digging deeper, it seems LG at least Jun 05 02:47:25 I think it was specifically the Intel phones I was talking about Jun 05 02:47:47 I don't think the average user knows the difference or cares. Jun 05 02:48:27 ah ok, anyhow - optimus pro and optimus net are GB - look like arm Jun 05 02:49:32 gingerbread is pretty solid Jun 05 02:49:53 except, for those root exploits. Jun 05 02:50:21 also Sony Xperia Go & Acro S - which actually look like nice phones Jun 05 02:50:33 q3 2012 Jun 05 02:50:36 "could you give me the project JakeWharton-Android-ViewPagerIndicator-0439759 source code? i want run it on the eclipse." Jun 05 02:50:42 i lol'd Jun 05 02:51:21 JakeWharton: I get emails along the lines of "where is the source code, this file is just full of files named .cc" Jun 05 02:51:56 if he has a folder with that title then he's already downloaded the .zip from GitHub Jun 05 02:52:00 oh well Jun 05 02:52:06 dragorn: thats when you tell them, they are supposed to compiler the tar.gz directly Jun 05 02:52:15 JakeWharton: people are duuuuumb as hell on the internet Jun 05 02:52:15 gcc foo.tar.gz Jun 05 02:52:20 g00s: no kidding Jun 05 02:52:25 all of JakeWharton's projects break eclipse when trying to import Jun 05 02:52:34 you need to bash it in with a hammer Jun 05 02:52:37 that's because ADT Plugin and/or Eclipse is broken :) Jun 05 02:52:45 g00s: secondarily, i think I deserve a few degrees for all the masters projects that apparently use my code, judging from the emails. Jun 05 02:53:01 works in InteliJ, Ant, and Maven and it's in the standard directory format Jun 05 02:53:06 Pretty sure I loaded ABS into eclipse with no problem Jun 05 02:53:06 if it doesn't work in Eclipse then it's not my problem Jun 05 02:53:26 JakeWharton: yeah I had to do a lot of hammering to get the examples imported, but it was all eclipses fault. Jun 05 02:53:26 you might include a little disclaimer somewhere Jun 05 02:53:39 * JakeWharton bashes Eclipse on dragorn's behalf Jun 05 02:53:57 "Tends not to work in eclipse. Can't figure it out? Try another profession" Jun 05 02:54:07 i'm confused about eclipse 4.2 though Jun 05 02:54:18 y u eclipse so high? Jun 05 02:54:18 i mean, google solved it, but it took a bit of digging Jun 05 02:54:21 adt 20 is supposed to support it … but i thought the 4.x line was still experimental Jun 05 02:54:41 or maybe it is not ? Jun 05 02:54:50 or maybe it just supports it :) Jun 05 02:54:56 (but don't use it, or else) Jun 05 02:55:43 i'm going to extrapolate that to "don't use Eclipse, or else" Jun 05 02:56:05 and now I can say g00s says so when I tell people not to use Eclipse Jun 05 02:56:19 hehe **** ENDING LOGGING AT Tue Jun 05 02:59:57 2012