**** BEGIN LOGGING AT Fri May 25 02:59:59 2012 May 25 03:07:44 When you open a connection from an app, and it reads the page, does it void the html? May 25 03:08:32 Like does it just view the source, rather than how it is displayed? May 25 03:10:55 void? validate? May 25 03:11:02 and what sort of connection are you talking about? May 25 03:11:33 I'm using a BufferedReader to few a page's content May 25 03:11:37 if you read a stream of data over HTTP - it's exactly, that, a stream of data May 25 03:11:44 And using readLine() and assigning it to a variable according to each line May 25 03:11:46 if you load stuff into a webview, it'll get parsed and rendered May 25 03:11:55 view* not few May 25 03:12:53 this is my code http://pastebin.com/d0uuZgQp May 25 03:13:08 what's it doing is just assigning the whole page's content to array index 0 May 25 03:13:28 it's reading the page's source code, rather than seeing each value on each line May 25 03:14:11 then no, nothing will know or care that it's HTML, or how well-formed it is May 25 03:14:26 The web page looks like http://puu.sh/wD3B May 25 03:28:15 Got it May 25 03:28:20 Had to use \n instead of
May 25 03:39:18 you know what, guys? May 25 03:39:20 i never got my beer May 25 03:43:25 there we go. all is now right with the world. May 25 03:44:00 Toast t=Toast.makeToast(Toast.WHOLEMEAL) ; t.addButter(); May 25 03:44:52 t.addSpread(new Vegemite()); May 25 03:45:45 throw new Toast.VomitException(); May 25 03:45:51 oi! May 25 03:46:50 catch (VomitException e) { t.addVomit(e); t.serve(); } May 25 03:47:02 bash.org! May 25 03:47:04 finally (poop()); May 25 03:48:18 So I have a list view May 25 03:48:33 And for the actualy lists within the view (the array) I get the values from a database. May 25 03:48:35 T-Dub|DlolPics: are you having vomit exceptions too ? May 25 03:48:47 Therefore it takes time to retreave them, so the app seems to "freeze" or be blank. May 25 03:49:04 So I thought hey I can just show a layout with just a loading bar it on start, get the values, then show the listview. May 25 03:49:17 However I get an error because you can't do setContentView within a listView May 25 03:49:21 listViewActivity* May 25 03:49:24 t.nom(); May 25 03:49:28 So how could I go about doing this? May 25 03:49:41 dialog fragment May 25 03:50:09 load the data in an asynctask, show a progress dialog? May 25 03:50:26 that'd be the pretty standard way to do it. the way Leeds said. May 25 03:50:42 been learning about all that meself. May 25 03:52:16 go google: do a barrel roll May 25 03:52:21 if you never have before May 25 03:53:23 http://www.theverge.com/2012/5/24/3042441/hp-enyo-google May 25 03:56:15 There May 25 03:56:16 I got it May 25 03:56:52 I put the progress bar in the activity that starts my listView activity, and I just set the progress bar to invisible on start. Right before I open the activity I set it to visible, and then in the onpause I set it to invisible. May 25 03:56:54 Win May 25 03:57:13 ...and why not use an asynctask again? May 25 03:57:38 Mostly because I don't know how. I attempted to learn but I got completely lost. May 25 03:57:47 This is my first application ever, and beyond that I'm new to java. May 25 03:57:56 Not the most knowledgeable :s May 25 03:57:58 here's a test. while it's loading up (you can see the progress dialog) turn your phone orientation to landscape. May 25 03:58:24 keep an eye on LogCat and watch hilarity ensue May 25 03:58:25 T-Dub|DlolPics: how are you binding the data to the listview? May 25 03:58:27 I have my application to be portrait no matter what May 25 03:58:47 I set my array to data from a url connection May 25 03:58:57 readme, are you experiencing deja vu from me a week ago? May 25 03:59:13 no May 25 03:59:31 i was trying pretty much the same thing T-Dub|DlolPics is doing. May 25 03:59:33 Like this readme http://pastebin.com/RZhb5brj May 25 03:59:39 T-Dub|DlolPics: you need to take b1n0ry's suggestion on the AsyncTask. May 25 04:00:17 4 application rewrites and several gray hairs later... i'm now using an asynctask and a persistent cache. May 25 04:00:19 oh, you're not using a database. you're accessing something over the web, that then accesses a database. I see. May 25 04:00:40 T-Dub|DlolPics: if you run that code on 4.0 it might not even work, network on main thread exception. May 25 04:00:55 excellent point, readme May 25 04:00:56 I can test that tomorrow on my tablet. May 25 04:01:19 can't do network communications on the main thread. either you get an exception or it just plain doesn't work. that's the case on my 3 tablet. May 25 04:01:19 I tried connecting to my database directly but failed miserably. Was unable to connect :s May 25 04:01:23 just dosen't work. May 25 04:01:32 T-Dub|DlolPics: don't bother. that code need to go on a thread, preferably in an asynctask May 25 04:01:32 Hmm May 25 04:01:35 just rtfm and do it already May 25 04:01:37 Let me go get my ics set May 25 04:01:56 it's not nearly as hard as you think. May 25 04:02:55 i use my asynctask to fetch a json call and drop it into a local cache file. then in my main thread, i check for the existance of a cache file and load the content into a simpleadapter for my listview. if the cache file exists, i just don't call the asynctask to load the json (though i do provide the user a 'refresh' button) May 25 04:03:24 that way, i'm not doing network on the main thread. and i'm not modifying the adapter from my async thread. May 25 04:03:37 don't know if it's the -best- way, but it's been working beautifully May 25 04:04:44 not sure what you guys mean May 25 04:04:48 works just fine on my tablet May 25 04:04:53 i think its ics, set May 25 04:05:14 4.0.3 May 25 04:05:21 you watching logcat as it's running? May 25 04:05:21 acer transformer May 25 04:05:35 let me do it now May 25 04:05:40 and are you printing stack traces to logcat? May 25 04:06:14 no May 25 04:06:22 in the code you posted on pastebin, you won't see a stack trace if there's an exception since your catch() { } doesn't do anything May 25 04:06:33 it works though May 25 04:06:40 it didn't do a catch because it exicuted May 25 04:06:43 i have all my values May 25 04:07:15 http://puu.sh/wDxB May 25 04:07:17 worked just fine May 25 04:08:11 app run time is 5 days? May 25 04:08:20 is that cumulative May 25 04:08:26 i added bogus numbers in my database just to have values May 25 04:08:39 most of those numbers are fake May 25 04:08:43 okie dokie. i'm new to this. i just know networking on main thread isn't good/consistent/working on api 3 or 4. May 25 04:08:47 it updates now but after i had random numbers in there May 25 04:09:02 network call on the main thread has always been wrong May 25 04:09:16 I understand it is bad, and I should change it, just letting you know it's working for me so I don't know May 25 04:09:17 wrong, but technically 'worked' prior to 3 May 25 04:09:31 T-Dub|DlolPics, planning on distributing your app? May 25 04:09:33 guys i have simple about page with three text vies but two of them are not shown why? http://pastebin.com/UjtL6vUY May 25 04:09:36 3? May 25 04:09:38 Yes b1n0ry. May 25 04:09:38 that sounds a bit low May 25 04:09:46 I thought it was a higher api level that introduced this stuff May 25 04:09:55 xmlns:android="http://schemas.android.com/apk/res/android" May 25 04:10:01 android:layout_height="fill_parent" May 25 04:10:06 That is only needed on the second line of your page May 25 04:10:06 Trudko: ^ May 25 04:10:10 change it to wrap_content May 25 04:10:11 But that would be the reason ^ May 25 04:10:37 T-Dub|DlolPics, just remember because it works on *your* tablet doesn't mean, if it's non-complaint, it will work on the rest of your audience May 25 04:10:38 also you don't need xmlns on each element, only on the root. May 25 04:10:54 Very true b1n0ry. Hopefully people like you would be willing to test it :). May 25 04:11:07 I will say it isn't created for tablets though, so it looks like shit haha May 25 04:11:17 Not very high resolution pictures. May 25 04:11:35 I have a d1, dx2 and acer transformer I've been testing on. Works on all of those, so far. May 25 04:11:40 my droid x has been running my old code fine... throw it on my zte tablet and exceptions out the wazoo May 25 04:11:51 Haha May 25 04:11:53 That sucks May 25 04:11:55 T-Dub|DlolPics, readme not sure how would chnage llool like what do you mean by second life of your page May 25 04:12:00 by the third rewrite, it was fine on the zte and not the droid x. May 25 04:12:13 i've finally found a solution that's working well on both. May 25 04:12:14 Ignore what I said, what readme said is the reason it isn't showing. May 25 04:12:17 Sec. May 25 04:12:53 * b1n0ry is listening to daft punk - around the world - on pandora. May 25 04:13:33 i remember back in the day, people used to have scripts that flooded IRC channels with what music they were listening to... ahh memories May 25 04:13:34 Trudko http://pastebin.com/WpnbGv2b May 25 04:13:51 it's the internet equivalent of blasting your stereo with your windows down. May 25 04:13:57 nobody cares what crap you listen to. May 25 04:14:04 Notice lines 11, 18, 26 May 25 04:14:13 25* not 26 May 25 04:14:17 unless you're really hot, then i'll turn my head to look at ya ;) May 25 04:14:52 T-Dub|DlolPics, thx but that paste did not work for me May 25 04:15:02 Um May 25 04:15:06 Oh what api? May 25 04:15:14 match_parrent might be to new for your api May 25 04:15:29 change the match_parrent back to fill_parrent May 25 04:15:40 If you have a older api, not sure where that was changed at. May 25 04:16:01 fill_parent ... match_parent May 25 04:16:25 oh fail May 25 04:16:44 I had it right in the pastie May 25 04:16:45 i totally read that as parrot May 25 04:17:19 pasties rule May 25 04:17:34 pasties or pastebin May 25 04:17:34 T-Dub|DlolPics: you sure did :P May 25 04:18:34 If you have an array, lets say with 13 indexs May 25 04:18:43 nvm May 25 04:18:49 Asnwered my own question just thinking about it May 25 04:18:55 Trudko: i told you exactly what to do to fix the layout May 25 04:19:00 what is this nonsense about second life? May 25 04:19:14 How do listVeiws update? If I set a listView to lets says the array named hi May 25 04:19:20 And then I change the values of the array hi May 25 04:19:29 Will the listView automatically update, or do I have to manually update it? May 25 04:19:50 check out the hello listview tutorial May 25 04:19:53 readme, and I am not sure what exactly you mean May 25 04:19:56 and the google i/o talk on listviews May 25 04:20:05 Trudko: you're using fill_parent. that takes up the whole size of the parent view. May 25 04:20:11 switch to wrap_content and you will see all three May 25 04:20:19 and get rid of the frivolous xmlns on each element May 25 04:20:57 http://www.youtube.com/watch?v=wDBM6wVEO70 May 25 04:21:05 http://developer.android.com/guide/tutorials/views/hello-listview.html May 25 04:21:49 to get the updates to the listview, you just call notifyDataSetChanged() on the adapter. May 25 04:24:38 ah May 25 04:24:45 Ya I found the hello world May 25 04:24:51 And it doesn't say anything about updating May 25 04:24:51 thanks May 25 04:25:46 readme, i did use this http://pastebin.com/WpnbGv2b but still does not work http://pastebin.com/WpnbGv2b May 25 04:26:48 Trudko: use android:orientation="vertical" on the LinearLayout too May 25 04:27:08 change the match_parent to fill_parent May 25 04:27:20 You are probably using a old api that doesn't support match_parent May 25 04:27:36 readme, I tried to pop up notifyDataSetChanged(); and it doesn't recognize it as a method? May 25 04:27:39 Am I missing something May 25 04:27:46 T-Dub|DlolPics: call it on the adapter May 25 04:28:12 Trudko: it is good to take T-Dub|DlolPics's suggestion, but the actual reason you don't see the views is because they are aligned horizontally and they have fill_parent set on the width May 25 04:28:18 read ok that worked May 25 04:28:19 Now sure how you do that. Like setListAdapter(notifyDataSetChanged()); May 25 04:28:21 so the first one takes up the whole screen and pushes the other two off. May 25 04:28:26 thx May 25 04:28:40 T-Dub|DlolPics: myAdapter.notifyDataSetChanged() May 25 04:30:39 I don't have an adapter, I think (sorry very new to listView, and honestly speaking not sure what an adapter is). Hmm, not sure how to set it up that way. I'm doing: http://pastebin.com/sXb4vF7H May 25 04:31:58 setListAdapter( new ArrayAdapter(this, R.layout.appstats_single_item, statsArray)); May 25 04:32:03 looks like an adapter to me May 25 04:32:10 Oh May 25 04:32:11 I see May 25 04:32:11 keep a reference to it May 25 04:32:25 so I should do ArrayAdapter hi = that May 25 04:32:32 And then do setListAdapter(hi) May 25 04:32:46 yes, except with a name that isn't lousy and it should be declared as an instance level variable. May 25 04:32:58 Instance level variable? May 25 04:33:04 lmgtfy May 25 04:33:16 Oh shit, awesome site May 25 04:33:21 http://www.mindview.net/Books/TIJ/ May 25 04:33:39 oh got it May 25 04:33:43 inside class outside method May 25 04:34:03 my array is declared inside a method though May 25 04:34:06 So I can't do that May 25 04:34:38 guys last thing if i may i have list preference and i used value from array to set default value but it does not work what didi I do wrong ? http://pastebin.com/KkucYgxW May 25 04:34:40 wrong :) May 25 04:34:45 learn java ffs May 25 04:35:51 you mean do like ArrayAdapter myAdapter; then inside my method do myAdapter = new blah May 25 04:35:53 Type thing? May 25 04:39:02 how to add textView or anything else on screen which is made like this setListAdapter(new ArrayAdapter(food.this, android.R.layout.simple_list_item_1, choices)); ? thx May 25 04:40:25 Hey cool another person doing listView May 25 04:42:24 No idea though, sorry. May 25 04:42:31 Maybe add the textView to the layout May 25 04:44:23 canadiancow: http://www.azcentral.com/offbeat/articles/2012/05/24/20120524massachusetts-cows-party-beer.html May 25 04:44:33 did you have anything to do with this :P May 25 04:57:53 what the terminak command to start android in ubuntu? May 25 04:58:31 once i find the directory with the android script, how do I start it in eclipse? May 25 05:05:50 t0mless: heh, the android plot twitter feed has 0 followers, and the server is still down May 25 05:06:01 oh wait, it does have 98 followers May 25 05:06:36 yea, I'm gunna ditch androidplot here soon May 25 05:06:40 they are just full of fail May 25 05:06:50 it looked promising at one time May 25 05:07:08 one of the reasons i think really hard about using a library i'll depend on May 25 05:13:31 how to add textView or anything else on screen which is made like this setListAdapter(new ArrayAdapter(food.this, android.R.layout.simple_list_item_1, choices)); thx May 25 05:13:55 Guys i tried to mkDir but it always return false path is /mnt/sdcard/Rezistor/ and i do have manifest http://pastebin.com/Qy0sLAhE May 25 05:22:32 play.google.com says: "An unexpected error occurred. Please try again later." May 25 05:26:01 Guys please i have for some reason this code does not find the files which are directly on sd card of my phone-> http://pastebin.com/w0u3AgYW files is always null whats the problem May 25 05:32:31 readme, any idea? I know I asked a lot but I have to post very important school porjcet today and everyhing crash on me :/ May 25 05:33:50 how about putting some Log messages in there. May 25 05:36:54 readme, i dont really have anything in log cat May 25 05:37:43 that's because you haven't put Log statements in your code? May 25 05:37:48 wait May 25 05:37:53 like, printing the path, would be a good idea... May 25 05:38:10 fml May 25 05:38:16 ok no there was filter in log cat May 25 06:02:09 suppose i pass a value from one activity to the next via extras. in my onCreate, i use getExtras to put the values in variables. then suppose those values change. how do i prevent the values from returning to their initial values on an orientation change? May 25 06:04:18 wb readme May 25 06:16:53 hmm. http://www.marketwatch.com/story/electricity-generated-from-water-blacklight-power-announces-validation-of-its-scientific-breakthrough-in-energy-production-2012-05-22 May 25 06:17:03 more interesting than the fb IPO to me ;) May 25 06:17:48 look at all the hoops these guys had to jump through; extraordinary claims require extraordinary proof. evaluated by many experts in academia, etc May 25 06:17:53 only raised 75m May 25 06:18:08 and over here … Facebook :| May 25 06:19:39 g00s: http://www.youtube.com/watch?v=TMCf7SNUb-Q May 25 06:19:45 facebook is crap May 25 06:20:03 i deleted mine permanently May 25 06:20:13 zuckerberg is a pump & dumper. May 25 06:20:25 hehe May 25 06:20:27 that eduardo saverin guy is even worse. May 25 06:23:08 * pragma- likes this. May 25 06:30:51 so i'm trying to install the adt plugin for eclipse and i get this error when it tries to dl+install: Unable to read repository at http://dl-ssl.google.com/android/eclipse/features/com.android.ide.eclipse.traceview_18.0.0.v201203301601-306762.jar. May 25 06:30:51 Read timed out May 25 06:31:21 Try the https version. If that doesn't work, use ping to see if it's accessible. May 25 06:36:53 fuck, chrome keeps corrupting my bookmarks May 25 06:42:02 Because your bookmarks suck. May 25 06:42:06 and it knows so May 25 06:42:12 It's trying to help you. May 25 06:50:49 hi. how do i get a reference of Activity to pass to class method as (Activity myActivity)? May 25 06:50:49 i need a reference to activity to use getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON); May 25 06:50:56 gappie: you need to pass the activity instance to your class then somehow May 25 06:51:24 but how do i get the reference to the activity May 25 06:51:52 gappie: what context will you be running under? May 25 06:51:57 gappie: is it the activity that creates an instance of your class? May 25 06:51:57 like you get a reference to context with myactivity.this May 25 06:52:14 appel1: yes May 25 06:52:55 gappie: then add ctor parameter that lets the activity pass a reference to itself to the class when you create it May 25 06:53:09 al i want to know is how do i call getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON); in a class method that does not extend May 25 06:53:14 ...Activity May 25 06:53:35 appel1: example please? May 25 06:53:39 gappie: you need to hand a reference to the activity instance to the intance of your class that does not extend Activity May 25 06:54:03 appel1 : yes buthom please May 25 06:54:16 gappie: how to pass a reference to something in java? May 25 06:54:54 how do i get a reference to the activity instance so that i can pass it May 25 06:55:04 gappie: if you have a constructor MyClass(Activity activity) then in a method of yoru Activity you can do new MyClass(this) May 25 06:55:25 gappie: perhaps you should get a beginners java book and read up a bit on java because this is really really basic stuff May 25 06:59:58 appel1 : i might be confused with the difference between Activity and Context. CAn i get a reference to both by soing myActivity.this? May 25 07:00:09 *doing May 25 07:00:40 gappie: Activity is a Context, that is Activity inherits from Context May 25 07:00:52 gappie: http://developer.android.com/reference/android/app/Activity.html May 25 07:10:30 Hi ya May 25 07:16:18 When it comes ContactsContract and handling things like emails whats the best way to reference a contacts email if they have multiple? i cant find any unique value besides the actual email address i though something like lookup would be appropriate but it has they have the same value May 25 07:17:47 between the email address May 25 07:25:25 hi all May 25 07:30:01 How do you update the GUI of an Activity based on the state of a mediaPlayer in a service? Do I need to bind the Service to the Activity? May 25 07:36:25 droidDev32: either that or use broadcasts May 25 07:36:38 just updated my SDK to the latest version & all of the sudden any referenced classes linked in external JARs in my apps are no longer found when running the apps... any hints as to why? May 25 07:45:53 http://arstechnica.com/gadgets/2012/05/team-behind-webos-enyo-framework-reportedly-leaving-hp-and-joining-google/ May 25 07:46:54 "The expertise of Enyo developers could be useful if Google is looking to build a Web runtime for Android to serve as an alternative to the platform’s Java-based development stack." May 25 07:47:04 g00s: keep up - I posted the original Verge story hours ago :) May 25 07:47:12 oh man May 25 07:49:22 has anyone here had problems when calling opencv in the jni with "java.lang.UnsatisfiedLinkError: Couldn't load opencv: findLibrary returned null"? Or know of a fix? May 25 07:58:53 Hello guys, I need to collect a list from an array adapter. Is there an easy way to get the list at once, instead of using a for loop and traverse all the items? May 25 08:00:27 Array.asList(*the array you started with*) May 25 08:00:47 i have a resource file in the shape of urls.xml I use to list url's to hosted php files. I would like to use two versions of this file with one being for development and the other for deployment. how can i easily switch between the two? May 25 08:01:37 gappie, i've switched on the cert your app''s signed with before May 25 08:02:31 http://whereblogger.klaki.net/2009/10/choosing-android-maps-api-key-at-run.html May 25 08:02:48 detect your debug cert and load alternate resources May 25 08:04:48 Leeds: does it sound like HP is actually transferring the team to google, or that they are all just leaving and being rehired together ? May 25 08:04:56 kinda like a worker transfer May 25 08:05:13 sounds like a mass rehire to me May 25 08:08:13 alex_PP : how is that applicable to what i want to do May 25 08:12:05 when you're in developemnt, you can detect your debug key and read one set of URLs and in release you can use another set May 25 08:12:45 and if that stuff is all static, then when you do build release, it won't be in your build :) May 25 08:12:52 so it's just as good as any kind of preprocessor. May 25 08:13:16 what is a debug key May 25 08:13:32 i do not publish to google play store May 25 08:13:58 any app you build in eclipse, is signed with a debug key, unless you specify otherwise May 25 08:14:16 when i export to .apk? May 25 08:14:39 "export" as in you export a signed application? That uses your keystore, whichever one you made. May 25 08:14:49 ok May 25 08:14:56 * readme doesn't build releases from eclipse. uses ant for that. May 25 08:15:02 then does his own sign. May 25 08:15:33 * alex_PP uses maven because he's cooler May 25 08:16:07 one of my maven builds does something like 50 different apks May 25 08:16:24 I should probably learn that tonight. May 25 08:16:46 the dependency management rocks May 25 08:16:50 i'm planning on figuring out some CI strategy but don't think I'm going to incorporate jenkins, instead make my own May 25 08:17:26 what bout hudson ? May 25 08:17:31 we've got jenkins set up to build every patch submitted to gerrit and compile and test it May 25 08:17:38 if it fails it wont let you merge to master May 25 08:17:56 i love it May 25 08:17:56 cool May 25 08:18:03 for aosp platform dev? May 25 08:18:17 no, locally May 25 08:18:21 oh, cool May 25 08:18:58 http://alblue.bandlem.com/2011/02/gerrit-git-review-with-jenkins-ci.html May 25 08:19:10 I think that's the video that got me excited May 25 08:20:42 alex_PP: do you need any particular branching structure in git for this to work? right now i am using something like nvie's (for git) May 25 08:20:53 gerrit May 25 08:20:55 aka gitflow or whatever May 25 08:21:07 i always hear bad things about gerrit though May 25 08:21:16 i like it May 25 08:21:18 like i always hear bad things about bugzilla May 25 08:21:20 :) May 25 08:21:36 it can be a pain, but it suits us May 25 08:21:37 more often than not people only report bad experiances May 25 08:22:18 what is the best way to expand your android dev knowledge? books, internet tutorials, youtube videos, workshops? May 25 08:22:28 there might be a way to get plain git to do it yoo May 25 08:22:31 *too May 25 08:22:49 ours does it with git or gerrit May 25 08:22:50 gappie, write a lot of apps May 25 08:23:05 when you can't so something, look it up May 25 08:23:07 uses Jenkins too May 25 08:23:08 gappie: learning is an individual style; but its generally good to read examples of good code May 25 08:23:35 finding good code is kinda tough though May 25 08:23:40 it's easier to learn how to select something from a database, or add a button, than it is to learn all of android in one go May 25 08:24:34 i didn't realize there were so many ways to backup a git repo May 25 08:24:42 * g00s is still a noob at git May 25 08:24:50 first i thought git bundle would be it May 25 08:25:06 but git --clone bare seems best May 25 08:29:24 any one who's got a copy checked out has a full copy of the entire history May 25 08:30:37 alex_PP: this seemed pretty good http://agile.dzone.com/articles/git-backups-and-no-its-not May 25 08:30:50 but this confused me http://stackoverflow.com/questions/2129214/backup-a-local-git-repository May 25 08:34:42 how so? May 25 08:36:30 i got confused the OP had to do a $ git reset --hard May 25 08:37:59 if i use ant in eclipse, can i add custom build commands to change resource files at compile time. say when i am testing and compileig release version? May 25 08:38:00 best to ignore that i think May 25 08:38:16 gappie, yes May 25 08:38:17 if i use ant in eclipse, can i add custom build commands to change resource files at compile time. say when i am testing and compileig release version? May 25 08:38:26 sorry double post May 25 08:43:44 How can i cancel a Task in another function when i create it with new Task.execute() ? Is there a function that closes all background threads or something similiar to this? May 25 08:44:00 *AsyncTask May 25 08:46:14 urtask.cancel() May 25 08:46:55 about how u can check running background tasks, cant say anythin :) May 25 08:54:54 ixc: i never kept a reference to the task :X May 25 08:56:13 kazoooka: basicly i do same May 25 08:56:39 but example u can put cancelable dialog in preexecute May 25 08:56:45 and u can setup cancel for itself May 25 09:01:19 http://www.fattybeagle.com/2011/02/15/android-asynctasks-during-a-screen-rotation-part-ii/ May 25 09:01:37 they made a manager for save task references May 25 09:01:53 so im not sure about u can get a list about background tasks May 25 09:19:52 how to add dependent project to a build path of another project, but out of Eclipse? For example, there is a section Implementing the Remote Client at http://ofps.oreilly.com/titles/9781449390501/AIDL.html and I'd like to do this with Eclipse May 25 09:19:55 any idea how? May 25 09:41:36 txc: thx May 25 09:44:09 good day everyone May 25 09:44:43 i have a question regarding release builds/code obfuscation and explicit intents May 25 09:45:46 lets say I have a projectA, in package com.A, with service com.A.SvcA May 25 09:46:32 and I would like to create a projectB, in package com.B where an activity would like to start com.A.SvcA explicitly May 25 09:47:25 the way I used to do this is create a library project that goes with projectA, say libA, that defines the packagename and classname of svcA May 25 09:47:52 then projectB can include this library and start svcA explicitly using these definitions May 25 09:48:43 _however_.... code obfuscation renames com.A.svcA to something else and now the definitions in the library (which are just strings) don't make sense anymore May 25 09:49:16 I therefore get messages like "cannot find service to start for intent" etc May 25 09:49:20 Hey guys, I am currently populating a listview from a string array within the values folder. However, I need the application to parse an xml file from the web and populate the listview like that. Am I right in thinking that the best way to do this is to; check if an update is necessary when the program starts, if it is.. update the .xml file into local storage, parse it and write the necessary values into a .xml file as a May 25 09:49:20 string-array? May 25 09:50:04 bakkes: you can use intent filters instead.. but there might be an option in proguard.. I doubt it. May 25 09:50:56 if you had the library project as part of your build, I don't think this would happen May 25 09:51:29 readme: using intentfilters crossed my mind, but then the intent is no longer explicit, but implicit instead... of course i could make the actions unique enough to accomplish the same thing, but still... May 25 09:52:23 I was thinking of telling Proguard to leave the class names of services i would like to start explicitly alone (so no obfuscation) which would keep the definitions in the lib "in sync" May 25 09:54:27 bakkes: if you build with the library project linked to your project, then proguard shouldn't interfere, no? May 25 09:54:33 are you compiling against a jar or something? May 25 09:54:49 how do I add particular directory to a project's build path, in command line? May 25 09:55:01 readme: give me a moment to ponder over your reply ;-) May 25 09:55:19 bakkes: the way I build my projects is I keep the full source of the library project in the workspace. May 25 09:56:03 yes that is what i have (although with me it is probably caused by the fact we are still running sdk12 here, so jars would not be an option anyway) May 25 09:56:31 the actual thing going on here is android.library.reference.1=../myLib May 25 09:56:39 so building like that, you still mess up the names? May 25 09:56:42 by using Proguard? May 25 09:56:55 yes May 25 09:57:11 I guess you should just tell proguard not to obfuscate em May 25 09:58:48 the only other build steps I could think of is that somehow the "obfuscated classname" of the service (resulting from a release build of the project containing this service) should be stored and then "put into" the library May 25 09:59:37 I could probably accomplish this by building the library jar simultaneously with the project containing the service so that proguard obfuscates everything at the same time May 25 10:00:07 bakkes: try putting -keep public class * extends Service in your proguard-project.txt May 25 10:00:11 the problem is: don't know how to do this and if this would be any easier in the newest sdk compared to our sdk12 May 25 10:00:49 I think the problem is that proguard doesn't know how to mutate the fully qualified names in the manifest to correspond with the obfuscated ones. May 25 10:01:09 just not obfuscating them probably poses no risk to your code. May 25 10:01:24 ok I'll keep that as the best fallback scenario, since it is the one I also thought of using May 25 10:01:33 thanks for you input on this! May 25 10:01:51 i'm not sure if that keep line excludes the whole service or just the signature May 25 10:01:55 better look and see May 25 10:01:58 http://proguard.sourceforge.net/index.html#manual/examples.html May 25 10:02:34 yeah for sure I'll check the proguard manual on this (I don't know it by heart either), but I'm thinking on the same line you are, so I understand what you suggested to do May 25 10:02:45 again: thanks a lot May 25 10:03:00 np May 25 10:04:48 how to add textView or anything else to the screen which is already made with simple list item -> setListAdapter(new ArrayAdapter(food.this, android.R.layout.simple_list_item_1, choices)); thx May 25 10:06:06 u cant use sub dirs in resources right? May 25 10:07:25 Angel07 u need to inflate a row May 25 10:07:34 LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.latestoffersrow, parent, false); May 25 10:07:47 then use findviewbyid on v May 25 10:07:57 and grab the textview from the row u designed May 25 10:15:38 how to add a dependent project to a build path in command line? May 25 10:16:20 for example, I'd like to do AIDL example from http://ofps.oreilly.com/titles/9781449390501/AIDL.html but without Eclipse May 25 10:22:34 hey guys, how to make bubbles in messenger like on iOS? May 25 10:25:51 does anyone know why when I am trying to open the facebook app and write to wall from within my app I get a blank page like this: http://ompldr.org/vZHdzbw/screenshot-1337938637490.png ? May 25 10:31:27 Is it against market TOS to put a company's name in your app's title: i.e. Starbucks Locator -- if you are not that company? May 25 10:31:36 e.g.* May 25 10:31:59 stiggpwnz: use a 9-patch image of a bubble. May 25 10:33:21 readme, but I'm a very beginner, which way should I make it? There's a ListView, but it won't work, I need scrolling new messages down May 25 10:33:38 readme, or it's just a ScrollView? May 25 10:33:39 it should be the background image of the textview May 25 10:33:55 read the 9patch doc and you will understand what to do. May 25 10:33:59 it stretches to accomidate. May 25 10:34:07 readme, no, I mean the whole thing, not just bubbles May 25 10:34:30 how can you have a concept of security in a platform that is so open like android? I've written a web service and I'd like to try and restrict access to it to only users of my app (and not just anyone with a java decompiler and a web browser).. does anyone have any tips/advice/recommended reading? May 25 10:34:38 readme, I think it was you who said -g -ggdb ? May 25 10:34:42 i'm not going to sit here and explain to you how to develop an entire product. do some research and ask a good question :) May 25 10:34:45 Zharf: yes. May 25 10:35:05 readme, well, that didn't help... I spent my whole yesterday afternoon, evening and night debugging it getting no closer :p May 25 10:35:13 works with regular gcc May 25 10:35:28 readme, but I just fixed it by linking the libraries my plugins depended on statically to the plugins :E May 25 10:35:42 was that directed at me? May 25 10:35:46 readme, I just need someone to tell me which way is it done May 25 10:35:50 actually, you might be able to explicitly tell gdb about the symbols. May 25 10:36:05 stiggpwnz: check out xmpp you might find that helpful. May 25 10:36:12 readme, I did, it found the symbols but the crash happened in android linker address space May 25 10:36:23 how can I use a drawable/asset as image resource in Html.fromHtml() ? May 25 10:36:29 readme, thanks! May 25 10:46:55 http://stackoverflow.com/questions/10753048/how-to-make-a-instant-messenger-gui-with-bubbles can someone answer my question? May 25 10:47:12 use soap and blow May 25 10:48:31 bubbles are ugly May 25 10:48:38 dont do May 25 10:50:06 ixc, unfortunately, It has been decided for me, and I can't change that May 25 10:50:22 ixc, and now I need to figure all this out May 25 10:51:00 then do that u can, if u can with scrollview+textviews do it May 25 10:51:22 but i think for this maybe a adapter based view better with dinamic load May 25 10:51:35 listview or gridview May 25 10:51:37 my derp sense is tingling May 25 10:53:36 ixc, thanks mate, that's exactly what i wanted to hear May 25 10:59:36 how to use AIDLs from one project in another one? May 25 10:59:44 should I change some build paths? May 25 11:01:58 mdim: You must copy aidl file to Your project and eclipse can handle the rest May 25 11:02:19 mdim: put the files to project or jar to libs May 25 11:02:28 easiest way :) May 25 11:02:40 Anyone know of any good tutorials to parse remote XML files into listviews? Can't seem to find any good ones, and the Android Dev site just seems to focus on RSS feeds May 25 11:02:43 mdim: important thing - the aidl file must be always the same in both projects May 25 11:03:31 I am trying to do the following : start a service that gets the location of the android device every 5 min using GPS >> I also want to have an Activity to be able to getLocation() from this service, however this is not possible for some reason. The reason I want to retrieve the location using a service is because I need to have a context for the LocationManager to work. May 25 11:04:02 kselos: checkout from same external repository :) May 25 11:04:31 Timmaah1201: that is a very specific thing you are looking to do May 25 11:04:34 Timmaah1201: do like RSS just replace rss tags for urs May 25 11:04:41 *xml May 25 11:05:15 I mean, you could start by asking for a tutorial on grabbing a file from a remote server May 25 11:05:19 rss is a xml too, with specified tags May 25 11:05:26 or you could... you know, google it. May 25 11:05:50 then google how to parse xml in java May 25 11:06:18 readme, you still there? May 25 11:06:21 kselos: I know that May 25 11:06:23 neither of those things should require a "tutorial", persay May 25 11:06:34 Myr: but you can have service and activity in one app May 25 11:06:37 does android use a specific type? Is dom or sax more efficient than the other? May 25 11:06:53 kselos: still, I don't know how to link two projects, i.e. how to make a service from one project available in another one May 25 11:07:10 all parser has pros and cons too :) May 25 11:07:27 kselos: They are both in the same application, however I can't retrieve data from the Service May 25 11:07:32 choose one that fit with ur thinking and project May 25 11:07:39 kselos: should I simply copy .aidl files into a src/ dir? May 25 11:07:43 I don't think he wants to start this project May 25 11:07:48 bakkes: yeah May 25 11:07:51 and he is procrastinating by asking dumb questions May 25 11:08:05 ah k, cheers ixc.. i know rss is xml too, but its bit difficult to see exactly whats going on without seeing the rss.xml file May 25 11:08:12 rather not make a bunch of assumptions if i can prevent it May 25 11:08:14 @readme: regarding the discussion we had earlier I have worked out another possibility May 25 11:08:18 whats that May 25 11:08:21 then look at the file, dummy May 25 11:08:27 it's not like we've seen it May 25 11:08:34 -.- May 25 11:08:43 i think is not big problem for get a rss xml :)) May 25 11:08:52 anyone know how to do that page turning effect to go between views or activities? May 25 11:08:54 thanks for not being a dick ixc May 25 11:08:56 even this russian guy knows May 25 11:09:04 Timmaah1201: use SAX May 25 11:09:08 mdim: You must copy all structure of packet (like import packet to Your project) but packet can have only aidl file May 25 11:09:12 store the data in a sqlite table May 25 11:09:17 or two, or three May 25 11:09:20 remember you made the suggestion on using actions (i.e. implicit intents) and I had minor objections on explicit vs implicit (I really only want to start a specific service/activity and not some random one)? May 25 11:09:25 Timmaah1201: i try to help, but ur question cant have good answer May 25 11:09:33 dude look at the questions he is asking and askyourself if he needs an sqlite table May 25 11:09:46 the DOM api is not fast at all. It's riddled with object creation, convoluted and really a pain in general. May 25 11:09:48 (he doesn't) May 25 11:10:10 I guarantee you he is just making a listview of rss entries and it doesn't make a single fuck what he uses May 25 11:10:25 ibm had a nice article where compare 4 xml/dom parser May 25 11:10:28 bakkes: yeak? May 25 11:10:30 yeah* May 25 11:10:36 *xml entries May 25 11:10:39 readme: there is the option of passing only a packagename into an Intent you create (so not packagename + classname, but just packagename). May 25 11:10:43 yeah, whatever May 25 11:10:51 ya i had read of that just now ixc May 25 11:11:02 I bet the xml file is only a few k May 25 11:11:09 readme: combining that with your suggestion of "actions" still gives me the same assurances I get using an implicit intent May 25 11:11:14 after that you must have some_class extends name_of_file(aidl).stub --- where You implements methods from aidl May 25 11:11:14 just download the whole thing, parse the data into your view, and throw it away May 25 11:11:15 1000+ items May 25 11:11:15 done May 25 11:11:26 oh boy a whole 1000 May 25 11:11:36 that should take all of 50ms to populate May 25 11:11:36 kselos: what I'm trying to do is follow example at http://ofps.oreilly.com/titles/9781449390501/AIDL.html but without Eclipse May 25 11:11:38 I can add the packagename because it will probably not get obfuscated anyway (since android needs it to identify apps) May 25 11:11:52 jesus christ... are you purposely trying to be a dick? May 25 11:11:53 you are overthinking it, bro May 25 11:12:00 kselos: so, I don't know how to implement the Remote Client with regard to build path, but in command line May 25 11:12:02 yeah, pretty much May 25 11:12:17 you drove me to this though May 25 11:12:27 so putting the packagename in a lib and defining (again in the lib) an action you can use to start the service (which is a string and will not get obfuscated either) seems an option May 25 11:12:31 ya.. sorry for asking questions in a help channel May 25 11:12:48 sorry for trying to learn.. man.. what a dick move by me May 25 11:12:59 calm down May 25 11:13:14 haha May 25 11:13:22 "anyone got any good tutorials for this exact thing I am trying to do?" May 25 11:13:32 because everyone in help channels keeps an index of things that specific right? May 25 11:13:33 use android's sax May 25 11:13:39 I think you know what you did wrong, so I'll leave you alone now May 25 11:13:52 kselos: I copied .aidl files to a new project's src/ dir, but I get this when I try to "ant debug": [aidl] /home/marko/misc/programiranje/android/aidl-example-related/src/com/marakana/logclient/Message.aidl:3 interface Message should be declared in a file called com/marakana/logservice/Message.aidl. May 25 11:13:54 you realise that to someone who doesnt have the experience they wont know its "that specific" May 25 11:13:58 if u have the ibm's article u have example and howtos how use it May 25 11:14:12 you must enjoy being alone root66 May 25 11:14:23 well, you said "parse a remote xml file"... you should know that step one is getting the file. if you can't do that, ask for help on that or google it, because it is only like 3 lines of code which youc an find virtually anywhere May 25 11:14:33 Seeing as my service question got no answer... is it possible to make a class (not a running activity) with a LocationManager? (I will need a Context for this, can I fake one?) May 25 11:14:39 then move on to the next issue... parsing it May 25 11:14:45 Timmaah1201: my money keeps me warm May 25 11:14:49 haha May 25 11:14:59 ok, thanks guys May 25 11:15:03 readme: just wanted to share that option with you (maybe you'll never need it, but who knows ;-)) May 25 11:16:37 Myr: why u cant get data from service? May 25 11:18:49 Myr: to instantiate the class, you will either need an activity or a service May 25 11:19:04 it has to exist somewhere May 25 11:19:53 ixc : Because I can't seem to be able to touch any of the functions within the service. meaning... MyService.getLocation(); won't work as I can't call that function from outside May 25 11:20:20 Well, if you wan't to call a function from an Activity I will need to start that activity first right? May 25 11:20:22 Myr: you may create conection to GPS, and get context from service by getApplicationContext() May 25 11:20:23 if they are public or static functions, sure you can May 25 11:20:44 ur service why not store data a place where other things can access? May 25 11:21:01 ixc has a point May 25 11:21:05 use prefs May 25 11:22:19 Because the service needs to stuff a location in the database every ~15 min... OR return the current location to the activity when called for May 25 11:22:54 then use AlarmManager, not a service May 25 11:23:04 or rather, have a service launch via AlarmManager and kill itself when the job is done May 25 11:23:38 and also can use broadcasts May 25 11:23:46 with alarmmanager or with service too :) May 25 11:24:08 It is my understanding that you should only trust a broadcast for short tasks May 25 11:24:11 I am not sure what he is doing May 25 11:24:14 and gps can sometimes take a minute May 25 11:43:14 bakkes: thanks, it is saved May 25 11:49:54 hello, I got a question people May 25 11:50:54 so I want to make a layout for my application that would be grid-like to move it left-right (just like the starndard android menu)... May 25 11:51:31 I pretty much used ViewFlipper in my layout and make the pages separately and then code it http://pastesite.com/36997 May 25 11:52:20 this way it's kinda what I want but it changes the "page"(image) only after I move my finger not while I'm moving it (like the android standard menu) May 25 11:52:31 how can I do it ? May 25 11:53:11 I tried with the horizontal scroll view but the images are prietty much connected and part of the image (it's a bit bigger) get's out of the screen ... May 25 11:53:32 and with the horizontal scroll they are not "page like" May 25 11:55:22 anyone got any ideea how I could do it ? :| May 25 11:56:58 readme: one last addition would be that your suggestion on using the keep rule to prevent proguard from obfuscating any classes that extend from services, activities etc already seems to be included in the standard proguard.cfg... it seems my problems are caused by something else entirely.. I'm terribly sorry for wasting your time, but appreciate the help nonetheless. Cheers! May 25 11:59:49 luci1093: see the viewpagr in the compat library May 25 11:59:53 *viewpager May 25 12:01:19 ow , using this should solve that problem ? May 25 12:01:49 yes May 25 12:02:01 there's a good tutorial on the android dev blog May 25 12:02:09 google can help you there May 25 12:03:09 I've seen it , ok tnx , I'll see what I can do :D May 25 12:10:24 SOS: untraceable Nullpointer from my EventoHolder.populateFrom(Evento e) class(line 135) that gets called on line 130. Can someone check it out please? http://pastebin.com/9290uHzW May 25 12:11:41 Is it bad practice to sign all the apps that you release to the market with the same key? May 25 12:12:10 if i populate the elements like on lines 110-122 it works fine, so there must be some error with the position var pointing to null? but i don't know why or where May 25 12:13:10 bakkes: uh, no rpob May 25 12:13:26 no prob* -- I am playing with jsoup trying to get some data.. very distracted from irc right now May 25 12:21:41 ddreamer0: try outputting all your vars to the console and see which is null May 25 12:22:14 and output the stack trace from that exception May 25 12:24:21 how do i output the stack trace from that exception? May 25 12:26:01 *facepalm* May 25 12:26:55 Master_ex: not really, though some would recommend signing each with a different key is more secure May 25 12:27:12 Master_ex: i don't really consider it something i need to be concerned about May 25 12:27:23 ditto May 25 12:27:33 if I had a groundbreakingly awesome app that I knew was going to take off, I might May 25 12:27:40 yeah May 25 12:28:39 this how I do but I am playing around with the facebook sdk and I was a bit confused with the hash key, the app id etc May 25 12:28:44 why are we outputting variables to the console? we have tools for this... debbuger anyone? May 25 12:29:11 if i use the same keystore for all my apps then i need only one app id from facebook from all my apps... May 25 12:29:12 i guess May 25 12:29:24 wongk / Master_ex, you should actually sign them all with the same key May 25 12:29:34 there are permissions you can grant based on app signature May 25 12:29:39 canadiancow: ctate would disagree May 25 12:29:47 unless they need to share resources May 25 12:31:45 but you might not be sure that they wont need to share in the future May 25 12:37:52 kselos: it's been one day since I got stucked with this issue. Can you help me? May 25 12:39:47 yea mikedg May 25 12:39:49 happened with us May 25 12:39:53 we have two apps signed with different keys May 25 12:39:55 T_T May 25 12:40:05 or rather, i think we have like >9000 keys May 25 12:40:27 mdim: I don't get this kind of error so I don't know May 25 12:43:25 kselos: forget the error. How to add another project to a build path, as described at http://ofps.oreilly.com/titles/9781449390501/AIDL.html for Eclipse? May 25 12:44:22 everyone should be using the same keys May 25 12:44:29 except for the bad guys May 25 12:44:41 :) May 25 12:44:59 canadiancow: have you ever watched How I met Your Mother? May 25 12:45:03 and why are you not at work May 25 12:45:52 If I have "joined" an activity which is started with SingleTop, I am now in "its" task or in "my" task? Where will I go if I click "back" from that activity - into it's old parent or my caller? May 25 12:46:44 mikedg because i dont feel like going yet? May 25 12:46:49 because i was tired :( May 25 12:46:52 im heading out in a min May 25 12:46:54 basicly it just go back, if caller was previously u will here May 25 12:47:05 but u can change on it May 25 12:47:19 ixc: how? May 25 12:48:05 example u take onkeydown event May 25 12:48:14 and u write ur own code May 25 12:48:23 ixc: I see. May 25 12:48:57 Is it possible to have a "single task" activity NOT to be a root? Any way to do this? May 25 12:49:27 what means single task activity? :) May 25 12:49:47 activity started with "SingleTask" launch parameter May 25 12:50:18 what do you mean not be a root May 25 12:50:38 maybe you want single instance May 25 12:50:49 mbear_nbr: u can specify it in android manifest with android:launchMode, or what is ur question? May 25 12:50:50 some other activity started it, and it's now on TOP of task's stack, but not root May 25 12:51:22 what does root mean May 25 12:51:45 is it possible to have activities stack A B C where C is top and C is launched with SingleTask attribute? A is root of stack, C is top May 25 12:52:16 what happens if you just try that May 25 12:52:35 I suppose that it's not possible May 25 12:52:49 no it is not possible 'The system creates the activity at the root of a new task and routes the intent to it' May 25 12:52:50 if you try you will have A B and next task C May 25 12:52:56 mikedg: maybe its not good idea, i worry of destroy the world :( May 25 12:53:00 what are you tyring to accomplish May 25 12:53:04 I'm having issues with the ndk and engine_handle_cmd when pressing the back button. Our quitApplication is causing issues on gingerbread May 25 12:53:20 So when you resume the app after exiting, it can freeze May 25 12:53:26 theneb: why do you need a quitApplication May 25 12:53:55 theneb: do you realy need to resume the app after exiting? May be you just disable this option? May 25 12:53:56 mbear_nbr: are you sure you dont want SingleTop? May 25 12:53:57 We need to handle the back button within our game on some menus, and if at the top level menu quit the game May 25 12:54:20 mikedg: I am trying to understand its exact behavour May 25 12:54:48 singleTop means if you somehow tried to launch the same activity multiple times in the stack, you would keep that activity but deliver onNewIntent May 25 12:54:50 mikedg: no, I will not use SingleTask, I don't need it. May 25 12:54:57 Well, have the default behaviour of the activity lifecycle. Our quitApplication call in Java just calls finish on the activity May 25 12:54:59 this works for stuff like notifications May 25 12:55:54 mikedg: and what happens when you leave that activity from the second entry to it? First you start it, then you deliver a new intent to it and THEN you press BACK. what happens? Will this activity finish itself? May 25 12:56:25 yeah May 25 12:56:38 mikedg: ok May 25 12:56:43 (The naming of quitApplication is arbitary, we're not killing the process) May 25 12:57:27 thank you all May 25 13:03:03 hey guys May 25 13:03:38 i have a question May 25 13:03:49 public boolean onTouch(View v, MotionEvent event) { May 25 13:03:49 // TODO Auto-generated method stub May 25 13:03:49 if(event.getAction() == MotionEvent.ACTION_DOWN){ May 25 13:03:49 stevec++; May 25 13:03:49 } May 25 13:03:50 return true; May 25 13:03:50 } May 25 13:04:27 thats not a question May 25 13:04:28 why this, dont work, it should count stevec, and it should display it in textview May 25 13:04:29 who is stevec? May 25 13:04:35 why are you ++ing him May 25 13:04:45 int variable May 25 13:04:53 if you ++ stevec May 25 13:04:58 yes May 25 13:05:02 then it undoes it May 25 13:05:22 its like i want if u click on a picture, stevec++, so u get score.. May 25 13:05:43 nothing there does anything with a textview May 25 13:05:54 and you should be using onClick May 25 13:06:23 but i think u cant set onclick for bmp picture May 25 13:06:38 you cant just display a bmp picture either May 25 13:06:49 onClick is in View... May 25 13:07:04 the only thing I haven't been able to use onClick on is a WebView May 25 13:07:15 sNap0000: you have a lot to learn May 25 13:07:21 haha i know :( May 25 13:07:24 i can teach you for $100 an hour May 25 13:07:28 xD May 25 13:07:29 i give people in ehre a %25 discount May 25 13:07:32 for the first 5 hours May 25 13:07:52 no ty, doing this for a school project :D and dont wana pay 100$ May 25 13:08:36 ooops Leeds is stuck in the airport May 25 13:08:43 just saw on his fb May 25 13:08:44 lol May 25 13:08:50 stop stalking him May 25 13:08:51 go bust him out May 25 13:09:06 i figured somehow hed still beo n this channel May 25 13:09:10 almost amaed he isnt May 25 13:09:10 :) May 25 13:09:13 amazed May 25 13:09:24 free wifi in the airport? May 25 13:09:28 yep May 25 13:09:39 how can i set onclick on bitmap? May 25 13:09:44 you can't. May 25 13:09:46 not in the ones i've been to! They claim its free but it isnt May 25 13:09:53 you can't set onTouch on a bitmap either May 25 13:09:57 pay attention to what you're actually doing May 25 13:10:02 then rephrase your question May 25 13:10:33 Dark-Side yeh they claim it, now it finally happened in hong kong May 25 13:10:34 u just said before u managed to setonclick on everything except webview :D May 25 13:10:43 views are not bitmaps. May 25 13:10:47 sNap0000 stick it in an imageview or na imagebutton May 25 13:10:50 Shame i don't have a reason to visit HK May 25 13:11:03 HK is awesome May 25 13:11:22 but im doing this in canvas, and i dont know how to draw imageview :D May 25 13:11:25 only bitmap May 25 13:11:30 ah May 25 13:11:40 sNap0000: that would have been good info to include in your original question May 25 13:11:44 then work out its x,y coords and width and height and detect if its touched in ontouch May 25 13:12:00 yea gaz i tryed but i cant get it to work :/ May 25 13:12:02 Canvas is not a bitmap. May 25 13:12:14 sNap0000 shouldnt be too hard May 25 13:12:15 you can render a bitmap on it, but it is not a bitmap. May 25 13:12:26 i know its not a bitmap :D May 25 13:12:34 im drawing bitmap in cavas May 25 13:12:38 canvas* May 25 13:12:45 and a textview May 25 13:12:49 sNap0000: you are in a technical channel, asking technical questions. Technicalities are crucial here. May 25 13:13:00 pay attention to them and you'll get better help May 25 13:13:11 and i want if a player touches the picture to get score(stevec++) and that would be displayed in that textview... May 25 13:13:17 your on touch idea is probably passable May 25 13:13:20 keep trying May 25 13:13:42 ok May 25 13:13:51 tryhard for 10h like yesterday :P May 25 13:13:57 diehard May 25 13:14:01 :D May 25 13:14:33 if i set stevec++ in ontouchlistener, must i display it too? refresh textview? May 25 13:14:41 yes May 25 13:14:47 ok ty May 25 13:16:53 how the hell have i froze my n1 May 25 13:16:57 with some android May 25 13:22:27 anyone know if someone has made an anim that sort of flips the view right around May 25 13:22:30 like on iphone May 25 13:22:36 How can we load Google maps into an Android App? May 25 13:22:53 visit a url in a browser Tsukaza or use an intent to launch maps app May 25 13:23:21 What about key tool? May 25 13:23:24 command May 25 13:23:34 not sure i udnerstand May 25 13:23:40 https://developers.google.com/maps/documentation/android/mapkey May 25 13:23:46 This, im having a little trouble here May 25 13:24:10 tells hu how there basically May 25 13:24:13 what trouble u having May 25 13:26:22 Trouble in the Getting the MD5 Debug certificate May 25 13:26:30 the command that they ask to execute, I cant put it to work May 25 13:26:41 +/- This: http://stackoverflow.com/questions/5262695/how-to-get-md5-from-debug-keystore-file May 25 13:33:29 anyone know how i add MPC to eclipse? May 25 13:34:47 hi, is there a way to find out the device an app installed at from inside the app? May 25 13:35:24 Can I download my sqlite database on my device to my pc? May 25 13:36:23 yes May 25 13:36:50 is it your own sqlite database, from your own app? May 25 13:36:56 yup May 25 13:37:01 Hello! May 25 13:37:35 Myr: is your device rooted? May 25 13:37:38 do you have root? May 25 13:37:39 Is there an easy way to completely delete all shared preferences of my app? I want to implement an in app reset option. May 25 13:37:47 As far as I know, yeah May 25 13:38:08 root or not, I wrote this code to return the sqlite database of your app as long as its *your app* May 25 13:38:13 https://gist.github.com/2730449 May 25 13:38:16 lets you copy to sd & email May 25 13:38:24 but if you have root best is to just use adb May 25 13:38:48 Myr: you don't know if your device is rooted? May 25 13:39:13 I don't, but I do think so seeing as I can just put stuff on it with adb May 25 13:39:44 rooting is a pretty detailed process, i would think you'd know if you did it May 25 13:45:24 I think you are right on that, I tried to access the directory with adb shell, but I am being denied May 25 13:49:54 any clue why I keep on getting this error when it comes to R? http://pastebin.com/yn2EVdj6 May 25 13:51:08 Delete R generated Files / W8 for auto build May 25 13:51:11 Probably a faulty resource file, try cleaning it May 25 13:51:24 or simple check if the reference to the R file is for your project May 25 13:51:28 and not to R.android May 25 13:53:19 simps0n: how do I check this reference? May 25 13:53:56 Method: If there is an import delete "R.something" May 25 13:54:06 Re-write that par of the code May 25 13:54:12 R.something May 25 13:54:14 could you please explain this figure: http://images.cnblogs.com/cnblogs_com/bevin-h/201205/201205101843492995.png ? How come an Activity Y is on top of its stack but has SingleTask mode in it? May 25 13:54:22 and eclipse will help you get the right import May 25 13:54:55 it's from here : http://www.cnblogs.com/bevin-h/archive/2012/05/10/2494828.html May 25 13:56:18 simps0n: the only line I can see is this one: setContentView(R.layout.main) May 25 13:56:39 simps0n: it's in activity's onCreate method May 25 13:57:02 Right, but go check the import list May 25 13:57:13 simps0n: ((Button) findViewById(R.id.buttonClick)).setOnClickListener(this); May 25 13:57:16 and that one May 25 13:57:57 simps0n: I do have two import lines linking to classes of another project May 25 13:58:16 yes the problem is that R.id.buttonClick is not well referenc in your project May 25 13:58:54 when i have that kind of problems, i simply mess with imports and re-writes code parts to get it fix May 25 13:59:20 hi. does anybody know if there's a way to restrict apps to armv7 on the marketplace? i've seen a lot of talk about developers have *decided* to restrict it, but not *how*. May 25 14:00:02 simps0n: not sure how to do it... May 25 14:05:27 has anyone experience with xamarin's mono for android? is it using the same APIs as android, or are there wrappers for everything to provide cross-platform usability of the .net source? May 25 14:21:11 nothing like a big dialog that says "%1$s requires an active internet connection to play." :) May 25 14:23:24 canadiancow|work: with a verbatim %1$s? May 25 14:23:28 yep :) May 25 14:23:48 has anyone here ever successfully instrumented a web form without a browser over https? May 25 14:24:00 thats what happens when you have two teams using the same library project, one of them changes the message, and the other uses the existing message in new places May 25 14:24:05 I've been trying to log in to some site with jsoup for a few hours, but still no luck. May 25 14:24:08 then it all gets merged.... May 25 14:24:13 I am sending every cookie, every hidden field May 25 14:24:16 but nada May 25 14:28:42 is this holder correctly made? http://pastebin.com/ejBxSxgH May 25 14:29:55 i'm getting a nullpointer when calling EventHolder.populateFrom( Event ) although my Event isn't pointing to null, i don't get it May 25 14:30:30 1. read http://android.skennedy.ca/?p=8 May 25 14:30:38 2. maybe your View was null in the constructor May 25 14:31:54 3. dont "throws NullPointerException" May 25 14:32:38 canadiancow i've also tried with trycatch, which used to work but was not working any longer, i'm not sure why May 25 14:32:58 dont do that at all May 25 14:33:08 that exception represents a bug in your code May 25 14:33:18 it is not something that iwll happen at runtime if the code is written correctly May 25 14:36:43 canadiancow ok May 25 14:39:41 canadiancow i didn't think the view was null i try to control that in "myGalleryAdapter", line 103, is it well done? http://pastebin.com/Qh5uKeUn May 25 14:40:03 Hey guys... I have a Button with a background image, and Gingerbread is rendering it how I would like it to, with padding above and below the image I have set as the background, however Honeycomb is not putting any padding there (I'm guessing because there is no inner content). Is there a way to make Honeycomb behave like Gingerbread in this scenario? May 25 14:40:24 it looks reasonable ddreamer0, but you should do your own debugging May 25 14:40:25 if i use the code in lines 110 - 123 it works fine but my eventoHold.populateFrom givess null poitner May 25 14:40:35 me glancing at a line of code isnt going to be nearly as helpful as you doing some real debugging May 25 14:40:57 canadiancow debugging the stack always takes me to eventoHold.populateFrom(event) but i don't know what's so wrong about it May 25 14:44:16 ddreamer0: paste us that code as well May 25 14:47:30 evancharlton you get up early May 25 14:50:46 canadiancow ok here's all the code May 25 14:50:47 http://pastebin.com/Afiehcmr May 25 14:51:06 thanks. appreciate it. May 25 14:52:37 canadiancow|work: yeah I'm usually in the office at 7 May 25 14:52:43 holy balls May 25 14:53:34 canadiancow thank you ;) May 25 14:53:44 here's an easier to read version: http://pastebin.com/6w0QW2w1 May 25 14:54:39 149: eventoHold.populateFrom(eventosMod.get(position)) is giving the nullpointer, but neither eventosMod.get(position) or eventoView are null May 25 14:54:42 i don't get it May 25 14:55:06 and the code in lines 128-140, which does the same, works just fine May 25 14:55:08 ddreamer0: you don't? May 25 14:55:18 what about eventHold May 25 14:55:25 ddreamer0: you're over-thinking this May 25 14:55:28 one second, ddreamer0 May 25 14:55:35 like... you are calling methods on two objects May 25 14:55:40 eventoHold and eventosMod May 25 14:55:42 one of them is null May 25 14:57:12 http://pastebin.com/Wr9NqwaU May 25 14:57:15 Is there a way to delete all pending notifications from my app? May 25 14:57:18 ddreamer0: ^ May 25 14:57:31 UnbertKant: keep track of their IDs May 25 14:57:45 oh no... May 25 14:57:52 That sounds awful. May 25 14:58:18 No simple "delete this app's pending notifications"? :( May 25 15:00:09 UnbertKant: look at NotificationManager and tell me May 25 15:01:05 huh, thanks! :) May 25 15:04:11 evancharlton thanks let me try... May 25 15:12:46 guys, how to output to Eclipse console some info? May 25 15:16:14 evancharlton i tried that but still nullpointer...don't know where it comes from May 25 15:16:39 eventoHold was already asigned to in my original if and else May 25 15:20:39 evancharlton the nullpointer always points to line 179 ( http://pastebin.com/6w0QW2w1 ) May 25 15:21:44 so name is null May 25 15:21:48 problem solved May 25 15:21:55 or maybe "Nombre" is null May 25 15:22:02 also: use resource files for strings like that May 25 15:22:06 easier to localize :) May 25 15:22:46 considering the implementation of the constructor... May 25 15:22:55 all of the members are null May 25 15:23:27 not necessarily May 25 15:23:31 maybe that one view just doesnt exist May 25 15:23:39 look again May 25 15:25:34 canadiancow i considered that but why shouldn't my Holder be able to access the same R.id.xxx as my getViews ? May 25 15:25:46 maybe the view doesnt have the view May 25 15:26:35 from getView i can do it fine: TextView name =(TextView)eventoView.findViewById(R.id.title); May 25 15:26:47 it doesn't matter, i can guarantee you that all the members of the EventHolder class are always null May 25 15:27:11 line 128-140 http://pastebin.com/6w0QW2w1 May 25 15:27:49 wongk how's that May 25 15:28:02 you need to find this one yourself May 25 15:28:22 i will tell you that the contructor is the issue May 25 15:28:26 aargh i do eventoHold = new EventoHolder(eventoView); May 25 15:28:27 step through it with a debugger May 25 15:29:18 Loading json data via a web service...what is the best approach: AsyncTask, Loader, ContentProvider? May 25 15:29:43 bah laziness May 25 15:29:48 halfway through setting up gitolite May 25 15:30:08 ill just give up developing then i can just throw all my code away May 25 15:30:31 is there a way to find out the phone an app is installed on from inside an app? May 25 15:31:32 i believe PackageManager is what you want May 25 15:31:37 i haven' actually used it myself May 25 15:32:02 wongk all i know how to use it the LogCat May 25 15:32:20 ddreamer0: you absolutely need to know how to use a debugger May 25 15:32:30 and it's pointing me to TextView name =(TextView)v.findViewById(R.id.title); all the time of course, it must be null May 25 15:37:05 wongk fuck there are so many vars i can't even find my holder or view May 25 15:37:12 it must be one of these listviews May 25 15:37:38 wongk must i attack a source file like it requests ? May 25 15:38:05 ddreamer0: are you trying to step into the android source code? May 25 15:39:01 ah no not really didn't know what it meant when it requested to attach source code May 25 15:39:33 that generally means your are stepping into source code that is not a part of your project May 25 15:40:01 wongk: ok don't want that for now May 25 15:41:32 ddreamer0: I told you this a few days back, but it bears repeating: a ListView of Gallery rows is a terrible design May 25 15:41:45 Guys, why Ive got java.net.UnknownHostException ? If my AVD works well with Browser May 25 15:42:07 it sounds pretty terrible May 25 15:43:10 evancharlton, that sounds awfully similar to a gridview May 25 15:43:14 or wahtever that thing is called May 25 15:43:24 so how do i go about it ? May 25 15:43:36 ddreamer0: I don't know, come up with a sane UI? May 25 15:43:48 i only know how to use listviews for now May 25 15:43:50 frames ? May 25 15:43:59 what? May 25 15:43:59 frames are the hype now right ? May 25 15:44:06 you mean fragments? May 25 15:44:12 you wouldn't use fragments for this May 25 15:44:18 solving his current problem is still a worthwhile exercise May 25 15:44:19 i mean fragments yes May 25 15:44:45 yeah now i want to solve it for now May 25 15:45:14 wongk where can i find my holders member vars in the debugger ? May 25 15:45:25 ddreamer0: this May 25 15:48:26 can someone explain "context" to me? I'm not understanding it...an example regarding location services has this line of code but doesn't explain context: "locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); May 25 15:48:26 " May 25 15:51:55 if anyone answers my question feel free to do it publicly but please send me a private ping...my IRC channel will make it hard to find when I check back May 25 15:52:45 GeeksOnHugs: read the docs on Context May 25 15:54:14 Guys, how to read multiple objects in json? like: { "object1": { "id": 12141, "name": "TestValue" }, "info": { "load": 58.4, "free": 14.6 }} ? May 25 15:54:34 how to get access to object1->id for example? with JSONObject class May 25 15:54:56 or.. how to google my question? because bad english, can't construct search query May 25 15:56:23 evancharlton I did, I wasn't getting it...in guess iis it like TApplication in Delphi? May 25 15:56:47 is there a SHA256 HMAC implementation available on android May 25 15:56:49 ? May 25 15:57:07 woozly: JSONObject object1 = (JSONObject) jsonObject.get("object1"); -- swhould work May 25 15:57:25 hm.. I have tried that.. but... May 25 15:58:34 if it's not working then there is something you are not telling me in your question May 25 16:03:28 but... I figure out what problem is.. May 25 16:03:35 my json with new lines May 25 16:03:57 congratulations May 25 16:04:56 Thank yuo! May 25 16:06:22 I'm using a HTML5WebView in my app. When I switch from the window that uses it to a different screen, the video playing in html5 keeps going in the background. May 25 16:06:59 Has anyone seen a clean way to dispose of the WebView and the media element? May 25 16:08:00 can't you just stop it in onPause? May 25 16:09:14 I think I want to completely dispose of it. May 25 16:09:18 wongk i get many class now found messages when looking for EventoHolder and then its members are left empty May 25 16:09:30 (in the debug of course ) May 25 16:11:19 aha: Mac mac = Mac.getInstance("HmacSHA256"); May 25 16:12:55 and how do i find out what kind of key the init() method expects? May 25 16:13:02 Whenever the SDK Manager starts up it takes several minutes to load addons_list-1.xml is that normal? I have decent internet so unless the file is in the 100's of MB it shouldn't take this long May 25 16:31:44 When I close my webview, it does not automatically close the WebChromeClient that is a private class. May 25 16:32:10 Does anyone know of a way to include an OnDestroy or something? May 25 16:33:44 is it cool to do the imports with wild cards (i.e. import android.locatioin.LocatioinManager; May 25 16:33:48 oops wait May 25 16:34:00 iis it cool to do it like import android.location.* May 25 16:34:19 or is it better to specify each one? May 25 16:34:32 up to you, GeeksOnHugs May 25 16:34:49 so there is no efficiency loss ? May 25 16:35:00 no May 25 16:35:07 that's purely an IDE thing May 25 16:35:08 I mean is the executible larger ? or it optomizes out unused ones? May 25 16:35:11 how to Quit from app, when Home button pressed? May 25 16:35:13 it all gets compiled fully-qualifed anyway May 25 16:35:17 woozly: don't May 25 16:35:27 kk ty May 25 16:35:39 evancharlton: I need it.. for my purpose May 25 16:35:53 no you don't May 25 16:36:10 what are your purposes woozly May 25 16:36:16 I'm curious in this discussion too May 25 16:36:30 I need to terminate my app, when I press 'Home' button on device May 25 16:36:35 this app just for me May 25 16:36:50 yah, but why since android will reclaim it when it needs the memory May 25 16:36:57 what is your reason to need to terminate it May 25 16:37:13 Dammit, I loads some json data from url onCreate May 25 16:37:23 and I need to simply reload it when App starts ) May 25 16:37:26 woozly: hold the home button, then when the task switcher appears press it again May 25 16:37:29 without any keys May 25 16:37:32 woozly: so load it in onResume May 25 16:37:37 learn to use your phone before you think you need ridiculous features. May 25 16:37:49 but technically how? May 25 16:37:59 do it on onResume, not onCreate May 25 16:38:48 evancharlton, I'm needing to listen for location...so correct way is to register listener in onresume and stop it in onpause, yes? May 25 16:39:11 Okay guys! Thanks! May 25 16:39:58 and where do I call "getsystemservice(context.locationmanager)"...should that also be in on resume or is that OK to put in OnCreate? May 25 16:42:17 GeeksOnHugs: yes May 25 16:43:36 kk ty May 25 16:48:37 someone can please tell me which api level is currently on htc desire devices? May 25 16:48:59 HTC probably could May 25 16:49:10 and it probably depends on the particular device (whether the user has updated yet or not) May 25 16:52:26 can one locationlistener be used for both network location and GPS location? or do I create two listeners? May 25 16:52:47 drindt what android version is it? May 25 16:53:13 guys , could you tell me what exactly is wrong here ?? I can't find where the hell it says -.- http://pastesite.com/37012 May 25 16:53:20 I can paste the code too if needed ... May 25 16:53:40 GeeksOnHugs, sorry the customer don't told me all that details, i just thought i can get here some information quickly May 25 16:54:19 Oh...i c...sorry...yah prolly HTC would be best source of the most likely version May 25 16:55:48 luci1093: Caused by: java.lang.NullPointerException E/AndroidRuntime(341): at com.awesomequiz.www.QuizActivity.onCreate(QuizActivity.java:32) May 25 16:55:56 GeeksOnHugs, thank you May 25 16:57:12 ... :| I still don't know exactly what's wrong lol May 25 16:57:31 luci1093: let's see QuizActivity.java May 25 16:57:37 Anyone here familiar with ContentProviders? I'm creating a content provider that fetches data from a server. I want to use a local database to cache the fetched data but I'm not sure how to handle the caching/refreshing of the data, though I do have a couple ideas. On every query, should the ContentProvider check if the data is dirty? May 25 16:57:42 luci1093: So... what does the code look like in QuizActivity.java -- especially around line 32. May 25 16:57:52 I get this error message when trying to compile one project that depends on the other one. Any clue why? http://pastebin.com/yn2EVdj6 May 25 16:58:15 evancharlton do you know about location stuff? Do I need a seperate locationlistener for network and gps or can I register the same listener for both network and gps? May 25 16:58:25 http://pastesite.com/37014 the code , it's still far from finished but I wanted to run it to see if I did some thing good lol May 25 16:59:17 I was trying to do some quiz like the logo one you can find on google play :D May 25 16:59:26 how do you send a private message? May 25 16:59:35 luci1093: My guess is that 'Check' is null... as in... it didn't get created like you think it did. May 25 16:59:58 luci1093: Check = (Button) findViewById(R.id.bCheck); is probably returning a null. May 25 17:01:23 I set it to null but It's still not working :| May 25 17:01:58 It's not meant to be null May 25 17:02:10 luci1093: Null is bad. You don't want null. May 25 17:02:23 try { /* everything */ } catch (NullPointerException e) { /* uh oh! carry on */ } May 25 17:02:25 problem solved May 25 17:02:28 luci1093: You want an actual button. May 25 17:02:56 http://qconlondon.com/london-2009/presentation/Null+References:+The+Billion+Dollar+Mistake May 25 17:03:34 auchy May 25 17:04:23 god ... I still don't see what the hell is wrong -.- May 25 17:05:02 can it be this ? if(logoname == "mcdonalds") ?? didn't actually knew how to make it check if it's the same text inserted May 25 17:05:15 no May 25 17:05:20 "mcdonalds".equals(logoname) May 25 17:07:20 off... still getting error T.T May 25 17:08:07 GeDaMo: hmm, i appreciate what NPE does, but fuck, sometimes i want to murder the inventor of NPE ;-) May 25 17:08:27 but when i finally track it down, all is better May 25 17:08:34 luci1093: do you have an item called Check in your resource file? May 25 17:09:57 well no , the image is that "right" (logo.setImageResource(R.drawable.right);) May 25 17:10:22 Check is how I named the button ... May 25 17:11:16 if the imagebutton does not have android:id="@+id/Check", then you will get your null pointer May 25 17:11:38 sorry, @+id/bCheck May 25 17:12:17 ow May 25 17:13:09 hm 1 sec , I got an ideea ,,, May 25 17:13:48 off.... nevermind , it didnt work :| May 25 17:13:52 is that idea to add android:id="@+id/bCheck" to your ? May 25 17:13:58 :D May 25 17:14:37 no , so the check button is actually only supposed to change a text to "correct" and change the ImageView May 25 17:15:15 so, how do you suppose you get a reference to the check button to check its state and set the image view? May 25 17:15:33 how can you get a reference to the check button without an id? May 25 17:17:25 what are you trying to say ? I did set the id ( Check = (Button) findViewById(R.id.bCheck); ) May 25 17:18:19 look , my code again ... http://pastesite.com/37014 May 25 17:19:22 Let's see your resource file May 25 17:19:22 you still didn't fix the string comparison May 25 17:30:47 readme , I actually did but this was the old paste :) May 25 17:31:16 I took a close look at the code but i don't know , nothing seems wrong to me :| May 25 17:31:33 luci1093: Let's see your resource file May 25 17:32:01 how should I show you that ? :S May 25 17:32:13 Pastebin May 25 17:32:36 nice package name May 25 17:32:50 think you misunderstood the concept of package naming too May 25 17:33:09 What did he/she name the package? May 25 17:33:29 http://pastesite.com/37018 like this ? May 25 17:33:31 com.something.www May 25 17:33:38 Haha May 25 17:34:31 luci1093: let's see main.xml May 25 17:35:29 [13:33] com.something.www <-- that's awesome May 25 17:35:59 http://pastesite.com/37020 I added both of them May 25 17:36:19 It's only awesome if the name of your package has 3 w's in a row May 25 17:36:25 Like WorldWideWeb May 25 17:36:28 Or something May 25 17:36:49 s/package/app/ May 25 17:38:25 how to change a buttons behavior from short click to long click? May 25 17:39:33 dominicdinada, add an OnLongClickListener ? May 25 17:40:00 canada ty May 25 17:42:40 I think I found something ... May 25 17:43:25 how do I make a button to get on another layout ... May 25 17:43:49 I mean ... how can I link a button to another layout or idk how to explain it May 25 17:45:27 ... what? May 25 17:49:37 I got 2 layouts , the main one with a button that is supposed to go to the second one .... how do I make the button to go to the second one ? May 25 17:51:02 i love tests :) May 25 17:52:01 only when they pass though May 25 17:55:13 question: i am rotating a map manually in 2.3. In ICS 4.0, does the mapview provide rotating itself? May 25 17:55:50 birbeck: Haha, it's usually the opposite for me. Writing tests are a major drag until they catch a regression that you would have never, ever, EVER thought would happen. Then I love them and all the work was worth it. May 25 17:56:26 oh yeah, that too May 25 17:56:42 quick question: I'm being told that there's a watchdog timer on bitmap loading which can just up and kill bitmaps not being loaded on the UI thread, which I've never heard of before and I assume is false, should I call shenanigans or is this something that actually exists? May 25 17:56:50 but not failing after a big refactor is nice too May 25 17:56:58 I know little about Android dev but looking at luci1093's code, do you have to do something to make a drawable active? I don't see anything other than the mcdonalds = (ImageButton) findViewById(R.id.ibMCD); for the mcdonalds drawable May 25 17:57:06 herriojr: just look at the source May 25 17:57:37 herriojr: I've never heard of such a thing May 25 17:58:07 evancharlton: tracing the source will take some time, so I was hoping someone might know off the top of their head May 25 17:58:20 GeDaMo: what do you mean by 'make it active'? May 25 17:58:28 evancharlton: thanks, that basically confirms what I was thinking May 25 17:58:39 I'm not sure :P May 25 17:58:45 herriojr: It actually exists. If a thread being watch by the watchdog spends too long without pinging the watchdog... it gets killed. Usually puts the crash log in /data/anr/ May 25 17:59:02 GeDaMo: buttons are enabled by default if thats what active means May 25 17:59:10 gabrbedd: my assumption is that is only the UI Thread that gets watched May 25 17:59:11 Ah, ok May 25 17:59:11 ok , I pretty much split the code but I still get error when trying to access the secound layout -.- May 25 17:59:52 GeDaMo: if the image button isnt showing the drawable, perhaps there is a problem with the asset, or its scaling, something like that May 25 17:59:57 herriojr: Don't assume. May 25 18:00:25 hi, can anyone pls tell how do you make git to not push out the android source folders gen folder without using .gitignore? May 25 18:00:49 gabrbedd: happen to know what the folder containing the watchdog source is called? May 25 18:01:02 nvm May 25 18:04:02 best way to use same variable and pass value on more screens...? on first screen depends on what user press i have some value(for example 5) and then when user opens second screen and press something(for example 10) it should already be value 5 + value second screen(10) so value should be 15 then and so on... thx May 25 18:04:34 herriojr: It's been a while. Look for a file called something like "Watchdog*.java" May 25 18:04:53 woohoo, finally it works yay May 25 18:05:33 gabrbedd: yup, thanks, found it May 25 18:07:00 luci1093: what was the problem? May 25 18:08:51 GeDaMo ... belive me , I still don't know ...... I did split the code, made a class for the 1st layout and made another one for the secound one (where you guess if it's right or wrong) and made the ImageButton functional ...... maybe it had something to do with the manifest idk xD , at least it works now lol May 25 18:11:46 man, I wish I hadn't been stuck on 2.1 for so long May 25 18:15:50 can anyone give me any suggestions as to why javah is giving me this error? http://pastebin.com/86vcAxBq May 25 18:16:46 Hiraghm: need to specify the classes directory within bin or whatever it is May 25 18:17:40 d:\development\projects\boing3d\bin\classes\com\xtimports\android\boing3d is the class path I specify May 25 18:17:57 and that's where my project's class files are located May 25 18:18:20 herriojr: its time to graduate to 2.2 ! froyo ftw ! May 25 18:18:21 just as ec May 25 18:18:32 ? May 25 18:18:40 hi g00s May 25 18:18:46 hi Hiraghm May 25 18:19:05 Hiraghm: yeah, so the classes dir and then you need the full package name of the class May 25 18:19:17 I don't understand :( May 25 18:19:27 so javah -jni -classpath bin/classes com.some.class.MyClass May 25 18:19:41 I'll try that May 25 18:19:50 just doing MyClass is ambiguous May 25 18:20:00 in that there could be multiple classes by that name May 25 18:20:18 cannot access com.xtimports.android.boing3d.LWObject May 25 18:20:29 let me see what you put May 25 18:21:10 javah -jni -classpath c:\development\Projects\Boing3D\bin\class\com\xtimports\android\boind3d com.xtimports.android.boing3d.LWObject May 25 18:21:24 current directory is c:\development\projects\Boing3d\src May 25 18:21:54 javah -jni -classpath c:\development\Projects\Boing3D\bin\class com.xtimports.android.boing3d.LWObject May 25 18:22:35 how's that different than what I typed? May 25 18:22:35 hi, how do you ignore files in git.. May 25 18:22:51 doh, boind? May 25 18:22:53 Hiraghm: you included the full path the the LWObject.class file May 25 18:23:04 which you just want the path to the class directory May 25 18:23:22 the class file is created when I compile my project... ? May 25 18:23:25 I need to edit it? May 25 18:23:29 no May 25 18:23:39 yes, it is generated, no you don't need to edit May 25 18:25:13 * Hiraghm scratches his head May 25 18:25:21 you're telling me it should work. But it doesn't :( May 25 18:25:35 can you ls your bin directory? May 25 18:25:45 doh! i see what you mean May 25 18:25:47 or I guess dir since you're in windows May 25 18:25:48 sec May 25 18:26:15 whoot! that seems to have worked! tyvm tyvm tyvm tySm! May 25 18:26:30 I can ls it cause I use cygwin :) May 25 18:26:42 but that appears to have been my problem. May 25 18:31:34 yup, the .h file was generated. May 25 18:32:11 I am so far over my head on this JNI stuff, it's not even funny anymore :( May 25 18:33:34 http://www.fiercedeveloper.com/story/maintaining-app-critical-its-overall-success/2012-05-25 May 25 18:33:49 http://www.fiercedeveloper.com/story/why-customer-engagement-important-41-apps-smartphone/2012-05-24 May 25 18:33:53 Is anyone here developing in a suse environment? I'm trying to get set by following the instructions at http://source.android.com/source/initializing.html but all of the packages are for Ubuntu, and I can't map many of them to suse. May 25 18:34:54 trying to backport the circular ProgressBar May 25 18:35:05 is it possible to do a layer-list with the two items rotating opposite directions? May 25 18:35:05 Hiraghm: what's the issue? May 25 18:36:05 Hiraghm: I've been dealing with a lot of JNI lately, so I might be able to help out May 25 18:40:11 I have a tutorial for loading lightwave object files. It's in C++ May 25 18:40:13 herriojr, any chance the jni stuff you were working on was ffmpeg related? May 25 18:40:36 I'm trying to access the class from java to load the object data May 25 18:40:55 there's almost no info around on using C++ classes with JNI May 25 18:41:02 ok May 25 18:41:07 and I mean JNI, not android-specific JNI May 25 18:41:12 so JNI is a C interface May 25 18:41:20 so you have to wrap your c++ in a c interface May 25 18:42:00 okay... I've never done that before... May 25 18:42:17 Hiraghm: ok, so you already have the header files that were generated May 25 18:42:22 Hi, I am new to android-dev and currently writing a small test app. I need to write some code that is going to shared across the company in other android apps.. what is the preferred way for sharing this code? should I build it as a jar? or as an android project library? May 25 18:42:24 yes May 25 18:42:31 create those functions in a .c file (or c++) May 25 18:42:44 within those functions, you can use classes or whatever May 25 18:43:11 ah. should I declare an instance of my C++ class within the C functions? May 25 18:43:14 <_ohm> Using Google Maps API, when I add a location to the map I must touch the map in order for it to refresh and show a picture at the location. Anyway I can have it refresh automatically? May 25 18:43:32 Hiraghm: yes, I believe you could also possibly do it onLoad or whatever the function is May 25 18:43:43 sleepster, i would use a library project May 25 18:43:44 tyvm! May 25 18:44:30 I had been writing some OMX code, so I've been dealing with this a lot lately May 25 18:55:48 any idea why FLAG_ACTIVITY_CLEAR_TOP wouldnt work? May 25 18:55:52 i end up with two of the same activity May 25 18:58:19 canadiancow: different task? May 25 18:58:37 hmmm May 25 18:58:43 so how do i avoid that May 25 18:59:00 canadiancow: don't start the activity in a new task May 25 18:59:06 im not starting it May 25 18:59:08 a notification is May 25 18:59:17 and the intent does not explicitly mention a new task or anything May 25 18:59:25 I believe by default it will May 25 18:59:29 for a notification May 25 18:59:39 I could be wrong on that though May 25 18:59:53 so do i want FLAG_ACTIVITY_CLEAR_TASK ? May 25 19:00:19 No, notification should deliver to the same task May 25 19:00:57 canadiancow: it's hard to say without knowing the entire use case May 25 19:01:08 i have an app that's open on activity A May 25 19:01:16 i have a notification that launches A with FLAG_ACTIVITY_CLEAR_TOP May 25 19:01:25 when i select the notif, i end up with A A May 25 19:02:15 is the activity already open when it is clicked? May 25 19:02:19 yes May 25 19:02:50 what if the activity isn't opened, what happens? May 25 19:02:59 as in you hit HOME before pressing the notification May 25 19:03:18 one sec May 25 19:03:54 canadiancow: also, is your activity a singleInstance or singleTask? May 25 19:04:30 FLAG_ACTIVITY_SINGLE_TOP May 25 19:04:33 it is neither May 25 19:04:43 and if it's already in the background, i sitll get two May 25 19:04:43 dmalice might have this one May 25 19:04:47 and set singletop in activity manifest? May 25 19:04:47 so exactly the same May 25 19:04:48 otherwise it won't call onNewIntent May 25 19:05:05 i dont want onNewIntent...or do i :S May 25 19:05:34 or rather, do i want the activity to be recreated May 25 19:05:35 hmmm May 25 19:05:47 maybe this should be a feature request -> a way to view the task history May 25 19:05:54 for debugging purposes May 25 19:06:45 if you set the singletop flag, it will skip onCreate and go to onNewIntent, i'm not sure if that's what you need May 25 19:06:56 but i believe that is the convention for getting it to not launch A a second time May 25 19:07:06 don't take my word for it though =P May 25 19:08:07 if it's being created by a notification though, you might need to use singleTask instead of singleTop in the manifest...try both and see which one works? May 25 19:08:49 yeah, PendingIntent requires FLAG_ACTIVITY_NEW_TASK May 25 19:10:49 yeah, single top should do it May 25 19:10:59 as in FLAg_ACTIVITY_SINGLE_TOP May 25 19:11:31 or rather FLAG_ACTIVITY_CLEAR_TOP May 25 19:11:53 clear top is what im already using ! May 25 19:12:06 you should be getting onNewIntent() May 25 19:12:09 guys, how do you change the Image on an ImageButton in code ? May 25 19:12:28 canadiancow: http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html#TaskLaunchModes May 25 19:12:46 I tryed imgbut.setImageResource(R.drawable.right); but it gives me error May 25 19:13:20 Yep, that's how you do it May 25 19:13:28 I think I remember messing with that as well at some point canadiancow, and I had to do both clear_top and single_top May 25 19:13:46 single_top isnt quite hwat iwant May 25 19:13:52 i might have A->B, and then it launches A May 25 19:13:57 so the first A wont be at the top already May 25 19:14:23 CLEAR_TOP | SINGLE_TOP May 25 19:16:32 canadiancow|work: dunno why you are experiencing issues with this, i have used CLEAR_TOP fine May 25 19:16:38 its also in iosched http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/util/ActivityHelper.java#122 May 25 19:17:04 dmalice: that doesnt owrk May 25 19:17:09 g00s, it's only on certain devices too May 25 19:17:16 like my galaxy nexus and neuxs one dont experience it May 25 19:17:27 but i have a SGS2 that does May 25 19:17:32 O.o May 25 19:17:47 canadiancow: you may need all 3 of the flags May 25 19:18:07 i prefer even numbers with flags May 25 19:18:13 FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_SINGLE_TOP | FLAG_ACTIVITY_CLEAR_TOP May 25 19:18:27 hmm 9.9 May 25 19:18:28 i dont want a new task May 25 19:18:32 a new task is the opposite of what i want May 25 19:18:49 canadiancow: read the docs on it May 25 19:19:00 canadiancow: if a task for your application already exists, it uses that task May 25 19:19:13 anyways, PendingIntent forces you to use FLAG_ACTIVITY_NEW_TASK May 25 19:19:18 if you read the docs on that May 25 19:19:29 canadiancow|work: is your intent implicit or explicit (do you specify the class or not) May 25 19:19:42 exp May 25 19:20:40 guys , how do I change an ImageButton image in code ? May 25 19:20:56 I've set an image in the xml but when I try to change it in code I get error May 25 19:20:59 canadiancow|work: is it the root of the task stack, from the launcher ? May 25 19:21:00 luci1093: setImageBitmap or setImageResource, etc May 25 19:21:22 herriojr, all three do not work either May 25 19:21:22 luci1093: oh, I'm sorry, I mean setBackground May 25 19:21:27 i still ahve two distinct activities May 25 19:21:28 I tried the setImageResource but it gives error May 25 19:21:45 hmm May 25 19:21:52 will it work if I got the 1st image set in the XML ? May 25 19:22:09 luci1093: are you trying to change the background or foreground? May 25 19:22:27 um, the image in the button lol May 25 19:22:36 not sure witch one it is May 25 19:22:55 ow , I sed it as a background May 25 19:22:59 *set May 25 19:23:03 what's theerror you're getting? May 25 19:23:19 android:background="@drawable/mcdonalds" May 25 19:23:23 oh, then you need to setBackground* May 25 19:23:25 pretty much fore shutdown May 25 19:23:34 ok 1 sec , I'll try May 25 19:24:28 ImageButton imgbut = (ImageButton) findViewById(R.id.ibMCD); imgbut.setBackgroundResource(R.drawable.right); , like this ? May 25 19:24:46 setImageResource May 25 19:25:06 luci1093: again, depends on whether you're replacing the foreground or background May 25 19:25:19 I set it as a background in XML May 25 19:25:24 but it seems I still get error May 25 19:25:25 android:src is the image in an imagebutton May 25 19:25:39 You'll have to be more specific May 25 19:25:42 http://i.imgur.com/jacoj.jpg May 25 19:25:57 btw , does it matter if in the same IF statement I got another setImageResource()? May 25 19:26:01 android:src is the foreground and android:background is the background May 25 19:26:46 luci1093: so when you call a function to set something on a view, it requests that it be updated sometime in the future May 25 19:27:04 as in, it changes the values, but requests that it redraws it sometime in the future May 25 19:27:16 so if you change it multiple times, it won't take effect right away May 25 19:27:22 so there will be no flicker May 25 19:27:58 I get force close error T.T May 25 19:28:07 can you show us the errors? May 25 19:28:16 ofc , 1 sec May 25 19:28:20 pastebin it May 25 19:28:24 from #iphonedev channel: Me: "Siri, from now on call me Noosh" (which is my nickname). Siri: "Ok, from now on I'll call you douche". May 25 19:28:24 wtf May 25 19:28:26 do not paste it into this window May 25 19:28:39 * Hiraghm rofls on the floor rofling redundantly May 25 19:28:50 http://pastesite.com/37027 May 25 19:28:58 I know lol :D May 25 19:29:09 it's a null pointer exception... May 25 19:29:18 mcdonalds.java May 25 19:29:20 what's on line 48? May 25 19:29:32 imgbut.setBackgroundResource(R.drawable.right); May 25 19:29:34 ofc ... May 25 19:29:40 canadiancow|work: maybe try adb shell dump sys activity like here http://stackoverflow.com/questions/2442713/view-the-tasks-activity-stack May 25 19:29:41 imgbut is null May 25 19:29:59 luci1093: as in you never set the variable in onCreate() May 25 19:30:14 I set it in the IF statement May 25 19:30:26 ImageButton imgbut = (ImageButton) findViewById(R.id.ibMCD); May 25 19:30:29 just above it May 25 19:30:38 should I do it in onCreate() ? May 25 19:31:05 btw, I've set this in another class too , could it influence it ? May 25 19:31:23 in that class I'm not doing anything with it , besides setting the onClick ... May 25 19:31:42 I haven't been following (busy rofling) but do you set it AFTER SetContentView()? May 25 19:31:58 fdsa;lfds May 25 19:32:02 new task doesnt even make a new task May 25 19:32:06 hi canadiancow. well said May 25 19:32:06 it puts it in the same stupid task May 25 19:32:13 1 sec , I'll try set it in OnCreate :| May 25 19:32:55 luci1093: if you can't find it with findViewById() it means there's no view with that id in the hierarchy May 25 19:33:01 I'm new to Android development, and I just created a new project, and played a bit with it. Which part of the project should be commited to a version control system? May 25 19:33:02 same error May 25 19:33:15 o.O May 25 19:33:25 mdim: do a clean and that should be committed May 25 19:33:50 mdim: minus the local.properties May 25 19:33:51 herriojr: how to do that? May 25 19:34:06 so having it in 2 classes can't influence right ? May 25 19:34:07 clean build May 25 19:34:11 mdim: what are you using to develop with? eclipse? May 25 19:34:16 nope, ant May 25 19:34:21 o.O May 25 19:34:22 mdim: ant clean May 25 19:34:22 herriojr: I mean, CLI May 25 19:34:23 herriojr: look for a sample gitignore for android; even if you don't use git it will give you some info May 25 19:34:30 oopem not herriojr May 25 19:34:36 herriojr: thx! May 25 19:34:42 mdim: ^^^ May 25 19:34:46 CLI? You're developing on an Amiga? May 25 19:34:55 ignore gen/ bin/ etc May 25 19:35:05 g00s: I do use git May 25 19:35:49 luci1093: be more specific May 25 19:36:58 g00s: this seems reasonable: http://stackoverflow.com/questions/3325736/eclipse-android-and-gitignore May 25 19:37:26 in the first class I have it like this : mcdonalds = (ImageButton) findViewById(R.id.ibMCD); mcdonalds.setOnClickListener(this); and I'm only setting the OnClick to access the secound class where I have the same button like this: imgbut = (ImageButton) findViewById(R.id.ibMCD); imgbut.setBackgroundResource(R.drawable.right); May 25 19:37:57 luci1093: do they both use the same layout? May 25 19:38:02 yes May 25 19:38:12 ups May 25 19:38:12 no May 25 19:38:28 there are 2 separate layouts , my bad May 25 19:38:31 does the id ibMCD exist in both layouts? May 25 19:38:35 mdim: yeah May 25 19:39:25 the ImgButton goes to the secound layout where I got a button that is supposed to change the image in the ImgButton (in the 1st layout)... May 25 19:39:37 when pressed ... May 25 19:39:53 luci1093: yeah, so think of Activities as completely separate entities that have no knowledge of each other May 25 19:40:24 herriojr, what convolutions will I have to go through to get the mesh data from the C++ side to the Java side? Can I copy the array of vertices values from my C++ to a Java array in my C "glue" functions? May 25 19:40:27 ok... May 25 19:40:51 luci1093: which means neither have any knowledge about the layout of the other May 25 19:41:06 http://www.funnytude.com/dont-wanna-tennis-anymore.html <-- how I imagine luci1093, except replace "tennis" with "android" :) May 25 19:41:49 Hiraghm: I'm assuming yes, it sounds like you're doing something OpenGL related which I don't really have experience with May 25 19:43:10 cock and balls May 25 19:43:16 should I try and set the ImgButton background in code in the 1st class and try and modify it in the secound one ? (ps. 1st class refers to the 1st layout and the secound one to the 2rd layout) May 25 19:43:19 i have two htc inspire 4gs running 2.3.3 May 25 19:43:23 one of them has the bug May 25 19:43:25 the other does not May 25 19:43:28 how would I return an array to the java side? I've read some things about jint and jString that I didn't quite follow and made me nervous. May 25 19:43:44 what other software is on the two machines? May 25 19:43:47 canadiancow? May 25 19:43:59 luci1093: so there are a few ways you could do this, you could startActivityForResult() or you could stuck something in SharedPreferences about what to show May 25 19:43:59 nothing special May 25 19:44:02 a bunch of zynga games :P May 25 19:44:06 luci1093: depending on the use case May 25 19:44:42 Hiraghm: there's lots of docs on JNI, they'll show you how to pass data and what data can be passed May 25 19:44:50 kay thx May 25 19:46:12 herriojr , not sure how am I supposed to use any of those .... I think I used the startActivityForResult() some time in the past but I don't remeber how to use it anymore May 25 19:49:09 luci1093: there are docs on it May 25 19:51:11 hello everyone....I have a question....I have different paths that draw something (like a square) how can I combine all those path into an object so that I can move it around etc... May 25 19:51:38 Galactic: that's so generic May 25 19:51:44 Galactic: cut and paste? May 25 19:52:06 ? May 25 19:52:25 use a View? May 25 19:52:27 how can I manipulate paths May 25 19:52:29 a Drawable? May 25 19:53:07 I am using surface view...is working fine I can draw the shape that I want but I need to move it. May 25 19:53:12 i see that i did not interprest your question correctly May 25 19:53:30 redraw it? May 25 19:53:49 Galactic: translate the canvas? May 25 19:53:53 herriojr , I seriously don't see why It needs to get so complicated to change a button background trough code -.- .... I just tried to delete the background in the XML and then set it trough code but it doesn't let me (enither of the setImageResource or SetBackgroundResource) May 25 19:54:17 luci1093: again, 2 different activities, they have no notion of each other May 25 19:54:44 and how am I supposed to connect them ? lol May 25 19:54:45 what about if I want to create another instace of the same shape? May 25 19:54:54 luci1093: through intents May 25 19:55:00 intents connect 2 activities May 25 19:55:02 Galactic: draw it May 25 19:55:45 and can II use intents to change an image ? X_X May 25 19:55:47 just create a method that takes a starting x,y and then draws the shape from that origin point May 25 19:55:54 and call that method on motionevent May 25 19:56:04 luci1093: I told you to use startActivityForResult, it's not my fault if you don't want to look up how to use it May 25 19:56:16 startActivityForResult is unrelated May 25 19:56:24 unless there is a result from th activity May 25 19:56:29 wongk: no it is not, May 25 19:56:44 which didn't seem to be implied from the question May 25 19:56:51 how canvas.translate works, what does it do? May 25 19:57:00 wongk: the issue is she's starting an activity and wants to modify something in the previous activity that started the one on top May 25 19:57:07 is the flow A > B > A, or just A > B May 25 19:57:12 oh May 25 19:57:17 carry on, then ;) May 25 19:57:53 herriojr, the thing I'm trying t do it actually that game where you're supposed to guess the logo .... May 25 19:58:19 luci1093: can you rephrase that? May 25 19:58:57 trying to do something similar to this https://play.google.com/store/apps/details?id=net.jroen.LogoQuiz&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5qcm9lbi5Mb2dvUXVpeiJd May 25 19:59:52 luci1093: shouldn't you start with something a little simpler? May 25 19:59:57 is http://unity3d.com/ worth a squirt? May 25 20:00:01 luci1093: again, if you're clicking on the button and bringing up a new activity and need to pass the result back to the previous activity, use startActivityForResult May 25 20:00:09 and my problem ocurrs after you guessed the "logo" the small image in that menu should change May 25 20:00:49 Hiraghm, I believe unity is the preferred 3d game engine May 25 20:01:04 o.O May 25 20:01:25 preferred as in most used, or preferred as in approved by Google? May 25 20:01:31 most used May 25 20:01:37 Hiraghm: I'm on #unity3d right now. Come on other. There's also #heroengine which I'm also on but Unity3d is likely to be better for you. May 25 20:01:37 it costs a pretty penny May 25 20:01:40 herriojr , and should I do that in the 1st or secound class ? May 25 20:02:18 dmalice: Only if you get the Pro version. The free version is actually quite powerful with plenty of features. May 25 20:02:19 first, let's refer to these as Activities May 25 20:02:32 yea May 25 20:02:41 we looked into it, but it was more than we needed since our games were just 2d May 25 20:02:47 we ended up just using libgdx May 25 20:02:51 ok.. May 25 20:03:20 You can also do 2D, but it's not necessarily best for all games. May 25 20:03:51 luci1093: http://tinyurl.com/8yzd8x6 May 25 20:04:14 yeah, we've been thinking about going pro for it for some upcoming stuff though May 25 20:04:23 holy shit is it expensive May 25 20:04:39 $1500... plus another $1500 for android support... May 25 20:05:09 yeah it's much for independent devs, but most companies can afford that May 25 20:05:13 libgdx? where've I seen that before... is that by the same guy that created the md2 mesh loader code for android? May 25 20:05:30 couldn't tell you, but it's open source and well-maintained May 25 20:05:50 we originally wanted to use cocos2d, but the android support for that is slim to none May 25 20:05:50 Is Log.d() and friends buffered? May 25 20:06:07 I'm getting onCreate() calls when the app is over... May 25 20:06:12 we wanted to use cocos2d because the iOS devs were using it for their version of the game May 25 20:06:17 If Log.d() is appropriate May 25 20:07:18 it's a neat library because there's really nothing android about it May 25 20:08:11 the game itself will actually run on desktop in windows so it makes dev/testing on the fly pretty quick since it doesn't need to compile and copy to the device and then start up May 25 20:08:13 herriojr: off, I'm a bit to tired to read that now , I'll try and do it tomorrow... thankyou for the advice and sry If i've stressed you :S May 25 20:08:19 then you just wrap it in an android activity and you're off May 25 20:10:26 I've looked at a lot of game engines. There's so many, covering different aspects with different foci, constantly changing (or dying off) that it's very difficult to stay up to date. May 25 20:12:04 sounds like javascript toolkits May 25 20:12:40 pick one and hope it's still around in a year May 25 20:13:05 Or 6 months, if not less. May 25 20:35:38 <_ohm> Currently using the Google Maps API, when I add markers to the map I have to touch the map in order to get them to appear. Any way I can have the map refresh on its own? May 25 20:36:15 AJAX? :) May 25 20:36:40 _ohm: invalidate? May 25 20:39:05 <_ohm> evancharlton, is that an overlay function? May 25 20:39:22 no, it's a View function May 25 20:41:09 <_ohm> evanchalton, thank you so much! May 25 20:51:25 Beer makes me happy. May 25 20:51:46 ericrichardson++ May 25 20:51:54 Especially beer at work. May 25 21:03:41 why you are a simple man to please, aren'tcha. May 25 21:12:17 when tried to install the apk to my cellphone of a sample application i'm coding in eclipse, i got an icon for every activity , any idea what's wrong ? May 25 21:17:59 humm... what's your androidmanifest.xml look like ? May 25 21:21:10 f00bar80: what bankai_ said; i bet you have specified in your manifest that all of the activities have MAIN activities and are in the LAUNCHER category May 25 21:21:38 hello guise ... im a 3d generalist for hire : http://lancemaker.wordpress.com/ May 25 21:21:51 check out my portfolio and contact me if u are interested May 25 21:24:46 whats a generalist May 25 21:24:47 why would developers want to hire you? May 25 21:25:13 opposite of a specialist ldo May 25 21:25:29 does he mean 3d in android? May 25 21:25:39 like opengl? May 25 21:25:45 note that the channel topic says "Please don't advertise websites, jobs, or contracts" May 25 21:26:09 there are other venues for that sort of thing May 25 21:26:36 yyep, and I think there are probably few people who hire here and more people who want to be hired? lol May 25 21:28:02 i'm thinking of buying a commodore 64 May 25 21:29:23 protip: Reagan isn't president any more. May 25 21:30:21 who's that? May 25 21:30:32 just for nostalgia...I was just reading you can browse the web on them...there's an active community of C64 users apparently May 25 21:35:18 is there an exhaustive document explaining the change in behaviours between android:targetSdkVersion=13 (last HC version) and android:targetSdkVersion=14 (first ICS version) when the app run on ICS ? May 25 21:38:17 bubbleguuum: http://developer.android.com/sdk/android-4.0.html ? May 25 21:38:49 bubbleguuum: http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH May 25 21:39:21 thanks May 25 21:41:05 not sure it is exhaustive though, it doesn't mention the AsyncTask ThreadPoolExecutor change May 25 21:41:30 that's not a consequence of targetSdkVersion change May 25 21:41:56 not sure about that May 25 21:42:02 Does anyone know if it's possible to use emma to get code coverage on a library project? I am able to get coverage reports on the main project it's connected to, but not the library project the main project uses... May 25 21:42:26 i've tried to webview to show youtube video in my app in this way http://pastebin.com/3amsQuiQ , but the video comes up and when hit the play , i didn't get anything showing up , any comment ? May 25 21:43:23 why are you using a webview to show a youtube video? May 25 21:45:25 evancharlton, i was searching on how to do so, and that's what i foudn. May 25 21:46:22 evancharlton, what other way i can use and whats wrong with this one? May 25 21:46:49 In my program I need the user to select a file, is there a way to have them select which file explorer to use and then allow that application to return the file they selected. I have seen this in a few apps I think but not sure how to go about it. Id rather no create my own file explorer May 25 21:48:25 I have a service that runs in a infinite loop. It runs for a while like 30 min or so, then somehow stops and I have to manually invoke the service again. Any thoughts on what might be stopping the service? May 25 21:48:31 like gmail does it when you click attach file it pops up with a dialog so that you can select which file manager to use May 25 21:51:12 f00bar80: send the user to the youtube app May 25 21:51:47 http://code.google.com/p/android-youtube-player/ May 25 21:52:03 Have you guys noticed that Camera.apk changes orientations *way* faster than other apps? Jesus, it's so much faster. May 25 21:53:47 evancharlton, any sample code May 25 21:56:03 is it possible to configure a ICS AVD emulator to not have a menu key? It is easy to make it display the on-screen home/back key but it still thinks there is menu key. May 25 21:59:52 hi.. when i call getBlob on a MatrixCursor returned by managedQuery I get this exception java.lang.UnsupportedOperationException: getBlob is not supported May 25 22:00:07 doesn't anyone know what's going on here? May 25 22:03:58 f00bar80: startActivity May 25 22:07:11 evancharlton, this is correct >> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM"))); May 25 22:08:01 you got to love Google for deprecating the physical menu button... What's hot today will be deprecated tomorrow. May 25 22:09:14 One day people will LOL at Actionbars. May 25 22:10:48 f00bar80: looks about right. May 25 22:11:03 bubbleguuum: menu buttons were hot? May 25 22:11:06 hopefully, $deity thought of ViewConfiguration.get(context).hasPermanentMenuKey() May 25 22:11:22 bubbleguuum: hehe, they do waste a lot of screen real estate :) May 25 22:11:31 I wish my device had a menu button :P May 25 22:11:32 maybe not hot but at least there were on every device May 25 22:11:45 Well, a physical one May 25 22:11:56 bubbleguuum: Not mine :( May 25 22:12:13 * sonicrules1234 has a kindle fire May 25 22:12:26 oh May 25 22:12:42 I do have ICS on it though May 25 22:12:45 Which is nice May 25 22:12:57 http://allthingsd.com/20120525/orange-exec-android-windows-phone-and-iphones-are-gas-guzzlers-and-developing-world-needs-a-prius/ May 25 22:12:57 evancharltonn, k but actually i don't want to show youtube related videos that's why i used webview to show only the video and no youtube's data May 25 22:13:30 That comparison makes no sense May 25 22:13:30 evancharlton, so is there no way i can make only this video to be the only shown video? May 25 22:13:33 look at the project dmalice linked May 25 22:13:40 android-youtube-player May 25 22:13:45 sounds like what you're looking for May 25 22:14:41 what is meant to go into an activities onStop()? the docs mention things like saving to persistent storage, but if onStart() restores all your widgets data via bundles, is there a need to store stuff from your activity to persistent storage in onStop()? May 25 22:17:07 write in-flight data to disk, close files, etc. May 25 22:17:34 ah I see, thanks. May 25 22:17:48 i do that in onPause :| May 25 22:17:59 onStop might not be called May 25 22:18:41 wut? May 25 22:18:47 probably the only thing i do in start/stop is bind to service, or enable/disable updates to ui which are not being persisted May 25 22:18:50 I take it onPause is only for quick actions like releasing some system resources such as the gps or camera (looking at the docs, I'm new to android) May 25 22:19:09 pause == "screen turned off and you're behind the lock screen, but still frontmost" May 25 22:19:15 stop == "you aren't frontmost UI any more" May 25 22:19:23 yeah … May 25 22:19:43 see also onSaveInstanceState() May 25 22:19:50 uh May 25 22:19:51 the main take away I got from the docs is that onPause should be quick, not sure what your guys take is May 25 22:20:09 "onPause() is where you deal with the user leaving your activity. Most importantly, any changes made by the user should at this point be committed (" … from the docs May 25 22:20:10 they should all be quick May 25 22:21:44 g00s: mmmmyeah May 25 22:21:52 but you won't be killed bewteen onpause and onstop May 25 22:22:10 what circumstances are you seeing where onstop is not reliable? May 25 22:22:23 (onDestroy() is dfefinitely often never called, but that's a different case) May 25 22:23:04 maybe i see different behavior on my old droid-1 running froyo, but i'm pretty sure i have seen onPause() be the last thing called before nukage May 25 22:23:09 I'm trying to get my head around activity lifecycle and when to do what where :D May 25 22:24:35 this is pretty cool, i bet the android designers would like this http://blogs.adobe.com/brandexperience/2012/05/16/the-cs6-desktop-brand-system/ May 25 22:24:54 they go into how they created a unified imagery for their various products in the family May 25 22:26:27 I get my GN in about 3 weeks :) May 25 22:31:11 so has anyone else ran into this problem with calling getBlob on a Cursor? the 'not supported' exception ? May 25 22:31:49 blobs in databases are often a bad idea May 25 22:32:00 but no, i haven't run into that … because i avoid it :) May 25 22:32:20 i'm using couchdb, and the blobs are attachements which is the standard solution for blobs May 25 22:32:37 oh, so this isn't sqlite then ? May 25 22:32:42 my only problem is that i've written a custom cursor to talk with my touchdb May 25 22:33:26 and then when i want to return the cursor (containing the blob data) i get this exception that indicates getBlob is not supported May 25 22:33:32 nope not sqlite May 25 22:34:10 how does couch db perform? May 25 22:34:19 are you using a specialized build? May 25 22:34:37 i'm using touchdb May 25 22:34:39 isn't CouchDb in a separate process ? May 25 22:34:49 its really frustrating because i can see that matrixcursor supports getBlob, but even if i return the matrixcursor, i get the exception from AbstractCursor May 25 22:34:55 * g00s looks up touchdb May 25 22:35:16 i can't understand why it doesn't just use the frickin function in MatrixCursor and return the fricken blob May 25 22:35:21 I'd love to have a subset of neo4j on Android May 25 22:36:12 g00s: touchdb doesn't run as a separate process and is awesome May 25 22:36:17 i've never needed a graph db yet. what are you using it for JakeWharton ? May 25 22:36:27 couchdb is the worst ever May 25 22:36:32 g00s: secret things May 25 22:36:35 :) May 25 22:36:44 how is it the worst ever? May 25 22:36:59 last time I looked it was slow as hell and used >9000mb of ram May 25 22:37:11 i think you're talking about mobile couchbase May 25 22:37:13 i wonder if oriented runs on android May 25 22:37:18 deepwinter: couch.io May 25 22:37:18 *orientdb May 25 22:37:31 evancharlton: yeah that's mobile couchbase May 25 22:37:33 touchdb fixes all those issues May 25 22:37:50 deepwinter: what version of Android? May 25 22:38:05 (also, pastebin the stack trace for where the exception is being thrown from?) May 25 22:38:16 deepwinter: so i guess you are using this? https://github.com/couchbaselabs/TouchDB-Android May 25 22:38:22 that is correct May 25 22:38:29 but the issue has nothign to do with touchdb May 25 22:38:54 interesting May 25 22:39:05 all that's going on here is that AbstractCursor doesn't implement getBlob, and i can't get android to use MatrixCursors getBlob call May 25 22:39:07 * ctate points to the imgur link in the channel topic May 25 22:39:55 http://pastebin.com/GnwzQxys might explain a little better May 25 22:40:00 * g00s shudders thinking about MatrixCursor May 25 22:40:27 g00s: i mean totally May 25 22:40:53 hm. so it's calling your BlobCursor's method May 25 22:41:06 and that is ... proxying some other cursor instance? May 25 22:41:10 sure, which extends matrixcursor May 25 22:41:31 you still have to interface with TouchDB using HTTP despite being a local, in-process DB?!? May 25 22:41:59 https://github.com/couchbaselabs/TouchDB-Android/blob/master/TouchDB-Android-TestApp/src/com/couchbase/touchdb/testapp/javascript/tests/JavaScriptDesignDocument.java#L32-34 May 25 22:42:23 JakeWarton: i believe it's hack so you can still use EKTorp to interface with Touchdb. There isn't actually a socket involved, at least that's my understanding May 25 22:42:32 can you show BlobCursor.getBlob() ? May 25 22:43:31 lets just do this, i don't even have to use BlobCursor, it's not even doing anything May 25 22:43:42 i just want to call MatrixCursor.getBlob() May 25 22:44:05 which does exist, i've looked at the sources.. hold on a sec i'll pastebin something that explains this better May 25 22:47:01 ok here we go May 25 22:47:02 http://pastebin.com/hbxCdmLy May 25 22:47:33 I would expect, that since I'm calling getBlob on a MatrixCursor that the function getBlob() in matrix cursor would be called May 25 22:47:58 instead I get an exception in AbstractCursor, and casting gives me a casting exception May 25 22:48:05 infuriating! May 25 22:53:50 so no takers? May 25 22:54:13 Takers on what? May 25 22:57:18 What's the best way to set a specific leading on a TextView in XML? (leading == inter-line spacing.) I see lineSpacingExtra, but that's a delta from an unknown value rather than an absolute measurement. May 25 23:00:38 err, i don't think lineSpacingExtra is a delta May 25 23:00:44 * ctate | Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). May 25 23:01:24 and ofc you'll probably want to use sp May 25 23:01:38 use px. what could possibly go wrong? May 25 23:01:47 * evancharlton leaves before romainguy_ kills him May 25 23:02:29 don't worry about HIM. May 25 23:02:35 >:-( May 25 23:02:53 hmm, is sp new, everything I've seen so far mentioned dp May 25 23:03:58 how can I tweak an ICS AVD so ViewConfiguration.get(context).hasPermanentMenuKey() returns false ? May 25 23:05:01 sp isn't new but it's pretty much only used when dealing with text metrics May 25 23:05:27 okay May 25 23:07:33 interesting, somehow the loadermanager detects if a returned loader is a non-static inner class? May 25 23:08:03 i think it is not allowed May 25 23:08:18 well, it should not be an inner class that is not static May 25 23:08:24 why does it care May 25 23:08:24 :) May 25 23:08:27 leakage May 25 23:08:28 that's the main question May 25 23:08:46 ugh, let me leak if I want to May 25 23:08:55 it's not like android doesn't let you shoot yourself in the foot elsewhere May 25 23:09:02 hehe May 25 23:09:14 bubbleguuum: reflection, also don't May 25 23:09:18 i prefer the noisy cricket myself May 25 23:09:18 * pfn looks for a git blame/log of the logic behind this May 25 23:09:43 C on the Android - Which C does it resemble the most: ANSI C, C++, Objective C or C# ? May 25 23:09:54 obj-c for sure 9.9 May 25 23:09:56 I want to dive into NDK May 25 23:10:04 for ndk, you can use c or c++ May 25 23:10:06 bubbleguuum: https://github.com/JakeWharton/ActionBarSherlock/issues/478 May 25 23:10:09 C# isn't C May 25 23:10:18 bubbleguuum: but don't :) May 25 23:10:20 pfn: Derivated then May 25 23:10:23 and objC can be used if you want to put in the legwork May 25 23:10:25 -d May 25 23:10:31 phellarv, it's as much a C derivative as java is May 25 23:10:34 ;-P May 25 23:10:37 JakeWharton: let me see what you posted.. May 25 23:10:59 Java is a derivate of TCL imo. May 25 23:11:37 Does the fragment manager not save the backstack when you leave the activity and come back to it? May 25 23:11:37 I May 25 23:11:45 I totally thought I remembered it doing that like 6 months ago May 25 23:12:09 pfn: So - Basically C or C++ is the way to go for basics. May 25 23:12:14 JakeWhartoh: my purpose for hasPermanentMenuKey() is just to display a custom button to show the menu (openOPtionsMenu()) on an activity *without* ActionBar May 25 23:12:25 and I'm trying to simulate that with an ICS AVD May 25 23:12:35 oh, there's a flag you can toggle on an AVD May 25 23:12:41 what is it ? May 25 23:12:41 never used it May 25 23:13:18 hi wongk May 25 23:13:22 u around ? May 25 23:13:50 not really May 25 23:14:07 phone interview any minute May 25 23:14:19 ok ;) May 25 23:14:43 good luck May 25 23:14:48 thx May 25 23:14:54 just wanted to tell you i learned to use the debugger May 25 23:15:01 for sure good luck May 25 23:15:07 Fix issue #3301572: onCreateLoader must not be a member class: VolumeMetadat May 25 23:15:10 damnit, want more detail May 25 23:15:14 and you were right, my holders vars were all null May 25 23:15:44 good luck with the interview ! May 25 23:16:10 trying to do something by example but dont know how to put correct... myIntent.putExtra("key", "value"); ... as i see in official docs key - The name of the extra data, with package prefix... if my package is android.com.class1 and variable i use is "myNum" i write this myIntent.putExtra("android.com.class1.myNum", myNum); ... it does not work, i guess i am doing something wrong but dont know what... thx May 25 23:16:13 man, I think I have to turn down both of my offers because I have obligations that are gonna run through august :-/ May 25 23:16:22 pfn: even if it was fixed, you would have to deal with it for years May 25 23:16:30 well, it's in the support lib May 25 23:16:35 I /could/ just patch it myself May 25 23:16:58 so, who wants to explain what bug #3301572 is? May 25 23:17:03 CursorLoader has some concurrency issues; i filed a bug on that May 25 23:17:13 * g00s yawns May 25 23:19:16 is there a simple call to play the notification sound without an actual notificiation May 25 23:20:13 or any sound for that matter, but something that is already on the system May 25 23:21:17 THe HTC Onex X is a phone full of surprising weird failures. You get something new every week May 25 23:22:28 stupid non-static member reference, I'm still gonna pass 'this' into my loader May 25 23:22:33 it's still gonna be just as leaky May 25 23:22:44 * pfn boggles at the strangest design decision May 25 23:23:02 pfn: make sure when the loader gets recreated it doesn't leak stuff, i dunno, on orientation change or something May 25 23:23:12 i forgot how this worked, if i am talking nonsense May 25 23:27:49 g00s, irrelevant to how my loader works May 25 23:27:59 but if the loader is being recreated, a leak doesn't happen May 25 23:28:37 if the loader is a non-static nested of an activity, and it's cached, I suppose that can certainly be irritating May 25 23:28:55 things that are awesome: when you cell phone doesn't ring, but you get a voicemail notification from the hiring manager that is supposed to interview you May 25 23:29:03 I hate that May 25 23:29:13 stupid cellphones not ringing are the worst May 25 23:29:26 no doubt May 25 23:31:12 lately, everytime I've done phone screens, I've been by my computer May 25 23:31:12 Does anyone need a flexible and easy to use library for EditText input validation? May 25 23:31:22 and can use google-voice + google-talk May 25 23:31:55 and that has worked completely reliably May 25 23:32:00 except when chrome flakes out May 25 23:32:04 then I can't receive audio May 25 23:32:16 yeah, i use Skype for important stuff like that. has never failed. May 25 23:32:47 I don't like skype May 25 23:32:59 i even find Skype + iPod touch over wifi has been super reliable May 25 23:33:00 and I won't use skype, for philosophical/technological reasons May 25 23:33:14 oh, and skype on android is stupid; it doesn't even work properly with bluetooth headsets May 25 23:33:37 never tried it on android. iOS version works very well. May 25 23:33:57 awesome call quality May 25 23:34:04 it seems to detect that there's a bluetooth headset, but never switches the audiostream to bt headset May 25 23:34:21 no matter how you touch/fiddle the bt icon in skype May 25 23:34:55 :( May 25 23:35:32 how to set tools:ignore for few attributes? May 25 23:38:03 oh, just comma... :) May 25 23:40:21 if you had the ability and go back in time and learn one skill that would be of great value to you at this moment, what skill would that be? May 25 23:40:46 are you doing homework? :P May 25 23:40:49 making money May 25 23:41:00 that was for amoxibos May 25 23:41:02 amoxibos: deliberate practice May 25 23:41:10 a meta skill May 25 23:41:12 wongk-home: it was fot him too :) May 25 23:41:17 ohhh May 25 23:41:18 for* May 25 23:41:38 I think, 'making money' is very helpful skill May 25 23:42:01 does that imply you don't know how to make money? ;) May 25 23:42:57 I'm still using IRC and code to be able pay my bills. I think, I haven't learn this skill May 25 23:43:01 no May 25 23:43:04 im not doing homework May 25 23:44:08 "We make money the old fashioned way. We PRINT it." May 25 23:44:28 JakeWharthon: on ICS is it possible to change the show/hide animation of the ActionBar ? In particular to disable it May 25 23:45:30 i just planted a few money trees in the back yard May 25 23:48:01 no May 25 23:48:43 oh that sucks.... May 25 23:50:25 why? May 25 23:50:34 it's like 300ms May 25 23:50:56 300ms :o May 25 23:51:20 ooo, game 6 NY vs. NJ is on tonight May 25 23:51:28 who cares May 25 23:51:31 SA gonna win it all May 25 23:52:03 i assume you mean LA :P May 25 23:52:23 i would have to agree at this point May 25 23:52:36 LA lost already, both of them... May 25 23:52:38 JakeWharton: My app use a TabHost (yes I know) with 4 tabs each with own activity. all tabs except one should have the ActionBar. It works except the animation is supper jarring when the ActionBar appear or disappear. May 25 23:52:59 i feel like we're talking about different sports May 25 23:53:11 probably May 25 23:53:12 xD May 25 23:53:37 * Jug6ernaut is preparing to release his new app May 25 23:53:43 first fully free one hehe May 25 23:57:09 is there a best practices in placing procedures in java, like my own procedure, should I put it at top? at bottom, below overriden methods? May 25 23:57:36 GeeksOnHugs: time to read Code Complete :) May 25 23:57:44 order by public —> protected —> private May 25 23:57:51 easy to read. May 25 23:58:10 kk...thank you xa0c :) ...g00s link? May 25 23:58:33 http://www.amazon.com/Code-Complete-ebook/dp/B004OR1XGK May 25 23:58:41 im just feeling disoriented, I've done pascal for 17 years (Delphi) May 25 23:58:52 thank you :) May 25 23:59:00 i actually order my methods by locality of call May 25 23:59:09 if a -> b, i place b under a May 25 23:59:17 ordering by accessibility allows you to get more important methods first. May 25 23:59:18 but its not always that simple :) May 26 00:00:05 does android have support for most concurrency stuff? I am specifically interested in Futures May 26 00:00:11 I'm just trying to start with java conventions...it feels so free form compared to pascal May 26 00:00:17 sleepster: yeah May 26 00:00:25 thanks GoaLitiuM May 26 00:00:27 thanks g00s May 26 00:00:48 xa0c: javadoc already does that :) May 26 00:01:02 sleepsters: it's not like you could have looked at what is available in java.util.concurrent May 26 00:01:20 bubbleguuum: well, to be fair JSR166y is not there May 26 00:01:40 As I know, pascal uses PascalStyle, java uses camelStyle. And brackets, and so on... 'compared to pascal'? Heh... Well.. Pascal may be used for coding too. :) May 26 00:02:20 actually, i guess its now jar 166 e May 26 00:02:34 but still, 166y isn't there either May 26 00:02:46 *jsr166e May 26 00:02:46 g00s: well... I'm not a java coder, btw. I'm .NET coder. :) May 26 00:02:54 eww May 26 00:03:06 xa0c: well you are a coder right :) when in Rome, do as the Romans May 26 00:03:18 yep :) May 26 00:03:24 no way! May 26 00:03:28 lol May 26 00:03:58 when in Rome, get lost, and try to map it! May 26 00:04:01 lol May 26 00:04:28 I dunno, pascal feels more structured to me somehow, like it's more obvious where things go, but that's probably cause it's new May 26 00:04:41 i remember reading there were detectable traces of Cocaine in the air in Rome May 26 00:05:22 hmmm, and the users were monks ?! May 26 00:05:26 lol May 26 00:05:26 a bit like there are traces of WTF in Android APIs May 26 00:05:34 haha May 26 00:06:09 i heard there were traces on currency which sounds plausible May 26 00:06:20 I'd like to figure out a way to extract it bit by bit lol May 26 00:06:45 i dunno about in the air, maybe in my last roommate situation hehe May 26 00:08:24 i've heard that at one point, there was enough residual cocaine on all of the $100 bills in circulation that bank messengers would routinely trip drug-sniff dogs at airports. May 26 00:09:41 ctate: has the android team worked with this fellow Wittaker http://www.amazon.com/How-Google-Tests-Software-ebook/dp/B007MQLMF2 May 26 00:10:23 seems like a good read May 26 00:10:46 * g00s gets lost on amazon recommendations May 26 00:12:51 * g00s still needs to read Clean Code May 26 00:12:58 switching from svn to git makes me more excited to update my code so I can branch and merge and push. May 26 00:13:14 * g00s goes back to reading an excellent photography book :) May 26 00:14:00 ctate: I've actually walked past a drug-sniffing dog at the airport without it even looking at me twice May 26 00:14:21 ... and it should have... it should have done a lot more. May 26 00:14:25 ha ha ha May 26 00:14:29 Overshare. May 26 00:15:09 pragma- lol...I wouldn't try that these days May 26 00:15:18 I've been there though May 26 00:16:36 pragma-: you know VIPR teams means TSA is not just at the airports any more May 26 00:17:21 something silly like that + mass transit + locale with private jails = big touble May 26 00:17:40 s/big trouble/big profits/ May 26 00:17:45 indeed May 26 00:18:21 yep, it's so stupid, the tighter they put the screws the more lucrative they make it May 26 00:18:33 and America is destroying latin america with our policies May 26 00:19:16 on friday, android-dev becomes android-* May 26 00:19:21 :) May 26 00:19:44 more like just * May 26 00:19:46 lol May 26 00:19:51 hehe May 26 00:20:15 I'm still working too though :P May 26 00:22:00 as am I May 26 00:26:45 pragma-: you can bring weapons through a TSA full body scanner undetected May 26 00:27:19 up yer bum May 26 00:27:40 all you have to do is tape them under your arms May 26 00:27:44 =O May 26 00:28:00 http://news.cnet.com/8301-17852_3-57392279-71/are-tsas-body-scanners-easy-to-fool/ May 26 00:28:56 readme: i'll watch while you try that :) May 26 00:29:44 i'd try for drugs first lol May 26 00:30:44 g00s: if I got caught I could just slip the TSA guy a fiver May 26 00:30:47 probably easily bought May 26 00:38:22 yo May 26 00:39:16 water guns converted to real guns + hiding under your arms = no metal detector + no scanner May 26 00:41:06 is it OK to allways declare variables? May 26 00:41:39 sounds like code preference to me May 26 00:42:54 how do you decide what you should declare and what to declare on the fly May 26 00:42:56 uhm, variables have to be declared May 26 00:43:02 no I mean... May 26 00:43:19 error: the branch X is not fully merged. May 26 00:43:20 like you know how in java you can declare them more formally or right as they are being used the first time May 26 00:43:28 wut May 26 00:43:49 are you trying to get all C on us? May 26 00:44:06 minimize scope and declare as close to first use as possible May 26 00:44:11 GeeksOnHugs: you should make an effort to minimize the scope much as possible May 26 00:44:21 heh May 26 00:44:44 Java is all about hiding things and allowing access explicitly May 26 00:44:51 like up top you can do private Int x; or in the middle of a procedure you could do private Int x := z +y; May 26 00:45:12 OK, I see May 26 00:45:16 You should probably read a Java book or two on fundamentals May 26 00:45:33 so then I should declare it on the fly May 26 00:45:39 sometimes it can be more performant to make the scope a little bit bigger May 26 00:46:06 so after that interview, i think it's safe to say that I am not interested in a SDET role May 26 00:46:14 I have a subroutine, and these variables are local to it...I was declaring them above the routine May 26 00:46:19 what's SDET? May 26 00:46:26 SDE in test May 26 00:47:01 obligatory: what's SDE? May 26 00:47:08 JakeWharton, I learn best by doing, but I'll maybe find some stuff on the net May 26 00:47:16 software development engineer :P May 26 00:47:20 yeah there's tons of great resources May 26 00:48:24 I read plenty of android stuff and they assumed java and I think I took it for granted that I would just pick it up as I went along...which I am by and large but you know, questions like that crop up :P May 26 00:48:54 it's better to be a software development analyst programmer engineer May 26 00:49:07 :P May 26 00:51:46 i once took a job working on a software platform i had virtually no familiarity with May 26 00:52:04 why did they offer you the job, then :P May 26 00:52:18 it's not always what you know May 26 00:52:48 i see May 26 00:53:12 i didn't even have an interview, really. hiring manager walked in with a plate of cookies and said "i'm already going to hire you, any questions about the job?" May 26 00:53:26 Can someone tell me what I'm doing wrong here? I'm trying to set the text of a TextView in an ExpandableListView group. In getGroupView() I use findViewById to load the layout and set it as the result variable, but then I can't seem to grab the TextView within it using result.findViewById(R.id.groupLabel); May 26 00:53:37 he would have a plate of cookies :P May 26 00:54:11 he was a big guy. he always had cookies. May 26 00:55:09 Actually I just noticed, I'm never successfully grabbing the view. Is this the right way to load a layout into a view object? View result=findViewById(R.layout.myView); ? May 26 00:55:15 i'd consider that a fringe benefit May 26 00:55:48 Xonk: did you inflate the layout? May 26 00:55:52 technically, i'm still in that job - at least, i support the same stuff. though i've been promoted a couple of times since then. May 26 00:56:34 wongk - No. I've never heard of that actually. Looking it up. May 26 00:56:46 dinner + hockey time for me May 26 00:56:49 * wongk-home out May 26 00:56:52 enjoy May 26 01:00:06 yah, my shits working...thx guys...nite nite May 26 01:00:20 i've only been using git for 2 days and already managed to fuck myself up May 26 01:00:34 git reflog May 26 01:00:36 unfuck it May 26 01:01:38 git --unfuck May 26 01:01:49 probably exists May 26 01:02:04 i should alias that May 26 01:02:12 no - i merged a branch and then amended the commit; but it was a fast forward - now its telling me i can't delete the merged branch May 26 01:02:28 git branch -D otherbranch May 26 01:04:04 JakeWharton: so , when i say git log there are only 2 commit objects, what could be the issue ? the first commit was from adding stuff to the repo, the second commit was the actual fix. when i did merge , and it fast forwarded, it did not create a merge commit of course May 26 01:05:51 Thanks wongk. That worked. So I use findViewById to load an View within an existing View, but if I want to create a new instance of a View I use and Inflator? May 26 01:09:03 the inflater returns a view May 26 01:15:47 * readme just found a cash cow of an app opportunity :) May 26 01:18:14 is it possible to have a separate actionbar for a dialog? May 26 01:21:20 <`z> is it? May 26 01:21:23 <`z> or is it not?!? May 26 01:21:23 I'm trying to take my current location, and get the compass direction to another location that I have stored. My code works, and outputs data, but it is outputting numbers in the thousands. I need it to be between 0-360 degrees. Can anybody spot the logic error in my code? http://pastebin.com/nSJuQQFy May 26 01:21:39 <`z> readme, create an app that shows readmes on other apps May 26 01:22:03 <`z> waitwhatthefuck May 26 01:22:26 <`z> that macbook's fans are screeching at high speed while doing nothing but... downloading updates? May 26 01:24:49 where is the laptop? May 26 01:24:53 hmm, ok. well, after reading Pro Git like 3 times, i thought i knew what i was doing, but the guys in #git confirmed … i have no idea watf i am doing after all May 26 01:24:55 did you do something dumb, like leave it on a bed? May 26 01:24:58 <`z> no May 26 01:25:04 <`z> it's someone else's May 26 01:25:07 <`z> on a desk May 26 01:25:13 dusty i bet May 26 01:25:14 <`z> with nothing obstructing the air vents May 26 01:25:16 <`z> yes May 26 01:25:22 <`z> it's a early 2008 model May 26 01:25:30 <`z> he wanted me to put Lion on it for $30 May 26 01:25:42 <`z> so i pirated it May 26 01:25:42 g00s: hands on is the way to go May 26 01:26:00 <`z> as a "fuck you" to apple May 26 01:26:05 z: >.< May 26 01:26:08 coolstorybro May 26 01:26:27 <`z> okay May 26 01:26:28 <`z> can May 26 01:26:28 How much does lion cost anyways? May 26 01:28:19 Any idea why an ExpandableListView group would cease to expand when the layout contains a Button? May 26 01:28:52 <`z> sonicrules1234, snow leopard: $30 May 26 01:28:54 <`z> lion: $30 May 26 01:29:08 pirating apple stuff : great way to get malware May 26 01:29:11 There are a lot of glitches with ExpandableListView on some devices. Xonk May 26 01:29:17 g00s: Exactly May 26 01:29:28 If possible, try it on a different device, it might not be your code it could be your device. Xonk May 26 01:29:32 `z: thats pretty cool. do you also sell fake sunglasses on the roadside? May 26 01:30:06 My dx2 does crazy glitches for some reason, but on every other device I have it's fine. Mostly with background images, not buttons, but images from other activities that I already ended that are stil cached May 26 01:30:19 <`z> readme, no May 26 01:30:36 <`z> i just copied all his data May 26 01:30:45 <`z> and found his... porn stash? May 26 01:30:57 <`z> he's into beastiality i guess May 26 01:31:35 lol May 26 01:32:30 Canadians: I will never hire you for anything ever May 26 01:32:48 why could i get activeBtn is not defined when rotating the screen? (the application crashes) May 26 01:33:24 <`z> sonicrules1234, sure May 26 01:33:36 google play store app is a headache. still feeding me updates from last month that i've already applied, etc May 26 01:33:37 <`z> you're not going to hire canadians May 26 01:33:39 Tomasso: perhaps there's another layout that doesn't have the activeBtn. May 26 01:33:45 like one in layout-land. May 26 01:33:48 Thanks T-Dub. Setting focussable to false seems to have fixed it for me, but I'll keep an eye out for problems like that. May 26 01:34:33 No problem Xonk. I don't know if the problems are ONLY on the dx2, or if other devices have them as well. Just what I've personally experienced. May 26 01:36:50 eclipse, Y U NOT COPY AndroidManifest.xml when create project from existing source for latest ABS? May 26 01:36:56 * readme had to copy it manually May 26 01:36:58 serious wtf May 26 01:37:27 because eclipse. May 26 01:37:38 basically May 26 01:37:45 Are you not able to start a thread in a ListActivity? May 26 01:37:47 oh nice, my app got updated tomorrow May 26 01:38:09 I uploaded an update a couple of hours ago and it's reporting tomorrow's date for last-updated now May 26 01:38:11 I'm getting a CalledFromWrongThreadException May 26 01:38:34 oh wait, it's not copying any of the /src directory either May 26 01:38:45 T-Dub|DlolPics: stop calling stuff from the wrong thread then May 26 01:38:58 :( not really sure what that means. May 26 01:39:04 you know what a thread is? May 26 01:39:04 I don't understand why I can create my own threads May 26 01:39:21 Something that runs parallel with your main thread, right? May 26 01:39:23 did you use any AsyncTask or Thread classes May 26 01:39:31 I used the Thread class May 26 01:39:35 well, there you go. May 26 01:39:54 Thread hi = new Thread(){ run() etc May 26 01:40:03 you shouldn't extend thread. May 26 01:40:19 do this instead: Thread thread = new Thread(new Runnable() { ... }); May 26 01:40:19 Let me guess, I should use AsyncTask? May 26 01:40:24 I am May 26 01:40:27 you should implement runnable May 26 01:40:41 you extended thread, according to your snippet May 26 01:40:41 http://pastebin.com/j8vexk0q May 26 01:40:53 yeah, don't do that May 26 01:41:00 implement runnable instead May 26 01:41:09 Ok May 26 01:41:12 also put your UI thread stuff back on the UI thread May 26 01:41:18 runOnUiThread() or create your own handler. May 26 01:42:15 What would be classified at UI stuff, like anything visual? Because that method gets the data from my php file, using the connection class May 26 01:42:22 Would that still be UI even though I connect to a url May 26 01:42:27 as* not at May 26 01:43:29 if you can see it, then don't put it on the background thread May 26 01:43:35 put it on the UI thread. May 26 01:43:50 you can't ever touch a View from a background thread. May 26 01:43:52 and the UI thread is runOnUiThread() May 26 01:43:56 gotcha May 26 01:43:59 that will cause it to run on the UI thread... yes. May 26 01:44:45 Just make sure that the UI is responsive or users will get annoyed. May 26 01:49:14 You can't do sleeps inside a UI thread? May 26 01:49:21 Because that defeats the purpose of my thread :s May 26 01:49:46 sleeping in the UI thread will cause your app to freeze a bit. May 26 01:49:59 Argh, then I don't want to exicute this in the UI thread. May 26 01:50:16 you shoud probably not even be using sleep May 26 01:50:21 what are you trying to do May 26 01:50:24 I want my activity to start and show default values. After 1.5 seconds it will actually retrieve the stats. May 26 01:50:42 That way the activity shows up immediately May 26 01:50:55 Do the loading after it's already finished creating the activity. May 26 01:50:55 so start a background task that gets the stats May 26 01:51:04 when you want to show the stats, you run the code that SHOWS the stats on the UI thread May 26 01:51:08 nothing else May 26 01:51:13 Ok May 26 01:51:17 I'll try that, thanks. May 26 01:56:03 Ok I got it, but I know there is room for improvement... http://pastebin.com/m9HAqLj1 May 26 01:57:14 interesting abuse of finally May 26 01:57:42 What do you mean? May 26 01:58:08 why you no just immediately load the values /after/ you setContentView? May 26 01:58:40 Because a slow internet connection can cause the activity to "freeze" May 26 01:58:44 For however long it takes for it to load May 26 01:58:51 so load in a separate thread May 26 01:59:00 That is basically what I just did May 26 01:59:05 minus the sleep May 26 01:59:19 I load up "default/fake" values on start up, then have a delay to actually go and get the values May 26 01:59:43 The delay is just so the activity has time to start May 26 01:59:55 that's absurd May 26 02:00:34 Oh wow May 26 02:00:41 Without the delay it starts right up still May 26 02:00:50 Well thanks for the hidden advice, I don't need the delay. May 26 02:01:03 just start loading the data when your app is initialized, not after some random abritrary race-condition-prone absurd sleep delay May 26 02:01:21 Yeah, that is what I will do. Thanks May 26 02:01:25 lol May 26 02:01:37 you initialize your app, so you know the flow and lifecycle of the app, so put the loadData in the appropriate spot May 26 02:02:48 Perfect, works like a charm no delay. Thank you pragma- May 26 02:02:58 For some reason I thought the app needed time to start, not sure why. May 26 02:02:59 * pragma- peers around suspiciously. May 26 02:03:10 * pragma- useful? May 26 02:03:10 Activity* May 26 02:03:22 Very, no delay and with my current internet connection it loads the data instantly May 26 02:03:47 JakeWharton: you around? May 26 02:04:18 I just had to go through a very odd sequence of steps with eclipse adt to get abs to import and exist in my workspace without errors... May 26 02:05:00 android update project -p . May 26 02:05:07 that's all I have to do May 26 02:05:13 ha May 26 02:05:28 unfortunately eclipse needs to write some of its own metadata May 26 02:05:39 or ADT. Not sure which May 26 02:05:43 for it to actually work May 26 02:06:10 I had to copy the library dir into the workspace, then use create from existing source, then change the build target manually, after setting the compiler compliance level (as I usually have to do) May 26 02:06:31 trying to create from existing source with a library/ dir that is outside of the workspace failed. May 26 02:06:45 I tested my installation by creating a project from existing source from the sdk samples May 26 02:06:51 and that worked fine. May 26 02:07:08 anyway, I've got abs working. I just thought it was a bit of a ritualistic dance to have to do May 26 02:07:54 I actually tried just doing android update project -p . -t # but no luck on that one. May 26 02:08:12 infernal machines' May 26 02:13:27 Oh my god I'm so proud of myself, i drew a beast ass panda May 26 02:14:02 http://puu.sh/wNUq May 26 02:15:18 to me it looks moer like a sad man in a panda costume, he must have lost his way to the furry party May 26 02:15:45 haha May 26 02:20:46 Is it prudent to use Action Items for navigation? May 26 02:25:30 * g00s looks around for other version control systems May 26 02:25:48 git May 26 02:25:57 no, i hate this damn thing May 26 02:25:58 git ftw May 26 02:26:14 what do you find so hard about it? May 26 02:27:03 just read through Pro Git like 3 times, except for the chapter on using remotes because i'm just doing local things, and i already managed to funk myself up by doing a commit --amend on a merge commit May 26 02:27:24 the Pro Git book was pretty simple May 26 02:27:33 the Branching and Merging chapter made perfect sense May 26 02:27:45 Branching and merging is hard May 26 02:27:51 Since I have no idea how it works May 26 02:28:19 this is what i was afraid of - that i have to know the deep internals of git to just do basic stuff May 26 02:28:33 i didn't have to know how working copy internals worked with svn May 26 02:28:35 No, its not that May 26 02:28:37 or MVFS with ClearCase May 26 02:28:40 Its just me May 26 02:28:50 I can't stand to use something unless I know how it works May 26 02:28:54 but now i'm heading off to find videos if git internals May 26 02:28:57 I never use merge anyways May 26 02:34:49 anyone here think they can help me figure something out with APKTOOL and XML files inside of an APK file? May 26 02:35:03 is it your app ? May 26 02:35:07 no May 26 02:35:11 probably not May 26 02:35:13 ): May 26 02:35:19 dev or gtfo May 26 02:35:43 readme: nice crowd around here.. May 26 02:36:10 More like not helping pirates crowd May 26 02:36:16 this isn't pirating May 26 02:36:24 Does calling EntityUtils.toString() on an HttpResponse actually use the network? May 26 02:36:31 #android, #android-root May 26 02:36:34 Why do you need to see the xml then? May 26 02:36:41 i already have access to the XML May 26 02:36:53 Then why do you need our help? May 26 02:36:59 starbuckt: no, once you have the HttpResponse the request is over. May 26 02:37:05 i need to change: May 26 02:37:06 E: string (line=12) May 26 02:37:06 A: name="uaProfUrl" (Raw: "uaProfUrl") May 26 02:37:06 C: "http://wap.samsungmobile.com/uaprof/GT-i9000.xml" May 26 02:37:06 E: string (line=13) May 26 02:37:06 A: name="userAgent" (Raw: "userAgent") May 26 02:37:06 C: "SAMSUNG-GT-I9000-Mms/2.0" May 26 02:37:17 dimgl: GTFO May 26 02:37:22 ...? May 26 02:37:27 IE edting somebody elses app May 26 02:37:37 sonicrules1234: stop feeding May 26 02:37:38 I'm performing an HTTP request on a background thread, but passing the response object to a callback on the main thread. However, when I call EntityUtils.toString I'm getting a "NetworkOnMainThread" error on ICS. May 26 02:37:42 readme: Ok May 26 02:37:44 readme: ^ May 26 02:37:51 * sonicrules1234 goes back to idling :p May 26 02:37:59 some touchy devs in here... May 26 02:38:25 starbuckt: odd May 26 02:38:32 sorry, i'm cranky because i'm fighting git - but this channel is for app development, not app reversing May 26 02:38:35 that's when you run EntityUtils.toString()? May 26 02:38:39 yep May 26 02:38:45 1 sec. May 26 02:38:45 g00s: thank you for helping, i'll be on my way. i'll idle anyways May 26 02:38:56 Wow, I just now realized how many people are in here :o May 26 02:41:28 starbuckt: in any case, that EntityUtils.toString() could take a while May 26 02:41:33 EntityUtils.toString() is a helper func to read the body so that's expected May 26 02:41:34 it should be on the background thread May 26 02:41:59 bubbleguuum: readme: but isn't the response already cached in memory at that point? May 26 02:42:07 nope May 26 02:42:08 read what it does May 26 02:42:19 it converts the response body to a string May 26 02:42:28 for a big response that could be slow May 26 02:42:50 for really big responses, it should be avoided May 26 02:43:08 go look at the code, it reads the entity input stream, so read the socket. May 26 02:43:14 but I am grepping the aosp for networkonmainthread... May 26 02:43:53 bubbleguuum: I had a feeling it would do that. That was the only explanation I could think of. So getEntity basically returns an InputStream and toString reads the stream as it comes in? May 26 02:45:38 yes. if you do not need to read the bdy for whatever reason you can call abort() on your Httpget (or HttpPost) instance May 26 02:46:52 Ah, okay. That's very helpful. Thanks for the help. May 26 02:47:37 hi g00s **** ENDING LOGGING AT Sat May 26 02:59:57 2012