**** BEGIN LOGGING AT Sat Apr 21 03:00:00 2012 Apr 21 03:04:10 I git reset --hard HEAD and did the whole process from the start Apr 21 03:04:12 it now works Apr 21 03:04:21 the joy of eclipse + java oO Apr 21 03:06:34 Anyone know? I don't care if it takes root, I want to try to send key events to the currently open application. Apr 21 03:14:11 1fystimama: 626403 87654321 Apr 21 03:14:35 MattRb: you can probably do it with robotium Apr 21 03:14:59 anyone know if its possible to always show the text of an action bar menu item even in portrait mode? I have showAsAction="always|withText" Apr 21 03:15:22 probably by leaving out the icon Apr 21 03:15:39 readme, googled it.... doesn't seem entirely relevant? Apr 21 03:16:02 but i want the icon too! Apr 21 03:17:04 MattRb: what is not relevant about it? it lets you start an application and send events to it Apr 21 03:17:56 I'm trying to write an application that takes network messages from a computer/other device and injects keypresses. I know this sounds like hugely malicious Apr 21 03:18:13 But I just want to see if I can't fool around with getting external input on my kindle fire. Apr 21 03:18:37 MattRb: write an input module Apr 21 03:18:51 there are examples already on the Play Store Apr 21 03:19:05 Perhaps I should find a VNC server app and strip it down until it's just the input part. Apr 21 03:19:12 Actually Apr 21 03:19:16 https://play.google.com/store/apps/details?id=com.volosyukivan&hl=en Apr 21 03:19:18 They're probably incredibly complicated Apr 21 03:19:21 line 1825 https://github.com/jayway/robotium/blob/master/robotium-solo/src/main/java/com/jayway/android/robotium/solo/Solo.java Apr 21 03:19:46 looks like robotium is already making this, too: http://code.google.com/p/robotium/wiki/RemoteControl Apr 21 03:20:07 OH WOW thank you :) leslie and the source code is available via GPL Apr 21 03:20:16 \o/ Apr 21 03:21:36 Eventually I want to see if I can't get my SGSII to connect to my Kindle Fire and make the SGS II a full screen gamepad that sends keypresses when a button is pressed Apr 21 03:23:34 should be doable. you'll just have to read the input api Apr 21 03:24:30 i'm gonna get an actual gamepad soon Apr 21 03:24:32 that icontrolpad Apr 21 03:24:36 it's time Apr 21 03:25:43 Shamisen, the kindle fire has no way to connect a keypad :( so that's why I'm trying to do this Apr 21 03:25:55 I want to be able to play super nintendo without huge onscreen keys Apr 21 03:38:18 is there an intent that gets broadcasted on lost cell signal? Apr 21 03:38:49 network connectivity change or something Apr 21 03:39:34 android.net.conn.CONNECTIVITY_CHANGE Apr 21 03:40:47 leslie, ty will look it up Apr 21 03:49:27 mm any idea why getActionBar() returns null ? Apr 21 03:49:42 What is a Menu's android:menuCategory used for? Apr 21 03:50:19 does it have to do with the fact that I don't have a titlebar but I'm using a custom one ? Apr 21 03:50:38 http://stackoverflow.com/questions/6867076/getactionbar-returns-null Apr 21 03:57:53 leslie, i can't see where i would take from the class, if we now lost the cell signal or gained it Apr 21 03:58:07 Is Google Play licensing worth implementing in a paid app? Apr 21 03:58:20 define worth it Apr 21 03:58:50 Is it worth th effort to implement to an app? Apr 21 03:59:11 if your app gets popular enough it gets cracked anyways Apr 21 03:59:19 Thought so. Apr 21 03:59:22 if the extra hassle will cause more people to buy the real app Apr 21 03:59:24 i don't know Apr 21 03:59:38 Might have to think about it :D Apr 21 03:59:40 you have to go pretty lax on the LVL settings too Apr 21 04:00:03 the worst case would be that it restricts access Apr 21 04:00:06 for paying customers Apr 21 04:00:25 Yeah, so probably not worth it Apr 21 04:00:30 App is only 99 cents... Apr 21 04:00:30 lol Apr 21 04:00:39 if your app doesn't require constant internet you will have to think about saving the response Apr 21 04:00:44 so it does not need internet everytime to run Apr 21 04:01:13 Needs internet, but might just be too much hassle for a user Apr 21 04:01:20 i tried for a while Apr 21 04:01:24 cat and mouse with crackers Apr 21 04:01:26 Pickley: i think it's more useful if you want to implement a 7 day trial or something Apr 21 04:01:34 toned it down then in the end Apr 21 04:01:43 to much work on copy protection that i could have spend on improving my app Apr 21 04:01:48 Yeah, might just not bother Apr 21 04:01:49 didnt stop them in the end either Apr 21 04:01:57 Spend the time on the app instead Apr 21 04:02:08 make sure to make a free version of the app and paid Apr 21 04:02:16 dark3n: there is a certain proportion of users out there, who would figure out to push "clear data" if you tried to implement a trial using local storage Apr 21 04:02:17 heh, its a usage meter app Apr 21 04:02:23 sooo not much I could cut out for a free one Apr 21 04:02:25 will get more popular than just a paid one Apr 21 04:02:49 readme, ye Apr 21 04:03:02 copy protection is not too well on android Apr 21 04:03:17 Guess I shall leave it out Apr 21 04:03:18 I'm using ABS, I'm returning my inflated menu on onCreateOptionsMenu, but it's not appearing in the actionbar. What could I be missing? Apr 21 04:03:34 vadi2, is your menu empty? Apr 21 04:03:48 menu.xml Apr 21 04:03:52 I've added one group and one item into the group to test Apr 21 04:03:58 vadi2: if you have a hardware menu key it appears in there, not in the overflow. Apr 21 04:04:23 also, are you using getSupportMenuInflater() ? Apr 21 04:04:36 Oh yeah. It was in the hardware key. Yes, using the support Apr 21 04:04:52 i still don't know how to detect cell signal loss :| Apr 21 04:04:53 I was expecting to see the ... button in the actionbar with a dropdown of my menu Apr 21 04:04:56 vadi2: unless you make them action items, they will be under the menu key. If you run your code on a device without a menu key, it will be in the overflow. Apr 21 04:05:07 dark3n: use the ConnectivityManager. Either register for the broadcasts or hook it directly. Apr 21 04:05:16 So I shouldn't worry about it then, UI space gets saved and etc? Apr 21 04:05:29 readme, what part of it tells me if i just lost or gained cell signal? Apr 21 04:05:32 vadi2: if any of your menu items are insanely important, you should make them action items Apr 21 04:05:56 readme, all i can see is switching over from one data network to the next, but i'm intrested in the normal cell signal relevant for calls Apr 21 04:06:03 Nah it's just the 'settings' button for an app, to take them to a preferences activity Apr 21 04:06:41 dark3n: you register for the change then check extras Apr 21 04:06:43 Oh there's even a PreferenceActivity. Useful. Apr 21 04:06:49 EXTRA_NETWORK_INFO, EXTRA_NO_CONNECTIVITY etc Apr 21 04:07:12 The lookup key for a boolean that indicates whether there is a complete lack of connectivity, i.e., no network is available. Apr 21 04:07:13 vadi2: right just leave it as a menu item Apr 21 04:07:28 readme, if i have wifi and NO cell signal , it wont say "no connectivity" Apr 21 04:09:46 Hey everyone, I have a ListView "lvTournaments" and I have setup an adapter like so -- lvTournaments.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, tournamentsArray)) Apr 21 04:10:06 in eclipse, it is not showing me notifyDataSetChanged() Apr 21 04:10:24 when I try lvTournaments.getAdapter(). Apr 21 04:10:41 am I doing this correctly? Apr 21 04:10:56 msn Apr 21 04:11:04 adium used to be the shit... now its jsut shitty Apr 21 04:11:05 dark3n: http://developer.android.com/reference/android/telephony/PhoneStateListener.html#LISTEN_SERVICE_STATE Apr 21 04:11:12 that looks like it Apr 21 04:12:04 readme, ty will read :) Apr 21 04:14:31 Can I define the preferenceactivity to be launched from this menu.xml? Apr 21 04:15:42 http://developer.android.com/guide/topics/ui/menus.html Apr 21 04:16:25 Already have 3 tabs of it open! Apr 21 04:16:57 maybe you should scroll down and read one of your 3 tabs? Apr 21 04:17:05 See "Handling Click Events" Apr 21 04:17:37 It says it works in Android 3.0, but I'm not certain if that extends to the compatibility library. Apr 21 04:17:39 i have a monster of a machine, why is eclipse sometimes so slugish !!! Apr 21 04:17:48 wha os Apr 21 04:17:50 vadi2: the menu works on all version of android Apr 21 04:17:54 windows eclipse is a massive pos Apr 21 04:18:04 the onClick attribute? Apr 21 04:18:22 vadi2: read under "Handling click events" on the link I sent you. Apr 21 04:18:47 'Tip: Android 3.0 adds the ability for you to define the on-click behavior for a menu item in XML, using the android:onClick attribute.' <- does that when using ABS work in lower version? Apr 21 04:19:00 no point in using it Apr 21 04:19:12 I have no idea and I wouldn't rely on it Apr 21 04:19:51 its bad enough I use that abomination on buttons. Apr 21 04:20:01 it creates a new anonymous click listener on each button you use it on. Apr 21 04:21:19 it also uses reflection to find the method you pass it. Apr 21 04:21:38 convenience feature, to be removed later when you are polishing your app. good for rapidly developing apps that have... buttons in them. Apr 21 04:24:07 ron_frown, windows =( Apr 21 04:37:11 Is it possible to place the text under the icons in actionbar ? Apr 21 04:37:38 how come when you branch the android kernel Apr 21 04:37:53 the dir is empty Apr 21 04:40:58 how do you "branch" it Apr 21 04:41:48 aosp doesnt contain kernel source by default IIRC Apr 21 04:42:03 for 4.0, I am pretty sure all the android mods made it into the linux kernel Apr 21 04:46:06 ach not branch Apr 21 04:46:07 checkout Apr 21 04:46:21 ron_frown, whoa Apr 21 04:47:10 what kernel do they use?? The normal, unpatched linux kernel? Apr 21 04:51:29 I beleive all of the android specific shit made it into mainstream kernel Apr 21 04:51:31 BUT Apr 21 04:51:36 thats not to say your hardware works out of box Apr 21 04:51:51 and thats only 4.0+ Apr 21 04:51:54 depends on what branch Apr 21 04:54:38 http://elinux.org/Panda_How_to_kernel_3_2_rcx Apr 21 04:54:39 for example Apr 21 04:54:52 just grab kernel source Apr 21 04:55:07 there are a few hardware specific patches Apr 21 04:59:33 Okay thanks Apr 21 05:07:29 * g00s is trying to understand what this stuff is http://meteor.com/main Apr 21 05:09:27 is it basically like keeping the http socket open and sending data back and forht? Apr 21 05:10:02 i guess i should watch the screencast. Apr 21 05:10:20 i don't do web dev, so everything seems foreign to me anyhow Apr 21 05:12:06 oh Apr 21 05:12:14 I am pretty sure thats what it is Apr 21 05:12:28 long running web requests that greatly enhances the "real time feel" of web apps Apr 21 05:12:58 its a really bad idea to have a recurring alarm isn't it? better to set a one-time then update everything after that goes off? Apr 21 05:13:07 i.e. set a new alarm and handle other housecleaning stuff Apr 21 05:13:12 QubeZ depends on what you are doing Apr 21 05:13:20 if you wanted to perform some task every 30 seconds or whatever Apr 21 05:13:23 so im at a design decision... here goes... Apr 21 05:13:31 I'd think triggering new one in cleanup of old makes more sense Apr 21 05:13:41 otherwise you could have long running tasks piling up on one another Apr 21 05:13:43 on the other hand Apr 21 05:13:50 if you wanted run guarentees Apr 21 05:13:54 eg, it runs every 30 seconds Apr 21 05:14:02 may be smarter to just create a timertask Apr 21 05:14:23 in my to do app, user can set a recurring task... i only want to keep one instance of it (for obvious reasons), so user sets a daily alarm. I'm thinking either to set recurring or just set one-time. If I set one-time, then after it goes off, I can update the task to the new date (next occurrence) and set another alarm. Apr 21 05:16:05 cool Apr 21 05:16:20 does one-time make sense here then? Apr 21 05:16:20 god damn its hot here Apr 21 05:16:24 I dont know Apr 21 05:16:29 hoenstly I'd look at source for alarm clock Apr 21 05:17:08 k Apr 21 05:18:22 I'd home that'd be what google would suggest Apr 21 05:22:57 looks like they set one-time Apr 21 05:23:33 mm, I target api 14. but i'd like to also test the app for api=10. the avd manager doesn't so my 2.3. emulator though Apr 21 05:23:35 any ideas ? Apr 21 05:23:41 only set next alarm if user snoozes but in my app that would be if user snoozes or if they set the task to completed -- i'll generate a new task with the same data, updated due date/time and set new alarm Apr 21 05:24:20 Beket: you can target api 14 and still test on api 10 and it'll run as long as you dont hit any portion of your code that uses api 11+ calls Apr 21 05:24:32 so you can still run that target api 14 binary in your api 10 emu Apr 21 05:24:51 the avg manager doesn't what? Apr 21 05:24:54 avd* Apr 21 05:25:28 sorry, the 2.3 emulator shows up in AVD, but when I hit run I only see the 4.x Apr 21 05:25:35 AVD manager* Apr 21 05:25:51 Beket: do you have minSdkVersion declared in your manifest? Apr 21 05:26:12 yes, set it to 5 Apr 21 05:26:53 hmm dunno Apr 21 05:27:09 np, thanks for caring. i'll google it a bit more Apr 21 05:27:24 ya np, im sure someone more experience than I in emu may chime in Apr 21 05:27:29 I haven't used emu's in a long while Apr 21 05:29:33 there is a diff between target and minsdk Apr 21 05:32:59 god damn it its hot in my house Apr 21 05:33:02 at LEAST 85f Apr 21 05:33:06 AC Apr 21 05:33:29 its freaking 40 degrees over here still Apr 21 05:33:36 <_Auron_> according to my rubik's cube clock, it's 75.9F in my room Apr 21 05:33:38 I have an ac unit the size of my works building Apr 21 05:33:40 was nice past couple of weeks and now winter is showing up again Apr 21 05:34:15 I dont think this is even nice Apr 21 05:34:34 I have to get up early and cut weeds, as I've seen fire dept driving around making notes of peoples yards Apr 21 05:34:46 what state Apr 21 05:34:55 ca Apr 21 05:34:56 <_Auron_> the fire department? wow Apr 21 05:35:03 <_Auron_> either it's been an issue or they have nothing better to do Apr 21 05:35:11 yeah they fine you if you let your weeds get too long and dont cut em Apr 21 05:35:16 its a problem in summer time here Apr 21 05:35:24 <_Auron_> same here, I'm in texas Apr 21 05:35:29 weeds grow like a mf in spring and then you get 100f+ days in summer Apr 21 05:35:33 <_Auron_> yup Apr 21 05:35:49 I got about an acre and havent done a damn thing wiht my backyard Apr 21 05:35:52 <_Auron_> last year was bad though, we had the worst drought in decades Apr 21 05:35:55 one year my weeds were like 6ft tall Apr 21 05:36:03 <_Auron_> lo Apr 21 05:36:05 <_Auron_> lol* Apr 21 05:36:25 ron_frown: just get a goat Apr 21 05:36:32 borrow one from my inlaws Apr 21 05:36:36 QubeZ: new features? Apr 21 05:36:41 only problem is they leave by products =) Apr 21 05:36:55 probably program better than you can too; next thing the goat is deving and weeding Apr 21 05:37:01 :D Apr 21 05:37:23 I know everyone thinks I'm the most arrogant dev around... but I know I am good Apr 21 05:37:27 and what I am not good at I know Apr 21 05:37:39 readme: yup, got 2 new features coming up and lots of bug fixes Apr 21 05:37:53 recurring task being the big one, just designing now Apr 21 05:38:02 starting my game studio next week Apr 21 05:38:03 QubeZ: it was the note app, right ? Apr 21 05:38:12 g00s: To Do Mapr Apr 21 05:38:14 about 6 artists and several 3d guys Apr 21 05:38:15 yES! Apr 21 05:38:19 <_Auron_> ron_frown: sweet Apr 21 05:38:21 ron_frown: and 1 goat Apr 21 05:38:26 inlaws have 3 Apr 21 05:38:28 should hit 500 downloads in a few days, not bad for 6 weeks with no marketing Apr 21 05:38:40 QubeZ - $$$ Apr 21 05:38:40 ? Apr 21 05:38:42 QubeZ: thats great Apr 21 05:38:45 ron_frown: free Apr 21 05:38:58 I am curious as to what people really make in the appstore Apr 21 05:38:59 going to offer the web service soon, its almost ready Apr 21 05:39:03 for non mainstream apps Apr 21 05:39:14 eg, we all know what angry birds does Apr 21 05:39:18 To Do Mapr is under review for the Amazon AppStore too so hopefully we'll get more usage Apr 21 05:39:22 ron_frown: in my paid only app that launched 1 week ago, I've made $10 Apr 21 05:39:30 selling for how much Apr 21 05:39:34 $2 Apr 21 05:39:40 nice Apr 21 05:39:47 yeah i sold 8 of em Apr 21 05:39:50 my apps I've published were on behalf of clients Apr 21 05:39:51 does the kindle have bluetooth? i wonder if my app would even work on it. Apr 21 05:40:02 ron_frown: that was same with me but I got fed up so I wrote my own Apr 21 05:40:07 it's much better, more of a labor of love Apr 21 05:40:11 * readme is working on a user requested feature Apr 21 05:40:16 got my first 1-star rating today... they said they can't get connection and map doesn't load. I wish they would post more details or at least post on the website forum so we can figure out why it doesn't work for them. Apr 21 05:40:17 <_Auron_> I've made over a grand from my first android game since 2009, but a third of that is one of the Droids that Google gave me that I sold Apr 21 05:40:18 readme what is your app Apr 21 05:40:20 bleh Apr 21 05:40:22 LED Caller ID Apr 21 05:40:28 QubeZ: wtf!? Apr 21 05:40:31 oh thats rihgt Apr 21 05:40:41 who knows, im growing a thick skin about it Apr 21 05:40:48 QubeZ: add connectivity manager support and detect airplane mode asap Apr 21 05:40:53 then pop up a dialog Apr 21 05:40:58 readme: thats in there Apr 21 05:41:02 =o Apr 21 05:41:06 stupid user Apr 21 05:41:14 I'm better at building shit like jake does Apr 21 05:41:29 backend tools that make life better for software guys Apr 21 05:41:31 they must have just got a timeout from the mapping server and didn't want to retry or maybe tried once or twice and it just was a bad place at the wrong time Apr 21 05:42:12 i dont care about the rating, well i do a little but im more concerned about finding out their situation so i can put in a fix (if there's a legit issue) Apr 21 05:42:18 but i'll never know because I have no way to contact the user Apr 21 05:43:18 deep down you care about the rating :) Apr 21 05:43:19 ron_frown: do you do anything with ms technologies any more ? Apr 21 05:43:29 yes definitely Apr 21 05:43:36 well sure only from the standpoint that users care about the rating Apr 21 05:43:44 i'm kinda wondering, if i want to have a windows 8 mobile app out, when the os is ready, what the hell i have to study Apr 21 05:43:48 no one is going to download an app that is at 1.3 in star value Apr 21 05:43:56 g00s its just wpf Apr 21 05:44:19 wcf for communications, even though I couldnt possibly reccomend wcf Apr 21 05:44:25 QubeZ, it always gets me pissed off to get a rating complaining about something that just isnt true, if have had people complain about ads and push ads, even through i have no ads Apr 21 05:44:33 my tool app has been called the worst game ever :o Apr 21 05:44:51 dark3n: haha, well like I said... growing a thick skin Apr 21 05:44:58 ron_frown: all i could find was this http://shop.oreilly.com/product/0636920024101.do , although i have found plenty of wp7 stuff of course Apr 21 05:45:01 but i have such few ratings right now that a 1-star really hurts me Apr 21 05:45:01 then i just WUT Apr 21 05:45:07 honestly Apr 21 05:45:16 QubeZ, i wish i could respond to the comments Apr 21 05:45:18 what kinda market share does wm7 even have Apr 21 05:45:23 dark3n: *nod* Apr 21 05:45:23 I heard the lumia is doing terrible Apr 21 05:45:24 QubeZ, give me a link to your app Apr 21 05:45:35 dark3n: https://play.google.com/store/apps/details?id=com.controlledsenility.android.todomapr Apr 21 05:45:38 ron_frown: yeah, in the US not so bad, in the UK terrible Apr 21 05:45:43 our website is todomapr.com Apr 21 05:45:45 nokia lost a lot of money Apr 21 05:46:07 QubeZ: check your reviews now Apr 21 05:46:07 they arent doing good in the us either Apr 21 05:46:13 att is having to give them away Apr 21 05:46:19 i want to get the ratings up on the app without being a deperate looking guy asking all my friends to download and give it 5-star Apr 21 05:46:22 i want honest ratings Apr 21 05:46:24 wasn't that a technical glitch ron_frown ? Apr 21 05:46:36 i heard they were sold out at many stores Apr 21 05:46:40 QubeZ: it is an honest rating Apr 21 05:46:41 QubeZ, installed it and will check it out later Apr 21 05:46:52 dark3n: k thanks Apr 21 05:47:03 had that biatch taken the time to email help, you would have fixed it. Apr 21 05:47:12 ron_frown: but some bad juju - i heard that the current devices can't be upgraded to windows 8 m Apr 21 05:47:14 QubeZ, it better be the best game ever xD Apr 21 05:47:20 readme: i saw yours a few days ago, nothing on my reviews right now besides the 12 i have had Apr 21 05:47:23 g00s - well I wasnt even talking about that Apr 21 05:47:29 dark3n: hehe Apr 21 05:47:34 they are giving them away beause nobody wants them Apr 21 05:47:35 QubeZ: I just left another rating from another device :| Apr 21 05:47:41 readme: ahh thanks man Apr 21 05:47:54 the sad part is the technology stack is superior to pretty much anything else out there Apr 21 05:47:57 the UI just looks like shit Apr 21 05:48:02 will probably take 10 mins or so to update Apr 21 05:48:10 everyone else is going for crisp clean ui, lets make big fucking 4 bit color blocks Apr 21 05:48:11 Don't play fair at reviews because, no one does. Reviews are *always* rigged. Apr 21 05:48:15 with text you cant read Apr 21 05:48:33 ron_frown: this is the only thing i could find on at&t giving away the lumias http://venturebeat.com/2012/04/10/nokia-giving-away-lumia-900-free-until-april-21-due-to-data-bug/ Apr 21 05:48:37 readme: I understand that, I just feel weird about it. Apr 21 05:48:47 I didnt mean literally Apr 21 05:48:50 so then everyone, please download the app and give it 5-star :P Apr 21 05:48:55 I meant they've lowered the price once or twice Apr 21 05:49:02 QubeZ: thats' the right idea Apr 21 05:49:04 http://venturebeat.files.wordpress.com/2012/04/nokia-lumia-900-hand.jpeg?w=558&h=9999&crop=0 Apr 21 05:49:07 that says it all right there Apr 21 05:49:11 that is boring as all shit Apr 21 05:49:33 anyone know sites that help you come up wiht names for your next web2.0 company etc? Apr 21 05:49:36 I have a badass concept Apr 21 05:49:37 last I checked this world is not meritocratic. Apr 21 05:49:38 but def need a name Apr 21 05:49:47 something I could actually aquire the domain fr Apr 21 05:49:50 readme: sad but true Apr 21 05:50:16 my attitude is that as long as you aren't harming others, do whatever it takes to enjoy your time Apr 21 05:50:27 readme: thats a good attitude Apr 21 05:50:33 saw the review, thanks Apr 21 05:50:39 np Apr 21 05:50:43 i may need the same one day Apr 21 05:50:54 its a rough business Apr 21 05:51:40 im hoping the amazon appstore gives TDM more visibility that google play does. I saw the stats on how much more revenue is generated from appstore vs google play its astonishing. Although my app is free, its still potentially a better place for visibility than play store Apr 21 05:51:50 if you want the honest feedback the gestures on the todo list confused the hell out of me. I'd think about just switching that thing to a ViewPager or something, like in the market Apr 21 05:52:06 and the button in the top right, I expected it to be at the bottom Apr 21 05:52:32 Amazon app store is interesting Apr 21 05:52:40 the reviewers are much more brutal Apr 21 05:52:43 QubeZ: yeah, i saw those stats also Apr 21 05:52:44 I was reading a bunch of apps today Apr 21 05:52:46 you know whats sad, is my motivation to start my own dev firm Apr 21 05:52:53 readme: what button? Apr 21 05:52:58 ron_frown: that is sad Apr 21 05:53:11 and thats simply because every company i've worked for went way out of their way to make it as if our trade was that of slavery Apr 21 05:53:19 QubeZ: "add task" on my tasks Apr 21 05:53:36 but that may just be my preference Apr 21 05:53:38 readme: from a UI perspective, you think it should be at the bottom under the ListView? Apr 21 05:53:40 the gestures are definitely confusing Apr 21 05:53:47 QubeZ: yeah, a big button Apr 21 05:53:52 <_Auron_> I hate gestures Apr 21 05:54:02 whatever the motivation be, I hope I can manage Apr 21 05:54:12 QubeZ: maybe just a right and left fling gesture, but don't draw them on screen Apr 21 05:54:28 I sat there for a while prodding that to figure out what was going on Apr 21 05:54:44 readme: I'll get more feedback from people or maybe I'll put a preference where if you set Gestures "On" then there is no drop down to filter and takes up less space. Or you can turn it Off and just take up more screen space with a dropdown for filtering tasks. Apr 21 05:54:59 QubeZ: yeah. preference is good Apr 21 05:55:26 I can easily make the summary bar be a filter bar... tap it, select your filter then its applied Apr 21 05:55:49 why not do it like the market app? Apr 21 05:56:11 viewpager? Apr 21 05:56:14 yea Apr 21 05:56:30 the animation of the views moving on and off the screen makes it more obvious what the gesture did Apr 21 05:57:07 true Apr 21 05:57:20 i'll wait for more feedback before I make those design changes Apr 21 05:57:52 i do like the viewpager Apr 21 05:58:40 ViewPager is really nice to work with Apr 21 05:58:49 especially if you're already using Fragments Apr 21 06:00:13 I have a question about using instanceof, because the internet gives the same example of when it is bad and when it is good and it doesn't apply well to my situation Apr 21 06:01:06 hesperaux: it is bad to make your code rely on type checking because you should prefer polymorphism Apr 21 06:01:13 but there are a few legit uses of instanceof Apr 21 06:01:32 you familiar with the concept of polymorphism? Apr 21 06:01:35 yes i have read that many times online, but need to know how to fix this problem if i am using it incorrectly Apr 21 06:01:58 yes, the idea that many things can be X, but they may implement a function of X differently Apr 21 06:02:15 basically Apr 21 06:02:21 i have a class called Treatment that provides a name and description. Then I have Drug, Needle, Food, and Topical which extend Treatment. Each of these four subclasses have different, extra modifiers. Apr 21 06:02:42 I intend to return a Treatment from a method, but I want to know which type of treatment it is Apr 21 06:03:14 public int getType() Apr 21 06:03:21 I don't want to have to write 4 methods that return each type of treatment, as this would add lots of complexity to the code Apr 21 06:03:32 make it abstract in your base Treatment class and force your concrete implementations to implement it Apr 21 06:03:45 hmm Apr 21 06:03:51 that's actually a good way to do it. It's called a factory pattern Apr 21 06:04:02 i thought abstract was the answer, but wasn't sure how Apr 21 06:04:10 have a method build the treatment, so you hide the details of the treatment's construction from the user Apr 21 06:04:17 therefore Treatment (which I never instantiate anyway) would be abstract Apr 21 06:04:17 then you can have any # of treatments without changing the other code Apr 21 06:04:47 just make an abstract method in your abstract Treatment class called getType() and document that each treatment subclass should implement it and return an id. Apr 21 06:05:01 ok Apr 21 06:05:34 that way I can return Treatments from any method that handles them, and then programmatically handle each object according to what getType() says it is? Apr 21 06:05:56 <_Auron_> yes, in the background with protected/private members Apr 21 06:06:02 yeah, but ideally your code wouldn't need to handle them differently Apr 21 06:06:29 stuf Apr 21 06:06:32 but who cares, just get it done Apr 21 06:06:33 well, depending on what kind of treatment it is will determine whether my database entry for them resides in X or Y table Apr 21 06:06:38 too much time polishing = no code written ever. Apr 21 06:06:43 hehe Apr 21 06:06:45 oh, I see Apr 21 06:07:07 I would just stick them all in one table, but if you have a good reason not to Apr 21 06:07:10 because later, the data will be analyzed statistically, separating certain types from others Apr 21 06:07:23 Is the 50MB limit the size of the apk? Apr 21 06:07:33 And is that 50,000,000 bytes or the other? Apr 21 06:07:45 it wouldn't make sense for a Topical object (such as an application of Neosporin) to have a Dose and Dose Unit field in the database Apr 21 06:08:01 leave those null then Apr 21 06:08:17 QubeZ, hmm, i had considered it Apr 21 06:08:23 why have separate tables? if you create new treatments... you'll have to add more tables. Thats complicated. Apr 21 06:08:33 QubeZ, that's a good point Apr 21 06:09:04 even if i had to add modifiers for a new treatment, i could add a column to the table and nothing else would be affected Apr 21 06:09:05 in my app, I have one tasks table -- there are location and non-location based tasks so for non-location based I just set lat/lng to null. Apr 21 06:09:15 hesperaux: dose should be a separate table from treatment Apr 21 06:09:23 hehe Apr 21 06:09:25 hesperaux: right, you can alter that one table and affect all of your treatments instead of having to alter multiple tables Apr 21 06:09:26 you have a foreign key that relates the treatment to the dose Apr 21 06:09:46 readme, super-related linking of keys. i did that once on a website lol. i went insane Apr 21 06:10:00 ya def dose should be sep tbl Apr 21 06:10:22 nvm Apr 21 06:10:30 trentg: i dont think the size is an issue anymore Apr 21 06:10:35 didnt google up to 2G limit? Apr 21 06:11:00 it can't be 50MB. I have games that are over 200MB Apr 21 06:11:02 Yes but you have to have the apk 50MB or less plus you can have two 2GB "data files" Apr 21 06:11:13 Just found it: http://android-developers.blogspot.ca/2010/12/android-market-client-update.html Apr 21 06:11:17 hmm Apr 21 06:11:29 <_Auron_> hesperaux: where the apk is 200MB+ or the data it downloads (over wifi-only) is over 200MB? Apr 21 06:11:44 the apk itself is 200+ Apr 21 06:11:50 however they are not distributed via the market Apr 21 06:11:54 ever hear of HumbleBundle? Apr 21 06:11:58 <_Auron_> oh, yeah. Apr 21 06:12:02 ya, I meant market, sorry Apr 21 06:12:23 Anomaly is an example of a game that has a huge APK Apr 21 06:17:49 guys, apk can be 50megs, but there can be another 2 2gb files that are expansion files or something like that Apr 21 06:18:12 yep Apr 21 06:28:31 ron_frown: i hope your new company endeavor goes well; you know i'm only pulling your chain ;) Apr 21 06:32:03 I'm not stressing Apr 21 06:33:38 ron_frown: do you use git? Apr 21 06:33:48 yep Apr 21 06:33:52 like it ? Apr 21 06:33:59 definitely Apr 21 06:34:08 :) Apr 21 06:34:26 I'm no git guru, but honestly its been so much more pleasant to use than anything I've used before Apr 21 06:35:20 I love that you can do local revisions and push to origin when you are confortable Apr 21 06:47:14 has anyone encountered an issue with green blocky videos when using MediaRecorder? Apr 21 06:48:15 I've read that other people had similar problem, but haven't found a solution Apr 21 06:48:38 From inside my Thread, I am calling a handler like so: handler.post( new Runnable() {....} Apr 21 06:48:51 would the handler be considered running from the UI thread Apr 21 06:49:04 psycorpse: the handler runs on whatever thread you created it on Apr 21 06:49:22 lowering the resolution to something ultra small does "solve" the problem, but the video is the so small Apr 21 06:50:04 is it a bug? Apr 21 06:50:13 sounds like a bug to me. Apr 21 06:50:28 its probably already on b.android.com if you search Apr 21 06:50:37 I see. Any idea on how I can get a function to run on the UI thread from that handler? Apr 21 06:50:55 psycorpse: if you created the handle on the UI thread, the runnables will be run on the ui thread! Apr 21 06:51:11 if you're using an activity, you already have a handler that you can post to with runOnUiThread() convenience method Apr 21 06:51:26 cool Apr 21 06:51:31 trying that Apr 21 06:51:44 i'll try posting it on your face Apr 21 06:52:26 ron_frown: wrong channel, switch tabs for #cybersex Apr 21 06:54:52 what's the best way to get a date and time as a standard re-parseable string? Apr 21 06:55:22 thats debatable. Apr 21 06:55:27 the value is to be stored non-volitally and then re-parsed at a later time Apr 21 06:55:34 oh god definitelyu Apr 21 06:55:37 anyone presently using MediaRecorder? Apr 21 06:55:41 dates in java in general suck a fatty wang Apr 21 06:55:46 lol Apr 21 06:56:09 hesperaux: store it as a long Apr 21 06:56:13 ^ Apr 21 06:56:20 its sad because they managed to fuck it up several times Apr 21 06:56:21 that's how I'd do it Apr 21 06:56:27 java dates suck... lets replace it with a calendar Apr 21 06:56:29 just parse it when you need it Apr 21 06:56:31 calendar is even worse Apr 21 06:56:48 it's hard to screw up a long Apr 21 06:56:48 let the community do it... and its slightly less shitty Apr 21 06:56:58 as a long in what format? ctime? Apr 21 06:57:03 don't seem to find an official bug/issue Apr 21 06:57:20 ron_frown: there is date4j Apr 21 06:57:30 havent played with that one Apr 21 06:57:38 I guess I am spoiled with having used .net's date handling Apr 21 06:58:12 and which class should I use? Date? Apr 21 06:58:20 there's also this thing called Joda that may be worth checking out Apr 21 06:58:32 i'm looking for a method that outputs a long ctime or something. anyone know it off hand? Apr 21 06:58:36 joda I've used Apr 21 06:58:40 it was BETTER but not great Apr 21 06:58:44 and joda is a big ass library Apr 21 07:04:04 here's what I actually use, you can modify it to suit your needs Apr 21 07:04:07 https://gist.github.com/2435056 Apr 21 07:04:19 * hesperaux clicks Apr 21 07:04:30 hehe Apr 21 07:04:34 nice Apr 21 07:05:23 so the data stored this way can be reparsed by SimpleDateFormat? Apr 21 07:05:54 i see that it can Apr 21 07:06:01 thanks readme, this will do fine Apr 21 07:06:01 SimpleDateFormat can serialize and deserialize Date according to the format you supply Apr 21 07:06:13 np Apr 21 07:06:33 I've found date handling to be a total pain in the ass in java/android Apr 21 07:06:58 in .net you can easily create a date by doing new DateTime(mm,dd,yy,hh.mm.ss) Apr 21 07:07:09 in java it tries to do WAY too much for you Apr 21 07:07:17 and a lot of stuff is just weird Apr 21 07:07:27 like 0 vs 1 based indexes for months vs day of month Apr 21 07:08:05 gotta work with it, though Apr 21 07:08:35 i hate 0 based months Apr 21 07:09:03 to be fair I think they were just going for accuracy Apr 21 07:09:21 but I'll be damned if I ever figured out how to set a time for 12:20:00 PM Apr 21 07:09:27 it would just set it to next day Apr 21 07:09:49 just use 24-hour format Apr 21 07:11:42 it just got even more complicated Apr 21 07:11:56 we use android in an embedded environment, not so much mobile Apr 21 07:12:09 these devices sync to centralized service without a time server standard Apr 21 08:29:49 hi, anyone know how to edit this app https://play.google.com/store/apps/details?id=com.sogeti.falter.android&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zb2dldGkuZmFsdGVyLmFuZHJvaWQiXQ.. <- to set the timeout time to 15second? Apr 21 08:30:50 twittergal: wrong channel; this is app dev Apr 21 08:31:57 yea, i need help in editing app Apr 21 08:34:50 twittergal: alternative + better solution Apr 21 08:34:57 email the developer and ask him to make you a setting Apr 21 08:36:57 or do you know any smilar app like that to change screen time out easily? i tried many from market but only this one matches what i wanted. setting from 15-30 second Apr 21 08:37:06 ->>>> #android Apr 21 08:53:24 How on earth does the app crash due to an xml error if I havent changed that layout since the last time I deployed a working copy of the app Apr 21 08:55:26 Works when deploying with debug key Apr 21 08:55:28 but not signed key Apr 21 09:00:03 Zooklubba: stacktrace Apr 21 09:00:18 binary xml inflate error etc Apr 21 09:00:22 on setContentView Apr 21 09:02:25 that's not a stacktrace Apr 21 09:03:40 readme, its not telling anyone anything Apr 21 09:04:07 "android.view.InflateException: Binary XML file line #8: Error inflating class" and then my customview Apr 21 09:04:10 which inflates an xml. Apr 21 09:04:11 Zooklubba: because you're too stupid to understand the stacktrace doesn't mean its not telling anyone anything. Apr 21 09:04:19 lmao Apr 21 09:04:23 Uh, did you run the code on a target that doesn't have the class? Apr 21 09:04:33 No Apr 21 09:04:41 did it just spontaneously start working? Apr 21 09:05:02 ah, it's 20 stupid questions hour. Apr 21 09:05:07 Well, I suspect its eclipse again. A bunch of refresh, clean, delete gen and bin got it to work. Apr 21 09:05:17 pragma-, there is no need to be a dick. Apr 21 09:05:25 sometimes you just need to build clean Apr 21 09:05:37 Zooklubba: protip /ignore Apr 21 09:05:54 readme, I did that several times. Apr 21 09:05:55 lol, yus. Apr 21 09:06:02 The world is full of ignorant people. Join them now, hurry! Apr 21 09:06:13 pragma-, I see you already joined. Apr 21 09:07:19 and stupid as well. pragma- is in all the groups. Apr 21 09:07:38 readme, silent and nice now. Woho! Apr 21 09:09:00 pragma-, as I mentioned. The code has always worked. It's my views attached to my project. I haven't changed the xml in weeks and all of a sudden during one deploy it says that it's inflating incorrectly. Apr 21 09:09:14 So no need to be a dick about things you know shit about. Apr 21 09:09:25 Why are you still talking to me? Apr 21 09:09:44 pragma-, I wanted you to learn something today. Apr 21 09:09:54 Yes, I learned that stupid people flock together. Apr 21 09:10:17 Treat people with respect you stupid ignorant douche. Apr 21 09:10:27 Without any knowledge, good luck with that. Apr 21 09:10:43 You seem to be very self-conscious and defensive of your stupidity. Apr 21 09:11:12 Zooklubba: part of the using /ignore thing is that you don't have to feel upset about what the ignoree is saying to you and spaz in channel Apr 21 09:11:48 readme, i actually unignored him. But as he continued to spill crap in the channel and I feel that my time is worth more than talking to him he's on the list again. Apr 21 09:22:28 did someone claim that a stacktrace gives no information and therefore refused to supply one? Apr 21 09:22:29 chortle Apr 21 09:23:33 poppavic Apr 21 09:27:16 cagedwisdom, never said that a stacktrace gives no information. Of course it gives you a lot of useful information. But for this bug, since it was a temporary thing with eclipse I guess that doesnt help. Apr 21 09:28:02 Since a custom view crashed it, a view that wasen't changed a bit. Eclipse just likes to screw with me. Apr 21 09:28:24 pragma- was just being a douche about it. Apr 21 09:28:36 what he said was right Apr 21 09:28:42 you should have just provided the stacktrace Apr 21 09:28:51 I don't know what he actually said though, because I have him on /ignore. Apr 21 09:29:29 readme, you were the only one who said to supply a stacktrace. He was just being a douche Apr 21 09:29:49 Or, well. he said that I dont understand the stacktrace as well. Apr 21 09:29:55 But, thats the past. Apr 21 09:30:53 He banned me from a channel he is OP in for no reason other than that I made him upset by taking your side. Apr 21 09:31:19 Since I mentioned, the stacktrace error is android.view.InflateException: Binary XML file line #8: Error inflating which points to my setContentView. And it references to my customview. Which exists, is there and doesnt have any xml errors. And neither does the main that uses the custom view either. Apr 21 09:31:55 And cleaning 10 times, deleting gen and bin 3-4 times and refreshing and not changing any code proves my point. Apr 21 09:32:43 Mentioned that for him and he was still acting like a child. Apr 21 09:35:41 Zooklubba: Whining about your stupidity 4 or 5 times now isn't going to make you any smarter. Apr 21 10:07:35 Is there anyone who may know how to deal with a case in a xml script where there are two same named elements but with different attributes and values and how to separate them with SAX? Apr 21 10:08:11 hm actually I may try to see if this function returns an array.. Apr 21 10:12:37 drwho: saxparser gives you the attributes in your startElement override, iirc Apr 21 10:23:22 readme: yeah but I am wondering how it deals with attributes from two different sources Apr 21 10:23:35 that are the same name.. Apr 21 10:23:55 drwho: you mean like and ? Apr 21 10:25:20 you just override startElement, and it's called whenever it sees an element, and it gives you the list of attributes.. it is up to you to handle this stuff. Apr 21 10:26:01 I mean like and Apr 21 10:26:11 where attr1 would have different values Apr 21 10:26:17 it will be called each time it hits a tag Apr 21 10:26:22 ah ok Apr 21 10:26:24 thanks Apr 21 10:26:26 np Apr 21 10:26:44 that makes setting up my getter in the handler easier lol Apr 21 10:26:59 now to figure out where data.getExample().size() is from Apr 21 10:27:27 I am following this guide and its not that great heh http://mobile.tutsplus.com/tutorials/android/android-sdk-build-a-simple-sax-parser/ Apr 21 10:28:01 this is the one I learned from http://www.ibm.com/developerworks/opensource/library/x-android/ Apr 21 10:30:05 I'll look at that one then Apr 21 10:30:07 thanks again Apr 21 11:36:36 I have two android devices and both dont get the networktime, but it is enabled in the settings. Is this a common android problem? Apr 21 11:37:10 I have to say, that both devices are rooted. Apr 21 11:48:48 heya Apr 21 11:49:19 quick question - how long does it take from zero to app available on market, presuming i have functioning app developed? Apr 21 11:49:35 i hope it's not like on app store, or even similar Apr 21 11:51:04 dsirijus: an hour or so so caches refresh? Apr 21 11:51:33 Mavrik, that's including getting my company registered as developer? Apr 21 11:51:55 hmm, I don't think you can register your company as a developer Apr 21 11:52:05 you make an account, pay those 12€ or so and then publish the app Apr 21 11:52:27 I don't know hoow long merchant accounts take though, those aren't available here. Apr 21 11:52:36 merchant? Apr 21 11:53:11 i do not have in-app payments nor am i charging for the app, i just want it to show that it was developed by my company, not myself Apr 21 11:55:07 basically, on all those steps, there's no human on the other side? that might not work sundays or something? everything is handled automatically? Apr 21 11:55:34 Google never taks to humans Apr 21 11:55:37 *talks Apr 21 11:55:41 that's nice Apr 21 11:56:05 as an individual, you're insignificant (to Google) Apr 21 11:56:23 love... Apr 21 11:56:24 it. Apr 21 11:57:25 even more so than stealing my gfs latte right no Apr 21 11:57:26 w Apr 21 11:57:37 ok, thanks for responses Apr 21 11:57:43 Anyone seeing constant StackOverflowErrors on the layout editor in eclipse? Apr 21 12:00:53 Amorgos: yes. you are. Apr 21 12:01:23 8D Apr 21 12:04:10 hi Apr 21 12:04:10 anyone got the samsung galaxy y? Apr 21 12:06:02 is there any voice recognition "library" for numbers? imagine my application says "one two three" in speaker, than the person finds the label 123-45. then the person must talk "four five" to the phone (the label checksum) to confirm it found the label... what is the name of what I need? voice recognition for numbers? Apr 21 12:10:26 Does anyone know how to change the default AVD directory for the AVD gui? Apr 21 12:11:28 Or is it hardcoded? Which would be annoying Apr 21 12:53:15 <_Lucretia_> Is it possible to use bluetooth via the ndk? Apr 21 12:55:15 <_Lucretia_> ah looksl ike you can Apr 21 13:04:25 any ideas on how can I figure out what is my app doing in the background? CPU is always jumping around 0.5%-1.5% Apr 21 13:07:18 <_Lucretia_> profile it? Apr 21 13:08:05 elaborate please Apr 21 13:08:05 <_Lucretia_> Zharf: profile it? Apr 21 13:08:08 <_Lucretia_> arse Apr 21 13:08:20 <_Lucretia_> was gonna send that back to you in case you didn't see it.. Apr 21 13:08:22 <_Lucretia_> anwyas Apr 21 13:08:40 <_Lucretia_> profiling will tell you where in the code it spends the most time - is this c or java? Apr 21 13:08:45 java Apr 21 13:08:49 <_Lucretia_> I know it can be done in c, dunno about java Apr 21 13:09:01 ok, I will use google from this point Apr 21 13:09:02 thanks Apr 21 13:09:07 at least I know what to look for Apr 21 13:09:09 _Lucretia_, fail Apr 21 13:09:18 <_Lucretia_> http://developer.android.com/guide/practices/design/performance.html Apr 21 13:09:20 <_Lucretia_> Zharf: yup Apr 21 13:09:25 hello, can anyone help me build a package? Apr 21 13:09:32 <_Lucretia_> use eclipse Apr 21 13:09:48 _Lucretia_, can't i build it without it ? Apr 21 13:10:04 <_Lucretia_> you can, I don't know the command line args tho Apr 21 13:10:35 <_Lucretia_> hokay, so I want to create an app that sets up a peer-to-peer network using bluetooth, so I want to be able to set up a discoverable service, right? Apr 21 13:16:23 <_Lucretia_> no? Apr 21 13:18:04 _Lucretia ... that would seem to make sense to me ... my programming skills are limited but it seems like a worthy avenue to pursue Apr 21 13:18:38 <_Lucretia_> basically, i want an app where if running is detected by others with the same app - if running also Apr 21 13:18:48 <_Lucretia_> I want to eliminate the need for a server Apr 21 13:19:02 <_Lucretia_> does not need to be interweb based as it's a local thing Apr 21 13:19:05 <_Lucretia_> only Apr 21 13:45:49 What kernel should I compile if I'm trying to build an android 4.0 device Apr 21 14:08:21 hello, I am not sure if this is an android ndk or pure java jni question, but anyways, is there some main or init function that is called the first time the .so is loaded ? something similar to microsoft DLL : DllMain http://msdn.microsoft.com/en-us/library/windows/desktop/ms682583%28v=vs.85%29.aspx Apr 21 14:30:16 <[twisti]> asterisk-Tester: yes Apr 21 14:30:54 [twisti]: yeah th, i found it here : http://developer.android.com/guide/practices/design/jni.html Apr 21 14:31:15 <[twisti]> i was just going to fire up eclipse to look for the name, i saw it yesterday by coincidence Apr 21 14:31:25 I've just published my first Android application, does anyone when approx. it will be available on google play? Apr 21 14:31:42 <[twisti]> eidel: i think you a word there Apr 21 14:32:10 [twisti]: Huh? Apr 21 14:32:18 <[twisti]> exactly Apr 21 14:32:58 How rude, if you don't have anything helpful to say, don't say anything at all. Apr 21 14:33:14 eidel: couple of hours to a day Apr 21 14:33:19 eidel: you must be new here ;) Apr 21 14:33:29 MDijkstra: Ok, thanks Apr 21 14:34:24 I feel like this question to be asked about 5 times EVERY single day. :) Apr 21 14:35:13 <[twisti]> how rude, when you dont understand the answer, you personally attack the person talking to you Apr 21 14:40:13 How fast is reading from a sqlite db? Let's say the default android music player, does it load the entire database to memory (for fast access), or just artist+album and then poll the db for the tracks as needed? Apr 21 14:45:52 I'm trying to develop an app that could use the new ui patterns from ics (actionbar, etc…) but still be usable on older devices. I found that I could use the compatibility package for things such as loading data from database, but I also want to not have the actionbar on older devices since that was not a ui pattern for that version of the platform. Apr 21 14:46:14 Should I rely on multiple apks targeted at different platform versions? Apr 21 14:47:07 It's ok to have an action bar on pre-ICS Apr 21 14:47:20 I see Apr 21 14:48:25 but from what I've read in the actionbarcompat sample app, the actionbarActivity is extended from activity, where instead I need ListActivity Apr 21 14:48:59 you can integrate a ListView in any Activity easily yourself Apr 21 14:49:11 Use a ListFragment instead Apr 21 14:49:28 oh Apr 21 14:49:44 that could work Apr 21 15:07:10 I'm trying to launch my app on a 2.3 emulator. It fails (emulator starts but that's it) to install. I have targetSDK set to ICS of course: do I need to lower it? Apr 21 15:09:13 anyone know how to fix the " This target has no samples. Please select another target." error I'm getting whenI try to create a new project based on an existing sample? Apr 21 15:10:08 I have the samples for this SDK installed Apr 21 15:14:51 anybody here? Apr 21 15:14:56 I need some help with JNI Apr 21 15:15:35 What kind of help? Apr 21 15:16:49 No one on my issue with emulator? Apr 21 15:17:38 I'm trying to convert some C++ data loading code into C Apr 21 15:17:48 to be used with JNI in my android app... Apr 21 15:17:54 first error I get when I try to compile is... Apr 21 15:18:06 jni/lwio.h:8: error: expected specifier-qualifier-list before 'BYTE' Apr 21 15:18:12 line 8 in lwio.h is.. Apr 21 15:18:19 It doesn't know what BYTE is Apr 21 15:18:26 typedef struct stSURFACE Apr 21 15:18:27 { Apr 21 15:18:27 BYTE red, green, blue; Apr 21 15:18:27 char name[40]; Apr 21 15:18:27 }SURFACE; Apr 21 15:18:40 It thinks its a variable name not a type because you didn't define it Apr 21 15:18:57 hm. okay so I need to find where in the original code "BYTE" is defined Apr 21 15:19:48 @the_jag Why don't you just make an ICS image and run the emulator at the same level as the app? Apr 21 15:20:21 thx for advice. my C is a lot rustier than I feared. :( Apr 21 15:21:27 the original C++ is MFC code, too. :( Apr 21 15:21:30 Well its probably just typedef'd as a char I imagine Apr 21 15:21:42 nmulcahey: I'm sorry but I don't understand what you are sying: I'm new to this :( Apr 21 15:22:34 Why am I not able to just launch an app to a 2.3 emulator given the fact that I set minsdk to 4 and target sdk to ICS? Apr 21 15:22:44 14 Apr 21 15:23:36 Because 14 > 10? Apr 21 15:24:06 hi i added a widget to my app and now they have to reinstall the app to see the widget update is not showing the widget how could i bypass this ? plz help Apr 21 15:24:10 It should load just fine Apr 21 15:24:18 and then? I thought that the the number that has the priority here is the minsdk, which is at 4 Apr 21 15:24:19 Unless you did it wrong Apr 21 15:24:36 I was once told not to set a maxSDK, which made life easier. you should set minSDK to 10 if you want to run on 2.3 Apr 21 15:24:49 oh, minSDK is 4 or 14? Apr 21 15:24:58 He set minSDK to 14 and targeted 14, why would it load on FROYO? Apr 21 15:25:01 min 4, target 14 Apr 21 15:25:07 Oh Apr 21 15:25:17 What's the error? Apr 21 15:25:26 It must say something Apr 21 15:25:28 nmulcahey, maybe a uchar? Since it's pointing to 8 bit values in the range of 0 to 255? Apr 21 15:25:41 I cannot launch my app on a 2.3 emulator Apr 21 15:25:50 maybe you're making calls that don't exist in 2.3? Apr 21 15:26:24 I'm using the actionbarcompat sample as the barebone of my app Apr 21 15:26:30 I don't think so Apr 21 15:26:49 "Developer! Something is wrong!" Apr 21 15:27:24 eh Apr 21 15:27:26 :( Apr 21 15:27:29 I know Apr 21 15:27:41 canont find the error though Apr 21 15:27:54 What does the console say when you try and load it to the emulator? Apr 21 15:28:21 I do not get where hardware acceleration is in new adt+emu's Apr 21 15:28:28 I cant load it because the 2.3 emulator is not listed as a suitable emulator for the app Apr 21 15:28:29 I havent noticed anything performance wise Apr 21 15:28:45 I said enable gpu emulation in the vm options Apr 21 15:30:57 I've forgotten... do you have to declare functions in the header file before defining them in the source file in C? Apr 21 15:30:58 The thing is: I have basically copied the sources from the actionbarcompat samples and tried to run it on old emulator Apr 21 15:31:23 it should have lauched, or not? Apr 21 15:31:33 @hiraghm you have to declare a function before you call it yes Apr 21 15:31:49 thx Apr 21 15:32:12 cause I'm getting a bunch of errors in my header... I'll do a dump to pastebin Apr 21 15:33:00 nmulcahey, darn it. I added #define BYTE unsigned char before the typedef, and it's still giving me that error :( Apr 21 15:33:48 wait, nm. Apr 21 15:34:04 helps to save changes before recompile lol Apr 21 15:34:27 this is a huge mess for me Apr 21 15:34:29 :) Apr 21 15:36:27 have you a device to test it on? Apr 21 15:38:50 Yes I have, I'll try to lauch the app on it: it's a froyo device Apr 21 15:39:20 The_Jag> I cant load it because the 2.3 emulator is not listed as a suitable emulator for the app <- What does this even mean.. Is it not showing up? Does it not let you select it an run? Apr 21 15:40:15 It doesn't show up in the list of the suitable emulators Apr 21 15:41:01 using my froyo device, the app loaded Apr 21 15:41:39 I'm confused then Apr 21 15:42:14 Oh, the emulator suggestions eclipse gives? Apr 21 15:42:19 yes Apr 21 15:42:21 Have you tried actually launching the emulator? Apr 21 15:43:25 launching it now Apr 21 15:45:09 uhm, now it loads there too Apr 21 15:45:35 so apparently, the eclipse plugin check for targetSDK and not minSDK Apr 21 15:47:39 thanks Apr 21 15:48:12 nmulcahey, here's my header file... Apr 21 15:48:13 http://pastebin.com/GS0VaQFw Apr 21 15:48:55 And I'm getting a series of errors that say "jni/lwio.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'loadTags'" Apr 21 15:50:56 You don't define BOOL or FILE anywhere Apr 21 15:54:35 I shouldn't HAVE to. Apr 21 15:54:52 FILE should be defined in stdio.h, shouldn't it? Apr 21 15:55:57 You aren't including it in the file you gave me Apr 21 15:56:22 omg I bet FILE is a Windows thing. Apr 21 15:56:36 or C++. sigh been too many years Apr 21 15:56:38 * Hiraghm sighs Apr 21 15:57:30 Well specifically that error refers to the fact that the return type of your function isn't a recognized type Apr 21 15:57:50 So maybe you should define BOOL Apr 21 15:58:02 And then keep working at it Apr 21 15:58:31 whats the problem? :\ Apr 21 15:58:51 I defined bool. #define BOOL bool Apr 21 15:58:59 ....... Apr 21 15:59:01 it must be choking on FILE Apr 21 15:59:14 UnknownzD, I'm trying to convert some C++ to C to use with JNI Apr 21 15:59:25 and my memory of both is a lot worse than I'd thought. Apr 21 15:59:33 * Hiraghm spoiled by java Apr 21 16:00:04 but whats the problem? Apr 21 16:00:27 I am able to help you out since I know the difference between C++ and C in underlying structure Apr 21 16:01:56 here's my header file... Apr 21 16:01:57 http://pastebin.com/GS0VaQFw Apr 21 16:02:17 here's the error I get: jni/lwio.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'loadTags' Apr 21 16:02:22 the first of many Apr 21 16:08:59 The is no bool type in C dude Apr 21 16:09:12 What did you do #define BOOL bool? Apr 21 16:10:00 yup. Apr 21 16:10:10 I didn't realize there was no bool in C (toldya I was rusty :( ) Apr 21 16:11:02 <[twisti]> can i programmatically change/add to a layout that i got from xml ? i have something like setContentView(R.layout.bla); and bla has a layout with the id of R.id.bla99, is there a way for me to add, say, a new button to that ? i tried RelativeLayout rl = findViewById(r.id.bla99); rl.add... but that didnt work Apr 21 16:11:12 There is a bool in C. Apr 21 16:11:51 there is a bool in C. Apr 21 16:13:13 here's the full list of errors I'm getting Apr 21 16:13:14 http://pastebin.com/LjB9BYqD Apr 21 16:13:30 wait... Apr 21 16:13:37 that's after I #define bool unsigned char Apr 21 16:14:11 that's because FILE is C++ I bet. Apr 21 16:14:24 Hiraghm Apr 21 16:14:27 No, it's because you don't know what you're doing. Apr 21 16:14:51 And nmulcahey doesn't know what he's talking about either. Apr 21 16:15:11 so if you change the line on 23 to int loadTags(void *fp); Apr 21 16:15:21 will it compile or still complain the same error? Apr 21 16:15:38 btw yea Apr 21 16:15:42 where is the FILE strcuture Apr 21 16:15:56 Uh, in the same place it has always been. Apr 21 16:16:08 Not included? Apr 21 16:16:13 no I mean you should not assume the compiler auto include it Apr 21 16:16:15 you're not helping pragma-, but thanks Apr 21 16:16:31 especially when you are trying to cross compile Apr 21 16:16:46 I bet you are compiling on Linux x86 / x64 distro Apr 21 16:16:47 right? Apr 21 16:17:28 cygwin under Windows, to be exact Apr 21 16:17:41 if you are compiling via MSVC ..... I would say yea ..... actually the compiler can't support C99 standard ....... because the compiler is designed for C++ only Apr 21 16:17:44 but not C Apr 21 16:18:11 well Hiraghm why don't u try to use MinGW instead? Apr 21 16:18:27 anyway I would recommend you to try to build all these kinds of thing in a VM Apr 21 16:18:34 rather than in Windows environment Apr 21 16:18:59 because all the tutorials for JNI that I've read have used cygwin Apr 21 16:19:06 :x Apr 21 16:19:11 cygwin is crappy Apr 21 16:19:13 and the one tutorial I got to work was based on cygwin Apr 21 16:19:25 as it is wrapper only Apr 21 16:19:30 :\ Apr 21 16:19:45 * Hiraghm sighs Apr 21 16:20:51 He's probably just missing a semi-colon. Apr 21 16:22:18 There is no BOOL defined in C, though; so where-ever you got that from, you might want to get the rest of the code. Apr 21 16:22:47 I went digging for it. It's based on MFC C++ code (which I'm trying to translate to C_ Apr 21 16:22:49 ) Apr 21 16:23:04 FILE is in stdlib.h Apr 21 16:23:26 er. stdio.h Apr 21 16:23:52 ...... don't assume the compiler include any thing for you Apr 21 16:24:00 its not C++ or crappy Windows programming Apr 21 16:24:22 I'm including Apr 21 16:24:35 oh stdio.h Apr 21 16:24:40 hang on, I'll try including it Apr 21 16:25:04 no change Apr 21 16:25:56 okay there was a change there... Apr 21 16:26:07 jni/lwio.h:30: error: expected ';', ',' or ')' before '&' token Apr 21 16:26:11 and line 30 says... Apr 21 16:26:20 BOOL readInt(FILE *fp, int &i); Apr 21 16:26:33 C doesn't have references. Apr 21 16:26:44 is there any application which can restart phone ? Apr 21 16:26:44 lol Apr 21 16:26:47 int &i is not valid in C. Apr 21 16:26:49 x Apr 21 16:26:56 Hiraghm learn to difference between C++ and C first Apr 21 16:26:59 anyone know how to center a webview, cant seem to do it Apr 21 16:27:00 You could change that to a pointer. Apr 21 16:27:05 jennie use adb Apr 21 16:27:13 adb ? Apr 21 16:27:16 ....... Apr 21 16:27:18 Unless the C++ is actually really using it as a proper reference. Apr 21 16:27:31 you know this channel is intended for dev only, right? Apr 21 16:27:34 UnknownzD, I did about a decade ago. Apr 21 16:27:39 jennie asks that in #android Apr 21 16:27:43 In Java is there an equiv object like the .NET DataSet where I can easily sort, search? Or do I need to work directly with ArrayLists? Apr 21 16:27:54 spankbot: Collections? Apr 21 16:28:46 spankbot: http://developer.android.com/reference/java/util/Collections.html Apr 21 16:29:38 would someone help me with my app for 10euro ? i have some questions Apr 21 16:29:43 pragma- In my app, I've got the INFO tier, BusinessLogic tier and DataAccessLayer tier, so I have a collection of objects stored in a ArrayList, but am finding it a mother bitch to sort and search. Apr 21 16:30:36 a webview wont respond to gravity etc like other components Apr 21 16:30:38 why is that Apr 21 16:30:44 Hiraghm first few things you have to know when converting C++ to C Apr 21 16:31:10 Hm. the last C++ program I wrote was in 2008, iirc. so 4 years, not 10. Apr 21 16:31:13 first there are reference, second there are object, all the object are actually based on structure Apr 21 16:31:20 there are no* Apr 21 16:31:20 Uh, doesn't JNI already allow C++? Why not just leave it as C++? Apr 21 16:31:28 yea thats what I thought Apr 21 16:31:30 C has objects. Apr 21 16:31:34 last C program I wrote was... 20 years ago? 15 anyway. Apr 21 16:31:36 I think you mean classes. Apr 21 16:31:36 no it doesn't Apr 21 16:31:41 yea Apr 21 16:31:58 okay, thanks, I'll start over and just leave the C++ as C++. Apr 21 16:32:06 objects in my term -> it means a instant with vtable method Apr 21 16:32:07 I'll probably have an easier time debugging it, too. Apr 21 16:32:20 however C doesn't have vtable, it onlt has function ptr Apr 21 16:37:05 wongk? Apr 21 16:43:54 14 download and zero uninstalls :D Apr 21 16:44:01 my radiology app is blowin up! Apr 21 16:44:08 ya'll jelly. Apr 21 16:44:34 :) Apr 21 16:46:33 okay, I've reverted to C++. got a different set of errors. I'm going to take a break and come back to it later. Apr 21 16:46:49 i added a widget to my app and it isnt showing afeter market update it is ok on new or reinstall what could i do ? Apr 21 16:51:28 1 error at a time Apr 21 16:53:01 Hi, just wanted to know, Android is open-source. Does this mean that a user can change anything in the OS because it is open-source? Apr 21 16:55:50 Zukky, you mean like CM eg ? Apr 21 16:57:07 Zukky, it means the source is open, aka accessable Apr 21 16:57:18 u can change any aspect of the os, getting it on a device is another story Apr 21 16:58:30 i have begin this tutorial: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html Apr 21 16:58:40 i love when "news" companies publish articles like "tablets are going to REPLACE computers" Apr 21 16:59:35 see in this tutorial in te main.xml the android:layout_below this give me a error. Apr 21 17:00:09 http://www.pasteall.org/31110 < this error. Apr 21 17:00:37 paste ur xml code Apr 21 17:01:06 Jug6ernaut, well, tablets CAN replace the vast majority of boring media-consumption PCs, just not workstations or gamer-dude setups. Apr 21 17:01:18 http://www.pasteall.org/31111/xml Apr 21 17:01:19 zcat agreed Apr 21 17:01:34 You're doing a RelativeLayout tutorial, and using a LinearLayout? Apr 21 17:01:52 lol... Apr 21 17:02:11 that & there is no id label to be below lol Apr 21 17:02:31 a thans i have not see this in the code. I think that the same code. Apr 21 17:08:43 anyone uses tasker here Apr 21 17:09:57 hi, how can i connect to the adb shell from an app? Apr 21 17:14:15 soroca > maybe via the loopback interface using the ADB protocol? Apr 21 17:15:25 hackkitten: hm sounds complicated Apr 21 17:15:34 probably is :) Apr 21 17:16:51 soroca, or maybe you want Runtime.getRuntime().exec("blahhh") instead? Apr 21 17:17:47 Can literally ANY app be uploaded to Google App market? Is it checked by Google first or is it just published? Apr 21 17:18:04 zcat: can i open an adb shell with that? Apr 21 17:19:52 ? Apr 21 17:20:49 soroca, well if you exec'd the shell (sh or su for root) you could read/write until you write "exit\n" to do a series of commands. probably not the best way, but it works. Apr 21 17:27:26 zcat: but su only works with rooted devices right? Apr 21 17:28:50 which port does adb use? Apr 21 17:29:43 i mean on which port on the device does it listen Apr 21 17:34:50 not sure, soroca, but should be easy to find Apr 21 17:46:27 Hello there. I have got a problem. Is there any way to modify main.xml content on-the-fly? or is it just generating it from java? Apr 21 17:47:21 Can you please give me a link how to do it (if yes) or just tell here. Thank you) Apr 21 17:47:52 hi there, it looks like we can skip step #3 of "Device Setup" for Ubuntu at least as of Ubuntu 11.10 http://developer.android.com/guide/developing/device.html Apr 21 17:52:21 Icehunter whaddayamean on the fly Apr 21 17:53:08 xorgate like on the function call Apr 21 17:53:49 what are you trying to do Apr 21 17:54:06 At least, is there ANY way to change and update main.xml, add new elements to specific places Apr 21 17:54:19 you can add views to viewas Apr 21 17:54:59 You can't change the xml, but you can do whatever you want to the objects instantiated by the layoutinflater Apr 21 17:57:43 I'm on a mac and i believe i have the gpu emulation configured. when I start the emulator, all i get is a black screen. anyone else seen this? Apr 21 18:04:12 What i need to do, is parse html source for several links, and generate a scrollabale view of them, to make navigation and selection easier. But now i am thinking about it... it would be nice, if i could do a falling list... Apr 21 18:17:35 bryanl leave it for a few minutes, it takes time for it to start Apr 21 18:18:29 t0mless: thanks Apr 21 18:18:59 it should start the android logo Apr 21 18:19:00 someone has tried PlayN on android? Apr 21 18:19:32 bryanl you should also be able to look at the logcat for the emu while it's booting, once it gets past a certain point Apr 21 18:22:29 http://apple.slashdot.org/story/12/04/21/1246249/accountability-not-code-quality-makes-ios-safer-than-android Apr 21 18:24:17 Hello, Apr 21 18:24:48 What is the name of the file to put in a directory to prevent files from being scanned by the cointent provider Apr 21 18:27:16 ok... got the answer Apr 21 18:33:26 Hello - I've got a small problem Apr 21 18:33:41 my preferences screen has two CheckBoxPreference Apr 21 18:34:10 and they've both missing their properties, no text, and the checkbox has wrong default value Apr 21 18:42:21 Why does calander.YEAR return 1 and not 2012? Apr 21 18:43:34 heya guys :) i've just installed eclipse, and trying to fetch adt plugin. but it gives me errors on fetching in particular adt component, are u experiencing the same? Apr 21 18:49:30 pi_anto, have installet the jdk? Apr 21 18:49:37 yeah Apr 21 18:49:51 wath use for eclipse version? Apr 21 18:50:01 version 7, is it the problem? do u need v6? Apr 21 18:50:11 do i* Apr 21 18:52:55 Version 7 can be problematic but not necessarily. For me it functioning well. What should you go around setting: "compiler compiance level" should be a maximum of 1.6 in the Project> Properties> Java Compiler. Apr 21 18:53:27 i'm looking around, maybe i'm missing wst component Apr 21 18:54:10 In my projects, it is defaulted to 1.5. Apr 21 18:54:54 what do you mean with wst? Apr 21 18:54:58 anyone know how to fix a "called unimplemented OpenGL ES API" error? Apr 21 18:59:19 do you know how i can open an adb shell from an app? Apr 21 18:59:43 i am trying to write a new version of z4root which uses the ages old rageagainstthecage Apr 21 19:00:24 so i want to use zergRush instead and i looked at the z4root source but i cannot understand how it opens an adb shell Apr 21 19:01:03 is it true that rageagainstthecage only works if run from an adb shell? because it needs the adb uid Apr 21 19:02:18 just as zergrush Apr 21 19:03:46 hey Apr 21 19:04:00 anyone around and wanna help me out with a spinner issue Apr 21 19:04:54 hackkitten: do you know where i can find the adb protocol? Apr 21 19:07:05 http://forum.xda-developers.com/showthread.php?t=1327139 < soroca, i hope this can you help Apr 21 19:08:38 what are the various linux apk tools i saw one not like aoktools or manager but it was an off tool with lots of resource tracking Apr 21 19:09:28 Ill post my question n maybe someone will know the answer. So I have 3 spinners that of course have user inputs. I then want to do calculations based on the users inputs but i want to do all the calculations at 1 time. Currently i have the 3 spinners, then i need to set the setOnItemSelectedListener for all 3 of them, the do calcs. I cant figure out how to set 1 listener for all 3 spinners. Apr 21 19:10:37 MarcAurelio: thanks but i think this is just about a driver issue for the sony tablet Apr 21 19:10:39 I know how to set the listener for 1 and the do "stuff" but i need to be able to pull all the variables inputed by the spinners at 1 time, then do "stuff" Apr 21 19:10:57 i want to connect to the local adb daemon and open a shell Apr 21 19:11:23 it should work if debugging is enabled Apr 21 19:11:26 i just dont know how Apr 21 19:14:58 soroca, and this: http://developer.android.com/guide/developing/tools/adb.html Apr 21 19:15:21 After a TranslateAnimation, the OnClickListener on view translated is not translated. Do you have any idea to fix it? Apr 21 19:16:18 MarcAurelio: thanks, i was there too but that only explains high level stuff Apr 21 19:16:32 not how i can connect to the adbd locally, not even on which port it runs Apr 21 19:21:18 soroca, or search on the developer.android.com site: http://developer.android.com/search.html#q=adb protocol&t=0 Apr 21 19:22:45 ok thanks Apr 21 19:30:41 hi my app did add a widget if i update from market the widget isnt in list if i reinstall it is what could i do ? Apr 21 19:34:10 upload your app a second to the market. I thinks that can help. Apr 21 19:37:29 could someone help me in my app for 10 euro i have some questions Apr 21 19:38:49 just ask Apr 21 19:39:04 what are the various linux apk tools i saw one not like aoktools or manager but it was an off tool with lots of resource tracking Apr 21 19:40:29 xorogate could i ask you in private i send you the app and i pay Apr 21 19:40:58 eh no just ask your question here Apr 21 19:42:10 i have NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); and eclipse is saying me dead code on if (activeNetworkInfo == null){ ? why Apr 21 19:43:16 i guess it knows it will never return null ? Apr 21 19:44:34 mhh i must check that it was a sample from stackoverflow the best site that i know Apr 21 19:45:30 just curious, how would you have paid? Apr 21 19:45:49 paypal Apr 21 19:46:20 well you can ask questions for free all you want here :0 Apr 21 19:46:47 yes but i wanna post you my app and ask special Apr 21 19:46:57 do you do thhis for me ? Apr 21 19:47:33 how about pastebin.com relevant sourcecode Apr 21 19:49:29 what is response.getStatusLine() HttpResponse it says tosring not valid but int isntworking from apache Apr 21 19:50:04 i am still learning a real newbie Apr 21 19:50:55 i wanna tirgger on 200 and 404 Apr 21 19:54:38 Does anyone have experiance working with ActionBarSherlock? Apr 21 19:57:02 i have experiencce but no expariance sorry Apr 21 19:57:57 experiencce won't really help me, I need someone with experience :-P Apr 21 19:58:03 pwnd Apr 21 19:58:30 lol Apr 21 19:58:55 but in all seriousness, I'm having trouble getting invalidateOptionsMenu() working on non-ICS devices Apr 21 19:59:11 ffuuuu Apr 21 20:00:05 ChainsDD well if you dont solve it you can always wait for jakewharton he hangs around on this chan Apr 21 20:00:10 Cus it doesn't exist on on older devices Apr 21 20:00:15 use supportInvalidateOptionsMenu Apr 21 20:00:52 Providing you're using FragmentActivity Apr 21 20:01:02 that's part of the android.support.v4.app.FragmentActivity, right? Apr 21 20:01:11 <[twisti]> is there a way to add something to a view/layout that works like the top (notify) bar, only on the sides ? as in, something thats hidden that you can drag open Apr 21 20:01:53 Ah, exists in SherlockActivity as well.. So just call supportInvalidateOptionsMenu Apr 21 20:01:58 for some reason Eclipse things that calling getActivity() in a SherlockListFragment returns a FragmentActivity that doesn't have that method Apr 21 20:01:59 Then you're safe Apr 21 20:02:35 Then you're using an old version of the support lib Apr 21 20:02:47 it was made public in the most recent Apr 21 20:02:57 Ah, lemme try to update it Apr 21 20:07:29 Is the support lib that comes bundled in ActionBarSherlock an old one? Apr 21 20:08:05 Not if you pulled the latest ABS Apr 21 20:08:36 just downloaded 4.0.2, was still using 4.0.1 Apr 21 20:10:23 what are the various linux apk tools i saw one not like aoktools or manager but it was an off tool with lots of resource tracking Apr 21 20:12:17 That solved it, Thanks! Apr 21 20:17:41 After a TranslateAnimation, the OnClickListener on view translated is not translated. I tried overriding getHitRect but without success Apr 21 20:18:42 hi Apr 21 20:21:41 does anybody know how i can communicate with adbd from an app? Apr 21 20:21:57 i couldnt find anything on d.android.com/search or google Apr 21 20:22:14 i want to open an adbd shell and send commands basically Apr 21 20:22:31 but i didnt even find the local port for adbd :( Apr 21 20:22:40 nor the protocol info Apr 21 20:23:11 People say a good mix should have ups and downs. But thats wrong. A good sound only has ups. Apr 21 20:26:04 on-device (without internet) continuous speach recognition on android... where can I find more infomation? is this possible? Apr 21 20:27:42 if you had a huge repository of speech recognition stuff like dragon does Apr 21 20:27:51 there's some gpl speech recognition stuff, I think Apr 21 20:29:14 http://freecode.com/projects/julius-lvcsr ... http://freecode.com/projects/cmusphinx ... there's others. I don't expect any of them are all that good, but that's the scope of what you're asking Apr 21 20:31:25 dragorn: just need to recognize numbers and some words like yes no ... Apr 21 20:31:43 pzn: probably some good pointers in that code then Apr 21 20:32:17 dragorn: thanks, I'll take a look in your URLs Apr 21 20:32:35 Hi is anyone free? Apr 21 20:35:32 dragorn: julius seems to match my needs.... just a question: your project is in C, how can I "mix it" with eclipse/android sdk? Apr 21 20:35:37 <[twisti]> is there a way to add something to a view/layout that works like the top (notify) bar, only on the sides ? as in, something thats hidden that you can drag open Apr 21 20:37:28 pzn: Not my project Apr 21 20:37:35 pzn: JNI is the answer however Apr 21 20:37:45 pzn: google JNI and android NDK Apr 21 20:38:12 dragorn: I don't have internet connection. google project seems to need internet, right? Apr 21 20:38:16 ginto8: you there mate? Apr 21 20:39:21 pzn: I have no idea what you're talking about. The way you link C code to java is JNI. The way you do it on android is using the NDK. Go look those up. Apr 21 20:43:59 Hello,Something weird...I have a chinese tablet(window N50) connected to my pc for debug purposes..I flashed the latest ICS rom,everything is working.I put on debug mode, but the device doesn't appears in eclipse.When it was using gingerbread rom,everything worked flawlessly.I installed the android composite adb interface,but nothing changes.ICS and eclipse don't work together out of the box.No device detected. I then used Apr 21 20:47:34 I tried adb kill-server and then adb usb,but no device...Device appear properly in device manager Apr 21 20:48:39 thegrinch1, go on your device to: "settings" scroll down to "Developer Tools" or so and then activate the "USB-Debugging". I hope that can your help. Apr 21 20:48:49 already done Apr 21 20:49:15 download usb driver in the Android SDK Mangager? Apr 21 20:49:27 already done Apr 21 20:49:50 what you using for a OS to dev? Apr 21 20:50:22 win 7 x64 Apr 21 20:50:27 <[twisti]> can i programmatically change/add to a layout that i got from xml ? i have something like setContentView(R.layout.bla); and bla has a layout with the id of R.id.bla99, is there a way for me to add, say, a new button to that ? i tried RelativeLayout rl = findViewById(r.id.bla99); rl.add... but that didnt work Apr 21 20:50:48 Yep, that'll work Apr 21 20:51:06 the sdk usb driver doesn't work for all devices Apr 21 20:51:11 SimonVT can you help with my database? I can't get it to sync. Apr 21 20:51:12 does anybody know how i can communicate with adbd from an app? Apr 21 20:51:21 no Apr 21 20:51:26 <[twisti]> no, it doesnt, findView refuses to cast, and also returns null, despite the id being right Apr 21 20:51:37 have you set your content view? Apr 21 20:51:44 <[twisti]> me ? Apr 21 20:51:47 refuses to cast? Eh? Apr 21 20:51:49 yea Apr 21 20:51:59 it doesnt work Apr 21 20:51:59 Please mate, I have to have this finish by tonight and I can't get it to sync, i've been trying for a week. Apr 21 20:52:02 findViewById will always return null if the content view wasn't set Apr 21 20:52:03 which is the adbd port? Apr 21 20:52:09 and if the ID isn't in the layout of the contentView Apr 21 20:52:18 <[twisti]> oh, i set the view after that, i thought i was supposed to do it in that order Apr 21 20:52:22 <[twisti]> let me try the other order Apr 21 20:52:53 its magic Apr 21 20:53:07 I swear 99% of NPE are from people not setting the content view Apr 21 20:53:32 npe == ? Apr 21 20:53:46 <[twisti]> now its a classcastexception Apr 21 20:53:54 null pointer exception Apr 21 20:53:57 oh nullpointr Apr 21 20:53:58 ok Apr 21 20:54:04 What is the class cast exception? Apr 21 20:54:07 thegrinch1, when you connect your device, you've got there first waits until the "AutoPlay" dialog is shown and has since then "Open device to view files" selected? Apr 21 20:54:09 <[twisti]> oh nm, thats my bad Apr 21 20:54:11 are you casting a linear layout to a relative layout? Apr 21 20:54:21 t0mless: how can i connect to the adbd through the loopback localhost 127.0.0.1? Apr 21 20:54:33 I dunno Apr 21 20:54:39 why not? Apr 21 20:54:45 why should I? Apr 21 20:54:47 WHO KNOWS!? Apr 21 20:54:49 Can somebody do a screen share with me on Skype or give me assistance through Pastebin? I have a SQL file that I need assistnace with. It's not difficult, I just want my database that I created using Sqlite3 database browser to be displayed in my classes. Apr 21 20:54:51 Can somebody do a screen share with me on Skype or give me assistance through Pastebin? I have a SQL file that I need assistnace with. It's not difficult, I just want my database that I created using Sqlite3 database browser to be displayed in my classes. Apr 21 20:54:51 <[twisti]> awesome, its working, thanks Apr 21 20:54:53 because nobody seems to know Apr 21 20:54:53 woops Apr 21 20:55:02 Sorry for double post. Apr 21 20:55:06 its just the adbd i mean Apr 21 20:55:14 <[twisti]> and yes, thats what i was doing, i had it set to relativelayout earlier and changed it back to linear and forgot to change the code Apr 21 20:55:17 i cannot even find the port on google Apr 21 20:55:24 Can someone give assistance? Apr 21 20:55:30 Zukky, is okay currently. ;) Apr 21 20:55:49 MarcAurelio, help me out mate. Honestly, it would be the best thing you have ever done lol Apr 21 20:56:01 You know you want to :) Apr 21 20:56:08 pls help me too Apr 21 20:56:13 you should be building your DB in code with a SQLiteOpenHelper Apr 21 20:56:33 The data I have is 50 entries with 6-7 columns Apr 21 20:56:41 K. Apr 21 20:56:45 How am I going to do that quickly, there must be a way mate Apr 21 20:56:46 you should be building your DB in code with a SQLiteOpenHelper Apr 21 20:57:15 What is easier/quicker? SharedPreferences or SQLiteDatabase Apr 21 20:57:35 Zukky: what is better, apples or oranges ? Apr 21 20:57:38 Zukky use a sql file and load this. Apr 21 20:57:41 I want to store shop names, opening times, address, phone number and longitude and latitude values. I want them to display to a Map Apr 21 20:57:51 I have my MapView ready Apr 21 20:57:56 and OverlayItems ready Apr 21 20:58:10 everything is running but I have no clue on how to link it. Apr 21 20:58:15 The tutorials are no help. Apr 21 20:58:57 How do Isolve this? Apr 21 20:58:58 ls -l Apr 21 20:58:59 [2012-04-21 22:58:26 - PGapTest] Uploading PGapTest.apk onto device 'HT02KP900594' Apr 21 20:58:59 [2012-04-21 22:58:31 - PGapTest] Failed to install PGapTest.apk on device 'HT02KP900594': timeout Apr 21 20:58:59 [2012-04-21 22:58:31 - PGapTest] Launch canceled! Apr 21 20:59:00 ok... I tried with adb 1.0.26 the tablet is detected....with adb 1.0.29 no tablet Apr 21 20:59:05 Trying to debug on my device Apr 21 20:59:10 boooo pasting into channel Apr 21 20:59:24 restart the device, restart eclipse, += adb Apr 21 20:59:25 But it's less than 4 lines Apr 21 20:59:38 everything more than 1/4 line has to be outlayed. Apr 21 20:59:40 How can I retrofit adb? Apr 21 20:59:44 where a line contains 80 chars Apr 21 21:00:17 Did anyone ever had that error when exporting an Android Project under Eclipse: http://pastebin.com/CLdPyFK5 ? Apr 21 21:00:18 Math is not my strong area, but I'll admit it was rather inconsiderate of me Apr 21 21:01:06 you also revealied you're using phone gap Apr 21 21:01:43 That P could mean anything ;D Apr 21 21:02:12 there some adb error when installing Apr 21 21:02:17 that's why you get that error Apr 21 21:02:37 How is phonegap? Apr 21 21:02:49 Shit Apr 21 21:02:59 But does it work? Apr 21 21:03:33 shit Apr 21 21:03:39 shit no Apr 21 21:03:52 it is useless shit Apr 21 21:04:14 unless you have use for shit Apr 21 21:04:21 someone knows how to retrofit adb to an older version? in eclipse? Apr 21 21:04:35 what device are you having issues with? Apr 21 21:04:43 thegrinch1: what do you mean by "adb"? the adbd running on the device, the adb server, the adb client? Apr 21 21:04:51 adb server Apr 21 21:05:05 why do you need an older server? Apr 21 21:05:18 i am trying to research the adb protocol btw, but i cannot find any information Apr 21 21:05:32 I still get device not found :-/ Apr 21 21:05:36 when using adb usb with version 1.0.26 the device is detected but not with version 1.0.29 Apr 21 21:05:50 thegrinch1: do you know how i could connect to adb from an app through the loopback 127.0.0.1 localhost? Apr 21 21:05:52 what device? Apr 21 21:06:03 Nexus One Apr 21 21:06:10 not you Apr 21 21:06:18 thegrinch1: connect to adbd actually Apr 21 21:06:24 t0mless: me? Apr 21 21:06:26 soroca:what do you wanna do? Apr 21 21:06:37 what is adbd? Apr 21 21:06:42 thegrinch1: i want to know the local tcp port of adbd on the device and how i can connect to it from an app Apr 21 21:06:44 noob question... Apr 21 21:06:46 you just need to enable debug mode and install the usb driver in the sdk to get nexus one to work Apr 21 21:06:53 thegrinch1 what device are you having issues of? Apr 21 21:06:59 thegrinch1: adbd is the adb daemon running on the android device, the thing the adb server connects to Apr 21 21:06:59 try with system and greps... Apr 21 21:07:22 me? Apr 21 21:07:28 my device is a WIndow N50 with latest firmware (ICS) Apr 21 21:07:42 soroca:ok Apr 21 21:08:00 ok Apr 21 21:08:09 you should be able to set a port when launching server Apr 21 21:08:21 thegrinch1: adbd is always running, i dont launch it Apr 21 21:08:35 i just want to connect to it, for some reason nobody seems to know how it is possible Apr 21 21:09:06 why do you need to connect to adbd? Apr 21 21:09:24 to open an adb shell and run an exploit Apr 21 21:09:39 i want to write a new version of z4root because it doesnt work anymore Apr 21 21:09:51 go ask in #android-root Apr 21 21:09:53 and i read the z4root source code but i dont understand how it opens an adb shell Apr 21 21:10:08 and why not just use the adb client on the device? Apr 21 21:10:10 the adb port is normally always the same Apr 21 21:10:19 t0mless: they only know about stuff like bootloaders and recovery but not about android development Apr 21 21:10:33 t0mless: there is an adb client on the device? Apr 21 21:10:44 there is on my A500 Apr 21 21:10:55 t0mless: i mean 2.3 btw. is A500 ICS? Apr 21 21:10:56 not sure I have a terminal installed on my droid2 to check Apr 21 21:11:04 in 4 there is an adb client i also found by googling Apr 21 21:11:11 A500 is honeycomb atm I think, but I have ICS on mine Apr 21 21:11:14 but not in gingerbread Apr 21 21:11:21 ah, thats why you have an adb client Apr 21 21:11:52 maybe the client runs on gingerbread as well? Apr 21 21:13:01 soroca: You should try to sniff the ports used by adb... Apr 21 21:13:37 thegrinch1: good idea but those are external ports and i think it doesnt even use tcp by default, only usb Apr 21 21:13:46 so i need the loopback tcp port Apr 21 21:14:06 i think the loopback port is different Apr 21 21:14:20 but i dont find it on google anymore Apr 21 21:14:43 no way to sniff ports on a device when launching a debug session? Apr 21 21:15:11 hey is there some kind of android-android-dev channel? Apr 21 21:15:20 i mean where people develop android and not androd apps Apr 21 21:15:36 thegrinch1: i dont know how Apr 21 21:15:46 write an app...lol Apr 21 21:16:11 he means rom development Apr 21 21:16:17 Ravenheart: yeah Apr 21 21:16:19 lol'd Apr 21 21:16:30 but thegrinch1 means writing an app for sniffing i think Apr 21 21:16:42 yep Apr 21 21:16:52 adb is so weird Apr 21 21:17:31 I'm not very into linux,but it should be possible to make an app for check opened ports. Apr 21 21:17:55 oh whats the linux command to show all listening ports? Apr 21 21:17:57 you can restart the ADB server to listen on whatever port you want Apr 21 21:18:09 t0mless: on loopback too? Apr 21 21:18:16 I assume so? Apr 21 21:18:20 t0mless: but i need root for that i guess Apr 21 21:18:35 something like setprop adb.tcp.port 5555 Apr 21 21:18:38 stop adbd Apr 21 21:18:42 start adbd Apr 21 21:18:45 yea Apr 21 21:18:53 you would need root Apr 21 21:18:54 t0mless: but that defeats the point Apr 21 21:19:03 so you just wanna know the port the device is listening to to get adb backdoor? Apr 21 21:19:10 that restarts it in tcpip mode on port 5555 Apr 21 21:19:25 thegrinch1: i just want to connect to it from an app, locally, without usb cable or any such crap Apr 21 21:19:29 you can also do it from connected to a computer Apr 21 21:19:31 thegrinch1: do you know the app z4root? Apr 21 21:20:02 yep,try to find gingerbreak sources Apr 21 21:20:03 t0mless: yeah but i want it to work without external cables or something Apr 21 21:20:29 thegrinch1: the gingerbreak.apk? i didnt find them on google Apr 21 21:20:43 try xda-developper Apr 21 21:20:54 that's the place for rom makers.... Apr 21 21:21:01 what are the various linux apk tools i saw one not like aoktools or manager but it was an off tool with lots of resource tracking Apr 21 21:21:10 i only found the apk Apr 21 21:21:21 thanks for your help thegrinch1 Apr 21 21:21:29 maybe you can get the writer email... Apr 21 21:21:32 but i already checked xda and all of google Apr 21 21:21:54 I'm not a lot into all that stuff....sorry.. Apr 21 21:22:00 ok thanks Apr 21 21:39:17 dear all , i have a problem with my internal memory with my sgs2 , full story forum.xda-developers.com/showthread.php?p=25110962 Apr 21 21:39:22 please help Apr 21 21:39:52 #android for that Apr 21 21:40:23 guys i want to connect to f*****g adb Apr 21 21:41:01 ok , can i unmount the internal memory and use MicroSD card inested of it Apr 21 21:41:15 lol Apr 21 21:41:16 no Apr 21 21:41:17 Do someone know how to downgrade adb? Apr 21 21:41:33 lol beshoo Apr 21 21:41:35 that would be nice Apr 21 21:41:35 from ver 1.0.29 to 1.0.26 Apr 21 21:41:59 what i life without USB ram ! Apr 21 21:42:08 what a * Apr 21 21:42:33 so true Apr 21 21:42:49 #android , thay dont know f*** sh***t Apr 21 21:42:56 so true Apr 21 21:43:38 here with dev , you all know some thing ! Apr 21 21:44:49 Ok is there an SCAN tool that sho if any badsector in the ram ! Apr 21 21:45:40 when i copy files to the mob USB internal memory , it freeze ! restart ! .....:) Apr 21 21:46:07 are SharedPreferences all wrote to shared_prefs on boot up? Apr 21 21:48:49 Has anyone encountered a NoSuchMethodError for Bitmap.getByteCount? Bizzare, I'm getting this testing on a froyo platform Apr 21 21:48:52 thanks Apr 21 21:51:15 What's the api level of getByteCount? Apr 21 21:52:10 SimonVT: just found out, it's level 12, thanks Apr 21 21:52:13 :) Apr 21 21:59:27 interesting question Apr 21 21:59:45 If I had a listview and I only havea few items, how can I center it verticly on the screen? Apr 21 22:00:16 so the few items arent all the way at the top but centered Apr 21 22:04:08 Did anyone ever had that error when exporting an Android Project under Eclipse: http://pastebin.com/CLdPyFK5 ? Apr 21 22:08:17 Does anyone know how I can make my app one of the selections from Gallery's share menu? I can't seem to find a clear guide thanks. Apr 21 22:11:01 I may have found a solution in the manifest, yet am not sure if it's correct Apr 21 22:18:06 If you look at the android 4 contacts app... where can i find the drawable for the listitem background? Apr 21 22:21:06 http://smartphoneblogging.com/wp-content/gallery/amazon-kindle-fire/kindle_fire_android_4_0_3_ics_contacts.png Apr 21 22:21:21 what are the various linux apk tools i saw one not like apktools or apkmanager but it was an off tool with lots of resource tracking Apr 21 22:21:44 and a decompiler so i could mod apps like gtalk Apr 21 22:24:27 does onCreateOptionMenu, get created/run, before onCreate? :) Apr 21 22:25:38 It'd take you two breakpoints and a debug to figure that out Apr 21 22:27:28 true. But haven't coded my stuff to a runable state yet. Apr 21 22:29:14 Ok, SimonVT, is it possible to edit the menues after creating them in the oncreateOptionMenu.? Like if i have to add a submenu? Apr 21 22:56:55 finally found what i was looking for APKInspector Apr 21 22:57:11 thanks for making me search hours :) Apr 21 23:13:31 android displays the screen after onCreate, right? Apr 21 23:57:56 \o/ Apr 21 23:58:00 http://www.groklaw.net/article.php?story=20120421131810380 Apr 22 00:04:23 Oh boy, a copywritable API Apr 22 00:04:43 that's such bs Apr 22 00:05:06 The fact that it's a question is, yes Apr 22 00:05:30 indeed Apr 22 00:20:32 Finished reading that, it looks positive at the end. Good stuff. Apr 22 00:22:29 hey guys Apr 22 00:22:41 http://stackoverflow.com/questions/10263440/failing-to-populate-a-listview-with-an-asynctask <-- any ideas? i've tried many different things to get this working Apr 22 00:22:45 Hello chups. Apr 22 00:22:47 has anyone configured roboguice 2.0 with robolectric? Apr 22 00:23:00 it doesn't seem to be supported as of the moment Apr 22 00:26:08 rij: are you just populating the listview only in an asynctask? Apr 22 00:26:30 vyes Apr 22 00:26:50 is ShowsAdapter yours? Apr 22 00:26:54 Yes Apr 22 00:27:10 vadi2: Yes, I am. I'm getting some data from an Async request and then trying to populate the ListView inside the FrameLayout of main.xml. ShowsAdater is inside the MainActivity.class Apr 22 00:27:11 What does it derive from Apr 22 00:27:37 It just extends ArrayAdapter Apr 22 00:27:54 Unless I'm not understanding the questino right? Apr 22 00:28:20 I've just worked with ListView+ArrayAdapter so I might be able to help out Apr 22 00:28:33 Firstly you need to reset setNotifyOnChange after you call notifyDataSetChanged Apr 22 00:28:43 Tricky, but by default it always does the notifications when you add stuff Apr 22 00:29:21 Where do I reset it? Right before I call "NotifyDataSetChanged ? Apr 22 00:29:59 After - 'If set to false, caller must manually call notifyDataSetChanged() to have the changes reflected in the attached view. The default is true, and calling notifyDataSetChanged() resets the flag to true.' Apr 22 00:30:01 I added: adapter.setNotifiyOnChange(true); under adapter.notifyDataSetChanged Apr 22 00:30:12 Okay, hm Apr 22 00:30:25 * rij runs application Apr 22 00:30:30 Nope, doesn't populate Apr 22 00:30:41 I feel like I'm missing something fundamentally basic but can't seem to figure it uot Apr 22 00:31:07 rij: show me the 2-3 lines where you are "populating" it Apr 22 00:31:46 for (Show show : Show.getShows()) { Apr 22 00:31:46 mArrayList.add(show); Apr 22 00:31:47 }; Apr 22 00:31:56 ShowsAdapter adapter = new ShowsAdapter(MainActivity.this, android.R.layout.simple_list_item_1, mArrayList); Apr 22 00:32:08 readme: The bulk of the class is in the stackoverflow question Apr 22 00:32:15 oh, I'll take a look Apr 22 00:32:56 There are three other functions in there, setRecurringAlarm (to populate - and future to upate a database and call services), onCreateOptionsMneu and onOptionsItemSelected - which I didn't think are important to the problem. Apr 22 00:35:31 rij: well, I can't tell what is wrong, but there are some things I would have done differently. I would have made a method that sets up your adapter and listview with your arraylist and called it from onCreate Apr 22 00:35:44 rij: then in onPostExecute, I'd just call notifyDataSetChanged Apr 22 00:36:06 The problem is, I don';t know how I'd instantiate the adapter without any data, initially. Apr 22 00:36:06 that way you can refresh the list Apr 22 00:36:19 you only need to pass a reference to an empty array list to it Apr 22 00:36:21 then you can fill it up later Apr 22 00:36:29 I got a nullpointerexception when i tried Apr 22 00:36:32 just make sure you are manipulating the same arraylist that it has Apr 22 00:36:33 but hold, let me try again Apr 22 00:36:37 you probably didn't instantiate the arraylist? Apr 22 00:36:42 i said empty, not null Apr 22 00:37:17 ok, hold Apr 22 00:37:33 also maybe stick a log message in where you are adding Shows to the list so we can see what is going in Apr 22 00:39:27 readme: Something like this: http://pastebin.com/Fc32BEub ? Apr 22 00:40:48 Debug output from the mArrayList.add: http://pastebin.com/Ekyt6xJv Apr 22 00:41:00 yeah that is better.. Apr 22 00:41:13 Same error Apr 22 00:41:37 I removed the loadTitles() function alltogether Apr 22 00:41:40 since it just had two lines of code Apr 22 00:41:53 ok, here is what I have just realized Apr 22 00:42:02 Is it something super stupid that I'll beat myself over? Apr 22 00:42:10 what kind of adapter did you have, arrayadapter? Apr 22 00:42:16 Yes Apr 22 00:42:29 and you have an ArrayList of Show? Apr 22 00:42:36 Yes Apr 22 00:42:40 How does the array adapter know how to display a Show object? Apr 22 00:42:47 toString()? Apr 22 00:42:51 afaik, it doesn't Apr 22 00:42:53 In the ShowsAdapter, yes toString() method Apr 22 00:42:56 Line 92 in the first pastebin I linked. Apr 22 00:43:11 oh ok, you have a subclass Apr 22 00:43:12 When it does a getView, it gets the title of the show Apr 22 00:43:12 1 sec Apr 22 00:43:28 put a log message in there too Apr 22 00:43:34 in the getView? Apr 22 00:43:36 yeah Apr 22 00:43:43 What will I be checking for? The text data? Apr 22 00:43:50 make sure the line of code that sets the text is getting hit and setting the text Apr 22 00:43:53 print the text, too Apr 22 00:43:57 ok hold Apr 22 00:48:07 readme: Apr 22 00:48:20 rij: Apr 22 00:48:21 http://pastebin.com/yE84juZS Apr 22 00:48:26 Had some issues with copy asnd paste Apr 22 00:48:42 so apparently the adapter is working and setting the text? Apr 22 00:49:01 maybe its your layout Apr 22 00:49:14 apparantly - it definitely has the textview correct - getting the test of show_title worked fine Apr 22 00:49:21 Maybe.. I posted my layout in the stackoverflow questions Apr 22 00:49:22 hm, the layout looks normal. Apr 22 00:49:28 Exactly Apr 22 00:49:30 It's insane! :( Apr 22 00:51:06 just to be overly paranoid Apr 22 00:51:16 take the framelayout out and put the xmlns:android in the listview Apr 22 00:51:22 then it can be the only element in the layout Apr 22 00:51:33 hello how can i flip a webview? i mean rotate it by 90 degree? Apr 22 00:51:43 readme: Testing Apr 22 00:52:12 readme: OK, so when I did that, it didn't load anything at all Apr 22 00:52:31 just the compatibility header bar Apr 22 00:52:33 lets see your layout Apr 22 00:52:38 for R.layout.list_row_show Apr 22 00:52:46 or by 42 degrees Apr 22 00:52:49 go ahead and put the framelayout back i guess Apr 22 00:54:29 readme: Let me put it up, hold Apr 22 00:55:03 readme: Apr 22 00:55:09 http://pastebin.com/kXCA752e Apr 22 00:55:50 rij: the text color is black Apr 22 00:55:52 that's why you can't see it Apr 22 00:55:58 lol.. Apr 22 00:56:00 hold up Apr 22 00:56:02 wait Apr 22 00:56:04 the theme is white Apr 22 00:56:06 Good evening all. I wonder. What do I need to import int order to get a Strings resource item from within a BroadcastListener? Apr 22 00:56:09 ah ok Apr 22 00:57:15 rij: now that I think about it, I have never passed an item to listview that had fill_parent on the root element height Apr 22 00:57:26 er a BroacastReceiver I mean Apr 22 00:58:23 readme: That wouldn't solve the issue though - FrameLayout needs it Apr 22 00:58:29 apparently getText is undefined Apr 22 00:58:45 rij: uh... your item isn't in the framelayout Apr 22 00:58:46 it's in the listview Apr 22 00:59:01 i'm taking about this http://pastebin.com/kXCA752e Apr 22 00:59:10 writing a test now to see what happens Apr 22 00:59:18 OOOH Apr 22 00:59:19 hold Apr 22 00:59:41 layout_height and layout_width needs to be defined Apr 22 00:59:54 change layout_height to like 50dp for test Apr 22 00:59:57 leave width at fill_parent Apr 22 01:00:10 the reason I say to use an absolute size is because you used the weights so wrap_content isn't going to work. Apr 22 01:00:11 hillct: getText is a method on a Context - in an Activity, the Activity itself is the Context, so the implied 'this' works - in a BroadcastReceiver you have to use the Context you're given by the OS Apr 22 01:00:23 readme: Testing Apr 22 01:00:48 readme: That was it!! Apr 22 01:00:50 THANK YOU SO MUCH Apr 22 01:00:53 np Apr 22 01:00:59 i'll answer the question and collect my upboat? Apr 22 01:01:07 add the info I would have needed to answer you Apr 22 01:01:18 hello how can i rotate an entire webview by an arbitrary number of degrees? Apr 22 01:01:41 readme: I am going to - so other people can use it. Apr 22 01:02:05 Leeds: Thanks. will try that Apr 22 01:02:48 rij: hm, in your original post you had simple list item from android.R Apr 22 01:03:08 oh well. clean it up and answer it yourself I guess. Apr 22 01:03:11 I've got enough rep Apr 22 01:03:16 readme: OK Apr 22 01:03:27 readme: If you awnt, make a post on there with the solution Apr 22 01:03:28 * readme is trying to hit 2k rep so he gets a nofollow backlink to his website Apr 22 01:03:32 I will upboat and check as correct Apr 22 01:04:00 ok, done :) Apr 22 01:04:14 w00t Apr 22 01:04:31 229 more rep and I get a nice backlink. Apr 22 01:07:08 readme: Nice Apr 22 01:08:02 hmm Apr 22 01:08:14 so I got the list loading, but it's not actually loading up text - it just displays the list Apr 22 01:09:50 Weird errors 0_0 Apr 22 01:11:27 test your layout in the layout editor first? Apr 22 01:11:59 readme: I am doing that now - using IntelliJ instead of Eclipse so there's no good built in layout editor Apr 22 01:12:11 doesn't it have a preview? Apr 22 01:12:27 * readme will be giving intellij another try after the next release Apr 22 01:13:12 readme: It does - but I'm using the ActionBarCompat which breaks things Apr 22 01:16:22 rij: it's because you need to set android:orientation="vertical" on the outer LinearLayout Apr 22 01:16:35 the default is horizontal and you've got both elements width set to fill_parent Apr 22 01:16:42 o Apr 22 01:16:45 let me test, hold Apr 22 01:17:12 That was it readme. You are +1 in my book. Want your name in my app!? :-p Apr 22 01:17:16 actually, wanta free app? Apr 22 01:17:23 rij: if you want to thank me, buy my app :) Apr 22 01:17:27 it's in my stack overflow profile Apr 22 01:17:48 but sure, send me a beta if you want Apr 22 01:17:51 see profile Apr 22 01:19:14 readme: I never have wifi on . this won't work well. why can't it work over 4G? Apr 22 01:21:36 hello can somebody help me? Apr 22 01:22:30 rij: it might. i can email you a copy to test Apr 22 01:22:38 :| Apr 22 01:22:48 im using a webview with a canvas Apr 22 01:23:18 now i dont know how i can send touch events through to the canvas Apr 22 01:24:16 Just off the top of my head, you have to make Javascript wrappers on your webview to talk to Android classes Apr 22 01:25:07 rij: wow thats weird Apr 22 01:25:09 how would i do taht? Apr 22 01:25:30 soroca: i just want to know where the user has clicked/touched, the coordinates Apr 22 01:25:33 WebView can get the touch events directly Apr 22 01:25:37 you don't need to use the JS bridge Apr 22 01:26:50 oh cool Apr 22 01:26:58 romainguy: but i want to use them in canvas Apr 22 01:27:12 like draw a point Apr 22 01:27:20 then do so Apr 22 01:27:23 what's stopping you? Apr 22 01:27:39 romainguy: but how do i get them from java (webview) to canvas? Apr 22 01:27:45 you don't need to Apr 22 01:27:48 i dont know how to pass it through Apr 22 01:27:50 there are JS apis for that Apr 22 01:27:58 but Apr 22 01:28:08 can you give a link? Apr 22 01:28:10 or an example? Apr 22 01:28:16 i dont understand Apr 22 01:29:13 oh you mean i just do it as if it was a normal web page? i think i get it lol Apr 22 01:29:29 and it is passed through automatically Apr 22 01:34:02 rima_: :) Apr 22 01:39:22 romainguy: here is a better one: how can i pass device orientation events through to js? Apr 22 01:43:44 So what's the best way to store an ArrayAdapter? Apr 22 01:46:12 "store"? Apr 22 01:49:04 For screen orientation changing Apr 22 01:49:31 how can i pass 3d device orientation changes to the canvas in a webview? Apr 22 01:50:22 when I run something in an async thread, can it still use Log.d? Apr 22 01:50:40 I've put a log.d in the runinbackground method and it doesn't show up in console Apr 22 01:50:53 rij: i'd just keep the data and recreate the adapter. no harm in it, really. Apr 22 01:51:05 keep a static ref to the ArrayList Apr 22 01:51:06 allied: You can definietly still use Log.d Apr 22 01:51:15 allied: Did you run .execute() ? Apr 22 01:51:17 yep Apr 22 01:51:50 I've followed debug and it seems to be getting to the run in background method fine, but it just doesn't show up in console Apr 22 01:51:57 logcat console that is Apr 22 01:52:08 readme: In onSaveInstanceState, what is it? ArrayList? Apr 22 01:52:21 allied: Try a log.e JUST in case Apr 22 01:53:18 still not showing up Apr 22 01:53:40 rij: as readme said, just store the data and recreate the adapter on the other side of the configuration change Apr 22 01:55:07 also, if I put a breakpoint in the async class, it never breaks to debug Apr 22 01:55:41 allied: sounds like your thread isn't being run :) Apr 22 01:55:48 allied: pastebin your code? Apr 22 01:56:02 its being ran but just isn't letting me play with it Apr 22 01:56:49 rij: tbh i am kind of a hack. i'd just use a static field and be done with it. Apr 22 01:57:48 rij: you should/could pass it through onRetainNonConfigurationInstance()/getLastNonConfigurationInstance() or whatever those methods are called Apr 22 01:58:04 readme: I figured I might as well do it right frmo the beginning so I am not scrambling to fix crap Apr 22 01:58:15 evancharlton: Store the entier object? Apr 22 01:58:26 rij: the *data*, not the adapter Apr 22 01:58:35 ah ok Apr 22 01:58:37 rij: those callbacks don't store anything Apr 22 01:58:56 evancharlton: Yes, they're just the functions TO store stuff Apr 22 01:59:18 they persist it between configuration changes Apr 22 01:59:21 rij: ... no. Apr 22 01:59:35 evancharlton: I worded that wrong Apr 22 01:59:39 yes Apr 22 02:08:50 BE ARE BE Apr 22 02:21:54 * readme is going to learn ARM tonight \o/ Apr 22 02:24:58 how is everyone doing? Apr 22 02:40:52 Is ADT 19 out? Apr 22 02:44:57 vadi2: Yes Apr 22 02:45:17 Hm... it's not being listed in my Eclipse updates still Apr 22 02:46:05 Oh, I thought you were refering to the SDK tools Apr 22 02:46:22 Still on ADT 18 Apr 22 02:46:58 Ah. Apr 22 02:47:13 you can always check here for the latest info http://tools.android.com/release Apr 22 02:47:40 Thanks Apr 22 02:48:00 Although I remember seeing somewhere that SDK tools 19 was just an emergency bugfix for 18, and that 20 is the new 19 Apr 22 02:48:12 so ADT is probably going to skip 19 Apr 22 02:56:15 h8n eclipse. Googled the vague error message for way too long before figuring out you have to hit resume a couple times before the debugger would actually point me to my broken code. Apr 22 02:58:22 ChainsDD, Any plans of adding a "rootkeeper" feature to Superuser? Apr 22 02:58:41 That's on the TODO list for tonight actually Apr 22 02:58:43 also, I don't understand. How does Superuser grant itself the permission to use su? Apr 22 02:58:48 sweet :D Apr 22 02:59:05 It requests permission just like any app that requires root does Apr 22 02:59:22 I won't make an exception to the rule just because it's my own app ;-) Apr 22 02:59:54 hmm, but what stops other apps from granting themselves that permission without superuser intervening? **** ENDING LOGGING AT Sun Apr 22 03:00:00 2012