**** BEGIN LOGGING AT Fri Mar 23 02:59:58 2012 Mar 23 03:05:39 what is my cursor loader so super slow Mar 23 03:05:43 the db is small Mar 23 03:06:11 and the listfragment is only pulling from one table Mar 23 03:07:32 which is forbidden, 401 or 501? Mar 23 03:08:07 403 Mar 23 03:08:11 neither, 403 Mar 23 03:08:21 damn jeric beat me Mar 23 03:08:24 Can you set a buttons background to a layout background? Mar 23 03:08:25 lol Mar 23 03:08:41 T-Dub|DlolPics: what do you mean exactly? Mar 23 03:09:00 er, can you set a button's background to a layout? (xml layout but put into the drawable folder) Mar 23 03:09:12 no Mar 23 03:09:20 oO Mar 23 03:09:20 a layout is totally different to a drawable Mar 23 03:09:36 I'm making a splash screen, and it's a xml layout, but what I want to do is make it so if the user touches the screen it auto stops the animation and opens a new activity. Mar 23 03:09:36 SimonVT: the question was bound to be asked at some point ;) Mar 23 03:10:04 register an onTouch (or onClick) listener Mar 23 03:10:12 What I was doing before is setting an animation (which was an xml file with an animation-list in it) as a button's background, and that button was just fill parent Mar 23 03:10:19 you prorbably want onclick Mar 23 03:10:24 I suppose, Napalm :p Mar 23 03:10:30 Is an onclick for all of the screen? Mar 23 03:10:40 it's for that view Mar 23 03:10:49 so if your view fills the screen... Mar 23 03:11:15 what are you doing jeppy that you are getting 401 or 501? Mar 23 03:11:26 texting my girlfriend Mar 23 03:11:39 me is now really confused Mar 23 03:11:49 i was telling her forbidden Mar 23 03:11:56 but i just put 401 :\ Mar 23 03:12:03 heh Mar 23 03:12:13 same thing, 401 Unauthorized Mar 23 03:12:13 So is onClick just a override method? Mar 23 03:12:21 she needs to supply a password :D Mar 23 03:12:59 no Mar 23 03:13:06 wait Mar 23 03:13:08 yes Mar 23 03:13:09 lol Mar 23 03:13:32 I'm guessing not in the activity class though? Mar 23 03:14:04 view.setOnClickListener( new OnClickListener { ...onClick(){ /*stuff*/ } }); Mar 23 03:14:55 or you can have your activity implement an onclicklistener interface Mar 23 03:15:03 T-Dub|DlolPics: ((Button)findViewById(R.id.mybutton)).setOnClickListener(new OnClickListener(){ public void onClick(View v){ startActivity(new Intent(this, NextActivity.class)); } }); Mar 23 03:15:10 Oh that. Mar 23 03:15:12 I know about that Mar 23 03:15:19 :| Mar 23 03:15:24 There is no point of the button if I can't set the background to a layout Mar 23 03:15:26 so why are you not using it Mar 23 03:15:35 how so? Mar 23 03:15:36 T-Dub|DlolPics, u been over to d.android.com, yes? Mar 23 03:15:36 I thought you ment you can create a onclick for the whole screen, not just a specific button Mar 23 03:15:41 what is the layout? Mar 23 03:15:42 ^ Mar 23 03:15:43 lol Mar 23 03:16:02 a RelativeLayout Mar 23 03:16:09 like I said, the onclick is for the view, if the view fills the whole screen... Mar 23 03:16:16 arg, i mean the content of the xml, stick it on pastebin or something Mar 23 03:16:16 then yes it is basically for the whole screen Mar 23 03:16:20 Oh I see what you mean, yeah sorry. Mar 23 03:16:27 Oh, ok, sorry. Mar 23 03:16:52 jeppy: this is where we find out his layout is just a imageview in a relative layout with centerInParent=true Mar 23 03:16:54 http://pastebin.com/iPDBTdVf Mar 23 03:16:54 ;) Mar 23 03:17:15 lmao Mar 23 03:17:18 close Napalm Mar 23 03:17:31 T-Dub|DlolPics: any view can have a OnClickListener Mar 23 03:17:33 not just abutton Mar 23 03:17:49 put an id on the RelativeLayout and set its onclicklistener Mar 23 03:17:55 Oh yeah. A view has a button, not is a button Mar 23 03:17:58 then use this as your splash activity layout Mar 23 03:18:05 a button is a view Mar 23 03:18:11 oh wow you can set id's on the relativelayout itself? Mar 23 03:18:11 to be more accurate Mar 23 03:18:20 lol Mar 23 03:18:24 this is quite amusing Mar 23 03:18:29 That would make things easier haha Mar 23 03:18:36 he said he's only been at this a couple days Mar 23 03:18:39 So by what you just said a layout is a view as well? Mar 23 03:18:44 yes Mar 23 03:18:53 That's convient Mar 23 03:19:02 T-Dub|DlolPics: http://developer.android.com/reference/android/widget/RelativeLayout.html Mar 23 03:19:03 a viewgroup, specifically, which extends view Mar 23 03:19:05 look at the top of this page Mar 23 03:19:18 Object > View > ViewGroup > RelativeLayout Mar 23 03:19:19 :P Mar 23 03:19:20 In the view class, gotcha Mar 23 03:19:22 haha Mar 23 03:19:28 I'm still new to api's and docs Mar 23 03:19:56 fair enough i suppose Mar 23 03:21:33 Well what you just posted makes complete sense, after I was told. But I guarantee I could of been on that page going "this page doesn't tell me shit" while looking at that if you never told me. Mar 23 03:22:14 T-Dub|DlolPics: btw, your "green gradient background" ImageView can be removed Mar 23 03:22:33 T-Dub|DlolPics: instead set the android:background="@drawable/splashbackground" on your RelativeLayout Mar 23 03:22:35 And just set the relativelayout to that? Mar 23 03:22:42 Ohhh yeah Mar 23 03:22:45 learning ftw. Mar 23 03:22:46 Thanks Mar 23 03:23:01 um Mar 23 03:23:18 for declaring the relative layout, would it be (RelativeLayout) findViewById? Mar 23 03:23:25 flatter view hierarchies are better Mar 23 03:23:34 yes Mar 23 03:23:35 yep Mar 23 03:23:58 performance wise ^^ Mar 23 03:24:07 Hmm Mar 23 03:24:16 I thought I had it but it's not letting me import it. Mar 23 03:24:25 just kidding Mar 23 03:24:26 :o Mar 23 03:24:31 the new performance lint rules in the latest ADT have made my life easier Mar 23 03:24:58 rather than having to manually check other peoples code that is Mar 23 03:29:24 Thank you for the help guys, I'll be back later. Mar 23 03:36:04 getSimSerialNumber returns the obvious, but what about dual sims? Mar 23 03:36:33 woot Mar 23 03:36:45 ADT 17 is sweet Mar 23 03:39:46 whats different Mar 23 03:44:11 whoo i have something working on google tv :D Mar 23 03:45:21 canadiancow, congrats on your something :) Mar 23 03:45:30 jeppy: http://android-developers.blogspot.co.uk/2012/03/updated-sdk-tools-and-adt-revision-17.html Mar 23 03:45:53 thats what i like to see Mar 23 03:46:05 but lol Mar 23 03:46:18 i updated and eclipse is frozen with 4 error msgs Mar 23 03:48:47 damn its not closing Mar 23 03:49:04 signal 9: hopefully it doesn't corrupt my workspace Mar 23 03:50:19 oh shits! Mar 23 03:50:23 is the emulator that mcuh faster? Mar 23 03:50:39 the x86 emulator is pretty amazing Mar 23 03:50:48 compared to before Mar 23 03:51:09 bitchin Mar 23 03:51:12 bout time Mar 23 03:51:19 android stuff is really starting to look up Mar 23 03:51:36 I just read how a LOT of aosp linux mods made it into linux kernel Mar 23 03:51:47 only api level 10 though Mar 23 03:51:53 but that's more than enough for most Mar 23 03:52:07 eg, not having to patch linux kernel for hardware compatibility (rather not having to patch kernel for ANDROID support) Mar 23 03:53:05 hmmm...... rebooting to close eclipse (in ubuntu!) Mar 23 03:53:23 wabz: intel x86 system image by intel corp? Mar 23 03:53:28 yeah Mar 23 03:53:35 and ps -A|grep eclipse = "" Mar 23 03:53:37 I also see hardware accel ex. manager, but I'm a linux user :| Mar 23 03:54:06 yeah the hw accel in linux emulator isn't there for htis Mar 23 03:54:24 but apps/etc run super smoothly Mar 23 03:54:32 browser pops up straight away Mar 23 03:54:38 would be psyched if they had this for ics Mar 23 03:55:29 does anyone here think they could take a look at my project source? something happened and the widgets arnt responding to click anymore. Mar 23 03:55:49 paste code and link Mar 23 03:56:55 grrr... Mar 23 03:57:42 "This version of ADT required Android SDK Tools in revision 17 or above. Current revision is 16" (this was after I just updated to 17 but restarting eclipse crashed) Mar 23 03:57:52 checking for updates again says it's up to date Mar 23 04:01:24 you launched sdk manager and updated through there? Mar 23 04:02:56 god damn it Mar 23 04:03:01 love havin 100mb internet Mar 23 04:05:46 jeppy: still around? Mar 23 04:10:13 right, ima outta here Mar 23 04:10:33 jeppy Mar 23 04:12:25 does anyone here think they could take a look at my project source? something happened and the widgets arnt responding to click anymore. Mar 23 04:13:11 NightmareApps: dump your code somewhere and paste a link Mar 23 04:13:20 http://db.tt/p0rMNZj5 Mar 23 04:13:51 pastebin would have been nicer Mar 23 04:14:18 NightmareApps: it is unlikely someone is going to unzip your project and dissect it for you Mar 23 04:14:28 prepare a test case that is readable in a pastebin Mar 23 04:14:37 well it's all good code, somethings just wrong Mar 23 04:14:50 all good code~ Mar 23 04:14:53 nice Mar 23 04:15:00 it worked, idk what happened but all my widgets stopped responding to clicks Mar 23 04:15:04 and dont update Mar 23 04:15:16 do you know what you changed? Mar 23 04:15:19 nope Mar 23 04:15:25 i was not fully into it Mar 23 04:15:27 you need to learn git and keep your projects in there. Mar 23 04:15:31 that way you can revert changes Mar 23 04:15:38 i know :\ Mar 23 04:15:59 so do it. it only takes about 1 hour to get your project in and learn basic use. Mar 23 04:16:15 that wont help my position no Mar 23 04:16:15 wait wtf? Mar 23 04:16:16 1hr Mar 23 04:16:22 git commit -a Mar 23 04:16:32 ron_frown: assume he will need to figure out how to install it and stuff too Mar 23 04:16:44 plus, you shouldn't commit bin and gen Mar 23 04:17:17 true Mar 23 04:17:20 here, read this: http://www.vogella.de/articles/Git/article.html Mar 23 04:17:33 don't let this happen again :) Mar 23 04:17:43 i want to fix this first :( Mar 23 04:17:50 no: you want US to fix it first. Mar 23 04:17:51 i've done some git for school Mar 23 04:17:55 that's why oyu're sending us a zip Mar 23 04:18:04 i've looked through it for an hour dude Mar 23 04:18:10 i have no clue. Mar 23 04:18:31 Ok, I'll take a quick look Mar 23 04:18:35 :) Mar 23 04:18:36 thank you Mar 23 04:23:08 torch receives click, nothing happens on battery Mar 23 04:23:10 what is supposed to happen Mar 23 04:23:21 torch wont register that it's being clicked Mar 23 04:23:26 it should turn on flash light Mar 23 04:23:28 but the image changes Mar 23 04:23:30 why does it change? Mar 23 04:24:14 flashlight permission is commented out in your manifest Mar 23 04:24:17 torch should change to light torch and turn on flashlight, battery just updates periodically to display battery %, each half of a heart is 10% Mar 23 04:24:18 I suspect that is your actual problem Mar 23 04:24:31 it's registering click on your screen? Mar 23 04:24:38 it changes to another image Mar 23 04:24:39 so yeah Mar 23 04:24:42 Mar 23 04:24:44 wtf Mar 23 04:24:47 check your manifest Mar 23 04:25:27 Still no flashlight Mar 23 04:26:13 but that seems to be because isLightOn is always false. Mar 23 04:28:36 the torch doesn't even click on my phone! Mar 23 04:28:43 that's my main problem Mar 23 04:28:59 when I click the torch here, the image changes Mar 23 04:29:06 odd. Mar 23 04:29:18 lemme try it on my fire Mar 23 04:29:22 yeah, looks like you have your work cut out for you, anyway Mar 23 04:29:26 g2g Mar 23 04:29:30 thanks for help Mar 23 04:29:44 can i extract my source for an older apk? Mar 23 04:29:59 from* Mar 23 04:38:30 Napalm|afk, NightmareApps , back Mar 23 04:40:55 hey Mar 23 04:41:09 so it works on my kindle fire, now gotta see why it doesnt on g2 Mar 23 04:45:35 OH! Mar 23 04:45:41 sec, think its my custom launcher Mar 23 04:45:46 adwlauncher Mar 23 04:46:10 whats your app do nightmare? i saw the "bed widget" Mar 23 04:46:55 bed is work in progress (nothing right now)... torch turns on flashlight, hearts are battery bar Mar 23 04:47:04 its just a set of widgets based on the game Minecraft Mar 23 04:47:12 gonna be about 10 total Mar 23 04:47:14 ah.. cool Mar 23 04:47:22 i haven't played in a while Mar 23 04:47:30 i bought it like a year ago Mar 23 04:47:38 when it was in alpha or beta Mar 23 04:47:41 same Mar 23 04:47:45 Hey I just flashed my htc desire s with CM9 nightly. Looking for htc locations app replacement. Anyone know an app that uses the same data source? Mar 23 04:47:59 you're welcome to get my app for free as i update it http://nightmareapps.com/current-project.html Mar 23 04:48:36 Is it possible to assign extra information to each buttonview? Mar 23 04:49:02 I dynamically create let's say three buttons and assign each onClick to trigger the same function Mar 23 04:49:30 And each button has an Object it's modifying Mar 23 04:49:52 have each onclick call the same function and have the object be a member variable Mar 23 04:50:25 that sounds right at least Mar 23 04:51:03 well, the approach I'm thinking is to set each button's ID to an incremental number from 0 to 1 Mar 23 04:51:10 0, 1, 2, etc. Mar 23 04:51:33 Then when onClick is pressed, convert the ID into an integer to get the index Mar 23 04:51:37 then call myfunct(int id){} Mar 23 04:52:26 I was hoping to be able to store the integer value somehow else instead of as a string in the button ID Mar 23 04:53:16 shouldn't be a problem Mar 23 04:53:49 is there a way on the market to see when the app was first uploaded instead of just the last updated date? Mar 23 04:54:34 idk if there is an official way, but you could go back to the beginning of your downloads Mar 23 04:54:58 what do you mean go back to my downloads? Mar 23 04:55:01 go see when the first review was done (probably by the developer) :D Mar 23 04:55:13 wabz: makes sense Mar 23 04:55:45 hmm maybe not - I think if they went and updated the review on new versions then it won't be at the beginning Mar 23 04:55:53 but the first review is probably close Mar 23 04:56:03 i just want to compare my app vs others as far as downloads per day/week/month etc... when they started Mar 23 04:56:11 just so I can judge if mine is on par or not Mar 23 04:56:35 you have the download graph right? Mar 23 04:56:48 ...when does it start? Mar 23 04:56:52 ya but its small, can I see larger detailed version of it? Mar 23 04:57:08 yeah there's sliders at the bottom Mar 23 04:57:20 wait, where? Mar 23 04:58:07 im on the web interface for google play Mar 23 04:58:08 to control the date range Mar 23 04:58:09 i see no slider Mar 23 04:58:23 wait, brb 10min Mar 23 04:58:28 k Mar 23 05:03:17 Found what I wanted Mar 23 05:03:21 "setTag" method Mar 23 05:08:05 ok Mar 23 05:10:02 how much does hiring a designer of about a dozen icons cost? Mar 23 05:12:32 QubeZ, there's no slider any more, i haven't seen it since it changed to google play Mar 23 05:12:46 jeppy: ok Mar 23 05:13:53 but if you click "all" and go to the earliest point, that's pretty accurate, or download a csv of your stats Mar 23 05:14:09 im wanting stats for other apps, not mine Mar 23 05:14:12 just to compare to mine Mar 23 05:14:46 oh, well phooey Mar 23 05:14:54 ya, im sol Mar 23 05:14:55 no worries Mar 23 05:17:25 I am very new to networking and such. I want to send a string in as a $_GET variable. But I want to stay in the app. Is there a way to just send a request to the server? I will be using a PHP file to write the $_GET variable to a log. Mar 23 05:20:06 I was wondering if anyone has a solution for this: keeping track of calendar entries put into the default calendar, but only entries that a certain app created. Is there a way to keep track of these Uri's? Mar 23 05:22:40 i cant really create a contentprovider to keep track of them since all the content is going into the default calendar one Mar 23 05:24:08 anyone got anything that will programatically snap screenshots on command? Mar 23 05:24:23 I tried the old setdrawingcacheenabled(true) Mar 23 05:24:27 and getDrawingCache() trick Mar 23 05:24:42 but it seems to get an empty bitmap every time Mar 23 05:56:13 hello Mar 23 05:57:39 wondering if someone could help me set up and maybe teach me a thing or two about developing kernels for android Mar 23 05:58:18 this channel is about app development, not that you wont find someone. Mar 23 05:58:30 you'd probably have better luck at #android-root Mar 23 05:58:41 or #cyanogenmod Mar 23 05:58:58 ah ok Mar 23 05:59:49 there is no android-root channel Mar 23 05:59:52 just fyi Mar 23 05:59:53 lol Mar 23 06:00:18 yes surr Mar 23 06:00:20 sir Mar 23 06:01:01 154 people in it Mar 23 06:01:49 nobody ever chatting up in that bitch tho Mar 23 06:01:54 i know Mar 23 06:01:56 "... how can I root my device..." Mar 23 06:02:11 building my own roms has been REAL fucking eye opening =) Mar 23 06:02:25 is there a lot to mod? Mar 23 06:02:55 i mean minimally? Mar 23 06:04:42 what do you mean Mar 23 06:05:06 bringing android up on new hardware all together is a mind fuck... if hardware is a variant, usually pretty easy Mar 23 06:05:14 frameworks etc are interesting Mar 23 06:05:31 I started with a REALLY REALLY fucked up implementation of a custom rom for very specific hardware Mar 23 06:05:45 people that build the source tree really fucked up a lot of the out of box android packaging stuff Mar 23 06:06:09 I haven't dabbled in it much -- on the source side Mar 23 06:06:36 but I've changed things from the top down to build roms that work for certain carriers, with their branding and data settings and such Mar 23 06:06:57 but that's not hard since everything is already working hardware wise Mar 23 06:07:18 I've done shit like patching in support for ethernet configuration, drm stuff, touch screen drivers, calibration Mar 23 06:07:33 completely reworking packagemanager Mar 23 06:07:44 completely reworking SystemUI Mar 23 06:08:25 hmm Mar 23 06:08:38 is Rookie407 pm'ing you yet? :P Mar 23 06:08:41 patching in serial drivers Mar 23 06:08:44 nope! =) Mar 23 06:09:01 Would y'all pay for an app that allowed you to see (real) app sales statistics (revenue and sales by country over time, daily/weekly summaries, etc.) on your phone/tablet? Mar 23 06:09:36 i could see some people paying for that Mar 23 06:09:49 but day to day stats from google are pretty revealing Mar 23 06:10:46 hah, I wouldn't say that.. Mar 23 06:11:08 yeah they stop below 3% Mar 23 06:11:28 so yyeah it'd be worth a dollar or whatever :P Mar 23 06:11:52 you would be able to do much more advanced stuff Mar 23 06:12:04 lets see it! Mar 23 06:12:21 tmandry: how does your software determine what is and isn't a sale? Mar 23 06:12:43 you send a sale to his server Mar 23 06:12:55 readme: Google checkout status Mar 23 06:13:05 so a pirated app won't show up as a sale Mar 23 06:13:09 can you count pirated apps too? Mar 23 06:13:15 this is more a finance-oriented thing Mar 23 06:13:37 you shouldn't have pirated apps if you use license protection :p Mar 23 06:14:12 last few days I built full blown tcp push stuff for management of devices Mar 23 06:14:34 which is typically encouraged, the containing Activity initializing/updating child Fragments, or the Fragments querying the parent Activity? Mar 23 06:14:37 I have a droidx and a bionic Mar 23 06:14:44 what u got for those? Mar 23 06:15:08 storm717, fragments should be modular Mar 23 06:15:19 storm717: the fragment shouldn't call into the activity for any functionality.. only to get a context or something Mar 23 06:16:08 that's what i was thinking, keep the fragments ignorant of their parent basically Mar 23 06:16:38 but that said, a list fragment can handle loading it's corresponding details fragment while still being modular (the list fragments is already tied to the deatils fragment) check out the fragment guide Mar 23 06:17:07 you can trigger events Mar 23 06:17:19 eg, have a callback you can register from parent Mar 23 06:17:42 but fragment gets all initial data via static constructor Mar 23 06:17:52 and can let parent know about events via callbacks Mar 23 06:18:14 I see Mar 23 06:18:52 http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 23 06:19:05 why is the static newInstance method encouraged over just a normal constructor? Mar 23 06:19:08 there is code there that is quite helpful for getting you started Mar 23 06:19:10 ah I bet it's in there Mar 23 06:20:00 i think it's to do the arguments bundle loading through the newInstance(int) parameter Mar 23 06:20:07 or whatever yours may be Mar 23 06:20:59 i've been fighting with fragments the last few days Mar 23 06:21:22 in my particular case, I have 5 or so fragments that represent various views on a single model, so I have a base class with an abstract updateView(data) Mar 23 06:21:37 got them working except i recently introduced a npe when going from dual pane to single pane after details were shown. Mar 23 06:21:50 yes, fragments can be a little tricky it seems Mar 23 06:21:59 storm717 - basically heres the deal Mar 23 06:21:59 but a worthwhile investment to understand well Mar 23 06:22:14 FILL ME IN BRO Mar 23 06:22:30 gimme that premium octane knowledge Mar 23 06:22:41 * jeppy is on edge of seat Mar 23 06:22:50 they can have a lifecycle outside the context of the activity that houses em... my understanding is you create with static constructor because framework needs to instantiate the fragment with empty constructor Mar 23 06:23:16 also, by using bundle like they demo, fragments can better maintain state across fragment transactions Mar 23 06:23:18 turn that frown right upside down! Mar 23 06:23:28 sorry - been drinking Mar 23 06:24:05 ron_frown: what do you mean, I thought that the fragments lifecycle was dependent on the activity's lifecycle (according to docs, anyway) Mar 23 06:24:10 noep Mar 23 06:24:19 not at all, that was fuckfest #1 Mar 23 06:24:19 maintaining state is likely related to the npe i am happy to let go until tomorrow Mar 23 06:24:24 you can detach and have fragment still instantiated Mar 23 06:24:27 well Mar 23 06:24:35 I should say the idea is thats supposed to be the effect Mar 23 06:24:52 eg, configuration change, screen layout could change, fragment and its state is maintained across that etc Mar 23 06:24:54 Oh, I see what you're getting at Mar 23 06:25:02 A fragment can be saved and used again without instantiating it again Mar 23 06:25:11 yeah Mar 23 06:25:34 yeah mine do that cause i followed the guide :D Mar 23 06:25:50 seems like they could have figured out a better way to handle that shit Mar 23 06:25:51 =) Mar 23 06:26:08 is it bad to say, build up a list of fragments via onAttachFragment, and iterate over that calling .updateView() ? Mar 23 06:26:27 i have 5 fragments subclassed from a base class with updateView in a viewPager Mar 23 06:26:29 do you need to update every view? Mar 23 06:26:46 becuase the containing activity's data changes -> inform all frags to update their shit Mar 23 06:26:59 seems like you could better handle that with observer pattern Mar 23 06:27:14 but then fragments arent really supposed to know about the activity Mar 23 06:28:12 isn't what I said the observer model? Activity maintains a List of the common frags, and when the Activity's data changes it iterates over and tells the frags to update Mar 23 06:28:38 from the frags POV, they are content, waiting for something to call their update method Mar 23 06:29:04 am i pulling this out of my ass so ..? Mar 23 06:30:25 sounds consistent Mar 23 06:31:07 thanks for the encouragement jeppy Mar 23 06:31:09 despite knowing about them for a while, i'm new to actually getting them working in their intended way Mar 23 06:31:37 before i only used dialog fragments Mar 23 06:31:49 That's actually my next stop Mar 23 06:31:56 i just like saying fragment Mar 23 06:32:50 iirc, they have a static initializer as well, and deciding what to set as a bundle argument and what to have as a member variable are trade offs Mar 23 06:33:11 how exciting Mar 23 06:33:11 of which i don't think i found a solid answer on how to choose Mar 23 06:33:34 but i think i went with, if it will fit in the bundle, put it there Mar 23 06:33:51 dialog fragment is the way to go to have say, a full-screen semi-transparent modal info screen / yes-no choice pop up, right? Mar 23 06:34:42 yes...ish. except the part where you say full screen makes me thing dialog activity Mar 23 06:35:23 but if it's yes/no then dialog seems the way to go Mar 23 06:35:32 or a custom view to overlay :P Mar 23 06:35:44 i'll look into it Mar 23 06:38:44 I like the concept of fragments, but have had so many ridiculous problems with them, I'm skeptical Mar 23 06:39:25 i have a feeling once I understand the basics it will be fairly easy to use them in the future Mar 23 06:40:00 yeah earlier i decided not to include false as a param to the layout inflater... view cant be initiated because it already has parent Mar 23 06:40:13 except i had no idea where to look Mar 23 06:40:48 finally remembered that i changed that, luckily, otherwise i'd probably still be messing with it Mar 23 06:42:14 i'm glad I have my cursor loader working with my list and details fragments though. that was a bumpy ride even with most of the (related) source being available Mar 23 06:43:06 i'm using a provider even though other apps have no reason to use it... ye Mar 23 06:43:07 t Mar 23 06:44:42 jeppy: http://i.qkme.me/363j4f.jpg Mar 23 06:45:20 whoa buddy Mar 23 06:45:41 didnt mean to encroach Mar 23 06:46:15 i put on my robe an wizard hat Mar 23 06:46:32 what sort of app are you working on atm? Mar 23 06:47:09 https://play.google.com/store/apps/details?id=com.jphilli85.deviceinfo Mar 23 06:47:14 jesus fucking crhist Mar 23 06:47:15 client Mar 23 06:47:22 working on a major update Mar 23 06:47:23 cannot keep creeping the fuck out of the features Mar 23 06:47:58 jeppy: cool Mar 23 06:48:01 ron_frown: u buttmad? Mar 23 06:48:17 this project can not just be completed Mar 23 06:48:22 I mean I've hit the initial specs Mar 23 06:48:27 but add this feature Mar 23 06:48:29 add that feature Mar 23 06:48:56 what u working on frown? Mar 23 06:49:28 building some iphone apps Mar 23 06:49:37 and iphone doesnt have as much boiler plate code Mar 23 06:49:46 so its like 10x the work than anything in android Mar 23 06:51:53 Trollclient Mar 23 06:51:58 which UI model / OS design do you like better? iOS or android? Mar 23 06:52:04 from a dev POV Mar 23 06:53:34 ron_frown: it's fine, as long as they're paying by the item for the additions Mar 23 06:53:42 on a sliding (i.e. increasing) scale Mar 23 06:53:58 hes not Mar 23 06:54:25 by the hour? Mar 23 06:54:26 Sounds like you need to renegotiate. Mar 23 06:54:30 honestly building ui in IOS is fucking strange as shit... but once you get used to it, its WAY WAY faster Mar 23 06:54:46 Knossos - growing/learning pains Mar 23 06:55:24 Knossos - honestly I'd like somone to handle the business side of shit and let me knock out code Mar 23 06:56:21 great, I'll start now Mar 23 06:56:24 Basically, if you give someone a X for Y deal. And then they ask for a this and that on top after you have built it. If you allow that to go through they will know it is ok to just keep adding enhancements. Mar 23 06:56:51 I know Mar 23 06:56:57 I need to learn these things as I go Mar 23 06:57:00 Yeah :) Mar 23 06:57:08 I mean I know that already Mar 23 06:57:24 but I'll get better at setting up client expectations up front Mar 23 06:57:34 I dont know whats reasonable to charge hourly for app dev Mar 23 06:57:42 I'm def a sr level engineer Mar 23 06:57:48 $40-120/hr Mar 23 06:57:55 for enterprise .net shit I bill 100/hr Mar 23 06:58:02 well a couple years ago I did Mar 23 06:58:14 you can easily bill the same for app dev Mar 23 06:58:17 k Mar 23 06:58:50 storm717 - to be quite honest there are some things that I really really really hate about android Mar 23 06:58:56 design decisions I dont understand at all Mar 23 06:59:13 welcome to the club... is iOS any better in that area ? Mar 23 06:59:19 yes Mar 23 06:59:22 no god damn contexts Mar 23 06:59:33 that sounds welcome Mar 23 06:59:38 if you want to fire something off from a thread in your app that does something with ui, or something Mar 23 06:59:40 jstu do it Mar 23 07:00:55 honestly contexts is by far my biggest beef Mar 23 07:01:06 they are supposed to be there to give you access to resources Mar 23 07:01:14 can you elaborate? I guess my apps haven't been complicated enough where I've had any issues with them Mar 23 07:01:18 then they have two variants, that actually give you diff access to different things Mar 23 07:01:24 eg, applicationcontext vs activity Mar 23 07:01:28 "readme: $40-120/hr" - man thats depressing ;P Mar 23 07:01:41 Knossos: why, what do you charge? Mar 23 07:02:06 if you maintain references to activity (because mostly anything to do with UI that needs a context actually needs an activity) Mar 23 07:02:13 you run a huge risk of leaking an activity Mar 23 07:02:15 Company I work for here in Germany has me working for €12 (~$20). I know it isn't much, but it is difficult to get into a good job when my German isn't 100% up to standard) Mar 23 07:02:22 Only depressing if they actually get it. Mar 23 07:02:37 Knossos: even on oDesk/elance you can get 40-50 easily Mar 23 07:02:43 just charge more Mar 23 07:03:19 people actually take you more seriously when you have a reasonable price Mar 23 07:03:34 I thought those places were full of people charging $3 an hour ;P Mar 23 07:03:44 Knossos: they are, the clients you want will be messaging you Mar 23 07:03:48 not the other way around Mar 23 07:04:12 you need to build up a reputation and respond to all the messages you get Mar 23 07:04:39 Worth looking into, but I prefer having a stable job. I have a wife and two kids. Mar 23 07:04:41 but yeah, your first odesk/elance job will likely be a spinning cat pic for a few dollars Mar 23 07:05:00 thats the problem with odesk Mar 23 07:05:03 and guru Mar 23 07:05:08 you have to have a reputation there Mar 23 07:05:14 and building that shit up is a total pita Mar 23 07:05:27 not really, I know a way to do it easily Mar 23 07:05:28 the ideal situation is a 75%-time stable job, which pays the bills, and time to develop your own/side stuff Mar 23 07:05:36 it's called have your friend hire you for a fake job :) Mar 23 07:06:23 Leeds - I have a 100% stable job which pays well, but I'm mr atm to my family Mar 23 07:06:28 contracting is my shit on the side Mar 23 07:07:47 to make some cash, hide form wife. Mar 23 07:08:11 all I've got is a gf, and she's relatively easy to satisfy... financially. Mar 23 07:08:24 I'll do better once my German language skills are up to par. Mar 23 07:09:03 leeds, dont ever get married Mar 23 07:09:07 my wife is a good lady Mar 23 07:09:13 but you are just setting yourself up for dissapointment Mar 23 07:09:20 lol :D Mar 23 07:09:21 not planning on it any time soon, no Mar 23 07:09:27 What makes you say that? Mar 23 07:09:36 keeps things simpler Mar 23 07:09:56 i dont think I'll ever get married Mar 23 07:10:01 Your wife keep buying shit randomly? Mar 23 07:10:29 my gf is currently enjoying her new gnex :) Mar 23 07:13:53 I know a lot of dudes probably get married and regret it cause they want to get out and bang a bunch of chicks Mar 23 07:14:09 I just want to get out, and get away from nagging, and sucking you dry money wise Mar 23 07:14:13 and my wife isnt even that bad Mar 23 07:14:25 Id just much rather spend time with machines, and inventing, and building Mar 23 07:14:33 software Mar 23 07:14:58 so get a divorce Mar 23 07:15:10 geek Mar 23 07:17:49 Sure, wives nag, but they also clean, make you food, clean your clothes, look after your devil spawns and love you. So it isn't all bad ;P Mar 23 07:18:28 You make your wife sound likea dominatrix ;P Mar 23 07:19:14 ron_frown: you seem like such an INTJ Mar 23 07:19:28 what the fuck is intj Mar 23 07:19:40 is google down for you or ..? Mar 23 07:20:12 * readme <-- entp Mar 23 07:20:31 derp? Mar 23 07:20:35 readme: same, I'm a very definite ENTP Mar 23 07:20:42 nice Mar 23 07:21:10 ah personality types Mar 23 07:21:33 wow Mar 23 07:21:37 intj sounds like me thus far Mar 23 07:21:56 a lot of developers at work are INTJs Mar 23 07:22:05 it seems to be a trend Mar 23 07:22:15 that type lends itself well to coding obviously Mar 23 07:24:09 wow god damn Mar 23 07:24:17 intj seems fucking amazing Mar 23 07:24:23 like somone knew everythin about me and wrote it down Mar 23 07:25:08 INTJ? Mar 23 07:25:11 I told my wife that weddings were a huge fucking waste of time and money Mar 23 07:25:16 http://typelogic.com/intj.html Mar 23 07:25:25 ron_frown: thanks Mar 23 07:25:27 Well, I'm probably one of few ENFJ's, based on some form of 10 questions or so. Mar 23 07:25:36 thenumb: http://www.humanmetrics.com/cgi-win/jtypes2.asp Mar 23 07:25:42 because they dont make sense at all Mar 23 07:25:49 dump a shitload of cash, for one day Mar 23 07:26:01 and the success rate is... frankly depressing =0 Mar 23 07:26:09 then she wants me to go to her sisters weddy Mar 23 07:26:11 wedding Mar 23 07:26:26 drlaban: giver, teacher, mentor type of personality. core values of popularity and respect Mar 23 07:26:28 I hate the bitch... shes the greediest, most selfish person on this planet =0 Mar 23 07:26:28 sound like you? Mar 23 07:26:38 ron_frown: u buttmad bro? Mar 23 07:26:46 I dont know what buttmad is Mar 23 07:27:28 storm717: Is that any good when developing Android apps? Mar 23 07:28:04 it can be. introverted intuiton as a secondary cognitive function = decent internal abstraction ability Mar 23 07:28:15 it means you're primarily dominated by extroverted your emotions Mar 23 07:28:28 wearing feelings on your sleaves, affected by what people think, enjoy making ppl happy Mar 23 07:28:59 (offtopic - anyone use yahoo email, by any chance, and can do me a favour) Mar 23 07:29:02 i am exactly on the cusp of intro/extra version Mar 23 07:29:06 ron_frown really, get a divorse. Mar 23 07:29:16 and now, I must go to the dentist *noooooo* Mar 23 07:29:20 Sounds like I should be a teacher of some sort. :) Mar 23 07:31:35 Your Type is Mar 23 07:31:35 ENFJ Mar 23 07:32:20 I guess I am a intj Mar 23 07:33:22 I thought I had aspbergers Mar 23 07:33:41 but thats usually a thing existing in younger kids etc Mar 23 07:33:54 intj = assburgers Mar 23 07:33:57 to an extreme Mar 23 07:34:07 that is extreme intj = assburgers Mar 23 07:35:00 and i blame it all on my dad being hardest worker I've ever seen, and being picked on as a child =) Mar 23 07:35:22 nothing like getting your ass lit on fire at school to really really reduce concern for others =0 Mar 23 07:36:06 Took it, apparently I am INTJ Mar 23 07:36:25 most devs tend to be Mar 23 07:36:36 well a lot of them at least Mar 23 07:37:00 ron_frown in china its worse u got to turn up with anb envelope full of cash to any wedding u go Mar 23 07:37:09 I can tell based ont he description there is not a lot of people at my work that are intj Mar 23 07:37:30 what's your line of work? Mar 23 07:37:51 my wifes best friend recently got married... the girl is a total horse banging skank... and she married the douche lord of douches Mar 23 07:37:57 eg, I dont like either of them at all Mar 23 07:38:12 well his groomsmen ditched out, so my wife said I'd go Mar 23 07:38:19 you should see the pictures Mar 23 07:38:31 I feel bad after the fact... but I was fucking filled with rage Mar 23 07:38:45 storm717 - software engineering Mar 23 07:39:49 Although they are highly capable leaders, Masterminds are not at all eager to take command, preferring to stay in the background until others demonstrate their inability to lead. Mar 23 07:39:53 sounds EXACTLY like me Mar 23 07:40:00 my boss is dropping the ball BIG FUCKING TIME Mar 23 07:40:18 its not like I want his job, but nobody else is doing it Mar 23 07:43:58 it's okay ron this is a safe place Mar 23 07:50:11 nice, I froze my droid 3. Mar 23 07:54:18 what should i do to ensure text scales across devices, sp doesnt seem to do it Mar 23 07:54:47 ron_frown horse banging skank? sounds like my kinda girl Mar 23 07:55:08 gaz sp does it Mar 23 07:55:27 if you are building your own custom controls, consider grabbing device metrics Mar 23 07:55:36 applying multipliers to text size Mar 23 07:55:42 I had to do that in my datagird control Mar 23 07:55:44 Meh. Could anyone spread some light on this: I update an ArrayAdapter once every minute (don't worry about the battery killing issues, they'll be taken care of later) through an AsyncTask. I also have a button that says "Refresh". I'd like to set the button as disabled when the asynctask is running. Mar 23 07:56:21 why cant u then? Mar 23 07:56:25 However, I get kicked in the nuts because: 'Only the original thread that created a view hierarchy can touch its views' Mar 23 07:56:37 ron_frown well i use sp looks fine on the nexus one or something but small on a 10 inch tab Mar 23 07:56:58 drlaban: see runOnUiThread(), view.post(), Handler, AsyncTask etc. Mar 23 07:56:58 drlaban might not work but maybe u can try ronOnUiThread ? Mar 23 07:57:02 I have tried accessing the button by setting it as a member variable, as well as trying to access it within the asynctask. Mar 23 07:57:15 drlaban handler + messages Mar 23 07:57:27 or what gaz says Mar 23 07:57:38 gaz` - we played and it worked good Mar 23 07:57:43 gettign good at this android mularkey i can almost help out know and again now Mar 23 07:57:49 I was a bit mindblown about what DPI means in android Mar 23 07:57:52 ron_frown maybe its just the eclipse layout editor lying to me? Mar 23 07:57:59 could be Mar 23 07:58:18 Alright, I'll see if I can get my head around this GUI thread business. Mar 23 07:58:38 it would seem DPI is just a hardware set device multiplier Mar 23 07:58:46 we had a shit display with low res Mar 23 07:58:55 800*480, 7inch screen Mar 23 07:59:09 O_o Mar 23 07:59:19 I fucked with the DPI in build.prop, and magically can make it look like 1080p Mar 23 07:59:26 That's a bloody big screen for that kind of res.... Mar 23 07:59:39 was not my choice AT ALL. Mar 23 07:59:43 jesus eveyr time i plug my tablet in all usb devices die Mar 23 07:59:49 including hds mouse and keyboard Mar 23 07:59:52 makes me not wanna use it Mar 23 08:00:03 gaz`: power source might not be enough Mar 23 08:00:05 drlaban look how many themes even support low dpi theme Mar 23 08:00:20 could be it, its thru a hub i guess thats a problem Mar 23 08:00:20 gaz`: i used to watch my phone reconnect when I turned my desk fan on and off Mar 23 08:00:26 power is important to this stuff Mar 23 08:00:31 you get 5v per native usb port Mar 23 08:00:43 ive never had decent usb ports tho Mar 23 08:00:46 if you are using a hub to split that out, shit just isnt going to work right Mar 23 08:00:52 if i plug em in directly and even slightly move them they disconnect etc Mar 23 08:00:59 so hubs became useful as theyre out of the way Mar 23 08:01:18 in the same way any pc i buy electrocutes me within weeks if i touch it Mar 23 08:01:24 dude Mar 23 08:01:43 we tossed some serial uarts into our android hardware, got it all wired up and software setup for it as well Mar 23 08:01:56 when you plug in serial cable, occasionally you can see it throw sparks Mar 23 08:02:00 not good =) Mar 23 08:03:04 lol Mar 23 08:03:05 god yeh Mar 23 08:03:06 Isn't it bad do use a canvas-drawable soulution to create a android game? Mar 23 08:03:14 gone are the days when i used to do my own hardware tinkering really Mar 23 08:03:26 Duke_Puke like a surfaceview? no Mar 23 08:03:37 Duke_Puke: I'm using it for my game Mar 23 08:04:02 gaz: Yes but not using OpgenGL and go with canvas. Doesent canvas ask for much more memory? Mar 23 08:04:12 your code's performance is not determined by some magical choice Mar 23 08:04:13 if u dont need opengl dont use it Mar 23 08:04:16 Duke_Puke not necessarily Mar 23 08:04:21 ok :) Mar 23 08:04:21 i dontthink it needs more mem prob less Mar 23 08:04:28 it's determined by you profiling it and watching the allocations Mar 23 08:04:32 look at that android game in the app store with free source Mar 23 08:04:33 u can hw accelerate surfaceviews now too on 3.0+ i think Mar 23 08:04:36 you want performant code? write good code. Mar 23 08:04:39 the little robot flying around and shit Mar 23 08:05:06 were just doing a breakout game for school and i have heard before that canvas would be un-efficient with memory and stuff Mar 23 08:05:17 um, for a simple breakout game Mar 23 08:05:18 it is fine Mar 23 08:05:20 nah, u shoudl check out the lunar landing example too Mar 23 08:05:26 Maybey a breakout-game is simple enough Mar 23 08:05:33 LUNAR LANDING WAS THE JAM Mar 23 08:05:35 back in the day Mar 23 08:05:39 breakout game is a great way to learn Mar 23 08:05:44 altho i tink pong is better to start with Mar 23 08:05:46 using opengl is going to make coding your game 100x harder Mar 23 08:05:58 gaz`: is tinkpong in the examples? Mar 23 08:05:59 Unless you're already really good Mar 23 08:06:19 Duke_Puke sorry i think "pong" is better Mar 23 08:06:23 readme: then i'll wait with OpenGL til' ill really need it Mar 23 08:06:25 u know the 2 bats and a ball Mar 23 08:06:27 very simple Mar 23 08:06:30 easier than breakout Mar 23 08:06:51 i usually tell ppl to make pong as their first game Mar 23 08:06:52 gaz`? Is it in the examples? Mar 23 08:06:55 before breakout :) Mar 23 08:07:01 no i dont think so Mar 23 08:07:05 altho finding java code for it would be easy on google Mar 23 08:07:06 anybody have photoshop running on linux? Curious about what specific version works well with wine Mar 23 08:07:27 its getting to the point where ppl dont know Pong Mar 23 08:07:30 we are getting old gents Mar 23 08:07:33 storm717: you want to install software that writes DRM to your master boot record, and you're a linux user? Mar 23 08:07:35 and im quite young! Mar 23 08:07:39 better run it in a VM Mar 23 08:07:45 gaz`: OK, but the breakout game is a school assignment Mar 23 08:07:45 photoshop is spyware dude Mar 23 08:07:56 Duke_Puke oh ok sorry then forget what i said Mar 23 08:08:04 gimp + inkscape :) Mar 23 08:08:11 Duke_Puke i almost want to write one myself, never wrote breakout :) Mar 23 08:08:12 readme: i bet you want to vote for ron paul huh Mar 23 08:08:20 storm717: already did Mar 23 08:08:33 gaz`: I wait for the revival of pong games Mar 23 08:08:44 :-) Mar 23 08:08:57 storm717: but seriously, I installed photoshop not long ago and it really modifies your master boot record Mar 23 08:08:59 i made one in j2me for nokia Mar 23 08:09:02 4 player pong Mar 23 08:09:06 for this reason I think running inside virtualbox is best Mar 23 08:09:08 with computer controlled players and assists etc Mar 23 08:09:18 bluetooth playable etc Mar 23 08:09:19 gaz`: heh 4 player did you use one or two balls? Mar 23 08:09:25 hmm guys, i was wondering about ContentProvider... Mar 23 08:09:29 one but i had multiball too Mar 23 08:09:36 gaz`: caotic Mar 23 08:09:43 4 players crowded around on N-Gage Mar 23 08:09:46 one Mar 23 08:09:48 loool Mar 23 08:09:48 readme: I hav ean older comp (1.8GHz core 2, 2GB of ram), but i'll try virtual box Mar 23 08:09:58 alowniak: what is the question? Mar 23 08:10:26 i don't think wine is what it used to be really Mar 23 08:10:27 when i get paid im getting a secon hd monitor Mar 23 08:10:36 2 huge HD TVs as monitors will be good Mar 23 08:10:42 I know you can access another app's ContentProvider (if it's not set to local thing or w/e) but I was wondering; if the back-end of the ContentProvider is an SQLiteOpenHelper (like you see most of the time) and you access it from another app Mar 23 08:10:42 sick of 2 small ones and one big one Mar 23 08:10:48 will it access the correct database...? Mar 23 08:11:07 gaz`: Would like a new monitor too. But I think i'll invest in a IBM ThinkPad Mar 23 08:11:14 and if the name of the Dbase is just something like "data" Mar 23 08:11:22 im getting the Amiga netbook soon :-D Mar 23 08:11:24 alowaniak: databases are private to applications Mar 23 08:11:33 gaz`: you're a freak Mar 23 08:11:41 haha Mar 23 08:11:44 its gonna ROCK Mar 23 08:11:52 so if you're using ContentProvider to expose one, yes, you're writing to that other apps database. Mar 23 08:11:53 ill show everyone how cool amiga is Mar 23 08:11:54 * Leeds needs to get to Taipei again at some point Mar 23 08:12:02 i need to fly to hk Mar 23 08:12:05 v soon Mar 23 08:12:09 SKINT as usual Mar 23 08:12:13 alowania: that was complicated, cant help Mar 23 08:12:13 so might just turnaround Mar 23 08:12:15 :-X Mar 23 08:12:26 gaz`: Hong Kong? Mar 23 08:12:30 hmmm but readme iirc SQLiteOpenHelper accesses the database by context.packagename()/dbname unless the dbname starts with a "/" if I'm not mistaken Mar 23 08:12:37 yes Duke_Puke Mar 23 08:12:50 and wouldn't the context packagename be different when accessing the ContentProvider from a different app? Mar 23 08:12:55 if i have cahssomehow perhaps we can get hammered at the globe and have a kebab again Leeds Mar 23 08:13:00 *cash Mar 23 08:13:05 I think we can do that, yes Mar 23 08:13:13 that kebab was amazing Mar 23 08:13:19 'i think oif it a lot Mar 23 08:13:27 dont get decent food like that here Mar 23 08:13:28 assuming it's not early next month - I'll be in the UK... we were at the Lebanese place, right? Mar 23 08:13:34 I have an imageview that I animate using a TranslateAnimation and onAnimationEnd I switch the image. How do I prevent it from flickering? Mar 23 08:13:35 yeh Mar 23 08:13:47 went last week :) Mar 23 08:13:48 i wanted a second one but i needed space for wanchai drinking, Mar 23 08:13:56 went to carnegies and fenwicks and a pile more lol Mar 23 08:13:59 stumbled out at 8am Mar 23 08:14:02 this weekend is sevens - the biggest party weekend of the year Mar 23 08:14:13 niice Mar 23 08:14:22 gaz` & Leeds: Falafel kicks kebabs butt Mar 23 08:14:27 cron job firing the start of the 2012 AFL season in 2 minutes! Mar 23 08:14:34 lol Leeds Mar 23 08:14:39 HK is amazing Mar 23 08:14:42 Duke_Puke: I do falafel - I'm pseudo-veggie Mar 23 08:14:53 u can step out the office and go to all the cool places in HK Mar 23 08:14:55 jealous Mar 23 08:15:15 Leeds: pseudo-veggie? Mar 23 08:15:22 went to a Nepalese place last night, then an English tea and cake shop :) Mar 23 08:15:28 garbage Mar 23 08:15:31 4 am Mar 23 08:15:53 Duke_Puke: I don't eat non-kosher meat, essentially - so I eat fish (but not seafood/shellfish) everywhere, and otherwise I'm veggie unless it's a kosher place Mar 23 08:15:56 I tried creating a custom view and overriding onAnimationEnd like everyone says Mar 23 08:15:58 but no luck Mar 23 08:16:01 the Lebanese place is, needless to say, not kosher Mar 23 08:16:19 Leeds: aha Mar 23 08:16:40 Leeds: One learn something new every day :) Mar 23 08:17:56 no shellfish :( Mar 23 08:18:13 hi Mar 23 08:18:49 is there any android13-src.jar/zip available? Mar 23 08:19:16 g2g, bye Mar 23 08:23:42 how can I debug the reason of why a library is built but not installed ? Mar 23 08:27:51 they just closed the onyl 24 hr bar here Leeds Mar 23 08:28:04 theyre in the process of ruining one of the best parts of the city Mar 23 08:28:04 wow a new sdk :) Mar 23 08:28:11 closing all the night markets and shops Mar 23 08:28:13 what city gaz Mar 23 08:28:18 Taipei Mar 23 08:29:04 bummer Mar 23 08:29:16 there's always club 7-11 Mar 23 08:29:25 hi Mar 23 08:29:32 i like club pillow Mar 23 08:29:36 anyone using sftp in his android app? Mar 23 08:29:47 it turns out that if you go to sleep there will be a day tomorrow when you wake up that also has booze Mar 23 08:30:05 i tried sshj and jsch till now but both seem to be very very slow Mar 23 08:30:18 anyone has an advice for a good libary? Mar 23 08:30:34 damn trying to get a layout perfectto match some guys photosgop doc is tough Mar 23 08:31:24 thebastl: have you tried Ganymed? Mar 23 08:31:40 last time i had that i nearly puked Mar 23 08:31:45 had to wash it down with tequila Mar 23 08:31:54 and a splash of Titan Mar 23 08:31:56 Leeds: no i will have a look at it Mar 23 08:32:10 thx Mar 23 08:32:35 thebastl: http://www.cleondris.ch/opensource/ssh2/ - it's used in an app called botsync, which is relatively crappy, but *is* pretty fast, comparatively Mar 23 08:33:13 Leeds loves a bit of boysyncing Mar 23 08:33:17 botsyncing! Mar 23 08:33:26 yes, I do! Mar 23 08:33:28 er... Mar 23 08:33:36 he syncs boys bots for them Mar 23 08:34:09 shame theres no sort of debug mode to simply show all the lines in a layout Mar 23 08:36:03 so I had two floats Mar 23 08:36:15 and I was changing them by velocity * time each iter Mar 23 08:36:17 bet u feel sick now Mar 23 08:36:18 grr Mar 23 08:36:32 these floats were supposed to be the same value Mar 23 08:36:39 but because of float's lack of precision Mar 23 08:36:47 they grew apart as the iterations continued Mar 23 08:36:50 until there was a huge gap Mar 23 08:36:58 s/float/double/ --- fix'd. Mar 23 08:37:03 and thats when u discovered the flux capacitor Mar 23 08:37:15 fuuuuuuu double still gets gaps after a certain amount of iters. Mar 23 08:37:21 now what, NOW WHAT!? Mar 23 08:37:25 long? Mar 23 08:37:39 yeah, eliminating floating point would fix the problem Mar 23 08:37:44 but I'm not sure I want that Mar 23 08:37:57 u could scale em up Mar 23 08:38:03 so theyre not floating point as such during the maths Mar 23 08:38:17 yeah, i'm thinking about rounding Mar 23 08:39:10 bigdecimal? Mar 23 08:39:50 there's no use case for a bignum lib Mar 23 08:40:02 it's a game where I have two frames, each contains obstacles and they are swapped Mar 23 08:40:13 the way I'm moving them is I start one off twice the width of the first one Mar 23 08:40:23 http://myles.eftos.id.au/blog/wp-content/uploads/2011/12/screen-shot-2011-12-06-at-22634-pm.png <-- is there an android equivalent for the ios slidey-box control thing at the top? Mar 23 08:40:24 then I decrement their positions by velocity * time Mar 23 08:40:35 frames are the width of the screen Mar 23 08:40:45 and in my test I get a small gap between frames after it runs for a few mins Mar 23 08:41:36 keep it all ints Mar 23 08:41:55 that would be a pain for other things Mar 23 08:42:11 for example, I increase the velocity by 0.0005f each iter Mar 23 08:42:11 games are a pain to make Mar 23 08:42:13 yeah Mar 23 08:42:14 aha Mar 23 08:42:28 I think the problem was that I was storing delta in a float, too Mar 23 08:42:32 i made it double, we will see Mar 23 08:43:06 Damit, can't really get my head around this threading issue. Has anyone got a minute to look at a pseudo-code pastebin example, I'd very much appreciate it: http://pastebin.com/GT3BPrGU Mar 23 08:44:14 damn it when i center stff in andorid it often isnt centered properly Mar 23 08:44:34 drlaban: the AsyncTask starts a thread for you Mar 23 08:44:40 you need to start the AsyncTask from the UI thread. Mar 23 08:44:47 the idea is you put your background work in doInBackground Mar 23 08:45:54 readme: The bulk of the work is in doInBackground. That's where I put everything that has to do with fetching data from the web. Mar 23 08:46:21 drlaban: at the bottom, I see you have .execute() inside "run", which leads me to believe you're trying to start the AsyncTask from a thread that is not the UI thread. Mar 23 08:46:47 you can't do that, because it needs to be able to execute onPreExecute and onPostExecute on the UI thread, and the way it does that is by using the current thread. Mar 23 08:47:04 its handler, that is Mar 23 08:47:38 readme: Oooh, now you're onto something. So the TimerTask, which creates a new FetchData instance is in fact not in the UI thread, but in a Thread by itself? Mar 23 08:47:46 scratch the timer task Mar 23 08:47:50 yes Mar 23 08:47:59 rename "FetchData" to FetchTask -- Thats your task Mar 23 08:48:32 readme: How can I go about making repeated fetches of data if I scratch the TimerTask? Using a Handler? Mar 23 08:48:44 if you want to fire something periodically I'd think it's a good idea to create a handler and fire the events using ScheduledExecutorService instead Mar 23 08:49:23 runOnUiThread is about the same thing as creating your own handler, so you can probably use that if your solution isn't that complex Mar 23 08:50:19 What I'd like to not happen when running on the UI thread, is to lock up the ListView while the FetchTask is running. Mar 23 08:51:26 "the ListView" refers to a ListView of data I'd like to update continuously on repeated intervals. Mar 23 08:51:49 you won't lock up anything Mar 23 08:52:11 because your runOnUiThread will post runnables to an event queue that is processed by the UI framework Mar 23 08:52:16 which makes sure you won't have lock ups Mar 23 08:52:23 your changes to the UI are in a queue Mar 23 08:52:26 Now that sounds promising Mar 23 08:52:27 you don't worry about them Mar 23 08:53:15 oh great our primary test device for android tablets is at a client.. now i have to use an odys cosmo ;D Mar 23 08:53:33 it seems it's impossible to get adb to play nicely with it Mar 23 08:53:36 readme: Thank you for this. readme++ (if karma would've been present in here) Mar 23 08:54:31 And thanks to the other two for pointing me in the direction a while back. It's just me being way to new to threading anything else other than asynctasks that is slowing down my progress/understanding. Mar 23 08:55:43 np Mar 23 08:56:02 just test my game in a couple days :) Mar 23 08:56:23 * readme fixed his floating point error with an epsilon. Mar 23 08:56:56 readme: Gimme a link when it's done and I'll give it a test run and a review. :) Mar 23 09:09:32 Hi guys I've some questions. I'm developing a music player and I'm trying to bind it to the a2dp connection event. I've a remote controller (bluetooth) where you can plug headset and hear your music Mar 23 09:10:29 I've bind my receiver to the BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED action but nothing happens. Instead when I connect the BT device I receive the BluetoothDevice.ACTION_ACL_CONNECTED action Mar 23 09:10:32 what does it mean? Mar 23 09:10:46 that my remote controller don't support a2dp? Mar 23 09:11:26 does it work with other players? Mar 23 09:15:03 good question Leeds :D going to check Mar 23 09:17:19 readme: This works quite well, I'd say. Is there a way of adding a delay in the "beginning" of the runnable, so to speak? The way it works now is that the continuous FetchTask is fired instantly and I would very much like to have it begin x ms after application launch. Mar 23 09:18:11 it seems that poweramp works fine Leeds but I don't know if he's getting the first or the second event. I think that he gets the BluetoothDevice.ACTION_ACL_CONNECTED and then makes some other checks Mar 23 09:18:38 drlaban: handler postDelayed http://developer.android.com/reference/android/view/View.html#postDelayed(java.lang.Runnable, long) Mar 23 09:18:50 View_postDelayed is a delegate for Handler postDelayed Mar 23 09:21:23 readme: That's what I'm doing at the moment. I was thinking along the lines of Timer.schedule(Object task, long delay, long interval). Mar 23 09:22:19 FetchTask is your class that extends Runnable, right? Mar 23 09:22:34 you can do this with ScheduledExecutorService Mar 23 09:22:58 readme: Aaaaaah. Nice. You mentioned this as well. Mar 23 09:23:23 readme: Actually, I'm still using an AsyncTask for the grunt work. This works well. Mar 23 09:23:29 Or.. It _works_ Mar 23 09:23:55 AsyncTask is good for trivial work Mar 23 09:25:08 readme: Well, my definition of trivial fits pretty well here: Fetch data from website, JSON-parse it, update ArrayAdapter. Mar 23 09:25:18 yeah Mar 23 09:25:27 that is what I had in mind Mar 23 09:26:58 Whats the best way to detect if a headset is plugged in to the phone? Is there any notification that i can listen to? I have checked AudioManager for documentation but cant really see a proper solution for this there. I dont really want to have some seperate thread poll the AudioManager in the background every second or something.. unless it is necessary. Mar 23 09:28:46 Well, I know it probably won't help your issue, oehman, but I know for a fact SOMETHING in Android listens to the headphone jack. When I've ended a call and disconnect the headphones, Music starts playing. Even if I haven't opened Music since the last restart of the device.... Mar 23 09:29:18 hi, I have a blue-ish header in mya app and want its color to change slightly when I switch between dark/light themes. How do I reach it from within the styles file? Mar 23 09:29:55 that is propably a notification about that the application will become noisy .. but I want the other way around :) Mar 23 09:30:13 it does, and it does send notifications when a headset is plugged in Mar 23 09:31:10 Where can I find that in the docs? Any pointer in the right direction is much appriciated Mar 23 09:31:40 ACTION_HEADSET_PLUG Mar 23 09:31:42 or actually Mar 23 09:31:49 AudioManager.isWiredHeadsetOn() Mar 23 09:32:16 thx Mar 23 09:35:51 drlaban, lol I just made it yesterday Mar 23 09:36:17 is it possible to connect to localhost with the android emu on win? Mar 23 09:36:49 https://gist.github.com/8d699b0ed682233fdbb1 drlaban Mar 23 09:36:56 now I'm facing another big problem Mar 23 09:37:58 I'm facing another big problem. I've a bluetooth remote control where I plug the headset and I control my music player. It send a BluetoothDevice.ACTION_ACL_CONNECTED intent and not a BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED Mar 23 09:38:40 It's not a so big deal, but the fact is that BluetoothDevice.ACTION_ACL_CONNECTED is used for generic BT devices. I've to filter them for devices that will take the music stream Mar 23 09:38:47 do you know if there's a way to do that? Mar 23 09:42:22 damn its impossible to get rid of the line in the tabhost Mar 23 09:45:24 which is why i wrote my own tabhost :) Mar 23 09:55:00 oh god the intel emulator is soo fast! *swoon* Mar 23 09:56:45 RobinB: It is? Hadn't noticed. Mar 23 09:57:16 yeah! boots up in like 5 seconds, and runs in real time. for my simple 2d game at least Mar 23 09:58:00 not sure if being sarcastic or serious Mar 23 09:58:04 serious! Mar 23 09:58:17 has been introduced with the sdk tools 17. http://developer.android.com/guide/developing/devices/emulator.html#acceleration Mar 23 09:58:31 and i'm running this on a (admittedly good) laptop, too Mar 23 09:59:42 you might need to enable intels virtualization technology in the bios, that's what i had to do. Mar 23 10:00:22 RobinB: I tried it yesterday and I noticed next to no difference. Ok, so I didn't enable hardware graphics acceleration but it took about the same time to boot the image. Mar 23 10:00:59 ah, no, i didn't do the graphics acceleration too. but with the virtualization, it does run quite fast, for me. Mar 23 10:01:06 *either Mar 23 10:07:12 I ran two instances of Android 2.3.3, one with ARM and one with Intel, roughly at the same time, and there is only about 20 seconds diff between them, Intel taking the upper hand. Mar 23 10:07:30 But. It still takes roughly 1½ minute to launch them altogether. Mar 23 10:08:00 hmm, you might not have virtualization enabled in bios? because for me it was similar until i rebooted and switched it on Mar 23 10:09:17 I'm positive. "havdetectiontool.exe" from MS reports "This computer is configured with hardware-assisted virtualization". Mar 23 10:10:10 Also, "sc query intelhaxm" reports "STATE: 4 RUNNING" Mar 23 10:10:36 I have no idea how to determine if the emulator actually uses the virtualisation, though. Mar 23 10:10:36 yeah, it said state 4 running for me as well, even if v was disabled in bios Mar 23 10:10:48 hmm, ok. might be down to different hardware then Mar 23 10:10:57 i7 laptop with ssd here Mar 23 10:11:50 Intel Core2 2.13GHz with 3GB memory. Mar 23 10:13:08 And the emulator graphics look blurry, as if it's scaled to some non-native resolution. The dimensions and densities do not differ between the two configurations, though. Mar 23 10:13:11 I've subclassed the Application class (which holds a lot of data used throughout the application.) The data is set in Splashscreen (receives stuff from server etc), but when I pause the app and resume it later on (some hours later), I find that the data in the Application object is gone, as if it's a new instance.. Is there a way to prevent the app from getting a new instance of the Application class when this happens? Mar 23 10:13:30 or detect it, so that I can start SplashscreenActivity (which downloads the needed data from the server)? Mar 23 10:13:40 drlaban: yeah, i have that too. seems almost as if the resolution is fixed in the x86 image Mar 23 10:15:54 is there some easy way to draw charts on android? Mar 23 10:18:01 RobinB: Oh well, I'm glad I have an N1 that still works so I'm not in the mercy of the emulators more than necessary. Mar 23 10:24:08 So if I have an activity set to singleTask Mar 23 10:24:27 and I use startActivity() twice Mar 23 10:24:41 Does it run onCreate the first time and the second time it runs onResume? Mar 23 10:26:08 hi guys ,i m newbe to android Mar 23 10:26:12 i am trying to rotate an image(which is a circle) around 360 degree and while rotating the image if the rotationangle is 90 ,180,270 i need to change some text in the text view ,i m able to achieve the image rotation but i m not able to get the exact angles i.e. 90,180,270 while moving around it fast, here is the git code for what i have done so far https://gist.github.com/2169073 ,and here is an image to rotate http://i.img Mar 23 10:26:30 how can i achieve the task Mar 23 10:28:49 i actually need to change the text at exact angles 90,180,270 Mar 23 10:29:01 question, is it better to run the intel haxm thingy and some x86 image, or just run android-x86 in virtualbox, when it comes to overcoming the poor performance of the arm emulation? Mar 23 10:30:49 Hey guys, i got this little layout http://pastebin.com/d1aawauz . All i wanna do is center the Text in the textviews.... but i cannot get it to work, in th graphic representation in eclipse it shows me that it gets centered, but on the screen the numbers just stick with the bottom of the linear layouts.... Can someone give me a nice example of how to align the numbers properly in the textview? Mar 23 10:32:08 Eek Mar 23 10:32:45 Do you have a drawing of what you want it to look like? Mar 23 10:33:50 actually, yes, whit a sec Mar 23 10:34:02 can anyone help me too Mar 23 10:34:04 ? Mar 23 10:37:28 androidAnsh: I'm not ignoring you, I'm just not qualified to answer your question :P Mar 23 10:37:55 oh damn , i can't find a screen from my colleagues... Mar 23 10:38:18 Hi guys. If I put Runtime.getRuntime().exec("su"); in my activity, it should ask the user's permission first right? In my case, I get nothing. Mar 23 10:39:02 HDroid: thanx for replying atleast Mar 23 10:40:39 fairuz: not sure if it would... Mar 23 10:41:55 HDroid: I need to write to a sysfs (which needs root access). I found this method but wondering why it didn't work or asking the user's permission. Mar 23 10:42:20 is it possible that i need special software for adb to recognize the odys cosmo pad? Mar 23 10:42:36 i didn't have any problems with any other of our test devices Mar 23 10:43:08 fairuz: you mean through the superuser app? Mar 23 10:43:24 (and we're assuming a rooted device here) Mar 23 10:43:39 HDroid: without that if possible. Mar 23 10:44:34 I'm not an expert on the subject, but I don't think Android has anything native built-in to pop up a permission dialog whenever something is exec()ed that requires a higher access level. Mar 23 10:44:34 HDroid: by the way how to know if it's rooted? Right now I can do adb root and in adb shell, I'm clearly root. That means I'm rooted? Mar 23 10:46:25 I was under the impression that adb root applied to the way adb is running in the host os, not the device, but I'm not sure. Mar 23 10:47:06 HDroid: When connected to the putty for the linux's shell, I have root too. Mar 23 10:48:21 HDroid: Well let just say I have 100% control of the file system, since it's me who compiled it. Mar 23 10:48:32 also: i still like to get rid of that overlay that plagues the activities shown in a TabActivity Mar 23 10:48:52 tapas: sometimes there's a driver from the manufacturer, but often it's just a matter of adding the usb vendor/device id to the adb usb driver. Also, did you enable debugging on the device? Mar 23 10:49:08 What OS are you on? Mar 23 10:49:59 What my app doing is to write to a sysfs (/sys/devices/blablabla). Right now I have to chmod the sysfs first using the terminal, so that the app have the permission the write on the sysfs. It will be good if I can do this directly in the app without involving putty, or adb shell. Mar 23 10:50:07 HDroid: ICS Mar 23 10:50:27 Oh I was asking tapas, and I was talking about the host computer's OS :P Mar 23 10:50:32 :P Mar 23 10:51:47 fairuz: if you can change that node, I suppose you are root... I'm not an expert on the subject but I'd expect Runtime.getRuntime().exec("su"); to either throw a permission error/exception that you can catch or have output that you might be able to use. Mar 23 10:52:21 can anyone help me too? Mar 23 10:53:10 HDroid: Well I use this snippet here http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your-app/. And I do get root toast message which according to the snipper I'm root. The problem is the command that I execute, well it seems like it doesn't do it. Mar 23 10:53:22 *snippet Mar 23 10:53:23 HDroid: i did enable usb debuggin.. will look into usb vendor/device info Mar 23 10:53:32 HDroid: sadly i'm on a mac here, so there's no lsusb ;D Mar 23 10:54:34 HDroid: and i suppose i would have to touch adb's sourcecode to add this? or is there a way to let adb know about a new device without recompiling its source? Mar 23 11:02:23 hi there Mar 23 11:02:36 any experienced dragdrop devs there? Mar 23 11:03:50 it seems noone that much expert in android here Mar 23 11:04:36 hi Mar 23 11:05:03 anybody who knows how to scan for mobile networks? Mar 23 11:05:21 (in my android app... not with the default settings in android) Mar 23 11:07:48 tapas: in Linux it's a matter of adding the ids to the udev config file. No clue how to do it on OSX, unfortunately. Mar 23 11:11:01 how do i change eclipse to use tabs instead of spaces for XML view? Mar 23 11:11:13 its really pissing me off having to format every time i create a new layout >.> Mar 23 11:15:17 CallumTaylor: hm.. I wonder if that's just the templates for a new layout? Mar 23 11:15:31 I've checked the setting but it defaults to tabs for me. Mar 23 11:15:37 possibly Mar 23 11:15:47 i remember setting it as tabs but they are still spaces Mar 23 11:15:55 is there anyway to change the default android xml templates? Mar 23 11:16:04 that would be amazing if i could Mar 23 11:16:21 I'm sure they're plain xml files somewhere eventually. Mar 23 11:16:24 or the ability to setup additional templates Mar 23 11:16:26 probably Mar 23 11:16:30 ill do a searc Mar 23 11:16:31 search Mar 23 11:18:31 HDroid: ahh, too bad Mar 23 11:22:39 add checkboxes for filter applies to uid, name, host, port to filter dialog, and save in settings Mar 23 11:23:05 chop-chop, make it happen, no dilly-dallying Mar 23 11:23:15 yes boss Mar 23 11:54:15 i'm trying to get a 95kb json file, are there some limitations from httpclient or buffered reader in android? Mar 23 11:54:29 it seems my result is cut off Mar 23 11:54:37 theres a bug in one of the streamreaders Mar 23 11:54:41 dont know if its fixed Mar 23 11:54:44 if you dump to console Mar 23 11:54:49 there's a limit to how much it will display Mar 23 11:55:15 https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/AsyncHttpClient.java Mar 23 11:55:22 take a look at the PatchInputStream class at the bottom Mar 23 11:55:23 additionally json throws an format exception although lint said it's valid json Mar 23 11:58:09 format exception? Mar 23 11:58:12 whats the code you're trying Mar 23 11:59:59 CallumTaylor: http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/ Mar 23 12:00:00 basically Mar 23 12:00:48 hm Mar 23 12:01:49 not sure Mar 23 12:02:07 i usually just use a HttpURLConnection Mar 23 12:08:02 a well i guess Mar 23 12:08:05 its not the stream Mar 23 12:08:24 whats the actual json response? Mar 23 12:09:54 there is just a JSONException: Value ... Mar 23 12:10:03 from JSON.typeMismatch Mar 23 12:10:47 in JSONObject json=new JSONObject(result); Mar 23 12:10:49 meh Mar 23 12:11:01 but is it comming from your json or this script's Mar 23 12:11:29 comment out all of the json stuff, and let it output the string result Mar 23 12:11:32 then paste it here Mar 23 12:12:37 the string rep is cut off Mar 23 12:12:42 mid-array Mar 23 12:12:55 guess it's a stream issue after all Mar 23 12:12:58 kk Mar 23 12:13:13 https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/AsyncHttpClient.java Mar 23 12:13:22 copy the class private class PatchInputStream extends FilterInputStream Mar 23 12:13:26 paste it in your class Mar 23 12:13:28 i tried that already Mar 23 12:13:34 but not sure how to change my code to use it Mar 23 12:13:35 did you implement it Mar 23 12:14:11 ok sec Mar 23 12:14:12 ill take a look Mar 23 12:14:23 I'm using a Handler to run an AsynTask at regular intervals. I stop the timer in onPause and start it in onCreate and onResume. Why does this work when starting the app (onCreate) but not when coming back from another activity (onResume)? Mar 23 12:14:30 is your httpcon approach easier? Mar 23 12:14:51 k do PatchInputStream fixed = new PatchInputStream(is); at the start of convertStreamToString Mar 23 12:15:03 then replace BufferedReader reader = new BufferedReader(new InputStreamReader(is)); Mar 23 12:15:03 with BufferedReader reader = new BufferedReader(new InputStreamReader(fixed)); Mar 23 12:15:32 well this i spretty much doing the same thing but i think its got the bug in android where it doesnt read the stream properly Mar 23 12:15:43 if you use this class, it might fix it Mar 23 12:16:22 k i get the same error as before Mar 23 12:16:24 No enclosing instance of type RestClient is accessible. Must qualify the allocation with an enclosing instance of type RestClient (e.g. x.new A() where x is an instance of RestClient). Mar 23 12:16:43 ah thats because toyr classes are static im guessing Mar 23 12:17:01 rename private class PatchInputStream extends FilterInputStream to private static class PatchInputStream extends FilterInputStream Mar 23 12:17:20 jip Mar 23 12:17:27 runs at least Mar 23 12:17:46 but result is cut off at the same place Mar 23 12:17:53 can you post the url for the json? ill try it on my code and see whats happening Mar 23 12:18:27 it's just local and proprietary :( Mar 23 12:18:31 ok Mar 23 12:18:36 nm, I think I found the problem. Mar 23 12:18:58 run() is a terrifically nice method to make use of when doing these things.................... Mar 23 12:19:00 fuu it would be so nice to get that done today, but im leaving in ~2 hours ;p Mar 23 12:23:16 i had a problem yesterday with the GC . i combine 2 bitmaps like described here -http://stackoverflow.com/questions/3674441/combining-2-images-overlayed - but the gc runs like crazy and this delays my asynctask for about 4 seconds.... whats wrong? Mar 23 12:24:46 ok it's weird now Mar 23 12:24:52 if i debug my result Mar 23 12:25:05 the string is exactly as big as it should be Mar 23 12:25:09 kazoooka: you do that often? consider recycling the source bitmaps if you don't need them afterwards. Mar 23 12:25:18 werid Mar 23 12:25:24 maybe it doesnt cut it off for debug Mar 23 12:27:01 still crashes on debug Mar 23 12:27:18 alankila: I have one image, that does not change - thats the underlaying image. I also get a new image over http every few seconds. this should be painted over the first image. How would you do that in that small method i posted? Mar 23 12:28:14 do you actually need it as a bitmap? why not just overlay two bitmaps in the layout tree, using FrameLayout or something? Mar 23 12:29:45 yeah this is all inside a custom image view Mar 23 12:32:12 tobib you could try downloading the files from my library and using them Mar 23 12:32:24 download AsyncHttpClient.java and AsyncHttpResponse.java Mar 23 12:33:08 then take a look here for an example http://documentation.callumtaylor.net/x-library/a00008.html Mar 23 12:33:42 oh Mar 23 12:34:00 you might need to download ConnectionInfo.java and HttpParams.java Mar 23 12:34:02 aswell Mar 23 12:35:04 i don't think its a stream issue Mar 23 12:35:15 result.length is ok Mar 23 12:35:28 and next line is JSONObject json=new JSONObject(result); Mar 23 12:35:49 hm Mar 23 12:36:04 what line does it error on exactly Mar 23 12:36:06 whats the stack trace Mar 23 12:36:31 the JSONObject(result) Mar 23 12:36:52 can you post your whole class on pastebin for me? Mar 23 12:37:07 it's exactly the praeda stuff Mar 23 12:37:11 ok Mar 23 12:37:13 but Mar 23 12:37:44 i commented stuff out after the JSON line Mar 23 12:37:47 ohhh i think i know why Mar 23 12:37:51 but that shouldn't matter Mar 23 12:37:56 this guy is formatting the json in the convertStreamtoString Mar 23 12:38:01 sb.append(line + "\n"); Mar 23 12:38:04 try removing that Mar 23 12:38:07 no Mar 23 12:38:10 sb.append(line); Mar 23 12:38:12 change to that Mar 23 12:38:27 i was thinking about that as well Mar 23 12:38:28 but Mar 23 12:38:32 i think the parser is failing at the \n character Mar 23 12:38:32 my json is only 1 line Mar 23 12:38:41 it still will have that char in it Mar 23 12:38:42 a really long line Mar 23 12:38:49 didn't matter still breaks Mar 23 12:39:28 what json library are you using? Mar 23 12:39:31 Where is the stacktrace Mar 23 12:39:54 if you're not already, try using org.json.JSONArray and org.json.JSONObject Mar 23 12:40:44 hi Mar 23 12:40:51 alankila: sweet i just got rid of a lot of GC's with bm2.recycle(); and checking if that pic has been recycled yet or not :D Mar 23 12:40:56 can I download fragment through eclipse ? Mar 23 12:41:00 alankila: thx very much Mar 23 12:41:28 fragment v4 Mar 23 12:41:35 the compatibility library Mar 23 12:41:58 check the sdk downloader Mar 23 12:42:04 i think it has an option in extras Mar 23 12:42:19 CallumTaylor: yes, it does, but I can't see fragments in it Mar 23 12:42:27 CallumTaylor: maybe it's under another name Mar 23 12:42:28 fragments is part of the library Mar 23 12:42:39 fragment is a class inside the compatibility library Mar 23 12:42:40 kazoooka: yeh, the recycling allows android to free memory earlier than what happens at the GC cycle -- which will ultimately free the bitmap memory Mar 23 12:42:54 CallumTaylor: you mean Google Play APK Expansion Library ? Mar 23 12:42:54 which env variable set the "out/target/product/$TARGET_PRODUCT/obj/$????/mylib.so", in my case $???? => SHARED_LIBRARIES/libvpu_intermediates/LINKED/ Mar 23 12:43:05 no Mar 23 12:43:11 Hi guys. I'm testing to put Runtime.getRuntime().exec("su -c touch /data/testFile"); in my app but I get nothing in /data. Any idea? Mar 23 12:43:19 android support package Mar 23 12:43:22 it think but im not 100% Mar 23 12:43:38 I don't receive any exception Mar 23 12:43:51 CallumTaylor: ok, I'll try this one Mar 23 12:43:58 CallumTaylor: thanks Mar 23 12:44:18 np Mar 23 12:45:29 fairuz: http://developer.android.com/reference/java/lang/Process.html Mar 23 12:45:36 fairuz: A) does 'su' exist? Mar 23 12:45:44 fikle: B) what's the result code? Mar 23 12:45:59 hey Mar 23 12:46:24 fairuz: C) the su interface will probably "cache" the user's choice, so you might have hit "deny" at some point and it's just denying you stuff. Mar 23 12:46:34 lov: Yes. I did the same command in android shell and it works. Mar 23 12:46:34 if i delete a row in SQL ... is there any way to give all rows a new auto-increment ID ? Mar 23 12:47:06 fairuz: try not using -c Mar 23 12:47:08 lov: I didn't choose anything yet? It didn't even ask me for permission to run su :( Mar 23 12:47:12 because now once i delete a row i always get problems because there are some "IDs" missing (of course) when i create a list of all entries Mar 23 12:47:33 fairuz: what version of su are you using? Try downloading an app that requires a "rooted" device like an adblock app, see if it works. Mar 23 12:47:37 anyone familiar with actionbarsherlock ? i'm trying to migrate from tabhost to actionbar Mar 23 12:48:06 Surfer2010: so? You shouldn't be relying on the rows all being monotonicly increasing IDs, especially if you're trying to select subsets. Mar 23 12:48:17 dark3n: JakeWharton is when he wakes up :P Mar 23 12:48:45 JakeWharton, ^ ah morning :) Mar 23 12:49:10 fairuz: su -c , where needs to be a single parameter Mar 23 12:49:11 lov: I'm testing the command without -c in the shell and it didn't work. So I expect it will not work in the app too. Mar 23 12:49:15 lov, have any tutorials handy? i think my problem is the tab contents class and adding it to the actionbar, Mar 23 12:49:23 lov: How to know the version of su? Mar 23 12:49:25 dark3n: nope! :D Mar 23 12:49:37 fairuz, su -v Mar 23 12:49:51 dark3n: no output Mar 23 12:49:59 fairuz, ive actually made an app for that https://play.google.com/store/apps/details?id=eu.thedarken.rootvalidator Mar 23 12:50:07 fairuz: what I meant was "where did you get this copy of su from" ? Is it what's on your device from rooting it, or did you make it / pull it yourself from somewhere? Mar 23 12:50:14 not all su versions and variants support -v and -V Mar 23 12:50:25 Chainfire, morning ;) Mar 23 12:50:55 lov: meaning i create a list of all entries by just "c.movetoNext()" ? or how do you mean that? Mar 23 12:50:56 lov: It's already there. I compiled myself the android file system. Mar 23 12:51:05 lov: It's in /system/xbin/su Mar 23 12:51:19 fairuz: ah. Then it is entirely possible that it is not supposed to be invoked from processes; it may only allow access from the shell. Mar 23 12:51:32 fairuz: I'm thinking of the su binary that chainssd wrote, which is meant for general user interaction Mar 23 12:51:56 fairuz: if you're compiling the firmware, strongly consider modifying the su binary yourself. Mar 23 12:52:16 lov: modifying in what way? Can you explain more? thanks Mar 23 12:52:47 Surfer2010: yeah, I guess so. Use an arraylist to handle the output you'll be returning or whatever. Don't rely on the id for anything but a unique identifier. Mar 23 12:53:46 fairuz: the binary itself or code that it relies on very likely has a list of uids that may actually invoke it, sort of like the sudoers list on some linux distros. Check and see whether that's the case. It is possible that only the shell has permissions to use it. Mar 23 12:54:20 fairuz: https://play.google.com/store/apps/details?id=com.noshufou.android.su Mar 23 12:54:38 fairuz: strongly consider using that version of su. Mar 23 12:54:40 Hi, Any idea where GraphicsBufferMapper code is located in Android ics source tree? Mar 23 12:56:56 lov: I will try that one. thank you Mar 23 12:58:23 lov: I can basically replace my current su with this? Mar 23 12:58:29 It's safe? :) Mar 23 12:59:17 it will eat your babies, so as long as you don't have any babies, it's safe :P Mar 23 12:59:51 :) Mar 23 13:01:28 fairuz: heck if I know. Mar 23 13:01:39 fairuz: the source should be available on xda-devs Mar 23 13:01:41 somewhere.... Mar 23 13:01:54 it's the version of su that comes with CM at any rate. Mar 23 13:02:03 xc0ffee: can't find such a thing Mar 23 13:05:27 alankila, in one of the core dump's, I find a error statement like "W GraphicBufferMapper: registerBuffer(0x1601560) failed -14 (Bad address)"... Trying to figure out whats going on.. Mar 23 13:05:56 xc0ffee: ok. Couldn't spot anything by that name in the entire source tree though Mar 23 13:06:29 alankila, Ok.. Thank you, alankila Mar 23 13:06:51 wait, you say GraphicBufferMapper, not GraphicsBufferMapper Mar 23 13:06:58 ./frameworks/base/libs/ui/GraphicBufferMapper.cpp Mar 23 13:07:08 alankila, Oops, yeap.. sorry about that.. Mar 23 13:07:25 alankila, thanks again.. :) Mar 23 13:13:09 Hey, I have a couple of questions about Custom Notifications: Do they need to be declared in the manifest? Do they need to class created just for them? How do you make a button on a notification work? Mar 23 13:13:58 Also how do you set a notification to be persistent? Mar 23 13:14:12 Any help on any of these questions would be greatly appreciated. Mar 23 13:14:28 it would be so cool, if there was a simple way to say "gimme location and if you got none, give me null" :D Mar 23 13:15:00 and the details of how the location is aquired is controlled system wide by some global settings Mar 23 13:15:10 Ankhwatcher: uh, there's only about a hundred million blog posts on this, not to mention the android dev resources cover it Mar 23 13:17:29 huh, it's funny, a google search for "android notification" gives me all kinds of useful results :P Mar 23 13:18:31 does anybody know, if its legal to use the "secret" google weather api for a commercial app? Mar 23 13:19:03 can you use it? sure. might it change and break your app? sure Mar 23 13:19:10 its probably against their TOS Mar 23 13:19:14 to use it commercially Mar 23 13:19:28 i just use metoffice api Mar 23 13:19:30 hm Mar 23 13:19:50 im sure there a number of apis for that Mar 23 13:20:17 the point is, that i need the current weather of a choosen city in germany Mar 23 13:20:23 the best api is to just stick your head outside Mar 23 13:20:34 :D Mar 23 13:20:48 http://kottke.org/12/03/geometric-pornography-app-rejected-by-apple Mar 23 13:20:52 this is actually amazing Mar 23 13:20:52 http://www.wunderground.com/weather/api/ Mar 23 13:21:27 CallumTaylor, LOL Mar 23 13:21:34 best. app. ever Mar 23 13:21:39 seriously Mar 23 13:21:41 that takes the cake Mar 23 13:21:44 need android port Mar 23 13:21:48 yep Mar 23 13:21:54 its not porn though Mar 23 13:21:58 its just peoples sick perception Mar 23 13:22:08 ahaha this is brilliant Mar 23 13:22:37 id love to give it to like a 5 year old and see their reaction Mar 23 13:23:04 that is hilarious Mar 23 13:23:50 hii Mar 23 13:24:02 is it safe to store passwords in the .apk ? Mar 23 13:24:10 probably not Mar 23 13:24:12 and if not.. what to do? Mar 23 13:24:16 .apk = .zip Mar 23 13:24:16 hash them Mar 23 13:24:17 anyone done this? Mar 23 13:24:27 ok.. Mar 23 13:24:31 thats it? :D Mar 23 13:24:40 hey Mar 23 13:24:42 dannyD_: "store passwords" Mar 23 13:24:44 what kind of passwords Mar 23 13:24:46 predictable reaction: "this is boring, you just move shapes" Mar 23 13:24:47 google Mar 23 13:24:51 uh Mar 23 13:24:52 I'm currently in the progress of migrating my build setup from linux to mac Mar 23 13:24:57 o_O Mar 23 13:25:00 Pragma_ probably Mar 23 13:25:00 no, probably not. Mar 23 13:25:02 I'm using commons.lang as external jar Mar 23 13:25:16 dannyD_: Anything you store in your apk can be retrieved by anyone with that apk Mar 23 13:25:21 CallumTaylor: it's cute and all but I definitely understand apple's reaction. Mar 23 13:25:29 i added it to the build path in eclipse Mar 23 13:25:33 03-23 14:22:48.742: E/AndroidRuntime(7665): java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils Mar 23 13:25:34 they just have sick minds Mar 23 13:25:38 its all about perception Mar 23 13:25:38 what am I doing wrong? Mar 23 13:25:42 and I can't blame them. There's little difference between this and some pretty early computer porn. Mar 23 13:25:44 mots: Put it in libs/ Mar 23 13:25:55 SimonVT: it's in libs/commons.lang Mar 23 13:26:02 oh Mar 23 13:26:06 lib/commons.lang Mar 23 13:26:16 your/project/libs/commons.lang.jar Mar 23 13:26:21 ok Mar 23 13:26:21 And remove it under java build path Mar 23 13:26:31 CallumTaylor i meant.. store a password.. in the java code..thats part of the app.. Mar 23 13:26:49 that can be deompiled rather easily Mar 23 13:26:50 dannyD_ should be ok then Mar 23 13:26:52 like String superPassword = "secret"; Mar 23 13:26:55 i would have thought Mar 23 13:27:00 dannyD_: That is not safe at all Mar 23 13:27:06 apparently not then Mar 23 13:27:10 ok lol Mar 23 13:27:27 SimonVT what to do.. decrypt? Mar 23 13:27:34 i mean encrypt? Mar 23 13:28:05 dannyD_: why exactly are you embedding a password to a google account here? Mar 23 13:28:34 that sounds like a _great_ idea Mar 23 13:28:53 it is very likely that there is a solution to whatever problem you have that doesn't involve you directly embedding credentials. Mar 23 13:29:30 just name your string "thisIsTotallyNotAPasswordPleaseMoveOnNothingToSeeHereGoAwaySeriously" Mar 23 13:29:34 it'll be fine Mar 23 13:29:36 haha Mar 23 13:30:06 because i want feedback from the user.. and it should just write in a textfield + press send.. so ill send the email to "myself" with the user input.. Mar 23 13:30:12 O_O Mar 23 13:30:23 yeeaaah...... Mar 23 13:30:29 lol Mar 23 13:30:29 consider just having a share intent instead. Mar 23 13:30:30 cool ha? Mar 23 13:30:42 "cool" in the sense of "jesus christ what are you doing this for" Mar 23 13:30:50 share intent?! Mar 23 13:31:00 ugh Mar 23 13:31:09 whatever the fucking intent is that loads up the email app with a subject/body/etc Mar 23 13:31:16 You can send an intent to open up their email app with pre-configured receiver, subject, etc Mar 23 13:31:26 i dont want any other app to do the job Mar 23 13:31:28 no no Mar 23 13:31:56 uggghhhh Mar 23 13:31:57 ill just use CallumT password..neat.. Mar 23 13:32:07 Well, sure. Just save your gmail account and password in the apk. Make sure it's your dev account or it wont work. Also, can we have your keystore? Mar 23 13:32:25 in that case either create a script on your server that sends mails (and secure the everloving shit out of it), or learn the SMTP protocol and hope your user can send that way. Mar 23 13:32:40 if you embed any of your credentials in the app, don't come crying to us when your account gets "hacked" Mar 23 13:32:47 :-( Mar 23 13:33:07 ok, it seems updating the android SDK is a bad idea wth eclipse :D Mar 23 13:33:24 it tells me i need revision 17, but that's what's installed.. Mar 23 13:35:06 tapas: Did you update the ADT as well? Mar 23 13:35:07 dannyD_: at your current level of skill, I would VERY strongly advise that you just let the user handle sending the mail themselves, by using an intent to launch their email app with the to, subject, and body fields prepopulated. Mar 23 13:35:13 drlaban: ahh, good point Mar 23 13:35:18 quite frankly, you don't know enough to do anything else properly right now. Mar 23 13:35:35 tapas: you can update but you need to make sure your jar files are in a "libs" folder not anywhere else Mar 23 13:36:37 wmbest2: ah ok. you refer to the android libs though and not other 3rd party libs? Mar 23 13:37:00 eclipse ADT site seems to be super slow.. eclipse says "pending..." :D Mar 23 13:37:27 ah, there we go Mar 23 13:37:51 tapas: any jar you want included must now reside reside in libs. They made that requirement strict now thats why its breaking so many people's projects Mar 23 13:38:49 wmbest2: oh, good to know Mar 23 13:43:11 speaking of which if anyone is doing instrumentation testing on their projects Im running into this problem http://stackoverflow.com/questions/9828722/verifyerror-in-test-project-build-tools-v17 Mar 23 13:45:06 Guys do you know what is onReceive() Action : android.bluetooth.a2dp.action.SINK_STATE_CHANGED ? Mar 23 13:45:25 is it a standard Android app in every android installation? Mar 23 13:48:53 Hello everyone. Mar 23 13:49:18 Is it part of the API? Mar 23 13:49:34 If not, it's probably not a reliable Mar 23 13:54:01 i dislike being in this little bubble surrounded by people who think they know what they are talking about, but really don't Mar 23 13:54:05 http://www.reddit.com/tb/r9kbd Mar 23 13:54:40 so get off the internet Mar 23 13:54:43 sorry, I'll leave your bubble and go back to mine.. :P Mar 23 13:55:07 (p.s. that's what this irc is for) Mar 23 14:02:23 lov my level is veeery high, it will not call an intent,,neveerr.. Mar 23 14:02:41 i rather spell out the password in cleartext :P Mar 23 14:03:37 lol? Mar 23 14:03:56 so then someone gets that password, logs into the account and changes the password... Mar 23 14:04:05 every bloody time someone decides to call i have to unplug the phone and all that nonsense Mar 23 14:04:06 grr Mar 23 14:04:07 now the mail in your app doesn't work any more Mar 23 14:04:41 dannyD_: cool story bro. Good luck with that. Mar 23 14:05:19 Atarii mmm.. btw.. c64 :D Mar 23 14:05:48 if an activity is killed before its onDestroy method was called its resources are cleaned up anyways right? Mar 23 14:06:15 what about asynctasks it started? Mar 23 14:06:47 mikedg: i agree with 90% of this article, and i'd throw in that Google treats their app developers like shit Mar 23 14:09:08 wongk, and pays them to late, then just saying "ups sorry" Mar 23 14:09:25 is google evil? Mar 23 14:09:29 Hey, I'd like to chmod 777 my sdcard folder on the android….I think I'm support to go to the android sdk in platform-tools…I executing the following command to get to the adb shell but it doesn't work: ./adb ……any ideas why not or how I can chmod 777 my sdcard folder …I'm on a mac Mar 23 14:09:32 i have seen hundreds of reports of non payment Mar 23 14:09:41 wongk: please bring this talk to #iOS , I don't wanna read this. Mar 23 14:09:50 so there at no dount thousands that i haven't seen Mar 23 14:09:52 aah.. if my app does not get killed as a whole can i count on onDestroy being called? Mar 23 14:10:04 samosa: then don't read it Mar 23 14:10:04 sure Mar 23 14:12:04 any ideas how to chmod 777 your sdcard folder on an android ? Mar 23 14:12:31 chmod 777 /sdcard Mar 23 14:12:43 lol Mar 23 14:13:07 Atarii: ok, how do I do it in a adb shell then? Mar 23 14:13:09 tapas soner or later, when net resources needs space? Mar 23 14:13:16 adb shell Mar 23 14:13:20 adb shell chmod 777 /sdcard/ Mar 23 14:13:26 or a terminal app Mar 23 14:13:40 im sure you'll have to be rooted Mar 23 14:13:41 real kb > virtual Mar 23 14:14:13 wongk: what does 'have to be rooted' mean? Mar 23 14:14:29 you don't know what it means to be rooted? Mar 23 14:14:30 :| Mar 23 14:14:42 adb remount Mar 23 14:14:46 wongk: sudo? Mar 23 14:14:55 heh, not exactly Mar 23 14:15:02 dannyD_: sorry i coud not parse your sentence Mar 23 14:15:06 wongk: alright then what? Mar 23 14:15:20 http://lmgtfy.com/?q=rooted Mar 23 14:16:10 wongk: alright, I tried the following command './adb shell chmod 777 /sdcard/' but I get the following output, 'Unable to chmod /sdcard/: Read-only file system' ..any ideas why? Mar 23 14:16:24 john_doe_jr: Is there a specific reason as to why you have to do this? Mar 23 14:16:27 john_doe_jr do adb remount Mar 23 14:16:35 adb shell su chmod 777 /sdcard/ Mar 23 14:16:43 diaba I want to add photos to the sdcard Mar 23 14:17:46 Jug6ernaut: I tried, './adb su shell chmod 777 /sdcard/' but that doesn't work either….it just gives me the adb help menu Mar 23 14:18:30 adb shell su Mar 23 14:18:34 not adb su shell Mar 23 14:18:46 u need to be rooted Mar 23 14:20:22 I haven't used Android on a Mac myself, but isn't this possible to do through regular USB mount in Android? Mar 23 14:20:54 john_doe_jr did you do what i said? Mar 23 14:21:33 Atarii: alright, I did a 'adb remount' and got the following, "remount succeeded' Mar 23 14:21:41 now do th4e command again Mar 23 14:21:45 adb shell chmod 777 /sdcard/ Mar 23 14:22:18 in general: should the call through to super.onDestroy for example or super.onPause() come at the start or the end of the overwritten method? Mar 23 14:22:47 I always put the super-call on top. Mar 23 14:22:49 Atarii: the following command, './adb shell chmod 777 /sdcard/' results in 'Unable to chmod /sdcard/: Read-only file system' Mar 23 14:23:52 * Jug6ernaut says it again, u need su Mar 23 14:24:14 Jug6ernaut: alright, what do I do then Mar 23 14:24:15 i guess it depends on what side effects the super methods have.. and whether one needs these side effects to happen before ones own code or after.. Mar 23 14:24:42 lov is this safe? not really..?: http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android Mar 23 14:24:45 granted, i dont think u can ever chmod 777 the sdcard...even with su.../me tries Mar 23 14:25:29 depends on your definition of "safe" lol Mar 23 14:25:32 Jug6ernaut: alright, then is there a way to do it? Mar 23 14:25:33 dannyD_: All the information you put there is available to anyone who has your apk. That's how safe it is Mar 23 14:25:40 Doesn't adb remount just affect the /system partition on the device? Mar 23 14:25:56 i believe so Mar 23 14:26:03 is the sdcard part of /system? Mar 23 14:26:11 john_doe_jr i dont think its possible Mar 23 14:26:13 no its not... Mar 23 14:26:19 how does LVL work with multiple google accounts? Mar 23 14:26:26 SimonVT so there is no safe way to send a "harcoded" email.. Mar 23 14:26:53 Jug6ernaut: do I just need to change the permissions in the AndroidManifest.xml file or something? Mar 23 14:27:02 I think it's a lost cause to try and chmod the sdcard through adb shell without root and additional tools. Mar 23 14:27:04 ok, so if one comes from a C++ point of view with constructors and destructors and RAII, i guess a good pattern for setup and teardown is onCreate() and onPause(), the latter with a check for isFinishing() Mar 23 14:27:15 john_doe_jr what are u trying to do? Mar 23 14:27:16 Sounds easier to stick it into an sdcard-reader and do it on a computer instead... Mar 23 14:27:29 are u not able to write files to the sdcard? you need to add a permission Mar 23 14:27:36 Jug6ernaut: I'd like to push a picture to the sdcard Mar 23 14:27:48 dannyD_: code it up and package an apk and see how it takes one of us to get your password :P Mar 23 14:27:50 Jug6ernaut: but it keeps telling me that it is a read-only Mar 23 14:27:58 lol Mar 23 14:27:59 it's probably in the wrong mode Mar 23 14:28:03 restart ur phone maybe Mar 23 14:28:13 I'd check the USB mount in Android... Mar 23 14:28:15 Jug6ernaut: it's an emulator Mar 23 14:28:16 wongk you would not do that would you? Mar 23 14:28:31 Jug6ernaut: Not _that's_ a bit more information about the whole deal! Mar 23 14:28:35 sorry Mar 23 14:28:40 I meant john_doe_jr Mar 23 14:28:48 lol Mar 23 14:28:53 dannyD_: if my purpose it to prove that it is not secure, then yes Mar 23 14:29:08 but ive used many apps that was that kind of email/feedback .. no one hacks them..so why me! Mar 23 14:29:09 Alright, I'm confused Mar 23 14:29:28 dannyD_: if you're not worried about that happening, then go for it Mar 23 14:29:33 dannyD_: You asked how secure it was. We answered. What you want to do is up to you Mar 23 14:29:37 dannyD_ have you checked their source? they probably don't do that Mar 23 14:29:50 john_doe_jr: You could try to push/pull files to the sdcard through DDMS Mar 23 14:30:05 I'm in DDMS in eclipse Mar 23 14:30:18 Atarii but since you can come up with any more secure way, then there is none.. or..? Mar 23 14:30:23 john_doe_jr: And it says read-only in there, yeah? Mar 23 14:30:29 The permissions on the sdcard folder show blank Mar 23 14:30:34 *cant Mar 23 14:30:39 mount -o remount,rw /sdcard Mar 23 14:30:48 dannyD_, lov said how Mar 23 14:31:03 that sounds like the right way to do this, because sdcard is formatted fat32, you can't set permissions on fat partitions like you can on linux Mar 23 14:31:18 err Mar 23 14:31:22 like you can on extX Mar 23 14:31:55 ray|yar: alright, I'll try that Mar 23 14:32:12 Atarii no, he just said, use intents! Mar 23 14:32:20 but thats not what i want.. Mar 23 14:32:21 yes... Mar 23 14:32:25 I've only skimmed over what you said, but remounting sounds like what you want to do Mar 23 14:32:55 you'll never find "secure" and "hardcoding in an app" in the same sentance Mar 23 14:33:00 i want to have a textfield + send button.. no more, no less.. and the email goes to me.. Mar 23 14:33:05 hehe Mar 23 14:33:47 Noone's stopping you Mar 23 14:33:59 im trying to find a way.. mmm.. Mar 23 14:34:09 ive never decompiled anything Mar 23 14:34:15 what does one see ? :D Mar 23 14:34:16 ray|yar: the following command, './adb shell su mount -o remount,rw /sdcard' results in ' su: exec failed for -o Error:Permission denied' Mar 23 14:34:31 try java decompiler Mar 23 14:34:31 What apps is it that does this, dannyD_ ? Mar 23 14:34:43 oh right it needs root Mar 23 14:34:54 * ray|yar knows very little about the emulator Mar 23 14:35:21 ray|yar: so I got to be root on my Mac to execute the command? Mar 23 14:35:30 have to be root in android Mar 23 14:36:56 SimonVT its just a silly app.. to try out how it is to put something on the market.. Mar 23 14:36:57 http://stackoverflow.com/questions/3122635/is-it-possible-to-decompile-an-android-apk-file Mar 23 14:37:01 now im scared! Mar 23 14:37:13 * dannyD_ *superscared* Mar 23 14:37:19 sure it possible Mar 23 14:37:24 you can steal assets from apps Mar 23 14:37:24 No, what apps is it you say does what you want? Mar 23 14:37:28 because anything in assets is uncompiled Mar 23 14:37:41 i once took the pop sound from the twitter app Mar 23 14:37:52 i feel like steeling too.. Mar 23 14:37:56 and annoyed the shit out of your users? Mar 23 14:38:01 nah Mar 23 14:38:04 steely dan :D Mar 23 14:38:05 hate that sound >.< Mar 23 14:38:06 i needed it for swipe for actions view Mar 23 14:38:14 but ive only ever used that control once Mar 23 14:38:19 and that was a year ago :( Mar 23 14:38:30 no one wants us to use it any more in our apps Mar 23 14:38:33 iiioowoop! Mar 23 14:39:01 kind of Mar 23 14:39:11 john_doe_jr: that's because that 'su' line is wrong. I'm also not sure what situation would leave the exernal SD mounted read only. Probably a question for #android-root Mar 23 14:40:09 in a normal linux system a filesystem is often mounted read only when it had errors and root shal decide what to do Mar 23 14:41:03 tapas: if a fat16 goes RO it's pretty much pureed Mar 23 14:41:26 i got it! Mar 23 14:41:48 i will send the "email" as a REST call to webservice :D Mar 23 14:42:04 that way no password etc is needed..and ill still get some feedback:D Mar 23 14:43:10 lov in y face! :D Mar 23 14:43:31 * dannyD_ moonwalk Mar 23 14:43:56 ok jk, im the noobbb... Mar 23 14:44:01 1. that's not sending a email from the app. 2. it's still open to abuse Mar 23 14:44:20 Alright…dang…all this work just to put a picture on an SD card in an emulator Mar 23 14:44:22 hi guys Mar 23 14:44:30 Atarii but much more secure, and you can block IP .. Mar 23 14:44:44 do you know if all bluetooth audio devices supports a2dp profile? Mar 23 14:45:11 everyone loves blocking IPs, this is déjà vu from the other night Mar 23 14:45:12 Atarii but your right.. its not an email, its a message. Mar 23 14:45:15 stermi: no Mar 23 14:45:57 because I don't know why but BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED is fired before the audio is routed to the bt headset Mar 23 14:46:13 instead BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED is fired at the right time Mar 23 14:46:22 I'm talking about those events with state == connected Mar 23 14:46:32 Hi! If one uses CursorLoader.loadInBackground() to return a Cursor, it returns immediate and that Cursor won't have content until data comes back asynchronously, right? Mar 23 14:46:47 is the proper way to be informed when data has arrived to register a DataSetObserver? Mar 23 14:47:12 notifyDataSetChanged(), I guess Mar 23 14:47:20 never worked with these API's though Mar 23 14:48:36 Eh, loadInBackground is done.. in the background.. it doesn't return until the query is completed Mar 23 14:48:57 orospakr, when it returns it means the query as finished Mar 23 14:49:06 SimonVT, if it's done in the background, and yet blocks until the background task is done, there seems to be little point in the method even existing. Mar 23 14:49:10 btw: the emulator is pretty slow on this machine.. shouldn't it be possible to use an android-x86 in a normal VM and test on that? Mar 23 14:49:29 Hello Mar 23 14:49:31 orospakr: You are not calling loadInBackground manually are you? Mar 23 14:50:22 If you are using LoaderManager, you get a callback in onLoadFinished Mar 23 14:50:34 Q: Why setContentView(R.layout.main); line gives me error: "main cannot be resolved or is not a field", while /res/layout/main.xml is clearly exists? Mar 23 14:50:41 If you are not, register an OnLoadCompleteListener and it'll return your data in onLoadComplete Mar 23 14:51:07 silur: Either you haven't built your project yet, or you imported android.R instead of your.project.R Mar 23 14:53:16 SimonVT, wow. Apparently "android.R" was a problem indeed. Thanks! I'd spend a day trying to struggle with it Mar 23 14:54:32 Does the PreferenceActivity have a way to display some read only values? Mar 23 14:56:28 You should be able to add a Preference with just a title and summary, nothing else Mar 23 14:56:32 kevwilde: enabled="false" Mar 23 14:56:48 is it possible that a .xib file is corrupted? Mar 23 14:57:05 xib file? Mar 23 14:57:09 ... isn't xib something from Cocoa? Mar 23 14:57:11 anything is possible Mar 23 14:57:13 isnt that an iPhone layout file Mar 23 14:57:20 ops sorry, wrong chat :D Mar 23 14:58:07 evancharlton: set what object to enabled=false ? Mar 23 14:58:19 the preference Mar 23 14:59:06 dammit Mar 23 14:59:52 evancharlton: ok, ty Mar 23 15:00:45 SimonVT, so, this code tree I have to work on is calling it manually. However, it has no docstring, which has a bad smell. :) Mar 23 15:00:49 I should read the source. Mar 23 15:01:01 (that is, loadInBackground() has no docstring) Mar 23 15:01:04 Yeah, read up on how to use Loaders Mar 23 15:01:16 registerListener Mar 23 15:01:17 startLoading Mar 23 15:01:19 ??? Mar 23 15:01:20 success Mar 23 15:01:23 Is anyone familiar with C2DM? Does it have temporary block functionality if you log for an Auth key a few times in a few minutes? Mar 23 15:01:24 yeah, I will. I just have to convince the rest of my folks on my project to let me spend time to do this properly. Mar 23 15:01:51 orospakr: Even easier is probably using LoaderManager. At least, that's what I prefer Mar 23 15:01:52 (for the 3rd Party Application server) Mar 23 15:02:03 how can i set the inputtype of an edittext only to double values (positive and negative) Mar 23 15:02:04 ? Mar 23 15:03:28 setInputType(InputType.TYPE_CLASS_NUMBER) shows exactly what i want, but i cannot type in negative numbers... Mar 23 15:03:37 Anyone know if Android has some form of HitTest like IOS does for testing which view corresponds to the X and Y coordinate? Mar 23 15:03:37 I'ld like to bind a specific view to an adapter and display the data of a single record (in this case one that has the 'isSelected' flag set to true). Now, I only find usages for Adapters with lists and other collection widgets. Is there some resource that can show me how to do what I want to do? The reason why I want to do this is that I keep a list of adapters which I can all notify in case data has been updated, instead of accessing the UI direct Mar 23 15:03:57 chris_cross: http://developer.android.com/reference/android/text/InputType.html#TYPE_NUMBER_FLAG_DECIMAL http://developer.android.com/reference/android/text/InputType.html#TYPE_NUMBER_FLAG_SIGNED Mar 23 15:04:54 dammit it's so difficult to handle BT + Music APP Mar 23 15:06:00 SimonVT: i've read this already Mar 23 15:07:45 i want to show a keyboard only with numbers like doing setInputType(InputType.TYPE_CLASS_NUMBER); but i want to type in double values which can be negative Mar 23 15:09:03 did you try TYPE_NUMBER_FLAG_DECIMAL Mar 23 15:09:37 oh, I see now. loadInBackground()'s name is a bit misleading. it's entirely blocking/synchronous, but appears to be intended to run in a thread if one likes. Mar 23 15:09:39 yes Mar 23 15:09:58 but then i see the normal keyboard an can type in what i want Mar 23 15:10:03 maybe you can mix them like TYPE_NUMBER | FLAG_DECIMAL | FLAG_SIGNED Mar 23 15:10:10 chris_cross: Those are flags.. Mar 23 15:10:11 letters, numbers, everything Mar 23 15:10:13 idk if that would work Mar 23 15:10:15 Or them on TYPE_CLASS_NUMBER Mar 23 15:12:32 ok, works fine. thanks alot! Mar 23 15:12:57 what did you type in the end? Mar 23 15:13:04 mom Mar 23 15:13:13 setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL); Mar 23 15:13:21 that worked? nice. Mar 23 15:13:26 yes ^^ Mar 23 15:13:53 * SimonVT checks documentation: "Supported classes may be combined with variations and flags to indicate desired behaviors." Mar 23 15:14:42 is there a way to say how much numbers can be typed in? Mar 23 15:15:20 editText.setMaxLength Mar 23 15:15:20 i think Mar 23 15:16:13 doesnt exist :D Mar 23 15:23:20 I'm trying to update my widget from my app with this piece of code: http://pastebin.com/Fnw6scXD, but I get the following error for appWidgetManager: appWidgetManager cannot be resolved. How should I fix it ? Mar 23 15:23:22 argh Mar 23 15:23:28 Is there anyway to test a specifical locale Mar 23 15:23:33 why does the text not follow my 9patch on my buttons Mar 23 15:23:39 like en_AU or en_GB or en_US Mar 23 15:23:40 ? Mar 23 15:23:42 do they have to be imagebuttons Mar 23 15:23:43 ? Mar 23 15:24:09 I'm actually trying to run the same code that's in my WidgetProvider.java, but in my main activity, in order to update the widgets Mar 23 15:25:14 maxagaz: "cannot be resolved" .. it can't find the field appWidgetManager.. Mar 23 15:25:49 <-- en_GB Mar 23 15:26:17 SimonVT: Am I trying the wrong way to update widgets from within my app ? Mar 23 15:26:35 or do I just need a fix ? Mar 23 15:26:46 maxagaz: I don't know, are you? I just know that if you want to call a method on the field appWidgetManager, you need to define the field appWidgetManager Mar 23 15:27:08 SimonVT: how to define it ? Mar 23 15:27:11 My app (and service) gets killed after closing the app (from the recent app list) with [..] has leaked ServiceConnection [..] Mar 23 15:27:30 ... that was originally bound here Mar 23 15:27:43 any pointers for me? Mar 23 15:28:20 https://play.google.com/store/apps/details?id=com.hzwp.mtSpeed&feature=top-free Mar 23 15:28:25 500k to 1m installs Mar 23 15:28:27 maxagaz: http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter03/fields.html Mar 23 15:28:35 service is started from main activity's onCreate with: Intent serv = new Intent(getBaseContext(), MyMailService.class); getBaseContext().startService(serv); Mar 23 15:29:06 rofl at the reviews Mar 23 15:29:12 people thinking it was a game Mar 23 15:29:17 to be fair it is a bit misleading Mar 23 15:29:30 guh i hate days like this Mar 23 15:29:38 what stupid shit am i doing wrong Mar 23 15:29:58 developing on android Mar 23 15:30:07 if you have a button, with text, and you set the background to a 9patch, with the text location bars set somewhere.. should the text be there?! Mar 23 15:30:16 yeah Mar 23 15:30:19 SimonVT: (...) Mar 23 15:30:21 well Mar 23 15:30:24 why is the text staying centered Mar 23 15:30:29 its strechable area and padding area Mar 23 15:30:38 you'll have to change the text's gravity Mar 23 15:30:44 to? Mar 23 15:30:49 what ever you want it to be Mar 23 15:30:51 left, right, Mar 23 15:31:12 the bars are the stretchable area for the button, and the default padding for the image Mar 23 15:31:20 which get overridden by android:padding if its set Mar 23 15:32:37 I'ld like to bind a specific view to an adapter and display the data of a single record (in this case one that has the 'isSelected' flag set to true). Now, I only find usages for Adapters with lists and other collection widgets. Is there some resource that can show me how to do what I want to do? The reason why I want to do this is that I keep a list of adapters which I can all notify in case data has been updated, instead of accessing the UI direct Mar 23 15:32:38 wait Mar 23 15:32:47 alright, I tried editing my 'run configuration' in eclipse by following the instructions at http://www.streamhead.com/android-tutorial-sd-card/ to add the sdcard command line options but I keep getting the following message, 'invalid command-line parameter: mksdcard' …I'm using the following command, 'mksdcard -l mysdcard 128M sdcard.img' in the command line options in eclipse…any ideas? Mar 23 15:32:47 i thought the bottom and right bars define where the text is located Mar 23 15:33:00 nope Mar 23 15:33:01 padding Mar 23 15:33:07 so its the opposite of that? Mar 23 15:33:16 i want to make some hardcore opengl games. b-but, what if it sucks on the market? :( Mar 23 15:34:02 TachyonDev: Bottom and right defines the content area. As in, where you can put content. Rest is applied as padding Mar 23 15:34:03 onr: the fact that you make them in opengl doesn't mean anything... it's all in the concept Mar 23 15:34:38 http://3.bp.blogspot.com/_Q2fq0mPaBrY/TSgA_wHd-rI/AAAAAAAAAB4/6cMsxCDABVY/s1600/9_patch_%25281%2529.png Mar 23 15:34:39 SimonVT: thats what i thought Mar 23 15:34:51 okay let me post my 9patch Mar 23 15:34:53 bl4ckcomb: sometimes, its all in the face. not very good games, but pretty games Mar 23 15:35:07 that story doesn't last long Mar 23 15:35:12 it's usually the opposite Mar 23 15:35:24 eg. minecraft Mar 23 15:35:47 gta used to have very crappy graphics too Mar 23 15:35:47 CallumTaylor: That's a bad explanation. It implies you mark where you want your padding, not where you want your content Mar 23 15:35:49 http://tachyondev.com/android/neworange.9.png Mar 23 15:35:51 etc, etc. Mar 23 15:35:57 minecraft guy was good at making games. i think im better at making graphics Mar 23 15:36:02 SimonVT: shouldnt the text stay in the "white" area? Mar 23 15:36:18 onr > then make graphics, not games ;) Mar 23 15:36:20 TachyonDev: Yes Mar 23 15:36:29 SimonVT: .. its not Mar 23 15:36:33 find someone whos good at games and partner up Mar 23 15:36:43 Are you sure it can fit in the white area? You're not stretching that part Mar 23 15:36:46 onr: a graphic isn't a game :p programmers hire designers for the colors, but the concept is the most important aspect Mar 23 15:36:46 SimonVT: i set that to the background of the button, and the text is just centering Mar 23 15:37:03 SimonVT: its not moving it all.. its dead center of the button Mar 23 15:37:08 SimonVT: none is actually in the white area Mar 23 15:37:32 shit like this drives me nuts Mar 23 15:39:19 I'm gonna guess it's because the white area is too small Mar 23 15:40:18 i mean what about the gravity Mar 23 15:40:21 does that make a difference? Mar 23 15:41:16 Hey, I'm currently trying to create a custom dialog, but when setting the onClick event for one of the buttons in my custom dialog the program crashes, as findViewByID seems to return null Mar 23 15:41:22 Heres the code: http://pastebin.com/snS4pQNk Mar 23 15:42:08 I would guess that there's no element with that ID in your layout Mar 23 15:42:17 Well, there is ;) Mar 23 15:42:26 try cleaning and removing app from phone Mar 23 15:42:39 Shammah: if there was, it wouldn't be null Mar 23 15:42:47 i sometims had where it would find the ID in compiling, but it wouldn't when running Mar 23 15:42:59 no idea how or why Mar 23 15:43:04 Shammah: findViewById() is operating on the wrong hierarchy Mar 23 15:43:08 but cleaning and stuff solved it usually Mar 23 15:43:18 you need to tell it to search the dialog, not the containing activity Mar 23 15:43:20 TachyonDev: Seems button is styled to ignore it. Just use textview Mar 23 15:43:38 interesting Mar 23 15:43:50 Anyway, usually you stretch the content area, not the padding Mar 23 15:44:24 oh, it seems you're right Mar 23 15:44:27 dialog.findViewById(R.id.patternSpeedOk); Mar 23 15:44:28 ah evancharlton is correct Mar 23 15:44:30 that seems to work :) Mar 23 15:44:46 * evancharlton puts another notch in his keyboard Mar 23 15:44:53 hehe Mar 23 15:45:13 lol Mar 23 15:45:20 well thanks :) Mar 23 15:45:31 no problem! Mar 23 15:45:34 how am I supposed to debug a service that dies but there are no exceptions or anything in the logcat? Mar 23 15:50:17 SimonVT: you think the scalable part has to be located in the content side or something? Mar 23 15:50:45 TachyonDev: Unless you want a fixed-size content area of your 9patch Mar 23 15:52:47 SimonVT: http://tachyondev.com/android/ss10.png Mar 23 15:53:23 SimonVT: okay so the top left button and the "medium text" next to it both have no gravity. The one on the left is a button, one in the middle is a text view Mar 23 15:53:39 A button has gravity Mar 23 15:53:57 SimonVT: well right, if i override the gravity, it will center it Mar 23 15:54:22 hello all Mar 23 15:54:46 SimonVT: so both the textview and button are basically ignoring the 9patch Mar 23 15:55:15 okay you know what, i bet the content has to be inside the stretchable portion Mar 23 15:55:17 Look, your 9patch content area is fixed size. It does not stretch, cus you told it not to stretch Mar 23 15:55:23 The text can't fit, so tough luck Mar 23 15:56:09 SimonVT: the only part that stretches is the orange filled in portion .. okay this makes sense now Mar 23 15:56:21 left and top defines the stretchable area Mar 23 15:56:26 Only that will stretch Mar 23 15:57:23 well right Mar 23 16:07:46 is there any reason why my custom view group is saying a child is 120px left but its actually 480px left... Mar 23 16:08:55 "left" ? Mar 23 16:09:17 getLeft() Mar 23 16:09:35 so that would be relative to its parent Mar 23 16:10:05 A{100px-B{100px-C}} Mar 23 16:10:10 C.getLeft() would be 100 Mar 23 16:10:16 even though it's 200 from the left edge of the screen Mar 23 16:10:27 my custom view is the full width of the screen Mar 23 16:10:33 so it should be relative to the screen anyway Mar 23 16:10:38 open it in hierarchyviewer and take a look Mar 23 16:10:52 i would be my car that the OS is right, and you're not :) Mar 23 16:10:54 bet* Mar 23 16:11:20 the view is the full size of the screen Mar 23 16:11:23 i would like your car now Mar 23 16:11:45 ok take a screenshot of it in hierarchyviewer Mar 23 16:11:50 i can't wrap my head around the actionbar stuff, i'm currently just using a tabhost with tabs and thought id upgrade, have it like nice ICS like using actionbarsherlock, but there is just no clear explanation, everywhere a mix of actionbar, fragments, tabs, fragmentactivities and more Mar 23 16:12:43 cant because it doesnt attach to my phone Mar 23 16:12:52 and emulator causes kernel panic on my machine Mar 23 16:15:04 i swear to god if its because the child's imageview image hasnt adjusted its bounds Mar 23 16:15:07 please please help me in locating or opening folder that contains this application in my mobile phone please http://i40.tinypic.com/t6w45w.png Mar 23 16:15:10 im going to put my keyboard through my mac Mar 23 16:17:50 hey guys Mar 23 16:20:50 christina: If this is an actual device you will need to adb push to get the information you seek. Mar 23 16:21:02 http://stackoverflow.com/questions/6410280/where-does-my-app-data-save-on-android Mar 23 16:21:32 yes it is my galaxy s2 , please tell madhatt5r what to do , i will be bvery thankful to you Mar 23 16:21:36 *very Mar 23 16:22:27 I'm not going to tell you how to do it. The link I sent above is very simple in explaining how it is done. Mar 23 16:22:29 i want to access that folder where this program is installed Mar 23 16:25:12 how to access /data without root ? Mar 23 16:25:27 oh sweet, got my first payment from RIM. $5.56 hahaha Mar 23 16:26:05 RobinB: haha Mar 23 16:26:14 christina: with a file manager like efile Mar 23 16:26:15 help Mar 23 16:26:16 pragma_: thanks for that, but the main reason I am confused about using a custom notification is that there are many different examples and so far they aren't working for me. Mar 23 16:26:30 granted i dont need efile any more now that im rooted Mar 23 16:26:32 eagles0513875 please look at screenshot please Mar 23 16:26:34 christina: what exactly are you trying to do Mar 23 16:26:41 Ankhwatcher: That was so 9 hours ago Mar 23 16:27:02 http://i40.tinypic.com/t6w45w.png i want to access that folder where this program is installed Mar 23 16:28:04 christina: you should be able to with any file manager such as the efile app Mar 23 16:28:21 pragma_: well I didn't want you and wongk to think I was ignoring you. Mar 23 16:28:43 eagles i tried Esfile manager , xplore Mar 23 16:28:44 I just had to nip out for 3 hours and drive a big loop around dublin city centre Mar 23 16:29:59 christina: try hook it upt o your computer set it to be used as usb disk and see if you can get to it that way Mar 23 16:30:15 wongk: most of the examples I have found are just using the simple notification system for non-persistent notifications. Mar 23 16:31:16 Ankhwatcher: you should try asking your question in the form: i tried this specific thing, and got this result, but i was expecting this result Mar 23 16:31:54 wongk: fair enough Mar 23 16:32:14 wongk: I just thought there were some hard and fast rules someone might be able to rattle off at me Mar 23 16:36:31 eagles , hooking up by usb means just connect it to PC right or anything else need to do in pc ? Mar 23 16:36:33 ERROR_NOT_MARKET_MANAGED Mar 23 16:36:38 or mobile Mar 23 16:36:39 how hte heck do you test LVL T_T Mar 23 16:37:00 wongk: Here is what I have in an onClick for a button: http://pastebin.com/y4GTWT4b Mar 23 16:37:37 christina: connect it to pc Mar 23 16:38:00 yeah done Mar 23 16:38:24 it aint showing :-( Mar 23 16:38:30 neither any hidden folder Mar 23 16:38:48 wongk: I don't get any error messages, but I don't get any notification either, that's why I thought it might be a manifest issue. Mar 23 16:38:49 Ankhwatcher: you don't have to address me specifically, im no notification expert :P Mar 23 16:39:38 wongk: I wish we had colour coded hashtags Mar 23 16:40:51 eagles ? Mar 23 16:41:25 christina: then i dunno :( Mar 23 16:41:29 i have my phone rooted Mar 23 16:41:40 christina: might have to unhide hidden folders on windows Mar 23 16:41:59 its already show hidden folder Mar 23 16:42:31 the i dunno how else i can help you Mar 23 16:43:07 #customnotification my notification is laid out like this: http://pastebin.com/xefmjVX8 Mar 23 16:44:45 what if i connect phone in usb debugging mode then it will show hidden files in pc ? Mar 23 16:44:52 doubt it Mar 23 16:45:47 christina eagles0513875_ well that install folder should be hidden from normal usb hosted browsing Mar 23 16:46:06 christina: I think you'll need to connect in debug mode and browse through console Mar 23 16:46:13 christina: #android-dev is the wrong channel for this Mar 23 16:46:20 christina: go to #android or #android-root please Mar 23 16:46:20 christina: this might do it for you http://adbbrowser.sourceforge.net/ Mar 23 16:46:41 Ankhwatcher: im new to all this and im rooted so i dont have that issue Mar 23 16:46:46 i do have a dev issue on the other hand Mar 23 16:47:04 for some reason eclipse isnt letting me using my physical device or not finding it that its plugged into my netbook Mar 23 16:47:04 eagles0513875_: THEN YOU MAY STAY! Mar 23 16:47:19 all its letting me do is create a virtual device which i dont want to do Mar 23 16:47:23 eagles0513875_: do you have ddms running at the same time? they fight each other. Mar 23 16:47:29 eagles0513875_: verify that adb devices shows the device too Mar 23 16:47:33 lov: how can i check Mar 23 16:47:41 eagles0513875_: er, is the "ddms" program running? Mar 23 16:47:50 also, do you have multiple copies of eclipse open? Mar 23 16:47:54 * eagles0513875_ is new to droid development Mar 23 16:47:55 (that could cause issues) Mar 23 16:47:58 ANdroid. Mar 23 16:48:02 droid is a vzw marketing term Mar 23 16:48:04 this is very strange , application name storage analyzer is able to scan and show all hidden files without root but i can only view it now copy or edit Mar 23 16:48:15 nope just rebooted the netbook Mar 23 16:48:16 :> Mar 23 16:48:17 also, you probably need to install a usb driver for the android device Mar 23 16:48:24 RobinB: it was working the other day for me Mar 23 16:48:27 yeah, has the device previously shown up? Mar 23 16:48:29 im working on ubuntu 11.10 Mar 23 16:48:30 yep Mar 23 16:48:40 eagles0513875_: sudo adb kill-server; sudo devices Mar 23 16:48:44 see if it magically appears Mar 23 16:48:54 sorry lov Mar 23 16:48:57 if it does you need to follow the ubuntu settings in d.android.com Mar 23 16:49:00 christina: go to android or android-root channel Mar 23 16:49:03 christina: no seriously, this is not the right channel for you. Mar 23 16:49:11 christina: if you are not a developer, you shouldn't be here, basically. Mar 23 16:49:13 eagles0513875_: wiggle the cable, rebooted the router? ;) Mar 23 16:49:15 ok thanks a lot for this much help bye have a good time Mar 23 16:49:27 RobinB: O_o Mar 23 16:49:40 the phone is showing its connected and that usb debugging is enabled Mar 23 16:49:55 hmm. adb devices says what? Mar 23 16:49:59 Ankhwatcher: have you considered using NotificationCompat.Builder? Mar 23 16:50:31 wongk: no, because I've never heard of it. Quick! to the google machine! Mar 23 16:50:34 RobinB: brain fart moment where do i run the adb command from i keep getting a command not found Mar 23 16:50:39 Ankhwatcher: haha Mar 23 16:51:09 eagles0513875_: the folder that it is in in the sdk Mar 23 16:51:25 its in the sdk, under platform-tools/ if i remember correctly Mar 23 16:51:41 eagles0513875_: yeah, what he said Mar 23 16:51:41 thats it thanks Nirbo Mar 23 16:51:44 just add it to you path Mar 23 16:51:54 your* Mar 23 16:52:36 ok well adb devices is seeing my htc desire hd Mar 23 16:53:33 hmm, then so should eclipse Mar 23 16:53:50 i killed the adb server closed out of eclipse Mar 23 16:53:57 started the server again and starting up ecliipse again Mar 23 16:53:58 tried restarting eclipse i presume? newest eclipse plugin? Mar 23 16:54:07 that coudl be it Mar 23 16:54:11 was there an update to the plugin ? Mar 23 16:54:20 yeah, i think so Mar 23 16:54:27 that coudl be my issue right there hehe Mar 23 16:54:36 still, it shouldn't just silently fail Mar 23 16:55:10 odd now its working Mar 23 16:55:13 from the looks of it Mar 23 16:55:23 its working now Mar 23 16:55:58 how do i get the list of network interfaces, their types and IPs via stable NDK api? Mar 23 16:56:35 eagles0513875_: did you upgrade to adt 17? maybe you upgraded and forgot to tell eclipse to check for the new version? Mar 23 16:56:47 seems like there are updates for plugins Mar 23 16:56:49 to 17 Mar 23 16:56:52 O_o odd Mar 23 16:57:17 updating now :D Mar 23 16:57:21 sounds right? 17 is the current version Mar 23 16:57:30 ya Mar 23 16:57:34 havent updated Mar 23 16:57:34 what's the minsdk to use expansion files? Mar 23 16:57:44 they also have a usable emulator now, if you can use processor virtualization Mar 23 16:57:53 ha RobinB this is an intel atom netbook Mar 23 16:58:04 with an SSD drive lol Mar 23 16:58:07 and 2gb of ram Mar 23 16:58:18 i have the hardware which is already rooted and on a custom cynaogen mod 7 Mar 23 16:58:20 yeah, well. the emulator starts in 15s on my notebook now Mar 23 16:58:28 might as well take advantage and use real hardware though Mar 23 16:58:31 sure Mar 23 16:58:34 RobinB: surely a functional emulator would take all the fun out it Mar 23 16:58:42 hehe Mar 23 16:58:51 we android devs need something to complain about, eh? Mar 23 16:58:57 i was having issues with the emulator Mar 23 16:59:05 RobinB: an excuse to buy phones more like Mar 23 16:59:10 true Mar 23 16:59:17 Ankhwatcher: i have had my desire hd for almost a year Mar 23 16:59:21 i have no slow devices anymore, which is annoying for performance testing Mar 23 16:59:27 lol Mar 23 16:59:33 * p_l ran 3.2 on vmware...outside of dealing with broken screen rotation, it was okay Mar 23 16:59:43 "yeah well it ran nice on my Galaxy Nexus" Mar 23 16:59:45 RobinB: well root and underclock the slowest thing you have... Mar 23 16:59:58 Ankhwatcher: won't help that much Mar 23 16:59:59 might just ebay some htc wildfire Mar 23 17:00:04 RobinB: that was my plan for testing Mar 23 17:00:07 lol Mar 23 17:00:16 grab something more ancient Mar 23 17:00:23 Galaxy Spica,for example ;) Mar 23 17:00:32 haha an ibm with an intel 486 :P Mar 23 17:00:35 ANCIENT ENOUGH FOR YA :p Mar 23 17:00:39 i had a nice htc magic, but some friend lost it, duh Mar 23 17:00:46 eagles0513875_: nah, that's "my first computer" kind of thing Mar 23 17:00:46 I've been hassling random people with small phones to let me run my app and see if everything fits. Mar 23 17:00:49 it doesn't Mar 23 17:01:00 haha, annoying isnt it Mar 23 17:01:03 Hey guys. What's the easiest way to render this kind of drop-down style spinner on Android 2.2 devices? I can't use an ActionBar or ActionBarSherlock, unfortunately, because this is an existing project. http://i.imgur.com/y5FeS.png Mar 23 17:01:15 Ankhwatcher: use the emulator! :D Mar 23 17:01:36 lov: but it's so slow! oh wait- Mar 23 17:01:51 Chronax: why not just make a window? Mar 23 17:01:53 Ankhwatcher: wouldnt it be better to dev it for a small screen? and isnt there a way to have it scal it up depending then on the screen size Mar 23 17:02:37 sure there is, if you're not lazy Mar 23 17:02:44 if you *were* not lazy Mar 23 17:03:02 ugh stupid plugin updates were supposed to restart eclipse but it never came back up O_o Mar 23 17:03:58 eagles0513875_: well my first port of call for testing is my HTC sensation Mar 23 17:04:19 nice dual core puppy hehe i have the desire hd which is just before it Mar 23 17:05:04 Would this channel be the place for ROM development questions or is it intended for apps only? Mar 23 17:05:05 Ankhwatcher: only difference between ur phone and mine is the processor Mar 23 17:05:10 eagles0513875_: yeah I came damn close to buying one of those. But I held out for a front facing camera Mar 23 17:05:24 Ankhwatcher: ya thats the stupid thing i hate about my desire hd Mar 23 17:05:34 Nirbo: that sounds like a question for android root i could be wrong though Mar 23 17:05:40 eagles0513875_: I never use it Mar 23 17:05:47 i woudl for skype Mar 23 17:06:19 aight, thanks - i'll try there Mar 23 17:06:27 Well, I need the little down-arrow thing too, and is there an easy way to line the window up underneath a textview or something? Mar 23 17:06:44 Chronax: are you kidding? Mar 23 17:06:46 eagles0513875_: skype was so bloated and unusable on the nexusone that I swore off it. I've never tried it on this. Mar 23 17:06:56 on the desire actually its not too bad Mar 23 17:07:11 the problem is htc adds so much crap on their phones and their android roms Mar 23 17:07:47 eagles0513875_: yes they do. I'm running a stripped down ics from. It boots so much faster without sense. Mar 23 17:07:53 rooting my phone and putting cyanogen mod7 Mar 23 17:07:54 *rom Mar 23 17:08:02 Ankhwatcher: try out cynaogen mod 7 Mar 23 17:08:12 with cyanogen im even getting better battery life Mar 23 17:08:21 Napalm, no, unfortunately. Mar 23 17:08:22 eagles0513875_: no thanks, ICS is win. Mar 23 17:08:32 whats the battery life like with ics Mar 23 17:08:36 I tried CM7 nightlies (latest) on my DHD, it worked exceptionally well and fast except for HUGE battery drain which i couldn't find a fix for. Mar 23 17:08:43 Napalm, why? Mar 23 17:08:54 Nirbo: stable mod 7 i dont have massive battery drain at all Mar 23 17:09:07 have you tried the 7.2 RC? Mar 23 17:09:07 Chronax: if you give me a few minutes i will do an example Mar 23 17:09:11 Chronax: its quite simple Mar 23 17:09:19 Nirbo: nope i probably wont as this phone i use it for daily use Mar 23 17:09:20 eagles0513875_: I don't know. I do a million things at once and have 4 batteries. I'm not the person to ask. Mar 23 17:09:23 Napalm: How do you add the image asset beneath a textview? Mar 23 17:09:32 Napalm: That would be so awesome. I'd be forever indebted to you. :) Mar 23 17:09:36 once i get a new device ill try it out Mar 23 17:09:39 beneath? Mar 23 17:09:57 Ankhwatcher: well i was chargin my htc daily prior to rooting it and putting cyanogen mod 7 now i go two to 3 days Mar 23 17:09:58 Chronax: dont you just mean change the background drawable? Mar 23 17:10:08 random question for you guys Mar 23 17:10:12 Chronax: you could try putting them both into a vertical linearlayout Mar 23 17:10:14 am i nuts for developing on a netbook Mar 23 17:10:37 Yeah, that could work, I just imagine lining it up in the lower-right-hand corner could be tricky. Mar 23 17:10:40 eagles0513875_: yes Mar 23 17:10:49 eagles0513875_: I cannot imagine you having enough horsepower to do more than thrash Mar 23 17:10:49 lov: plz elaborate :p Mar 23 17:10:53 Napalm: Anxiously awaiting your example. :) Mar 23 17:11:10 lov: its a hyperthreaded intel atom n450 64bit cpu Mar 23 17:11:18 Chronax: well relativelayout might work better for you then Mar 23 17:11:24 i threw an SSD in it as well as im running kubuntu 11.10 and not nearly maxed out on ram Mar 23 17:11:29 hmph Mar 23 17:11:36 if you have enough power then maybe it'll work for you Mar 23 17:11:46 lov: look up seamicro they are using the n550's in servers Mar 23 17:12:08 I'll take your word for it. Mar 23 17:12:33 what do you need horsepower for? You're only thumping together java packages. My issue with a netbook would be the tiny keyboard and screen. Mar 23 17:13:09 i have an asus eeepc the keyboard isnt small Mar 23 17:13:13 normal sized keys Mar 23 17:13:24 screen is only thing that bugs me but on the whole im happy Mar 23 17:13:55 unfortunately PCs aren't leased with "on-demand capacity" scheme ;) Mar 23 17:14:06 eagles0513875_: doesn't sound too bad, nice and portable. Mar 23 17:14:14 Ankhwatcher: yep its a 10 inch screen Mar 23 17:14:59 should be ready to get back to working out the hello world tutorial in a bit here Mar 23 17:15:21 okay I'm going to go figure out this NotificationCompat.Builder thing. Mar 23 17:16:01 anyway, java developement, especially with Eclipse, and even more if you use Chrome for browser... I'd start at 8G or ram :> Mar 23 17:16:15 lol Mar 23 17:16:18 i think i have you beat Mar 23 17:16:31 my imac has 16 Mar 23 17:16:32 but i use it mostly for audio production and other work Mar 23 17:16:54 eagles0513875_: I have 4G, mostly thanks to other people dropping their memory for me Mar 23 17:17:02 hehe nice Mar 23 17:17:17 16gb of ddr3 1333mhz ram from crucial wasnt expensive at all with next day delivery 105 euros Mar 23 17:17:32 bout 130 USD Mar 23 17:17:48 don't remember if I bought the upgrade to 4G or if I bummed it from someone, but before I had 2G sent to me by a friend who was switching from DDR2 to DDR3 because his old laptop died Mar 23 17:18:48 http://developer.android.com/resources/tutorials/hello-world.html <----- the Upgrade the UI to an XML Layout step one Mar 23 17:18:57 i have a linear layout am i supposed to replace the linear layout? Mar 23 17:19:59 eagles0513875_: basically, move layout definitions to XML file Mar 23 17:20:13 if you used a linear layout in *code*, write it instead in XML def. Mar 23 17:20:29 p_l: i know but i created a new project and it already had the main.xml created for me Mar 23 17:20:37 and it had the linear lay out already defined in the xml Mar 23 17:20:54 let me paste bin it Mar 23 17:20:57 eagles0513875_: then just edit that and be merry Mar 23 17:21:56 p_l: what im confused do i have to remove the linear layout and just leave text view Mar 23 17:22:00 or will i need the linear layout Mar 23 17:22:14 you won't need the linear layout Mar 23 17:22:25 ok thats what i wanted to know :) Mar 23 17:22:26 thanks Mar 23 17:22:52 My url connection isnt working on my wildfire for some reason Mar 23 17:22:55 works find on my S2 Mar 23 17:22:59 im getting 03-23 17:20:53.568: I/global(4711): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required. Mar 23 17:23:01 suggestions? Mar 23 17:23:54 odd my buffer is set to 8k Mar 23 17:23:55 any idea why if you set your date to the future (try 2013), with "use network date/time" UNchecked, the OS changes it back to 2012? Mar 23 17:24:01 but if yo uset your time back a few years, it doesnt Mar 23 17:24:06 kool p_l :D Mar 23 17:24:42 hello Mar 23 17:32:12 has anyone here had the chance to compile Android from AOSP sources? i'm a beginner trying to do so but it seems like i'm missing something here... the compilation fails. Mar 23 17:33:11 anyone ever had a problem where a device just wont show up in adb? Mar 23 17:33:17 usb debugging is enabled Mar 23 17:33:21 but it doesnt show up in mac or windows Mar 23 17:34:12 canadiancow: i had that just happen to me on linux Mar 23 17:34:17 canadiancow: try this Mar 23 17:34:21 close out of eclipse Mar 23 17:34:39 kill the adb server and start it again and load eclipse. also check if your device shows up in adb devices Mar 23 17:34:44 not eclipse Mar 23 17:35:20 well close out of what ever IDE ur using and kill and start adb again Mar 23 17:35:45 canadiancow|work: : that oddly solved my issue Mar 23 17:36:15 im not using eclipse Mar 23 17:36:18 im using adb command line Mar 23 17:36:18 canadiancow|work, Could be a faulty cable too. :) I had to modify the .inf driver file to get USB debugging to work on Windows. Mar 23 17:36:26 cables fine Mar 23 17:36:35 for the life of me I cannot get onClick and onTouch to play together nicely ... Mar 23 17:36:38 canadiancow|work: Try this. adb kill-server Mar 23 17:36:42 done that already Mar 23 17:36:44 And then, sudo ./adb start-server Mar 23 17:36:49 sudo being the important part. Mar 23 17:36:59 windows has no sudio Mar 23 17:37:02 sudo* Mar 23 17:37:05 Direct from the platform-tools folder. Mar 23 17:37:14 Well, then you probably need to update drivers or modify the .inf file. Mar 23 17:37:17 That's what I had to do. Mar 23 17:37:27 my thoughts too, try re-installing the driver - make sure its the newest Mar 23 17:39:02 i cant "install the driver" Mar 23 17:39:08 because the device isnt showing up in windows Mar 23 17:39:14 and its not working on mac either Mar 23 17:39:23 canadiancow|work: two things Mar 23 17:39:29 1) adb_usb.ini file Mar 23 17:39:35 already tried the ini Mar 23 17:39:38 2) modify the ini file for the usb driver to reference your device Mar 23 17:39:49 3) failing those, look for a "driver" from xda-devs Mar 23 17:39:49 Yeah, that's what I had to do. Mar 23 17:39:59 ignore the .dll, just use the ini Mar 23 17:40:01 I found a blog post somewhere that had some notes on modifying the .ini file in Windows. Mar 23 17:40:20 And then I used the .ini file to manually install the new device driver and everything worked. Mar 23 17:40:23 ok and what about mac Mar 23 17:40:24 Windows is a hassle. :) Mar 23 17:40:31 mac? Mar 23 17:40:32 welp. Mar 23 17:40:32 On mac, try to sudo restart-server Mar 23 17:40:38 donem that Mar 23 17:40:43 sudo ./adb start-server Mar 23 17:40:46 No dice, eh? Mar 23 17:42:36 is it possible to close the spinner dialog via code? Mar 23 17:42:56 code1: there should be a dismiss or cancel method for it... look at the api docs Mar 23 17:44:37 QubeZ: it's a ListPreference, can't see anything - will have another look Mar 23 17:45:47 so why would you dimiss a ListPreference in code? Shouldn't the user hit Back to dimiss without selection or select something from the list? Mar 23 17:46:47 oh noes i got pwned by the Play team Mar 23 17:47:00 QubeZ: i'm doing a check onclick and if it fails i want to close the dialog and present a messahe Mar 23 17:47:00 i'm going to buy an iphone Mar 23 17:47:03 If I'm using monodevelop, so I could code c# for android devices, does that mean, that I'm able to do xna? :-) Mar 23 17:47:05 mikedg: what happened? Mar 23 17:47:19 https://plus.google.com/u/0/116031914637788986927/posts/RqCisTdfMoG Mar 23 17:48:40 mikedg: I guess techincally your app could be used for bad, but thats not directly what it was intended for. Mar 23 17:48:45 not sure what Google's issue is with this Mar 23 17:49:50 if i dont get an i/o ticket this year, i'm going full apple fanboi Mar 23 17:50:00 dont do that! Mar 23 17:50:07 Android is on its way to ruling all! Mar 23 17:51:15 we'll miss you on the chat, mikedg! Mar 23 17:51:28 mikedg: join the club, it's happened to me twice Mar 23 17:51:44 hope you don't expect any further response from Google on the matter Mar 23 17:53:21 mine were IP related, though Mar 23 17:55:38 im not even seeing anythin adb-related when i look at all my connected usb devices Mar 23 17:55:39 sigh Mar 23 17:56:25 canadiancow|work: what happens if you try to "share" your sd card, does that work? Mar 23 17:56:25 head over to udev rules Mar 23 17:56:32 :P Mar 23 17:56:37 usb storage Mar 23 17:56:40 its ICS Mar 23 17:56:43 so its MTP Mar 23 17:56:45 No one even cares about my question Mar 23 17:56:57 right you are, Hausas Mar 23 17:56:58 Hausas: or no one has any idea Mar 23 17:57:04 we all code in java Mar 23 17:57:06 how do I take a video of my app running Mar 23 17:57:07 or both Mar 23 17:57:08 Hausas: we don't use C# or monodevelop Mar 23 17:57:08 maybe a few of us also use c++ Mar 23 17:57:11 and you're asking about C# Mar 23 17:57:22 you are a, shall we say, edge case Mar 23 17:57:29 hah Mar 23 17:57:35 edge case? Mar 23 17:57:37 asking about C# in here? Mar 23 17:57:38 dafuq is this? Mar 23 17:57:42 lol Mar 23 17:57:46 you shouldn't ask about C# in #C# Mar 23 17:57:47 c# is awesome friend Mar 23 17:57:48 let alone here Mar 23 17:57:52 but you're in the wrong channel Mar 23 17:57:54 is all Mar 23 17:57:56 *does the wanking jesture* Mar 23 17:57:59 c# is awesome Mar 23 17:58:00 Hausas: You are the first person to suggest (seriously, not a troll or idiot) using C# on android. Mar 23 17:58:04 or rather Mar 23 17:58:13 that's heresy Mar 23 17:58:16 you're the first person to suggest it who actually has some vague plan aside from "MAN GOOGLE SHOULD JUST MAKE IT C# INSTEAD" Mar 23 17:58:18 quite a lot of people suggested it, just not necessarily on #android-dev Mar 23 17:58:23 go to the Microsoft that bread you, spawn of satan Mar 23 17:58:49 metro is calling! Mar 23 17:58:51 basically if you're using monodevelop and it works, that's excellent, but there are 0 other people who can provide support or insight Mar 23 17:59:00 Sicp, don't tell me, there's no one in here who uses windows. Mar 23 17:59:10 that's not the point Mar 23 17:59:18 I'm not attacking Windows Mar 23 17:59:30 anyways, completely offtopic Mar 23 17:59:31 [17:58:16] go to the Microsoft that bread you, spawn of satan Mar 23 17:59:35 What was that then? Mar 23 17:59:43 Microsoft = Windows? Mar 23 17:59:47 since when Mar 23 17:59:48 yes! Mar 23 17:59:51 since ever Mar 23 17:59:51 go away Mar 23 17:59:53 plz Mar 23 18:00:04 :( Mar 23 18:00:21 sure smells like troll in here. Mar 23 18:00:27 Sicp: please don't be a jerk. Mar 23 18:00:32 * Hausas is not a troll Mar 23 18:00:37 Hausas, Sicp, please simmer down :> Mar 23 18:00:55 we all just need more idling, less chatting! Mar 23 18:01:01 agreed. Mar 23 18:01:02 ;D Mar 23 18:01:03 lies Mar 23 18:01:05 quiet time starts Mar 23 18:01:08 moar chatting Mar 23 18:01:14 Ok, so you think there is no one using monodevelop? Mar 23 18:01:15 now. Mar 23 18:01:22 ..... :> Mar 23 18:01:27 :O lov has op? Mar 23 18:01:31 Napalm: are you new? Mar 23 18:01:39 no Mar 23 18:01:44 Hausas: on this channel, probably none Mar 23 18:01:44 Hausas: I have never heard of anyone using monodevelop for android, it is very unlikely that anyone in here does it. Mar 23 18:01:51 lov: im sad you dont remember me Mar 23 18:02:02 Napalm: just saying, I've had op for at least 2 years now so.... Mar 23 18:02:05 Hausas: since MonoDroid is a commercial project, ask the vendor :) Mar 23 18:02:13 lov: i never see you with it Mar 23 18:02:20 Napalm: this is intentional. Mar 23 18:02:25 yesi know Mar 23 18:02:26 Can anyone provide me any information where could I get some support on MonoDevelop? Mar 23 18:02:49 * canadiancow|work needs +v Mar 23 18:02:55 lov: but it just seems that over the past 3 years of me being in and out of this channel i've never seen you with op before now Mar 23 18:02:56 Hausas: probably whoever makes monodevelop and/or their support channels. Mar 23 18:03:00 no one here has any information about monodevelo Mar 23 18:03:04 Ok Mar 23 18:03:08 actually Mar 23 18:03:17 have you actually DONE any android dev using this, or are you asking if it's possible? Mar 23 18:03:26 I'm just asking Mar 23 18:03:40 Hausas: then yes, look for MonoDroid. *commercial* product, though Mar 23 18:03:41 alright, it's totally possible that there's effectively no support for Mono w/ android. Mar 23 18:03:52 sans monodroid as p_l mentions Mar 23 18:03:53 i would be shocked and amazed to see C# bindings for android Mar 23 18:04:10 heey Mar 23 18:04:13 the mono guys were let go months ago Mar 23 18:04:18 someone wanna go try out http://craftstud.io/ with me? Mar 23 18:04:19 wongk: that's what monodroid is Mar 23 18:04:31 hehe im happy have a rough sketch of one of many menus for the android port of libreoffice :D Mar 23 18:04:35 p_l: wow, consider my shocked and amazed Mar 23 18:04:39 s/my/e Mar 23 18:04:42 bleh Mar 23 18:04:42 dafuq is that shit, Dany0? Mar 23 18:04:44 eagles0513875_: oh boy sounds awesome Mar 23 18:04:54 Hausas: watch your mouth you bum Mar 23 18:05:05 so speaking of C# Mar 23 18:05:05 eagles0513875_: can we have a look? Mar 23 18:05:08 Dany0: :) its goign to be great Mar 23 18:05:13 i have the apk its nothing special Mar 23 18:05:17 i remember hearing a story about a guy who walked into an interview for what he thought was a "see pound" job Mar 23 18:06:01 I believe it was on TDWTF. Mar 23 18:06:13 canadiancow|work: what does see pound mean? Mar 23 18:06:17 holy hell: http://xamarin.com/monoforandroid Mar 23 18:06:33 wongk: what Mar 23 18:06:39 what's happening Mar 23 18:07:03 crazy things, i assure you Mar 23 18:07:04 see pound. see pound run. run pound run! Mar 23 18:07:14 wow thats crazy shit Mar 23 18:08:05 Dany0: i can send you the apk that i have on my phone for you to take a look Mar 23 18:08:08 Dany0: C# is "see sharp" Mar 23 18:08:11 aint no party like an iphone party Mar 23 18:08:23 iPoon Mar 23 18:08:28 cuz an iphone party don't stop? Mar 23 18:08:44 mikedg: no party like an android party lol Mar 23 18:08:47 Well, found an IRC server with monodevelop channel, but there are only 82 people, and no one is talking.. :/ Mar 23 18:08:55 lol Mar 23 18:08:59 welcome to irc Mar 23 18:09:14 eagles0513875_: a screenshot would be better Mar 23 18:09:23 the life of an edge-caser Mar 23 18:09:42 canadiancow|work: I hate you now, C? Mar 23 18:10:02 very funny, gho5t Mar 23 18:10:08 Dany0: one problem Mar 23 18:10:16 Dany0: im using my physical phone to test not an avd Mar 23 18:10:50 eagles0513875_: you know you can take screenshots on the phone? Mar 23 18:11:06 how Mar 23 18:11:36 Hausas: strongly consider the possibility that you'll need to develop for Android in another language. Mar 23 18:11:55 There are some fine fellows here who would love to talk to you about Scala :D Mar 23 18:11:59 instead of microsoft java, oracle java Mar 23 18:12:17 not sure if oracle is better than MS... Mar 23 18:12:27 lov, I will do, in Java, though, but now, I don't have enough time to learn Java.. :/ Mar 23 18:12:29 im not assiging rank or value :P Mar 23 18:12:34 i know java :D Mar 23 18:12:41 learned it as part of my comp sci course :) Mar 23 18:12:42 jeez Hausa Mar 23 18:12:43 wait Mar 23 18:12:44 s Mar 23 18:12:46 I did C# first Mar 23 18:12:50 Java is the same thing Mar 23 18:12:52 if you know c# syntax is very similar to java Mar 23 18:12:54 as a language, and some of the tooling, I prefer .NET Mar 23 18:12:57 (and C#) Mar 23 18:12:58 j# is exactly the same as java Mar 23 18:13:01 I know, it's similar Mar 23 18:13:03 i am anti microsoft Mar 23 18:13:09 major anti microsoft here Mar 23 18:13:13 only use it for gaming Mar 23 18:13:23 other than that im mac and linux and open source all the way Mar 23 18:13:23 if I have a 9patch drawable that I stretch to an arbitrary size, is there some way to prevent the non-tiled portion from stretching? in other words I'd like the corners to stay 1:1 how they are in the image file, but it seems Android wants to stretch it based on the difference in aspect ratio between the image and the container... Mar 23 18:13:34 you're not hardcore then, gamer! Mar 23 18:13:40 ya i am wongk Mar 23 18:13:55 buy a console Mar 23 18:13:56 then Mar 23 18:13:57 take that windows box out back and smash it witha hammer at once! Mar 23 18:14:01 Hausas: C# is Java with 10 years of hindsight. So just hit your head against the wall a couple of times and start writing, and you're there. Mar 23 18:14:13 lov, :-D Mar 23 18:14:15 wongk: convert it to a linux server and setup a private cloud at my house lol Mar 23 18:14:24 seriously though can we please stop with the OS and whatever else flamewars? Mar 23 18:14:40 guys is there a way i can generate patches with eclipse so i can submit to the libreoffice mailing list so they can see what I have been doing Mar 23 18:15:58 hi all Mar 23 18:16:07 hi aLeSD :D Mar 23 18:16:20 guessing there is no way to generate a patch with eclipse and an android project? Mar 23 18:16:21 Oh god, there is so much to do in this world! And there is so little time. :-( Mar 23 18:16:39 eagles0513875_: there's nothing specific to android projects Mar 23 18:16:49 i just like stiring the fire, im sitting in front of both and windows and linux box atm :P Mar 23 18:16:52 eagles0513875_: you need to install the SCM plugin for whatever source control you're using for eclipse if you want to do patches that way Mar 23 18:16:53 never had to generate a patch before hence why i was wondering Mar 23 18:16:57 otherwise, just use the real source control tools to do it Mar 23 18:17:01 im not using source control sadly Mar 23 18:17:05 o_O Mar 23 18:17:09 then how the fuck are you going to generate a patch Mar 23 18:17:16 what are you comparing against? Mar 23 18:17:19 lol Mar 23 18:17:29 actually i coudl create a git repo on local host O_o Mar 23 18:17:32 man diff Mar 23 18:17:35 I am serching a way that a service could decide to not be killable ? Mar 23 18:17:44 and i recommend bitbucket Mar 23 18:17:51 aLeSD: have the service call setForeground Mar 23 18:17:54 aLeSD: that's as close as you'll get. Mar 23 18:18:03 Just found out what XNA stands for! :-D Mar 23 18:18:06 eagles0513875_: .... but you haven't. Mar 23 18:18:18 "XNA is Not an Acronym" Mar 23 18:18:20 :-D Mar 23 18:18:42 lov: so the service is create with bind , then the service go foreground , it's unbind and the service still lives ? Mar 23 18:18:54 aLeSD: you'll want to call startService. Mar 23 18:19:41 Hausas: XNA is not a warrior princess Mar 23 18:20:10 ha Mar 23 18:20:13 Ankhwatcher, what are you talking about? :-o Mar 23 18:20:14 mmm Mar 23 18:20:23 xna = has the crappiest audio stuff and documentation for xact3 that when i used it to dev a game i ended up coding my own play list etc from scratch in c# Mar 23 18:20:26 in bout 3 to 4 hours Mar 23 18:21:11 lov I have a strange require Mar 23 18:22:07 eagles0513875_, I still prefer xna over openGL Mar 23 18:22:26 meh try working with the audio stuff Mar 23 18:22:28 xna and ogl are different :/ Mar 23 18:22:29 xact 3 documentation is crap Mar 23 18:22:34 and virtually non existent Mar 23 18:22:41 xact3 is really hard to work with Mar 23 18:22:44 lov . I have to find a way to start a service , get the IBinder, if the service is in state myIdle and it's unbind it exits. If the service is in MyRunning and is unbind it stay alive. If it goes myIdle it exits Mar 23 18:23:12 aLeSD: your service can call startService. Mar 23 18:23:32 so in state MyIdle is exits if no binded to anyone. In MyRunning it always stay on. Mar 23 18:23:54 ah Mar 23 18:24:16 lov and how to know how many binds I have ? Mar 23 18:24:51 in the first time I was thinking in autobind from inside the service when entering in MyRunning state Mar 23 18:24:52 aLeSD: youd on't. Mar 23 18:24:58 ah Mar 23 18:25:00 I see Mar 23 18:25:02 aLeSD: bind to your service. Mar 23 18:25:06 aLeSD: give your service things to do Mar 23 18:25:12 aLeSD: when your service has somethign to do, it calls startService Mar 23 18:25:19 aLeSD: when it no longer has something to do, ti calls stopService Mar 23 18:25:22 startservice when I go Running stopService when I goIdel Mar 23 18:25:24 Isee Mar 23 18:25:31 aLeSD: if it is in the stopService state then when the last thing detaches, it stops Mar 23 18:25:42 aLeSD: it doesn't really hurt to leave it started, though. Mar 23 18:25:58 I had same idea but I choose the wrong way Mar 23 18:26:10 lov thanks Mar 23 18:30:15 Why can't I download this entire example? http://developer.android.com/resources/samples/ActionBarCompat/index.html Mar 23 18:30:18 WTF, Google? Mar 23 18:31:07 fuck that Chronax Mar 23 18:31:09 use actionbarsherlock Mar 23 18:31:10 Chronax: it's in the adk Mar 23 18:31:14 er Mar 23 18:31:15 sdk Mar 23 18:31:19 wongk: Which version? Mar 23 18:31:24 And where? Mar 23 18:31:32 under samples Mar 23 18:31:39 Yeah, there are samples folders for each API level. Mar 23 18:31:44 So which one is it packaged with? Mar 23 18:31:54 find . -name "ActionBarCompat" Mar 23 18:32:11 ABS is probably the way to go, though, i am considering porting Mar 23 18:32:16 heh Mar 23 18:32:26 Can I create an intent to activate a specific function of an activity? Mar 23 18:32:59 Heh, yeah -- that search doesn't find anything. Mar 23 18:33:08 So evidently I don't have the source sample that's required. Mar 23 18:33:18 And... naturally, Google doesn't list _which_ one it's packed under. Mar 23 18:33:35 /opt/android-sdk-update-manager/samples/android-15/ActionBarCompat Mar 23 18:33:40 Samples for an api level contains all previous samples as well Mar 23 18:34:33 orly. Mar 23 18:34:35 Thanks, SimonVT Mar 23 18:34:38 That's solid info. Mar 23 18:34:41 Undocumented anywhere. ;) Mar 23 18:34:47 Ankhwatcher: you can use different actions to call different methods Mar 23 18:36:07 canadiancow|work, Yeah, I love ABS, but I'd like to take a look at this simpler example. Mar 23 18:36:18 Everything JakeWharton touches is gold. ;) Mar 23 18:36:26 imo its not worth the simpler example Mar 23 18:36:34 EVENTUALLY, your minsdkversion is going to be 14 Mar 23 18:36:39 or more likely 15 Mar 23 18:36:46 at which point, removing ABS is trivial Mar 23 18:36:53 but switching from that simple crap to the real actionbar is going to be a pain Mar 23 18:36:58 and that simple crap is ... simple Mar 23 18:37:00 it doesnt have all the features Mar 23 18:37:13 unfortunately i didn't find out about ABS unstil i had already started using ABC :P Mar 23 18:37:19 canadiancow|work: enter happy are we Mar 23 18:37:33 sorry, im doing like 10 things right now Mar 23 18:37:58 canadiancow|work: iphone or bust! Mar 23 18:38:02 lets goto wwdc this year Mar 23 18:38:10 lol Mar 23 18:38:21 .... a colleageu of mine has his IO ticket already Mar 23 18:38:26 google gives him one for free every year Mar 23 18:38:26 :( Mar 23 18:38:55 btw, did all of you who submitted their apps for a playbook got one in the end? Mar 23 18:39:37 I did Mar 23 18:40:27 Damnit, ActionBarCompat also doesn't have an example of what I'm trying to do. A drop-down menu like this one in RDIO: http://i.imgur.com/y5FeS.png Mar 23 18:40:30 ah cool. i immediately ebayed mine Mar 23 18:40:32 Wish I could use ABS or something. Mar 23 18:40:49 so...use ABS? Mar 23 18:41:10 I can't. This is an existing project with heavily-baked "header" features already. Mar 23 18:41:22 At some point, yes. But not now. Mar 23 18:42:02 hi everyone Mar 23 18:42:17 Hi Inoperable :) Mar 23 18:42:22 anybody heard of gtk port(ed) to droid? Mar 23 18:42:45 i started to use a physical keyboard with eee pad and the terminal emulator sux Mar 23 18:42:50 so i want terminator on droid ;] Mar 23 18:43:13 porting it would be nice i think Mar 23 18:43:30 but i don't know of any gtk support on droid Mar 23 18:43:55 Inoperable: i have a friend trying to get gnome running on droid Mar 23 18:44:39 There are a few X server ports to droid Mar 23 18:44:44 eagles0513875_: he ported gtk libs? Mar 23 18:44:49 which in theory would allow a direct gtk to run Mar 23 18:44:49 i think so Inoperable Mar 23 18:44:56 hmmm Mar 23 18:45:05 dragorn: hes actually managing to get x to compile Mar 23 18:45:07 you could port the gtk draw layer into something that calls up through JNI into canvas, I would think Mar 23 18:45:30 eagles0513875_: that's not so hard, the problem is having a draw surface. You could replace android entirely, or you have to wrap it into an android app Mar 23 18:45:36 but maybe I'm stupid guys, tell me can i remap keys in droid on physical keyboard? Mar 23 18:46:04 not w/out a rooted device. Even then, not sure how you'd do it (#android-root might) Mar 23 18:46:22 dragorn: root is a must anyways Mar 23 18:46:48 Inoperable: mostly app-dev here, not root hacking, so probably won't have much in way of specific answers Mar 23 18:47:16 btw for x on droid, the new moto stuff has it built in, but not in a fashion that's amazingly useful since it's locked down Mar 23 18:47:48 i got one for free 3 years ago Mar 23 18:47:52 and early reg last year Mar 23 18:47:59 and nothing but a banned app this year Mar 23 18:48:17 huh Mar 23 18:48:42 guh Mar 23 18:48:42 dragorn: well, term emu is an app, isn't it? ;) Mar 23 18:49:40 Inoperable: yes? I don't see what your point is tho. Mar 23 18:50:41 easy, just asking about gtk Mar 23 18:51:52 yes, I just don't follow the conceptual bridge. The terminal emulator apps on android do their own drawing - connectbot uses a java vt220 emulator hacked a bit to draw to the android canvas Mar 23 18:52:13 is it possible to restart a thread after it exits or the right way is to create a new one ? Mar 23 18:52:37 Hey all, I have an Android test project that runs successfully in Eclipse, but when run from ant I get a "ClassDefNotFoundError." I'm trying to reference a class from a .jar in the tested project's "libs" directory. Any ideas? Mar 23 18:52:41 argh another failed Android interview >_> Mar 23 18:52:54 Who wants to help me start an Android college? Mar 23 18:53:06 hey guys how can i integrate a c/c++ based project such as libreoffice into the project im working on for android? Mar 23 18:53:16 eagles0513875_: NDK? Mar 23 18:53:32 TachyonDev: i know but what if i have a project though that i created with the sdk and in native java Mar 23 18:53:45 eagles0513875_: JNI Mar 23 18:53:49 ? Mar 23 18:54:02 eagles0513875_: you communicated between the Java classes and the C classes using JNI methods Mar 23 18:54:06 communicate* Mar 23 18:54:07 yeah what tachyon said. NDK+JNI. Mar 23 18:54:18 ok Mar 23 18:54:55 aLeSD: start a new one. Mar 23 18:55:04 eagles0513875_: there are some sample projects Mar 23 18:55:18 eagles0513875_: in the NDK download Mar 23 18:55:41 aLeSD: once a thread exits it's *gone* Mar 23 18:55:57 aLeSD: what are you trying to deal with / accomplish? Mar 23 19:00:35 im back! Mar 23 19:00:41 front! Mar 23 19:00:54 gasp! Mar 23 19:01:09 * TachyonDev is in a PhoneGap discussion now Mar 23 19:04:36 Anyone know why I might be getting a "ClassDefNotFoundError" when running tests? Ant seems to be unable to find the .jar library included with my tested project. Mar 23 19:05:05 if i want a ListView to consume the parent, except for a "header" and "footer" above and below it, how do I accomplish the footer? Mar 23 19:05:25 starbuckt: is the .jar in the "libs" directory? Mar 23 19:05:33 wongk: yep Mar 23 19:05:44 tests run successfully in Eclipse, ant is just doing something different Mar 23 19:05:53 wongk: use a LinearLayout to hold the header, then the listview, then the footer. Mar 23 19:06:18 ctate: what would i sue for layout_height on the listview> Mar 23 19:06:20 ? Mar 23 19:06:27 0dp Mar 23 19:06:31 And weight of whatever Mar 23 19:06:36 ahhh Mar 23 19:06:44 i still haven't gotten the whole weight thing Mar 23 19:08:16 question how do i linke one menu to another menu for instance Mar 23 19:08:20 basically how do i link stuff together Mar 23 19:12:47 * eagles0513875_ slides the room a gigantic pot of coffee Mar 23 19:13:22 I don't think your question makes a lot of sense Mar 23 19:13:53 i have one menu that i want to link eventually to a larger aspect of the application, but for now i want to link one menu to a submenu Mar 23 19:13:54 how do i do that Mar 23 19:16:12 Menu.addSubMenu or define it in xml Mar 23 19:17:19 wongk, SimonVT: hm, would you even have to use a weight? i guess so; if you just say fill_parent it'll push the footer off the bottom? Mar 23 19:17:36 ctate: Yeah, it'll push the footer off the bottom Mar 23 19:18:10 wongk: the key thing to remember about weights is that they are used to figure out how the *remaining* space is allocated, after placing/sizing of everything that has a stated width/height Mar 23 19:18:28 so in this case: the header and footer both say "okay i am layout_height=whatever, i.e. i need that space for sure" Mar 23 19:19:01 then once those are set and the layotu system knows "okay now there's the height of the parent minus the footer and minus the header, that's how much i have left to dole out. now i look at the weights to figure out who gets what." Mar 23 19:19:13 and since the llistview is all that's left, it gets it all Mar 23 19:24:25 hm, I am trying to find a good resource for UI components. I want to make some buttons for my app, but I don't like the default button Mar 23 19:25:00 I've seen examples in apps of buttons or clickable items similar to what I want Mar 23 19:25:01 SimonVT: do you have the latest repo sources? Mar 23 19:25:37 oO no Mar 23 19:25:44 :( Mar 23 19:25:58 i assume you cant browse it online anymore? Mar 23 19:26:06 since they moved it off kernel.org Mar 23 19:26:38 b0nn: they're generally 9patch images. Just make a new 9patch and set it as the background for your button. Mar 23 19:27:31 ctate: awesome, thanks Mar 23 19:29:41 lov it works . thanks Mar 23 19:29:51 lov: awesome, thanks Mar 23 19:40:26 I added a support package and now eclipse is refusing to generate R, I think my build path is screwed up somehow Mar 23 19:40:59 clean Mar 23 19:42:40 Ravenheart: I tried that before, but this time it worked. *shrug* thanks Mar 23 19:42:51 yea no probs Mar 23 19:43:07 i'm prolly the only guy here that hasn't done any android dev in the last 3 or so months :) Mar 23 19:44:14 how would I set up eclipse to automatically add the import statement of 'import android.widget.*' to a new project? Mar 23 19:44:36 Ankhwatcher: on occasion, eclipse doesn't run the precompiler, solution is clean and build until it works Mar 23 19:45:04 john_doe_jr: personally, I just type the class names and then ctrl-1 to quick fix and pull the imports in Mar 23 19:45:41 wongk: well I cleaned, built, and restarted eclipse before asking... Mar 23 19:45:51 want to have your mind blown? highlight a code block, refactor, and click extract method Mar 23 19:45:58 (right click menu) Mar 23 19:47:18 How do you get an accurate Rect of a view that has a parent like a RadioGroup? Mar 23 19:47:29 have you ever seen a device with more sensors of the same TYPE ? Mar 23 19:47:39 I can seem to get the correct Rect to do a hitTest Mar 23 19:47:43 in that case how to identify them ? Mar 23 19:48:22 my new desktop http://j.mp/GSIF4m Mar 23 19:49:00 Yes how to identify the views by an X and Y position Mar 23 19:49:48 Been trying to find a way to correctly traverse through all of the children view find the lowest one possible that is at the x and y position. Mar 23 19:50:14 I am having an issue with the coordinate values being relative to their parent. Mar 23 19:50:42 Is there any analog to Jquery Accordion in Android UI? Mar 23 19:50:44 you can read the touch dispatch code or the drag-and-drop dispatch code to see examples of how to do it Mar 23 19:51:14 Europeans: if you saw this: "Period: 3/1 - 3/31" would you think it looked f'd up? Mar 23 19:51:17 every time i see an iOS app poorly copied to android, i die a little :( Mar 23 19:51:41 1* Mar 23 19:51:41 Everytime I see almost any android app I die a little... Mar 23 19:51:49 the standards of quality are so low :<. Mar 23 19:52:11 dylukes, the gold rush is big Mar 23 19:52:13 Hello everyone! Mar 23 19:52:20 our android app is worlds above our ios or mobile web app Mar 23 19:52:27 birbeck: there can be exceptions. Mar 23 19:52:32 but the general trend is... yeah... Mar 23 19:52:46 I mean, it's the same for Windows vs OS X (and even Linux) Mar 23 19:52:57 People shit out crappy .NET apps with terrible UI's by the dozen. Mar 23 19:53:08 If there are tons of frameworks that allows you to click a button and create a native app :) Mar 23 19:53:11 There are plenty of exceptions, bt... :\ Mar 23 19:53:13 and os x apps? Mar 23 19:53:24 OS X Apps don't tend to succeed unless they're well designed >_>. Mar 23 19:53:25 canadiancow|work: that's not something I expected you to say :) Mar 23 19:53:40 ctate: That is a great idea thanks.. You wouldn't happen to know what part of the source code that is in? Mar 23 19:53:41 Eh.... Mar 23 19:53:41 evancharlton: o.O Mar 23 19:53:48 Are there any good resources for learning how to property create your layout xml? It seems to be kicking my ass. :) Mar 23 19:53:49 evancharlton: he says that on a daily basis Mar 23 19:53:50 birbeck: a lot of people have boycotted Textual 2.1, Mar 23 19:53:53 just because it looks shitty. Mar 23 19:53:58 Compared to Textual 2.0 that is. Mar 23 19:54:08 dylukes: i have no idea what that is Mar 23 19:54:17 http://codeux.com/textual/private/images/textualScreenshotNew.png Mar 23 19:54:19 new ui Mar 23 19:54:25 old ui: http://cl.ly/FHD6 Mar 23 19:54:36 how does one integrate an app with the ndk into a java based ui? Mar 23 19:54:50 meh, mac software Mar 23 19:54:54 i dont really care Mar 23 19:54:55 mac ftw Mar 23 19:55:05 *shrug w/e* Mar 23 19:55:14 eagles0513875_: There are a couple things you can do. Mar 23 19:55:16 my mac runs ubuntu Mar 23 19:55:24 (mine too!) Mar 23 19:55:28 You either have to write bindings. Mar 23 19:55:33 And call them from the Java app, or,... Mar 23 19:55:37 only reason i have a mac now is because i had to work on ios for a few months Mar 23 19:55:40 you can write the whole main loop in NDK stuff. Mar 23 19:55:46 (in C) Mar 23 19:55:54 But, it's generally unpleasant and you want to avoid it unless you're writing a game. Mar 23 19:56:07 Because it makes doing *everything* hard. Mar 23 19:56:33 dylukes: reason im asking is i am working on the UI for libreoffice android port Mar 23 19:56:52 I still can't get any notifications to show at all. Does using FEATURE_NO_TITLE supress them? Mar 23 19:57:49 hi, (where/how exactly the information in CallLog is populated ??) Mar 23 19:59:12 Are there any good resources for learning how to property create your layout xml? Maybe something that compares the layout elements to similar html concepts? Or is that not how it works? Mar 23 20:00:18 ElevenSquared: android ui and html ui really dont have much resemblance Mar 23 20:01:05 ElevenSquared: look at linear and relative layouts on d.android.com Mar 23 20:01:38 There's the hello views tutorials on there as well which explains a few of the views Mar 23 20:02:22 I've already read through http://developer.android.com/guide/topics/ui/layout-objects.html .. I havent tried the tutorials yet, maybe that will help me out. Thanks! Mar 23 20:02:47 yeah, you just gotta play around with them until you get the concepts Mar 23 20:03:10 Man can't seem to find anything inside the source code.. Mar 23 20:03:21 some view attributes are closely related to css, but android xml != html + css Mar 23 20:05:46 If anyone would like to help me with an ImageView and orientation issue, I'd appreciate it. Mar 23 20:06:53 I'm using different portrait- and landscape-layout, which means the ImageView moves in the Activity on rotation. Mar 23 20:08:03 In this ImageView I load a bitmap. My issue here is that when I rotate from landscape to portrait, the quality of the bitmap is visibly worse. Mar 23 20:09:36 At the moment, I've added configChange="orientation" to the AndroidManifest Mar 23 20:11:33 hey guys how do i link a main menu to a different menu that i created? Mar 23 20:12:08 I do scaling calculation of the bitmap to put in the ImageView so it doesn't take unnecessary memory when drawing. Mar 23 20:14:10 This works when I first launch the Activity, but as soon as I rotate the device, the ImageView has no size any more. Mar 23 20:17:19 im not sold on the "footer" with the button at the bottom: http://imagebin.org/204876, suggestions for improvement welcome! =] Mar 23 20:17:44 4G eh? Mar 23 20:17:53 fo sho! Mar 23 20:22:22 wongk: maybe like appmonger does it? (it also has the functionality of what you're trying to do by the looks of it) Mar 23 20:22:35 appmonger is very similar Mar 23 20:22:47 he uses "hardcoded" period options, though Mar 23 20:23:27 wongk: thanks for introduction to imagebin =) Mar 23 20:23:35 np :P Mar 23 20:24:08 ill go with this for now and see what my users think, i guess Mar 23 20:24:40 yeah. what does your app do that appmonger doesnt? Mar 23 20:25:08 i couldn't say for sure, i've never actually used appmonger, just seen the market listing Mar 23 20:25:23 ah right. i use it loads, and like it Mar 23 20:25:38 i found that app when i was about half way done with this one :P Mar 23 20:25:42 what would be cool to have would be a predictive income per day/week/month kinda thing Mar 23 20:25:58 taking into account the previous days/weeks/months and the performance in this timeframe so far Mar 23 20:26:04 i'd probably pay for that Mar 23 20:26:31 forecasting, interesting Mar 23 20:27:00 i have some more basics i need to implement first though =] Mar 23 20:27:02 also, one overview screen, where i can see how much i earned in the last d/w/m, yesterday, and a tendency Mar 23 20:27:06 haha, ok Mar 23 20:27:27 my homescreen widgets provide that Mar 23 20:41:12 RobinB: heres something a little different: http://imagebin.org/204882 Mar 23 20:41:27 which do you prefer Mar 23 20:42:26 yeah, that's not bad Mar 23 20:42:49 ship it! Mar 23 20:43:08 the colors are very washed out, it looks much better on a device Mar 23 20:43:16 the list content is colored Mar 23 20:43:25 do you allow selection by two dates only, or do you have things like "last month", yesterday and so on as pre-set values too? Mar 23 20:43:43 yeah, i think i can see the colors Mar 23 20:44:02 well, i don't have any of those, but this is the scheme i was going to go with Mar 23 20:44:26 for the widget i have today, yesterday, this week, and this month, though Mar 23 20:44:30 also, are you getting the date display style from the system? it's quite confusing to have mm/dd/yy for europeans Mar 23 20:44:36 yes Mar 23 20:44:44 cool Mar 23 20:45:15 so you would prefer to pick a preset period from a list than to have the extra flexibility? Mar 23 20:46:20 hmm, tough question. i'd like to have both, but most of the time i just check yesterday, last month, and everything Mar 23 20:46:38 sometimes also last 7/30/90 days in graph form that appmonger provides Mar 23 20:46:53 but you probably shouldn't duplicate too much behaviour :) Mar 23 20:47:34 i don't know if i am going to go the graph route yet or not Mar 23 20:47:40 i have a list of other things to hit first Mar 23 20:47:58 this is as much a learning exercise for me as it is anything Mar 23 20:48:34 sure Mar 23 20:55:59 searching on Google Play is so annoying Mar 23 20:56:14 my app is uniquely named but it will not return results unless the string contains no spaces Mar 23 20:56:51 "to do mapr" (no results).. have to go the long way through the list and its like 80th. "todomapr" works. Mar 23 21:00:32 do you have mapr in your description? Mar 23 21:01:01 popularity has a large influence on search results Mar 23 21:01:09 Yup, To Do Mapr is mentioned several times in the description. Mar 23 21:01:12 just put all the possible search strings somewhere in your description but NOT as a keyword list Mar 23 21:01:30 RobinB: why not a a keyword list? Mar 23 21:01:37 mh, maybe it takes a couple hours to refresh the search, in case you only added it recently Mar 23 21:01:50 RobinB: its been on the market for 10 days Mar 23 21:02:01 Add a sentence "If you like X TODO, Y TODO, and Z TODO, then try To-do Mapr!" Mar 23 21:02:09 that way you get traffic for searches on x,y,z Mar 23 21:02:32 is the search smart enough to filter out things after Keywords: ... Mar 23 21:03:10 readme: tried your recommendation Mar 23 21:03:15 no luck? Mar 23 21:03:21 I even put the Title as: To Do Mapr: The Task Mapper Mar 23 21:03:35 readme: sorry, i mean that I just added it... will have to wait a lil while for the dscription to update on Google Play Mar 23 21:03:42 oh cool Mar 23 21:03:42 wongk: no, but it's discouraged. some google developer evangelists say your ranking might be punished if it's discovered Mar 23 21:03:59 readme: good recommendation, thanks. I added: If you like Any.DO TODO, Astrid TODO then try To-Do Mapr. Mar 23 21:04:00 it seems like the most efficient means to an end Mar 23 21:04:08 QubeZ: your app is pretty unique, have you tried pitching top tech blogs and news papers? Mar 23 21:04:09 kind of silly to discourage it Mar 23 21:04:16 If I have a weigtsum of 100 and I distribute that to two linearlayouts, 10 to the first and 90 to the other and set the layout_width to match_parent, why does it behave opposite to how it should (using 0dip to layout_width works as expected) ? Mar 23 21:04:23 write emails to bloggers and journalists asking them to cover it Mar 23 21:04:29 wongk: no, it's good. discourages spammy descriptions Mar 23 21:04:33 i know that they will ask you to remove /unrelated/ keywords, though Mar 23 21:04:34 readme: I haven't, every time I try to get it reviewed... they want $200 to review it sites like AndroiTapp. Mar 23 21:04:43 QubeZ: haha, don't pay a dime Mar 23 21:04:43 I ended up donating some money to DroidTweak.com to review it Mar 23 21:04:46 QubeZ: try tech crunch Mar 23 21:04:55 tell them it will be exclusive Mar 23 21:05:16 even try posting it on news.ycombinator.com and asking for feedback as a ploy to get people to try it Mar 23 21:05:17 readme: will do, I'll try to reach bloggers and journalists. My sister is quite the socialite so she may be able to push this out better than I could. Mar 23 21:05:30 readme: i should hire you as my PR guy lol Mar 23 21:05:38 did you post it on the android related subreddits on reddit.com? Mar 23 21:05:39 pay-for-review? yikes, that's a pretty naked scam. Mar 23 21:06:17 Yup. Its how they make a living, lol. No reviews, no job. And they want you to give them extra money, for them earning money? Sure that makes sense Mar 23 21:06:23 readme: now that people are using it (200 or so), I have gotten bug reports from ACRA so I've been fixing things. Now it looks like its settled down and I've nipped most of the major issues (since its a worldwide app) Mar 23 21:06:58 ctate: haha i know right -- but I did donate $15 to droidtweak to review it. Maybe I shouldn't have... I'll explore the options that readme posted. Mar 23 21:07:33 check the page rank of these blogs you're begging to review you Mar 23 21:07:39 before you kiss their arses Mar 23 21:07:43 next month the web service goes live and real-time task sharing/delegation. w00t Mar 23 21:11:15 hi guys, I wrote an android application that does some, basically html scraping. It works fine on the emulator, but not on my phone. I believe this is because the website I'm accessing has a mobile version which my 'real' phone is accessing, while my laptop (and thus the emulator) is accessing the 'full' site. Any tips to get my code to ALWAYS access the full site? Mar 23 21:11:55 set your User-Agent Mar 23 21:11:58 header Mar 23 21:12:07 how do I do that? Mar 23 21:12:19 what are you using for http communication? Mar 23 21:12:29 um, a URL Object I believe Mar 23 21:12:36 then i don't know Mar 23 21:12:46 i use the apache classes Mar 23 21:15:03 An interesting study has been performed which found that advertisements in Android applications are a huge battery drain - they account for up to 75% of an application's battery usage. Mar 23 21:15:10 http://www.osnews.com/story/25727/App_ads_suck_battery_does_that_make_it_okay_to_block_them_ Mar 23 21:15:58 An interesting study has been performed which found that users choose battery drain over paying a few bucks to the ad-free version Mar 23 21:16:06 haha Mar 23 21:16:22 hah! Mar 23 21:16:48 i think i am misunderstanding the activity lifecycle, I have this activity that starts another activity, eventually that new activity gets a this.finish() called on it which brings back the previous activity to the screen Mar 23 21:16:58 that should force onResume to be called for the previous activity Mar 23 21:16:59 right? Mar 23 21:17:04 yes Mar 23 21:17:10 i have a log print out in my onresume Mar 23 21:17:11 it's amazing how entitled some users feel after paying $2 for an app Mar 23 21:17:13 and i dont see it Mar 23 21:17:21 wongk: they have the right to be, imo Mar 23 21:17:31 wongk: if it was free, then perhaps they shouldn't be Mar 23 21:17:35 i guess we all have our own opinions =] Mar 23 21:17:45 * mgj agrees with Snuupy Mar 23 21:17:52 SimonVT: i don't have an @Override though, do i need that Mar 23 21:17:55 the guys whining endlessly about the free apps are worse Mar 23 21:17:56 public void onResume(Bundle savedInstanceState){ Mar 23 21:17:56 super.onResume(); Mar 23 21:17:57 but if it's paid, imo it's the devs responsibility to try to make them happy Mar 23 21:18:00 is what my onresume looks like Mar 23 21:18:06 dandaman1: onResume does not have any parameters Mar 23 21:18:06 mgj: high five :3 Mar 23 21:18:23 And yes, use Override Mar 23 21:18:29 SimonVT: k, ty, lemme try Mar 23 21:18:30 It's exactly for spotting errors like this Mar 23 21:18:42 @Override would tell you that there is no method with that fingerprint Mar 23 21:18:42 our customers that pay tens of thousands for the applications that my company develops feel less entitles than most androud users, it seems Mar 23 21:18:53 ahhh i see Mar 23 21:19:54 wongk, you cannot really compare the two.... Mar 23 21:20:00 why not? Mar 23 21:20:34 wongk: one is developer, other is consumer Mar 23 21:20:42 they've probably never touched code before Mar 23 21:20:47 one is a professional buying stuff he needs to be able to do his job, the other is looking for something to do with his spare time. Mar 23 21:20:48 huh? Mar 23 21:20:49 they don't appreciate how hard it is to code this stuff Mar 23 21:21:12 Company money vs personal money Mar 23 21:21:47 company money carries a lot more clout than personal money Mar 23 21:21:57 Sure Mar 23 21:22:04 but personal money carries a lot more emotions Mar 23 21:22:12 mgj: +1 Mar 23 21:22:14 It's a few bucks.. Mar 23 21:22:19 i'm not saying they shouldn't be happy, but some them expect you to cross your eyes and bend over backwards Mar 23 21:22:26 SimonVT: doesn't matter, they expect your app to work flawlessly Mar 23 21:22:33 there's a lack of realism Mar 23 21:22:35 It's a few bucks.. Mar 23 21:22:41 what color is the bikeshed today Mar 23 21:22:45 That's my only argument Mar 23 21:22:49 It's nothing.. Mar 23 21:22:52 doesn't matter what amount of $ it is, but people assume your app should work Mar 23 21:23:01 wongk, welcome to human interaction 101: People suck. I dont agree with that, ofcourse, but i can somewhat understand where they are coming from Mar 23 21:23:15 they assume that as they have provided value to you (no matter how little), you should provide them service (in this case, your app) Mar 23 21:24:11 Snuupy: that's not entirely true. you get less harsh feedback the more expensive your app is Mar 23 21:24:23 it's still entertaining Mar 23 21:24:29 RobinB: less people buy it, lol Mar 23 21:24:35 RobinB: less chance of a demanding person Mar 23 21:24:52 yep, also profit goes up, to a certain sweet spot Mar 23 21:24:59 Users are spoiled with free apps. Mar 23 21:25:07 RobinB: then it goes back down. :P Mar 23 21:25:12 for my game it's $3 / £2 / Eur2 Mar 23 21:25:18 QubeZ: but I love them. It's the people who ruin things that suck Mar 23 21:25:26 Unfortunately, thats why we decided to go the free route and try to monetize via web services and other premium services outside of Google Play. Mar 23 21:25:27 SimonVT: worked, thank you! Mar 23 21:25:37 Snuupy: *nod* Mar 23 21:25:39 QubeZ: sorta like cloud browse? Mar 23 21:25:54 I dont know what that is, but sure. Mar 23 21:26:07 google it up Mar 23 21:27:05 RobinB: whats your game? Mar 23 21:27:13 2 player reactor Mar 23 21:27:40 it's ancient now, first published in aug 2009 Mar 23 21:27:50 still in the top100 in many countries though, so i can't complain Mar 23 21:28:23 cool, 2 player on same device is something I am fond of Mar 23 21:28:32 yeah, it's a nice niche Mar 23 21:28:33 lots of downloads! how did you do it? Mar 23 21:28:49 organic growth. it was easy in the beginning, not a lot of apps Mar 23 21:28:55 then i got featured back in 2010 Mar 23 21:29:15 since then it's smooth sailing, as long as you manage to stay in the top100, people find you just by browsing Mar 23 21:29:56 also, having loads of translations help Mar 23 21:30:06 i've got over 20 languages now, crowdsourced the translations Mar 23 21:30:51 my game won't have many words in it, so I think I can cover that Mar 23 21:31:10 let me know if you need a german translation, haha Mar 23 21:31:27 thanks for the offer :) Mar 23 21:31:34 I will take you up on it Mar 23 21:31:45 sure, happy to help Mar 23 21:31:53 first I need to put a word in my game so it's translatable Mar 23 21:32:16 well, if it's language free it's even better. then you just need a nice market description Mar 23 21:32:32 are those also i18nable? Mar 23 21:32:45 yeah Mar 23 21:33:07 also the market app name Mar 23 21:33:33 thanks, that was insightful Mar 23 21:35:09 my pleasure :) Mar 23 21:37:14 Hey all, have a quick question. Running into tons of problems trying to an ftp upload and I cant figure out why. I have read/write/execute permissions to the server when I connect through terminal Mar 23 21:37:48 but when I try to upload via android, I'm running into a 550 file or directory does not exist error Mar 23 21:38:32 heres the gist https://gist.github.com/2175334 Mar 23 21:39:16 StlTenny: values of sourcePath and destDir? Mar 23 21:40:32 also value of "destination" if lines 16-18 are hit (because destdir ends with '/') Mar 23 21:40:43 those values would help Mar 23 21:41:26 destDir — "/home/public/android/" chmod 777. sourcepath sdcard/DCIM/Camera/2012-03-23-20120312_122933.jpg Mar 23 21:41:55 try putting '/' at the beginning of source path? Mar 23 21:42:08 that is a relative path, for it to work CWD must be '/' Mar 23 21:42:19 put / and make it absolute, and it works anywhere Mar 23 21:42:29 tried with / at the beginning. tried without. with and the end. without. All 4 combinations Mar 23 21:42:40 you're sure that exists? Mar 23 21:42:51 now, lets get the value of "destination" Mar 23 21:42:58 yeah, I even touched a file in the directory to make sure Mar 23 21:43:00 line 16-19 Mar 23 21:43:47 because destination is definitely getting changed, since destDir ends with '/' Mar 23 21:44:02 dest dir before 16 - /home/public/android/ after /home/public/android/2012-03-23-20120312_122933.jpg Mar 23 21:44:22 does /home/public/android exist on the server? Mar 23 21:44:54 and is it writable? Mar 23 21:45:27 ls -l /home/public/android for me and let us know what user you are logging in as Mar 23 21:45:35 and what groups that user is in Mar 23 21:46:07 http://imgur.com/Oxcpj . logged in with the same exact credentials Mar 23 21:46:38 so a ftp -l username -p password ftp.myserver.com where username/password are the exact values in the app Mar 23 21:47:36 StlTenny: maybe the source of check() would help Mar 23 21:48:42 added to the gist as well Mar 23 21:48:42 https://gist.github.com/2175334 Mar 23 21:49:08 command line ftp works for this? Mar 23 21:49:10 you've tested? Mar 23 21:49:27 I have, I'll triple check to make sure Mar 23 21:51:49 Hmm…you might be on to something now actually. Because I'm getting the same permission error from local ftp now Mar 23 21:55:32 looking in to that now, haven't disappeared just yet Mar 23 21:55:51 what is the user id of the user 'bargolf' Mar 23 21:56:00 returned by the id command Mar 23 21:56:54 shouldn't matter, actually Mar 23 21:57:00 hm Mar 23 21:57:40 Yea, you're definitely on to something as I'm getting the error locally now as well. So it doesn't seem to be a java issue Mar 23 22:00:32 Is there any way for me to anchor the android:background in a