**** BEGIN LOGGING AT Fri Oct 26 03:00:01 2012 Oct 26 03:04:37 lasserix thanks, i try that! Oct 26 04:16:36 I've subclassed SQLOpenHelper. When I call getReadableDatabase() the program crashes Oct 26 04:16:47 I believe a NullPointerException Oct 26 04:16:51 whats going on here? Oct 26 04:18:01 you believe? Oct 26 04:21:32 RustyShackleford: where's the stack trace Oct 26 04:24:23 this looks like the problem "10-26 04:23:41.494: E/AndroidRuntime(768): Caused by: android.database.sqlite.SQLiteException: Can't upgrade read-only database from version 0 to 1: /data/data/admiralbenson.eltracker/databases/Routes" Oct 26 04:24:48 my onUpgrade() method is empty. I am not sure what I'm supposed to do there Oct 26 04:25:14 that's a strange stacktrace Oct 26 04:25:18 jnkml, Oct 26 04:26:42 I cannot seem to figure out how to use SQLite Oct 26 04:28:05 ji Oct 26 04:28:06 hi Oct 26 04:28:21 im a new programer and i am trying to write to the SD Oct 26 04:28:37 i made a separate class to do so called IternalData Oct 26 04:28:37 http://pastebin.com/ejjeyABC here's my code Oct 26 04:29:13 ^ that for me? RustyShackleford doesnt seem relevant Oct 26 04:29:15 is there anything there that is obviously wrong? Oct 26 04:29:32 CrimsonRaiden: no, I'm asking for help as well Oct 26 04:29:36 o ok Oct 26 04:29:45 you are allowed to look if you want Oct 26 04:30:23 CrimsonRaiden: this might help you though http://developer.android.com/guide/topics/data/data-storage.html Oct 26 04:30:28 well it wont allow me openFileOutput of a fileoutputstream in a public class, i heard it has something to do with context Oct 26 04:30:41 i used that^ RustyShackleford thanks though Oct 26 04:31:01 yeah, it's not the most detailed guide. Oct 26 04:31:26 this class does not extend any activity nor does it use any implementation of an intent Oct 26 04:31:41 can anyone help? Oct 26 04:31:51 CrimsonRaiden: what happens when you try? Oct 26 04:31:58 does it just silently fail? Oct 26 04:32:00 i can Leeds Oct 26 04:32:02 cant* Oct 26 04:32:03 do you get an error? Oct 26 04:32:05 a stacktrace? Oct 26 04:32:06 its an error Oct 26 04:32:07 ya Oct 26 04:32:13 a stern telling-off from an Android engineer? Oct 26 04:32:20 a flying unicorn comes out of your screen? Oct 26 04:32:43 Leeds, shush, he's not developing AOKP. Oct 26 04:33:09 openFileOutput could not be resolved into a variable Oct 26 04:33:11 and if you don't know how to give us a stacktrace, stop trying to code and learn how to debug... Oct 26 04:33:45 stacktrace,eh? Oct 26 04:34:29 http://imgur.com/jacoj Oct 26 04:34:40 its not that im looking to debug my class i just want a better implementation of a class that will allow me to read/write to the sd Oct 26 04:35:08 like example code? ionno Oct 26 04:35:35 you have written some code Oct 26 04:35:40 your code does not work Oct 26 04:35:44 so you need to debug your code Oct 26 04:35:58 ok fine. ill look into stacktrace Oct 26 04:35:59 to debug your code, you need to have at least a basic understanding of the debug tools available Oct 26 04:36:18 its not solely for android right Oct 26 04:36:26 its for development in general Oct 26 04:36:33 ? Oct 26 04:37:09 i'm pulling my hair out right now... Oct 26 04:37:17 WHY ISN'T THIS WORKING?! Oct 26 04:37:21 Hey Guys Oct 26 04:37:31 RustyShackleford: found a stacktrace yet? Oct 26 04:38:01 OH Oct 26 04:38:52 well i cant really use a stack trace the error isnt after i run the app its a syntactical error Oct 26 04:39:09 oh... so it's not that it doesn't work, it's that it doesn't compile... Oct 26 04:39:17 ya Oct 26 04:39:19 my bad Oct 26 04:40:27 i guess ill take a screen shot to show u guys Oct 26 04:41:00 oh god... Oct 26 04:41:10 my mistake was the abscence of a comma Oct 26 04:41:49 in the SQL command that creates the table Oct 26 04:42:06 so now your hair is safe now Oct 26 04:42:13 for now Oct 26 04:42:36 http://i531.photobucket.com/albums/dd360/nimazza/InternalDataerror.png Oct 26 04:42:51 ^there's my code Leeds Oct 26 04:43:10 CrimsonRaiden: so here's something for you to learn straight off... code goes in a pastebin, not a screenshot Oct 26 04:43:44 also, you need to be able to code in Java to write Android apps - it's sort of a pre-requisite Oct 26 04:44:14 plus, finally, before I go to lunch Oct 26 04:44:27 openFileOutput has an 'n' in it before the capital F Oct 26 04:45:14 oneFileOutput, on the other hand, is nothing more than the product of a diseased imagination Oct 26 04:45:21 er, opeFileOutput :) Oct 26 04:45:23 http://pastebin.com/LM7Pjw5K Oct 26 04:45:49 ?? Oct 26 04:45:53 what? Oct 26 04:46:01 meh, learn about Java's scope rules Oct 26 04:46:04 * Leeds -> lunch Oct 26 04:46:11 Leeds, Java is the product of a diseased imagination, unfortunately. Oct 26 04:46:23 ?_? Oct 26 04:46:26 im so confused Oct 26 04:46:34 EdLin: it's okay, we can blame romainguy for that Oct 26 04:46:50 yeah, blame romainguy Oct 26 04:47:12 romainguy, I didn't know you were really Gosling. ;-) Oct 26 04:47:14 CrimsonRaiden: are you trying to call a method on your InternalData class, or something else? Oct 26 04:47:48 no im declaring the constructor....... Oct 26 04:47:58 D: Oct 26 04:47:59 is openFileOutput a method on InternalData? Oct 26 04:48:07 where does it come from? Oct 26 04:48:19 it should be from FileOutputStream Oct 26 04:48:26 how does the compiler know that? Oct 26 04:48:33 well its imported. Oct 26 04:48:40 no it isn't Oct 26 04:49:00 yea it is "import java.io.FileOutputStream;" Oct 26 04:49:05 FileOutputStream is imported, openFileOutput isn't Oct 26 04:49:07 its there Oct 26 04:49:19 is that different class?! Oct 26 04:49:50 argh Oct 26 04:49:52 well http://developer.android.com/guide/topics/data/data-storage.html says otherwise. Oct 26 04:49:54 ionno Oct 26 04:49:55 * Leeds to lunch, really Oct 26 04:49:58 pleaseOpenFileOutputStream() Oct 26 04:50:10 argh Oct 26 04:50:21 ive been using the andriod utube video by the new boston Oct 26 04:50:27 openFileOutput is a bloody method on bloody Context, not a bloody method on your own bloody class Oct 26 04:50:32 bah Oct 26 04:50:47 and they dont import openfileoutput Oct 26 04:50:58 o Oct 26 04:51:00 cuz its called from class that extends Context Oct 26 04:51:01 seriously, Java - learn a bit of it Oct 26 04:51:04 ya thats what i said earlier Oct 26 04:51:37 "well it wont allow me openFileOutput of a fileoutputstream in a public class, i heard it has something to do with context" Oct 26 04:51:52 please dont get frustrated D: Oct 26 04:52:15 http://docs.oracle.com/javase/tutorial/java/index.html Oct 26 04:52:19 I'm not getting (any more) frustrated, I'm getting lunch... good luck, you're gonna need it Oct 26 04:52:58 Leeds, there's a reason why the old dailywtf used to post examples in Java most of the time. ;-) Oct 26 05:00:03 hi all Oct 26 05:00:23 media flinger died when I try to setup the audio url Oct 26 05:00:39 does anyone know the reason? Oct 26 05:10:15 How do I find out which fragment is on the current tab with Fragments + TabHost + ViewPager? Oct 26 05:12:51 use an OnPageChangeListener Oct 26 05:14:12 doogan: aha Let me try that... Oct 26 05:27:51 doogan: sorry but I'm still missing something here. I have onTabChanged and onPagesSelected. From either of these I can get the current tab. But I can't seem to understand how to get the Fragment on that tab. Oct 26 05:28:13 Anyone here have experience using the Parse SDK with maven? Oct 26 05:46:12 hello Oct 26 05:46:28 anyone here at this hour Oct 26 05:47:23 no Oct 26 05:47:26 I'm sleeping Oct 26 05:47:27 obv Oct 26 05:47:29 :P Oct 26 05:48:01 ohai Oct 26 05:48:10 so im trying to make this app Oct 26 05:48:40 a voice assistant thingy (no not another siri clone) Oct 26 05:48:47 does involve speech recognition Oct 26 05:49:30 anyway at first i thought i'd need to integrate something like CMU Sphinx into the project Oct 26 05:50:02 because the Android built in speech recognition is 1) not continuous, and 2) not continuous Oct 26 05:50:22 but suddenly now i find this http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html Oct 26 05:50:27 and 3) not continuous? Oct 26 05:50:55 Leeds: close. 3) refer to #1 and #2 Oct 26 05:51:03 ah, true Oct 26 05:51:29 anyone know much about this voice typing feature? Oct 26 06:01:32 is there a simple way to apply a holo theme to a spinner on gingerbread (using only actionbar sherlock, not the holo-everywhere project)? Oct 26 06:05:00 AlexanderZ, no and you really shouldn't Oct 26 06:05:31 even is the spinner is going into the actionbar as a custom view? Oct 26 06:05:35 if* Oct 26 06:06:11 oh. you should use the built in IndeterminateProgress stuff Oct 26 06:06:26 but I'm not 100% on what that gives you exactly Oct 26 06:06:43 what is the intermediate progress stuff? Oct 26 06:07:04 http://stackoverflow.com/questions/10542103/showing-indeterminate-progress-in-sherlock-action-bar Oct 26 06:07:49 what does a progressbar have to do with a spinner? Oct 26 06:08:31 oh. sorry. spinner. i always mix those up cause I think of the "indeterminate progress" as a "spinner". Oct 26 06:08:38 I know what you mean. Oct 26 06:08:57 are you using ListNavigationMode ? Oct 26 06:09:08 no, I am using tab navigation Oct 26 06:09:15 and putting a spinner as a customview Oct 26 06:09:18 works fine in ics Oct 26 06:09:23 oh. ok so you want another spinner/action as an extra item Oct 26 06:10:04 well, the resources are there in ABS, it's just a matter of applying the right styles Oct 26 06:10:15 I tried all cominations of context/themedcontext, spinner/icsspinner from abs, and a bunch of different default themes for the spinner, best I could do was get it to be themed in ics+, and have the default gray 3d look on gb Oct 26 06:10:16 those would be Sherlock.Widget.* ones Oct 26 06:10:47 I need to apply a custom actionbar theme to it Oct 26 06:11:01 Hmm. I guess it would look out of place on an ActionBar Oct 26 06:11:14 normally I'd say try to blend in with the platform, but thats a special case Oct 26 06:11:47 http://jgilfelt.github.com/android-actionbarstylegenerator/#name=example&compat=holo&theme=light&actionbarstyle=solid&backColor=E4E4E4%2C100&secondaryColor=D6D6D6%2C100&tertiaryColor=F2F2F2%2C100&accentColor=33B5E5%2C100 theme generated with this Oct 26 06:11:58 I've only used list nav mode so I'm not sure Oct 26 06:12:05 it looks fine on ics Oct 26 06:12:25 but the people in charge want it to look the same everywhere Oct 26 06:12:47 and it looks very out of place with the classic default gray 3d theme Oct 26 06:13:03 right Oct 26 06:13:32 http://stackoverflow.com/questions/11474881/action-bar-list-navigation-tab-navigation-position-of-spinner-is-not-at-left Oct 26 06:13:36 this guy says he accomplished it Oct 26 06:13:47 not sure. but I'm sure someone else will be around at some point who can help. Oct 26 06:14:08 hopefully jake will know Oct 26 06:14:53 though its 11pm so I assume he is probably done programming for the day Oct 26 06:14:56 seems as though IcsSpinner is what you want Oct 26 06:15:09 I tried it, but couldn't get a custom theme to apply to it Oct 26 06:15:27 How to change ViewPager's displayed child? Oct 26 06:15:37 yeah, I see him on here roughly 10-7ish (your time, i'm east-coast) Oct 26 06:15:49 napster: thee is a set* method Oct 26 06:15:53 you can pass an index Oct 26 06:16:49 "setCurrentItem" Oct 26 06:16:50 ok setCurrentItems Oct 26 06:16:55 hi Oct 26 06:16:56 *item Oct 26 06:17:03 ok AlexanderZ ty Oct 26 06:17:07 np Oct 26 06:17:43 if I create a data/ directory under the Android project application (in the same dir as AndroidManifest.xml) and put some files in there, will they be included as part of the package if I build the app with "ant release" ? Oct 26 06:18:07 why not assets/? Oct 26 06:19:01 AlexanderZ, you talking to me ? Oct 26 06:19:11 yeah Oct 26 06:19:37 I don't really care, I just don't want those files included in the resulting APK Oct 26 06:20:00 will only the referenced files from assets/ be included in the APK? Oct 26 06:21:12 what do you mean by referenced? Oct 26 06:21:21 The whole assets directory will be included Oct 26 06:21:25 and, no, all of them Oct 26 06:21:37 Is there any hooks which is called when a fragment is really visible to the user? onStart() etc are called based on the parent activity. Oct 26 06:21:40 you can traverse tham as you would a regular filesystem Oct 26 06:22:00 setUserVisiblehint Oct 26 06:22:07 or something along those lines Oct 26 06:22:46 ^napster Oct 26 06:23:22 AlexanderZ: hmm, not sure I understand. should I apply setUserVisibleHint where? Oct 26 06:24:26 * napster checks setUserVisibleHine in the docs Oct 26 06:24:46 setUserVisibleHint is not called by the system, its called by the fragment as a hint to the system Oct 26 06:24:56 I see Oct 26 06:25:35 does isVisible() not suit your needs? Oct 26 06:26:10 mrenouf|work: I think that seems easy. let me check Oct 26 06:26:14 that returns true when the fragment is part of the view hierarchy and not hidden Oct 26 06:26:20 got it Oct 26 06:26:51 but it sounds like you want an event Oct 26 06:26:54 mrenouf|work: that is what I get for going off a stackoverflow response I read and not questionining why the method had backwards naming Oct 26 06:27:27 actually I need to get a callback when ever my fragment is visible to the user Oct 26 06:27:30 onResume is usually best for treating the Fragment as "active" Oct 26 06:27:48 then maybe check isVisible to confirm Oct 26 06:28:27 I wonder why there is no such a lifecycle method! :) Oct 26 06:28:47 use onResume Oct 26 06:28:51 ok Oct 26 06:29:30 unless you hide your fragments explicitly they are generally only detached or removed, not hidden. Oct 26 06:29:47 "onHiddenChanged"? Oct 26 06:29:56 oh Oct 26 06:30:36 I'm not hiding it as such Oct 26 06:30:57 its a phone I'm testing on, so it can go in visible when I go back to the list Oct 26 06:31:08 its nothing but a list -> detail pattern I'm working on Oct 26 06:31:21 s/in visible/invisible Oct 26 06:32:11 yeah. derp. I didn't notice onHiddenChanged Oct 26 06:32:46 one thing to note, hidden is not persisted in the savedInstanceState Oct 26 06:33:12 ok Oct 26 06:33:13 it's essentially just saying fragment.view.setVisibility(GONE) Oct 26 06:33:59 off to bed.... Oct 26 06:34:02 gnite Oct 26 06:34:47 ty mrenouf :) Oct 26 06:35:08 oh he.gone() alreay. Oct 26 06:49:40 is it possible to extend EditText/TextView and handle the way setText works with images it gets through Html.fromHtml() ? where do i start ? Oct 26 07:15:22 ok I give up. I have a viewPager and have three fragments in it. The first fragment is a list view with X number of items. When I click on one of them, the pager should show the next fragment loaded with the item selected from fragment1. I have done the pager switch thing, now need to know how to send data across fragments. Can someone help me out/ Oct 26 07:15:23 ? Oct 26 07:21:52 napster: i wouldn't tightly couple your fragments together. I'd pass the object up to the pager then pass it in to the other fragment. Oct 26 07:22:45 tdignan: I use a FragmentPagerAdapter to provide fragments, does that make any difference? Oct 26 07:23:13 didn't you extend it? Oct 26 07:23:24 not actually :P Oct 26 07:23:42 oh you mean the adapter? Oct 26 07:23:47 yes Oct 26 07:23:52 I extended the adapter, yes Oct 26 07:24:05 so in the adapter, you create a passing mechanism to pass the data between the two fragments. Oct 26 07:24:33 or you could do it in the activity... just don't do it between the two fragments. that's kind of pointless. Oct 26 07:24:53 because then your fragments are glued together. Oct 26 07:25:00 ok, but wondering how can I do this from inside the adapter Oct 26 07:25:30 well, the fragments already have a handle to the activity, so that's actually a bit tempting. Oct 26 07:25:41 how can I access the adapter from inside the fragment? Oct 26 07:25:52 I wouldn't. Oct 26 07:25:55 yes may be getActivity() can be used Oct 26 07:25:56 Use the activity. Oct 26 07:26:16 Create an abstract activity subclass called like "SeriesOfTubes" Oct 26 07:26:18 then extend that Oct 26 07:26:46 well then, your fragment becomes dependent on this "SeriesOfTubes" Oct 26 07:26:52 kind of lame as well Oct 26 07:26:57 :) Oct 26 07:27:26 ListFragment -> DetailFragment -> VeryDetailFragment Oct 26 07:27:43 this is what I was trying to implement Oct 26 07:27:51 all these three are in a viewPager Oct 26 07:27:58 so that I can swipe back home Oct 26 07:27:59 you could make an interface called like "Passable" Oct 26 07:28:11 then make your activity implement that Oct 26 07:28:28 cast you getActivity() to a Passable Oct 26 07:28:33 and shoot the object through that Oct 26 07:28:54 how about doing something inside already implemented interface methods like onPageSelected() Oct 26 07:28:55 ? Oct 26 07:29:16 you still need a way to react to the click Oct 26 07:29:22 yes Oct 26 07:30:50 I would have used a singleton instead if some method could trigger a fragment's visibility changes. Oct 26 07:31:25 say for example DetailFragment becomes visible, I get an instance of the singleton and grab the object from it Oct 26 07:31:43 or even through some methods in the activity class itself Oct 26 07:32:26 pseudocode: activity implements interface passable { give(Object), Object take() } fragmenta ( onListClick (item) { ((Passable)getActivity()).give(item); } fragmentb { whenShown() { Object o = ((Passable)getActivity()).take(); } -- you could use generics to make it typesafe, but my pseudocode just uses a cast. Oct 26 07:32:29 but I think there is no such lifecycle methods exists for a fragment except onHiddenChanged() which does not get called here Oct 26 07:33:03 "fragmentb { whenShown()" Oct 26 07:33:16 tdignan: How can I get information about when a fragment is shown() Oct 26 07:33:33 napster: it's pseudocode for whatever call back you choose Oct 26 07:33:46 like, onCreateView or something similar. Oct 26 07:34:03 it really doesn't matter, the point is when the fragment is shown it checks the passable for any object. Oct 26 07:34:27 passable is something I made up. it needs to have give() and take() methods. Oct 26 07:34:35 got it Oct 26 07:34:39 ok let me try doing this. thanks a lot for your time. Oct 26 07:34:44 np Oct 26 07:36:25 how can i get rid of the shadow that a list view will drop at the upper / lower end , depending on in which direction it is scrollable? Oct 26 07:38:35 zerribert: You can fiddle with Fading Edge Length Oct 26 07:39:19 or even better Oct 26 07:39:23 disable fading edges :) Oct 26 07:40:24 :) Oct 26 07:40:28 thanks, guys :) Oct 26 07:44:34 Why is my cpu pegged at 100% (all cores) when i start eclipse after installing the adt plugin? it stays that way for about a minute, then it stops, then it starts again Oct 26 07:44:48 googling shows that other people have had this problem with one core and it was supposedly fixed in newer versions of eclipse Oct 26 07:46:28 arthurdent: well, the plans for this have been on beteigeuze for about 4 years now.. Oct 26 07:46:45 what? Oct 26 07:47:09 this isn't when i start the emulator or anythign, it's just when i start up eclipse Oct 26 07:47:57 what on earth is beteigeueze Oct 26 07:49:12 sorry, I meant alpha centauri Oct 26 07:52:19 aha Oct 26 07:53:33 tdignan: I think the code does not work as we expect. Since onCreate() etc on the fragment lifecylce called just once since we use an adapter for the parent pager. Oct 26 07:53:52 tdignan: Here is the code I have tried with : https://gist.github.com/3957510 Oct 26 07:54:44 what kind of bugs might be causing program to crash(or even worse crash the computer)? I double checked and added checks to ensure table indexes won't go out of boundaries but probably not that(those shouldn't really happen anyway) so probably need to check something else too. Oct 26 07:56:01 Greets, without SDK tools or VirtualBox (for x86) - is there a simple standalone emulator for windows. Someone needs to take some videos of our apps for a showreel. Oct 26 07:59:26 Basically the entire problem of mine is due to the lack of a fragment liefecycle hook which can trigger when it becomes really visible to the user Oct 26 08:00:42 tdignan: Any idea? Oct 26 08:04:22 I have a quick question which isn't dev-related, but I need folks who are knowledgeable about phones and networks. #android and #android-root weren't helpful and I'm not sure where else to turn Oct 26 08:04:38 I have a T-Mobile GSM phone with 1700/2100, 2100 MHz compatibility, would it be able to work on MetroPCS' LTE network which uses SIM cards and operate on "Band 4 (2100/1700 MHz)" and "Band 2 (1900 MHz)" Oct 26 08:04:42 or does the fact that they both use SIMs and the same frequency changes nothing about compatibility Oct 26 08:07:38 napster: you just define interface that you want to get called when fragment comes in and out of view, and then whatever mechanism you use to make fragments appear or disappear, you hook it into that manually. For instance, into ViewPager... Oct 26 08:08:27 alankila: I actually have these fragments inside a viewPager Oct 26 08:09:15 but what I don't know is, how can I define an interface which gets called when one of them becomes visible Oct 26 08:18:31 alankila: tdignan ok, figured it myself. Thanks for your time. Oct 26 08:20:30 actually it was a mistake in understanding tdignan's code Oct 26 08:54:47 cool just got a sony smartwatch to dev for Oct 26 09:20:09 I want to create an app that will work on both iOS and Android. I am looking for a framework that will help me to do so.. Any suggestions what would be the best framework for building cross platform mobile app. I know HTML, CSS, PHP and other basics of web development. Sorry to ask this here but I thought android developers may know about such frameworks. Oct 26 09:24:59 how to create drop down list with constant icon in the up of menu ( to drop it down ), instead of an item name in the up in action bar sherlock? Oct 26 09:26:06 subhojit777: there are several of these, and in general I (and several books and articles) will recommend you not to use them. Instead of creating a good app for one platform you will create an app that doesn't fit good into 3 platforms. iOs and Android have so much different style guides, that you cannot handle it with one user interface. If you still want to try (and you will see a lot of users not beeing happy, with the res Oct 26 09:26:17 hi .. i just installed the drivers for motorola and my device is listed in ddms but in file explorer tab the push icon and pull icon are coming as disabled Oct 26 09:26:23 what is the problem Oct 26 09:26:56 subhojit777: a good overview: http://sixrevisions.com/mobile/cross-platform-mobile-apps/ Oct 26 09:31:47 napster: what if you do it in onResume()? Oct 26 09:32:45 tdignan: onResume() is called based on the parent activity. In this case, it will be called along with the parent's onResume() Oct 26 09:33:42 timroes, sorry your first response came incomplete "If you still want to try (and you will see a lot of users not beeing happy, with the re...". Could you please post your full response? Thanks Oct 26 09:33:53 but I have done it using another interface which is implemented by the detail fragment. And trigger the abstract method in it through the onPageSelected listener for the pager. Something like a hack, but it works fine :) Oct 26 09:33:59 subhojit777: there are several of these, and in general I (and several books and articles) will recommend you not to use them. Instead of creating a good app for one platform you will create an app that doesn't fit good into 3 platforms. iOs and Android have so much different style guides, that you cannot handle it with one user interface. If you still want to try (and you will see a lot of users not beeing happy, with the res Oct 26 09:34:10 now? :) Oct 26 09:34:35 tdignan: Hope that you we are talking about the fragment/pager issue we have discussed an hour earlier Oct 26 09:34:43 s/you we/we Oct 26 09:35:08 yes Oct 26 09:35:25 Oh ok, fair enough point. Oct 26 09:35:50 I guess you'll need to implement some sort of "onSelected" interface for your fragments and invoke it in the pager. Oct 26 09:36:40 timroes, still incomplete.. I think IRC doesn't allows you to post response greater than certain number of characters. Please post your full response of this sentence "If you still want to try (and you will see a lot of users not beeing happy, with the re..". Thanks again :) Oct 26 09:36:48 If you still want to try (and you will see a lot of users not beeing happy, with the result in your app ratings) you could give Phonegab a try. Oct 26 09:37:00 there wasn't much more :D Oct 26 09:37:17 if you want to give it a try, also have a look at the link i posted :) Oct 26 09:37:38 tdignan: hmm I did something kind of different. I actually deifned an interface which does nothing but get the data to be passed from the activity object. And buy implementing the pager's onPageSelected method, I manually trigger the the interface method and grab the data safely. Would you like to take a look at the code? Oct 26 09:37:50 s/buy/by Oct 26 09:39:28 timroes, Thanks you :) Oct 26 09:40:24 napster: if you think it's worth looking at then post it on github where I'll be able to use it later Oct 26 09:40:32 feel free to ping me with such a link Oct 26 09:41:07 tdignan: sure. Oct 26 10:12:49 Hi Guys, can you help me ? I want to create such a pop-up window from desktop screen..like when your calendar shows you the reminder. any ideas ? Oct 26 10:26:26 i've got a webView with some local static html code, on android 4 it works fine. on android 2.0 it return web page not available. anyone else experienced that? Oct 26 10:29:01 test Oct 26 10:46:21 has someone here made axis2 work in gae? Oct 26 10:48:08 hi Oct 26 10:48:16 I need some help with Android FB API 3.0 Oct 26 10:48:31 how can I upload a photo and photo title? Oct 26 10:50:05 I do not understand Request.newUploadPhotoRequest thing... Oct 26 10:50:20 and I do not see any bundle uploader or way to uplad image with additional information Oct 26 11:10:58 hi Oct 26 11:11:06 How to increase calling audio during call? Oct 26 11:45:03 if i build my app with target 15, does that mean it wont run on my 2.3.6 device? Oct 26 11:45:18 i have set minsdk 7 Oct 26 11:45:21 That'd make android:minSdkVersion pointless Oct 26 11:45:49 yeh thats what i thought but it is refusing to work Oct 26 11:46:09 When running on api7 you can't use methods that don't exist on api7 Oct 26 11:46:11 comes up with a red cross when i try to launch Oct 26 11:47:23 funny thing is it only happened after i made some tweaks to get abs working on 4.0 Oct 26 11:47:29 but i dont see how they could do much to it Oct 26 11:47:51 just waiting for eclipse to have its little tantrum before i can retest Oct 26 11:48:13 weirdly if i use sdk 3.0 LayoutParams becomes a compiler error that cant be right Oct 26 11:49:00 A red cross in the emulator dialog? Launch it anyway.. Oct 26 11:49:10 its ghosted out the launch button Oct 26 11:49:15 was workign fine like 2 days ago Oct 26 11:53:17 If only there was some other way of launching an emulator Oct 26 12:02:18 is it a good idea to make http request in an asynctask Oct 26 12:10:16 hey is there any way of finding out what % of androdi devices out there are arm6? Oct 26 12:10:34 trying to make something with adobe air but apparently only arm7 is supported Oct 26 12:11:34 Gaz`: have a look at http://forum.xda-developers.com/showthread.php?t=1596800 Oct 26 12:12:18 but take care its not only android devices on that list Oct 26 12:13:02 eh sorry it is :) i thought i read something else :D Oct 26 12:14:39 how to implement lists in two tabs? Oct 26 12:33:20 pff i'm trying to add a lib that has a .jar and a .so file, in IDEA.. anyone tried this? either i get a link error or invalid apk Oct 26 12:45:28 anyone had luck getting an animation drawable into a TextView using fromHtml() ? Oct 26 12:46:02 really struggling with it, any pointers would be great Oct 26 12:59:18 Sorry for such basic question, but I'm failing with Google. Is there any way to directly draw stuff on android device display from PC via USB and would it require rooting the device? Oct 26 13:00:15 Or would it be possible to make an app that takes the data coming from USB and uses it Oct 26 13:02:15 notashrimp: you can use adb to port forward Oct 26 13:02:20 notashrimp: over the usb cable Oct 26 13:02:54 yeah, the answer is "kinda sorta" Oct 26 13:03:12 you'd end up having to make an app that takes its display data from somewhere else. Either use adb forward or do something else. Oct 26 13:03:54 at least, I think. It's possible that there's some neato USB host mode stuff you could do, but I'm not sure. Oct 26 13:03:59 look into the ADK, etc. Oct 26 13:07:33 Hi. I'm trying to create a square camera preview. http://dl.dropbox.com/u/13461899/camera.png ...my SurfaceView, which is in a FrameLayout, is marked yellow. Since my Camera.size is 480x320, I expected to get a cropped landscape view, but this appears to be a rotated portrait view. Am I doing it completely wrong, or there's an easy fix? tl;dr - can't create square camera, current approach above Oct 26 13:12:11 hello Oct 26 13:12:29 lov: you there? Oct 26 13:12:57 maybe? Oct 26 13:13:14 ohai Oct 26 13:13:29 lov: whats this i found "Voice IME" would you know anything about that Oct 26 13:14:13 lov: from what i can tell, it's kinda continuous voice recognition Oct 26 13:15:05 IME stands for Input Method Editor Oct 26 13:15:12 which generally stands for "On screen keyboard" Oct 26 13:15:28 if it does perform continuous voice recognition, you can probably piggy back on it. Oct 26 13:16:24 lov: http://goo.gl/pgnM3 looks like doesnt necessarily have to involve a keyboard gui Oct 26 13:16:54 Hmm. Oct 26 13:17:09 You're welcome to give it a shot, though the default implementation likely requires that the screen be on. Oct 26 13:17:35 oh.. Oct 26 13:17:45 how can i verify about that Oct 26 13:18:02 are there some state variables or wtvr i should read up about Oct 26 13:18:51 basically what i'd want to do is have a long running service that actively records & processe voice ime Oct 26 13:19:02 *processes Oct 26 13:20:27 Yes, I'm aware that this is what you want. Oct 26 13:20:28 while if possible even allowing the screen to darken/turn off (partial wakelock) Oct 26 13:20:34 the answer is you're going to have to do research Oct 26 13:20:51 no please god, anything but reasearch@ Oct 26 13:21:05 I am not (nor do I intend to be) the font of all knowledge, the oracle of irc, the king of the androids. Oct 26 13:21:16 (I'm the king of the jerks but that's another story) Oct 26 13:21:36 lov: are you oracle of... er oracle? Oct 26 13:21:55 research?? you dont know everything?? what?? nooooo!!!!!!.... my world is shattering before my eyes Oct 26 13:22:20 he knows, he's just not going to tell you without the appropriate sacrifices being made Oct 26 13:22:57 is lov on the android team Oct 26 13:23:08 is anyone here Oct 26 13:23:15 just curious Oct 26 13:23:18 he can only divine that information from the entrails of a part-time SEO expert. Oct 26 13:23:44 regedit: that guy with the two names that sound like surnames Oct 26 13:23:57 Is there any Android setting that forces videos to play inline with HTML in the browser, instead of poping out fullscreen? Oct 26 13:23:57 regedit: some people are, but it's up to them to say Oct 26 13:25:00 what if i wanna send em some flowers Oct 26 13:25:29 regedit: I am not on the android team. There are people in this channel who work for Google, and some who work on Android. Some of them prefer to not advertise this fact. Oct 26 13:25:54 not even for some flowers huh Oct 26 13:26:52 Yay! I got a rejection letter from Microsoft! Oct 26 13:27:25 pics or gtfo Oct 26 13:27:34 Ankhwatcher: I'd say you might have dodged a bullet on that one. Oct 26 13:29:19 Ask and ye shall recieve: http://picpaste.com/MicroRejection.PNG Oct 26 13:30:20 lov: I have to get started as a professional software developer somewhere, microsoft still make software, right? Oct 26 13:30:36 ha Oct 26 13:30:58 If you weren't in the emerald isle I'd see what i could do. Oct 26 13:31:21 lov: thanks Oct 26 13:31:47 AMZN should have some offices in Ireland; I know there are at least datacenters. Try with them. Oct 26 13:32:25 damn microsoft made me create a class structure and a function before they told me to naff off Oct 26 13:32:48 lov: it worries me when people talk in stock ticker Oct 26 13:33:06 for some companies I'm just used to it. Oct 26 13:33:12 "Amazon" Oct 26 13:33:32 Ankhwatcher: pm Oct 26 13:33:34 lov: I know, I just think it's odd Oct 26 13:34:21 is it a good idea to make http request in an asynctask? Oct 26 13:35:06 tagrudev: certainly sounds like one to me Oct 26 13:35:18 yes. At the very least it's better than doing it on the UI thread. Oct 26 13:35:27 how about making multiple httprequests Oct 26 13:36:28 It depends on what you're doing. If it's something that's going to live longer than your activity, or which you'd like to cache, consider using a Service. Oct 26 13:36:29 consider the case A button -> click -> make several httprequests -> show loading dialog -> close it when fineshed Oct 26 13:36:55 er Oct 26 13:36:59 what are you actually doing/loading Oct 26 13:37:22 internet downloader! Oct 26 13:37:23 well for the case I am making 2 request to 2 endpoints of an API Oct 26 13:39:23 lov :? Oct 26 13:44:19 anyone ? Oct 26 13:44:56 tagrudev: sorry, Lov is very kindly picking apart my CV Oct 26 13:45:55 i know a ibt of java Oct 26 13:45:58 whats the best place to learn android Oct 26 13:46:13 tagrudev: you're not really telling me. Oct 26 13:46:17 *telling me anything with that Oct 26 13:46:22 What do your API requests do? Oct 26 13:46:27 is it just googles own website is the best or Oct 26 13:46:32 d.android.com Oct 26 13:46:37 go do the tutorials Oct 26 13:46:46 are they the best ones though Oct 26 13:47:00 lov both request are GET retrieving Json Oct 26 13:47:28 the thing is I want to use one AsynTask for both the request Oct 26 13:53:29 >_< Oct 26 13:53:39 well, you CAN use one asynctask for both requests. Oct 26 13:53:42 Nothing stops you from doing this. Oct 26 13:53:56 I was really trying to ask "What do these API calls do and what are you doing with the results and do you care if this is interrupted" Oct 26 13:54:12 lov, how to handle both of the requests in the AsyncTask Oct 26 13:54:39 well yeah I want the user to be halted while this is done Oct 26 13:58:07 uh Oct 26 13:58:14 make the first request in your async task, then make the second? Oct 26 13:58:23 do them both in onBackground or whatever Oct 26 14:00:19 yeah I want to do them both in doInBackground Oct 26 14:00:31 ok, cool, go do it. Oct 26 14:01:48 impossibru httpclient is not async and does not support parallel connections Oct 26 14:01:49 ;/ Oct 26 14:04:33 Is it beneficial to develop apps on Ubuntu over on Windows? Oct 26 14:06:21 someone knows if ListFragment and Fragment ( actually the Sherlock version ) have a common ancestor? how else do you get them in the same FragmentPagerAdapter? Oct 26 14:07:21 lov, ideas ? Oct 26 14:09:05 a question regarding networking and battery: will keeping a TCP connection open cause the radio to stay in a low or high power state, even if you don't write/read anything? Oct 26 14:09:21 tagrudev: are you fucking serious? Oct 26 14:09:28 You do the one request, and then when it's finished you do the next one. Oct 26 14:09:32 I don't see what the problem is here. Oct 26 14:11:06 Irwin: have you looked at GCM? Oct 26 14:11:37 clever: that is uses a persistent TCP connection? Oct 26 14:11:41 I am serious lov, show me how would you do 2 requests in the doInBackgroud method Oct 26 14:12:06 Irwin: you may be able to use GCM to just replace your connection entirely, or atleast remove the need to keep it open long-term Oct 26 14:12:39 ... Oct 26 14:14:09 HttpURLConnection conn = url1.connect(); InputStream is = conn.getInputStream(); String result1 = readInputStream(is); conn.close(); conn = url2.connect(); is = conn.getInputStream; String result2 = readInputStream(is); conn.close(); doSomethingWithResult1(result1); doSomethingWithResult2(result2); Oct 26 14:14:11 If you can make it do 1 request, you can make it do 2 Oct 26 14:14:12 clever: that would b ideal, but unfortunately, my use cases requires a connection. Oct 26 14:14:17 Just copy paste the code from the first request Oct 26 14:14:28 Irwin: what is your use-case? Oct 26 14:16:00 SimonVT, do ListFragment and Fragment ( actually the Sherlock version ) have a common ancestor? how else do you get them in the same FragmentPagerAdapter? Oct 26 14:16:06 clever: honestly, it's stupid. for some reason, we have our backend implemented using a persistent connection isntead of using HTTP. it's basiclly complete and I don't have a say in it at the moment... Oct 26 14:16:24 ListFragment extends Fragment Oct 26 14:16:41 Irwin: ah Oct 26 14:16:47 SimonVT, any idea than why classes extending either of one of them can't be in an SherlockFragment[] array? Oct 26 14:17:07 because SherlockListFragment doesn't extend SherlockFragment Oct 26 14:17:22 Irwin: idealy, you would use GCM to inform the android about new events, when its offline, and if you need some kind of bi-directional connection, you would then open one when you get the event Oct 26 14:17:28 It extends ListFragment which extends Fragment.. Like SherlockFragment extends Fragment Oct 26 14:17:45 You shouldn't need to cast it to SherlockFragment tho.. ever Oct 26 14:17:51 Is there a way to force HTML5 videos to play inline the browser, instead of popping out in a video player? Oct 26 14:18:12 SimonVT, i don't want to cast it, just want to throw some in an array to back a viewpager Oct 26 14:18:14 clever: yea, that makes more sense. what I have been asked to do is to keep the bi-directional connection open and ping every 60 seconds Oct 26 14:18:27 So make a Fragment array Oct 26 14:18:28 Irwin: ow Oct 26 14:19:01 SimonVT, oh I see, sorry :) wasn't thinking Fragment is where they connect Oct 26 14:20:10 clever: so yea..if not writing or reading from the network, will it stay at a lower power state? I can't really make it out after reading http://developer.android.com/training/efficient-downloads/efficient-network-access.html#AppsStateMachine Oct 26 14:20:28 Irwin: not sure myself, only started recently Oct 26 14:20:31 clever: if it stays at a high power state, then I may have a case Oct 26 14:20:41 clever: alright..thanks for your input Oct 26 14:29:10 TableLayout table = (TableLayout) findViewById(R.id.thaRealTable); // is this supposed to be null ? Oct 26 14:29:21 only if the find fails Oct 26 14:29:48 public static final int thaRealTable=0x7f070000; Oct 26 14:29:55 any idea Oct 26 14:30:00 what can cause the failiure? Oct 26 14:30:07 *failure Oct 26 14:30:29 is that from your R.java? Oct 26 14:30:56 because the IDs are generated opaque values - they can change whenever you recompile your app Oct 26 14:30:56 yes Oct 26 14:31:03 clean clean clean Oct 26 14:31:53 kahoz: your context doesn't have a view in the hierarchy with that id Oct 26 14:32:01 kahoz: did you load a layout? Oct 26 14:37:38 zinx i'm doing this on the onCreate method of a activity Oct 26 14:37:43 so i'm supposing Oct 26 14:37:50 the loaded layout is the on related on the activity Oct 26 14:37:54 but maybe i'm wrong Oct 26 14:38:00 do i have to use adapter in this situation? Oct 26 14:38:00 you still have to load the layout Oct 26 14:38:33 i thought that was done magically Oct 26 14:38:34 thanks Oct 26 14:38:36 Eclipse will create a stub function that does it for you, but if you delete that line of code Oct 26 14:38:37 i'll search about it Oct 26 14:38:41 then it won't get loaded Oct 26 14:39:05 kahoz: did you setContentView before findViewById? Oct 26 14:39:16 no.. that's the last line Oct 26 14:39:24 that's the line that loads the layout. Oct 26 14:39:58 it worked! Oct 26 14:40:00 thanks a lot Oct 26 14:40:01 :) Oct 26 14:40:16 kahoz: you might browse the tutorial section on developer.android.com Oct 26 14:40:46 kahoz: the Android documentation is actually really good - better than pretty much any commercial OS docs Oct 26 14:40:48 always amazes me how people manage to find their way to IRC when they blatantly can't read Oct 26 14:41:35 ^this Oct 26 14:42:07 Leeds: Running an open source project, it amazes me the people who can find my email who can't find a website. Or who can find a website and not find the second link on every page, H1 bold, "Download" Oct 26 14:42:07 Leeds: "pres butan to internet chat with android" Oct 26 14:42:08 guys please, i putted all texts into string so i dont have warnings (i know i can disable them..) but instead of looking fine and heathy every text have @string/MyText for example ..:/ what to do ? Oct 26 14:42:48 Is the developer site offline for you too? Oct 26 14:43:16 http://www.downforeveryoneorjustme.com/d.android.com Oct 26 14:43:23 http://www.downforeveryoneorjustme.com/d.android.com Oct 26 14:43:25 yeah, that :) Oct 26 14:45:59 Funny, that page doesn't load for me Oct 26 14:46:29 http://www.downforeveryoneorjustme.com/www.downforeveryoneorjustme.com Oct 26 14:46:30 :) Oct 26 14:46:32 Is there any safety or legal requirment that the back button needs to exit the application? I'm asking because I know Rim had issues surrounding something simular Oct 26 14:47:02 the back button definitely does *not* have to exit the application Oct 26 14:47:23 Sometimes it goes back in an application Oct 26 14:48:00 make a force close in onbackpressed and exit is done :) Oct 26 14:48:09 * Ge0rG is always annoyed by the back button misbehaving in the "battery low" dialog. if you tap on one of the items, back closes the dialog instead of returning to the list of battery eaters. Oct 26 14:48:41 how can anybody expect anything sane from the back button if even android devs f*ck it up. Oct 26 14:49:16 customers still think with desktop user mind Oct 26 14:49:42 (not osx user:) Oct 26 14:51:47 Ge0rG: b.android.com Oct 26 14:52:42 lov: where it will be taken care of as well as my previous reports, yes. Oct 26 14:53:09 Leeds zinx i've been reading the documentation.. i simply had the idea the setContentView was called after the processing/rendering.. the docs are good but i started yesterday and the learning curve is quite high, i should say :P Oct 26 14:53:34 kahoz: any idea where you got that idea from? Oct 26 14:54:11 er, idea... idea... idea Oct 26 14:54:24 dunno actually.. some stupid assumption Oct 26 14:54:25 |: Oct 26 14:55:52 My app is using OpenGl on the native side. But the CPU is only 400mHz. Sometimes when app need to draw many details, CPU consumption is 100%. Is it possible to limit CPU usage of whole application process? (e.g. my app couldn't use more than 40% of CPU ) Thanks. Oct 26 15:01:53 what would be the best way to supply a CA certificate / keystore within of my app? Oct 26 15:02:10 put it in res/raw/ or assets/ Oct 26 15:02:26 the latter is probably more appropriate Oct 26 15:03:13 oh, too easy. http://blog.antoine.li/2010/10/22/android-trusting-ssl-certificates/ :D Oct 26 15:03:31 JakeWharton: res/raw seems not too bad. Oct 26 15:04:03 you can also include it in the src/ directory and use Java resources to load it Oct 26 15:08:26 making an upload log is proving to be more trouble than it's worth :\ Oct 26 15:08:44 i have all sorts of different things that need to be uploaded and displaying them in the same list is going to require a very suspicious join Oct 26 15:17:50 Guys, my R. havent changed how can I generate it again correctly ? Oct 26 15:18:03 clean the project Oct 26 15:18:11 always clean the project Oct 26 15:18:28 clean ? Oct 26 15:18:43 you mean the R. ? Oct 26 15:18:50 ant clean Oct 26 15:18:55 ant ? Oct 26 15:18:58 or whatever the equivalent is in eclipse Oct 26 15:19:21 sorry iam not following your thoughts, can you retype is again please ? Oct 26 15:19:40 clean your project Oct 26 15:19:49 are you using eclipse? Oct 26 15:20:03 where you build ur project? console? (ant/maven) ide? (eclipse, intellij)? Oct 26 15:20:04 yes Oct 26 15:20:14 eclipse Oct 26 15:20:31 in build menu search something like "rebuild" Oct 26 15:20:46 but, will it change my project ? like classes e.t.c. ? Oct 26 15:21:06 no, its re generate your binaries Oct 26 15:21:57 http://stackoverflow.com/questions/2041083/how-to-regenerate-r-class Oct 26 15:22:11 damned nothing happened :/ Oct 26 15:23:19 you know i was repairing strings because they were hardcoded, and now it is doing totall mess ..and it wont accept anything Oct 26 15:24:15 after clean not generate R or whats the problem? Oct 26 15:25:48 no i changed my strings, and they didnt fit to R, it says for example that - Duplicate dield R.string.Advanced .. and those errors Oct 26 15:26:05 basically errors of texts which was transfered into string Oct 26 15:26:38 and when i fix it manually, it changes back because " reverting to generated version" Oct 26 15:26:52 anyone happen to know of a nice standalone program for monitoring logcat? Oct 26 15:27:31 and when i clean it .. it goes to the wrong version .. i mean..it basically no change between when its reverting to generated (which is wrong) or between cleaning it Oct 26 15:28:04 basically it does not change unless i fix it manually ..which does not counts because it changes back Oct 26 15:29:45 Error: Server Error !!!! on http://developer.android.com Oct 26 15:29:54 DOSP: i think you do something wrong Oct 26 15:30:09 adq: we know it :( Oct 26 15:30:20 make sense :| Oct 26 15:30:34 guys, i was just typing string so they are not hardcoded... Oct 26 15:30:49 because i had 49 hardcoded strings Oct 26 15:34:20 you put them currectly to strings.xml and you get them with context.getString(int)? Oct 26 15:35:02 no redeclaration, etc, right? Oct 26 15:36:59 Hi! Oct 26 15:37:16 In my Eclipse, I can not open any Android project any more Oct 26 15:38:41 it just hangs on "Loading data for Android " (widgets and layouts) Oct 26 15:39:02 guys !!! now after Cleaning my R. file even dissappeared :(:(:(:( Oct 26 15:39:06 did anyone experience this problem before? It used to be fine a few hours ago... Oct 26 15:39:41 clean delete R file and other generated files Oct 26 15:40:14 ixc what to do, you know? Oct 26 15:40:20 when you build, it will generate from your xml Oct 26 15:41:14 dunno about eclipse how generate it; i never seen eclipse with android project Oct 26 15:41:40 i think it generate automatically Oct 26 15:42:28 Okay, so I'm using Camera, and making it preview on a SurfaceHolder. (It's with the ZBar Android example.) The app is running perfectly, until I put the device to sleep and wake it up. It returns to the app and I have it reinitializing the camera, and it seems to be scanning, the only problem is that when the app starts up again the preview is not working. It'll scan an image but I can't see the Camera preview. Does anyone have an ide Oct 26 15:42:32 IXC -> okay .. listen -> Your project contains errors please fix them before running project. Those errors are because R dissappeared and now whereever iam using findViewById(R.id.something) wont work, because R does not exist ! Oct 26 15:43:35 If R isn't rebuilt, there's errors in your xml Oct 26 15:43:37 your classes where use R is in same package like R? you didnt import android.R, right? Oct 26 15:43:39 or eclipse is messing up Oct 26 15:43:50 are your xmls ok? Oct 26 15:43:56 well yes, and i cant BUILD because there are errors :D Oct 26 15:43:57 if you restarted eclipse, your xml is probably fucked Oct 26 15:44:09 ixc no they are not ..like i said Oct 26 15:44:11 That's not how it works Oct 26 15:44:16 use ant and it will say if xmls has errors :) Oct 26 15:44:20 Missing R does not stop R from being built Oct 26 15:44:34 xml has errors..because of missing R i said like this -> findViewById(R.id.something) Oct 26 15:44:49 xml cant have errors because of missing R Oct 26 15:44:58 aaaa sorry Oct 26 15:45:03 damn .. i misreaded Oct 26 15:45:07 Hopefully findViewById is in a java file and not xml Oct 26 15:45:22 :)) Oct 26 15:45:45 nope xml dont have errors Oct 26 15:45:46 Is it very wrong to keep a reference to a view that is not visible? Oct 26 15:45:51 but java files have it pretty much Oct 26 15:46:09 try to restart eclipse Oct 26 15:46:30 And make sure either build automatically is enabled, or you press build Oct 26 15:46:37 if R is not built, your xml has errors Oct 26 15:46:39 Simple as that Oct 26 15:47:14 btw i think if you run linter it is also print errors Oct 26 15:47:22 what do you think about air for android Oct 26 15:47:23 ? Oct 26 15:47:43 It's crap Oct 26 15:47:47 why? Oct 26 15:47:57 flash/air is sux everywhere :) Oct 26 15:48:13 but why? Oct 26 15:49:28 and the weird thing is: even if I create a new workspace with a new Android project, it still hangs on loading the Android library Oct 26 15:49:56 isn't air better than js& html? Oct 26 15:50:03 for mobile devices? Oct 26 15:51:41 i think adobe said: js&html is the future :) Oct 26 15:51:55 btw for apps i prefer "native" Oct 26 15:52:12 for web js/html is ok Oct 26 15:52:25 guys, nothing happened Oct 26 15:52:28 :/ Oct 26 15:52:36 still no R showing Oct 26 15:53:01 Adobe stuff like Air and Flash are crappy for the sole reason that they're proprietary software programmed in the horrible language known as ActionScript Oct 26 15:53:03 i dont understand ppl why torturing themselves with eclipse Oct 26 15:53:28 now comeon Eclipse is great..just crashers sometimes .. Oct 26 15:53:56 i never had problems with vim and ant Oct 26 15:54:24 oh my work time is over; time to go home, brb Oct 26 15:54:52 on windows ? Oct 26 15:55:09 Lucky IXC gets to go home Oct 26 15:55:46 DOSP do a clean Oct 26 15:55:53 and make sure build auto is checked Oct 26 15:56:17 how do I dismiss a dialog fragment on rotation... Oct 26 15:56:18 preference: lol Oct 26 15:56:48 I guess I can use onSaveInstanceState and check to see if it's being recreated Oct 26 16:01:29 preference: after 9hours of work...:) and ive work day tomorrow too:( Oct 26 16:05:11 which languages usually translate your games/apps? Oct 26 16:05:59 dantheman i did Clean and it Erased my R. file Oct 26 16:06:22 is google down http://developer.android.com/training/basics/firstapp/starting-activity.html Oct 26 16:06:27 DOSP: fix your xmls and will generate a new R Oct 26 16:06:42 my XML are without error Oct 26 16:07:03 why is R visible to the dev if we never should change it by hand Oct 26 16:07:37 what you mean with visible? Oct 26 16:07:51 if you clean the project it isnt visible Oct 26 16:08:06 why does the dev even need to know R exists Oct 26 16:08:15 damn i cant get onto android dev website Oct 26 16:09:04 The dev site is running horribly slow today Oct 26 16:09:32 It took me 15 minutes to load the home page... partially Oct 26 16:10:04 DOSP: that is what it is supposed to do. Make sure everything is saved and you have Auto Building Turned On Oct 26 16:10:21 documentation is generated from sdk source:) Oct 26 16:10:45 dantheman AutoBuilding is on, with no errors my xmls are . Oct 26 16:10:57 also make sure you are importing the correct R file Oct 26 16:11:32 your.package.name.R instead of com.android.R Oct 26 16:12:06 android dont have com prefix:) Oct 26 16:12:11 wait, importing ? Oct 26 16:12:27 iam not importing anything , or am i somehow misunderstood some of you Oct 26 16:12:34 :D Oct 26 16:12:37 you need import if your class not in same package like R Oct 26 16:12:39 sorry this is just too funny :) Oct 26 16:13:00 timroes: yes, it is:( Oct 26 16:13:01 ixc yes it does Oct 26 16:14:17 okay dont mix importing guys i have it right Oct 26 16:14:17 you should delete your xml files step by step, if R appear you found the incorrect file:) (dont do) Oct 26 16:15:30 i must backup everything, but how can it be wrong ?? if everything worked hour ago ? Oct 26 16:15:43 what did you change within that hour? Oct 26 16:16:08 guys is there a mirror to the developer site Oct 26 16:16:09 i was transforming hardcoded strings into string.xml so i dont get errors Oct 26 16:16:10 i cant get on Oct 26 16:16:20 There you go, you messed up some of your strings Oct 26 16:16:29 then you should check string.xml Oct 26 16:16:59 try to move your strings.xml out of project, lets see it has error Oct 26 16:17:10 gist your string.xml Oct 26 16:18:19 well the thing is, EXCEPT .java files -> strings and XML are without errors Oct 26 16:18:28 china's space station looks better than nasa's Oct 26 16:18:49 it has color Oct 26 16:18:53 DOSP if it isn't building there is an error Oct 26 16:19:06 the nasa's space station is all white inside and has wires all over the place Oct 26 16:19:13 if you want you should go into your project dir via the command line and type Oct 26 16:19:15 ant debug Oct 26 16:19:21 it looks like an asylum inside Oct 26 16:19:21 convivial: wires are cool :) Oct 26 16:19:54 I bet Japan's spaceship will have gravity system Oct 26 16:20:17 timroes: Japan using nuclear pulse engine for their ship Oct 26 16:20:28 they will get to mars, under powered flight, in 2 weeks Oct 26 16:20:32 that is cool Oct 26 16:21:00 will not Nasa do the same? how hard could it be? Oct 26 16:21:24 read it :D "well the thing is EXCEPT .java files " there is not error, my classes and e.t.c. have errors because R. is not around som wherever iam Calling R.id.something , it gives error because R itself is missing Oct 26 16:22:02 If R isn't building, your xml has errors Oct 26 16:22:04 That's how it works Oct 26 16:22:06 timroes: as of late, nasa seems to not be interested in human space flight … I guess they are being practical Oct 26 16:22:10 Java errors doesn't stop R from building Oct 26 16:22:29 pastebin/gist your string xml Oct 26 16:23:06 R resources are generated from xml Oct 26 16:23:12 ixc, i cant , but now i have generated R :) Oct 26 16:23:13 check out your XML files Oct 26 16:23:26 DOSP: now your stuff should clean Oct 26 16:23:30 and build Oct 26 16:23:40 than fix your misstake not repeat it dont have Oct 26 16:23:51 well no because R it self gives me error :D Oct 26 16:24:01 which has now generated with errors in it Oct 26 16:24:08 android dev site ISNT WORKING Oct 26 16:24:10 SOMEONE DO SOMETHING Oct 26 16:24:23 Clearly they're updating it with a new API release >_> Oct 26 16:24:30 Hi all Oct 26 16:24:51 http://www.space.com/14076-china-unveils-space-mission-plans-2016.html Oct 26 16:26:02 Oh, all of App Engine is down, presumably d.android is running on that Oct 26 16:26:05 aaah d.android you killing me!! :( Oct 26 16:27:08 I've defined a custom Drawable in code (ie, as a subclass of graphics.Drawable) How can I use that drawable from xml? (say, as the drawable for an ImageButton) Oct 26 16:27:31 guys, this is underlined public static final int Advanced =0x7f05000f; Oct 26 16:27:33 public static final int Advanced>>=0x7f050010; Oct 26 16:28:03 … Oct 26 16:28:45 convivial: sorry -- was that meant for me? Oct 26 16:28:57 yes Oct 26 16:29:51 All I do is android, iOS, phone7 and a .NET wanna be Oct 26 16:30:15 convivial: I still don't understand, I'm afraid. So in (let's say) a selector drawable defined in xml, I have something like ... ... Oct 26 16:30:44 how does your technique work, to have attribute android:drawable="@drawable/foo" refer to my code? Oct 26 16:31:16 I miss understood your question… reiterate it please Oct 26 16:31:39 I have some java code, that's a subclass of Drawable. Oct 26 16:32:00 I'd like to refer to that Drawable from various places in xml, say, as in th eexample above Oct 26 16:32:27 you can reference a class from a selector Oct 26 16:32:47 @drawable is an asset not a class Oct 26 16:33:06 great -- what's the syntax? to be precise, what do I need to do, instead of android:drawable="@drawable/foo" Oct 26 16:33:29 that IS what you do Oct 26 16:33:59 could you help with a concrete example? How do I refer to mypackage.MyClass in this case? Oct 26 16:34:03 @drawable/YOUR_IMAGE_RESOURCE" Oct 26 16:34:34 you can not refer to a class in a selector Oct 26 16:34:42 you are totally confused Oct 26 16:34:47 I am :-) Oct 26 16:34:59 You can't use your own drawable subclasses in xml Oct 26 16:35:05 SimonVT: ah Oct 26 16:35:10 so, that answer makes sense to me Oct 26 16:35:23 at least, in terms of yes or no Oct 26 16:36:02 BTW, why not? is there a reason for this? Oct 26 16:36:50 I think it's for security reasons Oct 26 16:37:02 Your resources aren't necessarily used in your app Oct 26 16:37:14 Running custom code in 3rd party applications could cause an issue Oct 26 16:37:34 ah, I see -- so for things like the app icon and so forth. Oct 26 16:38:00 App icons, notifications, widgets Oct 26 16:38:47 is there a faster emulator that i can use with eclipse rather than the default one? Oct 26 16:38:53 SimonVT: gotcha. thanks for the tips Oct 26 16:38:57 i've heard things about bluestacks, not really sure where to get started with that Oct 26 16:39:28 Escherial: ive noticed that the older versions (2.2) run much much faster Oct 26 16:39:43 and it saves you the step of having to test on the oldest sdk you claim to support Oct 26 16:40:18 clever: that's true; i'm running 2.2 at the moment and it's actually not too shabby Oct 26 16:40:28 Does anyone know why ?android:attr/listPreferredItemHeight sometimes returns 0 when wrapped in a @dimen? Oct 26 16:40:36 my physical device is running jellybean, so you're right, it's good to have a wide berth of test setups Oct 26 16:41:01 Escherial: i think the normal procedure is to test under various versions you lack, using the emulator Oct 26 16:41:16 but if you write everything on 2.2, it saves you from having to test under it Oct 26 16:41:31 and with most things being backwards compatible, it should work the same on everything up Oct 26 16:44:34 makes sense :) Oct 26 16:44:56 i'm having some trouble figuring out what intents i'm supposed to be handling in my BroadcastReceiver for detecting incoming and outgoing calls Oct 26 16:45:21 i'm starting to think i'm handling too many (i.e. NEW_OUTGOING_CALL as well as PHONE_STATE) and i'm not sure what info is available in each and where it is Oct 26 16:45:54 i need to know the durations of the calls, too; is it ok to persist state across invocations of my receiver as static members? Oct 26 16:47:21 that will depend on android not pruning un-needed processes (you) Oct 26 16:47:46 best bet is a sharedpreference object Oct 26 16:47:51 bbl Oct 26 16:49:45 guys, please when iam debugging on real phone, on android 2.33 app crashes but it wont crash on real phone with andoid 4.1 or so , i cant send you LogCat, will oyu tell me whats wrong ? Oct 26 16:50:09 you can probably just look at the stacktrace and see what's wrong? Oct 26 16:50:18 are you using API calls that don't exist on 2.3.3? Oct 26 16:52:47 lov well yes, but i havent changed anything, it worked on 2.33 and now it isnt and there are soooo many things in the project iam lost,, and eventually i cant always find out whats in LogCat Oct 26 16:57:35 when you hide or destroy a search bar, what is the method that gets called? Oct 26 16:58:00 hmm, is a sharedpreferences object the best place to store, say, the timestamp of when the most recent call was started? Oct 26 16:58:12 i figured sharedpreferences was for actual preferences, not just for random bits of data that i want to persist Oct 26 16:58:54 er, and for any of you that use eclipse, having logcat as a floating window/slideout window isn't cutting it for me :| is there any way i can make it its own full-fledged window with a minimize button, etc.? Oct 26 16:59:08 also some way to pause its output so i can read it would be nice Oct 26 16:59:58 eclipse has a pause Oct 26 17:00:28 ah, you're right :) it was right there, 'scroll lock', der Oct 26 17:01:26 man, it sure would be nice if android had a shape-drawable in xml that basically just exposed the methods in canvas Oct 26 17:03:15 Is the android development site down? I haven't been able to connect to it for almost a hour Oct 26 17:03:26 yup Oct 26 17:04:02 why is it down? Oct 26 17:04:09 any one know what the method for search bar destroy / hide ? Oct 26 17:04:16 most of the time they make you believe it's for maintenance Oct 26 17:04:25 but no reason were given this time Oct 26 17:04:37 i hope it's not a big security flaw. Oct 26 17:04:37 tech1, apple's apology page visits have killed the internet Oct 26 17:04:44 hardware malfunction maybe Oct 26 17:04:53 or apple attacking them lol Oct 26 17:05:00 "no reason" (c) rubber :D Oct 26 17:05:25 really, ipad mini is disappointment Oct 26 17:05:26 tech1, I think Google is smart enough to divert properly DDOS attacks so it cannot be that :) Oct 26 17:05:50 http://internettrafficreport.com/namerica.htm Oct 26 17:05:51 really? i thought ddos was very hard to defend against Oct 26 17:06:09 half the network in NA is down Oct 26 17:06:13 tech1, it's very hard if you don't have an infrastructure like Google Oct 26 17:06:25 i see Oct 26 17:07:09 they released pictures of google's location recently Oct 26 17:07:19 with stormtrooper lol Oct 26 17:07:48 lol Oct 26 17:12:35 guys, please will you help me ? how can i get Google Places API ? i mean i was at code.google.com/apis/console e.t.c. and i checked Google Places API, now i can see traffic reports for API projects, abut is this way to get it into my project ? i mean how to download any libraries or whatever ? Oct 26 17:14:13 has anyone seen the issue in ABS where a selected tab on the Tab Bar has the blue selected asset showing on the bottom of the tab but also right under the tab text as well? (This is on an the original HTC incredible) Oct 26 17:17:08 anyone aware of developer.android.com being down/slow, when attempting to download the SDK? Oct 26 17:17:21 ya it si Oct 26 17:17:23 I just asked Oct 26 17:18:05 I don't suppose anyone is aware of a @android.com email to contact someone about it? Oct 26 17:18:26 i'm sure they're aware Oct 26 17:18:48 dmed: I'm pretty sure that they're aware. Oct 26 17:19:06 I wonder - it only seems like the developer.android.com section is slow, the other parts are fairly zippy Oct 26 17:19:23 google app engine is down as well Oct 26 17:19:28 along w/ a litany of other sites Oct 26 17:19:53 I heard app engine was having problems as well Oct 26 17:24:42 Hey umm -- is developer.android.com offline for you guys? Oct 26 17:24:57 yes... Oct 26 17:25:13 I could live with not accessing documentation -- but I cant even load the Eclipse build environment... Oct 26 17:25:33 It must be trying to phone home or something, it says "Waiting for Google APIs...." Oct 26 17:25:47 funny enough, I had the android SDK launcher app on another machines - I managed to download it, and it' currently downloading files Oct 26 17:25:56 * kbs pets his emacs Oct 26 17:26:01 Totally unacceptable on Google's part. It's one thing for the site to be down, it's another for their stupid plugin to *require* phoning home Oct 26 17:26:40 Cpudan80: the plugin doesn't phone home, afaik Oct 26 17:26:56 I'm pretty sure that the plugin doesn't phone home. Oct 26 17:27:02 p_l: it does, none of my android devs can open Eclipse Oct 26 17:27:05 We're dead in the water Oct 26 17:27:15 Im gonna have to send them home, can't do any work Oct 26 17:27:32 We're not all in the same location, so it's not "our network" Oct 26 17:27:47 Cpudan80: have them close eclipse, unplug from the network and disconnect from wifi, start eclipse, then plug back in. Oct 26 17:28:02 one of our devs had trouble running eclipse because of a recent java update pushed out by the mac os updater Oct 26 17:28:05 I know that development can be done without a valid internet connection. Oct 26 17:28:12 hrm.. Oct 26 17:28:12 the fix was to create a new workspace Oct 26 17:28:19 We've already done that Oct 26 17:28:39 well, I just opened eclipse to my sample project. Oct 26 17:28:42 also you can try starting eclipse with -clean Oct 26 17:28:46 Furthermore, it's not like *everyone's* eclipse would bork at the same time Oct 26 17:28:49 any ABS wizards present? Oct 26 17:28:54 guys, can you help me out ? while inserting to database table error like this occured: "no such column exists..." what´s wrong ? Oct 26 17:29:04 Cpudan80: I don't know what to tell you. Works fine for me. Oct 26 17:29:04 lov: Could be the API we're using, we're using the Google one instead of the base SDK Oct 26 17:29:21 We needed access to google maps, so we didnt have a choice in the matter Oct 26 17:29:27 * lov points go Google APIs 16 Oct 26 17:29:37 hrm.. Oct 26 17:29:37 seems to work just fine for me. Oct 26 17:29:40 We're at 8 Oct 26 17:29:48 ok well I don't think it matters. Oct 26 17:29:52 heres something you can do to investigate. Oct 26 17:29:54 shouldn't yeah Oct 26 17:29:55 Go download wireshark Oct 26 17:29:58 start listening Oct 26 17:30:00 then turn on eclipse Oct 26 17:30:02 see who requests what Oct 26 17:30:11 I'm gonna try to have them point developer.android.com --> localhost Oct 26 17:30:13 see if that works Oct 26 17:30:20 or some site that will resolve Oct 26 17:30:36 ok whatever Oct 26 17:30:45 please consider the case that the error is NOT that developer.android.com is down. Oct 26 17:31:17 lov: that *must* be the error, there's no way a whole bunch of dev's machine's broke at the same moment Oct 26 17:31:53 "502. That’s an error." Oct 26 17:31:54 perhaps, and I'm just reaching here, it's some other plugin that you're all using? Oct 26 17:32:01 seriously though use wireshark and see who's requesting what. Oct 26 17:32:04 on http://developer.android.com/ Oct 26 17:32:57 I like the ... "Error 502 (Server Error)!!1" Oct 26 17:33:01 <Cpudan80> lov: well, maybe Oct 26 17:33:25 <lov> eleventy one Oct 26 17:34:00 <SimonVT> Shh lov, maybe he just wants an early weekend and is trying to make it look legit to his boss Oct 26 17:34:16 <Cpudan80> SimonVT: :-) Oct 26 17:34:28 <lov> good point Oct 26 17:34:37 <Cpudan80> lov: Well, maybe, although I highly doubt every developer has the same plugins... we dont have a standard image that we force Oct 26 17:35:28 <dmed> would you be doing something like an ADT version check? Oct 26 17:35:34 <lov> well all I can tell you is that this works for me and apparently everyone else. Oct 26 17:36:02 <DOSP> guys, can you help me out ? while inserting to database table error like this occured: "no such column exists..." what´s wrong ? Oct 26 17:36:15 <lov> hey dosp Oct 26 17:36:20 <lov> I want you to look at what you asked Oct 26 17:36:21 <lov> and think Oct 26 17:36:26 <lov> "hmm, what could this error message mean?" Oct 26 17:36:32 <lov> "what could it POSSIBLY MEAN?" Oct 26 17:37:17 <doogan> sounds like a case for Oct 26 17:37:26 <doogan> ..ActionBarSherlock Oct 26 17:37:27 <Cpudan80> lov: Changing /etc/hosts to point to cnn.com (instead of developer.android...) made it work Oct 26 17:37:39 <Cpudan80> Sadly that means no 3 day weekend for us.. Oct 26 17:39:32 <roler> i have the Application subclassed in my Android app as a way to house global variables used by all activities. In this Application class, how can I start an intent bring all activities back to the main activity? The app keeps crashing and I don't know why. Oct 26 17:40:04 <roler> woohoo, I just got it Oct 26 17:40:10 <roler> addCategory(Intent.CATEGORY_LAUNCHER); Oct 26 17:40:11 <lov> uh Oct 26 17:40:33 <docmur> When you hide a custom search bar does anyone know the method called? Oct 26 17:40:34 <lov> if you need "global variables" consider just having a class that can accumulate static variables. Oct 26 17:40:45 <ctate> well, people do use custom Application subclasses for that Oct 26 17:40:53 <lov> why ._. Oct 26 17:41:01 <lov> I mean we do it but we're a collection of worst practices Oct 26 17:41:05 <ctate> you don't need to, though, and personally i recommend against it unless you know up front that it's the way you should do it Oct 26 17:41:36 <roler> lov, it's also methods used, and a background thread listener to handle the whole app. Previously this code was in an activity, which was bad practice because activities may not be around at all times Oct 26 17:41:36 <DOSP> lov iam trying to find answer for my friend not for me, so dont think iam dumb, but i think he isnt dumb either so he would not call collumn that is not there, iam trying to get from him more specific question Oct 26 17:41:50 <ctate> but the way the question is asked suggests that you haven't quite wrapped your head around the Android app model Oct 26 17:42:37 <tophyr> ah, global statics vs Application subclasses Oct 26 17:42:52 <ctate> the core lifecycle for android software revolves around Activity, not around the Application Oct 26 17:43:05 <ctate> you should assume up front that you don't need to worry about Application *ever* Oct 26 17:43:44 <lov> DOSP: your "friend" should fix his database, because he's trying to insert into a column that DOESN'T EXIST. Oct 26 17:44:21 <dantheman> hey anyone know why http://www.downforeveryoneorjustme.com/http://developer.android.com Oct 26 17:44:29 <dantheman> the documentation is down? Oct 26 17:44:47 <ctate> dantheman: backend issues; patience is a virtue. Oct 26 17:44:53 <DOSP> lov dont think iiam hiding myself under "my friend " cloak , really i dont have an idea about databases in android, hes in charge. Oct 26 17:45:15 <dantheman> ctate: yeah most of my google friends that work net ops are in do-not-disturb mode Oct 26 17:45:19 <doogan> doc, so my friend is having this problem... Oct 26 17:45:49 <ctate> your friend should come by in person, or ask on stackoverflow or something, seriously Oct 26 17:45:50 <SimonVT> Protip: The docs are in the sdk as well Oct 26 17:45:59 <ctate> debugging other peoples' code is hard enough without having to go through an intermediary :) Oct 26 17:46:38 <ctate> and yeah dantheman the docs are offline in the SDK as well Oct 26 17:46:42 <Escherial> how can i simulate accepting an outgoing call in the emulator? Oct 26 17:46:46 <dantheman> ctate: yeah I know Oct 26 17:46:51 <ctate> [ofc you probably can't *isntall* the sdk right now, but ...] Oct 26 17:47:09 <Cpudan80> dantheman: It's worse than the documentation being offline, several people are reporting that they cant load their dev env Oct 26 17:47:27 <ctate> Escherial: accept an *outgoing* call? Oct 26 17:47:28 <dantheman> Cpudan80: huh? really my env is ok Oct 26 17:47:34 <jayd16> has anyone run into odd OutOfMemoryErrors on Droid Razrs? It works fine on every other phone, and it crashed when the heap has plenty of space: "GC_BEFORE_OOM freed 11K, 35% free 27891K/42595K, paused 56ms Out of memory on a 797384-byte allocation." Oct 26 17:47:35 <ctate> do you mean place an outgoing call, or accept an incoming one? :) Oct 26 17:47:48 <dantheman> ctate: yeah I was trying to link DOSP to the sqLite stuff Oct 26 17:47:53 <Cpudan80> ctate: No, you can update the SDK just fine - you just cant open the page to figure out how to download a new setup Oct 26 17:48:09 <Cpudan80> dantheman: None of my devs can open their Eclipse build environments Oct 26 17:48:31 <dantheman> Cpudan80: really? are you guys pull the SDK dynamically or something? Oct 26 17:48:32 <ctate> wait what? is it trying to do an auto-update or something? Oct 26 17:48:33 <Escherial> ctate: er, i mean, have an outgoing call be accepted by someone else Oct 26 17:48:44 <dantheman> pulling* Oct 26 17:48:58 <ctate> Escherial: oh, ah. interesting. Oct 26 17:49:02 <tophyr> my dev env is fine Oct 26 17:49:05 <dantheman> Juno is good for me but I haven't rebooted it in like ~14 days Oct 26 17:49:06 <lov> Cpudan80: these "several" people appear to be only you and your dev team. Oct 26 17:49:07 <Cpudan80> dantheman: no... but we are sending usage stats to google -- I wonder if we turn that off... Oct 26 17:49:16 <dantheman> yeah turn that off Oct 26 17:49:45 <Cpudan80> and it works fine Oct 26 17:49:47 <Cpudan80> OK that's *bad* Oct 26 17:49:50 <tophyr> Escherial: never tinkered around with it but i'd imagine that an emulator's outgoing call is really just an emulated call. can't accept a call that doesn't actually exist Oct 26 17:50:05 <ctate> run two emulators and have one call the other? Oct 26 17:50:06 <Cpudan80> That thing should be fail safe.... unacceptable Oct 26 17:50:19 <Escherial> ctate: that's a good idea; i wonder if it's possible, though...i have no idea what number my emulator has Oct 26 17:50:25 <Escherial> no matter; i'll just use my real phone to test it out Oct 26 17:50:29 <lov> Cpudan80: I have usage stats turned on. No problem for me. Oct 26 17:50:29 <ctate> or that :) Oct 26 17:50:33 <SimonVT> The number is the port Oct 26 17:50:50 <Cpudan80> lov: The devs report that it is stuck on "Android Library Update" "Google APIs: Widgets and Layouts" Oct 26 17:51:01 <Cpudan80> so ... make of that what you will Oct 26 17:51:12 <Escherial> ah, so if i run two emulator instances on the same machine, they can call each other by dialing up, say, 5554 in this case? Oct 26 17:51:13 * lov shrugs Oct 26 17:51:23 <SimonVT> yep Oct 26 17:51:32 <Escherial> interesting :D here goes, then Oct 26 17:52:38 <Cpudan80> lov: Our dev envs aren't setup in some weird way either... they're pretty much off the shelf Oct 26 17:53:32 * lov shrugs Oct 26 17:53:38 <lov> when xavd returns from the dead, give him a ping. Oct 26 17:53:41 <lov> actually Oct 26 17:53:44 <lov> email the adt list or something Oct 26 17:54:30 <ctate> yeah Oct 26 17:54:33 <ctate> ==lov Oct 26 17:54:36 <ctate> contact the list Oct 26 17:54:55 <ctate> hm oh yeah Oct 26 17:55:02 <ctate> :D Oct 26 17:55:48 <TheFred> did you get the package? Oct 26 17:56:42 <Cpudan80> OK now anyway --- does anyone know why an empty android app, with nothing in it except HelloWorld -- uses 6.393 MBs or RAM Oct 26 17:56:55 <Cpudan80> 3.521 MBs of that are chewed up by Bitmaps... Oct 26 17:57:11 <Cpudan80> Seems awfully high for an app with literally nothing in it Oct 26 17:58:35 <dantheman> 6.393 MB of ram isn't a lot of ram Oct 26 17:59:29 <freeone3000> Cpudan80: What's the size of the APK? Oct 26 17:59:47 <ixc> 640kb should be enough Oct 26 17:59:57 <Cpudan80> When you only get 16 MBs, a baseline chewing up 1/3 of that is a lot... Oct 26 17:59:57 <freeone3000> Cpudan80: If it's 6.393 MB, you have a pretty clear answer. Oct 26 17:59:58 <ixc> s/kb/KB/ Oct 26 18:00:10 <Cpudan80> freeone3000: the apk ummm dunno let's see Oct 26 18:00:25 <dantheman> Cpudan80: you get more than 16 mb Oct 26 18:00:39 <Cpudan80> freeone3000: it says 488 KB Oct 26 18:00:39 <dantheman> the Galaxy Nexus allocates like 64 mb Oct 26 18:00:52 <Cpudan80> dantheman: not all phones give you 64 MB Oct 26 18:00:59 <dantheman> correct Oct 26 18:01:03 <adq> not all roms too Oct 26 18:01:08 <dantheman> some give you 16, 24, 32, 48, or 64 Oct 26 18:01:15 <Cpudan80> We're just trying to minimize our app's initial footprint Oct 26 18:01:19 <SimonVT> 16 was the norm in like 1.6, wasn't it Oct 26 18:01:22 <dantheman> yeah Oct 26 18:01:32 <dantheman> its now like 48-64 Oct 26 18:01:37 <Cpudan80> seems odd that you're losing 6MBs for a single view with "Hello World" in it Oct 26 18:01:40 <dantheman> one of the google guys can answer that Oct 26 18:01:56 <ctate> Cpudan80: most of that memory is actually must mmapped shared with all other android apps Oct 26 18:01:56 <dantheman> Cpudan80: yeah but how big are you images Oct 26 18:02:05 <SimonVT> I doubt you're losing 6mb for every single view Oct 26 18:02:06 <dantheman> and like its the baseline Oct 26 18:02:07 <adq> RAM managment is sometimes obscur, but it's not because it's allocated that it's being in use Oct 26 18:02:07 <Cpudan80> There are no images! Oct 26 18:02:16 <ctate> yes there are! surprise Oct 26 18:02:20 <adq> DDMS should allow you to see more clearly Oct 26 18:02:24 <ctate> the zygote parent process preloads a ton of drawables etc Oct 26 18:02:29 <ctate> shared Oct 26 18:02:32 <Cpudan80> ctate: well OK, there are none that I added Oct 26 18:02:47 <dantheman> and like there is the string pool Oct 26 18:02:51 <dantheman> and buff pool Oct 26 18:02:55 <ctate> so they show up in the accounting, but the pages are shared across all android processes so they're not actually additional memory load due to your app Oct 26 18:03:05 <ctate> how are you measuring memory usage? Oct 26 18:03:12 <Cpudan80> with the Eclipse MAT Oct 26 18:03:15 <dantheman> like it allocates all of these resources that aren't being use but they are there Oct 26 18:03:17 <Cpudan80> using the heap dump option in DDMS Oct 26 18:03:26 <ctate> yeeeeeah, okay; those don't know about OS-level sharing Oct 26 18:03:36 <ctate> you should also look at "dumpsys meminfo" for your app Oct 26 18:03:41 <ctate> and/or at procrank Oct 26 18:03:53 <Cpudan80> is that a command I can run from the sdk or? Oct 26 18:04:05 <ctate> adb shell dumpsys meminfo [packagename] Oct 26 18:04:08 <ctate> adb shell procrank Oct 26 18:04:19 <ctate> it's possible procrank isn't available on retail builds Oct 26 18:05:10 <adq> procrank looks like a custom/specific `top' command :p Oct 26 18:05:21 <Cpudan80> ctate: yeah.. no dice Oct 26 18:05:29 <Cpudan80> Unfortunately I dont have a way to root this device Oct 26 18:05:41 <ctate> you should still be able to use adb shell dumpsys meminfo Oct 26 18:05:43 <ctate> no? Oct 26 18:09:50 <dantheman> ctate: I can do that on my GNexus Oct 26 18:09:54 <dantheman> non-rooted Oct 26 18:10:08 <ctate> you should be able to do that on any Android device, period Oct 26 18:10:20 <Cpudan80> ctate: so that says size -- 10939 total Oct 26 18:10:24 <ctate> but i believe the 'procrank' binary is not included in user builds Oct 26 18:10:33 <papna> The NDK documentation says "Typical good candidates for the NDK are self-contained, CPU-intensive operations that don't allocate much memory" Is there some reason why somewhat memory-intensive stuff cannot or should not use NDK? Oct 26 18:10:36 <Escherial> i wonder if the android developer site is down just for me Oct 26 18:10:39 <Cpudan80> so I assume that 10K Oct 26 18:10:42 <ctate> "total" meaning what, PSS? and what's the shared / nonshared breakdown? Oct 26 18:10:43 <Escherial> always seems to be unavailable right when i need it Oct 26 18:10:45 <Cpudan80> Escherial: no Oct 26 18:10:46 <ctate> and what device? Oct 26 18:10:55 <Cpudan80> Escherial: it's down miserably Oct 26 18:11:00 <Cpudan80> ctate: umm HTC Flyer Oct 26 18:11:05 <p_l> papna: no. It's just a bit of scare to stop people from using NDK without a clue Oct 26 18:11:12 <ctate> papna: "Typical good candidates for the NDK" are game. Oct 26 18:11:15 <papna> p_l: Thanks. Oct 26 18:11:18 <ctate> and... well, games. and that's about it. Oct 26 18:11:27 <freeone3000> And game-like things! Oct 26 18:11:28 <p_l> ctate: quite a bit more Oct 26 18:11:33 <ctate> i disagree! Oct 26 18:11:50 <papna> You could call my thing a game, but the part that I need sped up probably isn't the part of the game you're thinking of. Oct 26 18:11:56 <p_l> ctate: when instead of writing the program *three* times, you can just include the same source... Oct 26 18:12:03 <ctate> if you're porting a large existing codebase in C/C++ then it's tempting i suppose Oct 26 18:12:03 <adq> DSP might need NDK despite AudioTrack is already at the lowest possible level of the SDK ^^ Oct 26 18:12:04 <ctate> but sigh. Oct 26 18:12:06 <papna> (I also want some shared implementation.) Oct 26 18:12:11 <freeone3000> Physics simulations. Signals processing. Video decoding. Oct 26 18:12:16 <adq> yup! Oct 26 18:12:29 <ctate> people really need to get their heads around the idea that the future holds at least three utterly different cpu architectures that Android software will be deployed on. Oct 26 18:12:41 <ctate> the NDK is not a good solution. Oct 26 18:13:03 <adq> agreed also, it's too painful with so many arch Oct 26 18:13:05 <papna> It's the available solution. Oct 26 18:13:12 <p_l> ctate: neither is having 3~4 copies of the same, even if not big, thing, all written in different ways Oct 26 18:13:24 <ctate> or one copy, written in java Oct 26 18:13:25 <p_l> especially when said things deals with crypto and protecting data Oct 26 18:13:26 <ctate> :) Oct 26 18:13:39 <papna> It could save me from having a client-server architecture which has cruddy performance and high bandwidth. Oct 26 18:13:40 <p_l> ctate: java wasn't acceptable choice on two major platforms Oct 26 18:13:49 <hwrd|work> Can you use <include> tags in menu layouts? Oct 26 18:14:29 <ctate> i think it's just not a good stance to think of the NDK as anything other than "the game porting kit" Oct 26 18:14:35 <adq> hwrd|work, based on completion from my IDE i don't think so Oct 26 18:14:44 <ctate> if you want to kitbash it for other purposes that's doable, but IMO you shouldn't expect more out of it. Oct 26 18:14:55 <p_l> ctate: I think it's good idea to scare people away from it, so they don't stupidly charge into it Oct 26 18:15:14 <ixc> it is the best reason Oct 26 18:15:17 <freeone3000> ctate: The NDK is a great solution. Having native code that compiles for multiple architectures isn't a new problem. Oct 26 18:15:26 <p_l> but it's much more than game porting kit. Among things I had seen use it succesfully was, for example, Office package Oct 26 18:15:29 <ctate> it isn't but it is not a solved problem. Oct 26 18:15:37 <hwrd|work> adq: sadface… thanks Oct 26 18:15:46 <ctate> and pretending it *is*, is just setting yourself up Oct 26 18:15:51 <p_l> my project used NDK for most of the logic, with UI in Java Oct 26 18:15:52 <dantheman> ctate: I use the NDK all the time Oct 26 18:16:06 <p_l> (and yes, I could compile for all three platforms) Oct 26 18:16:11 <dantheman> of course I was compiling for MIPS before it hit the main branch Oct 26 18:16:14 <bubbleguuum> there's no official NDK for x86 Google TV. Now is Google TV relevant is another problem... Oct 26 18:16:29 <freeone3000> There's one for x86 phones, and x86 is x86. Oct 26 18:16:30 <ctate> (i'm curious and don't actually know -- can you write WP8 apps in anything other than C#?) Oct 26 18:16:36 <p_l> ctate: yes Oct 26 18:16:37 <adq> I admit/confess I'm one of these guys afraid of using the NDK despite I know better C and C++ than Java.. crazy paradox but true one! Oct 26 18:16:44 <dantheman> ctate: possibly Oct 26 18:16:55 <p_l> ctate: if it uses normal WinRT, then you can use any language that will make a binary Oct 26 18:16:56 <freeone3000> ctate: Yes. You could do VB.NET, or C++/CLI, or even F#. Oct 26 18:16:58 <dantheman> I haven't really read much about the thingy Oct 26 18:17:36 <p_l> WinRT is defined in terms of COM interfaces, which are accessible from any native code Oct 26 18:17:53 <preference> Does anyone know where I can get support for the ZBar Android port? Oct 26 18:18:00 <p_l> WP7 required either .NET (with certain library limits) and I think later allowed C++ Oct 26 18:18:11 <freeone3000> ctate: And you can use P/Invoke, so that's just the top level requirements. Inner code can be whatever runs. Plus PE executables can contain multiple architectures in the same file. Oct 26 18:18:12 <dantheman> ctate: the newer NDK stuff now supports what MIPS/ARMv6/ARMv7/ARMv7+Neon Oct 26 18:18:16 <bubbleguuum> How come reading the metro-style apps docs feels better than reading the Android docs... Oct 26 18:18:34 <ctate> dantheman: in a single apk? :) Oct 26 18:18:35 <adq> preference, http://zbar.sourceforge.net/support.html ? Oct 26 18:18:38 <ctate> but yeah Oct 26 18:18:39 <dantheman> ctate: yup Oct 26 18:18:41 <ctate> fat binaries suck though Oct 26 18:18:53 <p_l> ctate: single APK since day one of NDK, afaik ;) Oct 26 18:19:09 <dantheman> ctate: you should look at what we are going with the openFrameworks for Android Oct 26 18:19:14 <ctate> "openframeworks"? Oct 26 18:19:23 <dantheman> openframeworks.cc Oct 26 18:19:29 <p_l> and to be specific, NDK officially supports ARMv5TE, ARMv7-A, MIPS and x86 Oct 26 18:19:40 <preference> Oh derp, thanks adq Oct 26 18:20:01 <ctate> aha Oct 26 18:20:03 <dantheman> ctate: it is a way to write GLUT apps Oct 26 18:20:08 <bubbleguuum> x86 not supported on Google TV Oct 26 18:20:20 <dantheman> bubbleguuum: that is correct but no one really owns a Google TV Oct 26 18:20:34 <dantheman> and if they own it they don't really use it Oct 26 18:20:50 <bubbleguuum> dantheman: true except the 3 clown GTV users that will complain if your app do not work on GTV Oct 26 18:20:52 <dantheman> mine is currently my foot rest as it is still in the box Oct 26 18:20:52 <p_l> yeah, I recently looked into it, but even if I had the money it would be bust Oct 26 18:20:58 <dantheman> bubbleguuum: so what Oct 26 18:21:24 <p_l> "no flash support" = "can't watch most of the content currently watched in my house" Oct 26 18:22:24 <p_l> it was the thing that stopped my originally enthusiastic looking into grabbing GoogleTV Oct 26 18:22:31 <bubbleguuum> GTV is a clown product. Looks like it will die and it should never have been released Oct 26 18:23:26 <p_l> I hope it gets better, but right now... one thing that would make it much, much more interesting would be more open access to GTV-specific code and flash support. Then some integration with Android devices. Oct 26 18:23:44 <bubbleguuum> I feel pain for the guy who wrote the GTV guidelines as nearly no developer is going to care Oct 26 18:23:52 <birbeck> dantheman: i have 3 google tv's Oct 26 18:24:00 <birbeck> dantheman: i use them often Oct 26 18:24:18 <bubbleguuum> it's stuck at Android 3.1 or 3.2 for newer models Oct 26 18:24:30 <p_l> birbeck: how is it? And is there a way to get flash running on it? Oct 26 18:24:38 <birbeck> 3.2, but the galaxy tab i got from i/o is stuck on 3.1 Oct 26 18:24:52 <birbeck> p_l, it has flash oob Oct 26 18:25:09 <birbeck> i believe... plays web videos fine Oct 26 18:25:26 <dantheman> they need to get it off the Atom Oct 26 18:25:29 <dantheman> and make it work on the MIPS Oct 26 18:25:32 <birbeck> watched walking dead on the amc website wednesday Oct 26 18:25:43 <bubbleguuum> The thing is that Android running on GTV looks like a fork of Honeycomb... Oct 26 18:25:52 <birbeck> dantheman: it is slow as shit, needs some project butter love Oct 26 18:25:57 <p_l> birbeck: hmm... now, if GTV wasn't so horribly overpriced and basically not available... Oct 26 18:26:04 <birbeck> thats because it is honeycomb Oct 26 18:26:07 <dantheman> birbeck needs better hardware Oct 26 18:26:24 <birbeck> dantheman: well its intel, thats the first problem Oct 26 18:26:47 <birbeck> i just with the apis were better for it Oct 26 18:27:12 <birbeck> i wrote a gtv launcher app a lot like xbmc Oct 26 18:28:18 <dantheman> my main issue with Android and Media Playback is if I want trick modes (i.e. fast forward / scan forward/ set playback speed etc) I have to implement FFmpeg Oct 26 18:28:34 <dantheman> because Google won't support it Oct 26 18:28:57 <p_l> is there any way to get GTV on a box that didn't came with it? Oct 26 18:29:10 <birbeck> you mean fast forward where it plays the audio super fast while you seek? Oct 26 18:29:18 <birbeck> audio/video Oct 26 18:29:59 <birbeck> p_l, i dont know of any gtv roms. i bet you could hack it onto a eeebox or something though Oct 26 18:30:15 <p_l> eh Oct 26 18:30:27 <p_l> I'll go with normal linux Oct 26 18:30:44 <dantheman> birbeck: yes actual fast forward where you set the playback speed to 23X 4X 8X and it shows the iFrames and keyFrames or actually plays the content back at that speed Oct 26 18:31:07 <birbeck> dantheman: i actually prefer skipping to fast forwarding Oct 26 18:31:27 <dantheman> ok well not everyone does Oct 26 18:31:31 <birbeck> fast forward is so 80's (cassette tape) Oct 26 18:31:44 <freeone3000> Fast forward isn't implemented like that on any digital optical media... Oct 26 18:31:46 <dantheman> yeah well when you are dealing with a Set Top Box Oct 26 18:31:54 <dantheman> freeone3000: yes it is Oct 26 18:31:56 <freeone3000> DVD "fast-forward" actually just skips to the next keyframe with a fixed delay. Oct 26 18:32:07 <ctate> depends on the DVD Oct 26 18:32:10 <dantheman> freeone3000: depends on who makes the box Oct 26 18:32:11 <birbeck> without audio Oct 26 18:32:20 <ctate> most do that, sure, which is why most of them suck Oct 26 18:32:29 <dantheman> freeone3000: all SigmaDesign DVD players actually playback at a faster rate Oct 26 18:32:35 <pragma-> depends for men Oct 26 18:32:49 <dantheman> thanks Pragma Oct 26 18:33:02 <dantheman> freeone3000: I used to work in the Set-Top-Box industry Oct 26 18:34:12 <birbeck> i think fast-forward is just an artifact of analog media Oct 26 18:34:34 <birbeck> i could understand speeding stuff up for remixing, there are apps and hardware for that though Oct 26 18:34:35 <dantheman> birbeck: sure cause you don't want to fast-forward and see where you end up Oct 26 18:34:49 <birbeck> dantheman: seeking allows that just fine Oct 26 18:34:50 <dantheman> and stop to watch from a point Oct 26 18:35:00 <dantheman> birbeck: yeah no Oct 26 18:35:01 <ctate> skip-based ff/rw drive me nuts Oct 26 18:35:14 <bubbleguuum> yes, it is idiotic Oct 26 18:35:16 <birbeck> ctate: like youtube? like netflix? Oct 26 18:35:21 <dantheman> birbeck: have you ever like used a TIVO Oct 26 18:35:27 <dantheman> or any other DVR Oct 26 18:35:29 <ctate> like my car CD player when it's doing mp3s Oct 26 18:35:30 <ctate> hold ff Oct 26 18:35:36 <birbeck> dantheman: i threw my wifes tivo out the door when we met Oct 26 18:35:44 <birbeck> dantheman: i set up a mythbox instead Oct 26 18:35:47 <ctate> it plays little snippets of straight audio, skipping between each snippet Oct 26 18:35:55 <dantheman> myth does the same thing Oct 26 18:35:55 <ctate> instead of doing the tape-like thing of playing fast Oct 26 18:35:58 <ctate> i want it to play fast Oct 26 18:35:59 <Wavesonics> thank god for coffee lids, i would have just trashed everything on my desk if not for this sturdy lid Oct 26 18:36:09 <dantheman> VLC does it Oct 26 18:36:20 <docmur> do I need to important a library to use content and Context? Im trying to implement setOnDismissListener but when I do SearchManager searches = (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); both context's are red saying they can't be resolved, my class implemenets SearchManager.OnDismissListener Oct 26 18:36:47 <ctate> what variable is "context"? Oct 26 18:36:47 <birbeck> oh well, too each their own. everyone is entitled to opinion. no one is right or wrong Oct 26 18:36:54 <birbeck> nothing worth arguing about Oct 26 18:36:57 <dantheman> you have to either pass it in or somehow get the context Oct 26 18:37:11 <ctate> if this code is in an Activity, the Activity object itself *is* the Context you use Oct 26 18:37:39 <docmur> so I use Activity. ? Oct 26 18:37:47 <dantheman> no Oct 26 18:37:51 <birbeck> 'this' Oct 26 18:37:58 <dantheman> ^^ Oct 26 18:40:58 <dantheman> docs are slowly coming back http://developer.android.com/index.html Oct 26 18:41:48 <birbeck> was it down this morning? i have d.android.com as my homepage and when i opened the browser it wasnt loading Oct 26 18:42:53 <birbeck> i hate guice errors in unit tests Oct 26 18:44:12 <ctate> yeah there've been issues Oct 26 18:45:00 <ctate> "Please to be restful. It is only a few crazies who have from the crazy place outbroken." Oct 26 18:45:12 <manizzle> hey guys. anyone have any 3d vector visualizer libraries? Oct 26 18:45:19 <birbeck> well im headed to cheese steak, so take your time ;-) Oct 26 18:45:53 <birbeck> i always take bets on how many wallet guys i will see there Oct 26 18:46:39 <manizzle> i want to graph the vectors i get from the accelerometer Oct 26 18:47:09 <ctate> mmmmmmmmmmcheesesteak Oct 26 18:48:24 <dantheman> manizzle: like what kinda graphs? Oct 26 18:48:39 <dantheman> I'm doing graphs for Fox now :( Oct 26 18:48:43 <dantheman> :'( Oct 26 18:48:50 <manizzle> like i want to graph the vectors of the sensor from the android, like the accelerometer, gyros Oct 26 18:48:56 <manizzle> so 3d vector graphing Oct 26 18:48:57 <roler> Is there an API to get an alert when the phone wakes up, or goes to sleep (when the app is in the background) ? Oct 26 18:49:03 <docmur> If I want to simulate a keypress I can do onKeyDown( 4, * ) but * needs to be the press event, 4 is the back button, what would I pass in for * Oct 26 18:49:05 <manizzle> anything better than this? Oct 26 18:49:06 <manizzle> http://www.objectclub.jp/download/vecmath_e Oct 26 18:49:18 <dantheman> manizzle: you should look at the API demos Oct 26 18:49:25 <dantheman> I think there is stuff that already does that Oct 26 18:50:16 <doogan> b Oct 26 18:50:24 <Escherial> aside from using SharedPreferences, what would you all recommend as a means of persisting state from one invocation of my BroadcastReceiver's onReceive() to the next? Oct 26 18:50:38 <Escherial> i have to track a phone call through the various states it fires Oct 26 18:51:06 <Escherial> made a huge table of PHONE_STATE and NEW_OUTGOING_CALL events, heh Oct 26 18:52:02 <dantheman> wait what? Oct 26 18:52:07 <dantheman> Escherial^ Oct 26 18:54:10 <Escherial> dantheman: basically, i have to log the duration of calls, whether or not they were answered, etc. Oct 26 18:54:18 <Escherial> whether they were outgoing or incoming, etc. Oct 26 18:54:36 <Escherial> these events take place over multiple intents, so i need some way to keep track of where i'm at in the process Oct 26 18:54:42 <Escherial> does that make sense? :\ Oct 26 18:55:29 <docmur> If I have a class that does a startActivity(newClass); then finish from the newClass, do I start off where I was in the first class? Oct 26 18:56:26 <Escherial> the activity that you were in becomes active again, yes, but it doesn't "pick uP Oct 26 18:56:29 <Wavesonics> hhmmm anyone here use NineOldAndroids? Oct 26 18:56:34 <manizzle> dantheman, api demos of what? Oct 26 18:56:36 <Escherial> *"pick up" from that point in the code or anything; it's already returned long before that Oct 26 18:56:56 <Escherial> startActivity() is asynchronous as far as i know Oct 26 18:57:16 <docmur> Okay so is there a method I can override to know when I come back Oct 26 18:57:18 <Wavesonics> i'm doing ObjectAnimator.ofFloat( view, "scaleX", 0.0f, 1.0f ), but on older versions of Android I get "property not found" and it doesn't animate Oct 26 18:59:53 <romainguy_> because get/setScaleX doesn't exist before Android 3.0 Oct 26 19:04:04 <dantheman> manizzle: the hardware sensor Oct 26 19:05:00 <dantheman> API Demos (OS - Sensors) Oct 26 19:05:09 <DeviantPeer> anyone else watching app clinic? I got a "An error occurred." in the youtube feed.. :/ Oct 26 19:05:27 <dantheman> DeviantPeer: yeah youtube is having problems today Oct 26 19:05:39 <manizzle> dantheman, found them, but now i need to figure out how to do four of those canvas on one page Oct 26 19:05:43 <DeviantPeer> oh well.. Oct 26 19:05:46 <manizzle> with 4 different sensors. yay Oct 26 19:05:47 <dantheman> http://downrightnow.com/ Oct 26 19:05:52 <docmur> how do I filter what onDismiss() will execute on, I don't want it to fire the action when a search is submitted Oct 26 19:05:52 <dantheman> manizzle: that is easy Oct 26 19:06:03 <dantheman> you just have to make your own view Oct 26 19:06:11 <manizzle> * <h3>Application that displays the values of the acceleration sensor graphically.</h3> Oct 26 19:06:40 <manizzle> this is the source im looking at atm, yeah i already have an existing view setup Oct 26 19:06:40 <RazielZ> Where was that nice guide to how to implement different stuff for different api versions? Oct 26 19:06:44 <RazielZ> on how to* Oct 26 19:06:49 <manizzle> with 4 different text views and labels Oct 26 19:07:13 <dantheman> RazielZ: that is really descriptive Oct 26 19:07:29 <dantheman> 'oh hey guys I wanna do some stuff with some things' Oct 26 19:07:32 <RazielZ> Well Oct 26 19:07:36 <RazielZ> Like searchView Oct 26 19:07:43 <RazielZ> I can't use searchView in api lower than, what, 11? Oct 26 19:07:47 <dantheman> correct Oct 26 19:07:52 <RazielZ> So for lower API I have to implement that search form thing Oct 26 19:07:59 <RazielZ> Or whatever it's called Oct 26 19:08:25 <manizzle> dantheman, i already have a custom layout i just need to setup the area for each one Oct 26 19:08:26 <manizzle> okay Oct 26 19:08:33 <manizzle> cool thanks for pointing me to the api demos though Oct 26 19:08:41 <dantheman> RazielZ: http://developer.android.com/tools/extras/support-library.html Oct 26 19:08:53 <RazielZ> Oh Oct 26 19:09:20 <RazielZ> So with that I can just use searchview in lower api as well? Oct 26 19:09:42 <dantheman> if it is supported Oct 26 19:10:09 <dantheman> which it isn't Oct 26 19:10:41 <Untopped> Hi I am trying to understand how HIP (Host identity protocol) works and how I would be able to make a message app with it. Oct 26 19:10:45 <RazielZ> Well >11 didn't have actionbar in the sense that newer versions have, and since searchview is meant to be used with actionbar I guess yeah. Oct 26 19:11:39 <dantheman> RazielZ: you're gonna have to go with a 3rd party Oct 26 19:11:46 <dantheman> or write it yourself Oct 26 19:12:05 <dantheman> there is an action bar support project Oct 26 19:12:15 <dantheman> but I'm not sure if search view is implemented Oct 26 19:12:52 <RazielZ> Can't I just use searchdialog for lower than api11? Oct 26 19:12:56 <Reaga> whats a URI Oct 26 19:13:04 <dantheman> you should try it Oct 26 19:14:27 <dantheman> Reaga: google is your friend Oct 26 19:15:33 <g00s> hello ctate Oct 26 19:15:59 <RazielZ> Apparently you can use both searchwidget and dialog, I just need a simple way to run some different code on different api version Oct 26 19:16:02 <RazielZ> Like, just a small part Oct 26 19:17:05 <dantheman> RazielZ: that is when you go if(API LEVEL > 11) do XYZ else do PDQ Oct 26 19:17:24 <RazielZ> Pretty much Oct 26 19:17:43 <RazielZ> Was just wondering if there's a pretty/standard way to code that condition Oct 26 19:20:28 <SimonVT> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) Oct 26 19:20:50 <dantheman> SimonVT: you can't use the Build.VERSION_CODES.HONEYCOMB reference I don't think Oct 26 19:21:00 <dantheman> you have to use the actual Int value Oct 26 19:21:09 <RazielZ> SimonVT, wasn't your blog the one that had a post showing stuff about version stuff stuff? Oct 26 19:21:10 <ctate> yes you can Oct 26 19:21:11 <RazielZ> My memory sucks. Oct 26 19:21:15 <dantheman> cause if you go Min SDK = 8 Target SDK = 15? Oct 26 19:21:19 <dantheman> it isn't there right? Oct 26 19:21:46 <ctate> Build.VERSION_CODES.HONEYCOMB and friends are public API Oct 26 19:21:58 <dantheman> cause if you run on an older device you get a null pointer Oct 26 19:22:16 <SimonVT> dantheman: You can Oct 26 19:22:21 <dantheman> hmmm Oct 26 19:22:23 <SimonVT> It's static final Oct 26 19:22:26 <SimonVT> It'll get inlined Oct 26 19:22:29 <SimonVT> RazielZ: Yep Oct 26 19:22:32 <dantheman> oh right Oct 26 19:22:42 <RazielZ> SimonVT, link me again so I can bookmarks it or something lol Oct 26 19:22:52 <dantheman> maybe I was referencing a different var Oct 26 19:22:55 <SimonVT> http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Oct 26 19:23:05 <dantheman> but I thought I ran into problems with that on like a 2.2 device Oct 26 19:23:17 <SimonVT> You didn't :p Oct 26 19:23:23 <dantheman> ok Oct 26 19:23:57 <RazielZ> Thanks <3 Oct 26 19:29:26 <g00s> dantheman: i thought i was the only one with a 2.2 device :P Oct 26 19:29:37 <g00s> i think even p_l has a new phone Oct 26 19:29:39 <dantheman> g00s: I keep one around to TEST with Oct 26 19:29:48 <dantheman> I'm running with my GNexus from IO Oct 26 19:29:55 <dantheman> getting the Note 2 next week Oct 26 19:30:05 <g00s> :) Oct 26 19:30:19 <dantheman> I have to say my favorite device ATM in the Kindle Fire HD Oct 26 19:30:24 <dantheman> is/in Oct 26 19:30:42 <lov> dantheman: how do you like immersion reading? Oct 26 19:30:49 <dantheman> I don't use that Oct 26 19:30:50 <dantheman> lol Oct 26 19:30:52 <lov> :( Oct 26 19:30:59 <adq> nice article SimonVT, thx! Oct 26 19:31:07 <lov> can't get no respect. Oct 26 19:31:23 <dantheman> lot the mini HDMI out to my TV is the best Android TV set up Oct 26 19:31:27 <dantheman> lov/lot* Oct 26 19:31:34 <lov> heh Oct 26 19:31:37 <lov> it's neat hardware, definitely Oct 26 19:31:54 <dantheman> has Amazon Streaming/Netflix/Hulu Plus Oct 26 19:32:08 <dantheman> runs my dev branch of openFramework very very well Oct 26 19:32:17 <dantheman> gotta see how well it does openGL ES 2 Oct 26 19:32:44 <dantheman> I can't wait for monday Oct 26 19:33:55 <g00s> the nexus 10 will have a micro HDMI port Oct 26 19:34:02 <dantheman> shhhh Oct 26 19:34:15 <g00s> heh, unless that leaked manual was some elaborate plot Oct 26 19:34:26 <dantheman> lol I didn't see that Oct 26 19:34:36 * g00s whistles Oct 26 19:34:40 <dantheman> well at least I won't have to get a damn dongle Oct 26 19:34:54 <dantheman> 'another damn dongle' Oct 26 19:36:17 <jasonmog> "Unparseable number: "0.5" (at offset 3)" Oct 26 19:36:28 <jasonmog> DecimalFormat.parse("0.5"). how does that make sense? Oct 26 19:36:40 <jasonmog> DecimalFormat.getInstance().parse* Oct 26 19:39:24 <dantheman> looking at it now jstemmer Oct 26 19:39:27 <dantheman> err jasonmog Oct 26 19:39:30 <dantheman> sorry jstemmer Oct 26 19:39:39 <jstemmer> :) Oct 26 19:39:40 <adq> jasonmog, decimal format might expect a comma? http://docs.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html Oct 26 19:39:41 <jstemmer> np Oct 26 19:39:49 <jasonmog> alright Oct 26 19:39:56 <dantheman> I don't think so Oct 26 19:39:59 <dantheman> but maybe Oct 26 19:40:50 <adq> looks like a dangerous function :p Oct 26 19:41:42 <adq> jasonmog, maybe you just need "Float.parseFloat(...)" Oct 26 19:41:59 <dantheman> yeah like it didn't cause any problems Oct 26 19:42:05 <dantheman> you have that wrapped in a try catch right? Oct 26 19:42:32 <adq> with Float.parseFloat i think an horrible try catch is needed Oct 26 19:42:49 <adq> (throws NumberFormatException if string can not be parsed as a float value. Oct 26 19:42:49 <adq> ) Oct 26 19:43:13 <g00s> DecimalFormat is locale sensitive Oct 26 19:47:08 <jasonmog> thanks Oct 26 19:57:19 <AlexanderZ|work> Jake: how would I go about styleing IcsSpinner with a custom theme? Oct 26 20:03:00 <ctate> splittynet? Oct 26 20:12:06 <JakeWharton> I don't know. It's not made for that Oct 26 20:12:16 <JakeWharton> copy whatever I did to get the Holo theme working on pre-ICS Oct 26 20:30:10 <jeppy> man Oct 26 20:30:32 <jeppy> joined #android instead of #android-dev without realizing it... Oct 26 20:31:28 <jeppy> bunch of arguing... i was like "where's an op when you need one" "this has nothing to do with app development" Oct 26 20:31:42 <jeppy> xD Oct 26 20:31:50 <ctate> :) Oct 26 20:32:05 <jeppy> hey Mr. Tate! Oct 26 20:32:54 <SimonVT> Mr T Oct 26 20:33:00 <jeppy> it was the old "don't collect my data" arguments Oct 26 20:33:35 <g00s> jeppy: here we aregue emacs vs vi; eclipse vs intellij Oct 26 20:33:38 <g00s> :/ Oct 26 20:33:51 <jeppy> still better Oct 26 20:33:55 <adq> jeppy, he meant here we troll :D Oct 26 20:34:21 <adq> (sometimes ppl also correct ppl not speaking properly english :p) Oct 26 20:45:30 <g00s> cool http://www.engadget.com/2012/10/26/samsung-launches-arndale-community-board/ Oct 26 20:46:20 <g00s> "The initial version of the Arndale board will ship with the Android Jellybean OS." Oct 26 20:50:02 <JakeWharton> there is no argument between Eclipse and IntelliJ Oct 26 20:50:35 <JakeWharton> trollolol Oct 26 20:52:12 <ctate> g00s: $250 though Oct 26 20:52:18 <ctate> sweet, but spendy Oct 26 20:53:27 <meetoman> hey guys Oct 26 20:53:30 <meetoman> http://pastebin.com/jUdChvVv Oct 26 20:53:36 <meetoman> my ScrollView is acting wierd Oct 26 20:53:39 <meetoman> can anybody help? Oct 26 20:53:53 <g00s> ctate: pandaboard es goes for about 175, yeah it would be nice if it was a little cheaper Oct 26 20:54:03 <meetoman> ello g00s =) Oct 26 20:54:06 <meetoman> long time no se Oct 26 20:54:07 <ctate> $160 for the base pandaboard, iirc Oct 26 20:54:10 <g00s> hello meetoman :) Oct 26 20:54:20 <ctate> so $250 is a big price bump Oct 26 20:54:53 <ctate> and it's a chip that you can only use in product if samsung builds it, pretty much Oct 26 20:55:08 <ctate> i'm jazzed it exists, but am shaking my head a little at the pricing Oct 26 20:55:23 <g00s> yeah Oct 26 20:55:25 <meetoman> g00s, you've experienced with Caused by: android.content.res.Resources$NotFoundException: File res/drawable/tab_bottom_left.xml Oct 26 20:55:41 <meetoman> g00s, did you ever find the solution? Oct 26 20:55:53 <meetoman> I am having that problem too, stackover folow isn't really helping Oct 26 20:56:32 <g00s> meetoman: hmm, i bet JakeWharton would know Oct 26 20:56:45 <JakeWharton> i didn't break it Oct 26 20:58:04 <meetoman> http://logs.nslu2-linux.org/livelogs/android-dev/android-dev.20120128.txt Oct 26 20:58:44 <meetoman> JakeWharton, I am getting Caused by: android.content.res.Resources$NotFoundException: File res/drawable/tab_bottom_left.xml from drawable resource ID #0x108036d from loading TabWidget, normal TabWidget, is that something with JellyBean not loading it on previous phones? Oct 26 20:58:50 <meetoman> it only crashes on 2.3 Oct 26 20:58:58 <meetoman> mostly 2.3 Oct 26 20:59:48 <monsti> maybe you are using an 4.0 only resource image Oct 26 21:00:07 <JakeWharton> wtf you just pasted a 1000 line log Oct 26 21:00:16 <meetoman> monsti, I am not using any image Oct 26 21:00:17 <JakeWharton> if I can't solve your problem in 30 seconds I'm not in the position to help Oct 26 21:00:27 <JakeWharton> busy day Oct 26 21:00:36 <dantheman> lol Oct 26 21:00:38 <meetoman> I am simply loading TabWidget, I can't reproduce it on my phone, but it keeps showing up on crash report Oct 26 21:00:48 <meetoman> JakeWharton, understood Oct 26 21:00:59 <JakeWharton> sorry, good luck Oct 26 21:01:02 <meetoman> I am actually gona use ActionSherlock's tabwidget to bypasss that problem Oct 26 21:01:11 <meetoman> so if it works, you are already helping =) Oct 26 21:01:40 <meetoman> can anybody help me with this one? Oct 26 21:01:41 <meetoman> http://pastebin.com/jUdChvVv Oct 26 21:01:59 <meetoman> I am getting some real weird result Oct 26 21:02:03 <meetoman> http://dl.dropbox.com/u/11879094/sn1.png Oct 26 21:15:40 <g00s> ctate: i think it would be cool if the design guidelines featured books that google designers recommended Oct 26 21:16:13 <g00s> for example, i was just reading about typography. i guess some say there is micro and macro typography : Oct 26 21:16:33 <g00s> micro is choosing a font, or building a font from scratch … kerning, serifs, etc Oct 26 21:16:48 <g00s> macro is using text as the interface; more about layout, whitespace, etc Oct 26 21:17:27 <g00s> i'm trying to find a good book on macro; i'm sure the designers there take these things under consideration Oct 26 21:18:24 <AlexanderZ|work> anyone know how to make a progressbar (circle) the same size as an actionbar menuitem when setting it as the actionview? Oct 26 21:21:08 <JakeWharton> give it a height of actionBarSize Oct 26 21:30:45 <Escherial> also, somebody touched me earlier o_o Oct 26 21:30:49 <Escherial> er. Oct 26 21:30:52 <Escherial> wrong window, sorry Oct 26 21:30:58 <g00s> hahaha Oct 26 21:31:06 <g00s> touched by a troll ? Oct 26 21:31:09 <Escherial> :< Oct 26 21:31:11 <g00s> (in here ;) Oct 26 21:31:16 <Escherial> heh, not in here, thankfully :) Oct 26 21:31:20 <Escherial> that was embarrassing, heh Oct 26 21:31:29 <g00s> hehe, thanks that was hilarious. Oct 26 21:47:17 <Escherial> urgh, apparently you can tell when an incoming call during an existing call is accepted, but you can't tell when it hangs up Oct 26 21:47:39 <Escherial> you don't get a PHONE_STATE:IDLE intent, at least, until the existing call is ended Oct 26 21:47:49 <Escherial> shame, android...shame Oct 26 21:50:05 <ctate> oh, you can't tell if the incoming call rings off before being answered? Oct 26 21:51:02 <ctate> not sure whether hte telephony stack even has that info Oct 26 21:51:11 <ctate> (on all carriers) Oct 26 21:52:15 <p_l> ctate: should have Oct 26 21:52:28 <p_l> though I suspect RIL might be done lazily Oct 26 21:53:00 <ctate> the ril is pretty much up to the oem Oct 26 21:53:03 <ctate> sigh Oct 26 21:53:20 <Escherial> interesting Oct 26 21:54:01 <Escherial> well, i can tell that the "inner" incoming call is waiting to be picked up and when it's finally picked up, but i can't tell when the "inner" incoming call ends (there's no IDLE event, which makes sense since you're still in the "outer" call) Oct 26 21:54:39 <Escherial> there's sadly no way to differentiate between whether the call is accepted or rejected, too; they're both just PHONE_STATE:OFFHOOK Oct 26 22:08:35 <R4md4c> How to determine if a Rect or Region is fully contained inside another region and rect Oct 26 22:08:37 <R4md4c> ? Oct 26 22:08:55 <ctate> for rects it's easy Oct 26 22:09:02 <ctate> if all four corners are inside the other rect, then true Oct 26 22:09:37 <ctate> for regions, generally, it's if the intersection of the two is == to one of them Oct 26 22:11:05 <p_l> ctate: it gets funnier when you want to know "which rect does the point belong to" :) Oct 26 22:11:16 <ctate> (for rects you can optimize) Oct 26 22:11:32 <ctate> assuming that you know the rects are well formed Oct 26 22:11:40 <p_l> yes, unless you start making more interesting shapes from rects Oct 26 22:11:49 * p_l tried once to design a GUI toolkit Oct 26 22:12:20 <ctate> p_l: then it's a region, not a rect Oct 26 22:12:43 <p_l> I think I ended up with R-tree Oct 26 22:12:46 * Hodapp throws a quadtree at p_l Oct 26 22:12:53 <p_l> Hodapp: yeah ;P Oct 26 22:14:07 <ctate> (specifically, if you know the rects are well formed, then you can just test e.g. whether inner.top >= outer.top and inner.bottom =< outer.bottom, and similar for the sides, and rely on the well-formed property to avoid testing each vertex against all four sides of the outer) Oct 26 22:14:24 <p_l> yeah Oct 26 22:15:08 <ctate> four comparisons rather than 16 Oct 26 22:15:17 <ctate> [modulo short-circuiting] Oct 26 22:18:50 <Hodapp> If you were suitably insane, you could use something similar to how radix sort works and do it mainly with bitwise operations... Oct 26 22:19:53 <ctate> for regions that's essentially what happens when you calculate the intersection and then test equality with the original Oct 26 22:20:05 <ctate> not quite as lean as possible, but effectively the same approach Oct 26 22:20:10 <ctate> it's a complex general problem Oct 26 22:20:26 <ctate> and highly dependent on your region representation datastructure Oct 26 22:20:46 <Escherial> apologies for asking this again; i might've missed a response to it earlier...basically, i want to persist some data for the length of a phone call; i need it to be accessible to multiple calls to onReceive() for the same BroadcastReceiver Oct 26 22:21:12 <Escherial> should i just stuff the data in SharedPreferences or is there a better place to put it? it'll be irrelevant when the call is over, so i don't need to stick it in long-term storage or anything Oct 26 22:21:37 <R4md4c> ctate: What is the difference between 4 corners comparison the contains method, please ? Oct 26 22:21:45 <Escherial> (to make this more concrete, i want to record the length of the call, which means i first need to handle RINGING, then figure out when the call started when i receive IDLE) Oct 26 22:21:56 <R4md4c> sorry, and the contains method Oct 26 22:22:22 <ctate> not sure i understand the question, R4md4c Oct 26 22:22:36 <ctate> you asked about two different cases: rectangles, and regions Oct 26 22:23:00 <ctate> it's easy to test whether rectangle A is "inside" rectangle B Oct 26 22:23:24 <ctate> it's hard to test whether *region* C is completely contained by region D Oct 26 22:24:15 <Escherial> agreed, especially if they're convex Oct 26 22:24:19 <Escherial> er, concave Oct 26 22:24:32 <R4md4c> In the Rect case what is the difference between checking the 4 corners of a rectangle if it is inside the other one, and using the contains method of the Rect class ? Oct 26 22:24:36 <ctate> i suggested what to do for each case Oct 26 22:25:10 <ctate> oh, if you're using the Android platform Rect class then sure, it's easy; just use the contans() method Oct 26 22:25:29 <ctate> which uses exactly the approach i described: it first validates well-formedness, then compares the sides appropriately Oct 26 22:27:14 <ctate> for Region, you'll need to do a little more work; intersect the two regions and test whether the intersection == one of the original regions Oct 26 22:27:20 <mrenouf|work> Anyone know if it's possible to use a syncadapter without an account? Oct 26 22:28:55 <Escherial> er, should i just assume that SharedPreferences is the way to go? Oct 26 22:31:17 <ctate> do you need it to persist if the battery is pulled / goes dead in the middle of the call? Oct 26 22:32:19 <Escherial> ideally not, as the call wouldn't have been completed in any case Oct 26 22:32:30 <ctate> then i'd say you shouldn't be writing it to disk at all Oct 26 22:32:35 <Escherial> heh, i agree :) Oct 26 22:32:45 <Escherial> i just want it to live between calls to onReceive(), that's all Oct 26 22:32:55 <ctate> well Oct 26 22:33:05 <ctate> is your app guaranteed to stay running for the duration of the call? Oct 26 22:33:09 <ctate> if not, then yes, you need to write to disk Oct 26 22:33:24 <ctate> but ye gods, sharedpreferences? why not just some random flat file in your data dir? Oct 26 22:33:25 <Escherial> that's a good question; i don't know, unfortunately Oct 26 22:33:35 <Escherial> well, i just want to use whatever's easiest Oct 26 22:33:43 <Escherial> i'd have to decide on some format for a flat file Oct 26 22:33:47 <tophyr> (static) instances of classes aren't shared between apps, right? because of the vm sandboxing setup i'm assuming? i'm building a library for release that requires an API key for use. if a device has two different apps that each have diff api keys, want to make sure they're not going overwrite each other Oct 26 22:33:51 <ctate> yeah converting to xml and rewriting all that crap is easier.... ;) Oct 26 22:34:02 <ctate> vm sandboxing is not part of the Android security model Oct 26 22:34:21 <Escherial> ctate: but using static members in my BroadcastReceiver won't work, right? Oct 26 22:34:24 <ctate> apps cannot see each other's classes / memory because they are running in different processes under diferent uids Oct 26 22:34:29 <tophyr> probably should just go look at how gmaps key integrations work Oct 26 22:34:42 <ctate> Escherial: it'll work fine *if* you are guaranteed that your app won't get killed in the background while the call is live Oct 26 22:34:56 <Escherial> how could i be guaranteed of such a thing? Oct 26 22:34:58 <ctate> if you can't guarantee that, then you need to write to disk Oct 26 22:35:15 <ctate> well, if you run a foregroudn service for the duration that gets you close Oct 26 22:35:18 <ctate> but that's pretty intrusive Oct 26 22:35:26 <Escherial> agreed; i guess i should just write it to disk Oct 26 22:35:30 <ctate> or you could just write to disk :) Oct 26 22:35:30 <ctate> right Oct 26 22:35:39 <Escherial> what's wrong with using SharedPreferences, out of curiosity? it's easy, it's there... Oct 26 22:35:50 <ctate> depends on what you're doing Oct 26 22:35:56 <Escherial> i agree that i'm not writing a preference per se, but people use SharedPreferences for things like tracking the first time that an app is run Oct 26 22:36:00 <ctate> are you recording a bit that means "oh hey the call is live" Oct 26 22:36:10 <Escherial> there's that, and the timestamp of when the call began (a long) Oct 26 22:36:12 <ctate> and then eventually settting the bit that means "nope call not live any more" Oct 26 22:36:31 <Escherial> right, exactly Oct 26 22:36:32 <ctate> it's much, much lighter weight to just write the damn timestamp to a (dedicated) file Oct 26 22:36:42 <ctate> and erase the file when the call is done Oct 26 22:36:55 <Escherial> i'm unfamiliar with file io in android Oct 26 22:37:02 <Escherial> i suppose i can brush up, though Oct 26 22:37:05 <ctate> import java.io.* Oct 26 22:37:06 <ctate> go nuts :) Oct 26 22:37:11 <Jug6ernaut> its the same as file io in any other java project Oct 26 22:37:27 <ctate> there's a little bit of Android api to tell you where your data directory tree is Oct 26 22:37:30 <ctate> and that's about it Oct 26 22:37:32 <Escherial> heh, i'm a python programmer usually; i don't mess with java file io unless i have to Oct 26 22:37:34 <ctate> the rest is bog-standard Oct 26 22:37:45 <Escherial> but alright, i suppose the timestamp log-file thing is what i'm going to do Oct 26 22:37:46 <Jug6ernaut> any1 here recommend intellij Oct 26 22:37:51 <Escherial> intellij's nice Oct 26 22:37:57 <ctate> Jug6ernaut: it's reasonably widely used on the Android team at Google Oct 26 22:37:57 <Escherial> the whole module thing is kind of weird, but you get used to it Oct 26 22:38:26 <Jug6ernaut> Escherial yea im getting a little lost with that right now lol Oct 26 22:38:35 <Jug6ernaut> ctate o yea? interesting... Oct 26 22:38:57 <ctate> remember that Android team at Google mostly doesn't use the ADT type stuff to build :) Oct 26 22:39:02 <g00s> ctate: does anyone at google work with Idea on their android plugin ? Oct 26 22:39:13 <ctate> so i have no idea how good IntelliJ's Android app biulding integration is Oct 26 22:39:31 <ctate> g00s: i dunno! i mean, we have tools people, but i don't really interact with them much at this point so.... Oct 26 22:39:33 <Jug6ernaut> ctate its confusing :) lol Oct 26 22:39:54 <g00s> i think the adt feature that shows your layout in all the configs is killer Oct 26 22:39:58 <g00s> put its preview Oct 26 22:40:18 <mrenouf|work> The tools team works in AOSP/Git Oct 26 22:40:30 <mrenouf|work> IntelliJ freely integrates from that Oct 26 22:40:52 <g00s> orly; so some of the intellij android plugin may come from aosp Oct 26 22:40:56 <mrenouf|work> I dont think there's any direct work with intellij Oct 26 22:41:05 <mrenouf|work> g00s, oh certainly Oct 26 22:41:11 <g00s> ineresting Oct 26 22:41:22 <mrenouf|work> But eclipse always gets it first :-) Oct 26 22:41:33 <mrenouf|work> yeah, like the lint checker for instance Oct 26 22:41:48 <mrenouf|work> thats open and seperate, can be used outside an ide Oct 26 22:42:14 <g00s> originally it was the case it had some extra capabilities when run from eclipse Oct 26 22:42:49 <R4md4c> I've asked a question on stackoverflow http://stackoverflow.com/questions/13093095/how-to-determine-which-region-contains-the-biggest-area-of-an-intersected-region Oct 26 22:42:49 <R4md4c> I am checking for the containment of the selection region and other regions. but it is failing because I guess that when I rotate the canvas the regions are not rotated with the canvas and the selection result is always the same. So am I right with this guess or not ? Oct 26 22:42:53 <mrenouf|work> thats probably still the case, as Eclipse is the initial target, so they land there first. Oct 26 22:49:14 <Escherial> the concept of sticking a single value in a file irks me Oct 26 22:49:31 <Escherial> it'd be nice if i could serialize some kind of key-value store to and from the disk Oct 26 22:50:38 <g00s> Escherial: how many k/v pairs ? Oct 26 22:52:14 <Escherial> g00s: anywhere from 1 to however many Oct 26 22:52:24 <Escherial> never mind, i'm just complaining at this point, heh Oct 26 22:56:27 <Escherial> well, however many is more like at most 5 to 10 values Oct 26 22:56:41 <Escherial> not looking for a crazy high-performance massive key-value store database or anything Oct 26 22:57:31 <ctate> for lightweight key/value, yeah, sharedpreferences is not horrific Oct 26 22:57:39 <ctate> sometimes people think omg i will use sqlite Oct 26 22:57:48 <ctate> these people need to be locked up for their own good Oct 26 22:59:40 <Escherial> i wish someone would lock me up for my own good Oct 26 22:59:47 <Escherial> perhaps i should propose using sqlite Oct 26 23:02:51 <tdignan> i love sqlite Oct 26 23:04:20 <ctate> it's fine Oct 26 23:04:26 <ctate> for, y'know, actual database applications Oct 26 23:04:34 <ctate> for basic key/value store? not so much. Oct 26 23:05:07 <tdignan> well, a sqlite database can be exported from the device and then you can access it using tools available on any sane development machine. can you do the same with sharedpreferences? Oct 26 23:05:20 <ctate> it's just xml Oct 26 23:05:24 <g00s> hm, well SharedPreferences just stores its stuff in a Map<String, Object> Oct 26 23:05:33 <ctate> no, it stores as xml Oct 26 23:05:39 <g00s> ctate: in memory Oct 26 23:05:43 <ctate> oh that, sure Oct 26 23:05:45 <tdignan> so I can pull the XML of my sharedprefs? Oct 26 23:05:55 <ctate> just like you can pull the .db file Oct 26 23:06:07 <tdignan> awesome Oct 26 23:07:02 <ctate> (i.e. through ddms or equivalent if the app is marked debuggable, i believe; or via the adb backup experimental support) Oct 26 23:07:44 <tdignan> I have code that can pull a sqlite database from a live app installation on an unrooted device without any development settings turned on Oct 26 23:07:58 <tdignan> so if a client has an issue, I can get their database Oct 26 23:08:08 <g00s> also, i think every time you commit a sharedpreference, it journals that to disk in a plain xml file but then reparses it Oct 26 23:08:16 <g00s> hehe Oct 26 23:09:00 <tdignan> sense the app has read/write on its own database, this works, of course. Oct 26 23:09:23 <ctate> mm, i'm not at all sure it reloads & reparses from disk after a commit Oct 26 23:09:37 <R4md4c> I am rotating objects using canvas.save() then canvas.rotate then canvas.restore . I noticed that the actual coordinates of the regions are not changed. So how to change them based on the rotation of the canvas ? Oct 26 23:09:37 <ctate> at least not in that same SharedPreferences instance Oct 26 23:09:48 <bubbleguuum> anyone knows how to programatically display the ListView item selector for a particular list item when not in touch mode ? Theorically listView.setSelection(position) should do that yet it doesn't... Oct 26 23:10:00 <ctate> tdignan: from any app, or just from your own? Oct 26 23:10:14 <tdignan> ctate: from my own app Oct 26 23:10:23 <ctate> yeah okay, that's easily done for shared prefs too ofc Oct 26 23:10:24 <tdignan> well, the code can be included in any app Oct 26 23:10:27 <tdignan> oh ok Oct 26 23:10:33 <tdignan> I'll have to look into that then Oct 26 23:10:55 <ctate> on account of they're just .xml files in the app's data tree Oct 26 23:11:05 <g00s> ctate: oops, i was wrong. maybe they changed that more recently Oct 26 23:11:16 <g00s> (looking through the impl now) Oct 26 23:11:42 <ctate> in .. HC? there was considerable optimization work done on SharedPreferences Oct 26 23:12:13 <ctate> tdignan: Context.getSharedPrefsFile() will give you the path of a shared preferences store on disk Oct 26 23:13:05 <ctate> oh, fyi, there's a caveat with SharedPrefrences Oct 26 23:13:31 <ctate> if you use getStringSet() / setStringSet() Oct 26 23:13:35 <ctate> be careful Oct 26 23:13:50 <tdignan> noted Oct 26 23:13:58 <ctate> because in currently released versions of Android those will expose their backing store set Oct 26 23:14:04 <factor> Does android have a way to get libusb stuff to work on Android 2.3.6 Oct 26 23:14:07 <ctate> (or will take possession of the set you pass in) Oct 26 23:14:25 <ctate> so if you then mutate the instance you passed across those methods, you can poison the backing store Oct 26 23:14:31 <ctate> that's bad Oct 26 23:14:38 <ctate> [fixed in future release] Oct 26 23:16:24 <ctate> but even in the future you will need to treat the set instance you get back from getStringSet() as immutable Oct 26 23:16:33 <ctate> FYI. Oct 26 23:21:41 <R4md4c> I found the solution using canvas.getMatrix() then using mapRect on the regions Oct 26 23:38:55 <ron_frown> hko Oct 26 23:39:03 <Escherial> i wonder why OFFHOOK doesn't have the outgoing number in it, making me have to handle a whole other intent for some reason :\ Oct 26 23:41:17 <g00s> ron_frown: did you see the samsung exynos board ? Oct 26 23:41:28 <ron_frown> which Oct 26 23:41:35 <g00s> Arndale Oct 26 23:41:38 <ron_frown> no Oct 26 23:41:40 <ron_frown> url? Oct 26 23:41:41 <g00s> http://www.engadget.com/2012/10/26/samsung-launches-arndale-community-board/ Oct 26 23:41:52 <g00s> you seem to be into that, so i kept the kink for you Oct 26 23:41:54 <ron_frown> I've got a quad 1.5 exynos board Oct 26 23:41:55 <g00s> haha Oct 26 23:41:57 <g00s> *link Oct 26 23:42:31 <ron_frown> ooh cortex a15 Oct 26 23:42:34 <g00s> :) Oct 26 23:42:43 <g00s> probably be lots more a15 based things out soon Oct 26 23:42:47 <ron_frown> wonder how big that mf is Oct 26 23:42:59 <g00s> looks pretty big Oct 26 23:43:33 <ron_frown> I think it LOOKS that way Oct 26 23:43:40 <ron_frown> since the exynos stuff is in a little tiny package Oct 26 23:43:43 <ron_frown> and the board looks mostly bare Oct 26 23:45:01 <ron_frown> where can I buy thi mf Oct 26 23:45:17 <g00s> on the bottom there is a button for the press release, maybe look at that Oct 26 23:45:32 <g00s> it comes with JB Oct 26 23:45:44 <ron_frown> yeah big deal Oct 26 23:45:51 <ron_frown> I've ported jb to some funky ass hardware =) Oct 26 23:46:11 <ron_frown> single core Oct 26 23:46:12 <ron_frown> hrmm Oct 26 23:46:21 <ron_frown> wonder how it benchmarks Oct 26 23:46:52 <ron_frown> http://www.howchip.com/shop/content.php?co_id=ArndaleBoard_en Oct 26 23:46:54 <ron_frown> bam Oct 26 23:47:13 <SpeedEvil> scale of from the USB port Oct 26 23:47:19 <JakeWharton> what version of HttpClient is in Android Oct 26 23:47:25 <JakeWharton> is it still 4.0.1? Oct 26 23:47:35 <ron_frown> you mean apache httpclient? Oct 26 23:47:35 <g00s> it depends on the version of android ? Oct 26 23:47:36 <SpeedEvil> or the .1" headers next to it Oct 26 23:47:55 <JakeWharton> ron_frown: yessir Oct 26 23:48:03 <ron_frown> I dropped httpclient like a bad habbit as soon as I went to android 3.0 as a target Oct 26 23:48:13 <SpeedEvil> three inches by 3.5 Oct 26 23:48:26 <ron_frown> hrmm Oct 26 23:48:34 <ron_frown> our 4460 hardware has a bigger footprint than that Oct 26 23:48:48 <JakeWharton> so you're all Url? Oct 26 23:48:59 <ron_frown> yep Oct 26 23:49:06 <JakeWharton> I know i'm just looking for ContentType class and it's not present Oct 26 23:49:31 <ron_frown> could that be ina support library? Oct 26 23:49:46 <ron_frown> I seem to remember having to include some libs from apache httpclient explicitly Oct 26 23:49:52 <ron_frown> (vs just using whats in the sdk) Oct 26 23:56:27 <JakeWharton> sadly I'm writing a library (shocker) so I can't just choose Url or apache Oct 26 23:59:39 <ron_frown> abstract abstract abstract Oct 27 00:06:04 <meetoman> hey JakeWharton, is there anyway to put stuff in between menu bar and tabs? Oct 27 00:06:18 <JakeWharton> custom view goes there Oct 27 00:06:50 <meetoman> alright Oct 27 00:15:07 <Escherial> i wonder if it makes more sense to record the actual talk time or the amount of time that the phone's been ringing Oct 27 00:16:16 <Escherial> never mind, solved :D Oct 27 00:17:13 <Jug6ernaut> JakeWharton how would u rate intellij vs eclipse Oct 27 00:17:26 <JakeWharton> eclipse is like the devil. intellij is like a virgin angel Oct 27 00:17:46 <Jug6ernaut> :| Oct 27 00:17:59 <Jug6ernaut> would agree with the former, gonna have to see about the latter... Oct 27 00:20:06 <p_l> ... not virgin Oct 27 00:20:30 <Jug6ernaut> p_l opinion? Oct 27 00:21:29 <p_l> Jug6ernaut: too good in sack to be a virgin angel? Oct 27 00:21:39 <Jug6ernaut> lol Oct 27 00:21:45 <p_l> since we are going with weirdo metaphores Oct 27 00:21:59 <Jug6ernaut> haha Oct 27 00:23:56 <Escherial> what, why is it telling me that my bundle is parcelled data when i try to print it now? Oct 27 00:24:16 <Jug6ernaut> bc Oct 27 00:24:17 <Jug6ernaut> it is Oct 27 00:24:59 <Escherial> before, it was displaying all the contents of my parcel Oct 27 00:25:10 <Escherial> not a gamebreaker, but it makes debugging annoying Oct 27 00:25:35 <Codhisattva> In an NDK/JNI project is there some equivalent to fread() I should be using? Oct 27 00:26:22 <Codhisattva> I don't understand where in the apk the Resources end up or how to read them Oct 27 00:33:27 <Escherial> does android have a nice way to format phone numbers if they're just given as text to a textview? Oct 27 00:33:33 <Escherial> meh, i should check this myself, heh Oct 27 00:34:16 <JakeWharton> http://lmgtfy.com/?q=java+format+phone+number Oct 27 00:34:38 <Jug6ernaut> nummber.replace("-","").replace(" ",""); Oct 27 00:35:16 <Escherial> there are a lot of different kinds of number formats out there; i figured android might have something more tailored to it, since it's partially a mobile phone OS and all Oct 27 00:35:32 <Escherial> i'd also not have to include some third-party library or potentially use something that's unsupported Oct 27 00:35:40 <p_l> and there are locale-specific ways of formatting a phone number Oct 27 00:36:01 <p_l> down to different groupings for different kinds of numbers Oct 27 00:36:14 <Escherial> indeed Oct 27 00:36:37 <Escherial> it'd be nice if i could set a displayType on a view or something and it'd figure out how to format the string of digits i give it Oct 27 00:36:40 <Escherial> *textview Oct 27 00:36:50 <Brainix> Hi, guys. I have a weird problem with my Android app. Whenever a user installs it, they get 6 icons for my app. Any ideas as to why this might happen? Oct 27 00:36:58 <p_l> like (##) ###-##-##-## for landlines in poland compared to ### ###-###-### for mobiles Oct 27 00:37:22 <Escherial> interesting Oct 27 00:37:25 <p_l> um, ###-###-### for mobiles Oct 27 00:37:35 <Escherial> fortunately, my app is only going to be used on the west coast of the US on mobile phones Oct 27 00:37:36 <p_l> got a bit too many digits there :) Oct 27 00:37:46 <Escherial> i suppose they could call anyone, in retrospect Oct 27 00:39:22 * Jug6ernaut has been peepered with JakeWharton [retrofit] emails all day Oct 27 00:39:33 <JakeWharton> trying to land 1.0! Oct 27 00:39:44 <Escherial> huh, there's libphonenumber Oct 27 00:39:47 <Jug6ernaut> hehe nice Oct 27 00:39:49 <Escherial> looks nice, albeit it might be overkill :| Oct 27 00:40:09 <Escherial> yet another 183KB jar to dump into my project :< Oct 27 00:40:21 <JakeWharton> after dexing it will be smaller Oct 27 00:40:40 <Escherial> true, good point Oct 27 00:42:22 <p_l> Escherial: don't forget to run proguard Oct 27 00:50:02 <Escherial> if any of you are familiar with jodatime, do you happen to know if you can use a duration in milliseconds with PeriodFormatter? Oct 27 00:50:18 <Escherial> the period formatter expects a string, but i'm not sure how that string should be formatted... Oct 27 00:50:51 <Escherial> never mind, no need for a formatter, heh Oct 27 00:57:50 <JesusFreke> Brainix: do you have multiple activities in your manifest with action main and category launcher? Oct 27 00:58:12 <Brainix> JesusFreke: Yes, I think I just found the answer to my question here: http://stackoverflow.com/questions/3527263/android-app-actvities-installed-as-multiple-icons Oct 27 00:58:25 <Brainix> JesusFreke: Thanks anyway! God bless IRC and Stack Overflow. :-) Oct 27 00:58:42 <JesusFreke> yeah, you'll get an icon for every activity with action main and category launcher :) Oct 27 01:00:40 <shmooz> I think the people who provided us with VideoView were not really expecting us to make a serious video player with it now Oct 27 01:56:50 <jeppy> can you have a Loader listen for changes in a file? Oct 27 01:57:08 <Jug6ernaut> why would u use a loader for that Oct 27 01:58:07 <jeppy> I think I'm going to just save Http responses (JSON strings) into separate files. A database for one field seems kind of unnecessary. Oct 27 01:58:09 <g00s> jeppy: well, it could make sense. you could look at SharePreferencesImpl.java for ideas Oct 27 01:58:32 <jeppy> a file for each request type Oct 27 02:20:02 <mrenouf> LOL: http://superuser.com/questions/493292/looking-at-the-screen-in-windows-8-hurts-my-eyes Oct 27 02:21:52 <mrenouf> looking at windows 8 makes me cry actually. Oct 27 02:23:16 <g00s> heh, interesting. coming from the old ClearType in Win 7 and going to the mac, i thought mac os x fonts were fuzzy as hell too Oct 27 02:23:25 <g00s> they use different antialiasing strategies Oct 27 02:23:30 <g00s> maybe now they are more like mac os x Oct 27 02:23:31 <General_Crespin> g00s: Me too. Oct 27 02:23:39 <General_Crespin> OS X and Windows both bug me in different ways. Oct 27 02:23:49 <General_Crespin> But since using one more at work I think I've acclimated to it. Oct 27 02:24:05 <g00s> i turned my hinting down (in os x) to level 1, which is very light. it seemed to help Oct 27 02:24:09 <General_Crespin> Google needs to get their shit together though. Oct 27 02:24:17 <mrenouf> MS had the opinion that screen fonts should be hammered into pixel boundaries at all cost Oct 27 02:24:21 <g00s> they took that damn preference away in 10.7 :/ Oct 27 02:24:27 <General_Crespin> The Android *Design* website looks like shit in Chrome. Oct 27 02:24:41 <mrenouf> General_Crespin, o_O ? Oct 27 02:24:46 <g00s> oh man Oct 27 02:25:04 <General_Crespin> I will find my side-by-side comparison. Oct 27 02:25:05 <g00s> i dont know what it is, nothing gives me a headache faster than d.android.com in Chrome on my mac Oct 27 02:25:25 <g00s> General_Crespin: what i did was use FF, and set font to Helvetica Neueu and force fonts Oct 27 02:25:41 <g00s> its using a webfont, Roboto, that is fucking AWEFUL Oct 27 02:25:44 <General_Crespin> g00s: It looks fine in Firefox or IE but that's not the point!!!!! Oct 27 02:25:56 <g00s> and i hate their off white BG Oct 27 02:25:58 <General_Crespin> It's their website about making crap look good and it looks like shit in their own browser. Oct 27 02:26:02 <g00s> fuck off white BGs Oct 27 02:26:44 <mrenouf> wow, harsh crowd Oct 27 02:26:48 <g00s> :) Oct 27 02:26:57 <g00s> how are you doing this evening mrenouf Oct 27 02:27:03 <mrenouf> General_Crespin, do you also not like Roboto on Android? Oct 27 02:27:12 <mrenouf> I agree it doesn't work quite as well on lower dpi Oct 27 02:27:24 <mrenouf> but I like that the site feels like Android Oct 27 02:27:29 <g00s> something is up with webkit antialiasing that webfont Oct 27 02:27:32 <g00s> fine on android Oct 27 02:27:41 <g00s> maybe it has bad hinting Oct 27 02:27:50 <mrenouf> now that you mention it, it looks a /little/ lumpy to me Oct 27 02:27:51 <General_Crespin> http://img534.imageshack.us/img534/2258/androiddesignfvc.png Oct 27 02:27:57 <mrenouf> but not terrible Oct 27 02:27:58 <General_Crespin> mr6: Roboto is beautiful on Android. Oct 27 02:28:12 <General_Crespin> I flashed it onto Gingerbread and it made a huge difference. Oct 27 02:28:34 <General_Crespin> This is very specifically a Chrome (maybe Windows only, I don't know) and Android Developer website issue. Oct 27 02:28:39 <mrenouf> General_Crespin, you're problem there is Windows. Chrome on Linux does NOT look like that. Oct 27 02:28:52 <mrenouf> looks exactly like your FF screenshot Oct 27 02:29:01 <mrenouf> in fact better I'd say Oct 27 02:29:13 <mrenouf> fonts set to "Slight" hinting as well Oct 27 02:29:15 <g00s> General_Crespin: when you inspect the element, what does -webkit-antialiasing say ? Oct 27 02:29:23 <g00s> (computed) Oct 27 02:29:45 <General_Crespin> I don't really care what the problem is... all I know is that this is Google's browser on Google's website about making stuff look *good*, and their browser makes their stuff like like crap. Oct 27 02:29:45 <General_Crespin> Sec. Oct 27 02:29:50 <g00s> on my mac, maybe my old mbp just has low dpi, roboto looks terrible Oct 27 02:30:44 <g00s> actually -webkit-font-smoothing, sorry Oct 27 02:30:51 <mrenouf> I can't beleive it took so long for the industry to start caring about dpi Oct 27 02:31:04 <mrenouf> for years the best you could get was 100dpi Oct 27 02:31:26 <mrenouf> maybe 120 on certain Thinkpads. <3 those Oct 27 02:31:28 <g00s> General_Crespin: well anyhow, if it really bugs you, you can try -webkit-font-smoothing: subpixel-antialiased; Oct 27 02:31:40 <General_Crespin> g00s: Trying to find what you're talking about. Oct 27 02:31:59 <General_Crespin> Inspecting the element thing fine, just searching for font-smoothing. Oct 27 02:32:15 <General_Crespin> It doesn't seem to find anything though. Oct 27 02:32:44 <mrenouf> you have to click "Show inherited" Oct 27 02:33:01 <mrenouf> mine is "antialiased" Oct 27 02:33:11 <mrenouf> cause thats what I set my system to Oct 27 02:34:02 <General_Crespin> Thanks. Oct 27 02:34:36 <mrenouf> lol, all the -webkit-* stuff. so much for "standards" Oct 27 02:34:52 <mrenouf> im about to get into some web dev again, and frankly it's a bit terrifying Oct 27 02:35:10 <General_Crespin> It seems to already be set to antialiased. Oct 27 02:35:24 <General_Crespin> If I change it to subpixel-antialiased do I need to save or anything or is that automatic? Oct 27 02:35:30 <General_Crespin> (as soon as I hit enter) Oct 27 02:35:47 <mrenouf> its not permanent, no Oct 27 02:35:59 <mrenouf> oh, no then it applies Oct 27 02:36:08 <mrenouf> yeah, just hitting enter Oct 27 02:36:49 <General_Crespin> Hm. Oct 27 02:36:59 <g00s> General_Crespin: actually, you need to edit Default,css Oct 27 02:37:11 <mrenouf> but I tried: -webkit-font-smoothing: none !important; and it had no noticeable effect. Oct 27 02:37:26 <General_Crespin> I was just going to say, don't think anything happened. Oct 27 02:38:11 <g00s> er,, Custom.css Oct 27 02:38:21 <g00s> oh well Oct 27 02:38:44 <General_Crespin> Mehhh. Oct 27 02:38:54 <General_Crespin> Hopefully someday they fix it on their end. :) Oct 27 02:38:54 <mrenouf> bg is #f9f9f9, is that really so awful? Oct 27 02:39:12 <g00s> i guess it depends on the lcd :P Oct 27 02:39:23 <mrenouf> thats 249 vs 255 Oct 27 02:39:26 <g00s> and the dynamic range, contrast ratio, etc Oct 27 02:39:29 <mrenouf> yeah true Oct 27 02:39:41 <mrenouf> I have a fairly high color accuracy monitor Oct 27 02:39:48 <General_Crespin> I've got the crappy Toshiba ultrabook that came out a while ago.. so I'm just happy it works. Oct 27 02:39:57 <g00s> its not the bg in itself, it seems to f up the font aliasing Oct 27 02:40:13 <g00s> like white fonts on black bg look thicker usually Oct 27 02:40:23 <mrenouf> I can see that Oct 27 02:41:15 <mrenouf> time to watch walking dead from last week. then if I'm still awake, maybe some hacking... we'll see :-) Oct 27 02:41:41 <General_Crespin> TWD is pretty awesome so far. Oct 27 02:41:46 <General_Crespin> (this season) Oct 27 02:42:11 <mrenouf> it got a little snooze-fest middle of last season but otherwise I've enjoyed most of it Oct 27 02:42:37 <mrenouf> what sucks is i'm "caught up" so I have to wait a whole week between eps. wtf is that crap? Oct 27 02:42:40 <mrenouf> :-P Oct 27 02:48:16 <General_Crespin> Haha, yeah. Oct 27 02:56:15 <shmooz> white background is a sin **** ENDING LOGGING AT Sat Oct 27 03:00:01 2012