**** BEGIN LOGGING AT Fri Jul 20 02:59:59 2012 Jul 20 03:05:21 Hi Jul 20 03:08:30 If I want to build framework.jar used in emulator, which command shall I use "mm -j4", "mm PRODUCT-full-eng", "mm PRODUCT-generic-eng"? Jul 20 03:09:23 in the framework/base directory Jul 20 03:10:48 i think its full-eng, this is for compiling android right? Jul 20 03:11:50 its generic-eng for cyanogenmod actually Jul 20 04:21:09 got a question about permission="security" i tested in emulator and cm9. i got my app with the permission, and another app with that permission to send data with a broadcast. now i tested if it really blocks wrong signatures. so i installed my app first, then the other with different signature and get permission denial. all good, BUT, if i install the OTHER app FIRST and then my app, i do NOT get a permission denial! wh Jul 20 04:21:09 y? Jul 20 04:24:44 This is rather confusing. I'm seeing documentation all over the Internet that Android only supports BouncyCastle keystores (BKS). But in Jelly Bean I am getting a NullPointerException when specifying BKS. Jul 20 04:25:08 it would appear that, at least as of Jelly Bean, JKS files are now supported and default Jul 20 04:25:21 does anyone know what happened? Jul 20 04:36:27 hi all Jul 20 04:36:44 is there a way to view the manifest of an app from the google play site? to see why it is 'incompatible'? Jul 20 04:37:41 it gives a reasion when you try to install the application from the store Jul 20 04:37:44 *reason Jul 20 04:38:05 no it doesnt, it doesnt even display in the store if its incompatible Jul 20 04:38:30 i always get incompatiable coz of country or something like that Jul 20 04:38:30 jmg: install it on another device and then try apktool ;-) Jul 20 04:38:32 it displays on the web page with "This app is incompatible with your device" but doesnt specify why. now, if there was some way to download its manifest Jul 20 04:38:51 pboos: that would work if i had a device that it worked on Jul 20 04:39:34 jmg: then there is no way i guess. Jul 20 04:39:57 you mean, "i don't know" Jul 20 04:39:58 jmg: if you quickly tell me the packagename, i can look at the manifest for you Jul 20 04:40:06 jmg: true :) Jul 20 04:40:07 pboos: com.spotworks.electricsheep Jul 20 04:40:47 jmg: weird.. it is compatible with all my devices (in japan) Jul 20 04:40:51 jmg: what country are you in? Jul 20 04:41:02 i own it, and i had it installed this morning Jul 20 04:41:07 before i flashed cyanogenmod. Jul 20 04:41:17 i'm trying to work out what in build.prop is blocking it Jul 20 04:41:22 i'm in nz Jul 20 04:42:02 jmg: ah i see.. weird. if you own it, then you know what is in the manifest anyway :) Jul 20 04:42:24 not if i cant download it because it is no longer compatible with the device it was running on this morning ;D Jul 20 04:42:30 jmg: i guess it is not the manifest but some deeper problem then. but where.. if at least somewhere it would show WHY that message is displayed... Jul 20 04:43:09 no, the app compatibility is calculated against the manifest Jul 20 04:45:20 anyone around to help? Jul 20 04:47:51 jmg: true. but i see it costs. don't wanna spend money to help :D Jul 20 04:48:09 jmg: too bad you do not have a second device to download it and use apktool. Jul 20 04:48:43 quantibility: well, there are many people around i guess. question is, if they can help or want to help :D you can just ask the question and see if someone answers :) Jul 20 04:49:09 thank pboos Jul 20 04:49:11 s Jul 20 04:49:26 anyone need an idea for an app? Jul 20 04:49:40 pboos: too bad google play is retarded Jul 20 04:49:40 soundboard Jul 20 04:49:57 <---- i am into sound stuff too Jul 20 04:50:21 :) Jul 20 04:50:36 what are you doing nexsoft? Jul 20 04:50:41 quantibilly: whats the idea? Jul 20 04:50:44 quantibility: you have an idea you want somebody to implement? or what? Jul 20 04:50:49 sure Jul 20 04:50:52 im full of em Jul 20 04:51:06 like useing your android to control the mouse on the computer Jul 20 04:51:16 has been done already Jul 20 04:51:27 with motion? Jul 20 04:51:41 Has it? I want to use my tablet as a gigantic trackpad... Jul 20 04:51:48 what do you mean with "with motion"? Jul 20 04:51:50 lol Jul 20 04:51:52 awesome Jul 20 04:52:10 quantibility: https://play.google.com/store/apps/details?id=com.hungrybolo.remotemouseandroid&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5odW5ncnlib2xvLnJlbW90ZW1vdXNlYW5kcm9pZCJd Jul 20 04:53:38 pboos, kinda like useing a wii mote Jul 20 04:54:20 quantibility: ahh. .with using the gravity sensors/gyroscope.. not sure if that has been done :) Jul 20 04:54:39 ok, how do i view the manifest.xml from the apk file? Jul 20 04:55:11 "Bitmap bottomImage = new BitmapFactory.decodeFile(imagePath);" why is it givving me a "BitmapFactory.decodeFile cannot be resolved to a type" Jul 20 04:55:19 pboos: yeah Jul 20 04:55:29 jmg: https://code.google.com/p/android-apktool/ Jul 20 04:56:44 i wanna decompile apk's Jul 20 05:03:29 damnit, not the right one Jul 20 05:03:49 hi! Jul 20 05:03:55 i am getting problems trying to compile AOSP Jul 20 05:03:55 http://pastebin.com/zPcSxzNt Jul 20 05:03:59 anyone help? :) Jul 20 05:04:34 stabby stabby stabby. Jul 20 05:04:52 :o Jul 20 05:05:23 coolty: http://www.bo.infn.it/alice/alice-doc/mll-doc/ali-inst/node39.html at the bottom mentions your problem and how to solve it. Jul 20 05:05:42 coolty: google be your friend ;-) (took me 30 seconds to find it) Jul 20 05:06:06 coolty: answer on there: "you must check that the libraries and the programs are not mixed 32/64 bits. If you have 64 bit libraries recompile all code with the appropriate 64 bit compiler." Jul 20 05:06:14 hm Jul 20 05:06:27 but Jul 20 05:06:32 ok i'll try Jul 20 05:07:12 coolty: and the more android related one: http://code.google.com/p/android/issues/detail?id=17832 Jul 20 05:07:35 coolty: from that one: "Apart from that, the main issue was that you didn't have the 32-bit X11 libraries installed on your system." Jul 20 05:07:47 yeah Jul 20 05:08:04 debian 6 is multiarch.... and i can't find the 32 bit package for debian 6 Jul 20 05:08:13 sounds like i'm supposed to have ubuntu :| Jul 20 05:08:57 i narrowed it down to i need the 32bit x11 lib Jul 20 05:09:02 but cannot find it anywhere Jul 20 05:09:03 :( Jul 20 05:11:31 ok so how do i retreive the devicwe id for a device that is registered with my account in google play but i dont have in my immediate posession? Jul 20 05:12:29 this is starting to REALLY piss me off Jul 20 05:23:05 http://paste.nothing.net.nz/63efc1 why would that block?? Jul 20 05:23:38 what's that a paste of? Jul 20 05:24:00 aapt dump badging Jul 20 05:29:10 Anyone know why i permission=signature is not checked if the "hacker" application is installed before the main application? Jul 20 05:29:48 protectionLevel=signature i mean Jul 20 05:34:31 sorry, aapt isn't my area of expertise. Jul 20 05:34:56 question: has anyone compiled aosp from source in debian 6 squeeze? Jul 20 05:34:59 could it be, that a signature level permissions is either TRUE or FALSE once installed? so if an app, that defines and uses the permission is installed first, than it will be TRUE to access ANY other app (even with different signature) that is installed after that app? Jul 20 05:39:58 DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS. DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS. DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS. Cmon everybody!! DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS Jul 20 05:44:52 oh. Jul 20 05:45:38 Question: if I use the tag to add say a custom header to every page, how do I determine the value of a text field in that custom header for each page? Jul 20 05:45:53 i've looked everywhere at the merge/include info and nothing seems to be able to dot hat Jul 20 05:47:25 you'll have to do it from code Jul 20 05:54:11 Hi Jul 20 05:54:51 is there some way to launch a bat file on usb connection? Jul 20 05:55:37 like i am trying with autorun.inf but with confused on where to put that file Jul 20 05:57:36 i read to put the autorun.inf file in the root folder of the android device . how to detect the root folder? plz help Jul 20 05:58:10 coolty: you may have more success in #android-root or #android, most of the people here are application developers Jul 20 05:58:50 DopeShope: you could set up a script that uses adb wait-for-device or something similar Jul 20 05:58:50 ummmm Jul 20 05:59:01 ryanm: no this is definitely about android-dev Jul 20 05:59:23 coolty: what does compiling AOSP have to do with application development? Jul 20 06:00:03 #android-dev isn't only about developing applications for android Jul 20 06:00:09 it could be about developing android itself. Jul 20 06:00:32 coolty: look at the first three words of the channel topic please :-) Jul 20 06:01:01 Well, it's not about a custom rom, it's about the vanilla os Jul 20 06:01:13 and people in #android said to try here Jul 20 06:01:27 ryanm: using the script and using adb will launch application if the android device is in the debugging mode . I am connecting device in MTP mode Jul 20 06:01:29 even saying you were right you'd still probably have better luck in #android-root Jul 20 06:01:42 coolty: what's your question? Jul 20 06:02:29 i've asked it awhile ago and nobody can help me, but it was has anyone successfully compiled aosp (or b2g) from source in debian 6 squeeze Jul 20 06:02:42 sorry I don't use Debian Jul 20 06:02:47 but I don't see why it would be a problem Jul 20 06:03:12 well it is a problem, the 32bit libs for x11 aren't available on 64 bit squeeze Jul 20 06:03:21 and even people in #debian have no clue Jul 20 06:03:27 AOSP doesn't use X11 Jul 20 06:03:28 they suggested i try a virtual machine Jul 20 06:03:32 DopeShope: hmm, good point. I'm not sure, in that case. Jul 20 06:03:38 sure it does Jul 20 06:03:44 x11 dev libs Jul 20 06:04:04 Android doesn't use X11 Jul 20 06:04:07 and it's an emulator image, not for an actual device Jul 20 06:04:11 ah Jul 20 06:04:16 so probably qemu Jul 20 06:04:21 yeah qemu would Jul 20 06:04:32 you could try to build the system image without the emulator Jul 20 06:04:41 and just use the emulator from the SDK Jul 20 06:04:42 anyway the whole internet is basically telling me to use ubuntu Jul 20 06:04:45 which i think is dumb Jul 20 06:05:04 I found dat: to run a bat file on usb connection, create a autorun.inf and specify the bat file and place the autorun in the root folder. Its just not working Jul 20 06:05:21 yes i could try compiling just the system image Jul 20 06:05:39 coolty: maybe you could use a 32 bit chroot? Jul 20 06:05:48 yeah i was thinking about that Jul 20 06:05:54 but virtualbox might be easier Jul 20 06:06:12 DopeShope: even so, that won't automatically happen at least on Vista and above. It'll display a prompt first. Jul 20 06:06:13 ugh compiling in vb :( Jul 20 06:07:00 i did that once, it made my CPU go to 800% usage :D Jul 20 06:07:42 how is that possible Jul 20 06:07:43 :O Jul 20 06:07:48 ryanm: yes, but where to place the inf file for that Jul 20 06:07:51 coolty: 8 cores :) Jul 20 06:07:57 lol oh ok Jul 20 06:08:00 You'll probably need to find/write something that hooks into your OS's USB stuff... a quick google search found this thread, but I'm not sure how useful it would be: http://www.pcguide.com/vb/showthread.php?t=70158 Jul 20 06:08:10 nor can I vouch for any of the solutions Jul 20 06:10:40 I haven't got a Windows computer handy to try any solutions on, so I'm not sure. Jul 20 06:13:59 actually its for windows. i want this to be done on android and launch app on windows Jul 20 06:14:26 f2prateek, yes, it is for compiling android Jul 20 06:15:41 f2prateek, finally I use "mm PRODUCT-full-eng" and everything is perfect. Jul 20 06:16:42 romainguy: yeap, thats the conclusion I came to. too bad really Jul 20 06:17:12 Jul 20 06:17:14 oh.. romainbuy__ is here? :) Jul 20 06:17:15 otherwise just a waste Jul 20 06:17:21 romainguy i mean :D Jul 20 06:17:23 I added a new XML file to my res/layout folder. But it doesn't seem to be showing up in R.layout._____ … is there something else I need to do to have it recognized? Jul 20 06:17:52 romainguy: do you happen to know about permission targetLevel=signature implementation? Jul 20 06:18:18 i mean: protectionLevel=signature Jul 20 06:21:08 i even tried file->new->out->android_android xml layout Jul 20 06:21:16 no matter what I do, I can't seem to access it via R.layout Jul 20 06:22:36 oh, http://stackoverflow.com/a/3259974/716008 Jul 20 06:35:01 yeow, nexus 7 arrived Jul 20 06:35:10 Is it silly to have a class that is codependent on another, and useless otherwise? Are nested classes a better solution? Jul 20 06:35:56 by codepending you mean extends? Jul 20 06:36:07 dependent* Jul 20 06:36:39 Nope I just mean that it can't operate without the other, the classes are making calls to each other. Which throws me off and seems confusing. Jul 20 06:42:11 This question feels stupid, I am going to leave now Jul 20 06:46:07 so the design guidelines show the youtube app using actionbar+tabs Jul 20 06:46:10 http://developer.android.com/design/media/app_structure_fixedtabs.png Jul 20 06:46:23 but now the youtube app uses that sidebar swipe UI pattern Jul 20 06:46:30 ?!?!? Jul 20 06:51:31 there were no questions in those four lines Jul 20 06:53:07 Hello Jul 20 06:54:05 JakeWharton, Know anything on infrared Jul 20 06:54:40 in the context of Android, not a single thing Jul 20 06:55:43 JakeWharton: "does the android actionbar/nav/tabs pattern not satisfy youtube UI requirements? If not, are the android patterns not good enough? Shouldn't the google apps at least be consistent?" Jul 20 06:56:32 hehe merissa is still on http://developer.android.com/design/patterns/new-4-0.html Jul 20 06:57:32 It satisfied them fine for approximately 12 months. The app is still adheres to the patterns so clearly they are good enough. If applications are never allowed to experiment and innovate the platform will stagnate. This is compounded since everyone looks to Google apps being handed down from a god and mirroring every nuance in their own apps. Jul 20 06:57:50 Put simply, the app has been updated more recently than the website. Jul 20 06:59:00 anyone from Switzerland here ? I'm interested to see prices of samsung s3 in swiss Jul 20 07:00:53 JakeWharton: Maybe stupid question, but is it possible to show same items (in ABS) with menu key, as there are as actions Jul 20 07:01:10 no Jul 20 07:02:28 ok. I understand you don't want to implement anything that is not in 4.0 android :) but idea using menu key is that on portrait mode there is only icon, no text. And the icns are not always obvious to the users, menu key would allow to show a text too Jul 20 07:02:49 menu key does not show anything at the moment, as I try to avoid the overflow Jul 20 07:03:23 didn't figure out any way to "hack" this behaviour either Jul 20 07:03:34 Since ICS does not behave that way on Android 4.0+ when a menu key is present ABS will not act that way. Jul 20 07:04:17 yep, that's clear concept, otherwise the whole project might weer to completely different direction Jul 20 07:05:06 is there any common pattern to help user with the toolbar actions ? other than switching to the landscape mode to see the text Jul 20 07:05:20 if you set a description the user can see it by long pressing the icon Jul 20 07:05:50 you can also omit an icon and text will be displayed but I can see how that would be less desirable Jul 20 07:06:18 JakeWharton: yep the icon is more important Jul 20 07:06:54 JakeWharton: hello, have you plan to fix lint warning in ABS ? maybe with lint annotations Jul 20 07:06:57 romainguy__: ah, very good. I did not know that! It helps a bit, but not sure how many users know of this pattern Jul 20 07:08:02 neoakira: the lint jar is not available for maven compilation Jul 20 07:08:09 as I see it actions pattern have a small problem with this. with menu key you never saw what actions are available. but with actionbar you don't always know what they do :) Jul 20 07:08:35 ok Jul 20 07:08:39 I'd love some platform wide "help" pattern Jul 20 07:09:06 ok the long press sort of works but not sure if the users figure that out Jul 20 07:09:49 maybe I'll teach that pattern to my users, as a "hint" box Jul 20 07:11:49 are there any cyanogenmod virtualbox images around? Jul 20 07:11:56 ask #cyanogenmod Jul 20 07:12:03 oops ww Jul 20 07:21:34 In my programm, I have an interface to 'something' that displays a result. On the desktop, the main class simply calss a Swing frame that implements this interface and shows the results. On android I could easily detect it an use an android class for it. But here is my question: I want to use the same srouce for desktop/android - what is best practice to do so? Since eclise then marks an error of the non existing swing Jul 20 07:21:34 classes in the cp in the mainclass, eventho these are never instanciated Jul 20 07:22:02 use a common library between the two for shared code Jul 20 07:22:17 hello Jul 20 07:22:35 or have the desktop app depend on the android app and when compiling mark the 'android.jar' as a provided dependency Jul 20 07:23:36 Question, anyone know anything about electronics / Jul 20 07:24:50 JakeWharton: Hmm, since swing is not a common library this wont work. But marking libs as simply provided (and thus ignore by eclipse) might be exactly what I am looking for. Trying to find it ^.^ Jul 20 07:25:16 the interface would be in the common library Jul 20 07:25:25 and then the desktop and android apps would depend on that common library Jul 20 07:25:26 StevenCodes22: Yes, but that might be the wrong channel here. Jul 20 07:26:22 Yeah kinda 50/50 i'm making an IR emitter for my droid and receiver for my pc I have reciever done just need to know how I can read the data/command it Jul 20 07:28:01 Hmm, but the 'display' interface would still need to be implemented inside the project, which brings back the referencedto classes not in CP. Or do you mean even moving the implementation into the library? Then I would have no android/swing-specific code in the project, which might be cool, but sounds difficult to maintain :P Jul 20 07:41:26 Interesting graphic: http://www.cultofmac.com/175773/look-how-many-competitors-apple-has-destroyed-in-just-the-last-year-alone-chart/ Jul 20 07:51:22 Is there a way to check whether IP address is DHCP assigned? Jul 20 07:54:44 Hi, I have REST http api, any way to ensure request are made only from my application? Jul 20 07:57:22 should there be any difference between installing a apk by cliking the apk file in the file manager, or downloading it from an url and clicking it, and using adb to install? Adb and downloading it via the browser works, but clicking the apk file on a sd drive does not, it just gives you the regular install window then say "App not installed" Jul 20 07:59:17 holy shit. that x86 image for the emulatore + opengl support is badass Jul 20 07:59:26 boots in seconds, handles way faster than my dual core Jul 20 07:59:36 quite a ridiculous improvement from the usual emulation Jul 20 07:59:43 asfdd: perhaps the file manager does something wrong? or the file on the sdcard is corupt? Jul 20 08:00:51 Prot, What are you talking about ? Jul 20 08:01:00 AVD Jul 20 08:01:20 ridiculous performance Jul 20 08:01:32 going to seriously speed up dev Jul 20 08:02:11 very nice of intel to release that image Jul 20 08:04:13 android 4.0.3 only right now, but i'm not complaining Jul 20 08:05:03 Prot can it be used on the Samsung Replenish Jul 20 08:06:31 wuzzat Jul 20 08:06:48 this support is for intel processors that have the Execute Disable Bit feature Jul 20 08:06:59 not sure which procs, but my 1st gen i7 has it Jul 20 08:07:35 uh, replenish appears to be an android phone? Jul 20 08:07:38 i'm talking about emulation Jul 20 08:07:58 No clue what that means lol Jul 20 08:15:31 this is an android developers channel Jul 20 08:15:43 so I'm assuming people in here know about the android sdk when I talk about things Jul 20 08:19:19 Prot: I've tried using the x86 image, it doesn't seem much faster than emulation Jul 20 08:19:27 that said I did test on two different machines Jul 20 08:23:12 Prot what image? Jul 20 08:23:16 /which Jul 20 08:23:24 intel's x86 android 4.0.3 image Jul 20 08:23:53 k Jul 20 08:23:56 'Intel x86 Atom System Image' in the Android 4.0.3 API section Jul 20 08:24:14 also need in Extras 'Intel Hardware Accelerated.....' Jul 20 08:24:39 ah Jul 20 08:24:51 need a processor that supports Execute Disable Bit Jul 20 08:24:59 i had to go turn it on in my bios and then install that driver Jul 20 08:25:06 and dedicate 2gb of ram to android emulation Jul 20 08:25:11 but holyshit are the results ridiculous Jul 20 08:25:36 and ofcourse set your AVD to intel cpu rather than arm7 Jul 20 08:25:37 afk Jul 20 08:39:19 so, anyone know how to make tab graphics fill the entire tab, got 3 tabs at the bottom and theres big gaps between em, but i cant work out how to make the graphic stretch to fill the whole tab.. Jul 20 08:40:36 Sorry Gaz` i simply dont know, what i can tell you next time though is dont use tabs ;) haha Jul 20 08:41:08 Ive got a very systematic problem. I boot up my app once and the UI loads, i boot it again and it loads again, the third time it doesnt load Jul 20 08:42:46 i know its a nightmare Jul 20 08:42:48 tabs suck bad Jul 20 08:43:01 client is angry about the gaps Jul 20 08:43:12 but i got no iodea what i can do to make it work on all diff screens Jul 20 08:43:27 yeah my troubles are related to tabs too :( Jul 20 08:43:29 and im getting the usual spiel about being over due etc Jul 20 08:43:44 pressure really doesnt make me work harder, im already working a shard as i can Jul 20 08:52:36 hmm, we have a strange problem here: some classes inherit EditText and they work great with all the attributes, etc., set from xml Jul 20 08:53:12 now we wanted to add an android:ellipsize="marquee" attribute to such a view. and we get an 07-20 10:42:09.623: E/AndroidRuntime(22816): Caused by: android.view.InflateException: Binary XML file line #51: ... Jul 20 08:55:37 is there a default color in @color:android for links? Jul 20 08:56:06 @android:color * Jul 20 08:56:28 interesting.. it seems to only fail with ellipsize="marquee".. it seems to work with "end" Jul 20 08:58:22 can anyone explain viewgutters, what is it? (viewpager) Jul 20 08:58:36 hello, is it possible to start (and run) a service multiple times ? Jul 20 08:59:00 Pinas: one instance only Jul 20 08:59:16 Pinas: but you can send multiple startcommands Jul 20 09:00:22 i'd like to do something like this: create a Service -> service does some processing on data -> starts asynch task with this data -> same again for different data Jul 20 09:01:15 what I currently do is, that I start the service several times and send the different data via the intent but this does not seem to work Jul 20 09:01:23 Pinas: looked at IntentService? Jul 20 09:01:40 appell - now I did not even knew that something like this exists :D Jul 20 09:03:44 is there anyway in the marketplace to localise your app graphic based on region? Jul 20 09:20:13 what I can do is to run the same AsyncTask multiple times right ??? (create several instances and instance.execute id.) Jul 20 09:21:43 Pinas: IntentService doesn't work for you? Jul 20 09:22:52 appell - I don't think so, becaus the asyncTask actually will only finish on user input, so I want to have the processing in paralell Jul 20 09:24:36 Pinas: ok Jul 20 09:30:31 is it possible to pass a view through saved instance state? Jul 20 09:30:57 if not, whats the best way to make sure it doesn't get destroyed on orientation change? make it static? Jul 20 09:31:28 extend the view and implement serializable? Jul 20 09:32:56 CallumTaylor: either use something like onSaveInstanceState or onRetainConfigurationInstance and restore your activity or handle the orientation change yourself http://developer.android.com/guide/topics/resources/runtime-changes.html Jul 20 09:33:16 yeah but I can't put the view into the bundle to get passed back to oncreate Jul 20 09:33:19 thats my problem Jul 20 09:33:57 CallumTaylor: if you can't save and restore its state then I guess you have to handle configuration changes yourself Jul 20 09:34:06 hmm Jul 20 09:34:25 ok ill have a look, thanks appel1 Jul 20 09:35:02 Hello folks. Jul 20 09:35:21 Is anyone using Maven for their android projects? Jul 20 09:35:36 If so, any of you using third party android libraries? Jul 20 09:37:16 ah perfect: http://stackoverflow.com/questions/1002085/android-webview-handling-orientation-changes appel1 Jul 20 09:37:20 exactly what I need Jul 20 09:42:32 GeorgeJ: I do both. Jul 20 09:44:32 ch0wn: Awesome, I've got a really fwked up Android library I need to use(bbb-android-core @ https://github.com/mconf/mconf-mobile). And I can't figure how I should properly integrate it with maven. Jul 20 09:44:55 The project sctructure is kind of fwked up, if you ask me. Jul 20 09:45:46 there fuck all of you I have my IR Jul 20 09:45:46 lol Jul 20 09:45:49 Afaik, maven-android-plugin supports apklib, but I can't figure out how to build the apklib so I can deploy it to my local repository. Jul 20 09:46:45 Is it possible to change the color of the line/border below textfields ? ( creating my own theme, inheriting from holo light) Jul 20 09:47:10 do I actually have to create my own 9patch images (like the ones android is using for this line?) Jul 20 09:48:17 I also want to change the color of the tab-bar etc.. the blue line should be red.. :P Jul 20 09:48:39 ch0wn: Should I just create a zip of the android project with apklib extension and deploy it with mvn install:install? Jul 20 10:05:46 hi Jul 20 10:06:43 does anyone know how to alter emulator capabilities ? I need to test an OpenGL ES 2 app but GLES2 is reported as not supported Jul 20 10:08:27 any ideas how i could run 3 async tasks in paralell ( Androdi 2.3 - 4.1). There seems to be a limit of 1 AsyncTask until Version 1.6. Then from 1.6 - 3.0 you can run 5 paralell asynctask and >3.0 again only 1 Jul 20 10:08:46 I'm a bit confused now ... Jul 20 10:13:16 Pinas, use THREAD_POOL_EXECUTOR as a parameter of executeOnExecutor Jul 20 10:15:16 ducky_h - executeOnExecutor exist since API level 11 - i need to by compatible with android 2.3.3 (API 10) Jul 20 10:15:23 s/by/be/ Jul 20 10:15:41 hi guys..i don't have google play (market )app on my android phone Jul 20 10:15:41 how can i download it to install other apps from google play? Jul 20 10:16:16 Is is possible to have a PendingIntent (from a notification) force a restart on an Activity even if it's currently being displayed? Jul 20 10:16:39 code1 ^^^ Jul 20 10:16:39 Pinas, check this, http://developer.android.com/reference/android/os/AsyncTask.html#execute(Params...) Jul 20 10:16:51 anyone for my simple question? Jul 20 10:17:02 irmal_: wrong channel. Jul 20 10:17:12 right channel ? Jul 20 10:17:23 code1 Jul 20 10:17:42 no this is a developer channel - you're question is not try #android Jul 20 10:19:45 I'll try it, thx ducky_h Jul 20 10:39:32 another question. When my app has minimum api level 10, and i am running on an android 4 - can i use android 4 features (when doing previous check) Jul 20 11:05:48 Pinas: just set the appropriate target api level and ensure that you only use features that are available, there are plenty of samples of how to do this. Jul 20 11:07:12 appell - the problem ist, that when I am on api lvl 11 or higher i have to use executeOnExecutor, when i am on api 10 an lower I can only use .execute. Jul 20 11:07:19 So i somehow should check the api level Jul 20 11:07:44 Pinas: yes Jul 20 11:09:44 well and if i say min api level is 11 I think that I can't run the whole app on a android 2.3.3 phone Jul 20 11:10:07 Pinas: so don't set min level to 11 Jul 20 11:10:12 you should set the min api to say 8 and the target to 11 Jul 20 11:10:39 Hello. Can I use an NFC enabled Android phone to communicate with contactless smart cards (not RFID tags). Jul 20 11:11:42 That depends a lot on the card. Jul 20 11:11:49 you probably should set target to the highest api level you've tested the app on Jul 20 11:11:49 appell - ok thank you :) Jul 20 11:20:18 hi, if i read it correctly you need a CursorLoader to async load the cursor to populate a listview, but if i click the list item and start a new activity or trigger a fragment update, does that fragment need to have a CursorLoader as well to query all the details of the item? Jul 20 11:23:45 http://i.imgur.com/RGymdm.jpg Jul 20 11:23:54 sry, missclick Jul 20 11:24:42 Hey guys Jul 20 11:25:30 awesome. Jul 20 11:25:37 my app makes the android screenshot tool crash Jul 20 11:25:51 (the one integrated in eclipse) Jul 20 11:26:42 never thought that would be possible Jul 20 11:28:07 spobat: what happens exactly? does it get to show the screen? Jul 20 11:28:37 well i clicked the "take shot" and afterwards the window freezed. Jul 20 11:28:44 afterwards eclipse crashed. Jul 20 11:28:51 spobat: what happens if you try to take a screenshot outside of your app Jul 20 11:29:00 it works normally. Jul 20 11:29:06 (I've taken screenshots before) Jul 20 11:29:09 spobat: that's weird.. Jul 20 11:29:22 basically, its the same app, just a different "view" of it. Jul 20 11:30:05 cool, I restarted eclipse and now it works. Seems like some very rare kind of a bug. Jul 20 11:30:22 i made about 10 screenshots before and it was alright Jul 20 11:30:23 ha ha, that thing is very temperamental :D Jul 20 11:30:31 and the 11th made it all bad. Jul 20 11:35:30 wow Jul 20 11:35:37 I have a full screen activity and sometimes I have transparent activities pop up in front of it. But if I press the home button and then return, only the front activity will be visible and the back will be all black.. How can I make both activities show up in that case? Jul 20 11:37:02 Hi all. I was designing my first app in photoshop, working off a 720 x 1280 template. I can't seem to find how high the menubar at the top is (in pixels) Jul 20 11:37:31 Eclipse is pretty crazy like that, usually a restart solves problems - kinda like "restart your PC!" ;p Jul 20 11:38:24 ThomQ: I don't think you should rely on px measures to draw your layout Jul 20 11:39:30 yeah you're right. It's a percentage for all screens anyway, right? Jul 20 11:39:35 ThomQ: you'll need to work it out for your resolution template Jul 20 11:39:47 yes measured in dp Jul 20 11:41:24 ok cool, I'll do that Jul 20 11:43:18 another question: Android resizes everything to fit on the apropriate screen, right? So i chose one of the biggest screens as a template to design on.. Good idea, or am I overlooking things? Jul 20 11:43:18 ThomQ: You could try building your layout on the eclipse layout editor with default widgets, then take a screenshot and build your mockup on photoshop from that Jul 20 11:45:14 ThomQ: that's what I do, design for HDPI then use Shrink-o-matic to resize all the images down to half for LDPI and 75% for MDPI Jul 20 11:45:37 I'm trying to force a users browser to download an image file, rather than display it. What I've written works on desktop browsers, but fails on all android browsers - has anyone in here encountered this problem before or suggest a fix? Jul 20 11:48:55 CallumTaylor: But that doesn't work for tablets.. My phone has a 854*480 4" screen and is hdpi. My tablet has a 1280*800 10.1" screen and it's only mdpi.. When I did that, my tablet only had mdpi images largely scaled Jul 20 11:50:19 You could add another folder to the res/ directory called drawable-xlarge and put there all your xhdpi images, which will look better on tablets Jul 20 11:50:48 yeah, I saw eclipse made an xhdpi folder Jul 20 11:51:24 @Callum: So you shrink them down manually, instead of letting android handle it? Jul 20 11:51:56 ThomQ: But that is only for very high density screens, which only phones have. Tablets are usually mdpi only Jul 20 11:53:06 ThomQ: You create your images, and then resize them and put them in the different folders (ldpi, mdpi, hdpi and xhdpi) and Android then chooses the "best match" and resizes to fit the screen Jul 20 11:53:07 ahh ok.. Weird though, isn't it? You'd think the bigger the screens, the higher the density, right? Jul 20 11:53:26 ThomQ: yes, android does a piss poor job of the images Jul 20 11:53:36 ThomQ: they get really crap edges Jul 20 11:53:57 :P ok cool.. kinda common when you auto-resize stuff, isn't it Jul 20 11:54:02 ThomQ: The bigger the screen, the larger the resolution. But density is resolution/size.. So a large screen would need a proportionally large resolution to match a phone Jul 20 11:55:23 /9/6 Jul 20 11:55:52 ahh yeah ofcourse, @ ricardo Jul 20 11:56:38 The approach I used on my game was having the normal 4 folders with the correctly resized images inside (ldpi, mdpi, hdpi and xhdpi) and then another folder drawable-large with exactly the same images as the xhdpi to be used on tablets Jul 20 12:00:11 Estel: I do not have any particular card in mind. I am looking for secure identification. Jul 20 12:04:41 The bigger the screen does not always mean the larger the resolution. Jul 20 12:06:30 My 4" screen has a larger resolution than my 14" monitor! ;p Jul 20 12:08:50 True, that's why we use density Jul 20 12:09:39 if i count in dip then bigger screen will have higher resolution :) Jul 20 12:10:05 ricardjorg: I suppose the way would be to provide ldpi, mdpi, hdpi, xdpi, and then another 4 for ldpi-large, mdpi-large, hdpi-large and xdpi-large. Jul 20 12:11:13 Lachezar: Maybe.. Depends on your targets.. I think it would be hard to find large screens (7" and up) with ldpi, hdpi and xdpi Jul 20 12:11:57 The hdpi and xhdpi may be coming soon (very high resolution displays :D), but for now, all tablets seem to be mdpi, I think.. Jul 20 12:12:41 The problem is that duplicating the folders, doubles the size your images take on the apk :/ Jul 20 12:13:53 ricardjorg: What's the dpi for Galaxy Tab 1, and Galaxy Tab 2? Google Nexus 7? iPad 1 is ldpi (132 dpi).. Jul 20 12:14:15 ricardjorg: The iPad is just for reference. Jul 20 12:14:44 Oh, I stand corrected. The new Acer Iconia Tab A700 has a 10.1" fullhd screen, which makes it hdpi Jul 20 12:15:10 ricardjorg: And one can selectively skip certain DPI settings... But ldpi devices commonly have less RAM, so downscaling from a higher dpi takes its toll. Jul 20 12:16:07 Galaxy Tab P1000 (7" 1024*600 = 170ppi = mdpi) Jul 20 12:16:53 Nexus 7 (7" 1280*800 =216ppi = hdpi) Jul 20 12:17:07 nexus7 is tvdpi Jul 20 12:17:14 ricardjorg: so using drawable-large using xhdpi images makes the images look much better on tablets? Jul 20 12:17:15 scale down the hdpi resources Jul 20 12:17:41 ixc: How much is tvdpi? Jul 20 12:17:48 213 Jul 20 12:18:30 http://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_TV Jul 20 12:18:40 code1: drawable-large are drawables to use on large screens, but you still need to consider the dpi to get the actual Pixel-Pixel sizes. Jul 20 12:19:17 code1: drawable-large is suitable for images that need to cover large portions of the screen like backgrounds. Jul 20 12:19:31 code1: It did for me. Before, it was using the mdpi ones, which was really low. The game looked good on my phone and awful on the tablet. Then I did the drawable-large and it got much better. I also had to adjust some layouts to account for the bigger screen. So a layout-xlarge helped :D Jul 20 12:19:34 large, xlarge, normal, etc not deprecated? and should use sw, w, h? Jul 20 12:19:34 code1: For interaction elements the DPI isheavier. Jul 20 12:19:36 Lachezar: hmm ok, will need to test out to get my head around it! Jul 20 12:20:39 I notice if I have a simple screen with a few widgets it looks so empty on a large screen! :/ Jul 20 12:21:10 make a dirty layout for large screens :D Jul 20 12:21:26 code1: ixc's advise works easiest :) Jul 20 12:21:35 dirty layout? Jul 20 12:22:49 yesterday i made a simple layout for small screens (smaller than 480dp), and make a bigger with more design element for higher Jul 20 12:23:13 now its looks not empty and only change layout, not logical Jul 20 12:23:32 in layout-large? Jul 20 12:23:51 i used, sw480dp, but yes, layout-large also good Jul 20 12:24:51 do you think it's acceptable to just scale things up so it looks exactly the same with everything just bigger? Jul 20 12:25:06 (i used panel theme, over 480dp, with 450dp panel size :)) Jul 20 12:25:37 that i say, i not just scale up Jul 20 12:25:49 i made other layout, theme, etc for larger screens Jul 20 12:26:18 When I use PopupWindow.showAtLocation y = 50dp its different between android api version Jul 20 12:26:51 testing on a galaxy nexus and the emulator Jul 20 12:27:37 I wish they dropped the low, high naming convention and just go with density_320 for example. I mean DENSITY_XXHIGH ! where will it end! ;) DENSITY_XXXXXHIGH? :p Jul 20 12:28:17 DENSITY_OVER9000 Jul 20 12:28:33 density over integer max Jul 20 12:32:20 Could someone help me with the following question: do I save a file in the internal memory of the tablet, but if I connect the usb and windows explorer file does not appear. I can only see the manager on the tablet ... Jul 20 12:32:31 code1> do you think it's acceptable to just scale things up so it looks exactly the same with everything just bigger? <- no Jul 20 12:33:26 SimonVT: fair enough - I don't have a tablet, and my design skills aren't the best! ;) Jul 20 12:34:04 Just scaling up is compatibility behavior for old apps Jul 20 12:34:08 You have an emulator :p Jul 20 12:35:13 SimonVT: thing is. If I have VERY simple screen with say a label, a button and maybe a checkbox. Do I have look tiny in the middle of a huge tablet screen or do I just enlarge it to take up most of the space (and make short-sighted people happier! ;) Jul 20 12:36:02 If your app doesn't do very much, it's kinda hard, yeah Jul 20 12:36:33 yeh Jul 20 12:37:17 on an unreleated question. If I have a boolean flag in preferences that I don't want people to change, should I encrypt it somehow? Jul 20 12:37:44 * easily change on rooted phones. Jul 20 12:38:08 Why is it a preference if they're not allowed to change it Jul 20 12:38:35 Easy storage! :/ Jul 20 12:39:06 u can save to shared preferences, without make a preference editor for it Jul 20 12:39:10 public static final boolean SUPER_SECRET_BOOL_YOU_CANT_CHANGE = false; ? Jul 20 12:39:44 I want to display 4 textviews in a 2x2 grid that fills the available space. How should I do that? Jul 20 12:39:48 I've tried a TableLayout with two TableRows, each with two TextViews. But the textviews don't have the same width. I've tried assigning weights, but the layout editor freaks out and stops showind my table :/ Jul 20 12:40:01 It's stored in getDefaultSharedPreferences by the app but not in a preference screen Jul 20 12:40:07 How can I change the color of the divider in the DatePicker? Jul 20 12:40:19 SimonVT: It needs to be changable (by the app) Jul 20 12:40:25 by not by the user Jul 20 12:40:42 code1: http://developer.android.com/reference/android/content/SharedPreferences.html Jul 20 12:40:46 is the google play source code available anywhere? Jul 20 12:41:00 It works as is but someone with a rooted phone could easily change it. So I was wondering on encryption methods? Jul 20 12:41:01 Why care if the user roots and changes it? Jul 20 12:41:10 mastro: no Jul 20 12:41:33 SimonVT: because I don't won't it changed by the user Jul 20 12:41:54 Then don't put it on the device :p Jul 20 12:41:56 I wanted to see the source code for the title menu and viewpager Jul 20 12:42:01 I don't see why it's an issue Jul 20 12:42:16 yeah, just dont care of these users Jul 20 12:42:19 If the app breaks, it's their own fault Jul 20 12:42:38 SimonVT: you don't see the issue in a user changing something in your app that shouldn't be changed!? :p Jul 20 12:42:48 or if its like a userid for rest api, u should use another data too for identify it, not only userid Jul 20 12:43:10 What happens if they change it? Jul 20 12:43:25 im sure end of world :) Jul 20 12:44:17 btw encryption also not the best way, user still can change it Jul 20 12:44:24 Let's just say the same result as crossing the streams of a proton pack! :p Jul 20 12:45:00 ixc: true but maybe better than storing it as a boolean flag! Jul 20 12:45:06 You also gotta watch out for the users who decompile your app, change every usage of the boolean to "true", then recompiles your app Jul 20 12:45:39 SimonVT: I know, I'm not trying to make it 100% hack proof, just more hassle than it's worth Jul 20 12:45:42 i think ur method is wrong, thats why u worry of change Jul 20 12:45:50 Is it possible for adding a text view to a ListFragment so i can filter the list? Jul 20 12:45:55 Can anyone clarify if the Razr, Bionic, and Droid 4 bootloader A0.74 is the same? Jul 20 12:45:56 I doubt a bool is that important Jul 20 12:46:21 kevwilde: lists has a adapter, if ur adapter can filter, u can Jul 20 12:46:23 ricardjorg: When I need to make many components same size I use width="0dp" with same layout_weight. Jul 20 12:46:34 I would think yes since their build on the same architecture. Jul 20 12:46:37 SimonVT: changing false to true is a lot easier than changing 0 to the correct integer value for example. Jul 20 12:46:41 ricardjorg: Learned that from Lint :) Jul 20 12:46:43 ixc: can i put the textview in my listview fragment? Jul 20 12:47:09 Lachezar: I'll try :D Jul 20 12:47:31 i not really know what u ask, but u can use other layout for it, and u can use other element view too Jul 20 12:47:37 if it really is something that's worth changing, it will get changed Jul 20 12:47:46 No matter if it's a bool or an integer Jul 20 12:47:52 ur items view create and bind in adapter Jul 20 12:48:42 When Im using setOnClickListener for button what that View infront of OnClickListener stands for? Jul 20 12:48:51 true/false is same like integer values Jul 20 12:48:54 SimonVT: you keep missing my point. It's not to make it 100% fool-proof but just to make it harder. Jul 20 12:49:49 is only harder for users, who just random change flags without knowing what is it Jul 20 12:49:51 ixc: true/false are not like interger values! Jul 20 12:49:52 :) Jul 20 12:49:52 I'm not missing the point. My point is that I doubt it's worth it just to protect some flag Jul 20 12:50:28 renxx: It's the view that was clicked. In your case, the button that was clicked Jul 20 12:50:43 Trying to write a unit test for something that calls AlarmManager.setRepeating(). I've wrapped the Android AlarmManager with my own so that I can retrieve the values passed by my normal object in the test. One of these parameters is PendingIntent, but I can't figure out how to retrieve the intent that was initially used to create the PendingIntent. Any thoughts? Jul 20 12:51:26 SimonVT: it's an important flag! ;p Jul 20 12:51:40 oh well Jul 20 12:52:19 code1: if u feel urself better if add integer, do it :) Jul 20 12:52:31 does anyone have any idea why my eclipse is running so slow? ....any ideas how to make if faster ? Jul 20 12:52:52 replace it for vim :) Jul 20 12:53:07 Blowfish should do it. Jul 20 12:53:35 ixc: it'll help me sleep at night! ;) Jul 20 12:54:00 code1: for know this flag what do, u need check the code; if user check the code is dontcare are encrypted value or integer or boolean Jul 20 12:54:13 will see the encrypt method and correct value Jul 20 12:54:30 john_doe_jr: after dealing with Eclipse performance issues for way too long, I just gave up and switched to IntelliJ IDEA. And I haven't looked back. It's great. Jul 20 12:54:33 I think I need to increase the RAM in eclipse...would that make it run faster? Jul 20 12:54:47 proguard make them jobs harder, but not protect ur code, so u cant make safe that u want Jul 20 12:54:56 jeremyhaberman: it's not great though...there gui tools suck Jul 20 12:55:13 ixc: missing point again. I'm NOT trying to make it unhackable. Jul 20 12:55:41 john_doe_jr: re GUI tools--in what way? Jul 20 12:55:57 code1: u dont feel it :) user dontknow what is this flag normally, if dont see the code Jul 20 12:56:09 BUT do you agree that changing a boolean flag in a preference is A LOT easier than decompiling and modifying code? Jul 20 12:56:11 so for he true/false are same like a random hash Jul 20 12:56:12 jeremyhaberman: huh? Jul 20 12:56:54 code1: i dont understand, why u think users will check ur files, and change values _randomly_ Jul 20 12:57:03 john_doe_jr: in what way have you found that the GUI tools suck? Sounds like something I'm just not using. Jul 20 12:57:36 ixc: preferences are labeled! Jul 20 12:57:44 Anyway never mind Jul 20 12:57:53 u can use label like u want :) Jul 20 12:58:10 use ApplicationWillCrash: true/false Jul 20 12:58:16 and user should dont change it :D Jul 20 12:59:10 jeremyhaberman: well, the last time that I started developing Android...the GUI tools were far inferior than eclipse GUI tools...maybe they have improved it Jul 20 12:59:14 I will use DontCrossStreams! :) Jul 20 13:01:50 jeremyhaberman: do you use the community edition? Jul 20 13:02:30 john_doe_jr: yep Jul 20 13:04:22 gui tools.. pfft Jul 20 13:04:36 Far superior xml editing, all you need Jul 20 13:05:51 i tried these super ides, all the time switch back to vim Jul 20 13:07:15 the only thing mising from eclipse is vim Jul 20 13:07:38 who uses GUI for layouts Jul 20 13:07:41 seriously Jul 20 13:07:47 you're doing it wrong Jul 20 13:07:50 danharibo: check this http://eclim.org/ Jul 20 13:08:03 danharibo: that's like saying the only thing missing from vim is emacs Jul 20 13:08:54 olivier_b: wow that is neat Jul 20 13:09:54 test Jul 20 13:16:35 If I switch between main activity and secondary activity, is there a way to make so that secondary activity wont be in app list Jul 20 13:16:50 app list? Jul 20 13:16:55 Apps Jul 20 13:17:15 like the "recent"? Jul 20 13:17:27 The main screen where i can see the all applications Jul 20 13:18:12 o what do you mean by switch then? if ur talking about a program launcher that just depends on ur manifest Jul 20 13:18:14 so u dont want main launcher? Jul 20 13:18:28 renxx: you control that using CATEGORY_LAUNCHER Jul 20 13:22:36 one question. I have a file that changes very frequently - how can i check if something has changend in it. I tried it with file.lastModified but somehow this does not changes with every file modifcation (I am absolutely sure that somethin has changed) ??? Jul 20 13:23:18 check the hash of file? Jul 20 13:24:33 Pinas: check the size? Jul 20 13:24:44 hash would be better Jul 20 13:24:50 size could always be the same Jul 20 13:24:57 BlackIce_ i tried that too, size is always 0 (i have no idea why - there is definitely something in the file) Jul 20 13:25:19 CallumTaylor: yeah, but you don't have to read the file to check it Jul 20 13:25:24 hash is a good idea, but calculating the hash is quite expensive when doing it every 200ms :D Jul 20 13:25:36 no shouldn't need to Jul 20 13:25:44 Pinas FileObserver Jul 20 13:26:04 Pinas: are you sure you've got the right file? Do you keep using the same file handle for every check? Jul 20 13:27:03 the file is the right one - when i print it every 200ms without any previous check i get the right content Jul 20 13:27:15 bzw. it is /proc/net/tcp6 :) Jul 20 13:27:28 s/bzw/btw/ Jul 20 13:27:44 inotify Jul 20 13:28:09 Jug6ernaut - i'll try it thank you Jul 20 13:28:27 Pinas does this file require root? Jul 20 13:28:36 to read Jul 20 13:28:51 I've published an app to Google Play, and am getting this error message from some users: No Activity found to handle Intent { act=android.provider.MediaStore.RECORD_SOUND }. Is the sound recorder not present on some devices? Jul 20 13:28:53 Jug6ernaut - no everyone has read access Jul 20 13:29:02 u cant check time and size coz they are not real files Jul 20 13:29:05 its procfs Jul 20 13:29:10 Pinas, use a FileObserver then, gets real time events Jul 20 13:29:14 do not use pooling ;) Jul 20 13:29:35 im not sure about fileobserver work on procfs files Jul 20 13:29:51 ixc any idea that works for sure ? Jul 20 13:30:07 ixc i know an easy way to find out :P Jul 20 13:30:23 ls -l Jul 20 13:30:28 ^^ Jul 20 13:31:09 well ls -l won't work . i can't tell if it has changed when using ls -l :) Jul 20 13:31:14 Pinas: what u need from this file? Jul 20 13:31:36 when its change i think also has some event :) Jul 20 13:31:57 ixc i need to know which applications communicate with which ip (inkl. port) Jul 20 13:32:14 Pinas i would try a file observer, take about 5 seconds to test Jul 20 13:32:34 ty appel1 Jul 20 13:32:35 Jug6ernaut - i'll definitely try it out just give me some minutes :) Jul 20 13:34:04 ixc yea using inotify(which fileobserver is based on) u get file_access file_read file_write ect events Jul 20 13:34:37 i just need to check how to use this fileobserver - never used it before Jul 20 13:34:41 but its not a file, its never writed Jul 20 13:34:48 these values from kernel Jul 20 13:35:11 shouldnt matter bc its being represented on the filesystem Jul 20 13:35:15 need read more about procfs, maybe they implement file_* events Jul 20 13:36:14 Jug6ernaut: from inotify faq: Jul 20 13:36:14 Q: Are there any limitations for use of inotify? Jul 20 13:36:15 Yes. Some filesystems (e.g. procfs or some network filesystems) don't emit events in some cases. Jul 20 13:37:01 sad day Jul 20 13:37:20 some cases ;) Jul 20 13:37:22 hehe Jul 20 13:37:46 * Jug6ernaut is actually working on a program based on inotify Jul 20 13:37:52 * Jug6ernaut tries it Jul 20 13:41:01 Pinas how often does tcp6 get modified? Jul 20 13:41:20 when u open a tcp connection via ipv6 Jul 20 13:41:34 depends on the network activity Jul 20 13:42:11 rough estimation Jul 20 13:43:07 yea right Jul 20 13:44:45 if anyone has a better idea on how to track all connections I am really happy about it :) Jul 20 13:45:32 is android related? Jul 20 13:45:48 yes everything on android Jul 20 13:46:07 coz procfs is just a api, also written in C, so u can track these things from code too Jul 20 13:46:26 but i think procfs get from kernel, when u read the file Jul 20 13:46:33 so when ICS was launched, someone at google said "tablets" like the xoom would not be allowed to go "full screen", but only dim the system bar. anyone know what actually determines if "full screen" is allowed for things like watching movies? Jul 20 13:46:40 on android i have no idea Jul 20 13:47:40 ixc - ok wow, thx for the info, I think that i am lazy and stay inside java :) Jul 20 13:47:47 hi all.. n00bie here.. I've finished the layout of my app: a background, title logo, an 12 different pieces of clipart, wich will be clickable. what will be the best method of displaying these? I thought I'd make them buttons, but that seems like a workaround. Jul 20 13:48:00 If I know wich method to use I can google some examples / tutorials Jul 20 13:48:04 canadiancow|work probably just if device is in tablet mode? ie bar on bottom? Jul 20 13:48:16 that makes a surprising amount of sense :P Jul 20 13:48:27 xD Jul 20 13:48:39 ima go through the source to see if i can figure it out Jul 20 13:49:02 have fun hehe Jul 20 13:49:36 Pinas: native codes also run in dalvik, and im not sure about u can get these info Jul 20 13:49:49 canadiancow|work: It's just a flag you set Jul 20 13:49:58 no i know HOW to do it Jul 20 13:50:03 but you CANT do it on a 10 inch tablet Jul 20 13:50:07 oh Jul 20 13:50:07 you can only dim Jul 20 13:50:08 not hide Jul 20 13:50:17 and i want to know what determines that Jul 20 13:51:21 ixc - ok maybe I'll trie to find it out when I have a bit more time. Since I don't get any money for my work it should be sufficient as I do it know :) Jul 20 13:51:28 finally just a commit, push and i can leave office :) Jul 20 13:51:38 canadiancow|work: the "don't hide" behaviour? I'd say lack of physical buttons and possibly UI mode Jul 20 13:52:09 ixc, Jug6ernaut - thx very much for you help :) Jul 20 13:52:33 let me know when u release the app, looks intresting :) Jul 20 13:53:21 ixc - it's for my master thesis and when it is finished it should detect information leakage :) Jul 20 13:53:32 so i dont know if it ever will be released Jul 20 13:53:42 p_l|home: You can do it on pones tho Jul 20 13:54:13 SimonVT: which have top bar as well Jul 20 13:54:35 There's no navigation in the top bar Jul 20 13:54:40 And you can hide that as well Jul 20 13:58:49 hmm, i wonder: is there maybe something like an inverse ORM for sqlite? Jul 20 13:58:52 i have a sql schema and like to autogenerate a DAO for it.. Jul 20 13:59:39 tapas: some ORMs have it, you can probably write some script to autogenerate classes from it though Jul 20 13:59:47 don't use reflection, it will be slow :) Jul 20 14:00:49 p_l|home: yeah, i was thinking of emplying my bash-fu (sed, regexps, etc..) to generate java classes Jul 20 14:01:02 but i rather use well tested code than cook up my own when possible Jul 20 14:01:20 hmm, there's http://code.google.com/p/hibernate-sqlite/ Jul 20 14:01:28 might be tooo heavy though ;D Jul 20 14:02:19 has anyone ever seen a pinned header _ScrollView_? Jul 20 14:02:27 i guess "header" is a poor word to descrivbe Jul 20 14:02:33 pinned container i guess Jul 20 14:02:34 how long it approximately takes to work through API Guides or how should I approach learning? Jul 20 14:04:32 hmm, i guess i could use my script foo to generate classes for ormlite Jul 20 14:05:40 I have a TextView that i want to use as a filter for my ListFragment. But how do i add a filter to my listfragment? Jul 20 14:05:46 renxx: to work through? depends where you want to get Jul 20 14:06:13 I added a TextWatcher to the textview but i cant seem to reach the listfragment's adapter Jul 20 14:07:25 im trying to set up a image button, but I'm getting fatal exceptions when trying to run. The warning Im getting from eclipse is 'Accessibility] Missing contentDescription attribute on image' Jul 20 14:07:48 hi Jul 20 14:07:53 ive tried 3 different tutorials, but all give the same result. Any idea's on what I'd have to do to fix it? Jul 20 14:08:05 ThomQ: that looks like a linter warning which shouldn't cause a fatal exception Jul 20 14:08:05 That warning doesn't give exceptions at runtime Jul 20 14:08:09 is it possible to add a view as a marker in a mapView ? Jul 20 14:08:21 ThomQ: have you set the contentDescription attribute? Jul 20 14:08:24 to understand the fundamentals of API Jul 20 14:08:43 ThomQ: Check the rest of your logcat Jul 20 14:08:45 yeah it's clssified as a android lint problem. Appel: No I haven't Jul 20 14:09:02 ThomQ: it doesn't hurt and makes your app more accessible :) Jul 20 14:09:06 firstdeveloper: depends what sort of view. The mapview is genuinely awful though. Jul 20 14:10:01 Estel: a textView for instance Jul 20 14:10:22 Estel: with à background drawable Jul 20 14:11:31 I've not seen it done, though I guess it might be possible with some implementation of ItemizedOverlay Jul 20 14:11:35 create an overlay which draws the view on it's draw method Jul 20 14:12:29 @ appel: one awnser I found was android:contentDescription="@string/desc", but where do I set the string? Jul 20 14:12:45 ThomQ: this won't solve your fatal exception at all Jul 20 14:13:09 is there a quick/easy way to enable spell check ? Jul 20 14:13:18 Estel: I agree :) but how can i position the view with the GeoPoint coordonates ? Jul 20 14:13:22 If you don't know how to define a string.. Jul 20 14:13:23 But you set the string in a resources file http://developer.android.com/guide/topics/resources/string-resource.html Jul 20 14:13:26 in textfields, or is that only if the os flavor decides it's needed ? Jul 20 14:13:27 ThomQ: like any other string resource Jul 20 14:13:29 You're missing something basic Jul 20 14:13:52 firstdeveloper: use mapView.getProjection Jul 20 14:14:15 firstdeveloper: the mapview and canvas are given to you in the draw method Jul 20 14:14:22 funktronic: I thought the user's keyboard decided based on android:inputType Jul 20 14:14:32 yuizy: thanks :) i will try Jul 20 14:14:54 @ Estel: I know, just being thorough :) Here's the logcat results of the fatal error: http://pastebin.com/HNDaw7up Jul 20 14:15:22 07-20 16:15:45.710: E/AndroidRuntime(7485): Caused by: java.lang.ClassCastException: android.widget.ImageButton Jul 20 14:15:22 07-20 16:15:45.710: E/AndroidRuntime(7485): at dissinyou.soundboard.MainActivity.onCreate(MainActivity.java:23) Jul 20 14:15:41 @appel: Very new to java, googling now, thanks Jul 20 14:16:07 ((Button)b1).setOnTouchListener( in a fragment is only applicable to a view, how do i make it do a series of commands(arguments)? Jul 20 14:17:19 like a normal button in a activity Jul 20 14:17:20 That made no sense Jul 20 14:17:49 maybe I'm not explaining my self right.... Jul 20 14:17:55 Let me try again Jul 20 14:18:26 You do the exact same thing in a fragment as you do in an activity.. This a view method, nothing special about where you call it Jul 20 14:18:30 ThomQ: the api guides and training articles on d.android.com are a pretty good starting point :) Jul 20 14:19:09 yuizy: by this "canvas are given to you in the draw method" you mean in the mapView draw method ? or the implementation of the ItemizedOverlay ? Jul 20 14:19:10 how do I make a view as wide as the parent? Jul 20 14:19:19 match_parent Jul 20 14:19:20 overlay draw method Jul 20 14:19:56 i don't think you need to use itemizedoverlay anyway Jul 20 14:20:43 Appel: yeah I'm going through them. I do have other programming skills, so I tend to look up what it is that I'm trying to build :) Jul 20 14:21:22 match_parent makes the parent broader Jul 20 14:21:25 yuizy: Ok. I should just extend the Overlay class and create what I need ? Jul 20 14:22:03 lapdis: then how are you setting the width of the parent? Jul 20 14:22:32 I added a TextWatcher to the textview but i cant seem to reach the listfragment's adapter Jul 20 14:22:41 I have a TextView that i want to use as a filter for my ListFragment. But how do i add a filter to my listfragment? Jul 20 14:22:54 lapdis: android:layout_width="match_parent" Jul 20 14:23:03 SimonTV: ((Button)b1).setOnTouchListener(new View.OnClickListener() { public void onClick(View v) { }}); === Error: Not applicable to arguments Jul 20 14:23:07 firstdeveloper: yeah, i think so Jul 20 14:23:21 yuizy: ok thanks Jul 20 14:23:29 Austrie: what are you even trying to do? Jul 20 14:23:42 firstdeveloper: i ended up using itemizedoverlay in my map implementation but in the end i just override pretty much every single method in it Jul 20 14:23:52 Austrie: OnClickListener != OnTouchListener Jul 20 14:23:57 ^ Jul 20 14:24:14 I didn't even see that >_< Jul 20 14:24:29 Wow Jul 20 14:24:33 -___- Jul 20 14:24:37 Thanks Jul 20 14:24:57 It seems you cant inflate a layout in a listFragment that contains an EditText and a ListView :( Jul 20 14:25:00 I found my error, was in the activity.java Jul 20 14:25:13 kevwilde: I doubt that very much Jul 20 14:25:42 i get a Resource ID xxx tyhpe 0x12 is not valid error Jul 20 14:27:21 the parent is "wrap_content", it is to take the width of other child views Jul 20 14:27:30 kevwilde: pastebin your actual stack trace Jul 20 14:29:00 evancharlton: http://dpaste.com/773077/ Jul 20 14:30:18 evancharlton: trying to inflate this for the fragment: http://dpaste.com/773079/ Jul 20 14:30:42 i have a question about designing a layout, and the different screen sizes that are available Jul 20 14:31:03 kevwilde: 0x7f040027 refers to which ID? (look in R.java) Jul 20 14:31:26 Im testing on a galaxy-s 1, so I use the 4.6Nexus setting in Eclipse to aproximate my screen Jul 20 14:31:57 But when looking at the layout for a tablet, obviously it's way too small. Jul 20 14:32:08 evancharlton: joblist_fragment Jul 20 14:32:34 Should I start by designing for a tablet, and then work my way down? Or are there other ways to account for the different sizes? Jul 20 14:32:51 evancharlton: it is the thing i want inflated: View view = inflater.inflate(R.id.joblist_fragment, container, false); Jul 20 14:33:05 its content i pasted Jul 20 14:33:22 ThomQ: have you read http://developer.android.com/training/multiscreen/index.html ? Jul 20 14:33:32 kevwilde: you're inflating an ID, not a layout :) Jul 20 14:33:41 oh Jul 20 14:33:42 kevwilde: .inflate(R.layout.whatever Jul 20 14:33:43 :) Jul 20 14:33:58 hi, I'm having trouble forcing a shared lib in my android project to be compiled with x86 arch/toolchain Jul 20 14:34:12 ooh Jul 20 14:34:16 how can I tell ndk-build to use the x86 toolchain on a specific Android.mk file? Jul 20 14:34:16 ok, thanks Jul 20 14:34:17 retrying Jul 20 14:34:25 evancharlton, i dont know if i'd call that an id Jul 20 14:34:29 id is R.id :P Jul 20 14:34:40 canadiancow|work: what? Jul 20 14:34:44 canadiancow|work: look at what he pasted Jul 20 14:34:52 oh Jul 20 14:34:55 nm Jul 20 14:34:56 * canadiancow|work leaves Jul 20 14:35:06 evancharlton: thanks for your help, i really appreciate it Jul 20 14:35:07 I GET IT Jul 20 14:35:11 Sheesh, canadiancow|work Jul 20 14:35:28 evancharlton: apparently i was so close to finding it myself :( Jul 20 14:35:34 Appel: Yeah, i should probably be reading more :P did read that page, but not the one supporting diffrent screen densities Jul 20 14:35:51 kevwilde: no worries :) Jul 20 14:35:56 although I already did know that as well, I see now :P Jul 20 14:36:07 ThomQ: the design section is pretty good as well :) Jul 20 14:36:18 i need to go through >9000 lint errors. ffs. someone added all kinds of new api calls to an app that suppors 2.1 Jul 20 14:36:19 T_T Jul 20 14:37:06 Properties -> Lint Preferences -> Ignore All? ;) Jul 20 14:37:11 hi Jul 20 14:37:15 evancharlton: my plan is to use the onCreateView method to tell the ListFragment to add a TextChangedListener to the EditText field Jul 20 14:37:18 Make all lint api warnings compile errors Jul 20 14:37:29 these are compile errors Jul 20 14:37:50 these the "minsdkversion is 7 but Class.method requires 9" Jul 20 14:37:56 i'm having some troubles styling ActionBarSherlock, i can't get it to remove the space between the icons i set for my tabs programatically: http://pastebin.com/Rm5VLHuL Jul 20 14:38:18 i set them with " tab1.setIcon(R.drawable.tab_guia) " Jul 20 14:39:03 canadiancow|work: @SuppressLint("NewApi") <-- what could possibly go wrong? Jul 20 14:39:09 ugh Jul 20 14:39:18 i know right Jul 20 14:39:24 I TESTED IT ON JELLY BEAN AND IT WORKED Jul 20 14:39:46 my test devices are api levels 16, 16, 14, 10 Jul 20 14:40:01 so something that requires 8 or 9 gets past me fairly easily Jul 20 14:40:10 but at the same time, i know what methods are new Jul 20 14:40:12 and i run lint Jul 20 14:40:36 Is it possible the addTextChangedListener i add in the onCreateView isn't called? Jul 20 14:40:48 kevwilde: I doubt it Jul 20 14:40:52 I think I got it now. The xdhpi folder is what threw me off -> didn't resize the images apropriately Jul 20 14:41:17 xhdpi folder isn't mentioned in a lot of tutorials.. Is that a very recent development? Jul 20 14:41:36 no Jul 20 14:41:38 december 2010 Jul 20 14:41:49 iirc Jul 20 14:42:52 i managed to remove the divider, but not the space between the tabs, can someone check it out see if something stands out plz? http://pastebin.com/Rm5VLHuL Jul 20 14:42:57 evancharlton: http://dpaste.com/773083/ there is no textwatcher active, it seems Jul 20 14:43:08 lol, so Im just doing old tutorials :P Jul 20 14:43:45 evancharlton: my bad: it does get called, but the filter() line isn't doing anything :/ Jul 20 14:44:03 kevwilde: iirc, you have to implement the filtering in your adapter Jul 20 14:44:06 it won't magically just work Jul 20 14:44:23 well, I'm almost ready to submit my first app to the play store.. How long will confirming/checking by google take? A couple of days? Jul 20 14:44:33 ThomQ: like an hour Jul 20 14:44:51 Nice! Jul 20 14:45:02 no Apple like inspections then? very good Jul 20 14:45:14 evancharlton: ok, thanks again Jul 20 14:46:01 google just checks to make sure you arent a virus Jul 20 14:46:33 excellent Jul 20 14:46:36 is there some var which I can set to force ndk-build to use x86 toolchain? Jul 20 14:47:44 all I have to do before submmitting is adding some adds. The whole reason I made this app is so I can check out add implementation for our upcoming game. Took a bit longer then expected though, Unity javascript & C# is quite different from java :D Jul 20 15:05:16 this weekend todo: lets try qualcomm's AR framework :) Jul 20 15:07:03 hi Jul 20 15:11:15 http://pastebin.com/yp3kbARx Jul 20 15:11:21 i get error Jul 20 15:11:39 of type new AdapterView.OnItemClickListener(){} must override a superclass method Jul 20 15:13:00 compiler 1.6? Jul 20 15:13:14 eclipse Jul 20 15:13:25 shd i increase the min-sdk Jul 20 15:13:40 project>properties>java compiler>1.6 Jul 20 15:14:00 * java compiler>compiler compliancelevel>1.6 Jul 20 15:14:31 hey JakeWharton, I see you were the last to update support-lib in maven central to r7. In terms of updating this...would you recommend we locally install the r9 jar? Jul 20 15:14:49 1.5 Jul 20 15:14:59 I assume it is a little tricky to build and hence that is why it is a few months old Jul 20 15:15:05 make it 1.6 Jul 20 15:15:10 is there a defacto charting library for Android that the majority of the community uses? Jul 20 15:15:25 error gone Jul 20 15:15:30 thanks f2prateek Jul 20 15:15:30 :) Jul 20 15:15:47 this whole widgets are decendents of RemoteViews thing makes stuff hard :( lol Jul 20 15:16:34 iwconfig command works on Android? Jul 20 15:17:31 try it Jul 20 15:18:09 wongk: tried it !! Jul 20 15:18:26 didn't work perfectly !! Jul 20 15:18:57 well, there's your answer Jul 20 15:19:45 it only supports mode = Master and and when i try to mode = Ad-Hoc or Monitor, it says https://gist.github.com/54ba030e205a0070b9de Jul 20 15:19:54 gateway for life Jul 20 15:20:10 Aeefire [507a35d2@gateway/web/freenode/ip.80.122.53.210] has joined #android-dev Jul 20 15:20:12 i want to know if it's the same case for everyone or not !! Jul 20 15:20:31 and why it doesn't support other modes? Jul 20 15:20:46 wongk: ^^ Jul 20 15:20:48 are you on ICS? Jul 20 15:20:52 Austrie you want to tell me ... what? Jul 20 15:20:57 PS, this doesn't have anything to do with app development Jul 20 15:21:02 nothing Jul 20 15:21:18 so... why you highlight me Austrie ? Jul 20 15:21:36 I was just saying you is a @gateway/web/freenode/ip.80.122.53.210] has joined #android-dev Jul 20 15:21:45 wongk: no.it's Android 2.2.1 !! does it supports other mode on higher versions of Android like ICS Jul 20 15:21:50 a gateway Jul 20 15:22:18 irmal_: i know for a fact ad-hoc mode is not supported on ICS, but ask in #android Jul 20 15:22:35 ok Jul 20 15:22:38 i am in a commercial network, so i guess this is normal. Jul 20 15:22:49 * Aeefire is not very much into networks. Jul 20 15:23:01 wongk: do you know which modes are supported on ICS? Jul 20 15:23:03 tat error means the HW doesn't support it Jul 20 15:23:11 irmal_: no Jul 20 15:23:14 k Jul 20 15:23:52 Why would a listview's item become all light grey? Jul 20 15:24:07 how do i add a link in adroid app so that it opens a web page Jul 20 15:24:35 im trying to set a tab backgroudn colour with setBackgroundColor(0x00284A) but the tab appears transparent, any ideas? Jul 20 15:24:55 wp-developer: http://stackoverflow.com/questions/4303160/how-can-i-make-links-in-fromhtml-clickable-android Jul 20 15:25:09 yet if i use Color.blue it works Jul 20 15:25:10 thanks HDroid Jul 20 15:25:47 Gaz`: You forgot the alpha Jul 20 15:25:55 Ah, add what FF? Jul 20 15:25:56 Gaz`: is 0 alpha transparent or solid? Jul 20 15:25:59 wp-developer: that's if you want to add a link to a piece of text, it's different if you want it on button press or such. Jul 20 15:26:16 not sure? Jul 20 15:26:32 also, Tony Chan? Jul 20 15:26:44 ? Jul 20 15:27:08 Did u go to that event bew Jul 20 15:27:09 btw Jul 20 15:27:13 was one of the guys running the event today, and apparently was the guy behind the Flyer event in Taipei? Jul 20 15:27:25 hmm this is still transparent 0x00284AFF Jul 20 15:27:31 we got hats today... Jul 20 15:27:37 teehee Jul 20 15:27:45 ah yeh i think i knwo the guy Jul 20 15:27:48 was slating the emulator Jul 20 15:27:50 also, they got abuse about US-only crap... seemed a fair exchange :) Jul 20 15:28:02 i recorded the taipei one Jul 20 15:28:06 well some, its on youtube ;) Jul 20 15:28:15 someone knows about a callback or something I could use to change the options in the context action bar depending on the current selection? Jul 20 15:28:25 SimonVT what do i add then ? .setBackgroundColor(0x00284AFF); Jul 20 15:28:35 0x00 Jul 20 15:28:37 00 = transparent Jul 20 15:28:57 hmm yeh we went thru this few weeks ago Jul 20 15:28:59 ive forgotten why Jul 20 15:29:04 isnt 00 just mean no red? Jul 20 15:29:24 Simon = Transparent Jul 20 15:29:35 0x00 would be 0 wouldn't it Jul 20 15:29:40 im confused, Jul 20 15:29:44 0x0000000 is 0 Jul 20 15:29:47 i take it from photoshop the colour i want as 00284A Jul 20 15:29:48 not 0x00FFFFFF Jul 20 15:29:54 then i have to add 0x just to make it work Jul 20 15:30:02 so what do i need to do to make it a realcolour Jul 20 15:30:44 so im left with 0x00284A which should be 0,40,74 rgb Jul 20 15:30:49 0xAARRGGBB Jul 20 15:30:54 Gaz`: http://developer.android.com/reference/android/graphics/Color.html Jul 20 15:30:56 oh Jul 20 15:30:56 Figure out what each channel is Jul 20 15:31:05 0xDEADBEEF Jul 20 15:31:06 so then 0xFF00284A Jul 20 15:31:07 ? Jul 20 15:31:16 * SimonVT /clap Jul 20 15:31:40 0xCAFEBABE Jul 20 15:31:58 I've got HTC Sensation devices struggling at video playback where the video has been created within a custom dialog. Anyone come across similar? The issue being no video, but audio plays back until it dies after about 10 seconds. Jul 20 15:32:02 yeh! Jul 20 15:32:07 works thanks simon et all Jul 20 15:32:21 i thought alpha was at the end Jul 20 15:32:28 Or if you're from microsoft, 0x0B16B00B5 Jul 20 15:32:38 A 0 too many there Jul 20 15:32:46 However the video does work within a seperate activity, so I guess it might be something to do with the surface and context specified when creating a videoview within a dialog. Jul 20 15:37:03 Or if you're from microsoft, 0x0B16B00B5 <<= lol'd Jul 20 15:39:25 how is that sexist… seriously Jul 20 15:39:32 really annoys me Jul 20 15:39:43 people just want to ridicule microsoft because they're big Jul 20 15:39:48 +1 Jul 20 15:39:54 the boobs? Jul 20 15:39:55 or microsoft Jul 20 15:39:58 the boobs Jul 20 15:40:03 i thought it was hilarious Jul 20 15:40:17 and whoever didn't must have something wrong with them Jul 20 15:40:32 i tried to add links to application Jul 20 15:40:41 i didnt think "it" was hilarious, but the "it" im talking about was the whole "MICROSOFT APOLOGIZES THAT ONE OF IT'S EMPLOYEES WROTE A CONSTANT IN HEX" Jul 20 15:40:53 ITS* Jul 20 15:40:57 why did they apologise Jul 20 15:40:59 i don't get it Jul 20 15:41:01 i am displaying a list using xml ,one of the item in list is url how do i make it clickable Jul 20 15:41:16 they didn't need to, its not sexist, its clearly a developer having a laugh Jul 20 15:41:33 look atthe shit rockstar got into for hot coffee Jul 20 15:41:38 and that wasnt even actually accesible Jul 20 15:41:41 what did they do? Jul 20 15:41:52 hidden sex game Jul 20 15:41:55 what Jul 20 15:41:56 link Jul 20 15:42:00 google it Jul 20 15:42:05 im coding like a bafoono here Jul 20 15:42:05 google what Jul 20 15:42:07 bafoon Jul 20 15:42:11 then im going for all u can drink Jul 20 15:42:15 "hot coffee rockstar" Jul 20 15:42:24 yea...in trouble for a hidden sex game in the middle of a game where you kill people...and realy the sex is what gets them in trouble? Jul 20 15:42:28 or society is weird Jul 20 15:42:34 what in the fuck Jul 20 15:42:38 rofl Jul 20 15:42:40 what are you people talking about Jul 20 15:42:46 get back to talking about android dev please Jul 20 15:42:47 lol Jul 20 15:42:50 and its a mod? Jul 20 15:43:03 [11:42:28] or society is weird Jul 20 15:43:13 our* Jul 20 15:43:13 you can't show an erect penis, but you can show one getting cut off Jul 20 15:44:03 so i can't put widgets in another widget because of they are RemoveViews, or can a remoteview host another remote view? Jul 20 15:44:11 yo dawg? Jul 20 15:44:23 eric256: what are you trying to do? Jul 20 15:44:53 i wanted to make a widget thati could then have widgets inside of it...basicaly wanted a little tabbed container of widgets/shortcuts Jul 20 15:45:04 like... a launcher? Jul 20 15:45:08 (could probably settle for shortcuts i suppose) Jul 20 15:45:13 eric256: RemoteViews#addView? Jul 20 15:45:21 eric256: but basically, good luck Jul 20 15:45:32 yea, but embeded in a launcher Jul 20 15:45:53 was thinking about ways to make a more bare bones launcher and still have tons of customization, widgets inside a widget seemed to make sense Jul 20 15:46:08 your widgets are all up in my widgets Jul 20 15:47:19 i am displaying a list using xml ,one of the item in list is url how do i make it clickable? Jul 20 15:48:17 any view can be clickable Jul 20 15:48:42 wp-developer: text.setMovementMethod(LinkMovementMethod.getInstance()); on the TextView Jul 20 15:52:45 i got a question: 3.2 HVGA displays call drawables from the mdpi map. So do 5.1 through 10.1 screens. This causes a problem for me : the drawables are correct for the 3.2 screens, but for the 5.1 / 10.1 screens they are too small.. What can I do to fix this? Jul 20 15:53:37 ThomQ: you're confusing display density with screen size Jul 20 15:53:40 screens can be both large and mdpi Jul 20 15:54:21 see http://developer.android.com/guide/topics/resources/providing-resources.html Jul 20 15:54:28 you probably want a drawable-large as an override Jul 20 15:54:33 yeah, i know. dpi is resolution/size right? But, that still gives me the placement problem Jul 20 15:54:50 thanks lov, reading it Jul 20 15:54:53 ThomQ: you could also have a layout-large folder and change your layouts for larger screens Jul 20 15:55:31 yeah that sounds like a good option Jul 20 15:55:41 googling :) Jul 20 15:55:58 http://developer.android.com/guide/practices/screens_support.html Jul 20 15:56:00 read this Jul 20 15:57:27 thanks simon Jul 20 15:58:40 "BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inMutable = false;" whats the equivalent of this on api<11 Jul 20 15:58:46 for a project that supports from 1.5 to 4.1 , I can use the old & new size qualifiers together, right? Jul 20 15:59:15 Yes Jul 20 15:59:20 Jug6ernaut - you previously said that using a FileObserver vor /proc/net/tcp works for you ??? Jul 20 15:59:29 The new qualifiers take precedence over the old Jul 20 15:59:38 Also, support 1.5? wtf? Jul 20 15:59:47 anyone has an idea how i could detect changes on /proc/net/tcp ??? Jul 20 16:00:10 yeah, i haven't looked at market share per API level yet ;) I thought, lets make it as broad as possible, it's just a simple soundboard Jul 20 16:00:39 I.. wouldn't do that :p Jul 20 16:01:19 Just bumping it to 2.1 makes it a lot easier Jul 20 16:01:31 easier how? Jul 20 16:01:39 all i need are image buttons and a soundpool Jul 20 16:02:00 2.2 Jul 20 16:02:14 2.1 sucks for external cache management Jul 20 16:02:23 To make a good app, you really need to take advantage of new APIs Jul 20 16:02:41 A lot more wrapping is required for calling new APIs if you support 1.5 vs 2.1 Jul 20 16:03:07 okok.. How can I set that in my current eclipse project? Jul 20 16:03:20 minSdkVersion in your manifest Jul 20 16:04:08 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Jul 20 16:04:11 You can also read this Jul 20 16:04:32 target 14 or i you upset me Jul 20 16:04:34 14+ Jul 20 16:04:41 should I do 7 or 8? Jul 20 16:04:52 i target 15 and min 8 Jul 20 16:04:53 target >= 14 or i remove stars from you :( Jul 20 16:04:57 CallumTaylor +1 Jul 20 16:05:00 lol sorry canadian, my test phone runs 2.3.3 Jul 20 16:05:05 so? Jul 20 16:05:11 target!=minimum! Jul 20 16:05:13 eh Jul 20 16:05:15 ok then that means the max rating you'll get from me is three stars Jul 20 16:05:17 as long as you set the min, it will run on it Jul 20 16:05:20 target is the highest level that you've actually tested on Jul 20 16:05:29 so for supporting old api's, should there be checks wherever a new api might be used, and use the old api if the device is lower than required, or is there another way to do it? Jul 20 16:05:36 If he only has a 2.3 device and can't reliably test on a 4.1 emu, then he should target level 10 Jul 20 16:05:47 f2prateek: yes Jul 20 16:05:57 fine. but im still removing one star because the soft menu button shows on my phone, and another because it shows on my tablet Jul 20 16:05:59 lov: he could use the emulator ;) Jul 20 16:06:09 canadiancow|work: You shouldn't set your API to something you don't even have a machine for. Jul 20 16:06:13 what apps this for? Jul 20 16:06:23 You have NO idea if it will work. Jul 20 16:06:29 so 7 to 16, right? Jul 20 16:06:35 Callum; its just a simple soundboard Jul 20 16:06:42 Jonathan_Eyre: you do know that you can test using the emulator? Jul 20 16:06:52 you shouldnt be a developer if your phone is running an OS from 2010, three major versions old Jul 20 16:06:55 incidentally, why would you waste your time on a 'simple' soundboard in 2012? Jul 20 16:06:59 s/phone/only phone/ Jul 20 16:07:02 snodnipper: yes, install locally Jul 20 16:07:08 assuming you have any plans to publish, that is Jul 20 16:07:09 or deploy to your own repository Jul 20 16:07:10 Leeds: always good to start simple when learning a new platform =) Jul 20 16:07:25 Leeds: gotta start somewhere. Jul 20 16:07:33 appel1: Test what? Wi-Fi connectivity? There are many things the emulator does poorly. Jul 20 16:07:40 :D canadian, i'm just getting started developing for mobile.. galaxy s3 is coming next month Jul 20 16:09:56 I'm not certain what years they are from, but all of my devices are API 15 or 10. I'm not touching 16 until I get a device for it. Jul 20 16:11:34 what's a good source to find out current API usage among android users? Jul 20 16:11:41 all I can seem to find is android vs ios Jul 20 16:11:43 theres a chart on the site Jul 20 16:12:16 http://developer.android.com/about/dashboards/index.html - just because it's slightly hidden in the new design Jul 20 16:12:30 it's updated monthly, give or take Jul 20 16:12:53 cool thanks! Jul 20 16:12:58 as soon as 2.2 hits 5% I'm dropping support Jul 20 16:12:58 woot Jul 20 16:13:16 lol, ok Jul 20 16:13:21 1.5.. what was I thinking :D Jul 20 16:13:44 "Data collected during a 14-day period ending on July 2, 2012" Jul 20 16:14:16 for simple apps, I don't think it's that much of a stretch to start working with a 2 year old phone, with the most used version, right? Jul 20 16:14:52 you'll get into bad habits Jul 20 16:14:55 CallumTaylor: 5% * 400MM = a lot of users Jul 20 16:15:07 yeah but i don't care Jul 20 16:15:08 so its alright Jul 20 16:15:27 okay Jul 20 16:15:41 i guess it also depends on howmany of your app users are actually on that platform Jul 20 16:16:12 True Jul 20 16:16:19 Was Cupcake built by the Russians? Mostly dead, but some will work forever... That's basically the definition of Russion manufacturing. Jul 20 16:16:36 6,4% Jul 20 16:16:43 4.3k people Jul 20 16:16:51 out of 70,000 Jul 20 16:17:33 is the galaxy s3 really worth twice as much as a galaxy nexus?> Jul 20 16:18:16 nexus has faster updates :) Jul 20 16:22:06 i hope soon come nexus with 3.7" display:) Jul 20 16:22:51 keep hoping... Jul 20 16:23:24 just any decent phone thats not a 5" shovel would be nice :' Jul 20 16:23:44 anyone compile b2g? Jul 20 16:24:00 tablets goin smaller, phones bigger:( Jul 20 16:24:25 can i add buttons in listview in xml for each item in list? in main.xml Jul 20 16:24:35 the 7" form factor is nice but c'mon. where are the 17"-24" tablets Jul 20 16:24:50 u can make new layout that listview inflate Jul 20 16:24:58 and u add buttons for them Jul 20 16:25:46 oGMo: there's some 23" tablet out there, iirc Jul 20 16:25:55 made by Toshiba, I think? Jul 20 16:26:38 microsoft surface Jul 20 16:26:42 the table form. Jul 20 16:26:44 You might as well get the Microsoft Surface 1.0, Jul 20 16:27:17 komugi: You beat me by seconds. Jul 20 16:27:21 that's a table, not a tablet! you could throw a tablet in your backpack. Jul 20 16:27:46 oGMo: You are going to throw a 23" anything in your backpack? Jul 20 16:28:20 they make big backpacks :) Jul 20 16:28:48 I'd love to see you play angry birds on that. Jul 20 16:29:14 It's the size of three laptops, with the power of a wristwatch! Jul 20 16:29:28 and even if apple one-upped them all with the 30" ipad cinema for $4999, that's still half the price of a surface ;) Jul 20 16:30:04 The whole point of tablets is you use them to barely get by until you can sit in front of a real processor. Jul 20 16:30:29 depends Jul 20 16:30:41 even the nexus 7 is a little heavier than i'd like for reading in bed Jul 20 16:30:43 but it's close Jul 20 16:30:52 and thats not something where id ever want a "real computer" Jul 20 16:30:54 or reading on the subway Jul 20 16:31:09 The Kindle Fire is pretty much the right size for reading. Jul 20 16:31:24 neuxs 7 is the same size Jul 20 16:31:28 not sure about weight Jul 20 16:31:30 yeah i use the tf prime for regular couch browsing activity where previously i used a laptop Jul 20 16:32:00 I like that size. They have the screen the same size as a paperback page. (Or close) It's pretty easy on the eyes. Jul 20 16:32:08 sadly ics is still slow as crap for browsing, but it works where i need it Jul 20 16:32:20 i REALLY like that i can change teh font, line spacing, font size, etc Jul 20 16:32:30 nexus 7 has a better shape than the kindle fire, imo Jul 20 16:33:04 kindle fire is bulky, heavy, and awkwardly weighted Jul 20 16:33:09 The main thing I hate about tablets is the completely flat-no tactile response keyboards. Jul 20 16:33:12 the n7 is ridiculous .. marginally slower than the tfp at a fraction of the price Jul 20 16:33:21 JakeWharton: To each his own. Jul 20 16:33:35 and the 7" form factor is a great fit in the hand and great for typing Jul 20 16:33:36 If I have to type something, I want to do it on a keyboard. Jul 20 16:33:57 If the Fire had a bluetooth connection for keyboards, I'd use it a lot more. Jul 20 16:34:13 you know what does? Nexus 7. :P Jul 20 16:34:22 meh .. the voice recognition is good enough now they should just have a purely voice-nav interface Jul 20 16:34:26 Everytime I drop below 19 WPM I get angry at things. Jul 20 16:35:03 Spending 30 seconds to type out a browser search is beyond agravating. Jul 20 16:35:21 that's why there's a little microphone button Jul 20 16:35:27 thats why i love my motorola milestone :) Jul 20 16:35:33 also i rarely spend that much time .. get a better keyboard? Jul 20 16:35:51 evancharlton: and where can I get one of those, pray tell? :P Jul 20 16:36:29 (I've ordered one from a US retailer - dunno when it'll arrive, but international shipping is barely more than tax+US shipping from Play Store, so I'm not too bothered) Jul 20 16:36:30 It's not really 30 seconds, but it's a whole heck of a lot longer than it would take if I could type on a full-size keyboard. Jul 20 16:37:38 Jonathan_Eyre: actually, I think that if you shop around for keyboards a bit, you can get pretty decent speed and accuracy for typing prose - typing code is something different, too much punctuation and so on there Jul 20 16:37:52 n i wnt stp to mking acronyms Jul 20 16:38:20 I said prose, not txtspk Jul 20 16:41:08 Maybe. I have a large handspan (CTRL key to CTRL key on a regular keyboard), so unless I type with my thumbs, I won't be able to get much done. Jul 20 16:41:56 that doenst sound large Jul 20 16:41:59 Jonathan_Eyre: same .. but i type with my thumbs and it's fine Jul 20 16:42:24 if you're on a 7" tablet the size is actually perfect for really fast thumb typing .. on a 10", you can get the keyboard that splits, though it's a bit awkward Jul 20 16:42:49 but you can tweak around with key size and stuff .. customization is great Jul 20 16:43:01 Typing with a tablet is about as effective as typing with your elbows. Well, maybe I should see if I can get a different keyboard. Any suggestions on where to start/ Jul 20 16:43:16 what tablet? Jul 20 16:43:41 Generic Ice Cream or Kindle Fire. Jul 20 16:43:45 i prefer to type with my toes, i like a challenge Jul 20 16:44:12 i use thumb keyboard 4 for the tf prime, but smart keyboard pro for 7" or phone Jul 20 16:44:23 I'm mainly interested in the Fire, since I don't really like hauling around the 10" tablets. Jul 20 16:44:38 get a n7, not a fire :P Jul 20 16:44:52 the n7 is waaaaaaaay faster/more up to date and same price Jul 20 16:45:15 the price point of the n7 makes any other 7" tablet kind of pointless Jul 20 16:45:17 I already have the Fire, so free is better than any price. Jul 20 16:45:19 personally, I like swiftkey Jul 20 16:45:27 I've heard of Swiftkey. Jul 20 16:45:39 i use swiftkey Jul 20 16:45:58 i don't think i've tried that but just about anything that can learn is a win Jul 20 16:46:13 (learn finger taps, not words) Jul 20 16:46:55 Interesting. Jul 20 16:53:24 someone knows about a callback or something I could use to change the options in the context action bar depending on the current selection? Jul 20 16:59:30 dzan: are you looking for ActionMode? Jul 20 16:59:56 evancharlton, yes but i want to change the options in there depending on the selection that was made Jul 20 17:00:21 list of items and for some of them some options aren't available so then i want to hide them Jul 20 17:00:21 dzan: ActionMode#invalidate() Jul 20 17:00:48 evancharlton, uhu ok so I can use the prepareActionMode even if the actionmode bar is already displyaed? Jul 20 17:00:50 it will update it? Jul 20 17:01:01 dzan: no, just call invalidate() on your ActionMode Jul 20 17:01:16 yes and then the system will call prepareActionMode right? Jul 20 17:01:21 and in there i can disable menu options Jul 20 17:01:22 and then it should go through the ActionMode.Callback lifecycle again Jul 20 17:01:30 yeah Jul 20 17:01:45 but will it 'dynamically' change or hide and reshow the whole thing? Jul 20 17:02:04 shouldn't hide/reshow Jul 20 17:02:07 it should just update Jul 20 17:02:09 ok thanks! Jul 20 17:22:00 anyone know of an issue where when you move a View with an animation, pre-honeycomb, it really just moves an image of the view but not the view itself? (so you cant click on it in it's new position) Jul 20 17:22:06 if so, is there a straightforward way to fix that? Jul 20 17:22:34 You have to reposition the view once the animation is done Jul 20 17:23:00 New layoutparams, etc Jul 20 17:23:03 ahhh ok Jul 20 17:23:21 yeah, that's kind of intentional. Jul 20 17:25:40 thanks guys Jul 20 17:30:54 it will be interesting to find out what is causing these n7 screen issues Jul 20 17:30:59 I want to associate an activity with a certain file type (*.cpdef), so I added this intent filter to my android manifest http://pastebin.com/a6WNESKS It works when a file of that type is downloaded from the browser, but it does not work when openning a file that was just received from bluetooth. How can I change it to work also with bluetooth? Jul 20 17:33:04 Check the intent, make a filter that matches Jul 20 17:35:04 Hello dear helpers, i can't find the error http://pastie.org/private/u1u4ibgpaqn7a98meeydw it's always telling me "the application stopped unexpectedly.." Jul 20 17:35:44 logcat? Jul 20 17:36:17 logcat: http://pastie.org/private/zswgobbxo2quludkemmwq Jul 20 17:37:33 Night*: Caused by: java.lang.RuntimeException: setAudioSource failed Jul 20 17:38:04 did i done, something wrong at the code ? Jul 20 17:38:31 (i'm using a emulator) Jul 20 17:38:51 Night*: the error lies in AndCaptureAudioActivity.java:24 it seems Jul 20 17:39:20 add to manifet Jul 20 17:39:27 *manifest Jul 20 17:40:06 does WRITE_EXTERNAL_STORAGE include READ_EXTERNAL_STORAGE? Jul 20 17:40:20 or should that be requested separately Jul 20 17:40:24 i think not Jul 20 17:40:42 f2prateek: i added. ok at http://pastie.org/private/u1u4ibgpaqn7a98meeydw you see something wrong ? Jul 20 17:41:22 i remember reading the documentation that said it doesnt include the other one Jul 20 17:42:28 try to run it and see Jul 20 17:45:12 I added the write external and record audio permission, now this is the last code: http://pastie.org/private/jkf5igbgonh48vnjtsg4q .::. and this is the last logcat: http://pastie.org/private/1ffggp6umbbndlyenjysa Jul 20 17:47:08 you got the same error? Jul 20 17:47:21 "If your application already requests write access, it will automatically get read access as well." Jul 20 17:47:54 yup wierd no ? Jul 20 17:49:30 canadiancow|work: oh sorry :( Jul 20 17:49:55 nah its fine Jul 20 17:49:56 i wasnt sure Jul 20 17:50:10 i mean in theory, a CAMREA app might need write but not read Jul 20 17:50:18 whereas a gallery app could need the opposite Jul 20 17:50:53 canadiancow|work , f2prateek : is that true ? http://stackoverflow.com/questions/8151715/video-audio-recorder-android Jul 20 17:51:12 is what true Jul 20 17:51:14 i mean what "Niels" wrote, about it is a bug Jul 20 17:51:53 i dont know... Jul 20 17:52:28 on which version to build stuff ? Jul 20 17:52:40 no idea about it being a bug, but the same code is in the example docs, not likely to be a bug Jul 20 17:52:48 preferably the latest api Jul 20 17:54:37 ok i'll update and change version, i will update you what is going on :> Jul 20 17:55:17 shouldnt be a probelm coz the record audio is since api 1 Jul 20 17:55:34 look at this code and see how this does it differently http://developer.android.com/guide/topics/media/audio-capture.html Jul 20 17:55:52 yes, from there i built my code :) Jul 20 17:56:36 does that code work out of the box? Jul 20 17:56:39 f2prateek, is that true that android isn't letting you a tool for record a call, you only must record via the mic of the device? Jul 20 17:57:08 isnt that what you want to do? record via mic? Jul 20 17:57:58 being unable to record a call seems more like a security feature in place to prevents apps from doing so, although i have seen examples of those so theres defenitely a workaround. Jul 20 17:57:58 i dont want to record just what i'm saying i want to record also what i'm hearing, is that possible ? Jul 20 17:58:45 ok thanks. Jul 20 17:59:19 You can record on custom roms with some kernel changes Jul 20 17:59:34 Pretty sure it's not possible on retail builds Jul 20 18:00:59 it may be a "security feautre" Jul 20 18:01:05 but there are definitely valid reasons for recording Jul 20 18:01:14 i have an asterisk server, and all my calls that go through it are recorded Jul 20 18:01:21 it helped me with a credit card dispute i had once Jul 20 18:01:34 because i ahd proof that a company had said one thing, and charged me differently Jul 20 18:03:04 canadiancow|work, no doubt if they disable it, it's pretty lame. Jul 20 18:03:22 anyways, it is possible via emulator i can't use the mediarecorder ? Jul 20 18:03:34 but at the same time, there are so many noobs that i could just say "oh hey let me install this cool app for you", and have it record and send all thier calls to me ;) Jul 20 18:04:41 NighthawK; possible do you have a mic installed on your computer? Jul 20 18:04:48 yes, even 2. Jul 20 18:05:10 well camera works on emulator so i'll assume mic does too Jul 20 18:05:30 canadiancow|work, it's still not a reason to forbid you this access, it's on the user job to decide if he want to install the app or not. Jul 20 18:05:49 NighthawK; i'm pretty sure you need to be running as root app Jul 20 18:05:51 otherwise windows should forbid any programming on windows cause it may hurt the os. Jul 20 18:06:08 f2prateek , should i add something to manifest ? Jul 20 18:06:13 and apparently some kernel patch if you read this description https://play.google.com/store/apps/details?id=com.skvalex.callrecorder&hl=en Jul 20 18:06:16 Nighthawk`` i dont completely disagree Jul 20 18:06:23 but what should be allowed Jul 20 18:06:35 should an app be able to overclock the cpu to the point that it burns out? Jul 20 18:06:37 i dont really know about root apps, but here is a guide on xda how to make a root app if you're interested Jul 20 18:06:48 it talks about getitn root permissions Jul 20 18:07:01 *getting Jul 20 18:07:24 canadiancow|work, ofcourse i agree android should deny intentionally hurting actions but "recording calls" really ?.. Jul 20 18:07:47 well there are also legal issues there Jul 20 18:07:52 f2prateek: i will try everything because it seems knowone knows how to fix my code. Jul 20 18:07:57 where i live, if ONE PARTY consents to the call, recording is legal Jul 20 18:08:01 so if i consent, i can record my calls Jul 20 18:08:10 but there are other areas where ALL PARTIES must consent Jul 20 18:09:00 canadiancow|work, where you live it's the best way. where is it ? Jul 20 18:09:08 canada... Jul 20 18:09:15 I lol'd Jul 20 18:09:30 Nighthawk: i dont know if miui is open source, but they have the call record feature in their ROM, so see if you can get their code and see whats implemented Jul 20 18:09:37 why does people making fun of canada ? i think it's great. Jul 20 18:09:48 who's making fun of canada? Jul 20 18:09:52 i think the joke was that is in his nick Jul 20 18:09:59 *its Jul 20 18:10:24 :) Jul 20 18:10:31 lol, i even did not read his nick ROFL Jul 20 18:10:38 wow i just got burn myself. Jul 20 18:10:43 then how did you ask me the question Jul 20 18:10:47 you used my name in the question Jul 20 18:11:02 i'm typing "ca" and pressing tab :> Jul 20 18:11:27 so you had to read my name to know what to type Jul 20 18:11:45 nah just the first letters :> Jul 20 18:12:19 Nighthawk``: wow i just learnt about this tab thing. no more rwriting names manually! Jul 20 18:12:28 heheheh Jul 20 18:12:35 <<< mirc expert if you got any questions. Jul 20 18:12:50 how do you even computer? Jul 20 18:13:27 how do i even computer ? wtf :> Jul 20 18:13:46 how do i shot web? Jul 20 18:14:20 i said "mirc" not virtual world. Jul 20 18:22:25 hi guys, I was sent here from #eclipse :) Jul 20 18:22:41 cool story Jul 20 18:22:44 blinky5: how may we help you? :-) Jul 20 18:22:47 I don't know how to use Source tab in my project properties Jul 20 18:23:00 I am struggling with this whole day, so PLEASE don't send me to google :( Jul 20 18:23:13 what do you want to do? Jul 20 18:23:16 I have 2 projects, one is pure Java, second is Android; I want to use pure java code from Android project, so what should I do inside "Source" tab? Jul 20 18:23:31 o_O Jul 20 18:23:38 and problem is, I can't use "Projects" tab, becuase it has some weird bugs... Jul 20 18:23:43 ok, hold on. Jul 20 18:23:49 You have an Android Project and a Java Project Jul 20 18:23:50 correct? Jul 20 18:23:55 yes Jul 20 18:24:02 (using "Projects" tab eclipse autocomplete my code, so it see my pure java project and its code, but when I launch my Android project, I got java.lang.NoClassDefFoundError) Jul 20 18:24:08 and you want the Android Project to be able to reference the code in your Java Projects Jul 20 18:24:11 ok Jul 20 18:24:17 yes! :) Jul 20 18:24:41 go to project properties for your Android project Jul 20 18:24:45 go to Java Build Path Jul 20 18:24:47 go to the Projects tab Jul 20 18:24:49 add the Java project Jul 20 18:24:58 then go to the Order and Export tab Jul 20 18:25:05 and make sure that the Java project is checked Jul 20 18:25:23 I have no idea why Eclipse sent you here; they must have heard the word "Android" and just ignored everything else you said Jul 20 18:25:47 Order and Export in which project? Jul 20 18:26:05 your android project Jul 20 18:26:37 this is something new, let me check Jul 20 18:27:04 (I set only java project and its Order And Export, not Android project) Jul 20 18:30:30 is installing to the sd card really just an issue of a few lines in manifest? or are there hidden pitfalls? Jul 20 18:32:30 There are "pitfalls" like not getting boot intent, widgets not showing up in the launcher/not working, cus the sd hasn't been mounted when these things happen Jul 20 18:33:34 alarms not being called? Jul 20 18:33:51 your app not functionaing at all if the sd card isn't mounted Jul 20 18:34:42 cats and dogs, sleeping together... Jul 20 18:37:43 right ok i can live with these things Jul 20 18:37:50 lov: i lov you :D THANK YOU VERY MUCH Jul 20 18:38:40 it works, no one entire whole day on stackoverflow mention that I need to set things in order and export in ANDROID TOO Jul 20 18:39:05 thank you so much Jul 20 18:44:27 so, why I have option to reference to some project and don't use it? Jul 20 18:45:10 why I need to set export additionally? Jul 20 18:46:25 You also reference android.jar, wouldn't want to export that Jul 20 18:46:38 Anyone notice when entering about:debug it magically fixes any js error on a web application? Jul 20 18:51:28 EddieRingle, have you considered adding enterprise github support to hubroid? Jul 20 18:55:57 Hi guys! I am new to android, and I need help to resolve a NPE Jul 20 18:56:53 Here is the LogCat of the app which is crashing http://pastie.org/4291051 Jul 20 18:57:59 you're gonna need to give the code too Jul 20 18:59:00 Here is the code leading to the error http://pastie.org/private/uo1ltq3oh9nuiehlz0xxrq Jul 20 18:59:41 E/AndroidRuntime( 6591): at com.embeddedartists.aoa.nodes.NodeView$1.handleMessage(NodeView.java:171) Jul 20 18:59:48 So line 171, something is null Jul 20 18:59:50 Fix that Jul 20 19:00:27 tv.setText(node.getValue(msg.arg1)); Jul 20 19:00:33 either node or tv is null Jul 20 19:00:37 debugger Jul 20 19:00:47 getValue is defined in http://pastie.org/private/vsud85qqfi3gs8rauruta Jul 20 19:00:49 or just Log.d Jul 20 19:01:00 getValue isn't the problem Jul 20 19:01:14 hi all Jul 20 19:01:15 like wongk said, either node or tv is null Jul 20 19:01:31 use the logger or the debugger to figure out which Jul 20 19:01:50 could you please look at this question: http://stackoverflow.com/questions/11584876/connect-rtmp-stream-never-fires-callback-event Jul 20 19:03:04 ryanm: oh ok!.. I cannot use the debugger since the device will be connected to the accessory!, Will try to see on the logger Jul 20 19:04:11 what logger do you talk about? :) Jul 20 19:04:49 I am creating a custom theme whose parent is Theme.Sherlock.Light.DarkActionBar. I am overriding the android:windowBackground value to display a loading screen between activity launches. This covers the entire window except the action bar sherlock. Any suggestions for hiding the actionbar in the theme? I've tried windowActionBar set to false but it still displays. Jul 20 19:05:02 blinky5: http://developer.android.com/reference/android/util/Log.html Jul 20 19:05:14 I still use the actionbar in my activities, but would like to remove it during activity transitions. Jul 20 19:05:54 ryanm: oh, that logger :) Jul 20 19:06:16 Any suggestions? Jul 20 19:15:05 hey people Jul 20 19:15:19 I have a WebView in my activity xml Jul 20 19:15:27 I'm trying to add the part for getting a function call once the orientation changes so that the webview is not reset Jul 20 19:15:37 but the documents say to edit my element, but i don't have one Jul 20 19:16:02 pastebin the manifest Jul 20 19:16:17 the activity manifest? Jul 20 19:16:28 the applicaiton manifest Jul 20 19:16:42 cbx33: that goes in your manifest, not the activity XML Jul 20 19:16:55 https://gist.github.com/3152682 Jul 20 19:16:56 ahhh Jul 20 19:16:56 ok Jul 20 19:17:11 great I understand now Jul 20 19:17:22 put the configchanges in the activity tag in AndroidManifest.xml Jul 20 19:17:25 cool Jul 20 19:17:40 yup Jul 20 19:17:42 lemme try that Jul 20 19:18:55 is there a way to change orientation in the AVD emu? Jul 20 19:19:12 blinky5: glad to help Jul 20 19:19:16 cctrl+f11 i think Jul 20 19:19:37 *ctrl Jul 20 19:19:54 thanks f2prateek Jul 20 19:20:11 hey, I need help with rtmp stream... I am trying to connect to it from android, but when I try to rtmpClient.connect(host, port, app, callback); it never fires callback event. any suggestions? Jul 20 19:20:37 blinky5: Exporting says "When you build this project, include this other project in the compiled output as well". You may not want to do this; for example, if you're building your project against some java library, but don't want/need that library in your compiled output, you don't want to export it. Jul 20 19:20:48 you may just want to have the jar as a reference Jul 20 19:20:52 cna you save "settings" without requiring access to write to SD card? Jul 20 19:20:59 for example, you just reference the android.jar, you don't actually include it in your output Jul 20 19:21:05 cbx33: sure, save to app private storage. Jul 20 19:21:11 ok Jul 20 19:21:16 cbx33: SharedPreferences saves to app private storage automatically Jul 20 19:21:23 and that's what the Preferences use for backing Jul 20 19:21:34 nice Jul 20 19:21:35 (e.g. PreferenceActivity, PreferenceDialog, etc) Jul 20 19:21:35 thanks Jul 20 19:22:24 I want to compile jb but I keep getting this error: hardware/qcom/media/mm-video/vidc/vdec/omx_vdec.cpp:5525:35: error: 'struct vdec_framesize' has no member named 'bottom' Jul 20 19:22:34 does anyone know why? Jul 20 19:22:40 when i rotate the AVD emu, the screen does not adjust Jul 20 19:22:44 anyone know why? Jul 20 19:22:54 BoxyK: #andorid-root Jul 20 19:22:59 thx Jul 20 19:23:06 is anyone here who has experience with playing media over rtmp? Jul 20 19:23:11 Auto-rorate screen is checked under display settings Jul 20 19:23:32 cbx33: you might be using an activity that forces an orientation. Jul 20 19:23:35 try opening the browser or something Jul 20 19:23:41 I'm on the home screen Jul 20 19:23:42 :) Jul 20 19:23:45 exactly. Jul 20 19:23:48 ok Jul 20 19:23:50 the home screen is notorious for that Jul 20 19:24:04 yeh Jul 20 19:24:11 nope still doesn't change even in browser Jul 20 19:24:56 so everything is rendering 90 degrees in the wrong direction? Odd. Jul 20 19:25:13 yup Jul 20 19:25:15 ahhh Jul 20 19:25:26 according to stack overflow, it's a bug with the emulator Jul 20 19:26:05 http://code.google.com/p/android/issues/detail?id=13189 Jul 20 19:26:07 :( Jul 20 19:26:21 I'll testin 3.0 Jul 20 19:27:25 man, this is actually quite fun - Do a lot of people now use html+css for app dev as opposed to using Java Jul 20 19:27:35 can you still pick up things like swipes in a webview? Jul 20 19:27:56 cbx33: apparently phonegap is quite big Jul 20 19:28:22 ahhhh Jul 20 19:28:27 platform agnostic Jul 20 19:29:33 does it have to use ALL those permissions - gee now that I do not like Jul 20 19:30:07 cbx33: i dont think it does, its just a catch all for all it supports Jul 20 19:30:12 phew Jul 20 19:30:13 :) Jul 20 19:30:19 I hate apps that use a lot of perms Jul 20 19:30:24 (not the hair style) Jul 20 19:30:27 cbx33: but i could be mistaken Jul 20 19:32:11 need some help with rtmp stream, could you please take a look: http://stackoverflow.com/questions/11584876/connect-rtmp-stream-never-fires-callback-event Jul 20 19:32:59 tornike: at least wait a couple of hours before asking again, probably noone online knows about this now Jul 20 19:33:16 ok Jul 20 19:36:58 f2prateek, do you know what would be the motion event for like swiping to move to a new page on an ebook for example Jul 20 19:38:47 cbx33: i use viewpager, but never something like an ebook, not sure how the memory is maanged for something like Jul 20 19:38:56 hmmm Jul 20 19:39:01 ok Jul 20 19:39:24 http://stackoverflow.com/questions/937313/android-basic-gesture-detection/938657#938657 - found that Jul 20 19:39:27 :S Jul 20 19:39:32 cbx33: you can define your own gsture if a sipe event is not available Jul 20 19:39:46 yeh i think that's what that link does Jul 20 19:39:51 Paging JakeWharton, or other ABS geniuses. I've got a custom ExpandableListFragment that inherits from SherlockListFragment and contains a custom ExpandableListView. But, when onRestoreInstanceState() is invoked, I'm getting this Exception: android.widget.ExpandableListView$SavedState cannot be cast to android.widget.AbsListView$SavedState. Any thoughts or ideas? Jul 20 19:43:24 If I open a transparent Activity, it's size is calculated from the xml, but now I've converted it to a Dialog, and it's much smaller than needed. Does it calculate the size differently? Jul 20 19:45:41 I have a menu item defined in .../res/menu/activity_main.xml with @+id/settings However, in the onOptionsItemSelected function R.id.settings is undefined? Jul 20 19:46:57 how can I make something like the following work... that is return a string inputted into an AlerDialog? Jul 20 19:47:00 http://pastie.org/4291564 Jul 20 19:47:21 Do I have to put the menu in my manifest? Jul 20 19:47:32 you cannot, not this way Jul 20 19:47:33 onCLick is void Jul 20 19:47:38 you cant return string Jul 20 19:47:59 but how could I... make it pretty and working Jul 20 19:48:16 snot:what do you want to do? Jul 20 19:48:21 I'm requesting user input several places and I'm trying not to repeat my self Jul 20 19:49:07 snot: what are you tring to do with the returned value? Jul 20 19:49:27 snot: just pass the listeners as parameters Jul 20 19:49:53 f2prateek: several things, use it as destination for a file copy, a new name for a file and several other things Jul 20 19:50:03 makeing a file manager... for pratice Jul 20 19:50:16 romainguy: to getUserInput? Jul 20 19:51:36 snot: couldn't you make it activity and call it with startActivityForResult then return the result in an intent and listen for the response in onActivityResult Jul 20 19:51:47 (might not be the easiest way i guess but it would work) Jul 20 19:53:47 eric256: not a bad idea, but that sounds like quite a lot fo code as well. I know how to do it though... I just feel like my app is turning into spagehtti glue code Jul 20 19:55:37 snot: whay are you returning it? you can just save it right? Jul 20 19:56:38 where should my preferences.xml file go? Inside /res/xml or is it ok in /res/layout?? Jul 20 19:57:06 deadmund: I placeed mine in xml... but I was wondering if there was a better place Jul 20 19:57:17 is there anything that gives a nice intro to Java for idiots who want to write apps :) Jul 20 19:57:33 http://www.javacodegeeks.com/2011/01/android-quick-preferences-tutorial.html says it should go in /res/xml as well.. Jul 20 19:57:36 cbx33: the newboston videos if you like seeing code as you go Jul 20 19:58:05 f2prateek: shouldnt I then have to se if the user has typed it and such... couldnt that easily get nasty? Jul 20 19:58:16 and oracle site with java docs (for java) and d.android.com for android references :) Jul 20 19:58:21 f2prateek, link? Jul 20 19:58:47 snot: just check it in the method without returning, and once it passes the check, save it? Jul 20 19:58:54 cbx33: just google newboston Jul 20 19:58:59 ok ty Jul 20 19:59:34 ryanm: or wongk: is this what you wanted my to log, Log.d(TAG, "tv: " + tv.toString());, LogCat appears like this http://pastie.org/private/jyssx98ughbhyc5inr3hqw Jul 20 19:59:52 so ur tv is null Jul 20 20:01:13 ixc > Yes ryanm and wongk told me tht either tv or node is null Jul 20 20:01:37 r u paste code before? sorry i wasnt here :) Jul 20 20:01:38 er Jul 20 20:01:47 neither is null Jul 20 20:02:07 what was the paste for the code again? Jul 20 20:02:27 u made tv or found it before u use it? Jul 20 20:02:48 http://pastie.org/private/f0p8fi6jsmp2dykfgexfa Jul 20 20:03:03 f2prateek: I'm not sure how that would go down... you don't happen to have an example? Jul 20 20:03:27 er, you're logging after the exception Jul 20 20:03:39 which means it doesn't log i nthe case the exception is throw Jul 20 20:03:43 n Jul 20 20:04:09 wongk: my bad, I will correct that Jul 20 20:07:27 I should be log it before the line where the exception is occuring right? Jul 20 20:07:47 yes Jul 20 20:08:15 hello Jul 20 20:08:16 I just tried that and seems like I'm doing something wrong Jul 20 20:08:30 or u can just check it they are exists or not; first u need to know which is null Jul 20 20:08:40 does android 4.0 somehow support class format of java7? I want to use some source code enchancements so I would benefit from that Jul 20 20:09:04 So, yea tv and node are not null, http://pastie.org/private/moaspyacp2xjyzz9yceq Jul 20 20:09:18 I don't BELIEVE so, but it's possible. Jul 20 20:10:13 now what is in ur nodeview line 182? Jul 20 20:10:27 also is it a subset of java6 or something more degraded than it may look like? Jul 20 20:10:43 log of tv, right? Jul 20 20:10:54 hi, is there a lib/project that makes executing and getting the stdout of commandline commands easier? Jul 20 20:10:59 yup.. that is right ixc Jul 20 20:11:22 so tv is null Jul 20 20:11:42 so ur tv is null, ur handler get a argument that cant get from ur values map Jul 20 20:12:07 * Kopfgeldjaeger just found roottools Jul 20 20:14:00 Kopfgeldjaeger: i cant answer for ur question, but why u need stdout? Jul 20 20:14:19 cant use just a library, not full command? Jul 20 20:14:24 You guys are able to say that with the log messages.. D/EA AOA ( 8586): tv: android.widget.TextView@410e3c90 ? Jul 20 20:14:40 webczat: I BELIEVE that it supports the full set of Java 6 features. Jul 20 20:14:42 ixc: because I want to use the output of the command. e.g. "mount | grep extSdCard" Jul 20 20:14:56 webczat: I would very strongly recommend that you download the android source and look at the dalvik documentation. Jul 20 20:15:00 vinayvl: ur handler is called many times, and once was null Jul 20 20:15:30 Kopfgeldjaeger: Environment's or context getexternal.... methods not fit for it? Jul 20 20:16:02 vinayvl: think about it logocally for a second, it crashes with an NPE on this Line: Log.d(TAG, "tv: " + tv.toString()); Jul 20 20:16:07 ur method looks device specific :) Jul 20 20:16:09 ixc: no, it's more than that :) but roottools should do the trick Jul 20 20:16:30 I already have it working without an external lib, but I want to make the code better Jul 20 20:17:02 im not sure thats the right way for better code :) Jul 20 20:18:54 ixc: and wongk: Got it..Thanks! So how do I resolve it? Jul 20 20:19:05 find out why it's null Jul 20 20:20:07 Hi All, I can't figure out how to copy a file from /assets to a directory on the device. Previously InputSteam in = getApplicationContext().getAssets().open(file); worked, but now it doesn't...any ideas? Jul 20 20:20:52 what means 'previously'? Jul 20 20:21:16 dont think so its depend on time :P Jul 20 20:22:22 btw if u copy out them, why they are assets? Jul 20 20:24:10 well, long story short Jul 20 20:24:19 I'm using PhoneGap and SQLite and they have to be in a certain directory Jul 20 20:24:30 and I'm more of a HTML/JS guy than Java :) Jul 20 20:26:43 so what is changed? or what means previously? what error u got? Jul 20 20:27:09 My copy operation isn't working, to copy it from /assets/ to /data/data/org.apache.cordova.api/databases/ Jul 20 20:27:45 what is in logs? Jul 20 20:29:18 I don't receive an error on copy, but I can't access the file Jul 20 20:29:29 so I know it didn't copy over properly Jul 20 20:29:53 how u know it without errors? Jul 20 20:30:23 your application is installed to org.apache.cordova.api? Jul 20 20:30:24 oh, how do I know? I get a SQLiteCantOpenDatabaseException: Could not open database Jul 20 20:30:55 maybe u catch some exception when u copy the asset? Jul 20 20:32:08 I got an idea, 1 sec... wongk: good point. Jul 20 20:32:17 I think it's loading the app package wrong. Jul 20 20:32:37 wongk: and ixc: So apparently since in tv.setText(node.getValue(msg.arg1)), getValue() is not NULL, nor is node; tv is being set to NULL the next time TextView tv = values.get(msg.arg1);is executed.. so its getting msg.arg1 as NULL right? Jul 20 20:33:13 maybe its not null, but u also can check it Jul 20 20:33:43 u should log msg.arg1, and also check what records in values map Jul 20 20:34:37 wongk: Thanks! It was loading the package name wrong with the new PhoneGap! Jul 20 20:37:25 ixc: Ok I will try to do that!.. I am completely new to java, bare with me.. Sorry! Jul 20 20:38:31 this would be 10x easier in a debugger Jul 20 20:39:09 btw its not java spec. debugging is same everywhere Jul 20 20:40:18 wongk: But I cant test it on the debugger, since the android device is trying to communicate with the embedded board Jul 20 20:40:45 evile Jul 20 20:41:28 writing code w/o a debugger is like using a manual screwdriver vs. an electric drill Jul 20 20:41:54 when i was kid i love manual screwdrivers Jul 20 20:42:08 almost destroy the world with it :) Jul 20 20:42:20 Should I be extending PreferenceActivity if I don't have any headers for my preferences? (I only have 3 preferences that are stored in a sharedPreference Jul 20 20:42:56 deadmund: u can write shared preferences without preference activity too Jul 20 20:42:59 anyone seen "sdk.dir is missing" ? Jul 20 20:43:14 so u need to know how is more ergonomic Jul 20 20:43:17 ixc: Yes, but how else can the user change the preferences if not with a preferenceActivity Jul 20 20:44:16 so if its fit for ur project, why dont use? Jul 20 20:44:22 canadiancow|work: isn't that set in local.properties/. Jul 20 20:44:24 ? Jul 20 20:44:28 yea Jul 20 20:44:31 im not sure why its not working Jul 20 20:44:33 this is on hudson Jul 20 20:45:03 and ur ant configs (build.xmls) search in it? Jul 20 20:46:52 Look at that Node becomes 0 suddenly, but the exception still occurs because of tv http://pastie.org/private/0c0osb1ul1ilsfsuh6swca http://pastie.org/private/qigj5f5unlpnm9skkecs9w Jul 20 20:47:01 hmm. why does android save hardware keypresses to the system log? isn't it a security leak? Jul 20 20:47:14 i mean, i'd rather it didn't record all qwerty keypresses. Jul 20 20:47:54 its not save :) Jul 20 20:48:11 look for "[KEY] gpiomatrix: key 28, 0-3 (190-185) changed to 1" or similar Jul 20 20:48:58 obviously the key ##, #-# (###-###) changed to (1|0) will vary Jul 20 20:49:24 maraz: what device? Jul 20 20:49:34 u use custom rom? Jul 20 20:49:38 that is indeed a "Very Bad Thing"(tm) Jul 20 20:49:44 desire z, same behavior with stock and CM7 Jul 20 20:50:19 logcat? or dmesg? Jul 20 20:50:19 http://vimeo.com/36171967 i did a video on it when i noticed it on stock firmware, somehow i didn't expect CM7 to do it too Jul 20 20:50:29 logcat Jul 20 20:51:49 yeah, it's most likely one of the hardware modules for the device (cm would likely just use the binary as-is from the official rom) Jul 20 20:52:29 hmm Jul 20 20:52:34 yeah, its looks htc mistake Jul 20 20:54:04 if you have actionbar which splits, all action icons will be on the bottom if you add them and only using a customview you can have one on the top, is the same true for a search action? or is there some library stuff to have it on the top anyway? ( like the progress circle) Jul 20 20:54:06 the really strange thing is that adb logcat *doesn't* show these Jul 20 20:54:25 but when I look at the message log in os monitor (or the Tell HTC application, previously), they're there Jul 20 20:54:49 maraz: huh? you just said it was logcat Jul 20 20:54:52 i did Jul 20 20:54:57 but it isn't? :) Jul 20 20:55:00 its in dmesg, i think Jul 20 20:55:01 they're flagged as [INFORMATION] Jul 20 20:55:39 guess it's dmesg then Jul 20 20:55:45 but yeah, it's still bad Jul 20 20:56:03 indeed Jul 20 20:56:25 on my milestone its no logged:) Jul 20 20:57:01 htc dont have some contact form where u can report it? Jul 20 20:57:14 http://pastebin.com/KvEH7h0A well, this is in my dmesg. Jul 20 20:57:21 well Jul 20 20:57:45 i'm using cm7 now Jul 20 20:57:56 i doubt they'll be able to remotely upgrade my hardware :P Jul 20 20:59:26 it's very interesting that the tell htc application (which comes up when the stock firmware crashes and reboots) will send this logfile from the previous session to htc... obviously with everything that was typed on the hardware keyboard, from usernames, passwords, industrial and political secrets (if any)... :) Jul 20 21:00:11 not to mention that any application with the sensitive log files permission will be able to read this information too Jul 20 21:18:40 ixc: and wongk: If you can see line 63 of LogCat: http://pastie.org/private/lmvou7gea3opv4ghlxxdxa, Jul 20 21:18:53 msg.arg1 : 96 is not being mapped Jul 20 21:19:31 That must be the reason for the NPE (Code http://pastie.org/private/azlzkogpgbejnfpvj0kog) Jul 20 21:21:17 Anbody thr? Jul 20 21:33:07 hello Jul 20 21:33:15 cool Jul 20 21:33:48 i need help with decompiling apks.. Jul 20 21:34:16 quantibility: if they are not yours (and if they were, why would you be decompiling them) … this is the wrong place. see topic Jul 20 21:34:57 well thats how i learn, i look i identify i understand... thus helping me learn how to code Jul 20 21:35:38 there are easier ways to learn that reversing apks Jul 20 21:36:05 for example, iosched and mytracks sources are available online Jul 20 21:36:22 what the h are those? Jul 20 21:37:19 iosched is the google io app Jul 20 21:37:26 anyhow, thats how i learn, i learn by looking observing and understanding...... who are you to judge how i learn, if you know how to do it then tell me if not i can find someone who does Jul 20 21:38:29 quantibility: what have you learned about android so far? have you written anything ? Jul 20 21:39:17 have you read through d.android.com, the apidemos, for example ? Jul 20 21:39:29 i have learned about all classes so far, i usta write in Mirc, that was so many years ago. but how i learned was, LOOKING AT OTHER SCRIPTS and reading the help file.. but i learned, i would like to do the same thing with android apps Jul 20 21:40:29 ]g00s: so far i have the developing enviroment, i have rooted my phone, blah blah blah, Jul 20 21:41:00 This is still not the channel for app decompiling Jul 20 21:41:23 do they have one somewhere? then ill come back in here once i get some code going Jul 20 21:41:50 quantibility: look at open source apps Jul 20 21:41:59 I don't know if there's a channel for that Jul 20 21:42:04 quantibility: you're not going to learn anything correct from decompiled ones anyway Jul 20 21:42:32 fine Jul 20 21:42:42 where do i go to get open sourced apps Jul 20 21:42:43 ??? Jul 20 21:42:51 github Jul 20 21:42:55 quantibility: i heard there's a series of tubes with them Jul 20 21:42:56 google code Jul 20 21:54:10 ixc: and wongk: If you can see line 63 of LogCat: http://pastie.org/private/lmvou7gea3opv4ghlxxdxa, Jul 20 21:54:20 msg.arg1 : 96 is not being mapped Jul 20 21:54:25 That must be the reason for the NPE (Code http://pastie.org/private/azlzkogpgbejnfpvj0kog) Jul 20 21:55:49 hey guys, i have an executable that i'm building with the NDK, built with the previous version (8), the executable runs without issue, but built with the new version (8b), the executable fails to link: "reloc_library[1311]: 1260 cannot locate '__gnu_thumb1_case_uqi'" Jul 20 21:55:53 any ideas? Jul 20 21:57:35 i should say, it fails to link at run time Jul 20 22:13:44 anyone out there? Jul 20 22:22:07 ixc: and wongk: if you are out thr.. I could resolve teh NPE, thank you so much ! Jul 20 22:26:14 whats the best to keep track of files that I am writing out to the sd card? I'm working with images, so I'm considering using the time of the image as an identifier, or keep track of images with a sharedpreference integer, but is there a better way to do it? Jul 20 22:26:57 my activity always shows a keyboard since there exists a edittext Jul 20 22:27:14 anyone an idea how to default hide the keyboard? Jul 20 22:27:40 f2prateek: you could just enumerate the files on the sd card if they are all in one directory Jul 20 22:31:39 Anyone know of a view (custom or not) that allows you to specify a bunch of TextView's and EditText's that will then be displayed as a paragraph with proper line wrapping? I'm thinking of something like a MadLib type style, like this -> http://pastebin.com/AjErSiup Jul 20 22:32:14 textview's get split if they don't fit and a new one gets created on the new line. edittext's get droppe dto the next line if they don't fit on the current one. Jul 20 22:32:18 plaisthos: umm....i'll look it into that.. mind dropping me another hint where i could look at this works? Jul 20 22:33:49 plaisthos: oh wait.. found it. thanks, exactly what i needed :) Jul 20 22:34:49 I've started building my own, but thought I'd check here before I get too far down the rabbit hole Jul 20 22:38:22 plaisthos: Have you checked out the InputManager? -> http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html Jul 20 22:38:42 HIDE_IMPLICIT_ONLY may be what you're after Jul 20 22:46:46 anyone had experience of writing a theme mixing Theme.Light and Theme.Dialog? Jul 20 23:17:16 hello , am having a problem that make me cry , i had made a chmod on the sys folder and know even the os can not boot dunnow how to fix it , my mobile does not provide any rom please help am stuck here :'( Jul 20 23:21:00 proby: check out xda-developers.com forum Jul 20 23:21:10 whats the difference between uses-permission and uses-hardware ? Jul 20 23:21:31 i mean uses-permission and uses-feature? Jul 20 23:21:34 thats what i meant Jul 20 23:22:06 dlaroche i hadn't found any thread about this Jul 20 23:22:21 Mr_Grim: the first is for permissions and the second is for device capabilities Jul 20 23:22:42 pm me Jul 20 23:23:57 ryanm im trying to get the camera flash working in torch mode Jul 20 23:24:03 no such luck yet Jul 20 23:31:45 does anyobody have some code that turns the camera flash on the nexus s running 4.0.3? Jul 20 23:34:28 check teamkangs aokp github, there was a torch feature in it, but its a lot to navigate if you dont have it downlaoded Jul 20 23:38:51 f2prateek do you have a link? Jul 20 23:39:06 found it Jul 20 23:46:41 how come inside my getView() txtTitle is null Jul 20 23:46:43 holder.txtTitle = (TextView)row.findViewById(R.id.title); Jul 20 23:48:47 Cus R.id.title was not found in the row Jul 20 23:49:20 Or, you're using it before you findview Jul 20 23:50:46 I'm doing this Jul 20 23:50:47 ItemAdapter itemAdapter = new ItemAdapter(getActivity(), android.R.layout.simple_list_item_activated_1, R.id.text1, items); Jul 20 23:50:53 right, I need .text1 not .title Jul 20 23:52:02 I need to get used to these text1 button1 stuff :/ Jul 20 23:54:21 Or, make your own layout and use some proper names Jul 21 00:02:39 Hello, guys! Could you please give ma a hands with the steps to fix errors in lines 46 & 47 here? ( http://pastebin.com/aujnsvxh ) I'm a beginner, and I appreciate your help. Thanks! Jul 21 00:04:22 SimonVT ok you're right Jul 21 00:06:19 JoseeAntonioR: you're trying to do a method call in your method declaration. Jul 21 00:06:53 change 48 to "protected void onCreate(Bundle savedInstanceState)" and then send savedInstanceState to super.onCreate() on the next line Jul 21 00:07:01 yeh.. indent that line 1 level to the left and what they said Jul 21 00:09:56 asked earlier and got no response, anyone know of a way to do this http://pastebin.com/AjErSiup with a view? custom or not? Jul 21 00:10:09 can I have two different receivers listening for the same intents in my application? Jul 21 00:11:18 F1rstAid: yeah, but I think the first one that gets it will be the only one that processes it. If you're sending the broadcast, you can sendStickyBroadcast() and that should work. Jul 21 00:11:51 I am listening for ACTION_SHUTDOWN Jul 21 00:11:55 or ACTION_REBOOT Jul 21 00:12:07 but I think only the first one catches them.. that is why I am asking Jul 21 00:12:39 just have 1 listening for it and have it run two things Jul 21 00:13:15 let just say that I want to have them splitted Jul 21 00:13:33 well have one listening for it and rebroadcast an internal intent as sticky Jul 21 00:14:02 S3nsat10n: So I should write protected void onCreate(Bundle savedInstanceState) { [insert line break here] super.onCreate(savedInstanceState); right? And how does that call the wifi disabling? Jul 21 00:14:27 yea I am going to do that when if I am right that only first catches the intents Jul 21 00:14:29 JoseeAntonioR: it doesn't, but you'll get past your errors Jul 21 00:14:50 F1rstAid: that's the way it works, first one gets it unless it's sticky Jul 21 00:15:00 I just wanted to know if I am right or no for the two broadcast receivers Jul 21 00:16:01 ok Jul 21 00:16:03 S3nsat10n: so, how could I call wifi-disable after the timer is finished? Jul 21 00:17:12 http://stackoverflow.com/questions/8863509/how-to-programmatically-turn-off-wifi-on-android-device Jul 21 00:17:30 turn it off in the code that your alarm starts Jul 21 00:18:29 great, thanks! I'll come back in case I get in troubles again :) Jul 21 00:28:50 hello Jul 21 00:29:21 anyone able top answer a super noob question about the adt plugin for eclipse? Jul 21 00:29:40 GoogleDroid: Just ask it! Jul 21 00:29:48 lol Jul 21 00:30:41 hi Jul 21 00:30:43 alright, every time i try to download the adt plugin it fails saying it cant find the files or there missing... ive tried at least 5 times... windows with eclipse classic.... any suggestions? Jul 21 00:30:49 whats the best way to design a view item page, containing picture, title, description, buttons, etc Jul 21 00:30:58 FrameLayout ? Jul 21 00:35:54 d the adt plugin it fails saying it cant find the files or there missing... ive tried at least 5 times... windows with eclipse classic.... any suggestions? Jul 21 00:48:59 GoogleDriod, there's a manual way to install it Jul 21 00:49:15 downlad the zip from the instructions site Jul 21 01:06:46 hhhmm... if I could make some users eat their fucking phone I would Jul 21 01:27:24 hey, is there a way to run android apps on pc? Jul 21 01:28:20 saml: blue stacks Jul 21 01:28:22 the android SDK comes with an emulator that can run apps Jul 21 01:29:14 i have emulator but it doesn't have google play Jul 21 01:29:38 i'm on linux. blue stacks seems like windows only Jul 21 01:34:15 Ok I was able to render my first ItemActivity :P I have ImageView and TextViews inside a LinearView - Jul 21 01:34:29 how would I make my ImageView when you click, to zoom in bigger Jul 21 01:34:39 saml: why do you want to do that? Jul 21 01:34:44 onclick, intent, open an Image Activity ? Jul 21 01:35:16 Leeds, i wanted to install various apps from google play and use them on computer Jul 21 01:35:25 then no, you can't do that Jul 21 01:35:27 i don't like small screens Jul 21 01:35:34 and touch screen keyboards Jul 21 01:36:23 good for you Jul 21 01:36:32 if the developers make the APK available to you, you can certainly install them on the emulator. Jul 21 01:36:55 you can't forge request to get apk from play.google.com ? Jul 21 01:37:14 no, you can't Jul 21 01:37:55 phone isn't downloading apk from play.google.com? Jul 21 01:38:23 okay, enough Jul 21 01:38:28 To download apps from the play store, you need the play store application Jul 21 01:38:29 maybe i can hiject on my router Jul 21 01:38:34 It is not on the emulator. Jul 21 01:39:05 frankly, yes, there are ways to do it, but you're asking the wrong questions in the wrong place Jul 21 01:39:22 if you don't like Android devices, don't use Android apps - period. Jul 21 01:40:13 if you don't like IE, don't use web sites Jul 21 01:40:24 bye Jul 21 01:40:25 that was trolling. sorry Jul 21 01:41:32 will learning about compiling java packages and jars and classpaths teach me anything useful about compiling android packages/apks? Jul 21 01:42:37 devtekbeta: is there anything specific you feel you need to know about compiling android stuff? it's pretty much point'n'click, even if you use ant rather than eclipse Jul 21 01:42:46 <`z> wow Jul 21 01:42:58 <`z> that saml retard doesn't know how to download the playstore app and put it on the emulator Jul 21 01:43:00 <`z> how classy Jul 21 01:43:11 <`z> doesn't even bother searching Jul 21 01:44:53 Leeds, not paticularly. im only learning java for android. but want to learn how to make decent functional apps/games before i jump into android where ill encounter other issues such as android graphics etc. so just want to learn everything about java that will be useful for android including frameworks and all good java programming practices Jul 21 01:45:11 well, learning about Java is pretty much essential :) Jul 21 01:45:33 but the actual compiling stuff, as I said, is done for you by the SDK, so you don't need to know much about that Jul 21 01:45:42 ok cool Jul 21 01:45:53 I have a Broadcast receiver that I need to access sharedPreferences and the context to run context.getSystemService(Context.LOCATION_SERVICE); I was able to get an activity by doing Activity act = new Activity(); but I don't know how to get a context out of it. Am I even going about this the right way?? Jul 21 01:46:38 note that when you say frameworks - Android's Java libraries are completely different from Sun^WOracle's, when it comes to things like graphics - not to say you shouldn't learn about standard Java graphics, just don't expect to apply that to Android Jul 21 01:46:56 deadmund: nope, completely the wrong way :) Jul 21 01:47:07 Leeds: What should I do? Jul 21 01:47:21 i just ran into a problem where i have java files in multiple sub folders and cant find the commands to compile them sub folder stuff... i can see myself spending a whole day trying to research the commands in windows... but then ill probably be wasting my time if i wont use this for android development.... im just using notepad++ and windows cmd.exe..... maybe ill just go back to eclipse Jul 21 01:47:35 getSharedPreferences is already a method on Context, so you don't need to get an activity at all Jul 21 01:48:02 Leeds: how do I get a context in a broadcast receiver? Jul 21 01:48:09 you've already been given one Jul 21 01:48:17 :P Jul 21 01:48:18 thanks Jul 21 01:48:20 haha Jul 21 01:49:02 devtekbeta: well... you should be using the SDK, even if you're in Windows and want to work at the command line - although I can't imagine... why? Jul 21 01:49:35 don't try to put together your own compilation - use the ant config the SDK generates for you, and it's as simple as "ant debug" or "ant release" to build an apk Jul 21 01:50:05 well i know i have to learn java to learn android.... and the java people told me to learn java i should avoid IDE's when starting and learn to compile packages using just the JDK tools Jul 21 01:50:29 they were wrong, when it comes to Android Jul 21 01:50:54 even in Java, compiling with just the JDK tools is a nightmare Jul 21 01:51:02 yeh i guess so Jul 21 01:51:05 look, Java is three things - a language, a virtual machine (and bytecode etc) and a library set... Android uses the Java language, its own VM, and a modified library set Jul 21 01:51:33 so you need to learn the Java *language* - and some of the standard libraries... but not so much the tools, because Android has its own toolset Jul 21 01:51:38 i wont waste my time with that stuff then. back to eclipse :) iv missed the IDE Jul 21 01:51:42 yes i see your point Jul 21 01:52:10 you don't have to use eclipse if you don't want to - I don't - but you do need to use the SDK, and eclipse is probably the easiest path in Jul 21 01:52:41 well i have intelliJ too, but my android books taught me eclipse so im much better with eclipse Jul 21 01:53:12 but ill probably experiment with both IDEs more and see which works best... or maybe use them in combination somehow Jul 21 01:53:20 eclipse is the standard IDE for Android, yes... there are plenty of people using intelliJ, but if you don't have an attachment to either, I'd certainly start with Eclipse Jul 21 01:53:56 Can someone please guide me to adding android.support.v4 to maven? Jul 21 01:54:09 and please... make things easy on yourself, don't try to do weird things like "use them in combination somehow" - there are probably hundreds of thousands of Android developers using Eclipse, so put yourself in the mainstream :) Jul 21 01:56:42 Or you could just write own your own compiler and really go from the bit up :P Jul 21 01:56:50 well eclipse has a good multiple project view so maybe i could use that for storing and browsing lots of "template code", and then use intellij for acual projects because it's faster Jul 21 01:57:17 :) Jul 21 01:57:34 okay, just don't waste people's time asking for help Jul 21 01:57:55 ok i promise! Jul 21 02:12:35 Hey guys, I was hoping someone could point me in the right direction for this problem I'm having...http://stackoverflow.com/questions/11588699/outofmemory-while-using-asynctask-and-a-large-image Jul 21 02:18:42 ice__ when you are done with the bitmap you have to .recycle() it Jul 21 02:18:59 @lasserix, looking into it, thank you!! Jul 21 02:25:43 lasserix thank you sir, that solved the problem Jul 21 02:39:47 ice__ no problem good luck **** ENDING LOGGING AT Sat Jul 21 02:59:58 2012