**** BEGIN LOGGING AT Mon Apr 02 02:59:58 2012 Apr 02 03:44:59 Guys, i have a design question. As a user, would you prefer to have an app that load faster but have over 3000 compress files in your SDCard, or would you prefer an app that is slightly slower but have the same data on a SQLlite database and in 1 file Apr 02 03:46:52 anyone ? Apr 02 03:46:56 3000 files? bloody hell ... Apr 02 03:47:04 Depending on the data, I would guess using SQLite is the optimal method. Apr 02 03:47:27 bankai_: Ya.. manpages Apr 02 03:47:54 porter1: that's why i think too.. Apr 02 03:49:35 aww man pages :) Apr 02 03:49:39 Since manpages are just text, you shouldn't have much problem with them in SQLite, unless the user is expecting to be able to manually change the manpages on their sdcard or something like that Apr 02 03:50:43 bankai_: shameless plug https://play.google.com/store/apps/details?id=com.oscd.manpages&hl=en Apr 02 03:51:21 My eclipse is not showing the layout editor - it's not starting it fully. Palette is missing items, layout intention (car dock etc) isn't shown... what's stopping it from loading fully? Apr 02 03:51:21 lyxus: are you pre-rendering the man pages to html or something? Apr 02 03:51:28 i can't say i'd really sit up at night reading man pages, but it's nice to know some loser has made an app like this :) Apr 02 03:51:47 vadi2: try restarting it, eclipse has issues rendering stuff for me sometimes Apr 02 03:51:56 porter1: The data is compressed too Apr 02 03:52:03 bankai_: nah, that could be really useful for the time your server is knackered and you need to look up some stuff to fix it Apr 02 03:52:14 Leeds: that s the next release : ) Apr 02 03:52:26 yeah coz man pages are so inaccessible :S Apr 02 03:52:34 bankai_: derp. Yeah, it's happy now. Apr 02 03:52:36 i like the idea, it's geeky Apr 02 03:52:47 bankai_: they might be if you're remote-accessing a server for emergency stuff Apr 02 03:53:00 http://manpages.ubuntu.com is pretty great for manpages Apr 02 03:53:08 so is the man command Apr 02 03:53:19 vadi2: when u have internet :) Apr 02 03:53:29 Yeah Apr 02 03:53:42 bankai_: i agree with you, but sometimes, i like to read it on my tablet Apr 02 03:53:43 Not disqualifying the relevance of your app, could always come in handy Apr 02 03:54:01 last time I did anything significantly remotely - I was on an SGS2 sitting in Chinese theme park, using a 2G connection - the more I had locally, the better Apr 02 03:55:05 Leeds: ahahah, you will like the next release, HTML rendering and manages based on the distribution of your choice :) Apr 02 03:55:05 lyxus: where'd you pull the data? Apr 02 03:55:15 slackware, obviously :D Apr 02 03:56:23 bankai_: I have sooooo many VM, Clean install, man2html + custom script Apr 02 03:56:52 ahh ok Apr 02 04:04:17 I'm just starting with android development and am trying to figure out why my linear layout is getting cut off after about 300px Apr 02 04:04:51 http://pastebin.com/2Cw7sKpL Apr 02 04:08:04 everything renders correctly in the graphical layout, but when i load it through the emulator the bottom buttons are cut off Apr 02 04:08:05 http://imgur.com/bBmWi Apr 02 05:01:50 my edit texts don't have any border or background. how do i make them look more like text fields? Apr 02 05:21:37 Fragment Compatibility question. I'd like to implement a Pager where the lifecycle of each Fragment is based on which Fragment is in view/visible. Apr 02 05:22:11 I've tried a a couple of tutorials and guides, based on ViewPager and they all seem to instantiate all Fragments at once. Apr 02 05:22:45 I'm using the v4 compatibility lib. Apr 02 05:30:55 how do i change the edit text cursor color? it doesn't use the text color or respect the textCursorDrawable attribute in my theme Apr 02 05:41:47 jasonmog: at least the latest source of TextView (Which EditText inherits from) does use the attribute textCursorDrawable to set the drawable for the cursor. Apr 02 05:41:55 maybe something is wrong with your code. Apr 02 05:43:43 no everything matches what others are doing. i just ended up using a workaround that sets it to null so that the edittext is forces to use the text color Apr 02 05:43:50 forced* Apr 02 05:49:45 exit Apr 02 06:12:57 good morning Apr 02 06:32:25 Has anyone written a keyboard? Apr 02 06:34:52 I;m writing a keyboard, anyone know how to modify stock coloring? Apr 02 06:34:57 I don't know of anyone who has - but I can think of at least 2 which are open source, if you want to check their code Apr 02 06:35:28 Leeds: which ones? Apr 02 06:35:46 hackers' keyboard... and the stock one! Apr 02 06:36:09 http://code.google.com/p/hackerskeyboard/source/browse/ Apr 02 06:37:12 I can't find the stock source online, do you know where that is? Apr 02 06:39:47 I'm not sure the official tree is easily browsable - it is available for git checkout, but I don't think there's a public front-end anymore Apr 02 06:49:20 I'm trying to display HTML containing JavaScript in my app using WebView.loadData. However, the first time I call loadData, the JavaScript is not executed. If I call it again, it is executed. I tried this on ZTE Blade running stock Android 2.2 and on Galaxy S2 running stock Android 2.3.6. Any clue why this might be happening? Apr 02 06:50:01 I am doing getSettings().setJavascriptEnabled(true) before each call to loadUrl Apr 02 06:51:49 desu: not sure about why it works the second time and not the first. Did you call setJavascriptEnabled()? Apr 02 06:54:44 readme, yes, I am calling it before each call to loadData Apr 02 06:55:15 well I don't think your problem is that javascript doesn't work in webviews, because it does... so show some code. Apr 02 06:55:50 Alright, 'sec Apr 02 06:57:36 http://fpaste.org/oILg/ That's the code where I'm calling loadData Apr 02 06:59:47 desu: print the url Apr 02 06:59:49 both times Apr 02 07:00:20 readme, Sorry, I don't understand what you mean? Apr 02 07:00:25 oh, sorry Apr 02 07:00:29 you do use the other two arguments Apr 02 07:00:38 can I ask why you're URL encoding the HTML? Apr 02 07:01:13 I have some symbols in my HTML that make the WebView mess up. I google'd and found the solution to URL encode it. Apr 02 07:01:33 so everything works the first time, but not the second? Apr 02 07:01:46 if you capture the data from URLEncoder.encode the first and second time, is it the same exact data, both times? Apr 02 07:02:03 Yes Apr 02 07:02:15 write a test program that is just a WebView Apr 02 07:02:24 capture the data from URLEncoder.encode Apr 02 07:02:28 load it into the WebView manually Apr 02 07:02:30 does it work? Apr 02 07:02:51 If it does I'm going to have to guess the problem in your code is not in the snippet you pasted. Apr 02 07:03:07 Wait, shit, it's not exactly the same data. Apr 02 07:03:11 tada Apr 02 07:03:15 my work is done here Apr 02 07:03:38 Thanks to you, I figured it out.. D: Apr 02 07:03:43 There's a problem in my JS. Apr 02 07:03:51 Thanks, readme! Apr 02 07:03:53 :D Apr 02 07:03:54 * Snuffel tuts Apr 02 07:03:57 why is it so difficult to get an android project in eclipse in eclipse on another machine Apr 02 07:05:35 https://sourceforge.net/projects/laptimer/develop branch awesomeSauce Apr 02 07:09:29 If i make a new android projct, telling it to use the same files, none of the files get copied over. If i do it manually, i get heck loads of errors. Apr 02 07:09:38 If i import an existing project, it's not an android project. Apr 02 07:12:57 Jak_o_Shadows1: import existing project tends to work fine.. if it doesn't, try running android update project --path . --target # in the root directory of the project in question. Apr 02 07:13:19 also, you will need to set the compiler compliance level to 1.6 in project properties for most projects Apr 02 07:15:06 actually, I think the problem with copying the files over (or importing folders in eclipse) was taht I was overwriting classpath and a couple of crucial files. Apr 02 07:17:11 Jak_o_Shadows1, tried maven? Apr 02 07:17:30 it's really good at doing the same thing everywhere Apr 02 07:17:43 nope, no idea what that is. However, the emulator is launching now. (it's on a semi-netbook, so it'll be a while) Apr 02 07:31:03 i've got a view which is set on visibility GONE Apr 02 07:31:24 okay? Apr 02 07:31:38 now I want to progmatically set it to VISIBLE, and before I let it draw etc. get it's measured height Apr 02 07:31:44 so how big it's going to want to be Apr 02 07:31:51 any idea on how to do that? Apr 02 07:33:36 c'est pour le voice ? Apr 02 07:33:49 sorry... Apr 02 07:34:42 le voice de france? Apr 02 07:34:59 How am I meant to look after my keystore? Apr 02 07:35:06 I gather it's stupid to put it up on git freely? Apr 02 07:36:46 Just keep it safe and keep backups... if you are to release stuff on market, you don't want to lose it Apr 02 07:37:02 Jak_o_Shadows1: yes, that is not a good place to put it... Apr 02 07:37:17 alowaniak: you can extend View and override onMeasure Apr 02 07:37:58 right, so shove it on a usb and put it somewhere safe? Apr 02 07:38:58 I would back it up with security appropriate for your level of risk Apr 02 07:39:14 ... how would that help exactly...? I just want onMeasure to be called so I can use getMeasuredHeight() to get it Apr 02 07:39:37 alowaniak: because by overriding it, you can define your own callback Apr 02 07:39:49 then have that callback be called after on measure, so that you can use getMeasuredHeight Apr 02 07:39:50 Jak_o_Shadows1: Just make sure that if your USB memory dies, you have backups... Apr 02 07:40:07 just make a callback that calls super.onMeasure then calls your method Apr 02 07:40:18 why would I need that though? Apr 02 07:40:19 Jak_o_Shadows1: you just include it in the off-site backups you're already doing... right? Apr 02 07:40:21 Jak_o_Shadows1: this is all in the docs though Apr 02 07:40:24 measurement is done in seperate thread or something? Apr 02 07:40:36 alowaniak: because isn't your problem that calling getMeasuredHeight returns the wrong value because it happens before onMeasure is called? Apr 02 07:40:58 well i don't know, I don't know how I can let it call onMeasure at all tbh Apr 02 07:41:12 (before it's drawn) Apr 02 07:41:28 alowaniak: views call onMeasure themselves, after they are measured, which is I think is sometime after they are displayed. Apr 02 07:41:46 if you try to call getMeasuredHeight/Width before onMeasure is called, you get garbage Apr 02 07:42:01 zeros, that is Apr 02 07:44:51 alowaniak: perhaps if you explain what you want to accomplish instead someone can help you? Apr 02 07:51:57 well what I actually want is; I've got a list and when there's been clicked on an item in it, I want it to slide down some content (like an expandable list but then with it sliding instead of immediatly showing) Apr 02 07:52:07 but I'm thinking about doing it differently anyways... Apr 02 07:52:42 it might look nicer to make it slide to the right (to a new fragment or something) to show the new list... Apr 02 07:52:48 i'm thinking framelayout and an animation for the 'new' content Apr 02 07:54:40 http://developer.android.com/resources/samples/USB/MissileLauncher/src/com/android/missilelauncher/MissileLauncherActivity.html in the functin onCreate, there's a R.layout.launcher and an R.id.fire what are these and where is R declared? Apr 02 07:54:56 R is generated Apr 02 07:55:11 it contains ID's Apr 02 07:55:52 alowaniak: whree can I find more information on how / why it's generated, and what it's for? Apr 02 07:56:33 jnewt: http://developer.android.com/guide/topics/resources/index.html Apr 02 08:00:33 is there a way to know, from looking at that, what type of resource R refers to, and the name of the file it's defined in? Apr 02 08:00:49 no they're ints Apr 02 08:01:04 what they are should follow from R..name Apr 02 08:01:13 R.layout or R.color etc Apr 02 08:01:37 although they're sometimes R.id.foo, which doesn't tell you Apr 02 08:02:01 ah, so one is a layout, the othere is an id, and theyre provided in an unknown file, maybe in the res folder? Apr 02 08:02:05 yes but at least you know that's a widget in a layout Apr 02 08:02:14 for sure in the res folder Apr 02 08:02:45 but R.string.bla may be in another file than /res/strings.xml Apr 02 08:03:22 also there may be multiple files with a string resource called bla but that's when you deal with multiple configurations so no worries yet Apr 02 08:03:23 it's up to you to know your resources - or to manage them, if you're working in a team Apr 02 08:04:19 i'm not working in a team, and i'm trying to know my resources, because without a team, you're right, it's all up to me. Apr 02 08:09:26 So I'm making an app with multiple activities that fetches posts through httprequests. The posts, which are fetched using an AsyncTask, populate a ListView in each Activity. Now, I've been more or less successfully implemented a ViewPager that flips between Fragments. Apr 02 08:10:17 However, when the application launches, all the Fragments get instantied and start running their respective AsyncTask, all at once. I'd like to be able to hold off the AsyncTask until a Fragment comes into view. Apr 02 08:10:34 Is this possible or should I go about this some other way? Apr 02 08:11:32 Hi, does anybody know a way to use the camera whilst the screen is turned off (PARTIAL_WAKE_LOCK doesn't seem to help)? thanks. Apr 02 08:12:05 To clarify. I'm used to talking about Activities, but Fragments seem to be the new and improved way of doing more or less the same thing. Which in this case means I'm using one Fragment for each Page. Apr 02 08:16:25 Hello :) just got started with eclipse.. and just trying to set a background image. Apr 02 08:16:35 coffe: background image on what? Apr 02 08:17:41 coffe: to set a background in a xml layout file, you can use: android:background="@drawable/bg" Apr 02 08:17:41 Untouchab1e, i did the hello world example, and i found in eclipse a other view where i could drag and drop add oblejcs. i just like to have a background image of my app .. Apr 02 08:18:06 when should i call unRegisterReceiver? Apr 02 08:18:12 I suggest using the visual designer as little as possible and stick to writing the xml and simply previewing the changes in the designer Apr 02 08:18:20 on pause? destroy? stop? Apr 02 08:18:29 jasonmog depends! onpause most often i think Apr 02 08:18:34 okay Apr 02 08:18:38 depends... Apr 02 08:18:43 Untouchab1e, okey, tnx.. i am new to java. Apr 02 08:18:52 coffe: your question has nothing to do with Java ;) Apr 02 08:18:59 but good luck :) Apr 02 08:19:44 Untouchab1e, ok i am new to both java and android development := Apr 02 08:19:45 :) Apr 02 08:20:24 ;) Apr 02 08:20:36 I recommend the notepad tutorial to get you up to speed Apr 02 08:20:54 coffe: http://developer.android.com/resources/tutorials/notepad/index.html Apr 02 08:21:00 Tnx... Apr 02 08:37:08 Does anybody know if there is a list of devices which can use the camera when the screen is off ? Apr 02 08:42:00 why would it be an issue? Apr 02 08:42:27 or rather, what's wrong with requiring the screen to be on Apr 02 08:43:16 it could be a power saving feature, when the screen goes off, it also puts other connected devices into sleep mode Apr 02 08:43:19 To conserve battery life on an app which take a photo every 10 seconds and runs off a battery Apr 02 08:43:43 lukejohn_osmahi: i have a possible solution Apr 02 08:43:56 lukejohn_osmahi: hold a cpu wake lock only, rather than the screen wake lock Apr 02 08:44:20 Hang on, if i have an activity with an always updating activity (network/gps/changing text), will the screen go off? Apr 02 08:44:53 lukejohn_osmahi: http://developer.android.com/reference/android/os/PowerManager.html read the top of the page PARTIAL_WAKE_LOCK Apr 02 08:44:59 Jak_o_Shadows: absolutely, unless you tell the system to keep the screen on - and eat your users' batteries Apr 02 08:46:25 yes I've tried using a partial_wake_lock and it doesnt seem to work on the device I am testing on, however I found which suggests that it may only be some devices that PARTIAL_WAKE_LOCK doesn't work for Apr 02 08:47:47 Leeds: Is there a simple method to keep it on? It seems like it should be in settings rather than code. (For my app, battery life is a huge issue, so we ignore it) Apr 02 08:48:17 thanks for the suggestion though. Apr 02 08:49:25 Jak_o_Shadows: http://developer.android.com/search.html#q=wake lock&t=0 Apr 02 08:52:56 lukejohn_osmahi: are you trying to keep the bright LED on the back of your phone on? Apr 02 08:53:54 no, I'm trying to switch the screen off to conserve power, but still take photos Apr 02 08:55:59 lukejohn_osmahi: i assume you've tried the DIM lock Apr 02 08:56:03 thats what ive seen used before Apr 02 08:56:09 in a similar app Apr 02 08:57:18 Untouchab1e, i am reading it .. but it says i should look in R.java.. but cant find it. Apr 02 08:59:08 coffe: R.java is generated from your res\ folder in your project Apr 02 08:59:22 coffe: you dont actually edit or maintain R.java Apr 02 09:00:07 Napalm, ok, its not there ..will try to run project and see if i can see it Apr 02 09:02:13 can I set layout_width to be relative to height? Apr 02 09:02:24 like say 80%height or something Apr 02 09:02:40 morning Apr 02 09:04:23 @zhulikas i think you can do this only in the java code - not in the xml file Apr 02 09:04:34 I see... Apr 02 09:04:41 well, that's what I am going to do now Apr 02 09:05:45 hey guys anyone know of any documentation on how to hook an already coded app which is done in c/c++ into an android app with the ndk Apr 02 09:06:54 You can't just use it without rewriting it for android anyways Apr 02 09:07:09 Mikellip: what do you mean? Apr 02 09:07:53 eagles0513875_: if you haven't written the code with the Android NDK, you need to do so... http://developer.android.com/sdk/ndk/index.html Apr 02 09:08:04 you shitting me O_O Apr 02 09:08:06 no Apr 02 09:08:11 Napalm: Yes the DIM lock works but I was hoping for less battery. I'll probs stick with DIM for now, thanks for your help Apr 02 09:08:16 well this is going to be a bitch on this huge project Apr 02 09:08:28 Mikellip: and the project I'm talking about is libreoffice the OOo fork Apr 02 09:08:44 hello Apr 02 09:09:00 good luck with that eagles0513875_ Apr 02 09:09:11 Mikellip: i have the ndk installed and I'm able to actually able to compile the code for android Apr 02 09:09:20 i just need to tie it in somehow with the UI I'm putting together for it Apr 02 09:10:12 i can't seem to get my host functionality working on my tablet. i've got a microcontroller tha enumerates as an hid device, but it isn't even recognized by android (works fine on win / nix) I have a sample app to use with it, but that doesn't help. but anyway, i know it's the tablet now for sure. Apr 02 09:12:21 Dark-Side: thanks :D Apr 02 09:12:34 jnewt: you have a shitty crappy Chinese crappy tablet Apr 02 09:14:13 Leeds: ok, i'll buy a new tablet. how do i choose one I know will work? Apr 02 09:14:28 you buy one from a real brand? Apr 02 09:14:54 you read up on Android's USB functionality? Apr 02 09:15:03 you take your accessory with you to the store to test it? Apr 02 09:16:35 I'd like to know where the differences are, and what causes the incompatibility Apr 02 09:18:00 presumably you're willing to pay consultancy rates to people to hold you hand when choosing? Apr 02 09:18:04 come on... Apr 02 09:18:44 i am willing to pay for a solid data backed answer to that question. It could save me a lot of time. Apr 02 09:20:51 If you want to call it hand holding, that's fine. I think no one knows and that's an excuse, meant to make me feel that it's easy, and I'm somehow deficient. Saying something is crappy, shitty, not real, brand is wrong, is just dodging the question. Come on... Apr 02 09:27:06 hi Does anyone one of you know a way how to use the AudioRecord and the RecognizerIntent at the same time? Apr 02 10:18:19 does the android sdk work with 64bit java nowadays? Apr 02 10:20:32 if I "adb install x.apk", is it just as i would update my app via the play shop? Apr 02 10:20:52 yes, except the market - play store! - doesn't know about it, so it won't get updates Apr 02 10:20:53 Or is it as if I would completely uninstall and reinstall the "x.apk" Apr 02 10:21:14 Leeds: Ah, okay. That's fine! :) Apr 02 10:21:24 Don't care, its just for testing purposes^^ Apr 02 10:25:23 Leeds: Are you sure it is "adb install"? as i get an "INSTALL_FAILED_ALREADY_EXISTS" error Apr 02 10:25:42 adb uninstall it first Apr 02 10:26:01 or "adb install -r" to reinstall Apr 02 10:26:09 oh, nice Apr 02 10:26:24 That wouldnt be exactly as a play shop update, right? Apr 02 10:26:35 I don't want the data (databases, shared preferences) to be lost Apr 02 10:27:39 RTFM, folks Apr 02 10:27:59 #done, thanks. Apr 02 10:31:22 When should I use Log.v vs Log.d - I find myself just using verbose as default Apr 02 10:31:56 samsung touchwiz developers like to use Log.e for printing verbose messages in their widgets Apr 02 10:31:59 it's lovely Apr 02 10:32:03 logcat is just almost all red Apr 02 10:32:16 haha oh dear! Apr 02 10:32:27 yay for filters Apr 02 10:33:19 not sure I've posted a link to http://android.vmlinuz.org/bbp.html recently... Apr 02 10:34:43 Leeds: looks, thanks I'll have a read. Apr 02 10:38:28 @Zharf - i think you must install ia-32 packet in ubuntu and it should work Apr 02 10:41:24 kselos, I'm on windows Apr 02 10:46:18 well at least ddms works Apr 02 10:59:18 hi Apr 02 10:59:58 is here any tool for extracting .apk and showing on what architecture in can be launched ? Apr 02 11:00:27 for example i had а mips based tabled and i want to code а tool for detecting if it can run on my device Apr 02 11:19:37 is it possible to have one textview and have 2 differnet colours for some of the text? Apr 02 11:21:23 yepp Apr 02 11:21:51 http://stackoverflow.com/questions/1529068/is-it-possible-to-have-multiple-styles-inside-a-textview Apr 02 11:21:57 how I may launch my_method (not whole activity) for a response for specific action in the Android ? Apr 02 11:22:40 kselos: what kind of action? Apr 02 11:22:58 thanks man Apr 02 11:23:26 I am guessing you probably want to use a BroadcastReceiver, but I'll wait to see what you say. Apr 02 11:23:30 * everythingWorks got in-app billing workin 0o x) Apr 02 11:23:40 hi all: is it posible to have a sqlite db as a resource? Kind of like a database with the schema and some rows already filled. Apr 02 11:24:04 I have metod to generate galeryView with icon of instaled aplication in Android, and I want to regenerate this view in response for new packet instalation Apr 02 11:24:06 deviantpeer: no, but you may create it in the first start. Or you may copy it from the assets to the apps's dir. Apr 02 11:24:07 e1z0: an APK is a zip file, and if your only concerned about architecture then you just need to examine the ELF headers of any shared objects in the /lib directory Apr 02 11:24:25 e1z0: to see if they have a mips archive Apr 02 11:24:44 *mips arch signature Apr 02 11:25:38 everythingWorks: thx. creation at first star is what I was trying to avoid... why have every device do the same thing when it's be the same for all. copying it is probably a good solution. going to look at it. Apr 02 11:25:57 I know that BroadcastReceiver in response for that action can run an activity but I want only to run only the metod with regenerate that galleryView Apr 02 11:26:21 =) Apr 02 11:26:52 kselos: and where is the gallery view going to be displayed...? Apr 02 11:27:21 on the main activity Apr 02 11:27:42 oh ok Apr 02 11:28:11 Napalm, if i use unix tool "file" maybe it show me Apr 02 11:28:19 kselos: you can have a BroadcastReceiver *in* your Activity, and register it programmatically. Apr 02 11:28:23 I want to simply refresh this galleryView Apr 02 11:28:36 e1z0: you want objdump Apr 02 11:28:49 oh, ok Apr 02 11:31:51 readme: how register this BroadcastReceaver programmatically ? i always add to the manifest information about BroadcastReceiver and make a class with extends BroadcastReceiver Apr 02 11:32:12 In my ListView, I need to stack the items in my data source from Bottom of the listview. How to do this properly? Apr 02 11:32:41 kselos: yes Apr 02 11:32:58 sorry Apr 02 11:33:08 but in that case it wont works Apr 02 11:34:10 i must make some class extends Activity and implements BroadcastReceiver ? Apr 02 11:34:53 Hey, i've got a laptop with ubuntu on it for emulating the google-tv emulator device... also i have a developing mashine where my eclipse runs and my whole project is stored... how can i connect to the emulator on the laptop? I already tried several adb forward .... commands but none did work. Can somebody please explain me in detail how to achieve the connection to the emulator? Apr 02 11:35:08 but how i do it in manifest > Apr 02 11:38:29 I thought that only you can extend  Actyvity or BroadcastReceiver but not  both at once in the same class Apr 02 11:38:43 You could always declare a perl filter and then cascade a TDD agile framework while staying true to category-theoretical tail-recursion constraints in O(n log n) space. Apr 02 11:39:07 kselos: you can have inner classes Apr 02 11:39:38 http://docs.oracle.com/javase/tutorial/java/javaOO/innerclasses.html Apr 02 11:40:53 readme yes I know but how I add that information about inner class to Manifest ? Apr 02 11:41:11 kselos: you don't. you register the receiver programmatically Apr 02 11:41:53 how can i do that ? do you know some documentation about how to do that ? Apr 02 11:42:15 http://developer.android.com/guide/topics/intents/intents-filters.html Apr 02 11:42:19 http://developer.android.com/reference/android/content/BroadcastReceiver.html Apr 02 11:43:08 http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29 Apr 02 11:43:58 readme I think I asked this recently and was too drunk to register the response, so I'm going to have to ask it again. Apr 02 11:44:33 sucker Apr 02 11:44:55 freecandy: my memory isnt that good, so just ask Apr 02 11:45:07 Is there an example of you would use Log.v over Log.d and vise versa Apr 02 11:45:25 readme thanks very much - I owe you Apr 02 11:45:39 verbose is for users, and debug for developers? Apr 02 11:45:54 What is the point of an intent? It looks like a very inefficient way of calling into code, where you type a bunch of stuff that matches other stuff in an xml file that resolves into code that finally gets run. Apr 02 11:46:01 Snuffel: no verbose if definitely not for users. Apr 02 11:46:32 it usually is Apr 02 11:46:41 freecandy: they are for message passing/starting things/broadcasting, and are capable of IPC Apr 02 11:46:48 I am using ActionBarSherlock. I am trying to witch between those tabs using Fragments and TabListener. Any ideas why using ft.replace(R.id.root, mFragment); dettaches the fragment, then attaches it but it stays invisible? Apr 02 11:47:10 Insane Posse Clown or what is that? Apr 02 11:47:13 using isHidden() returns false, using isVisible() returns false and using isDetached() returns false. Apr 02 11:47:24 hello, is there a list of known security vulnerabilities for the different android versions and maybe information about if they are exploited in the wild? for example 2.3.7 Apr 02 11:47:25 But the onAttach executes fine. Apr 02 11:47:28 freecandy: using Intents you can make your components nice and loosely coupled Apr 02 11:47:43 I always thought intents were idealized for communication between different apps, but just happened to be capable of in-app communication, so thus in the interests of non-redundancy, kept like that. Apr 02 11:48:51 just because your code will still compile without pieces doenst mean it's loosely coupled Apr 02 11:49:14 So if I am the master of my domain, intents seem kind of silly. While if I were just a pawn in some jerk's universe, they would make sense. Apr 02 11:49:30 hey guys is it possible to get the android source code and compile it and install it in a vm? Apr 02 11:49:35 laxo: theres a security discussion group Apr 02 11:49:37 freecandy: when you are programming for android, you are *not* the master of your domain. Apr 02 11:49:38 try finding that Apr 02 11:49:50 freecandy: you are in a sandbox. you are on the user's device. Apr 02 11:50:14 freecandy: What else are you going to use for communication between different bits of code? You surely see the benefits in splitting it into seperate files? Apr 02 11:51:42 listeners? Apr 02 11:51:58 what do you normally use for communication between different bits of code in java? Apr 02 11:51:59 Jak_o_Shadows1: observer pattern Apr 02 11:52:03 Jak_o_Shadows1: global state Apr 02 11:52:09 Jak_o_Shadows1: tin can + strings Apr 02 11:52:49 For context, I'm coming from a place where we'd just be able to call a random method. We wouldn't have to have permission from the coder to call into it. There were public/private comments, but those were just guides. If you wanted [random piece of code] run, you'd just say run [random piece of code]. Apr 02 11:53:01 shared preferences! Apr 02 11:53:51 freecandy: public static void spaghetticode() { // call me anywhere } Apr 02 11:54:43 android can't force good programming on you, but it can make it attractive by providing you with all the tools required. Apr 02 11:55:00 well, they try, with strict mode, anyway Apr 02 11:55:15 but that's not going to catch spaghetti coders Apr 02 11:56:34 So I suck, but maybe I don't know what's available to me. Is it everything that's really fully advertised as an intent as blah.blah.blah.CAPS or is there more stuff that I can use? Apr 02 11:57:00 freecandy: if you are new to OOP it just takes a while to get the gist of it Apr 02 11:57:37 IntentServices are nice. Apr 02 11:57:50 freecandy: i recommend reading programmers.stackexchange.com, maybe getting a design patterns book, that should set you on the right track Apr 02 11:58:08 the best design patterns book is the gang of four book, but it is advanced.. start with something easier, then get that Apr 02 11:58:15 k thx Apr 02 11:58:17 good recommedation readme Apr 02 11:58:27 Which is the gang of four book? Apr 02 11:58:27 is it still april fools day? i just tried to autocomplete a word? Apr 02 11:58:37 mikedg: did you type it in morse? Apr 02 11:58:57 freecandy: it's called "Design Patterns" aka, the gamma book, aka, gang of four book. Apr 02 11:59:54 bookmarked Apr 02 12:00:25 that april fools app was reasonably clever. Apr 02 12:01:05 any1 know if you can put sql function thingy's in the columns array? Apr 02 12:01:17 like when you do query(table, columns Apr 02 12:01:36 if you can do count(some_column) Apr 02 12:01:43 I'm working on a pretty simple app that uses a library to handle all the clever stuff. Don't want to go into more detail, but is this a bad place for a developer to start out? Apr 02 12:01:59 and possibly even "count(some_column) as amount" Apr 02 12:02:01 ? Apr 02 12:02:17 Is there anything like BlueCove that supports x64 better? Apr 02 12:02:34 freecandy: nothing wrong with starting here as long as you at least know how to write java programs. Apr 02 12:02:41 which I'm fairly confident you do Apr 02 12:02:43 Hey, i've got a laptop with ubuntu on it for emulating the google-tv emulator device... also i have a developing mashine where my eclipse runs and my whole project is stored... how can i connect to the emulator on the laptop? I already tried several adb forward .... commands but none did work. Can somebody please explain me in detail how to achieve the connection to the emulator? Apr 02 12:03:47 Hah, thanks for that. I wouldn't hire me as a java dev. Apr 02 12:03:54 freecandy: but others would Apr 02 12:04:04 so we have to hold ourselves to high standards Apr 02 12:04:09 because hiring managers aren't going to Apr 02 12:05:44 wisdom Apr 02 12:05:54 barely Apr 02 12:05:59 i'm pretty noob myself Apr 02 12:06:32 <-- noob here Apr 02 12:06:53 alowaniak: hah i dont actually remember anymore Apr 02 12:06:54 heh Apr 02 12:06:57 did you try it Apr 02 12:06:59 should be simple to try Apr 02 12:07:23 well ye but i would have to make new activity with database etc. etc. so was hoping asking would be faster:p Apr 02 12:07:28 ah Apr 02 12:07:35 you can defnitely do that somehow :) Apr 02 12:07:41 it's just very early and im friggen tired Apr 02 12:07:53 so i cant think Apr 02 12:08:05 well I can do rawQuery Apr 02 12:08:28 but was hoping to do it with normal query Apr 02 12:08:36 will just try it out though:p Apr 02 12:10:48 What would you do? I have pngs which get decoded by BitmapFactory.. now the png seems to have transparent pixels and the decoding process seems to take transparent pixels as white ones Apr 02 12:10:48 hi, when I activate the wifi, Gmail automaticaly update, what can I do to do the same with a service ? Apr 02 12:10:55 it really looks shitty. Apr 02 12:11:09 ohw8 nvm i think i'll just use rawQuery Apr 02 12:12:13 alowaniak: Pretty sure you can just put "count(column) as amount" in the columns array query takes Apr 02 12:12:21 ah k, thnks:) Apr 02 12:13:16 hey guys curious how does one go about compiling a customized rom? Apr 02 12:15:53 eagles0513875: by getting the source from s.android.com and joining #android-root where they discuss custom roms Apr 02 12:16:59 readme: ok Apr 02 12:19:34 readme: i have a question about android development if i set up an ubuntu vm environment im just wondering can i use the openjdk instead of the sun java stuff? Apr 02 12:21:16 what's the name of the app that allows an emulated 'multi-user' setup? Apr 02 12:22:09 eagles0513875: it will work but is unsupported Apr 02 12:22:45 switchme Apr 02 12:24:00 does anyone knows how can I open a pdf file within the activity? Apr 02 12:24:35 Hi , anyway I can connect google tv device with usb host ports (only) to PC ? Apr 02 12:25:20 @zerecoteco: see this http://stackoverflow.com/questions/2456344/display-pdf-within-app-on-android Apr 02 12:31:21 readme: ok Apr 02 12:35:17 ive got a tabhost and some tabs and the edges between the tabs and the content they show are sort of faded out, but the fade is too big, how do i adjust? i changed faded edge length to 2dp but it looks the same Apr 02 12:40:44 maybe 2.1 doesnt support this Apr 02 12:45:21 hmm adjusting fading edhe to none and even fading edge length has no affect at all on my tabs, whys this ? Apr 02 12:47:22 natrix, yes... I've already seen it... But I couldn't make it works Apr 02 12:47:46 does anybody know why android doesn't always execute the applyTransformation method of a custom animation? there are times it does, and other where it just skips it entirely Apr 02 12:48:01 natrix, have you already tried it? Apr 02 12:51:10 @zerecoteco: I'm worried about frying my android or PC usb ports Apr 02 12:56:22 and its manufacurer says USB 2 host Apr 02 13:06:11 <_SKiTZO> does the classpath specified in android:settingsActivity attribute of the tag need to be relative to the package name set in android manifest? Apr 02 13:07:12 <_SKiTZO> i am trying to specify an absolute packagename there and it fails looking for com.playmio.android.wallpaper.common/com.playmio.wallpaper.sky.Settings Apr 02 13:08:04 yes Apr 02 13:08:33 Eh, no Apr 02 13:08:44 Just remember you still have to register the activity in the manifest Apr 02 13:08:45 oh Apr 02 13:08:46 :) Apr 02 13:09:26 ive uninstalled almost eveyr app i have but somehow im getitng insufficient space, its like android eats a little bti of space etra even reinstallign the same app Apr 02 13:13:26 <_SKiTZO> SimonVT: ok thanks! Apr 02 13:17:39 <_SKiTZO> SimonVT: It is allready specified in the manifest by its full package name, which is identical to the one specified in the wallpaper tag (com.playmio.wallpaper.sky.Settings) Apr 02 13:19:18 <_SKiTZO> hehe i figured it out! typo Apr 02 13:19:20 <_SKiTZO> :D Apr 02 13:19:28 ur a skitzo! Apr 02 13:25:19 Error of the day: One device sparks a "java.lang.ExceptionInInitializerError" in the emu but not on my actual device - which one should I believe? Apr 02 13:25:47 I'm initilalizing a few MediaPlayers in my code, and later on passing them to an asynctask to be .start():ed Apr 02 13:26:07 hmm, I set Locale.setDefault(Locale.US) in my onCreate but my app is still showing errors for parsing Doubles as 1,72. The data I have is 1.72 but not honoring my locale. I recently supported Spanish locale but force it to US locale just during calculations in my mapview activity. Apr 02 13:26:20 why there is no USB-driver in my sdk download manager ? in extra section Apr 02 13:26:46 QubeZ i didnt know local affected parsing numbers Apr 02 13:27:01 Gaz`: in spanish locale, numbers are like 1,72 instead of 1.72 Apr 02 13:27:44 so that is entering my try/catch block... I force Locale.US to ensure all data is in decimal format .. but I received an error report this morning where parsing broke even though I explicitly change locale to US in on onCreate Apr 02 13:29:31 weiiird Apr 02 13:29:36 maybe just replace the comma for a dot Apr 02 13:29:38 in code Apr 02 13:29:59 ya but then what happens when i localize to other languages? I dont want to quick fix just for Spanish Apr 02 13:30:12 arte there any change sin other langs Apr 02 13:30:14 there might be other issues im not aware of, thats is why I'm trying to force US locale just for calculations Apr 02 13:30:51 QubeZ: can you pastebin the relevant code? Apr 02 13:31:26 wongk: sure Apr 02 13:33:10 http://pastebin.com/TF9nHg8R Apr 02 13:33:22 line 33 is the catch Apr 02 13:33:29 where NumberFormatException happens Apr 02 13:33:52 Hi, Im working on a canvas game. I want to populate a grid with objects on the canvas. The objects are placed in a ArrayList which is "for-looped" in onDraw() problem is that it never stop drawing new ones on top of the old ones. so it just constantly adds new on top of the previous how do i avoid this? Apr 02 13:35:01 QubeZ: so fuelUsed is in the format #,##? Apr 02 13:35:30 ya, the actual data is 1.72 but since Java is being locale-specific and making it 1,72 -- its throwing off my conversion Apr 02 13:35:37 although I set Locale.US in onCreate Apr 02 13:36:16 so the actual JSON data uses '.', but JSONObject changes it to ',' Apr 02 13:36:24 has anyone here used google checkout response handler with in app purchases? Apr 02 13:36:27 ya appears to Apr 02 13:36:40 interesting Apr 02 13:37:20 well, i don't know why it's doing that, but if you like i have a bit of code that will force any number into US format :P Apr 02 13:37:34 wongk: sure Apr 02 13:38:28 QubeZ: http://pastebin.com/EgsuNVxK Apr 02 13:38:46 its weird that fuelUsed is not breaking here Apr 02 13:38:53 it also has 0.29 but stays fine Apr 02 13:39:37 its actually breaking on the distance conversion code Apr 02 13:40:10 and my two lines of code are different hmmm Apr 02 13:40:26 see the code diff on fuelUsed vs distance? I have a parse to Double before that too Apr 02 13:40:29 not sure why Apr 02 13:41:02 when are R.id's generated? Apr 02 13:41:21 I am *constantly* having to clean my eclipse project, and even then it sometimes does not resolve the R resources class. Anybody know a way to fix this? Apr 02 13:42:03 dont use eclipse! Use Intelli J Idea :-) Apr 02 13:42:32 OK anybody else know a way to fix this? hehe Apr 02 13:42:38 wongk: how do I pass in the dfs param? Apr 02 13:42:38 sha1sum, have you made sure your XML resources do not have any errors? have you made sure your build path is all correct? Apr 02 13:43:01 new DecimalFormatSymbols(Locale.getDefault()) Apr 02 13:43:58 obviously remove the bit of code that sets the default locale in your activity Apr 02 13:44:51 k thanks Apr 02 13:44:55 alexfu: I feel like a damn idiot now. Thanks. Tree conflicts during merge. :| Apr 02 13:45:07 still curious why it does this yet fuelUsed works fine Apr 02 13:46:05 anyhow, off to work Apr 02 13:46:06 thanks wongk Apr 02 13:46:08 I'd like to have 4 equal squares on the screen of a tablet (I'm developing for 3.0 HoneyCone) for 4 steps that a user must take.....out of the Layout Options, Linear Layout, Relative Layout, Frame Layout, or Table Row..how would I set this up for 4 equal squares Apr 02 13:46:15 sha1sum, no prob. Apr 02 13:47:10 john_doe_jr: 3 linear layouts... though i believe honeycomb has GridLayout Apr 02 13:47:58 ahh, nope, that was added in 14 Apr 02 13:49:25 does anybody know why android doesn't always execute the applyTransformation method of a custom animation? there are times it does, and other where it just skips it entirely Apr 02 13:50:04 is there any way that a requestCode could be changed when using startActivityForResult? I call startActivityForResult with a specific requestCode and then when onActivityResult the requestCode is different. Apr 02 13:50:28 *when onActivityResult is called, the requestCode is different Apr 02 13:54:01 hello guys, i'm not an android dev, but a Java one, ... an di would like to know wether or not it is possible to implement a web service or any other kind of service that would run in an Android smartphone so that i can use that service to send SMS remotely. ... i don't want to rely to a third service where i would pay in order to send my SMS. Thanks in advance Apr 02 13:54:26 wongk: I don't see a Gridlayout in eclipse...do I have to add it ? Apr 02 13:55:57 john_doe_jr: see my previous comment about it being added in SDK 4 Apr 02 13:56:00 14 Apr 02 13:56:20 wongk: GrigLayout was added to compatibility lib afaik Apr 02 13:56:25 paissad: can you write an app on android which acts as a server and sends sms? Yeah; with appropriate permissions. Sounds like you want this for personal use which makes it a lot simpler Apr 02 13:56:51 atermenji: yeah, but for something as simple as 4 squares, 3 linear layouts is cake Apr 02 13:57:07 paissad: I assume you'll talk to it over wifi. If you have the network permission and the sms permission then you can probably use your existing java webserver code w/ no significant changes. There's a bunch of little android lifecycle thigns you'll have to learn but it won't be too hard. Apr 02 13:57:20 dragorn: yeah, it's completely for personal use, ... glad to know it is possible to write an application that would act as a server ;) Apr 02 13:57:44 wongk: sure. DashboardLayout can also be used Apr 02 13:57:54 hmm, never heard of that one Apr 02 13:57:58 dragorn: i will google that much more then, ... thanks ! ... btw, if you have some advice for me, that would be pretty good too :P Apr 02 13:58:00 paissad: it's the kind of thing that if you tried to put it in the market, it looks really sketchy, but it's totally possible to do so if you're just going to run it on your own stuff you don't have to worry about it Apr 02 13:58:01 So, I'm browsing the source at https://github.com/android and trying to learn more about how View.OnClickListener works ... anyone know where in the tree I can find that? Apr 02 13:58:30 wongk: alright, so it was added in API 15 or Android 4.0.3 so I won't be able to use it since I'm developing for Android 2.3 Apr 02 13:58:33 *Android 30 Apr 02 13:58:59 wongk: it is custom one from iosched app. Look here http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java Apr 02 13:59:04 GridLayout is in the support library Apr 02 13:59:08 Backported to api7 Apr 02 13:59:09 john_doe_jr: not unless you wanted to add the compatibility lib that adds it, but i don't really see a reason for that Apr 02 13:59:29 paissad: there's a lot of docs on the developer.android.com site; you'll need to read about permissions in the manifest file, how to send intents (that's how you'll send the SMS), and you'll need to run your network server in a thread. Beyond that it's as complex as you want to make the UI - you could have it just sit there runing a 'hello world' screen, or you could do it as a background service with a full ui and all the other flower Apr 02 13:59:30 y stuff Apr 02 14:00:56 dragorn: got it Apr 02 14:01:01 wongk: alright, so the container would be a linear layout but it would contain 3 linear layouts but in a horizontal view Apr 02 14:01:23 1 vertical, 2 horizontal Apr 02 14:04:11 paissad: stackoverflow usually has some good android help too, i bet you can find a complete 'send a sms' code example Apr 02 14:05:03 dragorn: indeed, i'm pretty user of stackoverflow too Apr 02 14:05:20 i try to show menu options when i click for long on android and its not working dont know why Apr 02 14:05:22 http://pastebin.com/Qx7NbczW Apr 02 14:07:11 CashD: by not working i assume you mean the bg color doesn't change? Apr 02 14:07:25 i mean i dont see the menu Apr 02 14:08:32 so i cant check yet if the colors work Apr 02 14:08:36 CashD: have you read: http://developer.android.com/guide/topics/ui/menus.html#context-menu? Apr 02 14:08:43 yes Apr 02 14:09:08 i dont see any registerForContextMenu Apr 02 14:10:21 oh i see Apr 02 14:10:37 but they dont show how to use it Apr 02 14:10:52 you pass it a view Apr 02 14:11:15 Not everything can simply be copied from example Apr 02 14:11:20 Sometimes you gotta write your own code Apr 02 14:11:35 thats what i try to do Apr 02 14:11:39 write my own code Apr 02 14:13:46 hmm Apr 02 14:13:51 i've got an expandablelistview Apr 02 14:14:06 and use a SimpleCursorTreeAdaptar on it Apr 02 14:14:14 the expanding goes nicely Apr 02 14:14:20 but when i press on a child item Apr 02 14:14:41 i get an exception "Couldn't read row 0, col -1 from CursorWindow" Apr 02 14:14:47 zomg Apr 02 14:14:50 is that simon vt? Apr 02 14:15:35 What? Where? Apr 02 14:16:54 is it possible to use JSoup in android? I've written a Java program that i'm trying to port to android but i never thought about whether it's possible or not.. Apr 02 14:17:14 wongk: alright, I'm trying to work this out with 4 squares but I need items in the squares so it's not working....I guess I need a table layout Apr 02 14:17:15 we need android pones with white faces Apr 02 14:17:54 john_doe_jr: what isn't working Apr 02 14:17:54 wongk how i pass it to make my background i want? if #FF0000 not working Apr 02 14:18:11 you need the transparency byte Apr 02 14:18:19 #FFFF0000 Apr 02 14:19:14 wongk: well, I need to have 4 steps in my app screen but each Step has to have textviews....each step isn't exactly even...for example step 3 doesn't have a lot of text views Apr 02 14:19:32 but how i pass it as integer? Apr 02 14:20:06 john_doe_jr: you can use layout weights to make each row and each column take 50% Apr 02 14:20:27 wongk: how do I do that? Apr 02 14:20:30 CashD: the same way you're currently passing them as an integer? Apr 02 14:20:59 http://stackoverflow.com/questions/3995825/what-does-androidlayout-weight-mean Apr 02 14:21:00 i dont know how to pass colors as integers Apr 02 14:21:56 oh as i did before Apr 02 14:21:59 TableLayout may work, i've not worked with that layoiut Apr 02 14:22:01 0xFFFF0000 Apr 02 14:22:23 any1 an idea on why I'm getting Apr 02 14:22:32 "Couldn't read row 0, col -1 from CursorWindow" Apr 02 14:22:35 with ExpandableListView Apr 02 14:22:41 (when I click on a child item) Apr 02 14:25:11 i am the walrus coo coo cachoo Apr 02 14:25:18 the walrus of #android-dev Apr 02 14:26:34 hmm nvm i think i found why Apr 02 14:26:52 mikedg: how's that working our for ya? :P Apr 02 14:27:01 i guess it internally tries to find a row with _id and I didn't add that in projection Apr 02 14:31:22 mikedg how's chicago? Apr 02 14:36:15 better than canada! Apr 02 14:36:36 i live chicago Apr 02 14:36:38 er Apr 02 14:36:43 i like chicago Apr 02 14:36:54 I'm trying to use this PDF lib: http://code.google.com/p/vudroid/ ... I've checked out the svn, but eclipse doesn't recognize that it is an android project... does anyone can help me? Apr 02 14:37:00 i like turtles Apr 02 14:37:15 specially Ben Pao and Giardanos Apr 02 14:37:26 makes me hungry Apr 02 14:38:50 wongk thx now its work Apr 02 14:39:54 wootie woot setup ndk building in eclipse Apr 02 14:41:02 Hi, in which situation can it happen for the sd card which is in the phone to not be accessible by Android? Apr 02 14:41:18 if it's removed Apr 02 14:41:21 or mounted to a PC Apr 02 14:41:34 or unformatted Apr 02 14:41:47 so if it's mounted to a PC it can become unaccessible to the Android OS? Apr 02 14:41:54 it will be Apr 02 14:42:01 not can, but will :) Apr 02 14:42:01 ok, thanks! Apr 02 14:42:05 no problem Apr 02 14:42:13 is there some way to run an app where activities/fragments/etc.. get destroyed all the time, for debugging? Apr 02 14:42:45 if you have ics Apr 02 14:42:46 abaratican: there is in ICS Apr 02 14:44:16 Hi, Im working on a canvas game. I want to populate a grid with objects on the canvas. The objects are placed in a ArrayList which is "for-looped" in onDraw() problem is that it never stop drawing new ones on top of the old ones. so it just constantly adds new on top of the previous how do i avoid this? Apr 02 14:44:38 Duke_Puke: calculate where they should be drawn based on the position in the list? Apr 02 14:44:46 Duke_Puke: clear em first? Apr 02 14:44:59 There is a facebook android integration library, but is there one for twitter? Apr 02 14:45:05 my google fu is failing me Apr 02 14:45:24 mFragment.isAdded() returns false but it is added (I see it on the screen) using ft.add(R.id.root, mFragment); Apr 02 14:45:24 snooplsm: I don't know of an official one, but I bet there are third-party wrappers Apr 02 14:45:27 what am I missing? Apr 02 14:45:37 evancharlton: i want to avoid using oauth and shit Apr 02 14:45:41 I don't have ics, but if I did, how would I do that? Apr 02 14:45:45 since that will take considerably longer Apr 02 14:46:08 evancharlton: I have a method that fills a arraylist with objects. The objects contain coordinates and a bitmap. This is later on drawn but in wich method should i put the arraylist-filler method-call? Apr 02 14:46:16 hmm, i'm working on a simple application that is fetching data from a webpage.. i don't have any errors but it keeps crashing on my emulator.. anyone care to look at some code? it's not much.. Apr 02 14:46:22 abaratican: Settings > Developer Options Apr 02 14:46:32 Duke_Puke: what? I don't know, it's your program .. ? Apr 02 14:46:50 Thylith: your internet prob can't resolve dns on your emulator.... using a mac? Apr 02 14:46:51 snooplsm: you mean you don't want the user to use oauth or you don't want to implement it yourself? Apr 02 14:47:01 Thylith: if it is crashing there must be errors :) Apr 02 14:47:03 evancharlton: I don't want to implement it Apr 02 14:47:08 snooplsm, no Win7 Apr 02 14:47:08 Thylith: logcat Apr 02 14:47:27 I'd be willing to bet you're either missing INTERNET or you're doing network on the main thread Apr 02 14:47:42 either way, logcat will let you know pretty quickly Apr 02 14:47:51 evancharlton: yes but it is overrided methods for a threaded surfaceview. I just wondered if you know where to put the "run-once" commands Apr 02 14:48:11 not commands i meant methods Apr 02 14:48:11 Duke_Puke: constructor? *shrug* Apr 02 14:48:18 put it where it makes sense Apr 02 14:48:42 hmm Apr 02 14:48:43 evancharlton: I tried but then it wont update if a object is added or deleted :/ Apr 02 14:48:44 logcat here: http://pastebin.com/BQaBBc2q Apr 02 14:48:55 evancharlton: But thanks for the help :) Apr 02 14:49:12 Thylith: your build path is messed up Apr 02 14:49:29 aha oho.. Apr 02 14:52:36 evancharlton, it starts though, but crashes when i press a button... Apr 02 14:52:52 so, it builds but can't find the paths to the methods when button is pressed? Apr 02 14:53:25 Jsoup didn't get built into your classes.dex for whatever reason Apr 02 14:54:38 alright.. Apr 02 14:55:35 ok i fixed the path but now i have other problems.. but that is just code issues :P Apr 02 15:03:35 Hello, I'm looking to make an app as a front-end to a website for my project for school. Was wondering what the best approach for connecting to the MySQL Server would be. Ie, Invoking the PHP on a web page by using post, or directly connecting to the mysql db Apr 02 15:04:15 So I guess what I'm asking is, what's the most flexible/easiest approach, and what classes in the android SDK should I be using to perform the task? Apr 02 15:04:38 the device will be running off AVD, and apache/mysql-server running off a VM Apr 02 15:04:41 on the same machine Apr 02 15:05:02 Are Google Play overall statistics something published? i.e. # of users that hit the store day/week/month etc? Apr 02 15:06:07 BenRain: HttpURLConnection and have your webserver respond with something easy to read like json or xml perhaps? :) Apr 02 15:06:28 json? Apr 02 15:06:32 lemme google that Apr 02 15:06:52 ah okay Apr 02 15:06:53 so Apr 02 15:07:02 BenRain: do you have a REST interface currently? Apr 02 15:07:13 Make specific php pages for the android app, seperate from the website, and have the php return xml? Apr 02 15:07:14 so i set a breakpoint in my code on line 545, but when it hits it, eclipse opens up the .class file, and says my file is only 544 lines long Apr 02 15:07:17 or just php pages that output HTML? Apr 02 15:07:29 php pages that output html Apr 02 15:07:47 the website is done, I have yet to begin the app development Apr 02 15:07:49 BenRain: I'd return JSON Apr 02 15:07:51 a REST layer would be best, but would require significant server side work Apr 02 15:07:58 wongk, looking for a quick fix Apr 02 15:08:05 it's just for a proof of concept Apr 02 15:08:09 nothing too fancy Apr 02 15:08:14 BenRain: Just add json_encode($your_array_with_news_or_whatever); Apr 02 15:08:28 it's basically a shopping website Apr 02 15:08:46 so json is built into php then? Apr 02 15:08:50 Might be easier to just load up a browser(i.e. webview) in your app, and point it to your server Apr 02 15:09:02 i don't think a 'quick fix' is possible, other than a mobile version in a webview Apr 02 15:09:09 BenRain: Should be, yes, atleast the json_encode/decode() Apr 02 15:09:17 BenRain: It workes quite good imo. Apr 02 15:09:38 n20, so I would have to basically encode the Rows Apr 02 15:09:41 ie Apr 02 15:10:02 $result = (query of SQL SELECT) Apr 02 15:10:09 then encode that, and send it back to android? Apr 02 15:10:43 Read about webservices. REST seems to be popular these days. Then consider doing something like this http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html Apr 02 15:15:00 hmm, why doesn't this code work? how can i get the 'newdoc' string data outside the try/catch block? Apr 02 15:15:01 http://pastebin.com/BT5b92BM Apr 02 15:19:12 Okay, I found this tutorial: http://www.helloandroid.com/tutorials/connecting-mysql-database Apr 02 15:19:16 Is this a good outline to follow? Apr 02 15:46:58 is there a utility method in android to write the contents of an inputstream to a file (in the context of an HttpClient) Apr 02 15:47:10 FileOutputStream... Apr 02 15:47:16 Fil..yea Apr 02 15:48:22 in the bin folder is the apk named after the project? Apr 02 15:48:26 was hoping for something kinda like EntityUtils.toString Apr 02 15:48:43 roger_padactor: yes Apr 02 15:48:58 storkme: public class EntityUtils { ... } Apr 02 15:49:00 (thus 'utility method') Apr 02 15:49:01 fill in the blanks Apr 02 15:49:35 it doesn't have a method for writing from an inputstream to a file now does it you fucking clown :p Apr 02 15:49:52 programming is hard Apr 02 15:49:54 Can someone remind the position of first item in a list? 0 or 1? Apr 02 15:50:06 remind me of* Apr 02 15:50:07 storkme: if you're terminally curious use the nio stuff Apr 02 15:50:13 t432: 0 Apr 02 15:50:18 thx Apr 02 15:50:21 was just hoping to avoid some boilerplate Apr 02 15:50:42 meh. help ./.. 0x00000000 is supposed to be transparent right? not black ... Apr 02 15:50:47 storkme: http://www.java2s.com/Code/Java/File-Input-Output/FileCopyinJavawithNIO.htm Apr 02 15:50:51 you can probably reuse something like that Apr 02 15:50:56 (don't ask me how, and I don't care) Apr 02 15:51:01 I am creatting an animation on the child of an expandable listview it is supposed to start at the top and slide down to its final position. The problem is that it when in animates it is the top-most view covering up other views I do not want this can anyone help? Apr 02 15:51:15 I have tried setZadjustment and that does nothing Apr 02 15:51:20 yeah i don't care that much Apr 02 15:52:51 sweet Apr 02 15:53:44 hmm. im trying to install my app with out the use of eclipse it installs fine but its missing content. Is the apk from the bin folder not the whole app or something? When It is install from eclipse it works fine. Apr 02 15:54:34 roger_padactor: are you just doing adb install bin/Appname-debug.apk? Apr 02 15:54:37 roger_padactor: you might want to modify the build.xml file if you use external java projects or something Apr 02 15:55:00 but yes, the apk file in bin is supposed to be the "finished" project Apr 02 15:55:14 are you trying to generate it using the command line tools, or are you build it in eclipse and then using adb install or what Apr 02 15:55:18 DETAILS PLZ Apr 02 15:55:18 not exactly Apr 02 15:55:35 ./bin/ won't be signed or have been run through proguard Apr 02 15:55:48 project/clean then try it Apr 02 15:56:04 I use eclipse to build. I moved the apk over to the downloads folder on the device then install it using file manager. Apr 02 15:56:34 why? are you just testing it? Apr 02 15:56:41 adb install is 100x easier Apr 02 15:56:56 it is going to be side loaded... not in the market. Apr 02 15:56:59 Magnets: bin/Foo.apk is signed with your debug key Apr 02 15:57:00 ..... so? Apr 02 15:57:06 but if you want to test that it installs from .apk, then export it fully (right click project/android/export signed...) Apr 02 15:57:13 roger_padactor: installing through eclipse is the same as side-loading Apr 02 15:57:14 adb install uses the same path as putting it on the sd card and double clicking it. Apr 02 15:57:23 which uses the same path as installing it from eclipse Apr 02 15:57:29 you're creating extra work for yourself for 0 gain Apr 02 15:57:42 if you want to test release versions, right click your project, android tools -> export signed application package. Apr 02 15:57:43 lov: what about installing from browser? which path is that? Apr 02 15:57:48 evancharlton: the angry path. Apr 02 15:58:16 Angry Pathd Apr 02 15:58:19 Angry Paths Apr 02 15:58:33 well. either way. the one way isn't installing it properly... maybe... maybe debug mode is on but on the device developer mode isn't Apr 02 15:58:36 one sec Apr 02 15:58:46 roger_padactor: what? Apr 02 15:59:22 how to get the default language code (like zh-cn) ? Apr 02 15:59:51 roger_padactor: we have no idea what you're doing. You're PROBABLY installing an old build or something by accident. Apr 02 16:00:03 roger_padactor: installing via eclipse is EXACTLY the same scenario as sideloading as far as the device is concerned. Apr 02 16:00:20 maxagaz: getConfiguration ? Apr 02 16:00:33 That is what I thought. Apr 02 16:03:37 lov, roger_padactor, I can't find this 4 letters code in that Apr 02 16:05:46 lov, I'm just dumnb and placed my data files in the wrong folders on the device. ALLLLLL my fault. Apr 02 16:05:52 I should maybe just use this: getResources().getConfiguration().locale.getLanguage() +"-"+getResources().getConfiguration().locale.getCountry() Apr 02 16:06:03 problem resides between chair and kayboard Apr 02 16:08:15 no, it doesn't work for all languages, i.e. http://www.google.com/ig/api?weather=paris&hl=fr-FR Apr 02 16:08:38 http://www.google.com/ig/api?weather=paris&hl=fr Apr 02 16:09:36 maxagaz: note that fr-FR is an artificial construct. Apr 02 16:09:56 lov: why? Apr 02 16:09:58 and note that - delimits more than just language Apr 02 16:10:03 for example, drawable-hdpi Apr 02 16:10:17 it is totally possible to have values-en-US-hdpi or something Apr 02 16:10:21 what would you use there? Apr 02 16:10:27 what about values-US-mdpi? Apr 02 16:10:30 is it english, or just in the US? Apr 02 16:10:55 lov: I want to use it just for the google weather api Apr 02 16:10:58 en-US vs en-UK and the like are used to disambiguate regional variations of text. The core text lives in en. The regional differences might live in en-US and en-UK Apr 02 16:11:03 maxagaz: so? Apr 02 16:11:14 maxagaz: I don't really care what your end scenario is; I'm telling you HOW THIS WORKS.\ Apr 02 16:12:03 lov: so, I'm trying to adapt this url to the default language set in the device Apr 02 16:12:09 yes yes yes Apr 02 16:12:13 I understand what you're TRYING to do Apr 02 16:12:17 I honestly don't care, at all. Apr 02 16:12:29 fuck it. Apr 02 16:12:31 lov: but I don't understand your answer... Apr 02 16:12:32 I don't care that you don't care. Apr 02 16:12:34 12:05:59 < maxagaz> I should maybe just use this: getResources().getConfiguration().locale.getLanguage() +"-"+getResources().getConfiguration().locale.getCountry() Apr 02 16:12:37 yes. Apr 02 16:12:37 just do this. Apr 02 16:12:38 idgaf. Apr 02 16:12:43 diaf. Apr 02 16:12:44 lov: I'm sure you don't care... Apr 02 16:12:47 glhf gabz Apr 02 16:12:47 maxagaz: hl wants a language. Why are you passing in a country? Apr 02 16:12:59 argle gylp Apr 02 16:14:01 ooh, high-def values Apr 02 16:14:47 evancharlton: hl sometimes also needs a country, for instance: hl=zh-cn or hl=zh-tw gives a different result, and hl=zh alone gives it in english Apr 02 16:15:01 ah Apr 02 16:15:03 well Apr 02 16:15:09 have fun with that API, then! Apr 02 16:15:25 evancharlton: but it doesn't accept hl=fr-fr for example Apr 02 16:16:27 evancharlton: okay so I guess this api doesn't follow open standards Apr 02 16:16:28 hey, how can I get a listview to be automatically updated when a database updates? Apr 02 16:17:00 Ankhwatcher: using what kind of adaptor? Apr 02 16:17:38 wongk: what do you recommend? Apr 02 16:17:50 the one that meets your needs Apr 02 16:18:02 I'm trying to use a cursorloader but I'm chasing my tail Apr 02 16:18:03 Whoops, turns out that you can't do a region alone for resources, only language. So you can do lang or lang-region but not region. Apr 02 16:18:06 Welp Apr 02 16:18:18 the point remains. Apr 02 16:20:58 hey guys i need an android devices with 2000+x1000+ Apr 02 16:21:01 any recommendations Apr 02 16:21:11 needs to be a 7" screen Apr 02 16:21:22 anyone have nexus galaxy and get error7 when trying to update to 4.0.4 ? Apr 02 16:21:50 mikedg: iswydt Apr 02 16:28:38 wongk: so any pointers for me? Apr 02 16:28:56 Ankhwatcher: which adaptor are you using? Apr 02 16:29:47 wongk: SimpleCursorAdapter in a fragment Apr 02 16:30:16 if your contentprovider is notifying listeners correctly, SimpleCursorAdapter should auto-update Apr 02 16:32:29 adapter = new SimpleCursorAdapter(getActivity().getApplicationContext(), R.layout.captureroute_row, null, uiBindFrom, uiBindTo, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER); Apr 02 16:33:02 That is in the onCreate for the Fragment Apr 02 16:33:57 Wait, what? the cursor is null, no wonder this does nothing Apr 02 16:34:15 heh Apr 02 16:39:13 Do you need to feed the values into the database through the adapter, or can I just use my Helper calls like I did before? Apr 02 16:41:08 is the cursor from the database directly, or a ContentResolver? Apr 02 16:41:21 directly Apr 02 16:41:46 you'll need to call requery then if you act on the db Apr 02 16:42:08 actually, requery is deprecated Apr 02 16:43:12 you can get a new cursor and call changeCursor Apr 02 16:45:09 if i were you, i would consider if an OO approach would be more fitting for your purpose Apr 02 16:48:09 omg, our new qa guy failed one of my tickets because he thinks a spinner list dialog is a new "page" not a dropdown Apr 02 16:48:32 lolol Apr 02 16:49:21 haha Apr 02 16:49:58 is there a way to know if I should display celsius or fahrenheit degrees from the default settings ? Apr 02 16:50:27 if region == US display F else display C Apr 02 16:50:42 wongk: an OO aproach? Apr 02 16:50:59 oh, only us uses F ?... I didn't know that... Apr 02 16:51:13 dunno. probably Apr 02 16:51:39 Ankhwatcher: yeah, objects that are designed specifically for your data rather than generic a generic cursor directly on the DB table Apr 02 16:52:09 Fahrenheit is used in the http://en.wikipedia.org/wiki/United_States, http://en.wikipedia.org/wiki/Belize, and the United States territories of http://en.wikipedia.org/wiki/Puerto_Rico, http://en.wikipedia.org/wiki/Guam and the http://en.wikipedia.org/wiki/United_States_Virgin_Islandshttp://en.wikipedia.org/wiki/Fahrenheit#cite_note-belizeweather-6 for everyday applications. Apr 02 16:52:21 damnit, those links didnt show in my chat Apr 02 16:52:53 so US and belize? Apr 02 16:53:12 why is the US so old school Apr 02 16:53:15 countries which use metric: http://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Metric_system_adoption_map.svg/800px-Metric_system_adoption_map.svg.png Apr 02 16:53:18 wth is belize, lol Apr 02 16:53:39 birbeck: it's a country in central/south america Apr 02 16:53:56 eheh... burma... Apr 02 16:54:09 ask in #android-dev = the new google ;-P Apr 02 16:54:11 lol evancharlton Apr 02 16:54:15 yeah that picture is just shameful ._. Apr 02 16:54:37 hah, that's awesome Apr 02 16:54:37 and we're not getting another shot at it for the next 50 years because SOCIALISM!!! Apr 02 16:55:04 lol Apr 02 16:55:06 the only country where they drive like in england but with the steering wheel like in france Apr 02 16:55:22 wat Apr 02 16:55:45 canada doesn't count Apr 02 16:55:49 or mexico Apr 02 16:55:52 heh Apr 02 16:56:27 lov: why is it shameful ? Apr 02 16:56:33 I don't think it is Apr 02 16:56:53 maxagaz: every country except for the US and, what is that, burma, could figure out the metric system Apr 02 16:56:57 literally every other country Apr 02 16:57:00 but it was too hard for america Apr 02 16:57:02 ^^ Apr 02 16:57:15 we just want to be different! Apr 02 16:57:23 because we all know not using something implies that it's too hard for you. Apr 02 16:57:24 lov: 'MERICA! Apr 02 16:57:38 oh you guys Apr 02 16:57:40 * wongk meeting Apr 02 16:57:41 just move up north Apr 02 16:57:42 :) Apr 02 16:57:51 we won't become dirty canuckistanis like you Apr 02 16:58:06 at least this dirty canuckstani got an io ticket... Apr 02 16:58:17 >:( Apr 02 16:58:20 canadiancow|work: do you get referral bonuses or something for recruiting people to canada? Apr 02 16:58:21 obviously through terrism Apr 02 16:58:33 err no Apr 02 16:58:39 terrism eh? Apr 02 16:58:40 whats that Apr 02 16:58:42 terrism? Apr 02 16:58:43 failed terrorism? Apr 02 16:58:44 evancharlton: he gets a cameo on the red green show once he gets 50 people. Apr 02 16:59:38 awesomism Apr 02 17:06:11 hello.. does anyone know how to do this? i have a scrollview, with a bunch of views. by setting the OnCreateContextMenuListener, the view becomes long-clickable and a context menu appears nicely. but i also want the selection indicators to show, to highlight the view. any ideas? Apr 02 17:06:58 sounds kinda like you might want a ListView instead Apr 02 17:09:40 canadiancow|work: i've thought about that... Apr 02 17:10:16 thing is... i don't really have a "list" of things... the views are created on the fly and attached at the end of the scrollview Apr 02 17:10:42 [13:06:58] sounds kinda like you might want a ListView instead Apr 02 17:12:17 i think it doesn't quite fit with what i've got. any other ideas? Apr 02 17:16:43 hmmm, it could be a ListView with an array adapter of Views, and just return that view in getView... sounds like it could actually work Apr 02 17:17:29 will try this.. thanks canadiancow|work Apr 02 17:18:51 JakeWharton: you around? Apr 02 17:19:11 What's the best way to get users to submit logs for a beta app? Apr 02 17:21:12 turn on background reporting by default Apr 02 17:21:52 birbeck: what's that? Apr 02 17:22:16 hmm, ive never used one, but there are many libraries for doing that Apr 02 17:23:32 hackkitten: i heard you on the radio!! Apr 02 17:26:22 hackkitten was on the radio? Apr 02 17:26:29 yeah Apr 02 17:27:08 she is now under the mild version of the news curse :) Apr 02 17:27:16 she is officially a girl now Apr 02 17:28:50 huzzah to both line items Apr 02 17:29:06 I only hope that her experience with newsies will be positive Apr 02 17:29:14 * p_l had seen the negative variant Apr 02 17:29:47 Hey, I have a quick question Apr 02 17:30:25 I have a php script to register an account, and one to update a score on my server, and I use a dialog to take in the username/pasword etc on the phone, and post it to the php script... It just sends it exactly as it is, so posts the password as a string.. Apr 02 17:30:41 It this unsecure? I suppose on wifi or something, this string could be intercepted... Apr 02 17:30:55 is there a recommended way to secure it? Apr 02 17:31:04 you could use https with ssl Apr 02 17:31:11 hi Snuffel :D Apr 02 17:31:24 In fairness, it's only a username/pw to update a highscore, and doesn't have any user data really stored with any value, but still.. Apr 02 17:31:35 Thanks yuyo, I will have a look into that Apr 02 17:32:07 You should at least use ssl Apr 02 17:32:14 bear in mind that a LOT of people reuse their password everywhere Apr 02 17:32:15 hackkitten, get your new phone? Apr 02 17:32:27 canadiancow|work > yup Apr 02 17:32:33 how is it? Apr 02 17:32:47 love it :) Apr 02 17:32:54 Huawei U8850 Vision Apr 02 17:33:10 didn't dev on it yet, but as a phone it seems awesome Apr 02 17:33:11 i am going to get the one X Apr 02 17:33:21 almost fully aluminium body Apr 02 17:33:50 * hackkitten curls up on top of Snuffel's head and Zzz~s Apr 02 17:33:57 NutterzUK why don't you just tie the high score to device ID? (if you already have that permission) Apr 02 17:33:59 * hackkitten has been giving interviews all day~ Apr 02 17:34:27 cool Apr 02 17:36:51 What is the difference between Controller and Binding class here ? oO http://goo.gl/psTik Apr 02 17:39:04 If running an async task in one activity. and the user goes to a new activity that has another async task does the one die or keep running? Apr 02 17:39:31 it will continue running. Apr 02 17:39:34 it keeps running Apr 02 17:39:42 but it can't connect back to the activity Apr 02 17:39:50 to show output Apr 02 17:40:13 ok can I send a signal to cancel it? Apr 02 17:40:26 probably, look at the docs. Apr 02 17:40:33 ok thanks Apr 02 17:40:36 this is #android-dev not #android-handholding Apr 02 17:40:59 :) Apr 02 17:43:14 they hold non-hands here though. Apr 02 17:46:50 :(:(:( Apr 02 17:46:54 my maguro screen got scratched :(:(:( Apr 02 17:47:09 anyone wanna buy me a new one? :) Apr 02 17:47:33 What'd you do? Apr 02 17:48:31 no idea Apr 02 17:48:33 it's small Apr 02 17:51:07 pwned ;d Apr 02 17:52:01 I'm not sure how works editor.commit() for the SharedPreferences, should I use it right after each settings.putString() or can I put it after a few settings.putString ? Apr 02 17:52:21 After as many as you'd like Apr 02 17:53:42 maxagaz: you should probably do something like prefs.edit().putString(a,x).putString(b,y).putString(c,y).commit(); Apr 02 17:54:25 okay, because I have a case where is doesn't work Apr 02 17:56:37 SimonVT, I resolved the stuff on the PagerView Apr 02 17:56:46 an incredible bug Apr 02 17:56:55 impossible to find Apr 02 17:57:23 I forgot the breaks in a switch block. Apr 02 17:57:56 heh Apr 02 17:58:17 I have a more interesting question Apr 02 17:58:55 I have 2 threads... one drawloop (my messages) , second core loop ... thread with a while and one wait Apr 02 17:59:19 I am thinking to use a semaphore to 0 . The draw loop unlock... the core loop lock Apr 02 17:59:35 in the end the user needs only the data he sees Apr 02 18:00:02 SimonVT, what do you think about Apr 02 18:00:03 ? Apr 02 18:05:00 I need an android screen with 4 squares...in each square I'd like to put stuff into that...how would I do that in the xml file? Apr 02 18:32:26 hello ! I need help pls, with android sdk r17. I have a problem with the librairies in my libs folder not being included in the APK when I compile with ANT, but it works in Eclipse... any idea how to fix it ? or if it's even possible to fix it without messing up with the build.xml that comes with the sdk ? Thank you :) Apr 02 18:32:55 cevy: try `android update project` Apr 02 18:34:46 ok I'll try that, I actually already trired that, but I just realized i only did it on my android app project, not my android librairie project. Apr 02 18:35:07 I just picked up a Novo 7 Basic tablet, I upgraded to 4.0.3 and noticed the lack of gapps, does anyone know where I can find a mips compiled gapps flashable zip? Apr 02 18:35:47 With help from SO I've understood how I can determine what fragment-page is visible when using a ViewPager. Now, is there a way to reach the currently visible fragment's custom public methods I've made? Apr 02 18:37:23 drlaban: yep. it's called programming. Apr 02 18:39:18 pragma_: Alright. You're suggesting/telling me that I have to program, is that it? Apr 02 18:40:57 hi all Apr 02 18:41:08 drlaban, to be fair, you're asking how you call public methods on an object Apr 02 18:41:25 anyone know of a good free pdf creator lib for android? Apr 02 18:42:12 canadiancow|work: Well, this is probably because I'm phrasing my question wrong, then. Apr 02 18:47:53 canadiancow|work: Well, look at that. A bit of type casting on the right spot and it seems like I'm on track again. So in essence, pragma_ was right. Apr 02 18:49:21 I'm starting with the SearchableDictionary example to create my own dictionary, and it's fairly large (1000+ words). It seems like it takes a long time for the sqlite fts3 table to be populated. Is there a way to precache that, speed it up or otherwise force it to update? Apr 02 18:59:26 evancharlton, sorry, it didnt work :/ do you have any other suggestions ? I updated the build.xml, added my custom rules, ran ANT, install the app, but as soon as a launch it I get a ClassNotFound Exception for a class in a Library that I use Apr 02 19:00:10 Can someone please tell me what I'm doing wrong? It's got to be a simple thing I'm missing. http://www.elevensquared.com/Uploads/jQMzERGqDuZgXvjo8oWIEA/error%20-%20KafSaS1TNhf1ID4tI7yg1w.png Apr 02 19:01:00 Why is it going into the else instead of the else if Anaerobic? Apr 02 19:03:52 ElevenSquared, try using .equals on String object Apr 02 19:04:01 instead of == Apr 02 19:04:02 ElevenSquared: is == allowed on java strings? I think you want to use string.equals("other") Apr 02 19:04:14 cevy: yeah, that Apr 02 19:04:32 ElevenSquared: == checks references, not content Apr 02 19:04:33 I come form C# too :P Apr 02 19:05:30 is debain of any use for compiling android roms or is ubuntu used for any specific reason Apr 02 19:05:35 cevy: lots of languages do funny things for string compares Apr 02 19:05:49 Isaiahhhhh: uh Apr 02 19:05:50 Ubuntu=debian? Apr 02 19:05:56 Isaiahhhhh: you can use whatever you want, but if you don't have the libraries that they linked the sdk against you'll be unhappy Apr 02 19:06:08 debian is the super class of ubuntu Apr 02 19:06:16 ^^ Apr 02 19:06:22 you can use debian or ubuntu Apr 02 19:06:25 but ubuntu is the supported OS. Apr 02 19:06:36 right but google directly suggests the use of ubuntu and as ubuntu is built off of debain I was wondering why the suggestion of the sub os Apr 02 19:06:37 can someone explain to me how permission enforcement works. For example in a native app if I call socket() I need android.permissions.INTERNET. Afaik, permissions equate to group ids, but can someone point me to applicable source code? Apr 02 19:06:37 Isaiahhhhh: for the most part any modern distribution will be "close enough". If your deb branch has older packages than ubuntu you may hit problems. Apr 02 19:06:39 Ahh. Thanks. Apr 02 19:06:54 Im new to Java. I didnt realize there was a difference. Thats a bit confusing. :) Apr 02 19:06:56 Isaiahhhhh: because way more people use ubuntu than debian, among other reasons. If you really want to use debian, you're probably fine. Apr 02 19:07:13 but this is going towards #os-flamewars Apr 02 19:08:14 Hey guys, I was wondering if it's possible to do web development ON an Android device (preferrably a tablet)? Apr 02 19:08:28 poisson: no. Apr 02 19:08:42 define "do web development" Apr 02 19:08:51 dragorn: thought exactly the same^^ Apr 02 19:09:02 you could definitely edit html and copy files Apr 02 19:09:08 there's a variant of photoshop for tablets Apr 02 19:09:09 ok next question, should I use a virtual machin build of android, or should I use the windows installer of ubuntu and make a seperate os of sorts to play with Apr 02 19:09:12 Run small servers to do PHP, HTML, JS, CSS, etc. Apr 02 19:09:24 Isaiahhhhh: HUH? Apr 02 19:09:30 the windows installer of ubuntu? Apr 02 19:09:36 what the hell are you even asking Apr 02 19:09:40 Isaiahhhhh: VM Ubuntu. Apr 02 19:09:42 lov: ubuntu has a windows installer Apr 02 19:09:44 ...just google it Apr 02 19:09:46 yeah, I get that. Apr 02 19:09:51 do it in a VM Apr 02 19:09:59 I'm wondering at what level he's trying to act here Apr 02 19:10:03 poisson: yes you can use vim on android =) Apr 02 19:10:12 level? Apr 02 19:10:20 are you trying to hack on the actual platform Apr 02 19:10:23 or are you just trying to develop apps Apr 02 19:10:34 waldo1979| I love vim. :D Apr 02 19:10:40 I want to develop web apps. Apr 02 19:10:41 Isaiahhhhh: doing it in a vm or doing dual boot is up to you. It's probably faster to do dual boot. If you're only writing android code, then you can use windows. Apr 02 19:11:02 .....i'm working towards compiling custom rom builds and messing around with the kernel Apr 02 19:11:05 Isaiahhhhh: If you're just writing apps, you can either just use the windows based SDK, or you can set up a VM or dual boot or whatever Apr 02 19:11:07 And don't know if I want to buy a laptop or a tablet w/bluetooth keyboard. Apr 02 19:11:08 Ah Apr 02 19:11:10 poisson: in theory yes you could compile apache and such with a native toolchain and run them. In reality it would be pretty ugly and you'd have to run them on a nonstandard port like 8080 Apr 02 19:11:31 Isaiahhhhh: My recommendation would be to dual boot, simply because then you don't have ANY vm overhead/problems Apr 02 19:11:36 but it's totally up to you Apr 02 19:11:57 I think i'd agree with you there lov, less processor power being taken up all at once with a dual boot Apr 02 19:12:00 Isaiahhhhh: to second lovs comment, if you're trying to build modern android ROMs you need an obscene amount of memory and disk space. Plan accordingly. Apr 02 19:12:01 as long as your VM properly handles the OS you're installing, that should be fine. Apr 02 19:12:31 dragorn| I'm not too hesitant on it, but I am just wondering if it's possible or how great it might be. Apr 02 19:13:05 poisson: it's linux. In theory you can build all the dependencies and compile whatever oyu want for it - since none of that requires X you have no GUI dependencies Apr 02 19:13:34 poisson: if all you want is a webserver, that's easy and there are plenty already in the market. If you want dynamic server-side code like php, you've got a lot of work ahead of you Apr 02 19:13:49 dragorn| See, I have no problem using linux but what if I wanted something like Arch on it? In fac,t I"m not entirely sure if it's NOT possible. Apr 02 19:13:54 just how obscene is obscene amounts of memory Apr 02 19:14:01 I just want to develop on the go, hahaha. Apr 02 19:14:10 get a laptop Apr 02 19:14:17 because I'd call the 16gb my home server has "obscene", but at work that's laughable Apr 02 19:14:25 128GB is obscene. Apr 02 19:14:39 abaratican: i can't define it but I'll know it when I see it? :P Apr 02 19:14:42 i'm about to grab 32GB of DDR3 in the next week or so. Apr 02 19:14:49 UPGRADEZ. Apr 02 19:14:53 poisson: that's like buying a mac to run linux on it. Go get a cheap notebook. Apr 02 19:15:05 16GB is almost enough to build Android Apr 02 19:15:13 lol Apr 02 19:15:32 dragorn| Funny... I was considering on buying Macbook Air and dual boot with Arch. Apr 02 19:15:49 I just got my first mac (air) Apr 02 19:15:52 * abaratican makes the obligatory gentoo advertisement then exists OS wars. Apr 02 19:16:05 poisson: unless you really enjoy typing on a soft keyboard, just go buy a netbook. Apr 02 19:16:44 when the screen is turned on and you have a pattern lock, the app behind the lock screen has onResume() called. Is there anyway to listen for focus after the lock screen goes away? Apr 02 19:18:33 I'm actually thinking of just getting this: http://slickdeals.net/permadeal/71842/dell-home-office-dell-inspiron-11z-laptop-core-i3-330um-1.20ghz-11.6-1366x768-led-2gb-ddr3-250gb-hdd-wifi-n-6cell-win-7-prem?token=AAYBBQAAAAAFOz9ziA Apr 02 19:20:28 Has anyone managed to get adb working on Ubuntu 12.04 (64-bit)? I can see the device connected via lsusb,the latest version of adb is installed, and I can see the phone from my other laptop (mac) Apr 02 19:21:19 mdwright: that's all you've done? Apr 02 19:22:31 HacDan: I've also setup custom udev rules Apr 02 19:22:36 damn Apr 02 19:22:38 that was my guess Apr 02 19:22:39 ;) Apr 02 19:22:44 mdwright: are you running adb as root? Apr 02 19:22:56 wmbest2: I've tried running adb start-server as root Apr 02 19:22:59 still no luck Apr 02 19:23:41 what about adb root Apr 02 19:23:53 hmm those were the tricks that Ive used for 11.10. Unfortunately I probably wont be installing beta 2 Apr 02 19:24:04 I have a little question about Service update, when I turn one internet (3G, WIFI) my mailBox updating, what can I do to the same with a service ? Apr 02 19:24:57 a loop to check if internet is on maybe ? Apr 02 19:25:12 Hmm. "error: device not found" when I run adb root Apr 02 19:25:23 i know there is Google ;) ... but apart from it, is there something specific ( a website or something else) you use in order to have further informations about the android version of a particular smartphone ? Apr 02 19:25:33 for example Samsung Galaxy S One Apr 02 19:29:13 paissad: do you want the android version from official roms (manufacturers roms) or custom roms (or both) ? Apr 02 19:29:56 Estragon: i think i understand what you mean by manufacturers roms, but what about custom ones ? :/ Apr 02 19:29:58 for example on samsung galaxy S, there will be no official 4.0 but there are already many ports of ics Apr 02 19:30:08 anyway, i want to both if possible :P Apr 02 19:30:42 paissad: anyone can build his own rom using sources : thats a custom rom Apr 02 19:30:55 mmm Apr 02 19:31:02 I have a strange problem Apr 02 19:31:13 I bind a service in on create Apr 02 19:31:20 and unbin on onPause Apr 02 19:31:30 paissad: for custom roms, xda-developpers is the reference Apr 02 19:31:38 Estragon: actually, i only want to make a personal program for my personal Samsung for personal use, .... and i did never change anything about the smartphone, no hack, no customization or stuffs like that :P Apr 02 19:32:01 paissad: what do you mean by "personal program" ? Apr 02 19:32:11 you mean an app ? Apr 02 19:32:13 If you are looking into how to find the version programmatically look here Apr 02 19:32:15 http://developer.android.com/reference/android/os/Build.html Apr 02 19:32:45 Estragon: i plan to write a program that will act as a server for sending SMSes (i don't want to pay a third API ;)) Apr 02 19:33:31 Estragon: a sort of webservice or restful app running in my phone and that would send SMSes Apr 02 19:33:38 and onDestroy of the service is not called Apr 02 19:33:47 why ? if it ws unbinded ? Apr 02 19:33:50 it has nothing to do with your previous question has it ? Apr 02 19:34:42 I mean is not normal that if the binder unbinds the service is destroyed ? Apr 02 19:34:59 paissad: if you want to create an application, you will use the android sdk Apr 02 19:35:01 Estragon: yes, it is related, .. i'm currently on Eclipse and i wondered the SDK's version i should use , i'm using 2.3.3 (10) in Eclipse, but i see 2.2 in my smartphone, ... ^^ Apr 02 19:35:18 oh Apr 02 19:35:28 then you have 2 choices : Apr 02 19:36:12 -lower the minimum api that your project requires (2.2 will be good for what you want) Apr 02 19:36:43 -update your phone with either an official rom or a custom one Apr 02 19:37:11 Hi, If I click on 'run' in Eclipse it only starts javaw.exe process in background but nothing happen Apr 02 19:37:19 Estragon: okay, i see .. i will lower my SDK's version from Eclipse during development, it's wiser i think Apr 02 19:37:53 :) Apr 02 19:38:17 I think I found the problem Apr 02 19:38:19 paissad: note that android is generally backwards compatible. The SDK level for the app is only the api level that you are compiling against. the uses-sdk tag in the manifest specifies the minimum level that you can run the app at, and the maximum level you have tested against. Apr 02 19:38:28 but maybe someone could explain me why Apr 02 19:38:38 my app has 3 threads Apr 02 19:38:47 aLeSD: are you binding to your service with BIND_AUTO_CREATE Apr 02 19:38:55 and not calling startService? Apr 02 19:38:58 lov ... it's another problem Apr 02 19:38:59 if so, perhaps you should read the docs! Apr 02 19:39:00 another question, ... i did not google it yet, but is it possible to have a DNS service in the android OS so that i can use a hostname instead of unstable ip address ? Apr 02 19:39:07 BIND for Android ^_^ Apr 02 19:39:10 lov . stop it ... I red the doc Apr 02 19:39:13 paissad: lmgtfy.com Apr 02 19:39:19 and/or #android-root Apr 02 19:39:27 lov: ;) Apr 02 19:40:20 so 1 thread of the service , UI thread and another thread that is trying to acquire a semaphore(0) Apr 02 19:40:35 which is a euphamism for "walk into a bar" Apr 02 19:40:51 if I start the thread that it's blocked on the acquire the app doesn't unbind Apr 02 19:42:20 lov do you know about this ? Apr 02 19:42:20 aLeSD: I'm having trouble understanding what you're saying because you're writing very poorly. Apr 02 19:42:20 I think the adquiring thread is not ding Apr 02 19:42:22 lol Apr 02 19:42:31 I am sorry ... my spagetti english Apr 02 19:42:32 :D Apr 02 19:42:38 no seriously, I get that you have a semaphore or something but I have no idea what you're doing otherwise. Apr 02 19:42:52 ok ... I simplify the stuff Apr 02 19:43:16 the UI thread create a thread that adquire a semaphore initialized to 0 Apr 02 19:43:22 What would be the correct way to show a progress dialog for an asyc task with out putting all the loading code inside the doInbackground but in a method? Apr 02 19:43:53 roger_padactor: probably callbacks. At this level, consider using threads and handlers or something instaed of an asynctask. Apr 02 19:43:59 *instead Apr 02 19:44:04 ok thanks Apr 02 19:44:16 than I exit from the app by pressing the exit button. OnPause is called ... I unbind the servide .. nothing happends Apr 02 19:44:19 Hi, If I click on 'run' in Eclipse it only starts javaw.exe process in background but nothing happen Apr 02 19:44:29 I have the emulator running. Apr 02 19:44:34 can someone helpe please? Apr 02 19:44:49 I mean the view exit ... but the onDestroy of the service isn't called Apr 02 19:45:04 'run as' is emtpy Apr 02 19:45:07 it I not start the thread that blocks on the semaphore ... all works sweet Apr 02 19:45:37 so the problem it's easy ..: I have to unblock the semaphore thread Apr 02 19:45:44 when I exit from the app Apr 02 19:46:21 but the question is why ? Apr 02 19:46:53 if I don't destroy all the threads of an app ... what happend ? Apr 02 19:47:49 lov ... do you understood something ? Apr 02 19:48:28 :( Apr 02 19:48:57 aLeSD: you're either blocking the UI thread, or you're not calling stopService. Apr 02 19:49:15 aLeSD: consider attaching the debugger, then when you get into your bad state, inspect your threads. Apr 02 19:49:48 lov forgot stopservice I am not calling it Apr 02 19:50:01 neither startservice Apr 02 19:50:08 I am bind unbind Apr 02 19:50:25 the problem stay that one thread of the app is locked on a semaphore Apr 02 19:51:00 so now I am trying to find out how to unlock it on onPause and destroy it Apr 02 19:51:11 Guys, I need someone with a device with Android 2.1-update1 to test something for me. Does anyone have a phone with this version? Apr 02 19:51:52 ToFra: Does the behavior not exist in the emulator for that version? Apr 02 19:51:58 and if someone know something at higher level that have the same behaviour of a semaphore initialized to 0 ... please tell me Apr 02 19:52:03 Nope. Agenda stuff.. Apr 02 19:52:24 Hi Apr 02 19:52:29 I think I made an error.. I used URI content://calendars Apr 02 19:52:41 But I think this needs to be content://calendar for pre 2.2 devices.. Apr 02 19:53:23 And before I want to release my fix to the public I need someone with that version to test it.. Apr 02 19:53:56 I have a class where I have some shared preferences set up. I access those by extending the class in all the other classes. But now I also need to extend an ArrayAdapter. How can I also retrieve the shared preferences? Apr 02 19:55:31 does any1 here know, how in the world do you access a ImageView inside a customlistadapter which extends arrayadapter in order to modify the image? Apr 02 19:56:46 hello i want to do an automatic logout in my activity when the user has been inactive for 5minutes, also when the app is in background, that works, but when i do the logout in background the login activity starts to display Apr 02 19:57:18 i use a timer/timertask for that Apr 02 19:57:35 but i dont want to see the login activity when the app is in background Apr 02 19:58:04 Anyone else having the same issue, when I use ANT to build my project I get a ClassNotFound ex on a class that's in a jar lib in my libs folder, but if I use eclispe it works fine. This started with r17 of the SDK tools. Apr 02 20:00:12 cevy: yep, its a known change Apr 02 20:00:53 cevy: http://stackoverflow.com/questions/9820675/gson-noclassdeffounderror-after-adt-and-sdk-tools-update-to-v17 Apr 02 20:01:04 thank you Apr 02 20:02:57 hey guys Apr 02 20:03:09 how come the android source is so big yet I'm guessing once its compiled its very small Apr 02 20:03:10 PDawg make your own adapter (extend BaseAdapter) and have full control Apr 02 20:03:46 eagles0513875_ a lot of stuff needs to happen? :0 Apr 02 20:04:03 I'm tempted to pull the source Apr 02 20:04:05 xorgate: hmm, ok ill give that a try Apr 02 20:04:11 but what does need to happen exactly Apr 02 20:04:12 eagles0513875_: Bytecode compiles small. Apr 02 20:04:26 source code does not :p Apr 02 20:05:12 eagles0513875_ everything :) the code to determine how buttons and other widgets are displayed in a layout is huge because there are a lot of settings, for example Apr 02 20:05:48 and that's just 1 tiny bit of all the things your phone does Apr 02 20:05:59 I'm new to all this hence the possibly stupid question such as that Apr 02 20:06:19 im wondering though if android itself can be adapted for use as a desktop environment :X Apr 02 20:06:32 i know there is the android x86 project which i really would like to try out if i had more time Apr 02 20:06:45 eagles0513875_: What do you mean, "adapted"? Apr 02 20:06:52 Have you *seen* those new phones? Apr 02 20:06:57 kamoricks: which new phones Apr 02 20:07:06 and when i say adapted i mean not for phone use as pc desktop use Apr 02 20:07:38 eagles0513875_: Anything with more than two processors and two gig of ram, which is most anything in the past few years. They're more powerful than some laptops. Everything's been webified or mobilified already. Apr 02 20:08:15 eagles0513875_: i suspect it could be superficially, like a kiosk or something. but a serious desktop replacement? no. thats where i suspect windows tablets to really hamper android tablet adoption, as i think tablets and laptops will kinda merge Apr 02 20:08:36 g00s: i think i will disagree there Apr 02 20:08:42 I'm hearing lots of negative things about windows 8 Apr 02 20:08:43 What are they missing? Office software? A hard keyboard? Apr 02 20:08:59 well kamoricks thats something I'm working on with libreoffice Apr 02 20:09:04 developing a UI for their android port Apr 02 20:09:06 eagles0513875_: its tool early to tell. but sure, i hear all kinds of things, mostly positive though Apr 02 20:09:19 ...Probably the hardware keyboard and a set of non-cross-compiler tools. Apr 02 20:09:54 well if the device has blue tooth why not a blue tooth based keyboard and mouse solution Apr 02 20:10:08 eagles0513875_: They sell those, they just don't ship with those. There's a really cool infared one... Apr 02 20:10:42 kamoricks: isn't infrared more prone to interference and has to be directly in front of the other devices reciever Apr 02 20:11:17 eagles0513875_: No, no. The keyboad communicate with bluetooth, but... easier to link. http://www.virtual-laser-devices.com/?an=vlk-new Apr 02 20:12:40 I have a class called GameActivity. And in it I have some shared preferences that I have set up like this: http://pastebin.com/3DR9VEri How can I access those in a different activity where I can't extend the GameActivity class (Because I'm extending an ArrayAdapter)? Apr 02 20:12:58 kamoricks: I'm thinking early pda / pocket pc style infrared Apr 02 20:14:30 Solirify: They're public. GameActivity.GAME_PREFERENCES Apr 02 20:14:36 so my soft keyboard doesn't work in a webview. know what the deal is? Apr 02 20:15:54 what's the deal with that?! Apr 02 20:15:57 snooplsm: doesn't say much what your trying to achieve Apr 02 20:16:02 hmm, firefox has a metro themed prototype already Apr 02 20:16:25 eagles0513875_: my droid 3 keyboard doesn't work on textviews unless I use the physical keyboard Apr 02 20:16:56 not sure what the problem could be :( just trying to give more details so others can help ya Apr 02 20:17:00 kamoricks: I think I'm dong something wrong, this is my attempt to access them: http://pastebin.com/rqkmH2ec Apr 02 20:17:22 I also included the error I get in the pastebin Apr 02 20:17:41 Solirify: You included half of the error in the pastebin. Apr 02 20:18:16 kamoricks: Sorry, this is the whole error: "The method getSharedPreferences(String, int) is undefined for the type LeaderboardAdapter" Apr 02 20:19:09 Estragon, actually i am still getting the Exception when I build with ANT, I tried to check the Order & Export for the jars but it didn't work (Building in Eclipse always worked, it's ANT that gives me pbs) any idea ? :) Apr 02 20:19:27 Solirify: .getSharedPreferences() is defined in Context. Whatever type LeaderboardAdapter is, it isn't a Context. Apr 02 20:19:48 kamoricks. So what can I do to solve it? Apr 02 20:19:58 pass it a Context in the constructor Apr 02 20:21:13 I just tried something and it's not giving me an error anymore, let's hope it works.... Apr 02 20:21:54 Is it possible/how do I create subfolders inside my layout folder in eclipse to make it easier to manage my layouts? Apr 02 20:21:58 Worked :) **** BEGIN LOGGING AT Mon Apr 02 20:24:03 2012 Apr 02 20:25:02 Which URI should I use to get all calendars in pre 2.2? content://calendars or content://calendar/calendars ? Apr 02 20:26:26 you can't rely on any Uri, ToFra; the calendar provider & schema were not public API Apr 02 20:26:36 xorgate, im assuming you were talking to me. Thanks. :) Apr 02 20:26:53 yup Apr 02 20:26:56 Sucks that its not possible. Would seem trivial to add that support, but what do I know. :) Apr 02 20:27:23 agreed Apr 02 20:27:45 i think it's open source so go ahead :) Apr 02 20:29:54 @ctate, I know, But I need to create a calendar.. Apr 02 20:33:23 NEEEEEETTTT SPLITTT!! Apr 02 20:41:54 hi, does every activity in an android app need to have an activity node in the AndroidManifest? Apr 02 20:42:14 dbwest: Only the ones you use. So yes. Apr 02 20:43:24 will something this simple suffice? : Apr 02 20:43:42 yes Apr 02 20:43:58 even simpler: Apr 02 20:44:00 with the caveat that you won't get an icon in the home app for it Apr 02 20:44:20 AddProduct needs to be the classname Apr 02 20:44:21 also, shouldn't it be .AddProduct? Apr 02 20:44:28 that too Apr 02 20:44:47 either works in this case, i believe Apr 02 20:47:26 ok, found the temp solution to my issue, http://code.google.com/p/android/issues/detail?id=27608 FYI Apr 02 20:47:58 thx to those how tried to help Apr 02 20:48:13 who* Apr 02 20:48:34 cevy: did xav's suggestion help you? Apr 02 20:48:42 * ctate | get the anttasks.jar from the bottom of http://tools.android.com/download to replace the one in your sdk. Apr 02 20:48:46 it worked. AddProduct was a class name. It wasn't the activity I start the app on. I have another class called SpotPay that I put a nod in for (as .SpotPay) . I put the dot in on that one because I thought you do that for the screen you start on. Which part of the android app defines which layout and class you start with after first launching the app? Apr 02 20:49:12 intent filter Apr 02 20:49:44 dbwest: the leading . is shorthand for . Apr 02 20:50:06 http://developer.android.com/guide/topics/fundamentals/activities.html#Declaring Apr 02 20:50:06 so you don't have to write android:name="com.whatever.my.stupid.app.android.AddProduct" every time Apr 02 20:50:15 ctate, yes it did Apr 02 20:50:18 cevy: yay Apr 02 20:50:40 lol my reaction was the same Apr 02 20:51:32 Would be nice if that would work for sub-packages. com.vnd.app is the root. If you have an activity in com.vnd.app.sub you must use the full package name in the manifest, .sub.Class is not enough =/ Apr 02 20:51:36 oh well Apr 02 20:52:35 are you sure about that, mgj ? Apr 02 20:52:35 82% sure Apr 02 20:52:35 However, as a shorthand, if the first character of the name is a period (for example, ".ExtracurricularActivity"), it is appended to the package name specified in the element. Apr 02 20:58:19 so, out of curiosity, an adroid service has methods that are called when it's started....but not when it's stopped? Apr 02 20:59:03 dualMoon: onDestroy() Apr 02 20:59:24 onUnbind() Apr 02 20:59:48 kamoricks: but what if a service has clients bound, but should stop, staying bound? Apr 02 21:00:07 then you call stopSelf() and the clients stay bound Apr 02 21:00:15 the 'started' state is independent of bindings Apr 02 21:02:11 ctate: that's why i was asking. my app should keep the service bound, but be able to start/stop the service at will. so if the service has a client still bound and is therefore alive (START_NOT_STICKY), but i want to do X when the activity says stopService(), what would i do? Apr 02 21:02:35 or would i be better off using messages instead of start and stops? Apr 02 21:03:09 actually i think i just answered that for myself. i should use messages instead Apr 02 21:17:13 dualMoon: like i said, start/stop and bind/unbind are independent. they're two quite different kinds of functionality, both provided by the Service class. Apr 02 21:17:58 starting a service == you want the service to run on its own for a while, performing work independently of any clients, until stopped Apr 02 21:18:12 and either you'll stop it from outside or it will stop itself when it completes its assigned work Apr 02 21:18:34 *binding* a service == you want to use the AIDL-defined method interface presented by the Service Apr 02 21:18:56 and will call through that interface to request that the Service do work Apr 02 21:19:13 and will eventually unbind, i.e. formally declare that you won't be calling through that interface any more Apr 02 21:19:21 also take note of IntentService; it may be what you want. Apr 02 21:19:43 * g00s <3 intentService Apr 02 21:19:52 Can I add a listener to a view (in a decent way) that detects if another view is added on top of it? Apr 02 21:20:04 IntentService is a concise helper class that uses the first model: the service is started, performs the work described by the Intent argument, and then stops itself. Apr 02 21:20:22 hi ctate Apr 02 21:20:47 hey cc Apr 02 21:20:50 n20: probably not Apr 02 21:21:05 n20: at least, I'm never heard of such a thing; I don't know if it would be possible Apr 02 21:23:42 evancharlton: Me neither. :( Thanks anyway Apr 02 21:36:01 hi all Apr 02 21:36:59 can you ask me some good android book or reference for beginners? Thank you!!! Apr 02 21:37:33 Paride81: d.android.com Apr 02 21:38:22 Paride81: if you like books, Reto's 3e should be out soon Apr 02 21:39:16 i reckon anything you can read you can read online Apr 02 21:39:31 read a tiny bit on how it works, then do tutorials Apr 02 21:40:20 thanks, i would read about how to start and then never ending tutorials :-) Apr 02 21:41:00 Hello Apr 02 21:42:08 Q: AVD manager shows 2 virtual devices created and green checkmarked. Yet "Run Configurations" for my projects doesn't list any AVD. Why? Apr 02 21:42:51 are they incompatible with the app you're trying to launch? Apr 02 21:43:54 evancharlton, same target (2.3.3) is set. Not sure which piece is incompatible? Apr 02 21:45:07 Hey all. Trying to release my first app but not finding my proguard mapping file anywhere. My project.properties says not to edit it because my edits will be replaced, so where should I enable proguard? Apr 02 21:49:29 can you do simple arithmetic in xml layouts? Apr 02 21:49:36 for specifying dimens Apr 02 21:50:20 alas no Apr 02 21:50:35 what are you thinking of? Apr 02 21:50:54 I have 2 lines of text that are supposed to be left of an icon Apr 02 21:51:02 ok Apr 02 21:51:04 I have a constand in dimen for that icon's width Apr 02 21:51:17 and now I want to put margin left size of the icon + 5dp Apr 02 21:51:41 i'm not sure i follow you Apr 02 21:51:50 so I want my text to be left of icon Apr 02 21:51:52 you want a blank space to the left of the text, the same size as the icon? Apr 02 21:51:58 right, that part is easy Apr 02 21:52:03 yes because sometimes the icon is set to gone Apr 02 21:52:15 gone, or hidden? Apr 02 21:52:19 gone Apr 02 21:52:21 hidden would be ok Apr 02 21:52:30 gone means the stuff around it expands to fill its space Apr 02 21:52:32 but I need gone because I dont' want the vertical space either Apr 02 21:52:37 hidden means the space is still allocated, but blank Apr 02 21:52:40 I know that Apr 02 21:52:43 k Apr 02 21:52:47 and I want gone Apr 02 21:52:54 why not just put the text to the left of the icon in the layout Apr 02 21:52:56 because I don't want it to take vertical space Apr 02 21:53:07 and not worry about space Apr 02 21:53:10 then when the icon is missing the text will go to the left Apr 02 21:53:21 and it won't align nicely with the text above Apr 02 21:53:23 not if you make the icon hidden isntead of gone :) Apr 02 21:53:57 i may still be unclear on what exactly you want to accomplish Apr 02 21:54:21 but i do want to encourage you to use layouts instead of trying to calculate sizes at layout time yourself Apr 02 21:54:34 unless you want to just go down the road of writing your own layout component for this little bit of trickery Apr 02 21:54:36 which is not that hard Apr 02 21:54:39 etuleu: use a RelativeLayout? Apr 02 21:55:15 I am using a RL yes Apr 02 21:55:21 and make both text lines toLeftOf= the icon Apr 02 21:55:22 ctate I don't want the vertical space :) Apr 02 21:55:28 the vertical space taken by the text? Apr 02 21:55:34 by the icon Apr 02 21:55:44 so there's something below the icon that you want to scoot up? Apr 02 21:55:49 yes Apr 02 21:55:54 aha Apr 02 21:55:59 and keep aligned with the text above Apr 02 21:56:04 left aligned that is Apr 02 21:56:50 so the icon is taller than the two lines of text to its left? Apr 02 21:57:29 i'm just having trouble picturing the boxes involved here, i'm afraid. Apr 02 21:57:59 etuleu: yeah, can you draw a quick mock-up of what you want? Apr 02 21:58:07 mspaint is fine; screenshot is better Apr 02 21:59:10 imagine a chat log Apr 02 21:59:18 with the icon of the person sending the message on the left Apr 02 21:59:22 and the name to the right Apr 02 21:59:28 and below the name is the actual message Apr 02 21:59:55 and he could write multiple lines of content Apr 02 22:00:03 I want those lines to be below the name left aligned Apr 02 22:00:27 and for lines after the first one I don't want to repeat the icon Apr 02 22:00:31 makes sense? Apr 02 22:01:44 I see what you guys are saying and I agree I should not be doing weird calculations but I think this is one case where it would be useful to have simple arithmetic in xml layouts Apr 02 22:01:48 etuleu: so set the imageview to alignParentTop and alignparentbottom = true Apr 02 22:01:55 that'll make it stretch the whole way Apr 02 22:02:07 ok and what about when the image is gone? Apr 02 22:02:17 what do you want to happen? still have padding? Apr 02 22:02:32 no that would take too much vertical space which is why I make the image gone Apr 02 22:03:12 then I don't see what the problem is Apr 02 22:03:22 just set the imageview to GONE and get on with your day :P Apr 02 22:03:45 there's some attribute you might need to specify to not break the layout; let me look it up Apr 02 22:03:45 no problem just saying that simple arithmetic would be useful in xml Apr 02 22:04:01 to keep my text aligned with the top one Apr 02 22:06:00 alignWithParentIfMissing Apr 02 22:06:01 hi, I have a service that connects to the internet and sends a few GET requests ... I would like to do the following: when the service sends a specific GET request, it sends the URL to the main activity to display it on WebView, then waiting for the user to click something on that page (only yes|no is available), after which the result is sent back to the service ... Apr 02 22:06:12 any idea what I can use to make that ? Apr 02 22:06:13 etuleu: ^ that'll keep it from breaking when your icon goes away Apr 02 22:06:32 evelyette: bindService Apr 02 22:06:34 ok I will try that thanks! Apr 02 22:06:57 evancharlton, the service is in it's own process ... Apr 02 22:07:40 evelyette: so? Apr 02 22:07:53 question: is libgdx still the best 2d graphics library for android? Apr 02 22:11:41 when you browse to a website on android, what does it report its screen size in? dp? Apr 02 22:11:53 because i have a site that works perfectly on 1920x1080, but on google tv, its all zoomed in Apr 02 22:12:28 probably px, but I don't know Apr 02 22:13:51 canadiancow|work: looks like px Apr 02 22:14:43 adb shell am start -a android.intent.action.VIEW -d "http://www.webune.com/forums/how-to-get-screen-resolution.html" Apr 02 22:14:55 evancharlton i dont buy it Apr 02 22:15:07 i have to set my website to 1980/2 to display properly Apr 02 22:15:13 which sounds very xhdpi-ish Apr 02 22:15:34 regardless, i have it working Apr 02 22:15:39 stats monitors powered by google tv :) Apr 02 22:15:52 canadiancow|work: you can buy whatever you want, but I just linked you to a demo so try it and see Apr 02 22:16:04 Gumboot, do you have a minute for me to pick your brains again please, regarding the issue I was having changing audio frequencies smoothly? I've implemented smootherstep, and a look-ahead that checks to see if the tone changes within the next 100th of a second. If it does, the next 100th of a second is dedicated to ramping the frequency up using smootherscale..this has resulted in a Apr 02 22:16:04 'smooth' transition (i.e. no crackling), however it has resulted in a 'wobble' in the audio (see http://g0blin.co.uk/wobble.png)..sorry if my terminology is off..no problem if you don't have time at the moment =).. Apr 02 22:16:12 ..and, sorry for the wall of text! :> Apr 02 22:18:27 evancharlton i cant access the subnet the googletv is on so i have to type it in :P Apr 02 22:19:13 hmm evancharlton that is strange Apr 02 22:19:17 that site says 1844x1032 Apr 02 22:19:28 but i have to hardcode some stuff on a page as half that or it fucks up Apr 02 22:19:47 canadiancow|work: that sounds close to 1080p, but I wonder why it's not actually 1080p Apr 02 22:20:00 evancharlton, they explained that at the dev lab Apr 02 22:20:15 you know how you have to do the screen fit thing when you set it up? Apr 02 22:22:32 romainguy, are you there? Apr 02 22:22:38 maybe Apr 02 22:22:40 lol Apr 02 22:22:47 I've got a bone to pick with your peeps Apr 02 22:22:58 ew Apr 02 22:23:03 is the in-app purchasing API disconnected from the google checkout API? Apr 02 22:23:09 i don't seem to be getting callbacks to my server Apr 02 22:23:30 sorry, I can't help you there Apr 02 22:23:33 who can? Apr 02 22:24:24 yea i might be able to help if it was just IAB, but you're doing more than i have ever done Apr 02 22:24:38 this is sort of a time sensitive issue and I have no idea who to contact Apr 02 22:25:01 is libgdx still the best 2d graphics library for android? Apr 02 22:25:02 https://support.google.com/googleplay/android-developer/?hl=en Apr 02 22:25:15 that's the link in the top of my developer console; I assume those are the right people Apr 02 22:25:49 hello Apr 02 22:25:52 your dev console is different than mine! Apr 02 22:26:14 quick question: how do I view the available downloadable branch names when checking out with repo? Apr 02 22:26:17 canadiancow|work: well I'd sure hope so, since they're my apps, not yours. Apr 02 22:27:54 mine says "in case of problems, come to #android-dev" Apr 02 22:28:52 lol Apr 02 22:28:57 This just sucks Apr 02 22:29:07 things go in the merchant console Apr 02 22:29:19 but merchant call backs don't work :( Apr 02 22:47:39 Anybody ever work with Urban Airship? Apr 02 22:49:55 Chronax, for push notitications? Apr 02 22:54:03 does changing the locale on your phone also change the Java default locale? I tested my app using Spanish locale and it works but in Spain, I see error reports beacuse data is formatted incorrect i.e. 1,72 when I expect 1.72 Apr 02 22:54:21 although, as i mentioned, it works just fine for me when I change local on my phone and test in US Apr 02 23:06:16 Hey is there part of the activity lifecycle that will automatically kill location requests? Apr 02 23:06:39 My application is crashing because I'm trying to kill a location request and it did it already Apr 02 23:08:23 Ankhwatcher: yes, process death. Apr 02 23:08:40 the location manager will not crash your application for the reason you specified. you must simply be mistaken. Apr 02 23:09:02 logcat :) Apr 02 23:10:37 * ctate points to http://imgur.com/jacoj in the channel topic Apr 02 23:11:48 * canadiancow|work +1's ctate Apr 02 23:13:11 * SimonVT +1's canadiancow|work Apr 02 23:19:36 what's this format called: 2012-04-02T23:08:25Z Apr 02 23:24:58 what's with the T? Apr 02 23:25:03 Time Apr 02 23:25:11 nm Apr 02 23:25:14 canadiancow|work: gah, I'm drawing a blank Apr 02 23:25:16 what is it? Apr 02 23:25:16 apparently im a dumbass Apr 02 23:25:21 i dont know Apr 02 23:25:21 or care Apr 02 23:25:24 well..:P Apr 02 23:25:24 i got it into a better format Apr 02 23:25:25 :) Apr 02 23:25:28 Hi Apr 02 23:25:42 so i emailed someone at google today, and asked for some logitech revues Apr 02 23:25:43 and i got two :) Apr 02 23:25:51 Send me one :o Apr 02 23:25:51 Is it considered excessive to have a main process, a background process (that's basically for isolating an intent service), and a third process for a homescreen widget? Apr 02 23:25:57 no they're for zynga! Apr 02 23:26:00 :( Apr 02 23:26:04 canadiancow|work: looks like http://en.wikipedia.org/wiki/ISO_8601#Durations Apr 02 23:26:06 Niya, multiple PROCESSES? Apr 02 23:26:12 not just services/activiites? Apr 02 23:26:28 canadiancow|work: Correct. It's a pretty heavy game... Apr 02 23:26:38 Niya: it's definitely considered excessive to put all those things in separate processes Apr 02 23:26:39 why would you want to do that? Apr 02 23:26:49 I'm having a really weird problem. I'm having two shared preferences set to different things. One called SCORE and one called MSCORE. After I've set them I log it and the results are correct. Then I go to a new activity but when trying to get the strings they are both suddenly MSCORE... Any idea why this could happen? This is driving me nuts Apr 02 23:27:08 in particular, unless the widget is extremely heavy why would you put it in a different process from the service? Apr 02 23:27:10 canadiancow|work: Because Android doesn't give us much memory? Apr 02 23:27:10 sounds like a case of doing it wrong Apr 02 23:27:22 is the memory limit a per process limit? Apr 02 23:27:30 canadiancow|work: there is a per-process limit, yes Apr 02 23:27:40 but using multiple processes uses up extra overhead per process Apr 02 23:27:54 on the order of at least a meg and a half of total system ram per Android process Apr 02 23:28:12 didnt dianne hackborn write a post about a shitty game that used multiple processes Apr 02 23:28:17 and that NO GAME SHOULD DO THIS Apr 02 23:28:42 used multiple processes and left it running Apr 02 23:28:47 Yes Apr 02 23:28:50 as for a process limit, ulimit -m says unlimited Apr 02 23:29:13 pfn: Was the "sounds like a case of doing it wrong" to me? Apr 02 23:29:13 not quite but close. her post was https://plus.google.com/105051985738280261832/posts/JAqggyKcM2z Apr 02 23:29:24 you have a dalvik heap limit Apr 02 23:29:29 which would necessitate multiple processes Apr 02 23:29:47 but if you do all your big allocations in native code, it doesn't affect the dalvik heap Apr 02 23:30:13 i'm surprised the service adds that much additional overhead Apr 02 23:30:21 since most of a game's ram footprint is assets related to the UI Apr 02 23:30:48 Anyone have an answer to my problem? I've tried everything but nothing is working Apr 02 23:31:04 you are doing a poor job of communicating your prob lem Apr 02 23:31:08 also for the love of god don't have the service actually live in memory unless somethign that needs it is actually frontmost on the UI Apr 02 23:31:08 you haven't said what exactly is happening Apr 02 23:31:19 ctate: I honestly don't understand either =/ Apr 02 23:31:44 Wait, I'll post it on pastebin Apr 02 23:32:20 if your game runs a service in the background that keeps running even when the user isn't playing the game, your users will punish you on Play for the battery losses that ensue Apr 02 23:32:38 also, re memory, every megabyte that your app uses is another megabyte that other apps are denied Apr 02 23:32:55 * pfn still wonders why shadowgun keeps showing up on battery usage Apr 02 23:32:56 muahaha Apr 02 23:33:01 even though it doesn't run Apr 02 23:33:03 if returning Home after running your game is always slow because Launcher has to be relaunched because your apps' memory demands kicked it out of memory, users will be sad. Apr 02 23:33:08 stupid battery usage meter bugs Apr 02 23:33:10 pfn: because you haven't rated it 1 star and uninstalled it yet :( Apr 02 23:33:11 pfn: uh Apr 02 23:33:36 pfn: perhaps it *is* running? Apr 02 23:33:46 ctate, don't see it in the running apps list Apr 02 23:33:57 Periodic tasks? Apr 02 23:33:58 there is no running-apps list Apr 02 23:34:07 running services list Apr 02 23:34:08 there is *recent apps* Apr 02 23:34:10 and .. that Apr 02 23:34:14 so maybe it's running in response to alarms Apr 02 23:34:19 don't see it in ps either Apr 02 23:34:21 [19:33:02] if returning Home after running your game is always slow because Launcher has to be relaunched because your apps' memory demands kicked it out of memory, users will be sad. Apr 02 23:34:22 periodic start/stop Apr 02 23:34:28 because users will understand that's the app's service... Apr 02 23:34:38 canadiancow|work: i didn't say users would necessarily know to blame your app Apr 02 23:34:41 i just said they'd be sad Apr 02 23:34:49 set alarm for 30 minutes from now; check to see if phone is in use, if not, send location to china Apr 02 23:34:56 ctate, I suppose that's possible, but I don't see it in ps either... no real details to be sure Apr 02 23:34:57 rinse, repeat Apr 02 23:34:59 although "it's slow to go home from this game" is a pretty consistent signal Apr 02 23:35:28 I've seen people blame the launcher for this Apr 02 23:36:07 my droid1 is always so slow launching the launcher again :( Apr 02 23:36:16 SimonVT: ... and that makes *me* sad. Apr 02 23:36:22 pfn: it's ram-crunched. Apr 02 23:36:31 ctate, I know, it is Apr 02 23:36:39 droid1 has like negative ram Apr 02 23:37:27 but yeah, I wish the battery usage thing would show times running if it shows up in the chart Apr 02 23:37:31 Someone please tell me if there's anything wrong here... I really can't find anything: http://pastebin.com/53DagsuV Apr 02 23:37:44 pfn: adb shell dumpsys batteryinfo Apr 02 23:37:48 for the low-level skinny Apr 02 23:37:52 Solirify: that's not very specific :S Apr 02 23:38:02 Solirify: Check your static finals Apr 02 23:38:05 They're both Score Apr 02 23:38:16 inconsistent indentation, looks like a small piece of the code.. Apr 02 23:38:19 Might have something to do with it Apr 02 23:38:25 ctate, yeah, I did that in the past, and used betterbatterystats -- shadowgun didn't actually show up, I think Apr 02 23:38:31 what is mGameSettings? Apr 02 23:38:46 but the last couple days I've been playing it, so I can't really narrow it out again Apr 02 23:38:47 (which i see is being accessed from two different activity classes!) Apr 02 23:39:03 ctate: mGameSettings = getSharedPreferences(GAME_PREFERENCES, Context.MODE_PRIVATE); Apr 02 23:39:08 and yes, both your constants are the same value Apr 02 23:39:31 Solirify: but where is that initialized, and where is that variable stored? Apr 02 23:39:42 or is it a differetn variable of the same name in each activity? Apr 02 23:39:50 Ohh... I just copy pasted the finals -.- It's working now, thanks guys :D Apr 02 23:39:52 Solirify, huh? mscore and score are the same setting Apr 02 23:40:22 Solirify: heh Apr 02 23:40:25 tsk tsk :) Apr 02 23:40:34 Solirify: You don't need to commit after each putString.. it can commit several values at once Apr 02 23:40:51 I only had the first "Score" first, then I needed to create a new one so I copy-pasted it :P Haha god now I feel like an idiot xD Apr 02 23:41:31 ctate: what you said earlier...i understand all that. that's why i was trying to figure out why there wasn't an onStop function of some sort. you have functions for bind, unbind, and start, but not for stop. Apr 02 23:41:34 SimonVT: Yeah, I know. That was just because I had tested if that could have been the problem :) Apr 02 23:42:23 Never gonna do that mistake again, haha. Thanks for the help everybody. Gotta go now, cya :) Apr 02 23:43:10 dualMoon: the model is that the service really shouldn't be stopped unexpectedly Apr 02 23:43:27 unlike bindings, which can and do go away spontaneously for reasons outside the service's knowledge Apr 02 23:44:26 dualMoon: you sound like you want to get a callback for it for some reason. my hunch is that this is a hint that you might do better approaching the problem differently. what are you actually trying to accomplish? Apr 02 23:45:17 What are good books on android development (not so much on APIs, I can RTFM those but on dev approaches, lifecycle, modules, etc.)? Apr 02 23:49:03 if I'm trying to make some positive/negative percent bars like so: https://www.dropbox.com/sh/7md92dqmjc4523g/HLuh1HPud6/appmock5.png , is the best way to dynamically create a stack of drawables/gradients in code? Apr 02 23:49:11 or is there a way I could maybe use a progress bar skinned or something? Apr 02 23:56:38 jasta: found it: my GPS and Network listeners were defined for the capture request but just null in this case. Apr 03 00:09:56 So, no good books on Android development? Apr 03 00:10:39 gverig: not in regards to what you're looking for. You'll get an all-in-one package with most 'learning android' books Apr 03 00:10:51 google has a bit of documentation on recommended style, but that's about it, at least for something separate Apr 03 00:12:18 HacDan: Well, I guess I didn't phrase my question well enough... Do you have recommendations on what you would consider a good book on Android? And the "no javadoc" part came from experience with Java In a Nutshell books where first half was usually great and second was just javadocs to beef up page counts Apr 03 01:00:39 xorgate u there? Apr 03 01:00:59 sure Apr 03 01:01:52 awesome, well had a follow up question for you...i had asked about changing image in a Listadapter...and u had said to extend a baseadapter to have full control Apr 03 01:02:24 i have changed the code to have that done, but i still am not 100% on how i can just change the ImageView image Apr 03 01:03:04 one thing i was thinking of doing was to remove the item totally and then re-add it with the replaced image Apr 03 01:03:17 ok so you have a layout with an ImageView in it? Apr 03 01:03:31 yep Apr 03 01:03:32 and you make a new layout for every getView() ? Apr 03 01:03:49 (ignoring convertView for a second) Apr 03 01:04:07 make = inflate Apr 03 01:04:24 yeah Apr 03 01:04:40 i have mInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); line in the constructor Apr 03 01:05:44 great Apr 03 01:05:50 is there a way to set a background drawable on a shape drawable? Apr 03 01:05:58 so in getView you call mInflater.inflate(blah) right? Apr 03 01:06:04 yep Apr 03 01:06:28 ok, so you can find the imageview using findViewById Apr 03 01:06:41 and then set the bitmap Apr 03 01:07:24 i dont want to change this image for all the rows in the list...just the one im examining Apr 03 01:08:11 getview works on 1 row at a time Apr 03 01:08:33 o ok, didnt get that u were suggesting to call getview Apr 03 01:08:41 it gets called for you Apr 03 01:08:50 oh Apr 03 01:08:50 listview decides what rows to show Apr 03 01:08:54 and asks you to fill them Apr 03 01:09:02 yea thats being done Apr 03 01:09:18 go to youtube and watch 'world of listview' Apr 03 01:09:25 all is explained Apr 03 01:09:27 what i want to do is...after the list is populated fully, i want to go back in and modify the image on one of the row's Apr 03 01:09:36 sure you can do that Apr 03 01:09:58 you can ask the listview what the position is of the visible rows Apr 03 01:12:48 hmm ok, gonna watch the video u mentioned and see if it shows how to do that Apr 03 01:13:23 ton of info in there Apr 03 01:13:32 ok thanks Apr 03 01:14:11 it has Google I/O 2010 in its title? Apr 03 01:14:42 yep Apr 03 01:14:49 it's by our very own mr guy Apr 03 01:15:21 ok Apr 03 01:27:51 any ndk people here? Apr 03 01:28:31 depends on what you need Apr 03 01:28:52 trying out cocos2d-x. i run the build_natives.sh and it says Apr 03 01:28:55 "Install : libhelloworld.so => libs/armeabi/libhelloworld.so" Apr 03 01:29:02 but i'm not sure where the so file is Apr 03 01:29:09 no libs folder in the project Apr 03 01:29:28 what is the problem? Apr 03 01:29:50 The .so contains your native code Apr 03 01:29:54 i'm getting an unsatisfied link error because it can't find the library Apr 03 01:30:00 yeahh Apr 03 01:30:20 Unsatisfied link error from where? Apr 03 01:30:44 When you system.loadLibrary("mylib")? Apr 03 01:30:49 yep Apr 03 01:31:09 buld on the shell and then you need to do a CLEAN Apr 03 01:31:12 in the IDE Apr 03 01:31:28 of your libs will not get copied in the notes say Apr 03 01:31:38 are you trying the sample project? Apr 03 01:31:44 yeahh Apr 03 01:31:45 I got it to work no issues last week Apr 03 01:31:45 easy Apr 03 01:31:46 ndk-build clean; ndk-build Apr 03 01:31:48 hrm Apr 03 01:32:04 i've never done native dev on android Apr 03 01:32:07 no IDE clean Apr 03 01:32:07 so i'm a bit lost Apr 03 01:32:15 was the notes Apr 03 01:32:41 you run the build shell script and then you do a clean build in eclispe Apr 03 01:32:50 the build_natives.sh script right? Apr 03 01:32:51 and that packs up the libs into the pak file Apr 03 01:32:54 yes Apr 03 01:32:55 oh what the fuck... my tv has bluetooth Apr 03 01:33:02 there sdirections you should be following Apr 03 01:33:04 hm, yeah that's what i'm doing Apr 03 01:33:12 aha i am following the directions Apr 03 01:33:27 i ran build_natives.sh which doesn't give any errors, then i cleaned the project in eclipse Apr 03 01:33:34 and i'm getting the error Apr 03 01:34:01 What are you doing differently today than you did last week? Apr 03 01:34:18 …me? Apr 03 01:34:30 Yeah didn't you say that you got it to work last week? Apr 03 01:34:37 nah that was TheBunny Apr 03 01:34:39 ChvyVele: this is dumb but... Apr 03 01:34:41 take teh sample Apr 03 01:34:50 Oh Apr 03 01:34:59 copy the folder to the android samples folder in the SDK Apr 03 01:35:02 and import it again Apr 03 01:35:04 as a SAMPLE Apr 03 01:35:07 not as a project Apr 03 01:35:09 so im getting these shitty 'out of space' warnings when installing. what folders can i look at to clean to make more space? Apr 03 01:35:19 I never got the normal importing to work at all with the current IDE Apr 03 01:35:48 but when I import as a sample Apr 03 01:35:53 everything works Apr 03 01:35:56 I have been using NDK for a few years and strongly recommend not using Eclipse for NDK projects Apr 03 01:35:58 k i'll try that. i have noticed importing works poorly with android projects in eclipse Apr 03 01:36:02 Or anything... Apr 03 01:36:41 It is much easier to do everything through command line when NDK is involved Apr 03 01:37:12 I got Javav / NDK joint project set up and I can debug C++ Apr 03 01:37:15 this took 10 hours :P Apr 03 01:37:21 heh Apr 03 01:37:34 heres a hint use the all in 1 installer from nvida Apr 03 01:37:51 Heh, most of the time I have spent using eclipse has been fixing problems with eclipse and not with my code Apr 03 01:38:22 http://developer.nvidia.com/tegra-android-development-pack Apr 03 01:39:48 could someone help me debug this? (sorry if its an obvious error, im new to java) http://pastebin.com/mV0jA0LF Apr 03 01:41:51 sorry, im sure line numbers would help http://pastebin.com/SZqSph1B Apr 03 01:42:14 you need to try/catch the exceptions or throw them. if you are using eclipse it should let you quickfix.. Apr 03 01:42:51 oh, okay Apr 03 01:42:56 also you need to rename url to urlToFetch line 15.. Apr 03 01:43:01 ah Apr 03 01:43:10 sorry, im clumsy with new languages Apr 03 01:44:18 err same error when i loaded it as a sample Apr 03 01:44:33 i don't think the .so is even being made Apr 03 01:44:39 i think build_native.sh is lying to me Apr 03 01:47:23 ls -R libs Apr 03 01:47:48 there is no libs directory Apr 03 01:47:56 tried making one Apr 03 01:48:10 still didn't put any .so's in it Apr 03 01:48:13 * ChvyVele sighs. Apr 03 01:48:17 might have to stick to java Apr 03 01:48:19 what is build_native.sh? Is it a wrapper around ndk-build? Apr 03 01:48:25 yeah basically Apr 03 01:49:01 Just use ndk-build... Apr 03 01:49:26 I like to use a Makefile for compiling my NDK projects: http://code.google.com/p/paridroid/source/browse/Makefile Apr 03 01:49:50 the problem is i have no idea what cocos2d-x is doing Apr 03 01:49:57 as far as build_natives.sh goes Apr 03 01:50:38 cd into your jni directory and run ndk-build Apr 03 01:50:56 then cd .. and ant debug Apr 03 01:51:12 error with the ndk-build, cannot find module with tag 'cocos2dx' in import pat Apr 03 01:51:13 path Apr 03 01:51:14 * Apr 03 01:51:35 Who wrote this script? Where did you find it? Why are you using it? Apr 03 01:51:49 http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_build_and_run_HelloWorld Apr 03 01:52:02 the build_natives comes with cocos2d-x when you download it Apr 03 01:52:55 oh Apr 03 01:53:05 I thought you were trying to build the android sample helloworld Apr 03 01:53:28 heh Apr 03 01:53:36 sorry Apr 03 01:54:28 make sure you define the variables correctly in that script Apr 03 01:56:06 yeah i did. i mean, the script looks like it is working okay because it outputs Apr 03 01:56:07 "Install : libhelloworld.so => libs/armeabi/libhelloworld.so" Apr 03 01:56:23 which you would think means the it put libhelloworld.so into libs/armeabi/ Apr 03 01:56:29 but nope Apr 03 01:59:27 hm Apr 03 02:00:20 ls $COCOS2DX_ROOT_LOCAL/cocos2dx/platform/third_party/android/prebuilt Apr 03 02:00:38 http://hookerbots.com/drawing/ Apr 03 02:00:46 something I whipped up tonight out of boredom Apr 03 02:01:44 okay, what the hell Apr 03 02:01:56 grothendieck, those .so's should be created in my project right? Apr 03 02:03:14 ChvyVele: Apr 03 02:03:24 yes it goes in obj and libs folder Apr 03 02:03:32 thast where it builds all that for me Apr 03 02:05:09 cocos2d-x is putting them in its directory Apr 03 02:05:14 what the hello Apr 03 02:05:15 is happening Apr 03 02:05:22 http://pastebin.com/CQmidsZC Apr 03 02:05:33 this is what I get Apr 03 02:05:43 in the default HelloWorld sample Apr 03 02:12:46 i don't get why Apr 03 02:12:54 i have a project in my ~/workspace folder Apr 03 02:12:57 when i build the natives Apr 03 02:13:32 it is putting the obj/ and libs/ in the cocos2d-x/HelloWorld/android folder Apr 03 02:13:43 Read build_native.sh Apr 03 02:13:54 probably an annoyingly coded script Apr 03 02:13:59 lines 63-71 Apr 03 02:14:20 why is your project in your workspace :P Apr 03 02:14:23 god Apr 03 02:14:29 because i want it there Apr 03 02:14:30 :P Apr 03 02:14:33 go read the build file then Apr 03 02:14:38 like grothendieck said Apr 03 02:14:50 it explainds everything its doing Apr 03 02:27:38 ctate: you're probably right. i'm still trying to wrap my head around how to implement a service properly. I'm trying to create a media player that stays playing in the background while updating ui elements while the activity is open. pretty common, i assume, so i'm sure i'm dumbly trying to reinvent the wheel. Apr 03 02:28:31 dualMoon: look at the old music player service Apr 03 02:30:54 well i think i have a handle on what to do now. seems like what ctate was trying to get across was that bind/unbind and start/stop are two entirely different ways to handle a service and won't be used at the same time. that's where i was confused. i thought you had to bind to the service to use messengers but that appears to not be the case. Apr 03 02:30:58 04-03 02:28:18.499: E/AndroidRuntime(619): java.lang.RuntimeException: Unable to start activity ComponentInfo{stabbyspazzout.black.bunneh/stabbyspazzout.black.bunneh.StabbySpazzOutActivity}: android.os.NetworkOnMainThreadException Apr 03 02:31:04 advice on how to debug that? Apr 03 02:31:08 or what it means? Apr 03 02:31:18 There's more stack trace Apr 03 02:31:40 android.os.NetworkOnMainThreadException Apr 03 02:31:45 means you used the network on the main thread Apr 03 02:31:49 don't do that Apr 03 02:32:16 i see Apr 03 02:32:22 i have no idea how to thread Apr 03 02:32:27 learn ;) Apr 03 02:32:28 * swarley googles Apr 03 02:32:40 it's important to not hang the main thread for a significant time in Android Apr 03 02:32:54 (no matter what you do - network is just a good and unpredictable way to do that) Apr 03 02:33:08 AsyncTask Apr 03 02:33:18 intentservice Apr 03 02:33:51 I learned how big of a deal that was with my management service Apr 03 02:34:04 dualMoon: yes, and the music service uses both methods at the same time Apr 03 02:39:35 g00s: am i supposed to know what "the old music service" is? Apr 03 02:39:52 its in git Apr 03 02:40:08 i don't know if it was replaced after google music Apr 03 02:40:32 seems like you're making a lot of assumptions for someone who is obviously learning :P Apr 03 02:40:42 so i tried using threads, but i got the same error Apr 03 02:44:08 interesting stuff, can't wait http://www.appleinsider.com/articles/12/04/02/intel_says_ultrabooks_trump_macbook_air_ipad.html Apr 03 02:44:30 i guess i have also seen the current tablets as toys Apr 03 02:45:09 asynctask hurts my head lol, i might have to try for that tomorrow Apr 03 02:51:44 <`teh1> anyone have experience with zxing core? Apr 03 02:52:10 <`teh1> im trying to get code128decoder to look for a barcode in an image Apr 03 02:52:15 <`teh1> no luck :[ **** ENDING LOGGING AT Tue Apr 03 02:59:58 2012