**** BEGIN LOGGING AT Thu Oct 11 02:59:58 2012 Oct 11 03:05:18 Is there a way to place an object midway between and to the side of two other objects in XML? Oct 11 03:05:44 look into RelativeLayout Oct 11 03:10:19 I'm trying to get my phone visible in Windows 7 (for eclipse development). In the Device Manager I don't see the Android Device (when trying to install the USB driver) Oct 11 03:12:18 is debugging enabled on your phone? Oct 11 03:12:49 yeah.. but I just realized I had the usb cable plugged into the AC adaptor.. Oct 11 03:13:01 might wanna check that too =P Oct 11 03:13:13 the ol' "is it plugged in?" ... Oct 11 03:13:55 lol Oct 11 03:14:07 still not able to find it.. I pick the usb_directory/ itself Oct 11 03:14:37 is it turned on? Oct 11 03:14:38 tried the i386 and amd64 dirs specifically too (although this is intel) Oct 11 03:14:50 32 or 64 bit windows? Oct 11 03:15:00 lol.. yes it's turned on.. shows in the Device manager.. but it says windows is unable to install your android phone (could not find driver software for your device) Oct 11 03:15:11 that's because you have to give it a driver... Oct 11 03:15:14 win7 gives a good tip there though.. "if you know the manufacturer..." Oct 11 03:15:37 you said it wasn't showing in Device Manager.. if it's showing up and just needs a driver, that's a lot easier to fix. Oct 11 03:16:13 I did this in the past.. months ago.. and I don't recall doing it using the "update driver" method Oct 11 03:16:21 it's now showing up in device manager, yes. Oct 11 03:16:54 htc amaze 4g Oct 11 03:17:19 so, 32 or 64 bit windows? Oct 11 03:17:46 64, sorry Oct 11 03:17:53 (win7 x64) Oct 11 03:18:15 and if you give it the driver in the amd64 folder it doesn't like it? Oct 11 03:18:38 http://developer.android.com/tools/extras/oem-usb.html#Win7 << has a nice guide btw. Oct 11 03:19:36 nope. windows doesn't let me pick a driver itself (it wants only a folder)... checking that url, thanks Oct 11 03:19:44 tmobile's homepage redirects me here http://www.t-mobile.com/500.aspx?aspxerrorpath=/default.aspx Oct 11 03:19:52 nice.. bleh. Oct 11 03:20:06 that's the guide I was using, HacDan Oct 11 03:20:28 and when you click next nothing happens? Oct 11 03:21:40 jaggz-, did you install the HTC_drivers.exe ? Oct 11 03:21:40 I have a beginner question, more basic orientation I guess. I'm implementing a really simple app to share browser URLs. I get that I need to set up an intent filter in the app manifest.xml and then I have to actually do something with the intent, e.g. http://stackoverflow.com/questions/6413822/how-do-i-receive-a-share-url-from-browser Oct 11 03:21:59 But where do I put that code? Do I just put it in the main Activity? Oct 11 03:22:16 It's not this "tethering driver" is it? (http://www.htc.com/us/support/htc-amaze-4g-tmobile/software-updates) Oct 11 03:22:18 shmooz: it shouldn't need to just to get adb working should he? I don't have much experience with getting a dev environment set up on windows =/ Oct 11 03:22:24 shmooz, no.. Oct 11 03:22:40 hacdan, windows says it's unable to find a driver for the device Oct 11 03:22:45 jaggz-, thats what you need Oct 11 03:23:30 shmooz.. oh.. pursuing further through the tethering driver page and it mentions (in step 1) to get the usb driver from that page.. excellent.. sorry.. Oct 11 03:24:18 yes its named HTC_drivers.exe I had to to some searching as a lot of places had it but not anymore Oct 11 03:24:33 its about 13 MB Oct 11 03:25:17 puff, do the rest of the comments on that page help you? Oct 11 03:25:27 jaggz-: Not really. Oct 11 03:25:40 shmooz, there were a lot of 3rd party sources which I did not really want to trust Oct 11 03:26:20 jaggz-: For example, in the solution example code there's a reference (last line) to receiverText.requestFocus()... I am assuming that's from the original context of the code and since I haven't initialized it, that line won't work. Oct 11 03:26:31 jaggz-, yeah I took a risk, but it worked Oct 11 03:26:35 :) Oct 11 03:26:58 they all showed around 13MB so I said I'll try the first one I can actually download, worked like a charm Oct 11 03:27:42 searches for "htc amaze 4g usb driver" turn up htc's page (in google at least) Oct 11 03:27:58 I think its general for all HTC phones Oct 11 03:27:58 of course, they have a "relationship" ;) Oct 11 03:28:12 (that's a joke) Oct 11 03:28:28 puff.. I am not sure. I'm sorry. Oct 11 03:28:59 I'm very new to mobile development and doing parallel tests with straight android coding and phonegap/cordova Oct 11 03:29:01 jaggz-: I guess I'm looking for the next step after Hello World. Oct 11 03:29:08 puff, likewise.. heh.. Oct 11 03:29:43 try this one from google code ... http://code.google.com/p/binary100100/downloads/detail?name=HTCDriver3.0.0.007.exe&can=2&q= Oct 11 03:29:48 jaggz-: This mgiht help http://www.vogella.com/articles/Android/article.html Oct 11 03:30:00 shmooz: Was that directed at me? Oct 11 03:30:08 shmooz: Ah, I see not. Oct 11 03:30:14 @ jaggz- Oct 11 03:30:47 the one from htc worked.. just got it installed and, just now, unplugged and replugged USB. adb devices shows it... Oct 11 03:31:07 puff, sorry I took all their attention.. :} Oct 11 03:31:18 jaggz-: No sweat :-). Oct 11 03:32:07 yeah the only problem with mine is sometimes it will say 'Device Offline' when I try to Run, then I have to unplug and replug the cable and it works again Oct 11 03:34:36 Shake Uninstall is a handy app Oct 11 03:35:05 I got it running.. the UI is kinda slow.. flickers a bit .. Oct 11 03:36:56 (that seems to be a cordova/phonegap thing.. bummer) Oct 11 03:44:42 (shake uninstall, by the way, lets you shake your phone to take you to a screen where you can unisntall whatever the currently running app is (was)) Oct 11 03:53:38 pretty interesting interview http://allthingsd.com/20121010/live-from-new-york-walt-mossberg-kara-swisher-interview-eric-schmidt/ Oct 11 03:57:36 i think he dismisses ms too easily Oct 11 04:12:00 anyone have a link to an example of a good tablelayout design? Oct 11 04:12:04 my tables are so ugly Oct 11 04:13:03 are you using it for a *table*, or a grid-type layout? Oct 11 04:13:08 whenever i try to rotate images using postRotate(), it comes out very skewed. i just want to rotate images in the typical manner that you would rotate them, and not skew different parts of the image. how can i do this? Oct 11 04:14:10 it's a table of statistics Oct 11 04:14:24 ~10 rows by 5 cols Oct 11 04:16:10 Leeds: these methods sound so horrible http://stackoverflow.com/questions/2108456/how-can-i-create-a-table-with-borders-in-android Oct 11 04:20:33 whenever i try to rotate my images, about any point, they end up quite skewed. how can i fix this? Oct 11 05:30:48 Qn: I have a ViewPager in a RelativeLayout. The height of @+id/viewPager is set to wrap_content. I want to place a button below the bottom margin of viewPager, so created a button with the attribute android:layout_below="@+id/viewPager" Oct 11 05:30:59 The problem is, the button isn't showing up on the screen. Oct 11 05:31:17 Checking layout bounds indicates that the viewPager goes to the bottom of the screen, despite being set to wrap_content Oct 11 05:31:59 How do I change the attributes, either programatically or via XML, to show the button just below where the viewPager ends? Oct 11 05:32:48 Screenshot currently: http://imgur.com/QUzSL Oct 11 05:37:17 Any ideas? Oct 11 05:42:30 I've had problems with ViewPager Oct 11 05:42:50 I just checked a layout where I have | ViewPager | other fragment | Oct 11 05:43:06 and I have the ViewPager wrapped in a LinearLayout Oct 11 05:43:24 i.e. it is the only child Oct 11 05:43:28 Got that bit. Oct 11 05:43:43 I'm using layout weights though Oct 11 05:44:44 So am I. Oct 11 05:45:05 http://pastebin.com/RvdLGP1J Oct 11 05:45:09 not wrap_content? Oct 11 05:45:43 I think I was testing that Oct 11 05:45:56 wrap_content doesn't work though Oct 11 05:46:07 (Changed line 13) Oct 11 05:48:21 Yeah, wrap_content isn't having an effect. Layout margins still shows the ViewPager going to the bottom of the screen. Oct 11 05:51:16 How can you set a dialog fragment's height in code? Oct 11 05:52:05 wabz? Any other ideas? Oct 11 05:52:10 dialog fragments are management containers around Dialogs Oct 11 05:52:12 they have no height Oct 11 05:52:28 they are glorified POJOs Oct 11 05:52:43 So is there some way I can change the height dynamically? Oct 11 05:52:58 I tried using layout params on the view i inflate in oncreate of the dialogfragment, but that crashes Oct 11 05:53:05 *onCreateView Oct 11 05:53:40 Nom, align the button to the bottom of the parent and put the view pager above it? Oct 11 05:54:18 Hey there I just upgraded to ABS 4.2, when I use 4.2 library in my project I get lots of errors like " error: Attribute "itemPadding" has already been defined Oct 11 05:54:33 lasserix, I tried that with a RelativeLayout, but the button still didn't show. Oct 11 05:56:12 figured out how to change hait getWindow().setLayout Oct 11 05:56:19 nom_ that's a very odd xml Oct 11 05:56:32 you want button 1 to take half of the screen? Oct 11 05:56:43 lasserix At this point I just want the button to show up. Oct 11 05:56:48 JakeWharton: any clues what could I be doing wrong ? Oct 11 05:57:00 That space is going to be populated with other buttons and controls, but I need it to be able to show something in the first place. Oct 11 05:58:41 nom_ http://pastebin.com/m9ysHsQJ Oct 11 06:00:48 lasserix, can't set layout:height on ViewPager Oct 11 06:00:56 Wait nevermind Oct 11 06:01:55 lasserix, No effect. Oct 11 06:03:04 try using match_parent? Oct 11 06:06:29 lasserix also no effect Oct 11 06:08:27 nom http://pastebin.com/sxUav3UB Oct 11 06:08:31 this works in my layout Oct 11 06:10:02 No effect in mine :? Oct 11 06:10:24 I should sleep anyway... Oct 11 06:10:29 Thanks for the help! Oct 11 06:10:39 Maybe I'll be more awake in the morning haha Oct 11 06:10:42 Goodnight! Oct 11 06:10:46 Night goodluck Oct 11 06:10:51 Thanks Oct 11 06:20:49 howdy Oct 11 06:51:06 hey all, is there any way to make a scroll view works like as gallery which has center lock feature? I don't know how to do it in scrollview as I want to have a vertical gallery rather than horizontal one. Oct 11 06:51:16 any advice is appreciate Oct 11 06:51:22 lol, better uninstall firefox 16 :/ Oct 11 06:53:11 hi. my phone is connected to my laptop but the "run project on device" dialogue box shows that it's offline.. i did try many times to connect it and disconnect it nothing works Oct 11 06:53:17 what should I do? Oct 11 06:53:22 how do I invalidate a viewpager? I mean, I am changing a float value used by a font size, which works fine when instantiateView is called, but on pages/children already instantiated it does not invalidate if I call invalidate on the viewpager Oct 11 06:56:17 I'm using the CalendarContract.Instances provider and have a problem, some event instances do not appear, using the calendar app i created an event in december. and when i run my app that iterates over the instances, the event i just added does not appear. I wonder if Contentprovider use cached data for the calendar Oct 11 06:57:49 Anyone know why when i type into my edittext the onKey isn't getting called when i put in integers, but if i press back or done it does? Oct 11 06:57:56 happens only on a samsung galaxy s from what ive tested Oct 11 07:27:07 Is it possible to combine the results of a TimePickerDialog and a DatePickerDialog into one 'Date' object? Oct 11 07:27:45 audiobook player app -> Audality? Oct 11 07:27:47 My experiment code is here : https://gist.github.com/3870767 Oct 11 07:48:17 napster: answer: of course Oct 11 07:48:50 i have code that does i'd have to dig for it Oct 11 07:49:10 I should add this to my list of things to put in a reusable class Oct 11 07:53:32 iF you can manage to parse each date and time picker into a Date object, then you can just do new Date(date.getTime() + time.getTime()) Oct 11 07:54:07 that's basically what my code does here, but it's meh. I'd need to neaten it up a lot for it to be useful outside of the file its in. Oct 11 07:54:08 fnord`: That is what I'm looking for. Oct 11 07:54:37 if you want to actually do it nicely you should look into using joda Oct 11 07:54:57 fnord`: Another thridparty lib? Oct 11 07:55:05 fnord`: did you get that job offer? Oct 11 07:55:25 Leeds: they want to hire more ios devs instead now Oct 11 07:55:30 oh :( Oct 11 07:55:48 don't they realise that iOS is dead, like Symbian and WebOS? Oct 11 07:55:49 at least, I'm told I'll hear back but "IF we don't hire you today, we totally want you later (when there's more android stuff)!" Oct 11 07:56:06 Leeds: according to them the iPad is big in healthcare Oct 11 07:56:14 ah, that might be true Oct 11 07:56:26 I'm already doing it pretty fine with the Calander object. But I'm not sure it is the right way to do it. Oct 11 07:56:41 anyway I'm polishing up an app and re-publishing it, building another, then getting a mac so I can catch up on ios Oct 11 07:56:44 have to compete. Oct 11 07:56:51 then I'm gonna call them back Oct 11 07:57:00 if I'm still here and not employed :) Oct 11 07:57:13 doubt it's likely anyone would want to pay me what I'd need to do iOS Oct 11 07:57:53 I just want to work with people in a cool company. This company has cool culture. Oct 11 07:58:05 technically I am still a candidate, but I have accepted they're probably going the way of ios. Oct 11 07:58:11 fnord`: You should have shared the date-time code, since most of the blogs lacks integration of both. :) Oct 11 07:58:27 I work by myself, at home... but then again, I get to do things like go watch TV for a bit mid-afternoon for head-clearing :) Oct 11 07:58:27 hey guys Oct 11 07:58:28 anyway looking into joda Oct 11 07:58:46 does anyone have any resource on how SyncProviders (the Accounts & Sync mechanism) work? Oct 11 07:58:53 can't seem to find any official documentation Oct 11 07:58:59 Leeds: yeah, that's what I have been doing for the past year and a half Oct 11 07:59:22 looks like most of us here are working from home :P Oct 11 07:59:42 * Leeds goes to watch TV for a big, it being mid-afternoon Oct 11 07:59:44 bit Oct 11 08:00:41 how di you get anything done at home? Oct 11 08:00:44 seeya Oct 11 08:00:47 *do Oct 11 08:00:55 alex_PP: by working late at night Oct 11 08:01:05 i'd do about an hour a day if i tried that Oct 11 08:01:10 less if it's not raining Oct 11 08:01:21 eventually the deadline is tomorrow and you have to work all night Oct 11 08:01:27 that's basically how it is Oct 11 08:01:28 ha Oct 11 08:01:33 good point Oct 11 08:01:55 my uni final project took the last week i had Oct 11 08:02:02 only put it off for a year Oct 11 08:02:09 oh awesome Oct 11 08:02:32 I've put an entire degree off for about 4 years now Oct 11 08:02:38 hopefully will do that soo Oct 11 08:06:15 jodaTime seems to be problematic on Android as well Oct 11 08:07:02 Jon Skeet says it is inefficient ;) Oct 11 08:08:35 Calendar sucks Oct 11 08:08:38 just use math Oct 11 08:08:43 that's what I do most of the time Oct 11 08:08:56 lol, thats what I'm gonna end up with :D Oct 11 08:09:00 I also use SimpleDateFormat a lot Oct 11 08:10:15 Programming on Android becomes more fun, cause nothing works properly, lol :D Oct 11 08:13:05 I spent a long time getting this to work, but I now have an automated backup system for my laptop Oct 11 08:13:27 i just plug the usb pendrive in and it copies all the important files and prints pretty output Oct 11 08:13:41 gonna add git repos to it next, but i'm tired Oct 11 08:13:44 'ello Oct 11 08:18:28 My application keeps crashing when it tries to set up a ViewPager. All the code seems fine, and corresponds to what I've seen in examples / tutorials. Here's all the relevant code with the stracktrace: http://pastebin.com/paf8VdMK Oct 11 08:24:35 When I create and Instance of DatabaseHandler that extends SQLiteOpenHelper, it should invoke the onCreate method right ? Oct 11 08:40:31 fnord`: Finally succeeded in combining the datepicker and timepicker dialogs. Used Date and SimpleDateFormat classes. The only thing is that, almost all methods used are deprecated :) Oct 11 08:40:39 thanks anyway Oct 11 08:42:53 Well, that crash went away with little fuss.... Oct 11 08:44:05 How bad a practice is the following Oct 11 08:44:40 Having a viewPager whose onpageSelected listener sets the ActionBar tab, while the tab's onTabSelected listener sets the pagers CurrentItem Oct 11 08:45:28 good morning :) Oct 11 08:46:40 not very much bad I think Tee_Pee Oct 11 08:47:20 I'm just worried of needless overhead... when I swipe a page, and it changes the tab, will that call the tab listener which will in turn call the swipe listener again? Oct 11 08:48:32 Tee_Pee: May be you should tinker with it and see such a looping happens Oct 11 08:49:36 Doesn't seem to, so it's fine. Oct 11 08:49:51 However, I jsut noticed a more pressing issue... Oct 11 08:49:54 just* Oct 11 08:50:13 When I log the user in, my server gives me an access token, which I save into a shared preferences file like so: Oct 11 08:50:19 SharedPreferences sharedPref = getSharedPreferences(getString(R.string.access_token_file), Context.MODE_PRIVATE); Oct 11 08:50:35 SharedPreferences.Editor editor = sharedPref.edit(); editor.putString("acess_token", document.get("access_token").toString()); editor.commit(); Oct 11 08:51:10 My main activity, in order to decide whether to show the control panel or the log in screen, checks this shared preference file to see if an access token exists Oct 11 08:51:29 SharedPreferences sharedPref = getSharedPreferences(getString(R.string.access_token_file), Context.MODE_PRIVATE); String access_token = sharedPref.getString("access_token", "-1"); Oct 11 08:51:47 I, however, always get a -1 value. Oct 11 08:52:04 Am I misunderstanding shared preferences? Oct 11 08:52:44 are you setting access_token before at any point? Oct 11 08:53:20 if there is no "access_token" in the shared preferences, ie you have not called sharedpref.editor edtior . editor.putString("access_token" editor.commit Oct 11 08:53:30 I open up my application - get the login screen. I log the user in and set the access token. I then kill the application and re-open it. The access_token should be set now and I shouldn't have to log in. That doesn't happen. Oct 11 08:53:36 before calling getString it'll always return that second arg Oct 11 08:53:56 what's your code for inserting the token in sharedpref? Oct 11 08:54:05 1s Oct 11 08:54:06 are you forgetting to call editor.commit? Oct 11 08:55:39 http://pastebin.com/5LCckM6S Oct 11 08:55:42 There we go. Oct 11 08:56:21 Oh god. Oct 11 08:56:35 acess_token instead of access_token Oct 11 08:56:43 fuck me sideways Oct 11 09:11:05 When should getFirstVisiblePosition be called to reset a listview to a proper place in a fragment? Oct 11 09:19:11 could anyone tell me how to achieve a smooth transition in a ViewPager between adjacent views? the setCurrentItem method does an instant transition instead of what i want =/ Oct 11 09:19:36 balls, use second argu as true or false to setcurrent Oct 11 09:20:02 i tried, the boolean has no effect Oct 11 09:20:08 hmm works for me Oct 11 09:32:38 morning Oct 11 09:40:38 ctate: You forgot the bit about how NEON typically gets four cores and hand-coded assembly. Oct 11 09:42:15 Whereas, poor old GPUs have to have all their quirks dealt with by a compiler that doesn't know shit about the algorithm, and half the time comes under real-time constraints that stop it making a decent effort. Oct 11 09:43:38 And gcc doesn't know when to unroll, and llvm doesn't know _how_ to unroll. Oct 11 09:52:17 I want to add some functionality to the notification bar like if user presses long on the notification visible on the notification bar some functionality should happen . How can i achieve that . please tell me the way/ways. Oct 11 09:52:27 The more I study slow code paths the more often I realise that the tiny costs of a little bit of abstraction here and there have _actually_ stacked up to a factor of 2x to 5x performance cost. So I guess the poor code generation I see in monster parallelism tasks isn't entirely out of order. Oct 11 09:53:26 guys, guys, xperia s vs samsung s2, go go go Oct 11 09:59:28 hey all. say I have a service that translates text from my activity. how would I go about including this feature in other activities that don't belong to me, for example if someone marks text and long presses on it, there should be an option 'translate'. I really don't know what to google for... Oct 11 09:59:55 is that an intent filter? Oct 11 10:01:32 looks good on first sight, thanks Oct 11 10:10:11 well, an intent filter seems to be the thing i'm looking for, but how would I include that in _any_ activity, or _any_ marked-text-long-press-menu? Oct 11 10:10:28 is that even possible? Oct 11 10:17:31 I want to know how can i modify the behavior of the notifications of in the notification bar.Say for example if i have got a msg it shows me in the notification bar and when i scroll the notification bar and when i click on the msg icon it navigates me to the msg app to show the msg.I want to do something on the long press of the notification. How can i achieve the functionality. I am an android application developer but Oct 11 10:18:56 I'm pretty sure long-press notification is an action which belongs to the OS Oct 11 10:20:55 hi Oct 11 10:21:30 Leeds : i have HTC one v which has ICS but it doen't habe ong-press of the notification Oct 11 10:22:08 Android03: if/when it gets JB it will have a long-press Oct 11 10:23:18 Leeds : ok, but what i Oct 11 10:23:28 how can I set up a default value ( android:defaultValue ) if those values are in a String array ?? Oct 11 10:23:37 I have an issue understanding the relationship between minSdkVersion, targetSdkVersion and the target I set in project.properties. Oct 11 10:23:55 how to but put a banner in a LinearLayout right after a ScrollView ? Oct 11 10:24:02 Leeds: i mean if i want to have the long - press in my ICS what to do? Oct 11 10:24:02 I want my application to run on devices running Gingerbread and higher. Oct 11 10:24:08 Android03: you can't Oct 11 10:24:17 But I also want to use the Holo theme for ICS+ devices. Oct 11 10:24:46 Any pointers? Oct 11 10:25:39 Leeds : Ok if i want to achieve the right wipe or left swipe which removes the notification from the bar , can i override that behavior Oct 11 10:25:40 ? Oct 11 10:26:00 nope - all you can do is make it unswipeable Oct 11 10:27:24 lut4rp: put your minSdk to 8/9, targetSdk to 16, target to whatever your latest installed SDK version is (hopefully 16) Oct 11 10:27:24 Leeds : But there must be some way .,... changing the behavior of the notification bar using NDK or something lower level Oct 11 10:27:25 ? Oct 11 10:27:38 Android03: you are barking up the wrong tree Oct 11 10:27:47 what you are talking about is stuff you cannot do Oct 11 10:27:59 Estel, Will try, thank you Oct 11 10:28:30 I'm trying to set a defaultValue to a ListPreference item. Those items are in a and havent got a number for value. Any idea of how to refer them? Oct 11 10:29:56 I have list view with 2 textViews in each item in it. One is a static label and the other represents a count. To get the count I need to do a network fetch. So I do the fetch from inside the adapter's getView() method. But I get the exception that the object have outstanding network connection. How to do this safely? Oct 11 10:30:10 Leeds : Ok if i want to delete the msg from the notification bar itself without going into the msg app . can i do that>? Oct 11 10:30:25 Android03: you can control your own notifications, not someone else's Oct 11 10:31:36 Leeds : my own notifications means? Oct 11 10:32:10 if your app posts a notification, you can cancel it. if someone else's app posts a notification, you can't do anything about it Oct 11 10:34:23 Leeds : ok Oct 11 10:34:32 I'm trying to set a defaultValue to a ListPreference item. Those items are in a and havent got a number for value. Any idea of how to refer them? Oct 11 10:40:36 Quick Q guys... First, I'll note what my intentions are. Second, my brain-block that won't allow me to think of the best solution. I started out without the intentions, which is why I'm trying to add to it rather than re-do. I have a custom ListView. Currently, when populating it, I'm setting the "list.setOnItemClickListener(new OnItemClickListener() {" line so I can successfully capture Oct 11 10:40:37 the click event. With that, I'm grabbing up "getTag()" to identity it. That was all fine and dandy until I added something to it (an ImageButton) and it would be nice to be able to grab the click of the ImageButton alone. Any thoughts? Oct 11 10:41:05 And I did not describe that how I said I was going to, but it was easier the way I did it. Oct 11 10:42:44 Also, I have no need for the getTag() on the list item itself. I'd rather narrow that click down to just the ImageButton, rather than the entire list item itself (which is currently filled with ImageView's) Oct 11 10:53:19 is there a way to attach an ondraglistener to the android system bar at the bottom? Oct 11 10:56:19 A follow-up to my own question: To get the click event for an item (e.g., ImageView) INSIDE a ListView item, you'll set the onItemClick for the ListView, and inside that is where you'll then identify your ImageView (ImageView button = (ImageView) theView.findViewById(R.id.yourImageView);) AND set your normal setOnClickListener ... that handles that. Oct 11 10:58:30 zerribert: Looks like we're the only two awake. Sorry I can't help you. I have no clue on that one. Oct 11 10:58:59 pierpark: heh... thanks anyway Oct 11 11:00:43 pierpark: do you have some exp with drag+drop in general Oct 11 11:05:41 zerribert: hell no. I've only been at Android development for about a month now. I've done about everything else, for 10-15 years but I'm still trying to wrap my mind around this stuff. It takes me 10 hours to do one little thing sometimes, and I have to dig and dig and pull my hair out to learn how. It's a challenging situation at times, but rewarding in the end. Oct 11 11:11:57 Talking about Intent Filters and ACTION_VIEW - anyone got an idea what would be the "most common action performed" on marked text? Oct 11 11:12:31 or say, text? Oct 11 11:13:31 Is there a way to figure out how long an app has been paused (when resuming it), even if the user changes the time/date of the phone while the app is paused? Oct 11 11:16:47 ninjalama: see http://developer.android.com/reference/android/os/SystemClock.html Oct 11 11:19:34 Is the webview control in jelly bean at feature parity with chrome? Oct 11 11:23:55 THey said in the fireside chat that it was updated to be equivalent to Chromium at the time of JB's release but they aren't updating it on Chrome's update schedule (they aren't updating it at all between Android releases) Oct 11 11:24:08 But I've not seen anything since to corroborate that (nor have I looked) Oct 11 11:24:36 pierpark, i think you need a custom adapter Oct 11 11:24:38 to render the image Oct 11 11:24:45 Estel: yeah, i remember hearing that too Oct 11 11:24:46 then add the listener in there Oct 11 11:25:20 Hello kind folks Oct 11 11:25:27 Holy beard of Gandalf, this is nuts. So, if I set my target in project.properties to android-16, but my minSdkVersion is set as 8... I won't see errors for classes that aren't available below 16 at *compile* time? Oct 11 11:25:34 thx Oct 11 11:25:51 lut4rp: no, and you wouldn't want it to either? :/ Oct 11 11:25:52 lut4rp: yep Oct 11 11:25:55 lut4rp: in lint you will see things Oct 11 11:26:01 The linter is supposed to check for it Oct 11 11:26:19 Hm, it makes sense to not want to see them Oct 11 11:26:21 thats one of the reasons i left targetSdk=8 until lint had that feature :) Oct 11 11:26:23 Though isn't that planned for the next version? Cannae remember. Oct 11 11:26:26 * g00s is a lazy bastard Oct 11 11:26:44 Hm Oct 11 11:27:03 Then the question that comes to mind is, is Lint trustworthy? :) Oct 11 11:27:15 It's no substitute for testing. Oct 11 11:27:27 Because I really want to use Holo everywhere for people who are running ICS+ Oct 11 11:27:30 Oh. Oct 11 11:27:33 pierpark, http://stackoverflow.com/questions/4461134/android-listview-adapter-onclicklistener-issue look at the Edit2: in the answer Oct 11 11:27:44 So ... emulators for froyo and gingerbread :S Oct 11 11:27:44 lut4rp: i heep hearing holo everywhere is not a good idea Oct 11 11:28:13 g00s, I meant seeing the pre-holo theme for people running 2.x, and Holo for people running 4.x Oct 11 11:28:20 Is *that* not a good idea? Oct 11 11:28:36 It is, but you don't need to do anything special for it Oct 11 11:28:37 holo everywhere project … is what i meant Oct 11 11:29:00 Estel, I don't, I know. But I need to set target=android-14 or whatever. Oct 11 11:29:06 And then I need to rely on Lint Oct 11 11:29:13 I did not know about the Lint thing. Oct 11 11:29:21 * lut4rp is disappointed with himself :S Oct 11 11:29:32 dont be, i think its a mess Oct 11 11:29:44 meh, you'll always need to do some testing on an API8 device regardless of lint. Oct 11 11:31:45 Hmm Oct 11 11:31:55 DIE GINGERBREAD. DIE. Oct 11 11:32:35 * p_l only recently got to gingerbread Oct 11 11:32:37 dude, new GB devices are still being introduced Oct 11 11:32:59 specifically, some cameras running android. like the samsung one Oct 11 11:33:03 and I think I just missed the spot to buy a phone, cause getting a new laptop became much, much more urgent Oct 11 11:33:17 this is android http://i.imgur.com/GDpyF.jpg Oct 11 11:33:31 the jalopy is GB, the left blinker is the compat library Oct 11 11:33:37 and the tupperware is ABS Oct 11 11:33:39 :) Oct 11 11:33:52 dude! thats awesome (both the photo, and the analogy)! Oct 11 11:34:07 hehe Oct 11 11:34:13 Hmm, I don't appear to have any froyo devices around anymore :/ Oct 11 11:34:33 I have a beautiful HTC Desire running 2.3.7 :) Oct 11 11:34:34 and here are the apis http://imgur.com/a/EbndJ Oct 11 11:34:35 Estel, my Nexus One is flaky as hell Oct 11 11:34:51 (I flashed it back to 2.1) Oct 11 11:34:56 er, 2.2 Oct 11 11:35:03 http://i.imgur.com/spsA6.gif Oct 11 11:35:07 oups Oct 11 11:35:11 g00s, rofl Oct 11 11:35:15 sorry worng windows Oct 11 11:35:16 hehe Oct 11 11:35:31 what the... Oct 11 11:35:49 those are wheelchair ramps … built wrong Oct 11 11:35:58 they look pretty deadly actually :) Oct 11 11:36:49 Guys, quick question - I am trying to display a dialog, and it crashes on me on this line: AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(cont); Oct 11 11:36:52 What's wrong with the crazy zig zag one? :P Oct 11 11:37:04 Tee_Pee, STACKTRACE Oct 11 11:37:05 thats the fragments api :) Oct 11 11:37:12 as this is in an onSuccess function, cont is a final Context variable declared outside Oct 11 11:37:24 or gtfo :) Oct 11 11:37:29 mrenouf - Give me a damn minute, I have it... Oct 11 11:37:49 g00s: some of those aren't wheelchair, but for child strollers Oct 11 11:37:58 where they construction fits Oct 11 11:38:02 Now just a damn minute Jim. I'm a Doctor, not a scientist. Oct 11 11:38:03 The only thing about it is a NullPointer exception at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:142) Oct 11 11:38:27 p_l: ah, ok Oct 11 11:38:36 * g00s thinks p_l has some experience with these Oct 11 11:38:41 According to this http://stackoverflow.com/questions/11817840/nullpointerexception-when-creating-a-new-dialog it's related to the context from inside onSuccess(), but I am already doing that as is suggested in the answer. Oct 11 11:38:59 Tee_Pee: pastebin your code? Oct 11 11:39:23 g00s: few of the pics showed classic child-stroller ramps on stairs in Europe (at least Central/Eastern) Oct 11 11:39:41 1s, I think I got it... Oct 11 11:39:55 yeah, I'm an idiot. Oct 11 11:40:45 p_l: this was the scariest one ! http://i.imgur.com/F9U9w.jpg Oct 11 11:40:50 I was supposed to put the final Context cont - getActivity() variable outside of the AsyncHttp call, and I put it outside the entire method. Oct 11 11:41:45 g00s: that's exactly a child stroller ramp, not a wheelchair one (though it can be used for wheelchair with help) Oct 11 11:42:14 They missed the bottom three stairs :( Oct 11 11:42:15 I'd so take my bike down that Oct 11 11:42:28 yeah ! Oct 11 11:43:18 Estel: not needed Oct 11 11:47:41 Just need a small advice on coding practice - Currently I have a fragment that only shows a "Loading albums" text, and fires of a server request. What I intended to do was to remove the text, add a gridview and populate it. However, from what I see, that's not the correct way to do it, but rather change the layout of the fragment to a new xml layout. Is that correct? Oct 11 11:50:51 This is silly, but is there a constant defined in the platform somewhere for "content://" ? I'd hate to hardcode that if not needed. Oct 11 11:51:49 is there a way to attach an ondraglistener to the android system bar at the bottom? Oct 11 11:52:34 if I have an activity, and it has a camera as a public member, how do I get the camera from the activity? Oct 11 11:53:15 YourActivity.camera Oct 11 11:53:47 I need help on integrating the AdMob SDK into my project - google only offers help if you use Eclipsed, which I don't. Anyone got a tutorial on how to do that with the cli? Oct 11 11:53:56 oh yeah, the activity is actually a Context Oct 11 11:54:04 zerribert, if it's not part of your app, no. Oct 11 11:54:37 can I cast the Context to my MainActivity? Oct 11 11:55:19 Tee_Pee, no. you can use the "empty" view for the GridLayout. It's automatically shown hidden when the gridview has content, hidden otherwise. Oct 11 11:55:34 Tee_Pee, see GridView#setEmptyView Oct 11 11:55:45 o0sdaq0o: o0sdaq0o yep Oct 11 11:56:14 Camera camera = ((MainActivity)mContext).mCamera; ? Oct 11 11:56:38 mrenouf - I thought about that, but I'm just unsure about what to do with the loading message... I can hide that I assume? Oct 11 11:56:46 yeah, surround it with try catch(ClassCastException) just to be secure Oct 11 11:57:15 Tee_Pee, again, it's automatically shown when there is no content, hidden for you when there is content Oct 11 11:57:39 Tee_Pee, use a frame layout, stack the message above the GridView. Oct 11 11:57:50 Tee_Pee, or wherever you want really Oct 11 11:57:59 Aye, but aside from the gridview I have a ProgressBar and a TextView. Can I hide those? Oct 11 11:58:02 or that Oct 11 11:58:28 Tee_Pee, Put those inside some layout, and pass the whole thing to setEmptyView Oct 11 11:59:27 Tee_Pee, the gridview will call setVisibility(View.GONE) on the view provided to setEmptyView if it's list adapter returns 0 from getCount() Oct 11 12:00:17 obviously I meant, if it returns > 0 from getCount() :-) Oct 11 12:00:52 aye Oct 11 12:01:11 So if I understood everything correctly, this should be about right: http://pastebin.com/V29k0Z5a Oct 11 12:02:26 zerribert: thank you Oct 11 12:04:38 now if I have a FaceDetectionListener, how do I get the result faces to my Renderer so I can draw boxes around faces in the camera preview? Oct 11 12:05:25 mrenouf: what is "content://" ? Oct 11 12:05:57 o0sdaq0o, the standard protocol for content provider URIs Oct 11 12:06:15 mrenouf: oh, why would you need that? Oct 11 12:06:28 o0sdaq0o, cause I'm using a content provider? Oct 11 12:06:43 mrenouf: heh, what is a content provider? Oct 11 12:07:05 Are you trolling me? Oct 11 12:07:09 srsly Oct 11 12:07:29 mrenouf: no, I'm curious... our app has "asset://" I was wondering if it is similar Oct 11 12:07:59 no, it's not the same thing Oct 11 12:08:01 http://developer.android.com/guide/topics/providers/content-providers.html Oct 11 12:08:05 read up! Oct 11 12:08:11 mrenouf: thanks :) Oct 11 12:11:02 hmpf... this is not good. Oct 11 12:13:55 http://pastebin.com/C9ne7Gn8 <----Stacktrace. I am trying to get the RelativeLayout from the XML from within the fragment (AlbumFragment.java). I get the view, and later on in a success response handler I try to fetch the RelativeLayout, which throws a null pointer exception. Oct 11 12:13:59 any idea? Oct 11 12:20:44 Apparently getView() doesn't work the way I think it does... Oct 11 12:27:02 TeePee Oct 11 12:27:34 Why aren't you finding loaderMessage in the onCreateView? Oct 11 12:32:13 paste code Oct 11 12:34:42 so you can do: myButton extends Button{...} and then in xml make ? Oct 11 12:35:37 hey all. If I added jar files to my libs directory, how do I include them in the build path? Note: I don't use eclipsed. Oct 11 12:35:40 in xml you have to use full qualified package name Oct 11 12:35:58 ie com.projects.myapp etc Oct 11 12:36:03 tech1 Oct 11 12:36:32 if i call .setPadding(..) on a button, why does the buttons text's padding change and not the button's padding itself? Oct 11 12:37:22 thanks lasserix. so it would be Oct 11 12:37:39 yeah i think so Oct 11 12:37:49 also you have to use second constructor Oct 11 12:37:59 or third, i can't recall Oct 11 12:38:13 but if you use myButton(context context) {} as your constructor it'll crash Oct 11 12:38:28 *since you are inflating in xml Oct 11 12:38:28 hmmm i see Oct 11 12:38:39 hi there! is that normal that string.contains fails Oct 11 12:38:46 is there an example of how to do it online anywhere Oct 11 12:38:53 sure just google Oct 11 12:38:57 opariti works for me Oct 11 12:39:26 Hi, I am using ActionBarSherlock and everything is running fine except whenever i run the app i get this error : Could not find class 'com.actionbarsherlock.app.SherlockFragmentActivity', referenced from method com.actionbarsherlock.internal.app.ActionBarImpl.selectTab Oct 11 12:39:49 what is this error Oct 11 12:40:21 lasserix: it - generally! - does for me too. however, I have a clear case that doesn't, quite stupid (if it isn't me). just wondered if you huys know a 'special' case when it fails Oct 11 12:40:23 digitalfallacy did you remember to set the apptheme in the manifest to sherlock? Oct 11 12:40:46 opariti there's a webpage if you google about string comparisons in java that may have a clue Oct 11 12:41:58 lasserix: yes i have set it to Theme.Sherlock.Light Oct 11 12:42:09 Its working just fine Oct 11 12:43:47 lasserix: yep, you are right: http://stackoverflow.com/questions/3576413/why-is-my-string-to-string-comparison-failing. it's not the 'compare', but the type casting (precompiler issue I suppose) Oct 11 12:47:55 im working on a linearlayout that acts as a container for other views which you can drag in. i'm trying to add a drag listener onto the views in the container so that they will make room for the view that is currently being dragged onto them. i've tried view.setPadding(50,0,0,0), but that will not make the view move, it will make the text inside of that view move, for whatever reason. any other approaches on this? Oct 11 12:48:10 hi, is it hard to create a small app for ios based on the android app? Oct 11 12:48:52 complete rewrite, it's even different programming languages Oct 11 12:49:17 I sincerely hope there is a simple fix for this one - the adapter populating my grid view fails because it runs networking on the main thread. Is there a simple way to separate just the adapter in a different thread? Oct 11 12:49:45 Gentle`: yes i know but i thought there maybe would be a standardized way Oct 11 12:50:07 Gentle`: i hear some people write android apps in C# too now ? Oct 11 12:50:36 Tee_Pee: fetch your data in a separate thread, wait for that thread to finish in the main thraed, then populate your grid view Oct 11 12:50:42 only if you designed your code to be portable from the start. There are toolkits where you write code one time and it spits out an ios and an android binary by utilising voodoo chants Oct 11 12:50:55 mobile8: you can try the NDK, yes Oct 11 12:51:14 still, I'm not sure if the android NDK has an objC compiler Oct 11 12:51:32 zerribert - I understand the logic, but I can't figure out how to code it. Do I have to create a different class altogether, or am I missing something simple? Oct 11 12:52:08 mobile8: if you want to write your apps in C# you will need mono touch Oct 11 12:52:10 Tee_Pee: not really. You need to do the networking in a separate thread, and once you have the results from the networking thread you can make it add the stuff to the adapter Oct 11 12:52:17 i guess its right now the only c# framework for android and iOs Oct 11 12:52:19 Tee_Pee: see AsyncTask, it generally helps you along the way Oct 11 12:52:45 timroes: what's recommendable for a beginner, having wrote only PHP often before Oct 11 12:52:50 Tee_Pee: write some method that will put the data you're fetching into some object. do the fetching in a separate thread, then, just before the thread ends, call notifyAll on that data object Oct 11 12:53:02 and are there many people that develop android apps in C#? Oct 11 12:53:04 Tee_Pee: in the meanwhile, call wait() on the data object in the main thread Oct 11 12:53:15 mobile8: I would learn Java, since its a pretty easy language for beginner from my teaching experiences, but C# is also pretty easy Oct 11 12:53:24 oh you meant C# when saying #C Oct 11 12:53:27 zerribert: can't be done on android. That implies you are on wait() on the object Oct 11 12:53:34 zerribert: but UI thread is not allowed to sleep Oct 11 12:53:41 why would anyone write C# for embedded devices? Oct 11 12:53:44 lasserix: could there be any other problem ? Oct 11 12:53:46 zerribert: you can try it, but you'll get android popping up the "Application Not Responding" dialog Oct 11 12:54:05 alankila: then he could do it in a service instead Oct 11 12:54:18 alankila: once the data is ready, this service could call a callback method in some activty Oct 11 12:54:26 with Java you stay platform independent (for desktop systems) and will be able to develop for android, with c# you will run way faster, but you are mostly limited to windows (though mono gives a pretty good port to linux, but you must take care, when you want to develop for windows and linux a lot in C#) Oct 11 12:54:34 zerribert - would it be possible to create a class that extends AsyncTask, have a method that fetches the data and returns it, then just call that method from the main thread? Oct 11 12:54:47 Guys. Oct 11 12:54:52 zerribert: that looks more reasonable, at least. In any case Service is not the right abstraction either (most likely), I'd still recommend AsyncTask Oct 11 12:55:19 Tee_Pee: alankila : yeah AsyncTask is actually better than Service, you're right Oct 11 12:55:27 Tee_Pee: if you need to do alot of http-calls I suggest to use some library Oct 11 12:55:30 for example: http://loopj.com/android-async-http/ Oct 11 12:55:41 mobile8: just to say, maybe you mixed things up a little. iOS development is not C#, it's objectiveC, something completely different Oct 11 12:55:41 mobile8: and besides when you want to learn a "real" language (meaning not php :D) you will run pretty good with java, since it is nowadays really wildy used (but you would also find good jobs with C#, though from my experience, Java is a bit more spread) Oct 11 12:55:42 pretty forward to use Oct 11 12:55:53 Does anyone know PircBot ? Oct 11 12:55:54 but you should learn how to use async task, it is pretty handy Oct 11 12:56:02 Heya.. Just wondering if SettingsActivities/PreferenceScreens have an integer input.. For now I've just got my preference helper pulling out a string and casting it to an int, but I was wondering if there was a nicer way to handle this.. (Using an EditTextPreference that only takes [0-9]+ as input).. Oct 11 12:56:10 mobile8: while C# is pretty much a Microsoft based windows language, objC can almost exclusively found on apple systems Oct 11 12:56:20 timroes: TIOBE suggests that Java and C are by far the most popular languages, together they are around 50 % of everything. Oct 11 12:56:42 vavirta - I actually already use that to get JSON data from my server. Now however I need to fetch image data from a URL. Oct 11 12:57:06 Gentle`: yes i know Oct 11 12:57:10 well, that was too generous. 40 %. A certain upstart called objC is now the 3rd most important language to know. Oct 11 12:57:16 anyone have an example of how to draw points or squares in GLES2? Oct 11 12:57:21 timroes: ok thanks Oct 11 12:57:27 alankila: I know, but c i wouldn't recommend if he wants to learn now some new language as a beginner, and thats why I said from my experience, and yeah java is way above C#, but I would also take in account, that a lot of .net programs doesnt purely contain of C#, but also the other .net languages often Oct 11 12:57:50 oh wait, the library can fetch binary data Oct 11 12:57:51 derp Oct 11 12:57:58 I think so Oct 11 12:58:11 timroes: right. I was just reflecting on your statement that "Java is a bit more spread". In all likelihood, it completely trumps C# in terms of market share. Oct 11 12:58:11 and eclipse is like the standard IDE for Android apps, right? Oct 11 12:58:25 mobile8: seems to be.. Oct 11 12:58:26 alankila: what do you mean, upstart? objC is older than C++ Oct 11 12:58:26 yeah Oct 11 12:58:27 o0sdaq0o: load VBO with points for two triangles (can be a normal, strip or fan. normal is safest, I think), then use simplest vertex shader to load them, and pixel shader to colour them/texture them Oct 11 12:58:36 Makes me wonder how many others are using IntelliJ.. Oct 11 12:58:39 Gentle`: I know it's ancient, but it used to be very very far down Oct 11 12:58:40 puppen: I do Oct 11 12:58:49 Woohoo! I'm not alone ^^' Oct 11 12:59:03 Gentle`: are you sure ObjC is older? I think it's younger, or at best close in age Oct 11 12:59:07 I was largely reflecting its sudden surge in popularity, and conflating it with iOS that is the cause Oct 11 12:59:08 mobile8: Yes, but you can also code with NetBean or IntellJIDea for example Oct 11 12:59:12 p_l normal does that mean I need 6 verts? Oct 11 12:59:13 so your criticism is correct. Oct 11 12:59:41 o0sdaq0o: for normal, without using indexed data, you need 6verts Oct 11 12:59:44 but you will miss some features there. E.g. I always develop with NetBeans, but you have e.g. no GUI Editor there to click your ui together Oct 11 12:59:57 I guess C is also boosted because it's a common technology among all operating systems. Oct 11 13:00:10 Hello, everybody! Oct 11 13:00:12 o0sdaq0o: with triangle fan, you get 4 points Oct 11 13:00:24 because C, too, has been increasing in popularity, if this is accurate. Oct 11 13:00:29 I guess C is mainly boosted, because we like so much to code Java and C# and all that stuff, wherefor someone needs to write us VMs :) Oct 11 13:00:44 p_l: very close to each other, C++ and objC both were ratified 1986 and development had started in 1979-1980, for both Oct 11 13:01:09 depends on what you mean by "ratified" Oct 11 13:01:43 p_l I have points coming from a FaceDetectionListener I am not sure what coordinate system they are Oct 11 13:01:56 p_l so I'm not sure what my MVP matrix looks like Oct 11 13:02:06 timroes: ok Oct 11 13:02:30 o0sdaq0o: can't help you there Oct 11 13:02:38 p_l okay thanks Oct 11 13:03:17 p_l oh, is it possible I don't need a MVP matrix? Oct 11 13:03:28 o0sdaq0o: not sure Oct 11 13:03:37 p_l nevermind, http://developer.android.com/training/graphics/opengl/draw.html Oct 11 13:03:41 what is the MVP you wnated? :) Oct 11 13:03:49 i believe if es2.0 you have to use mvp Oct 11 13:04:31 p_l the point coming in from the facedetectionlistener is 2d so I don't need to project it Oct 11 13:04:54 well, yeah. You only need to transform it into GL space Oct 11 13:05:00 which is what the vertex shader is for Oct 11 13:05:06 p_l cool Oct 11 13:08:28 has anyone used http://loopj.com/android-async-http/ ? Oct 11 13:08:45 what is the best way to disable animation while switching animation? Oct 11 13:08:56 I'm getting freak behavior in which onStart() shows up properly, but I never get onSuccess() nor onFailure() Oct 11 13:08:58 *while activity switching Oct 11 13:09:01 nothing happens... Oct 11 13:10:36 Tee_Pee: no, we don't use it. It's probably just a smoosh of AsyncTask and the Apache HTTP stuff Oct 11 13:10:46 Consider writing this using AsyncTask while you figure out what you're doing Oct 11 13:15:57 whats the opposite of serialization? Oct 11 13:16:09 de-serialization :) Oct 11 13:16:21 thanks actually what i was looking for :) Oct 11 13:17:26 http://stackoverflow.com/questions/12840433/android-asynchronous-http-client-binaryhttpresponsehandler-not-firing Oct 11 13:18:21 Tee_Pee: consider debugging into the library you're using Oct 11 13:18:27 it's possible that the library itself is buggy Oct 11 13:18:34 hell, just inspect its code, see if you can figure it out Oct 11 13:19:03 you're basically not going to get a lot of help asking about random libraries that no one uses Oct 11 13:19:37 Does anyone know PircBot ? Oct 11 13:20:03 I know, but poking around the net seems to indicate that this library isn't that unpopular... there is a lot of talk about it, just not this particular issue. Oct 11 13:20:59 regardless, I'd strongly suggest that you inspect the library and try to figure out how it works, along with debugging it yourself. Oct 11 13:21:13 figure out what code path is actually going to be taken and inspect it Oct 11 13:21:25 attach the debugger, and trace your progress. Oct 11 13:21:34 is it safe to have r.id.score and int score, to assign int score to r.id.score, or should i call it r.id.score_label ? Oct 11 13:21:59 er Oct 11 13:22:08 "yes" Oct 11 13:22:31 R.id.score is an int that references a marker to the "score" id. Oct 11 13:22:39 i have this in xml android:id="@+id/editText3", but still calling this EditText emailbody = (EditText) findViewById(R.id.editText3); body = emailbody.getText().toString(); Gives me "null" wtf & why? Oct 11 13:22:44 If you're going to have several possible ids, and you want to conveniently store the correct id, you can store it in some int. Oct 11 13:23:03 R.id.score is the id defined in xml TextView Oct 11 13:23:06 just bear in mind that R.id.score doesn't actually back the element that's referenced with that id Oct 11 13:23:25 There we go... Oct 11 13:23:32 malformed URL Oct 11 13:23:33 the R values are also final, so you can't actually assign them anything Oct 11 13:24:07 oh i mean set the TextView's text via referncing it's id Oct 11 13:24:15 sorry i should have put that Oct 11 13:24:27 i was just wondering about names Oct 11 13:24:28 tech1: right, yeah, you have to actually find the element via findViewByid and call methods on it to get relevant information Oct 11 13:24:50 yeh Oct 11 13:24:56 you can reuse ids across layouts, but if you have the same id for multiple items in the same layout you might have trouble trying to find the element Oct 11 13:25:01 whoaa tech1 on same page as me Oct 11 13:25:12 if you've done any javascript work, think about it as having multiple html entries with the same id Oct 11 13:25:25 useful for reuse Oct 11 13:25:25 i see Oct 11 13:25:45 i was more asking about conflict between the java int and xml id naming Oct 11 13:25:52 but i guess there is no conflict there Oct 11 13:25:54 right Oct 11 13:26:04 you can have some local int called foo Oct 11 13:26:07 and R.id.foo Oct 11 13:26:11 yeh thats it Oct 11 13:26:17 R is just an autogenerated class Oct 11 13:26:23 i see Oct 11 13:26:42 so it's no more a problem then having some random class with a foo static final member variable Oct 11 13:26:48 and then referencing that locally in your method Oct 11 13:26:59 R isn't magical :) Oct 11 13:27:06 true Oct 11 13:27:14 thanks it is clearer now Oct 11 13:28:24 no problem Oct 11 13:28:37 i have this in xml android:id="@+id/editText3", but still calling this EditText emailbody = (EditText) findViewById(R.id.editText3); body = emailbody.getText().toString(); Gives me "null" wtf & why? Oct 11 13:28:48 ovrflw0x: we really don't know or care. Oct 11 13:28:55 what is null? Oct 11 13:28:56 body? Oct 11 13:29:03 is it possible that emailbody has no content? Oct 11 13:29:14 "" <-- i do type in content but still Oct 11 13:29:25 yeah the empty string is not null. Oct 11 13:29:30 Strongly consider whether you're looking at the right element. Oct 11 13:29:55 I REALLY, REALLY strongly recommend that you look at the tutorials that we all pointed you to yesterday so you have an idea what you're doing. Oct 11 13:30:04 In AsyncTask how can I check if a method, of a class that invokes it , it's called? Oct 11 13:30:11 under: huh? Oct 11 13:31:14 i have this in xml android:id="@+id/editText3", but still calling this EditText emailbody = (EditText) findViewById(R.id.editText3); body = emailbody.getText().toString(); Gives me ""<- empty string wtf & why? \\ what could be causing this problem? Oct 11 13:31:27 perhaps you have multiple elements in your layout with the same id. Oct 11 13:31:34 pastebin the relevant layout and code Oct 11 13:31:40 no i don't it's autogenerated xml Oct 11 13:31:45 hold on Oct 11 13:32:59 does anyone know if the face detection in ICS and above is hardware accelerated? Oct 11 13:33:51 o0sdaq0o: http://stackoverflow.com/questions/12170737/is-android-4s-face-detection-api-dependant-on-specific-phones Oct 11 13:34:16 honestly I'd guess yes? Oct 11 13:34:17 lov thanks Oct 11 13:34:37 lov, XML -> http://pastie.org/private/6grxdyt2t3a1adwmj0trbq code -> http://pastie.org/private/surwmpwmxwz0pbrar1yq Oct 11 13:34:39 really, just inspect the source. Oct 11 13:35:29 ovrflw0x: er Oct 11 13:35:30 is there anything that would cause android to get the image data from this image http://forums.terrybrooks.net/Avatars/7691/Dystopia.jpg without any issue whatsoever, but fail to get this http://d2pylg92tvoklp.cloudfront.net/users/28970/images_185898_85nte6f1_thumb.jpg Oct 11 13:35:37 I know this must be asked like 100 times a day, but whats a good book to learn android for a guy whose already a developer (php mostly)? Oct 11 13:35:38 yeah, it's going to give you the empty string in onCreate because there's nothing there. Oct 11 13:35:41 because that's what I'm getting. Oct 11 13:35:41 this is your onCreate. Oct 11 13:35:56 ovrflw0x: strings are immutable. Oct 11 13:36:08 when you call getText().toString(), you're getting the value AS OF RIGHT THEN./ Oct 11 13:36:17 you have to re-query your textview if you want a new value. Oct 11 13:36:30 where to put EditText code? Oct 11 13:36:34 jesus christ Oct 11 13:36:39 think about it for like 30 seconds Oct 11 13:36:44 it will become clear Oct 11 13:36:48 I'm not going to write your code for you Oct 11 13:37:04 aha after onClick right? Oct 11 13:37:12 lov: I'm creating an irc client. If I'm in AsincTask, how can I know if the client, for example, joined a channel? Oct 11 13:37:15 figure it out and click "run". Oct 11 13:37:18 see if you're right. Oct 11 13:37:28 under: fucked if I know. Oct 11 13:37:36 under: I'd strongly recommend that you use a Service for your backend Oct 11 13:37:55 Instead of AsyncTask? Oct 11 13:39:36 yes Oct 11 13:39:46 think about what happens if your activity goes away Oct 11 13:40:13 ok man.. I'll see.. Oct 11 13:45:02 This is weird... I can access and fetch any image that I can think of except for the ones that are on my cloudfront, like http://d2pylg92tvoklp.cloudfront.net/users/28970/images_185898_85nte6f1_thumb.jpg for example. Oct 11 13:45:12 Does android have any quirks regarding subdomains perhaps? Oct 11 13:47:58 Tee_Pee: works for me. How are you fetching that? Oct 11 13:49:01 Via the Async Http Library. I've figured it's something related to it, writing a custom AsyncTask now. Oct 11 13:50:17 Ahh tieing up the loose ends is fun but boring. Oct 11 13:50:23 I'm looking to start porting some iOS apps to android. What would be a good phone to begin my journey with? Also are there any stats on Android phone market shares available? Oct 11 13:51:24 gearaholic: Google Nexus Oct 11 13:51:26 can some kind soul point in the right direction on to how to make a 360 image that you can slide to spin? Oct 11 13:52:21 gearaholic: some of the benchmarks that run on android also host market share pages Oct 11 13:53:20 Passmark does anyway. Though Nexus always gets the latest updates and it should be pretty representative. No bloatware you can't uninstall without rooting your phone either. Oct 11 13:54:37 cmihai: I guess where I'm concerned is, If the majority of android phones out there are running 2.x, Should I get a 2.x phone? Oct 11 13:54:49 No, you can use the emulator. Oct 11 13:54:57 ok Oct 11 13:55:01 gearaholic buy a cheap one off craigslist if you can Oct 11 13:55:12 (It is slow though) Oct 11 13:55:22 having a physical device is orders of magnitude better than dealing with emulator Oct 11 13:55:26 lasserix: I keep looking Oct 11 13:55:43 Yeah I need to play media and I found that i cant play videos in the emulator Oct 11 13:55:53 alternatively you can just take an SD card to best buy and install your app to test it out ;p Oct 11 13:56:07 lasserix: good idea Oct 11 13:56:28 There's another emulator that works with media Oct 11 13:56:32 YouWave I think. Oct 11 13:56:38 Could work. Oct 11 13:57:44 but if you can afford don't overlook designing for tablets too, i had an asus transformer for a while but until i got the nexus 7 i really didn't end up using the transformer for much more than development, but now that i have the 7 i use it all the time / its fantastic to develop on Oct 11 13:58:22 for getMaxNumDetectedFaces(), Galaxy Nexus returns 35, Galaxy SIII returns 2 !!! Oct 11 13:58:24 gearaholic: http://developer.android.com/about/dashboards/index.html Oct 11 13:58:36 *and having a decent device to use is good for doing research in the market etc Oct 11 13:58:42 gearaholic: You'll want to test on the most popular devices at the moment, but bear in mind that things change quickly for android Oct 11 13:58:46 I do have a Galaxy tab 10.1 I got free with a new TV Oct 11 13:58:54 there are three pieces of advice I can give you Oct 11 13:59:09 1) Avoid pixel perfect. it does not exist on android. period. You HAVE to use relative layouts with percentages and dp or you're in for a world of pain Oct 11 13:59:25 hear hear! Oct 11 13:59:28 2) Read the android design style guides. Read them again. Then read them again. Then use an android phone for a month. Oct 11 13:59:40 Android is not iOS. Straight ports of iOS UX goes over like a lead balloon. Oct 11 13:59:53 lov: right, Thats why im looking for a starter device then get more for testing later as things progress Oct 11 14:00:04 lov: +1 for 2) Oct 11 14:00:07 lov: wich book did you study on , if you? Oct 11 14:00:14 under: d.android.com Oct 11 14:00:25 I cant. Oct 11 14:00:44 I hate apps that don't work on landscape. I have a transformer - things are a PITA. Oct 11 14:00:45 3) If you're planning on supporting your code on both android and iOS, strongly consider having a core engine in C. Android has an NDK. Oct 11 14:01:06 this is more relevant for games, to be honest Oct 11 14:01:11 but this is where most of the iOS ports happen Oct 11 14:01:23 lov: what about Phonegap or Worklight Studio? (HTML 5 + CSS3 + JavaScript / AJAX with JQuery / DOJO Mobile) Oct 11 14:01:47 cmihai: I haven't used them personally, but my understanding is that you end up with an app that does neither android nor ios well. Oct 11 14:01:56 lov: +1 again Oct 11 14:02:05 Heh. Oct 11 14:02:13 a lot of that phonegab and similiar crossplatform stuff, looks in my oppinion missplaced everywhere Oct 11 14:02:18 dont use phonegap please ! Oct 11 14:02:27 lov: great tips. thanks I have already planned to keep UX and core separate, Just like Mac & windows apps. what works on a mac doesnt work the same on windows. Oct 11 14:02:35 and you also can really see that in negative ratings in google play Oct 11 14:02:42 What kind of apps are you planning on porting, if you don't mind my asking? Oct 11 14:03:07 QUERY: Anyone used AppInv? I'm looking at it for my first app, and also SL4A/Python... I'll need the ability to play multiple simultaneous audio clips as independently controllable tasks, and possibly some other special controls on their playback -- which I suspect rules out AI, and may rule out SL/Py, too. I speak not a word of Java, and if I'm going to learn a new language, I would sort of prefer that wasn't it... :-} Oct 11 14:03:11 oh, and 4) Android is wierd. Oct 11 14:03:13 read Oct 11 14:03:13 they are for a enterprise client. Video library. some business apps Oct 11 14:03:14 http://developer.android.com/training/index.html Oct 11 14:03:27 You really need to understand the whole activity/application lifecycle to understand what you need to do Oct 11 14:04:12 ok. You might want to do the android stuff in java and have two codebases. It totally depends on whether you're mostly UX/UI based, or whether you have a lot of deep logic. Oct 11 14:04:18 what does everyone think about the slide menus ? Oct 11 14:04:45 i need to implement some type of main menu Oct 11 14:05:35 +1 for 4) ;P Oct 11 14:05:36 It depends on what you're navigating between Oct 11 14:06:12 But the main options at the moment seem to be the slide menu or actionbar spinner/tabs Oct 11 14:06:34 personally I think that they're tacky, but ymmv. Oct 11 14:06:46 yea I will end up with too many menu items for a tab Oct 11 14:06:49 Infinitely better than a TabHost xD Oct 11 14:07:03 Or a dashboard Oct 11 14:07:19 when you say slide menu do you mean a viewpager? Oct 11 14:07:30 or do you mean one of those little menus that appears when you long press that's basically a horizontal scrollview? Oct 11 14:07:36 How can I achieve one of those 360 image tours like you see on hotel websites in Android? Oct 11 14:07:39 if you mean viewpagers, they're the bees knees Oct 11 14:07:49 I assumed the Facebook/G+/Youtube sliding side menu Oct 11 14:07:50 i mean like the facebook slide out menu Oct 11 14:08:18 any good examples out there ? ive seen a few but they are all a little different and some buggy Oct 11 14:08:34 oh Oct 11 14:08:38 longbeach: i think he means a SlideDrawer Oct 11 14:08:39 or any that someone has used and recommends Oct 11 14:08:43 I think those are a little tacky too but I'm a terrible judge :P Oct 11 14:08:46 ugh lov ^ Oct 11 14:08:55 longbeach: sorry, wrong person Oct 11 14:09:17 drumer306: I've used https://github.com/jfeinstein10/SlidingMenu , but not tried other yet to recommend it over anything else Oct 11 14:10:08 cool thanks Oct 11 14:10:58 Google recommend that the slide doesn't move the action bar btw. Oct 11 14:12:23 ahhhhhhhhhhhhhhhh Oct 11 14:12:55 I agree with jake, when he says sliding menu pattern is a bs pattern Oct 11 14:13:07 well bs was my input =) Oct 11 14:13:20 What's your preference? Oct 11 14:13:24 whats another good option for a menu that has many items ? Oct 11 14:13:27 i dont care if it slides Oct 11 14:13:41 A main navigation menu to be specific Oct 11 14:13:57 do you care if it is standard? Oct 11 14:14:22 I've seen some people advise to restructure your app so it doesn't have so many 'main' options. Oct 11 14:15:36 Im have a registerForContextMenu(listView), but I want to detect which item in the listview that was selected. Is there a non-haxxy way to do this+ Oct 11 14:16:07 lapdis, its in the extras bundle Oct 11 14:16:15 documented Oct 11 14:16:22 the signature is only onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) Oct 11 14:16:26 when is there a bundle? Oct 11 14:16:58 sorry, the menuInfo Oct 11 14:17:00 http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html Oct 11 14:17:18 you have to downcast it Oct 11 14:17:45 to AdapterView.AdapterContextMenuInfo Oct 11 14:17:50 http://developer.android.com/reference/android/widget/AdapterView.AdapterContextMenuInfo.html Oct 11 14:18:12 hacky... not really. Sloppy API? yes. Oct 11 14:18:35 I know that an activity will be destroyed after going into onPause but what about other classes? I'm asking because I have a state class and on orientation change it retains its values (without shared prefers or anything) which I thought it was all supposed to be destoryed Oct 11 14:19:07 lasserix, then you're leaking that class Oct 11 14:19:19 thank you mrenouf, that was very helpful :) Oct 11 14:19:22 lasserix, you're holding onto a reference from somewhere? Oct 11 14:19:58 i dont think so Oct 11 14:20:12 it's just a bunch of ints independently set Oct 11 14:20:18 but that would make sense thanks Oct 11 14:20:49 lasserix, possible the Activity instance is not actually recreated Oct 11 14:20:58 but don't count on it Oct 11 14:21:05 that's what I was thinkining Oct 11 14:21:17 * ron_frown sighs Oct 11 14:21:22 anyone know of a ...sort of *definitive* guide to ORM's? Oct 11 14:21:24 it's just a state class that contains like catagory ids and stuff, Oct 11 14:21:33 day 4 trying to get remotely stable os Oct 11 14:21:48 Sicp: what do you mean... there are like a BUNCH of different STYLES of orm Oct 11 14:21:52 what do you want to know Oct 11 14:22:35 hmm well I want to learn about how DAO on Android works, but it seems to have a steep learning curve..I want something that will explain the basics first, as in..some parent concept of ORM that DAO will surely stem from Oct 11 14:22:51 DAO on android? Oct 11 14:23:05 yea, greenDAO Oct 11 14:23:12 oh Oct 11 14:23:17 http://greendao-orm.com/ Oct 11 14:23:42 they take into consideration that you're already familiar with how ORM's work and they just explain to you how THEY've went about that approach Oct 11 14:24:49 just look at it this way... you have objects, you have sqlite database... the ORM maps object properties into fields in the db Oct 11 14:25:46 how can i run "static void main" class as java application using android jar? Oct 11 14:25:56 in eclipse on windows Oct 11 14:27:11 thanks for everyone's help Oct 11 14:32:34 nvm Oct 11 14:33:04 if i have android:text="happy birthday alicia#" it creates a linebreak before "alicia" because of the # character. is this a bug or is # meant to do that Oct 11 14:35:03 ovrflw0x: what ? Oct 11 14:35:23 nvm gorudonu Oct 11 14:35:27 why do you want to do that.. Oct 11 14:36:28 Well, apparently mentioning a distaste for java in here gets you ignored. Or my comments aren't sending. :-) Oct 11 14:36:44 as an aside, you can run regular java programs on dalvik like that. it's just essentially worthless unless you're doing it for the hell of it Oct 11 14:36:57 Baylink: I think it's the latter? Oct 11 14:37:05 oh Oct 11 14:37:06 Perhaps. rerun: Oct 11 14:37:09 the question you asked like 30 mins ago? Oct 11 14:37:10 QUERY: Anyone used AppInv? I'm looking at it for my first app, and also SL4A/Python... I'll need the ability to play multiple simultaneous audio clips as independently controllable tasks, and possibly some other special controls on their playback -- which I suspect rules out AI, and may rule out SL/Py, too. I speak not a word of Java, and if I'm going to learn a new language, I would sort of prefer that wasn't it... :-} Oct 11 14:37:14 yep. Oct 11 14:37:15 That one. Oct 11 14:37:20 I've never used AppInv so I didn't answer. Oct 11 14:37:36 I'm sure. I figured 675 listeners was enough to find at least one. Oct 11 14:37:37 :-) Oct 11 14:37:49 Baylink: I don't think AppInv has enough functionality Oct 11 14:37:50 Anyway, consider learning java even though "RAWR JAVA BAD ME HATE" Oct 11 14:37:59 yes Oct 11 14:38:02 suck it up and learn java Oct 11 14:38:16 if you want a better language you can try scala Oct 11 14:38:21 yes, we know, java is old and busted, is the new hotness, but it's still the lingua franca of Android. Oct 11 14:38:24 internals of AppInventor are interesting, and could be useful in programming android in something other than java Oct 11 14:38:27 From my viewpoint, as a 30 year programmer with 4 languages to at least some level, learning Java seems as fetching as learning Cobol. Oct 11 14:38:28 but a least learn the basics of java so you can get comfortable. Oct 11 14:38:30 and yeah, if you feel like dicking around with the new hotness, look at Scala. Oct 11 14:38:33 (AppInventor is actually Scheme) Oct 11 14:38:48 oh, you meant AppInventor? Oct 11 14:38:48 ha Oct 11 14:38:50 Yeah, And Boxes; I saw that. Oct 11 14:38:53 Baylink: they say "you can't teach old dogs new tricks" Oct 11 14:38:56 Baylink: 4 languages... is pretty low count Oct 11 14:39:03 Braggart. :-) Oct 11 14:39:13 I've never needed more than 4. And one of those is bash. Oct 11 14:39:13 Baylink: about 70% of questions get ignored, pot luck tbh Oct 11 14:39:19 also... is that 30year old meaning 30 years of experience, or just that you're 30yo of undeterminate experience? :P Oct 11 14:39:25 Yeah; not my first rodeo on IRC... Oct 11 14:39:38 I've been a professional analyst and programmer for 30 years. Oct 11 14:39:49 Baylink: if you know C#, Java is pretty similar. It was also designed to be reasonably accessable to those used to C++. Oct 11 14:39:51 Mostly 4GL, but some C and perl Oct 11 14:39:58 Java has some uggo design quirks, but you can live with it. Oct 11 14:40:02 and I'm learning Python, hence my interest there. Oct 11 14:40:04 oh, you can develop android apps with C# Oct 11 14:40:06 see xamarin Oct 11 14:40:10 >_< Oct 11 14:40:32 I'm sufficiently anti-Microsoft that I wouldn't touch Cb for money. Oct 11 14:41:29 haha Oct 11 14:41:31 too bad Oct 11 14:41:47 c# is badass, and imo as a language itself superior to anything else I've used Oct 11 14:41:51 Hmmm... Oct 11 14:42:02 c++ has a level of exoticness because its so flexible Oct 11 14:42:03 cool. maybe write a letter to RMS and see if he can help you with your perdicament of not having a language to use for Android, if he's not to busy eating his toejam Oct 11 14:42:09 If only Android were WP8, eh? :P Oct 11 14:42:13 C#, and the core of .NET, is great. It's the new "limited subsets" that annoy me, but Apple was the market leader there Oct 11 14:42:32 limited subsets? Oct 11 14:42:38 fnord`: and listen to annoying folk music Oct 11 14:42:43 you referring to f# and the like? Oct 11 14:43:00 ron_frown: no, I mean limited subsets of acceptable CLR interfaces, etc. Oct 11 14:43:05 F# is great Oct 11 14:43:09 DLR is great Oct 11 14:43:15 Windows Store is not Oct 11 14:43:55 but success of Mac AppStore kinda ensured the existence of grossly limited app stores Oct 11 14:45:19 fnord`: (RMS) Me? While I think rms' hardcore leftiness on the GPL is Out There, I also think it was pretty important to the ecosphere we have today. Doesn't mean I wanna eat pad thai with him, though. Oct 11 14:45:47 what's wrong with pad thai? Oct 11 14:46:17 can anyone look at this class and say why i "cannot" "instantiate" Mail class? i get exception! while instantiating it from MainActivity, http://pastie.org/private/ou6cnhoypxbijjzwvkrg Oct 11 14:46:22 lov: I suspect it's related to importance of sharing a meal with someone Oct 11 14:47:02 ovrflw0x: I want you to look at the topic title Oct 11 14:47:06 especially the very last part Oct 11 14:47:07 the link in there Oct 11 14:47:25 hint: Your stacktrace may have a "Caused by" line. Oct 11 14:47:31 Look for the last one of those; your root cause is there. Oct 11 14:48:05 Oct 11 14:48:44 Oct 11 14:48:47 lov, i am getting "Internal server error 500" Oct 11 14:49:10 http://imgur.com/jacoj Oct 11 14:49:14 that. Oct 11 14:49:21 works fine for me Oct 11 14:49:40 Baylink: Oct 11 14:50:33 Beware! Oct 11 14:52:39 lov, http://pastie.org/private/3wnxoe7jekrndlagg38a Oct 11 14:54:50 lov, you got anything worth noting from the link posted? Oct 11 14:55:09 You didn't post your MainActivity.java Oct 11 14:56:21 Estel, http://pastie.org/private/gvbzlrv5k3b7qnvl9xuoq Oct 11 14:57:08 You haven't imported the Mail class Oct 11 14:57:18 it's in the package Oct 11 14:57:55 10-11 20:13:02.920: E/AndroidRuntime(2226): FATAL EXCEPTION: main Oct 11 14:57:56 10-11 20:13:02.920: E/AndroidRuntime(2226): java.lang.NoClassDefFoundError: com.example.testmail.Mail Oct 11 14:58:02 clean and rebuild your project. Oct 11 14:58:06 how could that happen Oct 11 14:58:33 10-11 20:12:58.710: W/dalvikvm(2226): Unable to resolve superclass of Lcom/example/testmail/Mail; (502) Oct 11 14:59:18 how to clean the project in Eclipse? there's only "RunAs" options Oct 11 14:59:21 option* Oct 11 14:59:41 project -> clean Oct 11 15:00:02 Project menu, not right click project Oct 11 15:04:00 lov, http://pastebin.com/BbgdFML4 still getting errros Oct 11 15:05:38 So let me couch my question in different terms here.. :-) If I want to write an audio player application for my Android tablet that might have multiple sounds playing at once, and apply looping and fadeouts to them, and allow a clip to be started more than once... how much of the stock android media playing infrastructure will I have to replace? Oct 11 15:08:40 yo lov you there bud? Oct 11 15:10:37 yo yea hey Tweakerman Oct 11 15:10:50 is it possible to force my app to clear the data cache when I push a new version to the market? Oct 11 15:11:13 ovrflw0x: you need to build that jar into your project. Oct 11 15:11:17 java.xmail isn't part of android Oct 11 15:11:31 how to do dat Oct 11 15:11:33 edit your build properties so that it exports that jar as well as references ity Oct 11 15:11:36 jesus christ Oct 11 15:11:41 why don't you use google Oct 11 15:11:46 I'm done holding your hand. Oct 11 15:14:16 even lov has his limits ;) Oct 11 15:14:41 i wanna hold your hand Oct 11 15:14:52 im excited to buy a note2 Oct 11 15:14:55 and dance in the rain Oct 11 15:14:59 the next 2 weeks are going to be agonizing Oct 11 15:15:05 eee Oct 11 15:15:14 next nexus from lg seems to be nice Oct 11 15:15:26 oh wait I have like 4 dollars on my account Oct 11 15:15:43 gorudonu: nothing exciting to me :/ reminds meof the meg jump from nexus one to nexus s Oct 11 15:16:13 mikedg: why? if it's based on optimus g Oct 11 15:16:14 it would be nice Oct 11 15:16:51 it's nice,but it's not usheringin anything new Oct 11 15:17:01 even the nexus s brought nfc Oct 11 15:18:52 maybe you're right Oct 11 15:19:06 I still own old zte blade Oct 11 15:19:13 which drives me crazy :D Oct 11 15:19:36 if you want to do something more than call it becomes hard Oct 11 15:19:40 not smooth Oct 11 15:19:46 but it's armv6 Oct 11 15:19:47 so.. Oct 11 15:33:03 gorudonu, http://pastebin.com/M8ekKFAf <- here's the latest trace, now Mail object gets created but receipient is not getting any emails!! Oct 11 15:33:25 i exported the javax.mail jars Oct 11 15:33:29 to android Oct 11 15:34:05 so ? Oct 11 15:34:10 how can I help you ? Oct 11 15:34:23 why am i not receiving the mail after executing the code?L Oct 11 15:34:26 ovrflw0x: don't just start randomly asking people for help. Oct 11 15:34:31 ovrflw0x: we don't know why no one is getting mail. Oct 11 15:34:39 Why don't you do a little debugging, and see if the mail transport is the problem or what Oct 11 15:34:51 see if the mailer reports any sort of errors Oct 11 15:35:00 if this is going through your email acccount, see if it was ever SENT from your account Oct 11 15:35:15 but really, stop bugging us every single time the smallest error happens. Oct 11 15:35:16 ovrflw0x: you want to write your own client Oct 11 15:35:23 p.s. if you don't have the INTERNET permission this might poop out in dns. Oct 11 15:35:26 or use intents to use default client program Oct 11 15:35:34 gorudonu, just fiddling Oct 11 15:36:31 and listen to lov, you need INTERNET permission Oct 11 15:36:36 ovrflw0x: http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a Oct 11 15:36:39 2nd link on google Oct 11 15:38:53 gorudonu, how to check if i have INTERNET permission or not? i check LogCat and there's no "permission denied" in logs Oct 11 15:39:07 .. Oct 11 15:39:12 AndroidManifest ? Oct 11 15:39:53 ovrflw0x: fucking google it. Oct 11 15:40:03 alternately, do some of the tutorials we recommend. Oct 11 15:40:27 i said there's no "permission denied" in logs.... so question of INTERNET permission doesn't arise? Oct 11 15:40:54 you won't see a permission denied message. Oct 11 15:41:03 if you don't have the INTERNET permission usually there's just an odd dns failure message Oct 11 15:41:18 so what to look for in logs? Oct 11 15:41:19 So, did you actually put the INTERNET permission in your manifest? Oct 11 15:41:22 YES OR NO Oct 11 15:41:25 no Oct 11 15:41:29 then you need to fucking do that. Oct 11 15:42:42 That escalated quickly. Oct 11 15:43:46 :D Oct 11 15:43:49 my patience has basically run out Oct 11 15:44:13 he refuses to rtfm, and instead he's just asking us questions every time hits a problem Oct 11 15:44:25 /ignore ovrflw0x Oct 11 15:44:36 please let me know if he flames out spectacularly so I can just ban him Oct 11 15:44:46 lov: ok, it's fine now ;) Oct 11 15:44:47 relax Oct 11 15:44:59 how do I transform a Point by a Matrix? Oct 11 15:45:25 o0sdaq0o: what ? Oct 11 15:45:39 I just want to multiply a point by a matrix Oct 11 15:45:58 gorudonu: how do I do this in android? Oct 11 15:46:27 you multiply the transformation matrix by the point matrix Oct 11 15:49:05 e.g., for 2D, you have a 3x3 matrix, T, and a point (x,y) which you make into a 3x1 matrix [[x], [y], [0]], M, and T*M => M' Oct 11 15:49:06 o0sdaq0o: sorry I dont know, try what oGMo said Oct 11 15:49:30 I've never used android matrices Oct 11 15:49:31 oGMo I just want to calla function Oct 11 15:49:37 obviously doing the actual multiplication involves multiplying each element and you can discard the stuff you don't care about Oct 11 15:51:15 o0sdaq0o: either you're already dealing with something that lets you specify a transformation, which you should have figured out by now, or you're not, which means you have to do it manually Oct 11 15:51:34 though there may be a math package which is probably slow but handles the general case for you Oct 11 15:51:39 oGMo looks like it has to be done manually Oct 11 15:52:37 so do it manually .. it's pretty trivial :P Oct 11 15:53:35 fire up maxima or something and figure out the operations .. even doing an inverted transform is fairly straightforward Oct 11 15:54:21 er, [[x], [y], [1]] not 0 heh Oct 11 15:54:51 math is hard Oct 11 16:02:25 I am looking at using CipherInputStream for encrypting files in android Oct 11 16:02:30 is there a better way? Oct 11 16:03:11 what exactly are you trying to do? Oct 11 16:03:17 find a random file on the sd card, and encrypt it? Oct 11 16:03:27 write your own data as an encrypted file? Oct 11 16:05:23 its a kind of a file sharing app, I want to encrypt the files before I store it on sdcard Oct 11 16:05:44 hey guys, in a fragment I have this: public void onStart() { super.onStart(); Button buscarButton = (Button)getActivity().findViewById(R.id.imageButton_buscar); //more code ... } I see the code Ok, but when I run the code my app crashes. Any idea whats going on? Oct 11 16:05:56 no Its my apps own file, Its just that I don't want to save it unencrypted on sdcard Oct 11 16:06:06 kulas: without the stacktrace and a pastebin of your code no. Oct 11 16:06:10 so you probably want to use a CipherOutputStream to write it, and CipherInputStream to read it Oct 11 16:06:41 kulas, a fragment should probably not be calling getActivity().findViewById(...) Oct 11 16:06:47 canadiancow: right, but how expensive is it, in terms of cpu/battery drain Oct 11 16:06:48 you should setup your views in onCreateView Oct 11 16:07:03 brickhead, are you encrypting a password or the android source tree? Oct 11 16:07:10 like for small text, i wouldnt worry about it Oct 11 16:08:06 It will be standard files people use and share I guess ~1-2 MB in size Oct 11 16:08:54 why dont you try it and see? Oct 11 16:09:02 i doubt you'll find any much more efficient way of doing it Oct 11 16:09:39 canadiancow: I want to use the onClickListener in that button Oct 11 16:09:55 is there a compression with a random ratio factor that could also be used as encryption ? Oct 11 16:09:57 canadiancow: yeah I'm gonna try that Oct 11 16:10:09 kulas, that's nice. get the reference to the view in onCreateView Oct 11 16:10:41 canadiancow: thanks Oct 11 16:19:03 canadiancow: if I get the reference from onCreateView the button is null Oct 11 16:19:15 then you're doing it wrong Oct 11 16:20:31 canadiancow: how should I get the reference of the button ?? Oct 11 16:20:47 kulas: infalte the view v, use v.findViewById in onCreateView Oct 11 16:26:47 it keeps giving me error. Here is the stacktrace http://pastebin.com/6bb1HriH and here my code http://pastebin.com/7yjWAKRT Oct 11 16:27:16 ImageButton is not a Button Oct 11 16:28:19 noooooooooooooooooooo, Im stupid Oct 11 16:28:21 sorri Oct 11 16:28:24 hahahahaahahaha Oct 11 16:35:02 hello how do i center circular loading image in progress dialog? Oct 11 16:35:07 is it possible to load an html from res/raw in a webview Oct 11 16:35:15 i just want the loading animation no text at all Oct 11 16:35:15 *html file Oct 11 16:36:13 I know it has to be possible Oct 11 16:37:46 Looney, did you find a NDK way of doing better video ? Oct 11 16:38:31 I was working on it but had to abort it Oct 11 16:39:04 the only way I could see is compiling ffmpeg on android Oct 11 16:40:06 anyone experiencing eclipse compilation error using development/ide/eclipse/.classpath? Oct 11 16:46:52 anyone know how to make a 360 perspective image in android? Oct 11 16:57:30 noob here: easy way to add a new directory to your bash profile? Oct 11 16:59:22 ctate, if I define the process in the manifest, how do I associate with some class. Because I just want a Service to run as a separate process once the main process has started. Oct 11 16:59:26 Am I making sense Oct 11 16:59:27 ? Oct 11 16:59:38 adouble do you mean a path to look for BIN files? Oct 11 16:59:57 or a different bash profile path? Oct 11 17:01:07 sorry for noob speak again, so i can run ./adb from any directory. i want to add my sdk platform-tools to my path (i think)? Oct 11 17:01:46 yeah, you want to add Oct 11 17:01:55 export PATH=$PATH:/your/new/dir Oct 11 17:02:14 if you are on PC, use a semicolon instead of a colon Oct 11 17:02:18 on mac Oct 11 17:02:44 then the one i sent will work Oct 11 17:02:55 just run that from terminal? Oct 11 17:03:07 no add that line to your base profile Oct 11 17:03:38 noobing out once again, where can i find that file?/ Oct 11 17:03:49 vi ~/.bash_profile Oct 11 17:04:02 well ignore the vi, that's a whole nother convo Oct 11 17:04:07 ~/.bash_profile Oct 11 17:04:23 < typed vi ~/.bash_profile Oct 11 17:04:55 shouldn't he be modifying .bashrc ? ? Oct 11 17:05:26 * adouble fish slaps self Oct 11 17:07:00 I would modify .profile so it would work on all shells then Oct 11 17:07:58 well I think the sdk tools are meant to be run from bash Oct 11 17:08:28 they should run on other shells though Oct 11 17:08:38 aniasis: why do you want your service to run in a remote process? Oct 11 17:08:47 how come i can't find any of the ~/.bash files? Oct 11 17:08:48 aniasis: I can tell you from personal experience that this will bring you nothing but pain and anger Oct 11 17:09:51 lov, because I want it to run separately and continuously. Oct 11 17:10:53 adouble: maybe there is none or they are hidden Oct 11 17:11:28 aniasis: making it a remote process won't make it run continuously. Oct 11 17:11:31 sorry, is there someone who use eclipse with the entire android sources? Oct 11 17:11:45 aniasis: what exactly is your service going to do? Oct 11 17:11:53 'ls -la ~/' should show all Oct 11 17:12:14 lov, it polls a webservice Oct 11 17:12:58 got it@ hblaub. can i just create one with text edit?/ Oct 11 17:13:47 adouble: you could run 'touch ~/.bash_profile' for example, then it creates one Oct 11 17:14:15 "no such file or directory Oct 11 17:14:19 are you using some file manager or using ls command in terminal Oct 11 17:14:21 adouble: are you sure you are even using bash? Oct 11 17:14:31 no Oct 11 17:14:36 echo $SHELL Oct 11 17:14:43 what does that say Oct 11 17:14:47 if you are in file manager try using Alt + . Oct 11 17:14:50 he's on a mac Oct 11 17:14:53 it's bash Oct 11 17:14:55 oh, well then Oct 11 17:14:56 bin/bash Oct 11 17:15:11 it will show you the files whose name starts with . Oct 11 17:15:12 just create a ~/.bashrc. Should work Oct 11 17:15:32 < noob'd out Oct 11 17:15:32 bash_profile is fine too, but I believe that only gets executed by login shells. Oct 11 17:15:36 such as .bashrc, .bash_history et al. Oct 11 17:15:37 create by? Oct 11 17:15:40 sourced, rather. Oct 11 17:15:45 running something in terminal? text editor? Oct 11 17:16:02 fnord: i think mac's terminal executes bash_profile for each new window Oct 11 17:16:19 aniasis: I think lov wants you to explain why that requires a remote process Oct 11 17:16:48 hblaub: from bash man page: By default, bash reads these files when it is invoked as a login shell (see INVOCATION below). Oct 11 17:17:00 i think i can google it from here. thanks though guys Oct 11 17:17:12 he will probably have to log in and out if he uses bash_profile instead of bashrc Oct 11 17:17:18 Also, polling continuously? Sounds expensive Oct 11 17:17:21 but, whatever you say. I don't have a mac here. Oct 11 17:17:37 SimonVT, lov: well if it does not require a remote process can you please explain how I would poll continuously outside of the main process? Oct 11 17:17:49 oh my linux learning curve. Oct 11 17:17:51 fnord: which man page? bash in mac can behave different and the terminal.app creates new shell processes Oct 11 17:17:54 fish slappery. Oct 11 17:17:56 SimonVT, yes that was another question I had later. Oct 11 17:17:56 Same way you do it in a remote process? Oct 11 17:17:59 Start polling Oct 11 17:18:01 Don't stop Oct 11 17:18:03 Waste abttery Oct 11 17:18:04 hblaub: new shell processes are not "login" shells Oct 11 17:18:08 hblaub: man bash Oct 11 17:18:18 hblaub: if you have a mac, test it Oct 11 17:18:21 and let me know what happens. Oct 11 17:21:06 aniasis: that's not really a good enough reason to want it to be in a separate process. Oct 11 17:21:23 aniasis: if you're going to poll periodically, use Alarmmanager to periodically wake your service up to do polling. Oct 11 17:21:38 aniasis: TRUST ME, as someone who has a remote process that I have to maintain, YOU DO NOT WANT THIS. Oct 11 17:21:55 lov, what do you mean maintain? Oct 11 17:22:15 Meaning that our audio player is on a seperate process to insulate it from GC, crashes, etc Oct 11 17:22:20 it is an utter PITA Oct 11 17:22:23 i'm trying to work on the android source with eclipse but getting many error, any useful tips please? Oct 11 17:22:43 don't forget; if you override Application, you're going to have a seperate Application for that remote process. Oct 11 17:22:53 You also have to worry about maintaining connections. Oct 11 17:22:57 use vi + ant combo lorenx Oct 11 17:23:04 if one process dies, you need to have the other one handle the death event Oct 11 17:23:14 that is why I want a remotre process to protect from crashes. Oct 11 17:23:14 you also need to wait until the process spins up to do something, for exaxmple Oct 11 17:23:17 *example Oct 11 17:23:21 aniasis: DON'T CRASH. Oct 11 17:23:23 Fix your crashing bugs Oct 11 17:23:29 trust me, it's not a good enough reason. Oct 11 17:23:32 No from the phone crashing Oct 11 17:23:35 .... Oct 11 17:23:36 wut Oct 11 17:23:49 oO Oct 11 17:23:51 I use AlarmManagaer to awake the process Oct 11 17:23:58 Looney: could give a chance... any useful page to read? Oct 11 17:24:05 and it launches the process on load. Oct 11 17:24:19 uh Oct 11 17:24:21 But I don't want to create a separate application Oct 11 17:24:36 well, I don't even know how to respond to that appropriately. Oct 11 17:24:40 good luck I guess. Oct 11 17:24:46 to persist the remote process. Oct 11 17:24:49 enjoy the road to hell you've paved with good intentions. Oct 11 17:25:07 You aren't making sense. Oct 11 17:25:13 No, you aren't making sense Oct 11 17:25:15 http://developer.android.com/tools/building/building-cmdline.html Oct 11 17:25:22 you want to use a remote process to guard against the phone crashing? Oct 11 17:25:26 see this link lorenx Oct 11 17:25:27 Looney: thanks Oct 11 17:25:29 lets be clear Oct 11 17:25:30 hope it helps Oct 11 17:25:32 when you say a remote process Oct 11 17:25:36 If you want a process to persist outside of the main process Oct 11 17:25:38 you mean you're setting the process value in the manifest. Oct 11 17:25:39 yeah. Oct 11 17:25:40 so uh Oct 11 17:25:42 when the phone crashes Oct 11 17:25:45 EVERYTHING is gone. Oct 11 17:25:47 all processes. Oct 11 17:25:57 the phone reboots. Oct 11 17:26:04 maybe you didn't mean to say the phone crashes? Oct 11 17:26:05 lorenx: are you working with an android application? Or with the android platform source? Oct 11 17:26:08 Maybe you meant your app crashes? Oct 11 17:26:09 Yes but I can use the AlarmManager to restart that process. Oct 11 17:26:19 yes but you can do that if it's not a remote process anyway Oct 11 17:26:21 when the phone reboots Oct 11 17:26:27 hi, can anyone help me to fix this bug : /usr/local/Cellar/android-sdk/r16/tools/ant/build.xml:518: Unable to resolve project target ? Oct 11 17:26:33 you're gaining nothing there Oct 11 17:26:42 But I don't want to neccessarily restart the main process of the app Oct 11 17:26:52 aniasis: why not? Oct 11 17:27:01 it's not going to start your activities Oct 11 17:27:04 it's not going to start other services Oct 11 17:27:14 (unless your service that you're starting explicitly does that) Oct 11 17:27:23 Yes it does Oct 11 17:27:28 No Oct 11 17:27:31 oh really? Oct 11 17:27:37 and how does it do that? Oct 11 17:27:38 Yes Oct 11 17:27:44 What starts your activities/services? Oct 11 17:27:51 plz anyone ? Oct 11 17:28:00 LiohAu: don't know, sorry. Oct 11 17:28:07 LiohAu: I'd recommend digging into that file and looking at what step that's on Oct 11 17:28:08 nobody use ant scripts to build ? Oct 11 17:28:21 i read on the net that i should install the sdk 3.2 Oct 11 17:28:22 LiohAu: many of us use ant scripts but we haven't memorized what's on line 518 sorry Oct 11 17:28:29 lov that is the point I am making I don't want to have to start the main process in order to start the remote process. Oct 11 17:28:35 ._. Oct 11 17:28:35 lol Oct 11 17:29:04 aniasis: you're really not gaining anything though. Oct 11 17:29:07 but i'm not an android developer, and the developer is not here :( Oct 11 17:29:09 You're doing more work for roughly the same benefit. Oct 11 17:29:09 aniasis: Whether you're doing it in a remote process, or just the standard process, only your service is being started Oct 11 17:29:13 ^^ Oct 11 17:29:15 Nothing else in your application Oct 11 17:29:16 so how should i install the android sdk ? Oct 11 17:29:23 i mean update Oct 11 17:29:25 If something else is being started, fix your code Oct 11 17:29:27 the only reason anything else in your application would be started would be because you or someone else started it Oct 11 17:29:30 SimonVT, I don't want anything else in my application to start Oct 11 17:29:31 A remote process wont solve that Oct 11 17:29:37 It doesn't Oct 11 17:29:40 first time it was installed using "brew install android-sdk" Oct 11 17:29:41 That's what we're saying Oct 11 17:29:45 LiohAu: er Oct 11 17:29:47 brew? Oct 11 17:29:50 how do you determine which pointer triggered MotionEvent.ACTION_POINTER_UP? Oct 11 17:29:56 if you're using a package manager to install android, I'm not sure how much help we can give you. Oct 11 17:30:03 simh, I see what you are saying. Oct 11 17:30:03 ultra-: there will be other information in the key event. Oct 11 17:30:11 ultra-: You can get the pointer id and index from the motionevent Oct 11 17:30:31 s/simh/SimonVT Oct 11 17:30:39 lov: "homebrew" Oct 11 17:32:03 LiohAu: I don't really know what that is. Oct 11 17:32:18 LiohAu: anyhoo, try running android.sh or the SDK Manager bin Oct 11 17:32:49 i'm not really sure how to go about that… at the time of the event, the pointer count will still be 2 if i lifted 1 of two fingers Oct 11 17:33:16 so looping thru pointer count to get id will still give me the same information, i don't know which pointer is lost Oct 11 17:33:23 i know i'm overlooking something dead easy Oct 11 17:33:47 i just tried an android update sdk --no-ui Oct 11 17:34:36 ultra-: The MotionEvent that delivers the ACTION_POINTER_UP Oct 11 17:34:50 Has methods for getting the pointer index and id Oct 11 17:34:54 Find those methods, use them Oct 11 17:35:26 well, i see getPointerID but that requres an index to be passed in Oct 11 17:35:55 ah ha Oct 11 17:35:58 getActionIndex() Oct 11 17:36:04 * SimonVT /clap Oct 11 17:36:06 tnx Oct 11 17:37:24 Jesus: android platform source. i've just found out it needs java 6! i had version 7 :) Oct 11 17:37:47 JesusFreke: this ^^^ was for you Oct 11 17:38:07 ah, yeah Oct 11 17:38:48 this chan is primarily for android app development, so any answer you get here will likely be geared more towards that :) Oct 11 17:39:20 Hey guys, is there a built in api for json in android? Oct 11 17:39:34 Im relativley new to playing with android and cant seem to find one. Oct 11 17:39:44 https://developer.android.com/index.html#q=json Oct 11 17:40:14 LiohAu: Your best bet is to pastebin the ant script somewhere and paste the link here. Oct 11 17:40:38 actually the script didn't change, the developer told me that he updated the SDK on its own PC Oct 11 17:40:39 LiohAu: Not saying you'll get an answer, but even if somebody is able/wants to help you, at this point you haven't provided sufficient informtion. Oct 11 17:40:40 JesusFreke: oh, ok. any channel for the platform? Oct 11 17:41:30 eh Oct 11 17:41:35 lorenx: well, there's #android and #android-root. but your best bet is probably the android-platform mailing list/google group Oct 11 17:41:35 technically this is a channel for the platform stuff too Oct 11 17:41:40 but you're not going to get a lot of responses Oct 11 17:41:48 yeah, use the mailing list, that's generally your best bet Oct 11 17:41:48 JesusFreke: thanks ;) Oct 11 17:44:09 zack6849: http://code.google.com/p/google-gson/ works also if you're not satisfied with built-in ones Oct 11 17:44:16 SimonVT: i checked those links and if i try using jsonreader it says it can't be resoled to a type, are these meant to be built in to the api? Oct 11 17:44:34 er Oct 11 17:44:37 try importing it... Oct 11 17:44:55 actually, JsonReader isn't availble until API level 11 Oct 11 17:45:10 http://developer.android.com/reference/org/json/package-summary.html Oct 11 17:45:14 that, however, is available in API level 1. Oct 11 17:46:09 well how would i use those to parse json, im new to json, Dx Oct 11 17:47:08 zack6849: public JSONObject(String json) Oct 11 17:47:08 Since: API Level 1 Oct 11 17:47:08 Creates a new JSONObject with name/value mappings from the JSON string. Oct 11 17:47:25 Try here: http://bit.ly/T92Goy Oct 11 17:47:50 lov: i appreciate the link but ive been googling this.... Oct 11 17:48:03 ive been trying for about two hours in fact, then i found the irc. Oct 11 17:48:14 what exactly are you stuck on? Oct 11 17:48:18 So could we please skip the smart-assed links? Oct 11 17:48:37 does anyone here own a nexus 7? Oct 11 17:48:47 Hy, can anyone tell me where I can download Chrome for android x86? I want to test it out in x86 JB emulator, but I can't get it :( Oct 11 17:49:03 zack6849: that's fair. Oct 11 17:49:17 Have you tried using a JSONTokener or JSONObject? Oct 11 17:49:24 Im stuck on the part with json. i need to know how to use json, but every tutorial does it differently, and half of them are outdated, or not for the api level im using. Oct 11 17:49:24 Guess we're done here then Oct 11 17:49:27 do you have a general idea about the format of the JSON you're getting? Oct 11 17:49:42 balls2thewall: Nexus 7 is great, your thinking of getting one? Oct 11 17:49:44 yeah, i know what the json format looks like. Oct 11 17:49:46 ok Oct 11 17:49:53 You can use JSONObject's string constructor Oct 11 17:50:00 im currently testing it to read a minecraft status json feed. Oct 11 17:50:05 that will create a DOM implementation, which you can drill down into Oct 11 17:50:11 RedWar, i wanted to get an s2 or xpreria s just for dev. purposes and then i saw the price and specs on nexus 7 and was like O_O Oct 11 17:50:26 so im looking for reviews on it is it worth to pick over the phones Oct 11 17:51:52 lov, what would i use for the string, the input from the url im reading, correct? Oct 11 17:52:03 yes, basically Oct 11 17:52:13 I'm assuming that you actually have the content that you want to parse first Oct 11 17:52:23 so, get your content, then pass it to the JSONObject's string constructor Oct 11 17:52:38 yep. done that. Oct 11 17:52:48 now how do i get values from it? Oct 11 17:52:54 call the get methods Oct 11 17:53:00 okay. Oct 11 17:53:07 ill try to get that working Oct 11 17:53:08 thanks! Oct 11 17:53:12 Why am I not able to change permissions on the mounted sdcard (in the emulator?) This appears to cause an issue with an app not being able to create files in the directory. http://pastebin.com/4ZEVHRij Oct 11 17:53:15 you mentioned that you knwo what the format is, so you should know what to call and when Oct 11 17:53:22 bear in mind that JSONObjects can contain JSONObjects Oct 11 17:53:43 kbs: the SD Card is generally FAT32 which doesn't support permissions Oct 11 17:53:54 as in this case here Oct 11 17:54:21 lov: ah, I see -- it's mounted as uid=1000. So how do apps get to write into this directory? Oct 11 17:54:31 You need the WRITE_EXTERNAL permission Oct 11 17:54:37 or WRITE_STORAGE or I forget Oct 11 17:54:39 yes, it's present Oct 11 17:54:40 look at the Permissions class Oct 11 17:54:40 Guys. Oct 11 17:54:50 if you have the write permission you should be all set. Oct 11 17:54:54 under. Oct 11 17:55:05 lov: my friend ;) Oct 11 17:55:12 under: some rando Oct 11 17:55:14 lov: yes, I know. But, incontrovertible evidence that I'm not all set despite the permissions Oct 11 17:55:28 howdy Oct 11 17:55:49 kbs: that's odd. Can you pastebin your code, please? Oct 11 17:55:58 basically, all you should need is that write_external permission Oct 11 17:56:13 What tablet do you guys recommend in the $200 price range? Oct 11 17:56:18 probably an N7? Oct 11 17:56:42 if i wished to parse this, [{"minecraft.net":"green"}] i would do get("minecraft.net"); correct? Oct 11 17:58:01 ships with jelly bean too. neat. Oct 11 17:58:06 preferably getString but yes Oct 11 17:58:29 if you use the vanilla "get" method the onus is on you to figure out what object you just got. Strongly typing eliminates some overhead if you know what your content actually is. Oct 11 17:58:37 ice ice baby Oct 11 18:01:36 lov: new incontrovertible evidence that I'm a goof Oct 11 18:01:53 m trying it like this, http://pastie.org/5036504 Oct 11 18:02:02 its setting the display text to nothing Oct 11 18:02:37 kbs: excellent. Oct 11 18:03:09 zack6849: why not step through with the debugger, and see what's happening where? Oct 11 18:03:14 verify that you're actually getting that text Oct 11 18:03:27 see what happens when you call getString on your json object Oct 11 18:03:34 heck, you can inspect the jsonobject w/ the debugger directly Oct 11 18:04:51 how do i print out to the android debug console, because for some reason the logcat window isnt showing up anymore Oct 11 18:05:07 er Oct 11 18:05:10 there is no debug console. Oct 11 18:05:16 you can use logcat at the command line Oct 11 18:05:20 or you can just reopen the logcat window in eclipse Oct 11 18:05:30 window -> show view -> logcat Oct 11 18:05:55 but seriously, run in debug, stop at a breakpoint in there, do some inspection and debuggerin Oct 11 18:06:30 oh i see my issue. Oct 11 18:06:36 its returning a json array. Oct 11 18:06:38 http://puu.sh/1dFGF Oct 11 18:07:35 adb logcat in terminal zack6849 Oct 11 18:08:18 well, i got it to correctly display the text, but now i gotta find out how to parse it Oct 11 18:08:20 :) Oct 11 18:18:59 button.setOnClickListener(new Button.OnClickListener() { } ); So when you pass new Button... as a parameter how is this called in java? (I wanna read the reference) Oct 11 18:22:30 trytrytry: huh? Oct 11 18:24:02 passing new as a parameter is new to me, so I wanna find the java explanation for this. :) Oct 11 18:24:38 trytrytry: there's nothing special about it Oct 11 18:24:47 you're passing a reference to a Button.OnClickListener Oct 11 18:24:58 you just happen to instantiate it in place Oct 11 18:25:34 oh Oct 11 18:25:41 you mean when you pass a new Button.OnClickListener Oct 11 18:25:45 this is called an anonymous inner class Oct 11 18:26:21 now im sufficently confused. Oct 11 18:26:22 you don't need to use anonymous inner classes either; you can have your Activity implement Button.OnClickListener and pass a reference to your activity, for example. Oct 11 18:26:41 if i say something is an array, it says you cant change an object to an array. Oct 11 18:26:53 if i set it to an object, cant change from object to array. Oct 11 18:26:54 wut Oct 11 18:27:12 haha Oct 11 18:27:21 because they're not the same type Oct 11 18:27:25 lol Oct 11 18:27:26 I have seen frequent mentions that servlet programmers should feel right at home with android development. As I start to dig into it, I can see why, but I haven't been able to find anything that's sort of "android development for servlet programmers". Anybody know of such a thing? Oct 11 18:27:30 this isn't like C++ where you can just force it, really. Oct 11 18:27:42 puff: no? :< Oct 11 18:27:53 perhaps it is because Android has factories and listeners and design patterns Oct 11 18:27:58 Hm, well if I get it figured out, I'll write it up. Oct 11 18:28:21 I think a good chunk of android is closer to AWT than servlets :-) Oct 11 18:29:01 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.snakefreak.hansaradio/com.snakefreak.hansaradio.infoScreen}: java.lang.NullPointerException anyone can tell me a bit how i can solve it? Oct 11 18:29:07 lov: Well part of it is the fact that android apps are run in a framework, have a life cycle, etc. Oct 11 18:29:17 lov: Part of it is the whole direcory layout of the android project is much like the directory layout of a servlet webapp. Oct 11 18:29:29 ah Oct 11 18:29:32 lov: Part of it is the whole manifest.xml and how it ties stuff together, which is much like struts or any number of popular servlet frameworks. Oct 11 18:29:32 that makes sense Oct 11 18:30:01 A lot of people don't really know the servlet API, which is really too bad, because it's pretty elegantly designed. Oct 11 18:30:11 Er, its design is pretty elegant, etc. Oct 11 18:30:29 have set .streamService in android manifest Oct 11 18:31:08 the rest of the app is runing Oct 11 18:31:37 look at what line it's telling you there's a null pointer exception Oct 11 18:33:07 hey I'm playing around with the Android animation API, I'm doing a sorta "bounce" animation, where I scale up to 1.5 then back to 1.0, but when it scales up, it looks like the image is being cut off, any ideas? Oct 11 18:33:57 lov: do you mean public class MainActivity extends Activity implements Button.OnClickListener { and then define the onClick method in the body of the main activity? Oct 11 18:35:05 no, he was saying you can have the activity implement the OnClickListener interface Oct 11 18:35:09 override the necessary callbacks Oct 11 18:35:25 then do setOnClickListener(this) Oct 11 18:36:38 http://anujarosha.wordpress.com/2011/11/13/how-to-implements-onclicklistener-for-a-view-item-in-android/ Oct 11 18:36:49 thanks Oct 11 18:38:05 is it possible to create a webview that will follow hash history (typically for ajax)? Oct 11 18:38:18 and not attempt to reload the page on orientation? Oct 11 18:39:35 doogan have watched their but i see no error can pastebin it Oct 11 18:40:42 you are referencing an object that is null Oct 11 18:41:02 http://pastebin.com/hFt1WBhC line 68 Oct 11 18:41:07 attaching the debugger can be helpful if you can't figure it out Oct 11 18:41:32 phoneButton is null Oct 11 18:41:56 you get your other Button from the view, but not that one Oct 11 18:43:35 but its there it cant be null in my eyes Oct 11 18:44:00 well then why did you even bother with this line? Oct 11 18:44:04                 siteButton = (Button) findViewById(R.id.site_button); Oct 11 18:44:11 you get siteButton from your view Oct 11 18:44:15 and backgroundCheck Oct 11 18:44:25 you also need to get phoneButton Oct 11 18:44:40 otherwise it's never even initialized Oct 11 18:46:34 ok thanks doogan try a few things ;-) Oct 11 18:46:49 just one thing actually Oct 11 18:47:01 phoneButton = (Button) findViewById(R.id.phone_button); Oct 11 18:48:12 Is it possible to have a webview obey hash history stuff? Oct 11 18:50:50 Does anyone know why my nexus one on gingerbread has this blur on listviews/gridviews Oct 11 18:55:29 does anyone here ever work with webviews? Oct 11 18:58:54 can I put labels in my LinearLayout tags so they appear named in the outliner? Oct 11 18:59:41 I think we are all people looking for help and this channel has no experts.. ahh well. :( Oct 11 19:02:16 nerk: welcome to multiplayer notepad Oct 11 19:02:31 if you don't get an answer it's because no one is looking who knows how to solve your problem. Oct 11 19:02:45 This doesn't mean that no one is looking, and it doesn't mean that no one knows how to solve your problem. Oct 11 19:03:05 Hey, I want my activity to be portrait only. I've added android:screenOrientation="portrait" to the activity in the manifest. However I can still force an orientation change programatically. Oct 11 19:03:30 Is there a way to prevent that, too? Oct 11 19:03:40 so my default a webView does not work with the phones back button? Oct 11 19:04:05 shit, isn't there a way to just make an app wrapper that uses webkit without an address bar and behaves like webkit? Oct 11 19:04:22 webView just seems like a PoS to me Oct 11 19:04:31 nerk: use PhoneGap Oct 11 19:04:35 nope Oct 11 19:05:01 I have already coded a website.. I don't want to have to rebuild my whole application to use phonegaps layout. Oct 11 19:05:18 then don't, just use phone gap to point it at your website Oct 11 19:05:24 unfortunately, with phonegap, you can't just use the build service to point to a URL Oct 11 19:05:42 I've already played with it all. unless I am missing something Oct 11 19:06:26 super.loadUrl("http://www.google.com") instead of "file:///blah/blah" Oct 11 19:07:06 I tried making a simple app which so far does nothing but pops up a time-picker... Oct 11 19:07:10 (in phonegap) Oct 11 19:07:12 ok.. so essentially don't use the build service Oct 11 19:07:15 download phone gap Oct 11 19:07:17 it's realllly slow Oct 11 19:07:27 open a project and change the url loading ffrom local to web? Oct 11 19:07:42 hrrm. ok Oct 11 19:07:45 haven't tried that yet Oct 11 19:07:53 it's just a guess, but it seems plausible Oct 11 19:08:01 thought I could just use the build service and point to a URL .. but it want's a repo or zip Oct 11 19:08:24 thx, will try it out Oct 11 19:09:33 hey guys, so far i have this. Oct 11 19:09:34 wn Oct 11 19:09:37 oops. Oct 11 19:09:43 this. http://puu.sh/1dGL3 Oct 11 19:09:50 i wanna make the online be green Oct 11 19:09:54 and offline be red, etc Oct 11 19:10:13 ._. Oct 11 19:10:14 but when i do color.red + "offline" it puts numbers. Oct 11 19:10:55 minecraft is the evil. Oct 11 19:11:14 under: how dar you! Oct 11 19:11:15 *dare Oct 11 19:11:40 zack6849: code instead please Oct 11 19:11:59 I think he prints the color id :D Oct 11 19:12:08 Does anyone know why my nexus one on gingerbread has this blur on listviews/gridviews? Oct 11 19:12:13 tried it in my phone too... (faster than the emulator).. it's still terribly unresponsive.. Oct 11 19:12:15 The orange blur? Oct 11 19:12:19 wait you're doing color.red + "offiline" and printing them? lol Oct 11 19:12:30 alright C0deMaver1ckm one second Oct 11 19:12:32 and yeah Oct 11 19:12:35 thats what i was trying Oct 11 19:13:00 http://pastie.org/5036848 Oct 11 19:14:16 * C0deMaver1ck shakes his head Oct 11 19:14:35 ._. Oct 11 19:14:50 this is my first app, so please don't rage at me Oct 11 19:16:58 can I put the emulator's view in a mode which would show all the item borders (so I could see how to adjust margins, padding, etc.) Oct 11 19:19:22 C0deMaver1ck: any suggestions? Oct 11 19:20:01 what you're doing here doesn't make sense Oct 11 19:20:02 String format2 = format1.replaceAll("green", "online").replaceAll("red", "offline"); Oct 11 19:20:20 it returns minecraft.net:green Oct 11 19:20:27 so im replacing that to online. Oct 11 19:20:35 same for offline and red. Oct 11 19:21:17 if i don't do that, it looks like this http://puu.sh/1dH6Z Oct 11 19:22:09 first you need to make your view correctly with the addresses on one side and status on the other Oct 11 19:22:25 then you can style to status to your liking Oct 11 19:22:35 *the status Oct 11 19:23:00 it does do the adresses on one side and the staus on the other.. Oct 11 19:23:04 instead of creating a string of text which you won't be able to style individually Oct 11 19:23:17 Oh, well i can do them indivdually. Oct 11 19:23:51 what about put html into textview? Oct 11 19:24:09 its remove formating things? Oct 11 19:24:36 http://developer.android.com/reference/android/os/storage/StorageManager.html Oct 11 19:24:52 Note: you can only mount OBB files for which the OBB tag on the file matches a package ID that is owned by the calling program's UID. That is, shared UID applications can attempt to mount any other application's OBB that shares its UID. Oct 11 19:24:53 are there any reliable cross platform mobile app dev softwares? Oct 11 19:25:03 does anyone know what it means by OBB tag? Oct 11 19:25:17 does anyone know of any open source apps that use FaceDetectionListener? Oct 11 19:26:19 I am able to find my app's UID, but no idea what OBBt ag is and nowhere on google says what it is Oct 11 19:26:40 romainguy:FIX IT Oct 11 19:31:32 here is a design question Oct 11 19:32:00 in my FaceDetectionListener custom onFaceDetection() function, I get an array of faces that were detected Oct 11 19:32:20 how do I get my GLSurfaceView to see that array so I can draw boxes around the faces? Oct 11 19:32:32 do I copy the faces to a global array? Oct 11 19:33:16 how do I access the Faces array from the OnDrawFrame(GL10 gl) ? Oct 11 19:35:28 where do @drawables get loaded from when you import something like import android.widget.NumberPicker; Oct 11 19:40:09 so.. two main questions..from where do import'ed module dependencies come? (the distributed lib, or over the net?) and how are they included in my package? .. that's one question. :) Then, how do you examine these included ("3rd party" sort of) display items in order to style them? Oct 11 19:40:09 * ron_frown cries like a little bitch Oct 11 19:40:30 I'm sorry, ron Oct 11 19:41:32 ron, what can we do to make it better? Oct 11 19:41:56 nothing =) Oct 11 19:42:07 bugs in jb source that the general public cant get at the fixes yet Oct 11 19:42:54 and for whatever reason its extremely easy to reproduce on my hardware Oct 11 19:45:27 hows eveyone doin? Oct 11 19:45:57 honestly I dont know how the hell anyone is releasing hardware with 4.1.x on it that isnt crashing elft and right Oct 11 19:50:07 They just throw in random code until it works Oct 11 19:50:19 infinite monkeys on infinite typewriters kind of thing Oct 11 19:50:50 could name the next release Shakespeare Oct 11 19:51:11 samsung galaxy shakespeare Oct 11 19:51:14 Simon, would you mind reading my question? Oct 11 19:51:32 I read it, it doesn't make sense Oct 11 19:51:38 (on where imported modules come from.. including their dependencies, like drawables and stuff).. Oct 11 19:51:38 darn Oct 11 19:51:53 They're in android Oct 11 19:52:05 what about styling 3rd party items, like NumberPicker Oct 11 19:52:11 Use the theme attributes Oct 11 19:52:36 numberPickerStyle or something probably lets you use your own style Oct 11 19:52:41 with something like Firebug I can examine a webpage's elements to get their tags, ids, etc. How do you examine these elements? Oct 11 19:52:45 The javadocs for NumberPicker should have the attributes it supports Oct 11 19:52:56 With hierarchyviewer Oct 11 19:53:22 Not available for production devices, unless you add romainguy's ViewServer library to your app Oct 11 19:53:59 ok. hmm.. Oct 11 19:54:14 Hi, i want to ask, is it possible to use GoogleMaps API to get google Places such as restaurants and bars e.t.c. ? Oct 11 19:54:22 so, looking through the .java (http://code.google.com/p/android-scripting/source/browse/android/AndroidScriptingEnvironment/src/com/google/ase/widget/NumberPicker.java?r=6dea61dc32e55c766868b93a76ba5531119df99e) Oct 11 19:54:38 that's not the right approach right? Oct 11 19:54:56 What approach is that Oct 11 19:56:03 to read through the .java to try to figure out what its elements are Oct 11 19:57:44 You can do that if you want Oct 11 19:57:54 Should probably use a more up to date source tho Oct 11 19:57:59 I don't see anything in R.java attr by the way... Oct 11 19:58:25 I'm not actually using that source.. just importing android.widget.NumberPicker Oct 11 19:58:38 good warning / reminder though :) Oct 11 19:58:41 Well, for looking at the source Oct 11 19:58:50 It's available in the sdk Oct 11 19:59:01 Or, pull the android repo Oct 11 20:01:41 Hi, i want to ask, is it possible to use GoogleMaps API to get google Places such as restaurants and bars e.t.c. ? or from this API iam able to get JUST the MAP logic ?? please ? Oct 11 20:02:58 looking through the sdk dir for it.. thanks simonvt :) Oct 11 20:03:39 There should be a google places api WallnPall Oct 11 20:03:42 or there used to be Oct 11 20:04:31 it would have to be adapted for android, as I believe it's just a standard REST api, but you could do it Oct 11 20:05:58 right here WallnPall: https://developers.google.com/places/documentation/ Oct 11 20:06:09 too much to learn.. Oct 11 20:06:16 I wish I had a team I could work with Oct 11 20:06:28 instead of these brick walls to my left and iron bars to my right Oct 11 20:07:02 WallnPall: http://code.google.com/p/android-protips-location/ Oct 11 20:09:19 you guys, are gold :) Oct 11 20:09:46 here is a wierd question Oct 11 20:10:25 how about asking it instead of prefacing it =P Oct 11 20:10:38 if you do int x = new int; Oct 11 20:10:45 what is x? Oct 11 20:11:00 sdaq: should be 0 Oct 11 20:11:15 did something happen to the location services? I dont' know why I can't get coarse location with my app that used to work fine before Oct 11 20:11:26 hblaub: Java is wierd Oct 11 20:11:28 should be initializing to 0 anyway, instead of new int. Oct 11 20:11:36 s/wierd/weird Oct 11 20:11:50 even Trulia doesn't find the location (T-Mobile SGSII ICS) Oct 11 20:11:59 someone said to me java is like C with no pointers Oct 11 20:12:06 actually I think everything is a pointer in java Oct 11 20:12:42 sdaq: a variable of primitive type int is initialized to 0 in the JVM, there's nothing weird about it? Oct 11 20:12:59 sdaq: You don't do int x = new int; Oct 11 20:13:02 int isn't an object Oct 11 20:13:08 hblaub: its wierd to think that int has a constructor Oct 11 20:13:36 int is a data type, usually with 4 bytes (am I wrong? sry its MySQL knowledge) Oct 11 20:13:52 romainguy: lol, david duchemin Oct 11 20:14:03 's website is getting blacklisted for malware by chrome :/ Oct 11 20:14:05 Integer is an object, you do Integer x = new Integer(0) .. or int x = new Integer(0) cus autoboxing Oct 11 20:14:09 I thought Integer was the object , int was a primitive Oct 11 20:14:10 sdaq: i am not that kind of person which is so focused on the correct typing - i asumed you meant 'new Integer()' Oct 11 20:14:30 hblaub: sorry yes Oct 11 20:14:45 I don't think Integer has an empty constructor Oct 11 20:15:27 SimonVT: no, but Number does Oct 11 20:16:32 SimonVT: you're right, but I don't understand the purpose of this discussion started by sdaq anywax Oct 11 20:17:03 hblaub: thanks that is all Oct 11 20:17:27 I don't either :p Oct 11 20:22:28 ron_frown: fix what? Oct 11 20:23:03 all the jank Oct 11 20:23:15 anyone done any ffmpeg compiling on android to improve video ? Oct 11 20:24:47 guys, how do i make only one part of a string colored? Oct 11 20:25:15 I suspect all these top video players and plugins like Vitamio use ffmpeg, I'd like to know if there are other options as well Oct 11 20:26:30 that allow you to support many more formats than the default MediaPlayer/VideoView Oct 11 20:27:06 zack6849: stackoverflow has the answer: http://goo.gl/FFWzK Oct 11 20:28:13 romainguy: I was venting Oct 11 20:28:28 about my stupid libhwui problems... I dont get how I am one of the few people experiencing it Oct 11 20:28:33 seems to happen a lot on my hardware Oct 11 20:28:41 sorry you already DID fix it =) Oct 11 20:28:59 looks like something about clearResources() in DisplayListRenderer Oct 11 20:29:14 sk_free(mReader.getBase()) Oct 11 20:29:46 just add if (mReader.getBase()) Oct 11 20:30:00 I was wondering if it was a simple null check Oct 11 20:30:23 quick question to not bother you in the future Oct 11 20:30:38 theoretically I should be able to connect up gdb remotely, no? Oct 11 20:31:14 nevermind I'll go look it up Oct 11 20:31:19 thank you kindly =) Oct 11 20:32:43 seems like, if you are going to be using android for commercial products (as a base) you had better be a member of the OHA possibly have better access to google engineers when these problems arise (and the fixes) Oct 11 20:32:59 I would like to know the proper channels for that actually Oct 11 20:34:47 g00s: fyi its not really a commercial product Oct 11 20:35:09 it may be one day Oct 11 20:35:29 I had url how to become google developer, or google partner or whatever Oct 11 20:35:37 but I couldnt find it in searching the other day Oct 11 20:36:26 How exactly does one use repo to reproduce a full image of a specific point in the past? It seems fundamental, and consequently like it should be really obvious, but I can't crack it. Oct 11 20:36:33 ron_frown: see if morrildl can help you Oct 11 20:37:02 repo is just a wrapper to git and other utils Oct 11 20:37:09 you can repo init -u url -b branch Oct 11 20:37:15 and it'll effectively change branches Oct 11 20:37:15 that is something that git makes hard Oct 11 20:37:31 you can also do repo forall git whatever Oct 11 20:37:44 all the git projects and submodules are defined in the manifest Oct 11 20:38:40 sounds interesting, is there a webpage for this? Oct 11 20:39:08 http://source.android.com/source/version-control.html Oct 11 20:39:14 git _appears_ to have checkout @{timestamp}, but repo throws me off that trail. Oct 11 20:39:28 there's nothign in repo for this Oct 11 20:39:32 you need to do sync, or tagged releases Oct 11 20:39:39 or branches Oct 11 20:39:48 you probably need to do repo forall -c [git command to the checkout @timestamp etc] Oct 11 20:39:50 there wont be a single hash for entire platofmr Oct 11 20:39:56 yeah what ctate said would work Oct 11 20:40:02 But it's fundamental. It's revision control, right? So you expect to be able to revisit points in the past. Oct 11 20:40:03 would it work? Oct 11 20:40:04 but not necessarily produce a compilable project Oct 11 20:40:06 what timestamp do you use? Oct 11 20:40:12 yea Oct 11 20:40:12 Or is it not. Is it now just patch farming? Oct 11 20:40:26 Gumboot: yes, but note that when you talk about repo, you're talking about a large number of *fully independent* source repositories Oct 11 20:40:31 Corral them all together... feed them, water them, breed them and see what comes out... Oct 11 20:40:54 Stack them in amusing orders for giggles. Oct 11 20:41:45 The source repositories may be fully independent, but they all (or at least their branches all) have state at specific points in time. Oct 11 20:42:24 Even if it makes no sense to address a specific commit id because it's not global across all repositories, a point in time should work. Oct 11 20:42:34 Gumboot: thats why there are tags and branches Oct 11 20:42:49 what ctate said will work if git does infact let you check out at a timestamp Oct 11 20:43:09 Certainly git _used_ to let me check out a timestamp. Oct 11 20:43:27 but yea, can you just use a tag/branch? Oct 11 20:43:35 timestamp being get me this file at this time? or the specific time it was checked in Oct 11 20:43:50 you can do anything you can do with git, with repo foreach or forall or whatever Oct 11 20:44:06 "get me what I would have got had I typed repo init on this day and this time" Oct 11 20:44:30 * alankila doubts timestamp is well-defined concept in git. For instance, you could have multiple concurrent branches that are merged later, which one of the branches should you get? Oct 11 20:44:41 yes tiemstamp is probably a bad idae Oct 11 20:44:43 idea Oct 11 20:44:54 alankila: The one on the branch I specified. Oct 11 20:45:01 Or the one on the branch specified by the manifest. Oct 11 20:45:01 I see. Oct 11 20:45:12 On the branch of the manifest I specified. Oct 11 20:45:27 there are probably custom-manifest ways to do this, too Oct 11 20:45:32 but idk about that end of things Oct 11 20:45:34 Just "reproduce this sync operation as at this time". It's fundamental. It's what source control is for. Oct 11 20:45:53 Doesn't sound as fundamental to me as you claim, but whatever floats your boat. Oct 11 20:45:54 you probably have to know the sha at that point in time in each project a priori Oct 11 20:46:07 To be honest, I'm not even clear on how the manifest specifies the version of the branch of the repo it wants. Oct 11 20:46:12 Gumboot: yeah, that's iirc what git check @timestamp *does* Oct 11 20:46:47 repo leaves it in a detached head state, so it's off-branch. I can _guess_ what branch it was, but then I get a warning that there's no log history before the moment I synced. Oct 11 20:47:06 So all @dates come out at top-of-tree. Oct 11 20:47:43 * Gumboot is reminded of the backup software they used to use at his previous previous employment. Oct 11 20:54:28 this is interesting and has far reaching implications http://linux.slashdot.org/story/12/10/11/1918251/alan-cox-to-nvidia-you-cant-use-dma-buf Oct 11 20:55:07 wonder what the ARM soc vendors will do Oct 11 20:55:57 hahaha welp Oct 11 20:56:00 Should've used a BSD kernel. Oct 11 20:56:01 probably just not use this Oct 11 20:56:39 Err... that opinion's mine and nothing to do with my employer and all that crap. Oct 11 21:00:42 can anyone give advice for setting just part of a string to a certain color? Oct 11 21:01:24 zack6849: all i can think of is breaking the string up into separate views Oct 11 21:01:32 zack6849: i gave you already a link Oct 11 21:01:36 maybe you could write a custom TextView Oct 11 21:01:44 I wish the android api had better ways to use colors D: Oct 11 21:02:13 g00s: seems like I recall alan cox with a history of moves like this Oct 11 21:02:30 the textview has Editable as content and this can be used to concatene several colored strings together Oct 11 21:02:39 zack6849: I'm gonna just go ahead and say that this is really the api saving you from yourself; changing the text color within a string is basically never a good idea. Oct 11 21:02:42 i've did this before Oct 11 21:02:43 Regardless, yeah, that Oct 11 21:02:48 You can definitely do this Oct 11 21:02:50 it's just really uggo. Oct 11 21:06:08 Has anybody made any attempts at switching Linux out and using a BSD in Android? Oct 11 21:07:07 Gumboot: um, well there are android specific patches to the linux kernel, like wakelocks Oct 11 21:07:19 Yeah. There may be some development effort. Oct 11 21:07:24 Gumboot: LOL! Oct 11 21:07:28 Although I've booted Android on a plain kernel. It just moans a lot. Oct 11 21:07:42 it moans with its own kernel :) Oct 11 21:08:42 a lot of those arent really patches anymore Oct 11 21:08:52 but been integrated in mainline kernel shit Oct 11 21:08:57 all in staging drivers section Oct 11 21:13:44 * ctate | Has anybody made any attempts at switching Linux out and using a BSD in Android? Oct 11 21:13:48 you, sir, are *mad*. Oct 11 21:14:35 i mean, i'm sure it could be done, possibly without even needing a ton of work Oct 11 21:14:47 but dear noodly fsm WHY? Oct 11 21:15:00 beyond mad Oct 11 21:17:07 I like bsd better, but I dont know it'd make a huge diff either way in android's case Oct 11 21:17:42 theres enough shit ripped off from bsd and netbsd in android/linux its a sort of hybrid anyway Oct 11 21:18:45 if you're going to work on scary stuff like that, i can has decent scheduler? ;) Oct 11 21:19:38 its easy enough to change em out, but finding one that makes a diff is a diff story Oct 11 21:19:55 ctate: I found it a whole lot easier to make public contributions to open source software when it was BSD. Oct 11 21:20:07 Because if anybody said "that's not everything, give us your source", I could trivially tell them to fuck off. Oct 11 21:20:08 ctate: there's a BFS patch for OpenBSD! Oct 11 21:20:14 I hear brainfuck got some pretty bad criticism, but the guy seems to have had a good idea about what needed to happen in linux on the desktop Oct 11 21:20:37 Well, maybe not trivially. I would have had to go through an approvals proceedure to use the words "fuck off". Oct 11 21:21:06 But I would get very broad approval and use those words liberally thenceforth. Oct 11 21:21:18 (I made that word up... it doesn't exist, does it?) Oct 11 21:21:35 Gumboot: so contributing to the BSD kernel is a lot easier than to the Linux kernel? Oct 11 21:21:44 Never did kernel. Oct 11 21:22:05 Well. Never _submitted_ anything for kernel, because I didn't do anything important. Oct 11 21:22:25 ron_frown: bfs performed extremely well for Android, actually, when we played with it [around the Droid / Android 1.6 -> 2.0 timeframe] Oct 11 21:22:39 doesnt surprise me Oct 11 21:22:40 it's just that it also exposed huge timing bugs in pretty much every driver Oct 11 21:22:43 As a hardware vendor, though, you can just do whatever you have to do and you don't have to mess about with chinese walls or whatever. Oct 11 21:25:28 also, as a result of the rather loud & splattery kerfuffle around bfs and its motivations, the linux scheduler guys dug in and found quite a lot of bugs and performance improvements begging for attention Oct 11 21:25:42 so in that sense bfs did drive considerable improvement in the base linux behavior Oct 11 21:26:06 Splattery Kerfuffle... that sounds like an Ubuntu release. Oct 11 21:26:08 it's still cfs, though, and so is philosophically pretty much directly antagonistic to Android-type workloads Oct 11 21:26:32 which is to say, interactive workloads in general Oct 11 21:27:05 If a computer's doing its job right you don't need to interact with it. It'll know what it has to do! Oct 11 21:29:02 * Gumboot reads up Oct 11 21:30:04 ron_frown: I actually meant for licensing and closed-source modification. Probably also for maintaninability. Oct 11 21:31:30 as you know, those goals arent the goals of people that build gpl apps Oct 11 21:31:58 That's fine. Oct 11 21:37:33 anyone knows what OBB tag is? Oct 11 21:38:13 As mentioned in http://developer.android.com/reference/android/os/storage/StorageManager.html, the OBB must be mooted with a matching OBB tag with the UID of the App Oct 11 21:38:41 I know what my app's UID is but I can;t find anywhere on the internet that explains what OBB tag is Oct 11 21:39:08 Oh god... I read slashdot comments! Eww! Oct 11 21:39:42 I thought slashdot was dead. I wasn't even thinking about it. Oct 11 21:39:52 i believe that this basically means you can't mount obb files that your app doesn't own. Oct 11 21:40:29 and that ownership is determined by uid. Oct 11 21:40:47 but i agree that it is head-scratchy Oct 11 21:44:10 I jjust created a virtual device with AVD manager and after launching its showing ANDROID swiping... Oct 11 21:44:13 is that ok? Oct 11 21:44:29 oh nevermind... it says preparing SD card now... Oct 11 21:44:30 :) Oct 11 21:44:33 yes it's ok Oct 11 21:44:44 Its wonderful :D Oct 11 21:45:57 Is it supposed to be super slow? Oct 11 21:46:16 yes Oct 11 21:46:55 Ok Oct 11 21:47:23 there are various much-faster options / alternatives but they are not currently the default Oct 11 21:47:43 might take a look at http://codebutler.com/2012/10/10/configuring-a-usable-android-emualtor/ Oct 11 21:47:55 if you are lucky you can activate GPU acceleration Oct 11 21:48:21 that is one the aspects, yes Oct 11 21:48:50 do you need to have intel processor ? Oct 11 21:51:06 gorudonu: yes Oct 11 21:51:32 C:\AP\MyFirstApp>adb install bin/MyfirstApp-debug.apk Oct 11 21:51:33 adb server is out of date. killing... Oct 11 21:51:35 * daemon started successfully * Oct 11 21:51:36 142 KB/s (37886 bytes in 0.259s) Oct 11 21:51:38 pkg: /data/local/tmp/MyfirstApp-debug.apk Oct 11 21:51:39 Success Oct 11 21:51:51 But still I cannot locate the file :S Oct 11 21:53:40 NVM Found it! Oct 11 21:57:15 I've yet to see HAXM working on an intel mac Oct 11 21:57:27 seems like it just makes the emulator take even LONGER than it did before Oct 11 22:07:49 JakeWharton, dude just gave NineOldAndroids a try, wish I had tried it sooner!! Oct 11 22:08:01 heh, glad you like it Oct 11 22:08:44 I've been doing a lot of iOS dev recently, enjoying their animation API, so it got me curious about Androids API. Seems at least as good if not better than the iOS one Oct 11 22:11:45 REF: http://developer.android.com/training/basics/firstapp/building-ui.html >>> Open the activity_main.xml file from the res/layout/ directory. | But there i can only see main.xml Oct 11 22:12:07 Should I make the changes in main.xml if i were to add a button and text field? Oct 11 22:12:47 yeah the new animation API is great to work with Oct 11 22:12:54 especially when executed on Jelly Bean Oct 11 22:15:35 JakeWharton: Can you help me with the above question? :) Oct 11 22:15:49 sorry, working feverishly Oct 11 22:16:46 Oh! Sorry1 Oct 11 22:16:59 GWS Oct 11 22:20:58 JakeWharton, ya there are many parts of the Android layout framework that you need to fiddle with to get working the way you want, but the Animation API is not one of them, it really "just works". very nice. Oct 11 22:21:24 * Xeeshu sighs Oct 11 22:38:53 hey all Oct 11 22:39:34 new to fragments, lets say i haev a fragment with a button, and i want to add a busotn listener to format a certain action. where would that code go? Oct 11 22:40:07 heres a basic bit of code im using: Oct 11 22:40:09 http://cl.ly/text/101J261k0T3w Oct 11 22:41:08 interesting cloud app o-o Oct 11 22:41:45 but pricy Oct 11 22:41:48 all thats doing is returning a view, so it seems like the controller for that view should go elsewhere? Oct 11 22:42:33 you can access child views from the view you just inflated Oct 11 22:42:38 you need a listener don't you..? Oct 11 22:42:54 with with view.findViewById Oct 11 22:43:00 right.. Oct 11 22:43:33 ah i got it Oct 11 22:43:40 sorry, havent been on android in foreva Oct 11 22:44:34 Anyone here using Robolectric lately? Oct 11 22:44:58 mrenouf|work: looked into it and decided against it Oct 11 22:45:02 jfisk87: like so: http://pastebin.com/Asg3gFYA Oct 11 22:45:13 tophyr, yeah. lots of magic involved there Oct 11 22:45:55 but I'm having a hell of a time just writing a unit test for a service. It uses RoboGuice and I want to run the service with some mocked dependencies. I can't figure out how to make it work. Oct 11 22:46:34 no experience with that, sorry. Oct 11 22:46:37 * tophyr goes to look up roboguice Oct 11 22:46:55 just dependency injection Oct 11 22:47:11 thanks guys Oct 11 22:47:12 service grabs a bunch of stuff in it's onCreate() Oct 11 22:48:18 been messing w/ it a bit Oct 11 22:48:23 found this the other night Oct 11 22:48:25 http://eclipsesource.com/blogs/2012/09/25/advanced-android-testing-with-roboguice-and-robolectric/ Oct 11 22:48:32 has some ideas for using Mockito Oct 11 22:48:36 might be helpful Oct 11 22:48:50 interesting, i'll have to look into this guice stuff Oct 11 22:55:20 guice is legit Oct 11 22:56:57 /w 15 Oct 11 23:09:03 how to set activity transition animation for the back button press? Should I override onBackPressed()? Oct 11 23:09:46 yes Oct 11 23:10:03 ok Oct 11 23:12:05 for some reason my apps text isnt centered, despite the fact i set the gravity to centered. any ideas? Oct 11 23:12:24 which layout ? Oct 11 23:12:32 paste ye layout Oct 11 23:12:39 errm, linear if i recall correctly Oct 11 23:12:41 lemme check Oct 11 23:13:07 yep. LinearLayout. Oct 11 23:13:15 ha may be this is the only occasion where I override onBackPressed() and the first line in it being super.onBackPressed(); Oct 11 23:13:16 :) Oct 11 23:13:50 http://pastebin.com/NfpstHHJ Oct 11 23:14:27 zack6849: change the layout width of the textview to match_parent Oct 11 23:14:41 What do you mean? ._. Oct 11 23:14:50 oh Oct 11 23:14:52 derp Oct 11 23:14:53 mkay Oct 11 23:15:09 zack6849: Or set gravity to the linear layout to center everything it in. Oct 11 23:15:26 center_horizontal, not center Oct 11 23:15:40 ? Oct 11 23:17:10 umm. it made a new xml called activity_main.out.xml Oct 11 23:17:14 which i can't delte. Oct 11 23:17:18 o_o Oct 11 23:17:23 *delete Oct 11 23:17:46 right click Oct 11 23:17:46 delete Oct 11 23:17:55 i did, Oct 11 23:18:20 I found your problem zack6849 Oct 11 23:18:23 are you sure it's not being referenced there? Oct 11 23:18:29 http://puu.sh/1dLD0 Oct 11 23:18:42 android:layout_gravity not android:gravity Oct 11 23:18:48 herp. Oct 11 23:18:50 shmooz: no Oct 11 23:19:31 well I am centering a VideoView using that in LinearLayout Oct 11 23:19:49 in his situation gravity can work just fine Oct 11 23:20:02 My point is. there is a new file called main_activity.out.xml Oct 11 23:20:06 which i can't delte. Oct 11 23:20:13 and is completley blank. Oct 11 23:21:07 Problems encountered while deleting resources. Could not delete 'C:\Users\zack\workspace\ECLIPS WORK FILES\Test app\res\layout\activity_main.out.xml'. Problems encountered while deleting files. Could not delete: C:\Users\zack\workspace\ECLIPS WORK FILES\Test app\res\layout\activity_main.out.xml. Oct 11 23:21:14 Excuse the accidental spam. Oct 11 23:21:53 lol nice domain name Oct 11 23:21:55 puu.sh >< Oct 11 23:22:15 not mine. heh Oct 11 23:22:57 Does anyone know why this is here and why i can't delete it? D: Oct 11 23:23:48 maybe its already deleted and eclipse is acting up ? Oct 11 23:23:53 I dunno. Oct 11 23:24:16 check with OS filemanager if its there Oct 11 23:24:44 and if its there, maybe permission problem Oct 11 23:25:31 fixed it. Oct 11 23:25:37 http://stackoverflow.com/questions/2393103/android-sdk-main-out-xml-parsing-error Oct 11 23:29:08 you have to tip toe through the tulips with eclipse ;) Oct 11 23:30:27 belated, yes tyou should be using android:layout_gravity, not android:gravity Oct 11 23:30:43 android:layout_gravity affects how the view is positioned by its enclosing layout Oct 11 23:30:54 On Gingerbread, with ExpandableListView (used as a SectionedList) for some reason after I scroll I can't click on views anymore. Has anyone experienced this? Oct 11 23:30:55 android:gravity tells a view how it should position its own content within the view's bounds Oct 11 23:33:58 ctate, you are agreeing with my previous statement, but now I'm not so sure about that, I thought he just wants to center it within the TextView Oct 11 23:34:30 there are two ways to approach it Oct 11 23:34:51 you can make the textview the full width of its container, by setting its layout_width=fill_parent Oct 11 23:35:16 and then tell the text view to position its own contents centered within its horizontal bounds, by setting its gravity=center or center_horizontal Oct 11 23:35:40 the other approach is to shrink the textview to fit its contents, which is what his pasted layout does by using layout_width=wrap_content Oct 11 23:35:42 ctate: match_parent, fill_parent is deprecated, tsk tsk Oct 11 23:35:55 romainguy: i can never remember which is live and which is deprecated Oct 11 23:36:30 and then to tell the containing layout to slide the whole view over to be centered horizontally, by setting its android:layout_gravity="center_horizontal" Oct 11 23:36:33 pick one Oct 11 23:36:43 JakeWharton, any reason ABS and NOA projects have so many warnings? would be nice to be warning free :) Oct 11 23:37:03 learn to unlearn ! Oct 11 23:37:03 i'd fix & submit a pull request if you'd accept it Oct 12 00:04:56 * Xeeshu thinks, Android development is too much to learn! >.< Tired! Oct 12 00:05:12 ^]\ Oct 12 00:09:40 Wavesonics: because i'm smarter than the compiler :) Oct 12 00:09:44 what image format do you guys use? I can't make it small enough since my app keeps crashing Oct 12 00:09:51 and a lot of code is copied from Android Oct 12 00:10:00 What tablet would be recommended in lieu of a nexus 7; one that actually has a micro sd card slot? Oct 12 00:10:06 ? Oct 12 00:10:20 future merges become a pain if you change mundane things to hide errors Oct 12 00:10:26 oh Oct 12 00:10:30 aahh i see, damn :/ Oct 12 00:10:35 warnings, yeah Oct 12 00:10:50 just use a jar, and you'll never see them :-) Oct 12 00:11:28 NOA you should be using a .jar. Sadly, with ABS, you can't Oct 12 00:11:33 mrenoufcant w\ these libs :/ Oct 12 00:11:37 RoboGuice app and unit testing a service with mock dependencies... WTF?! why is this so hard? Oct 12 00:11:47 JakeWharton, sure can :-) Oct 12 00:11:55 ? Oct 12 00:11:58 Jar + res/ Oct 12 00:12:06 true Oct 12 00:12:12 and an empty src/ Oct 12 00:12:28 most of the warnings come from the res/ stuff Oct 12 00:12:52 So I've been fighting AndroidServiceTestCase and RoboGuice for an hour to figure out how to make this work Oct 12 00:13:08 Wait what do you do to avoid errors of big images? Oct 12 00:14:17 techdigy, you're probably loading far more pixels than could possibly be shown. So if it's something that large, you'd need to do some tiling Oct 12 00:14:34 but thats just a random guess Oct 12 00:14:45 "images are too big" is rather vague Oct 12 00:14:47 yeha Oct 12 00:14:59 It's like going to the doctor and saying "I kinda feel bad." Oct 12 00:15:02 it was 4000x4000 I resized it down to 1000x1000 it still wont load Oct 12 00:15:02 :-P Oct 12 00:15:40 load? how? what's the error? how are you using it? where is it being displayed? Oct 12 00:16:07 xml Oct 12 00:16:18 should I use bitmap recycle? Oct 12 00:16:26 Wait let me up the log Oct 12 00:16:40 i'm kinda busy though right now Oct 12 00:16:48 its ok forget it Oct 12 00:16:51 but someone else might be able to help Oct 12 00:16:52 ill try to fix it myself Oct 12 00:16:56 thanks fo the help though Oct 12 00:17:12 so that's 4 megabytes of pixel data minimum Oct 12 00:17:25 mrenouf: I'm going to serach around... I guess if i learn myself it will stick to my head best Oct 12 00:17:33 techdigy: scale to displayed size Oct 12 00:17:50 what actual error(s) are you hitting? what's it say in the log? Oct 12 00:17:51 JakeWharton: Wouldn't fill parent work? do i have to use bitmapfactory? Oct 12 00:17:51 out of mem? Oct 12 00:18:01 ctate: sec Oct 12 00:18:21 no, scale it yourself (or remotely, if possible) before sending to the UI Oct 12 00:18:26 I need to make the Android Troubleshooting Flowchart Oct 12 00:18:35 so I can send people there first Oct 12 00:18:38 http://pastebin.com/ktA0Mnfx Oct 12 00:18:56 out of memory Oct 12 00:19:00 bitmap size exceeds VM budget Oct 12 00:19:08 It even crashes on my nexus though Oct 12 00:21:45 hmm the exception shows you're attempting to allocate 10 MB Oct 12 00:22:45 I'm guessing you loaded it a few times and did not recycle Oct 12 00:22:56 or the heap is badly fragmented Oct 12 00:23:03 hmm let me check up on the files Oct 12 00:24:18 Ok this is an awful hack, but I'm going to patch RoboService so I can flip a flag to disable injection in onCreate() Oct 12 00:24:39 Since nobody else seems to use RoboGuice I think I'm on my own here, but I figured I'd ask Oct 12 00:24:54 hm, someone was looking at an example of confusingly-written docs here a day or two ago and i no longer remember what part of the docs it was Oct 12 00:25:30 mrenouf: drop down to regular Guice :) Oct 12 00:25:34 or Dagger! :D Oct 12 00:25:55 ... or write a compiler that generates java code Oct 12 00:25:57 * p_l ducks Oct 12 00:26:04 javac already generates java code Oct 12 00:26:20 that's how Dagger works Oct 12 00:26:28 How would "just regular guice" work? Oct 12 00:26:41 it's like RoboGuice but without the @InjectView crap Oct 12 00:26:47 normal dependency injection Oct 12 00:26:49 Oh I dont use any of that stuff Oct 12 00:27:09 I wonder, if I dont need ContextScope anywhere, I probably could drop it Oct 12 00:27:12 what do you use it for then? Oct 12 00:27:36 injecting my own components, some configurable stuff, things I want to be able to disable in certain build configurations Oct 12 00:27:56 and of course, being able to mock out stuff, like the network backend of a service I want to test Oct 12 00:28:00 that's all functionality provided by any JSR-330-compliant dependency injection framework Oct 12 00:28:28 ... sounds buzzwordy Oct 12 00:28:40 anyone know when the acer iconia a110 might hit shelves? Oct 12 00:28:57 yes, but I'd end up with the same thing, ie: in my base class calling getInjector(getApplicationContext()).injectMembers(this); Oct 12 00:28:58 right ? Oct 12 00:29:15 yes but it's not context-scoped Oct 12 00:29:25 right, well thats not my issue Oct 12 00:29:51 that still poses the same issue. if I want to test a service and NOT have anything injected, you cant really turn it off Oct 12 00:30:16 or, you override the module with mocks, and use guice in your tests? Oct 12 00:30:30 which I'm fine with, except RoboGuice is a PITA. Oct 12 00:30:34 no you use a TestModule Oct 12 00:30:39 gotcha Oct 12 00:30:47 Modules.override ? Oct 12 00:30:59 basically, yeah Oct 12 00:31:20 yeah. Well RoboGuice needs this boneheaded RoboDefaultModule thing or it blows up Oct 12 00:31:32 and that needs all kinds of stuff and is apparently unhappy using a mock context Oct 12 00:31:38 so maybe I will try bare Guice Oct 12 00:32:11 ctate: I know someone was complaining that something like - can't remember the actual method name - runInBackground somewhere said "this will be run on a background thread" when it should say "you must run this on a background thread" Oct 12 00:32:26 I use no scoped contexts. it's either singleton, or a make a new one *once* for each activity Oct 12 01:09:27 So far so good. the "read string array, instantiate modules and create injector" part is only 20 lines. Oct 12 01:09:56 I chose to call mine "Bootstrap" Oct 12 01:14:56 https://gist.github.com/3876794 Oct 12 01:21:44 LOL wtf is this im watching the debates they are both funny Oct 12 01:21:51 Anyone else watching? Oct 12 01:22:07 but the game is starting soon! Oct 12 01:22:17 What game? Oct 12 01:22:27 but string resources! Oct 12 01:22:30 if you have to ask.. Oct 12 01:23:25 techdigy: ==doogan. :) clinching game for the first-round american league division series between the detroit tigers and oakland athletics Oct 12 01:23:39 crap I forgot! Oct 12 01:23:42 ohh Oct 12 01:23:51 starts in like 10 mins Oct 12 01:24:31 im probably with det Oct 12 01:25:17 for me debate == game Oct 12 01:25:32 ha, yeah; ==mrenouf Oct 12 01:25:33 since I'm a Bostonion Oct 12 01:25:40 I could care less about Baseball now Oct 12 01:25:45 what kind of onion? ;) Oct 12 01:25:55 we're back to the bottom of the league Oct 12 01:26:03 * ctate lives closer to Oakland than to any other baseball city, so Oct 12 01:26:14 although honestly i woudln't be unhappy with detroit advancing either, so Oct 12 01:26:26 on account of they aren't the yankees :) Oct 12 01:27:06 right Oct 12 01:27:08 red sox fan too Oct 12 01:27:14 anyone but NY Oct 12 01:27:52 i'd like to see As do well Oct 12 01:28:02 cuz sabermetrics! Oct 12 01:28:04 Cubs all day Oct 12 01:28:10 make all old sportswriters heads explode Oct 12 01:33:28 people still care about 'roidsball?? Oct 12 01:35:23 I'm likin' Biden in this one. Oct 12 01:35:30 Ryan is a freakin robot. Oct 12 01:35:41 He talks like a salesperson. Oct 12 01:35:55 techdigy: HELL YES Oct 12 01:35:59 * ctate was born in Illinois Oct 12 01:36:11 Cubs? Oct 12 01:36:18 Yeah biden is a beast right now. Oct 12 01:36:30 * techdigy was born in chicago and lives in chicago Oct 12 01:39:54 I have my project compiling fine and all, but cant seem to see the nexus 7 in eclipse on mac, anyone been there ? Oct 12 01:40:09 qcmat, windows, linux, mac? Oct 12 01:40:23 mac Oct 12 01:40:37 I have getMemoryClass=32 mb, but the GC collection msgs indicate that i have some variable limit ranging from 8-15 mb...how does that make sense? http://pastebin.com/HD9Lfjca Oct 12 01:40:48 thats not your "limit" Oct 12 01:40:51 its the current heap size Oct 12 01:40:59 which is >= the amount of allocated memory in the heap Oct 12 01:41:12 allocated memory <= heap size <= heap limit Oct 12 01:41:29 so in theory, the heap size should be increased up to heap limit instead of crashing? Oct 12 01:41:34 yes Oct 12 01:41:50 that doesnt seem to be happening :/ Oct 12 01:41:52 speakingcode, project is targetting 2.2, could that be it ? Oct 12 01:42:01 is that gingerbread? Oct 12 01:42:06 yes 2.2.3 Oct 12 01:42:07 QcMat_ no Oct 12 01:42:12 ok Oct 12 01:42:16 should still recognize the device Oct 12 01:42:17 2.2 is not gingerbread :P Oct 12 01:42:28 but you seem to have concurrent gc, so im goign to assume it's gingerbread Oct 12 01:42:31 speakingcode, it's my first android device, coming from iOS dev, so there might be something I missed Oct 12 01:42:34 2.2 is froyo,yeah? Oct 12 01:42:41 and in that case, bitmaps are stored on native heap, which is the "external" component there Oct 12 01:42:46 QcMat_ does the computer recognize the device? Oct 12 01:42:47 so that counts toward your limit Oct 12 01:42:53 setting up the cross platform project was a pain, cant wait to see if it actually works hehe :) Oct 12 01:42:58 like as an external drive? Oct 12 01:42:58 im using api level 10 Oct 12 01:43:02 speakingcode, with google's file transfer app, yes Oct 12 01:43:07 like external drive, no. Oct 12 01:43:12 o Oct 12 01:43:14 the device though, mahamoti Oct 12 01:43:31 anyway yea... GC_CONCURRENT freed 1192K, 26% free 10761K/14407K, external 9123K/10419K, paused 2ms+3ms Oct 12 01:43:38 when you connect it, QcMat_ , a dialog in the statusbar should appear on the nexus asknig about usb mode or something Oct 12 01:43:41 the device is 2.2.3, i know this because api level 11 wont work on it ;) Oct 12 01:43:41 10761 + 9123 is your allocated memory Oct 12 01:43:50 that doesnt even make sense Oct 12 01:43:57 checkng now speakingcode , thanks Oct 12 01:44:20 try the different options. i forget whatt hey are exactly, but the one pertaining to external storage device is the one i use Oct 12 01:44:36 it says "connected as a media device" Oct 12 01:44:40 in status bar when I plug it in Oct 12 01:44:51 also, you'll need to go to application settings on the device and allow to install from unknown sources and enable usb debugging iirc Oct 12 01:45:01 ah ok cool, checking that now Oct 12 01:45:54 haha! "allw developer settings" Oct 12 01:47:28 speakingcode it appears as a enternal device now, tx very much, ill go dig more in eclipse now Oct 12 01:48:05 it worked, woohoo Oct 12 01:50:06 cool Oct 12 01:50:21 gl w/ ur cross platform.... phonegap? Oct 12 01:50:29 cocos2d-x speakingcode Oct 12 01:50:59 I have 2 games companies with a couple games on iOS, and want to start seeking android Oct 12 01:51:55 cool Oct 12 01:52:02 i need to get my learn on with some game dev Oct 12 01:52:12 i don't know _anything_ in that area Oct 12 01:54:52 morning morning morning Oct 12 01:55:09 good news everyone, it's friday Oct 12 02:00:01 not for three more hours Oct 12 02:00:04 where u at alex Oct 12 02:13:57 romainguy - looks like that indeed did fix that particular problem... now I'm gonna dig into libdvm dalvik heap corruption problems. Thanks for the pointers again Oct 12 02:14:08 I promise no bitching for at least a couple weeks Oct 12 02:25:28 speakingcode, cambodia Oct 12 02:25:38 9:25 am here Oct 12 02:37:27 hi Oct 12 02:37:37 how to import a library in eclipse ? Oct 12 02:39:04 define library Oct 12 02:44:41 canadiancow: https://github.com/ened/Android-Tiling-ScrollView Oct 12 02:45:14 canadiancow: there's a sample and a library, I can import the sample with no problem but I don't understand how to import the library Oct 12 02:45:47 file Oct 12 02:45:49 import Oct 12 02:45:52 existing android code into workspace Oct 12 02:45:59 then specify the library directory Oct 12 02:47:28 canadiancow: that's what I did, but the Finish button stays grey Oct 12 02:48:09 does it have a project in the list? Oct 12 02:48:37 canadiancow: in which list ? Oct 12 02:48:47 when you select th4e directory Oct 12 02:48:56 theres a huge area that lists the projcets it finds Oct 12 02:49:56 canadiancow: yes, but only the sample is selectable Oct 12 02:50:10 strange Oct 12 02:50:13 make a new android project Oct 12 02:50:20 theres an option to specify the directory to use existing source Oct 12 02:50:21 try that option Oct 12 02:52:59 canadiancow: I can't find this option **** ENDING LOGGING AT Fri Oct 12 03:00:01 2012