**** BEGIN LOGGING AT Wed Aug 29 02:59:58 2012 Aug 29 03:00:02 what kind of data Aug 29 03:00:25 Leeds, any ideas about my surface view problem? Aug 29 03:01:30 i'm put username and password in SharedPreferences Aug 29 03:02:06 and i wanted encrypt this password Aug 29 03:02:14 jalmeida: maybe you should be looking for hashing, not encryption Aug 29 03:02:46 jalmeida: hint SHA512 Aug 29 03:03:06 hashing works fine to my problem? Aug 29 03:03:49 jalmeida: is your goal to validate a user has entered their correct password? Aug 29 03:07:02 dude WHY when I do a setVisible( GONE ) on somethign, and then later make ir VISIBLE again, WHY does it just disregaurd all my alignments!! Aug 29 03:07:44 mr6: yes, encrypt en put into SharedPreference, and decrypt and send to restful service to login Aug 29 03:08:13 is correct? Aug 29 03:10:07 jalmeida: ok so you aren't trying to validate their password on the client then Aug 29 03:10:35 jalmeida: and where would you store an encryption key? Aug 29 03:10:43 jalmeida: are you sure this is a good solution? Aug 29 03:12:48 mr6: no i'm not sure Aug 29 03:12:51 gonna encrypt the key as well... Aug 29 03:13:18 jalmeida: i don't know your app requirements but I'll just go ahead and point you towards oAuth Aug 29 03:14:27 you're talking about encryption but really it sounds like you wnat to know how to authenticate / authorize mobile users to a HTTP API Aug 29 03:17:10 mr6: really, because using reverse engineering can someone crash my security encript key Aug 29 03:19:19 jalmeida: often you have the user enter credentials when the first open the app, then send those to a server api and receive an auth token which you send back on subsequent requests and eventually times out and requires login again Aug 29 03:19:40 in a nutshell Aug 29 03:20:10 if you have to store credentials on the phone, pretty much the only secure way to do so is on android 4, using the keystore Aug 29 03:20:27 prior to 4, you can kluge it if you dig the keystore singleton api out of the aosp code Aug 29 03:20:33 it's just a udp socket to a local daemon Aug 29 03:20:56 otherwise put the credentials elsewhere and store a token, as people have suggested Aug 29 03:23:24 if you look at banking apps they generally just force a user to login on each foreground restore and send credentials over SSL, if you need that level of security/annoyance Aug 29 03:24:23 but it's the same basic idea, the token just expires with every session Aug 29 03:28:15 http://stackoverflow.com/questions/12170471/android-camera-intent-file-into-imageview-npe-sgs3 can anyone help, im starting to run out of time with this problem Aug 29 03:29:21 mr6: i undertood, thanks Aug 29 03:29:23 =) Aug 29 03:30:04 token expiration works fine to my problem Aug 29 03:49:12 What is the proper way to add an overly to a custom surface view. I put a surface view and image view in a frame layout. The screen is dark. I looks like the surface view is overlaid by something. Any idea? Aug 29 03:49:40 hey, i have an EditText on my layout that is stealing focus when I activate the activity. in the XML, there is no Aug 29 03:49:50 it seemed to start when I put everything inside a scrollview Aug 29 03:50:00 any ideas on how to disable the initial focus? Aug 29 04:03:04 What is the best method of laying out and setting up the main activity, if it is going to implement an action bar with tabs, where one of the tabs is supposed to layout a title list and detail frame (like in the developer guide)? I am can get the tab selector to work with loading out one of the fragments, but crashes if I instantiate and replace two fragments (from two framelayouts sitting Aug 29 04:03:05 in the main.layout) Aug 29 04:21:07 if im not using an ide, is it safe to change the project details(package and project name, target platform etc) in the manifest after i generated it with "android create project" from terminal, or are there some other hidden files which contain these details or something Aug 29 04:25:09 Is setContentView a call to avoid calling repeadtly? (Assuming resources have been handled and recycled) Aug 29 04:27:00 can I add an item to the end of a Spinner dropdown that is NOT in the adapter? Aug 29 04:27:09 I want to add something like Add New... Aug 29 04:27:24 that I can use to add new items via a dialog Aug 29 04:41:47 HorizonXP you could always add it as the last item Aug 29 04:43:56 lasserix: yeah, that's what i'm doing now Aug 29 04:44:06 i already had overridden the ArrayAdapter Aug 29 04:44:12 i'm going to chuck it into there Aug 29 04:44:16 i think this will work Aug 29 04:44:19 bit hacky, but meh Aug 29 04:44:33 i have an idea one sec Aug 29 04:46:10 Oh this may not apply, but if you use an edit text with add button at top, and format the same dimensions as the list view underneath Aug 29 04:46:21 you can have the edit text hint "add new item as..." Aug 29 04:46:25 so it is intuitive Aug 29 04:48:20 *spinner i mean Aug 29 04:50:34 lasserix: hrm... yeah, not sure it applies in this instance, but that's a good suggestion Aug 29 04:51:10 Yeah too much coding tunnel vision, heh Aug 29 04:51:53 lol Aug 29 06:12:18 how do can you wrap an edittext while keeping it singleline? like the defaul sms app? Aug 29 06:16:24 Is there a logical and/or fundamental reason Android does not include constructors which allow for passing a default style resource ID? Aug 29 06:17:11 Passing a theme attribute ID which points to a style is only marginally useful and it seems like the latter could prevent much hackery. Aug 29 06:18:15 hi Aug 29 06:18:51 is there any way to send audio stream in call instead of mike through playing some file Aug 29 06:19:06 no Aug 29 06:19:18 can it be achieved through NDK Aug 29 06:19:39 no Aug 29 06:22:00 JakeWharton: what api / technique do you guys use to communicate with the reader? not interested in card readers, but other sensors Aug 29 06:22:09 through the headphone jack, that is Aug 29 06:22:38 whatever the normal audio streaming API is Aug 29 06:22:52 hm, ok Aug 29 06:23:09 thx Aug 29 06:24:01 i'm pretty sure that code hasn't been changed since Android 1.1/1.5 Aug 29 06:27:41 i saw this and thought it should work for android also http://shakaon.net/ Aug 29 06:27:54 need to find out more about the electrical interface Aug 29 06:28:28 what circuitry is in these kinds of things Aug 29 06:31:01 it's just stream processing Aug 29 06:31:13 get someone to record a WAV, convert it to bytes, and figure out the protocol Aug 29 06:31:26 or just decompile their app and look at the code that does the conversion Aug 29 06:31:45 getting the 1s and 0s is the easy part Aug 29 06:32:47 Is it possible to stop lint warning about "NewApi" problems, when the areas in question are incased in an Api specific if statement? Aug 29 06:33:14 use the @TargetApi annotation Aug 29 06:34:03 Fair enough :) I'll do that Aug 29 06:34:49 What is the proper way to add an overly to a custom surface view. I put a surface view and image view in a frame layout. The screen is dark. I looks like the surface view is overlaid by something. Any idea? Aug 29 06:55:56 saludos Aug 29 06:56:09 <[emil]> I am trying to build a twitter app in android. in https://dev.twitter.com/apps/new, what am i supposed to write? It is a simple app that allows ppl to get and post tweets. Aug 29 06:56:31 <[emil]> I mean what am I supposed to write in callback url? Aug 29 06:56:37 you want us to tell you how to write a twitter app? Aug 29 06:57:05 [emil]: just wait for the 1.1 api... Aug 29 06:57:31 <[emil]> No. what does that callback field mean? Aug 29 06:57:45 GL... Aug 29 06:57:45 lol Aug 29 06:58:01 i have a toddler that sounds just like [emil] :) Aug 29 06:58:26 I have a problem with screen rotation... I have a fragment pager (using support package) and menu item for refreshing fragments content (calling onResume method). It works fine until the screen is rotated. Any idea why? Aug 29 06:58:27 http://lmgtfy.com/?q=callback Aug 29 07:00:14 http://pastebin.com/TAbVGAnr the code, line 92 is the refresh from menu. Aug 29 07:14:17 hey all... can someone tell me if requestLocationUpdates() works when the device is "sleeping" (i.e, the screen is off) or do I just need to set periodic alarms to record the location? Aug 29 07:36:42 http://stackoverflow.com/questions/6069122/camera-orientation-problem-in-android im having this problem, is there any known fix/workaround for it? Aug 29 07:37:09 picturestaken in portrait mode will rotate 90 degrees, i want to avoid that Aug 29 07:38:02 eSatsu: my friend works at a largish seattle startup that does a bit with the camera; they actually maintain a service/db of device inconsistencies which the app queries Aug 29 07:39:11 if (model foo) rotate 90' Aug 29 07:39:42 oh okay, thanks. is this db available somewhere? Aug 29 07:39:51 no :( Aug 29 07:40:15 and of course they blacklist certain devices; not sure if through play or otherwise Aug 29 07:40:45 i think the functionality is completely disabled the rest of the app works, so rethinking its not through play Aug 29 07:41:02 camera functionality, that is Aug 29 07:43:59 Hey guys. When you register as an Android developer, you need to enter a credit card number Aug 29 07:44:08 i'm talking in respect to paid apps especially Aug 29 07:44:17 can you change that credit card number later on? Aug 29 07:44:23 in case you wanna use another one... Aug 29 07:45:25 thus making google transfer your income on another card than the one you initially entered Aug 29 07:45:25 ? Aug 29 07:47:45 hi I have android app and for preparing to deploy would like to give professional touch like author details, license, sign it etc. where can I get guidance on it ? Aug 29 08:10:14 guys i have a little app thats not localized. i only have one values folder with the standard strings. but when i upload the apk it says that the app is localized for lots of languages. anyone know where i can change these settings? Aug 29 08:11:34 question on "repo sync": If I'm on a "git branch" inside say frameworks/base, repo sync _forces_ a check out of a different branch -> and I'm forced to checkout back, thus bumping the file timestamps -> recompilation is necessary for a lot of code. Is there a way to sync without this branch switch? Aug 29 08:48:08 does "file:///" suppose anything? how can I use it to refer to /mnt/sdcard/etc.... Aug 29 08:48:08 ? Aug 29 08:51:37 Sicp: don't hardcode /mnt/sdcard at least. You don't really know where the sdcard is. Other than that, if you have the path, just prepending "file://" is probably going to make it a working URL, although any spaces and special chars should be hex-converted Aug 29 08:51:47 there's probably a method in Url class for making a file URL out of a path, or at least I hope there is. Aug 29 08:54:22 Maybe: Uri.fromFile(File foo) Aug 29 08:54:43 It's a real bummer that the java.net.URL class is insane Aug 29 08:54:48 everybody had to reinvent it Aug 29 08:55:34 its prime problem is that url1.equals(url2) results in http requests Aug 29 08:56:19 there are few to none real-world applications that want this. Aug 29 09:00:32 Actually I can't find the code that would trigger this behavior anymore. Maybe java.net.URL is different these days, or maybe I'm not looking at the right place. Aug 29 09:04:35 Ah, here it is: it does at least DNS query according to this: Two hosts are considered equivalent if both host names can be resolved into the same IP addresses; else if either host name can't be resolved, the host names must be equal without regard to case; or both host names equal to null. Aug 29 09:05:28 Maybe I misremember because I only heard it explained to me once that it does actual http requests to determine equivalence. Still, even DNS lookup is too much for most applications to bear. Aug 29 09:07:39 didn't see this coming, already http://www.marketwatch.com/story/apple-win-whacks-android-resale-prices-2012-08-28 Aug 29 09:08:06 Hmm. I think Android doesn't do this at least. The host equivalence is simply name-based. Good, because resolving the name did not make sense to begin with due to virtual hosting Aug 29 09:08:39 ahh; nexus7 16gb arrive to our country - 450usd :o Aug 29 09:09:55 this might be a good time to buy a new android phone, assuming that means jack shit over here Aug 29 09:10:49 I already have my sgs2, but perhaps the gf might acquire a sgs3. She keeps on being nokia faithful despite the crap they produce, though. Aug 29 09:11:24 i have my moto milestone; still not found replacement for it :) Aug 29 09:11:35 i have my original moto droid a855 :) Aug 29 09:12:23 in my country only was milestone available :) Aug 29 09:12:36 ah, are they the same ? Aug 29 09:12:37 when finally it sounds like she might be interested in android, along goes some motherfucking jolla who claims that one day when they release some phone it might have some level of android compatibility. And because it's sort-of nokia, she's of course interested in that Aug 29 09:13:06 I chide her and tell her how unrealistic it is that the android compat will work properly, and the fact you need two frameworks running simultaneously in the phone -- most likely -- just means inferior experience for both afterwards Aug 29 09:13:20 not to mention that the god damn thing is just vapour at this point Aug 29 09:13:48 g00s: almost; milestone (a854) has locked/signed parts in rom; and its for gsm Aug 29 09:14:25 alankila: yeah, screw that Aug 29 09:15:36 i would wait for the holidays to see iphone5, wp8, and probably the next android … since they often come out before the holidays Aug 29 09:16:22 oh, its almost sep. in the us they want the holidays to start now probably :D Aug 29 09:16:36 i'm planning on pikcing up an android phone for $150 (prepaid, not outright) just before christmas Aug 29 09:18:02 what's the latest/best application to root android emulator eclipse/ubuntu? Aug 29 09:18:28 wut, does it need rooting at all. how about just 'adb shell' and 'su'? Aug 29 09:20:15 alankila: i want to install apk's by program, without permission dialog. I understood that using Root.apk allows that. Aug 29 09:26:33 opariti: hmm. Well, whatever you mean by that I am not sure, but 'adb shell' appears to dump a root prompt on emulator. Sufficient for installing programs, surely? Aug 29 09:31:15 alankila: here is the use case - I have an application which downloads an apk file, then it launches it through startActivity. Android is installing it by asking the user the permission through a dialog box. Then it does the same to 'open' it and ... it goes normally. Only that I want to avoid these dialog boxes. I understood that if the calling app is executed on a rooter device - here is the emulator - the permission dialog bo Aug 29 09:32:02 you were cut, but I see what you want now. Aug 29 09:32:52 I imagine finding some way to dump the file under /data/app suffices, and root permission can indeed achieve that. Not sure if there will be issues though. Aug 29 09:34:12 can't I save a file to internal storage? Aug 29 09:34:28 there is no Environment.getInternalStorage method Aug 29 09:34:50 alankila: good point. I've downloaded the apk file both on /mnt/sdcard/ and on /data/data/appsxxx/files/. In both cases I'm asked to validate Aug 29 09:36:56 alankila: therefore, I must test the Root.apk installation. I did adb install Root.apk, no error, however I don't find it in the installed apps under Settings/Apps Management. What am I doing wrong? Aug 29 09:37:10 In my app i have two action bar tabs with two fragments. I don't understand why when i rotate the screen my fragments are created twice. I manage the activity rotation in this way, for re-selecting the fragment: http://pastebin.com/733HRLQC Aug 29 09:40:11 this airqualityegg thing is so awesome; i can't wait to get one Aug 29 09:40:46 seems like a nice android app for this would be great Aug 29 09:43:42 String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); File mImageFile = new File(Environment.getExternalStorageDirectory().getPath()+"/DCIM/"+"FoodLog/"+File.separator+timeStamp+".jpg"); mImageFile.getParentFile().mkdirs(); Aug 29 09:43:58 why does this fail to create the directory/directories? am i doing something wrong? Aug 29 09:45:29 eSatsu: had the same problem, you must check if your ExternalStorageDirectory is mounted first, then mount it Aug 29 09:47:00 oh, thanks! Aug 29 09:48:54 eSatsu: this statement if(Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())){// do your stuff here} Aug 29 09:49:03 btw after u checked, u can use getExternalStoragePublicDirectory(Environment.DIRECTORY_IMAGES) or directory_dcim, dunno Aug 29 09:50:12 yes, directory_dcim (but looks ur app store here, why?) Aug 29 09:50:23 opariti: what about the else{ part Aug 29 09:50:44 in else handle error for u cant write Aug 29 09:51:21 external storage has many states (its described in environment) like read only, not mounted, etc Aug 29 09:51:26 eSatsu: well, there's an error in that case. but one you've mounted the externalxxxxxxx then you'll have forever. you mount it using adb Aug 29 09:52:03 Hello, can someone help me please? Aug 29 09:53:05 eSatsu: do like here: http://stackoverflow.com/questions/10294808/android-mount-the-filesystem-with-write-permission Aug 29 09:53:24 Liquidhalo231: erm... no, nobody can help you Aug 29 09:53:39 unless, you know, you actually *ask* for help with something? Aug 29 09:53:51 hi, i've seen so many different opinions about how to connect to your own api server, using a service, asynctasks, Thread but is there a documented way from android? Aug 29 09:54:14 er, is this really the probem? I can create the file if the folder is there, but i cant create the folder Aug 29 09:54:33 eSatsu: i did the same Aug 29 09:54:51 eSatsu: anyway, up to your judgement ;-) Aug 29 09:55:01 well i have an old port of duck hunt that was pulled from the marketplace. Is there anyway to remove the ads from it as it is really hard to play with a large ad in the top left of the screen, no there is no paid version Aug 29 09:55:37 i am a newbie developer Aug 29 09:56:24 opariti: i cant really do that programmatically to someone elses phone, can i Aug 29 09:56:34 ill add that check though Aug 29 09:58:45 eSatsu: you don't try to mount the device if it's not there - you show the user an error, saying there's no storage available so you can't save the file Aug 29 10:00:43 finding it weird though that i can create a file but not a folder Aug 29 10:02:25 eSatsu: odd that you are using File.separator there, and then also / simultaneously Aug 29 10:03:02 oh is that the issue possibly? Aug 29 10:03:12 no, probably not Aug 29 10:05:15 can anyone help with my issue? Aug 29 10:07:10 wtf? my gignerbread emulator has no top bar (the one with clock, signal, notifivations, etc.) and network in unreachable. o_O it worked yesterday :/ Aug 29 10:07:36 Pitel_laptop: restart it Aug 29 10:07:47 Leeds: I did, twice. Aug 29 10:08:21 i suppose my laptop is too slow, and it somehow times out, according to logcat :/ Aug 29 10:08:21 third time lucky? nah... I've seen the emulator get into a bad state before, but rebooting (the emulator) normally helps, sorry Aug 29 10:08:37 Liquidhalo231: are you *actually* a developer? Aug 29 10:09:06 No i'm just starting out Aug 29 10:09:12 meh, anyway, don't think many people are going to give advice on how to rip ads out of someone else's app, even if it is an old and abandoned one Aug 29 10:09:14 start with your own code Aug 29 10:09:39 this duck hunt thing is open source so i thought i'd take a crack at it Aug 29 10:10:56 ah, you didn't say that... still, start with your own code Aug 29 10:11:21 guys, how to use TextSwitcher in widget? Aug 29 10:11:40 i know a little about xml and html coding just not for android apps Aug 29 10:12:06 ok, so start by learning Java Aug 29 10:12:29 also, xml and html aren't coding, so unless you know some actual programming languages... start by learning to code Aug 29 10:12:46 i know python and ruby Aug 29 10:12:57 but only a basic amount Aug 29 10:13:52 you probably won't enjoy Java that much then... Aug 29 10:14:20 yeah, i've tangled with java, it wasnt pretty last time Aug 29 10:15:23 guys, how to access to elements, like findViewById in Widget? Aug 29 10:16:27 what's the strategy when GL ES code works on the emulator but not on the device? is there some kind of frame inspector like gDEBugger or PIX? Aug 29 10:16:47 I just got my first real Android device Aug 29 10:16:57 do you have some odd device? Aug 29 10:17:07 no, it's a Nexus 7 Aug 29 10:39:14 I see folders src and gen in my Eclipse Package Explorer. I assume that if I want to add new classes that I need to add the to src folder? Aug 29 10:44:16 I have android app which I signed using eclipse and local keystore and published to my G1. It installed but when I launched it it never asked for any permissions. Aug 29 10:45:09 hello dudes, if i have a list at left , and at right a list with checkboxes Aug 29 10:45:24 how can i have crud for these both ? Aug 29 10:45:44 my only idea is an action bar only.. Aug 29 10:46:31 http://www.everythingabouttablets.net/wp-content/uploads/2011/10/ics.email_.jpg Aug 29 10:46:33 something like this Aug 29 10:46:41 but both left list crud / and right Aug 29 10:48:13 to publish to google play all I need to add to manifest is com.android.vending.CHECK_LICENSE ? Aug 29 10:48:54 how to bind click listener in widget, If i need more than one button? Aug 29 10:49:07 I need to create different intents in onUpdate() method? Aug 29 10:49:15 one intent and setAction per button? Aug 29 10:58:49 this guy would know http://news.ycombinator.com/item?id=4447408 Aug 29 10:59:03 Buxton has written some good books on UI Aug 29 11:00:15 http://www.youtube.com/watch?v=Z486Zvv6wAc Aug 29 11:00:48 have fun :) Aug 29 11:00:54 <[twisti]> hi, i cant figure out how to build my android project with ant. i set it all up the way im supposed to, and it runs fine, but it doesnt include any of my actual code. it includes libs, resources, xml files, it signs, but none of my own classes are included at all. ideas ? Aug 29 11:01:01 doesn't look very legit Parhs :) Aug 29 11:01:30 hm i though it was Aug 29 11:02:16 [twisti]: maybe your code was optimized out as a NOP because it didn't have any side effects XD Aug 29 11:02:27 <[twisti]> it was not Aug 29 11:02:37 <[twisti]> oh, and i dont run proguard Aug 29 11:12:03 guys, ive got 4 drawable files as normal (xdpi, hdpi, mdpi, ldpi) , if i wanna add an imge with the same size for all, do i have to add it in each one? Aug 29 11:12:49 i meant 4 directories Aug 29 11:15:40 anybody alive here? Aug 29 11:18:15 taljurf: depends on whether you mean same size in pixels or same size in dip. Aug 29 11:19:09 HDroid in pixels Aug 29 11:19:25 the exact same source Aug 29 11:21:36 taljurf: there's nodpi for that Aug 29 11:21:47 is there a build log for apps? want to see if there's any problems compiling an XML file Aug 29 11:22:25 HDroid: so shall i create a new drawable dir and place the image inside? Aug 29 11:22:33 Yeah, drawable-nodpi Aug 29 11:22:51 HDroid: and that should work for all? Aug 29 11:22:55 Yep Aug 29 11:23:10 HDroid ill try it now Aug 29 11:24:52 What are the naming conventions of activities in Android? I'm creating an activity that is only started upon the first run of the app, would it be okay to name it "FirstRunActivity"? Aug 29 11:26:04 xarxer: works for me :P Aug 29 11:26:27 That's pretty much the scheme I use, in addition of having a separate subpackage for activities. Aug 29 11:26:34 I.e. com.myapp.activities Aug 29 11:26:48 HDroid: Is that for your own sake or for some higher purpose? Aug 29 11:26:59 Just makes it easier to navigate. Aug 29 11:27:04 I know the programming bit but I try to get hold of the conventions :) Aug 29 11:27:26 I split things up in subpackages a lot, makes it easier for me. Aug 29 11:28:09 xarxer: the iosched app has good conventions Aug 29 11:28:14 My most recent app has about 25 subpackages, average 3-4 classes or interfaces, if I didn't split that up I'd have a tree with ~100 classes. Aug 29 11:29:15 And also, should one use the default "MainActivity" or is it a "good" idea to rename it to the app name? Aug 29 11:30:14 Main or Home works for me, if it's a Main or Home-centric app and the homescreen doesn't have a more precise function. I don't see the point of adding the app name, since you know you're in the app already, it's just redundant information. Aug 29 11:30:34 Talking class names now, not titles or labels or anything. Aug 29 11:30:39 <[twisti]> can anyone think of a place for me to get help with my problem where people know about building android things with ant ? im kind of at a loss here, googled everything i can think of, but its just not working Aug 29 11:30:51 HDroid: exactly.. thanks a bunch :) Aug 29 11:31:08 [twisti]: so it builds with eclipse, but not ant ? Aug 29 11:31:13 <[twisti]> yes Aug 29 11:31:21 <[twisti]> but obviously those two are totally unrelated Aug 29 11:31:31 <[twisti]> since eclipse doesnt use the build.xml file at all Aug 29 11:33:28 <[twisti]> theres no errors or anything either Aug 29 11:33:39 <[twisti]> it just outright doesnt put my .class files into the classes.dex file Aug 29 11:33:56 <[twisti]> they get compiled fine, and i checked, they really do get compiled Aug 29 11:34:02 <[twisti]> and dex throws no errors either Aug 29 11:34:18 <[twisti]> and i made a new build.xml just in case i messed mine up somehow, same problem Aug 29 11:34:37 <[twisti]> only thing left i can think of is that i somehow corrupted my android sdk Aug 29 11:34:49 <[twisti]> i cant imagine how though Aug 29 11:43:08 In standard UI layout, when you open an app there is a small bar on top that says your application's name. Is it possible in the app list to have one name for the application, and another for the bar in the application's UI? Aug 29 11:47:35 diki: Im not sure but that bar is known as the ActionBar Aug 29 11:49:18 When I'm debugging with a hardware device, is the SharedPreferences cleared every time I run my app? Aug 29 11:49:35 diki: http://developer.android.com/reference/android/app/ActionBar.html#setTitle%28int%29 Aug 29 11:50:19 diki: sry , http://developer.android.com/reference/android/app/ActionBar.html#setTitle%28java.lang.CharSequence%29 Aug 29 11:51:08 Both an activity and an application can have an android:label property, I believe the application label is the one that's used for the app list, while by default the activity's label is used for the title (at least in the old non-actionbar titlebar). Aug 29 11:51:33 It's just that the default templates set all to @string/app_name in the manifest. Aug 29 11:53:42 diki: the bar displays whatever you tell it Aug 29 11:54:00 hey guys Aug 29 11:54:02 and the bar is only an action bar if you are using the action bar Aug 29 11:55:20 i have written a class extending edittext and have overridden onkeyPreIme() method to get the keyboard event . The problem is that now i am on getting the onclick and onkey event for this edittext Aug 29 11:55:23 please help Aug 29 11:56:09 the onclick doesn't work the first time but works for rest of the times Aug 29 11:56:34 don't know why the event is not thrown for the first time Aug 29 11:58:29 Okay, might be a silly question, but when I'm using the Eclipse wizard to create a new Activity everything goes well, but the activity itself shows up as an icon on my device. I guess this has something to do with the manifest file? Aug 29 11:58:56 yes Aug 29 11:59:01 it add an intent filter Aug 29 11:59:09 I suspected as much.. Aug 29 12:00:16 So I just remove this: "" ? Aug 29 12:00:42 no, remove the entire intent filter Aug 29 12:01:00 ah, okay Aug 29 12:01:12 Thanks! Aug 29 12:02:29 Hey guys, i`m making an survey app. I want an hint/tip how to make questions. Is it possible to have one activity, which i call with different parameters(through bundle). Basically i`d have class called Questions, and i`d call it whole time with different params(question, title, possible answers,...), then dynamically generate question and possible answers from database, after user would Aug 29 12:02:30 pick his answer and click next i`d call class Questions again with different parameters. Aug 29 12:02:56 I just read bout TabHost, but that wouldnt suit me, since there could be multiple questions, any other idea someone has, thanks in advance ;o Aug 29 12:03:09 blh: sure, why not Aug 29 12:03:38 will I be possible to implement next/back buttons? Aug 29 12:03:52 it would Aug 29 12:03:58 would be a little tricky Aug 29 12:04:52 what i`m thinking is connecting to my database, fetching some data, making an Object, and then carry that object whole time. Aug 29 12:05:16 just make it available to all your activities Aug 29 12:05:21 yea Aug 29 12:06:04 so it isnt odd that the Class that extends activity is calling itself, several times ;o Aug 29 12:06:21 no Aug 29 12:06:38 just make sure you only have one instance of the activity at a time Aug 29 12:06:55 and your not just spawning activities like mad and leaving them around Aug 29 12:07:52 but with clearing them, is it possible having "back" feature? ;o Aug 29 12:08:01 why wouldn't it be Aug 29 12:08:21 i was thinking i`d clear whole stack of activities once user comes to conclusion and finalizes it Aug 29 12:08:30 that is not scalable Aug 29 12:09:18 and it doens't really make your job any easier Aug 29 12:09:31 ah, ok, i hoped it would :| Aug 29 12:10:21 how could i implement the back feature then, it`s possible with just reading it from the Object, but then it wouldnt remember the history; would not remember what user had picked from checkbox for example Aug 29 12:10:48 you have to maintain that state information Aug 29 12:11:05 you need anyway... i assume you need the results at the end Aug 29 12:11:07 that could be done through the object aswell, truth :o Aug 29 12:11:20 ah, makes sense yeah lol Aug 29 12:11:48 thank you very much, just wanted to make sure before i get into writting anything ;) Aug 29 12:14:29 before i try homebrewing my own caching scheme.. anyone got a good read regarding the use of caching in a webview? Aug 29 12:15:06 Hello. How should I proceed if I want to use the DownloadManager, but still support older API version? I have an alternate (not-so-nice) way to perform the same task on older devices, but I'd like to use the DownloadManager if available... Aug 29 12:15:59 Lachezar: yuo can check for the android version at runtime and use only the code that's available.. Aug 29 12:16:21 Lachezar: use as target the highest android version you support.. Aug 29 12:16:30 Lachezar: and then enable those features with a runtime check Aug 29 12:16:46 Does anyone know of any tutorial (or better, android dev page) about file transfer via internet/3g? Aug 29 12:17:49 xarxer: using what protocol? http? Aug 29 12:18:27 wongk: Preferably Aug 29 12:18:45 tapas: Well... I would do that, however I normally end up with failed class loading (due to dependency on missing class). Aug 29 12:18:48 xarxer: here's a start: http://android-developers.blogspot.com/2011/09/androids-http-clients.html Aug 29 12:19:02 I have android app which I signed using eclipse and local keystore and published to my G1. It installed but when I launched it it never asked for any permissions. Aug 29 12:19:03 diki: i think per default the title bar displays the lable of the activity Aug 29 12:19:06 wongk: Thanks Aug 29 12:19:06 to publish to google play all I need to add to manifest is com.android.vending.CHECK_LICENSE ? Aug 29 12:19:14 diki: if there's no label for the activity the app name is taken Aug 29 12:19:26 tapas: Any Android-specific way to do that other than an interface + 2 implementations and run-time implementation choice? Aug 29 12:20:02 Lachezar: well don't have to create an interface and two implementations. if it's just little differences you can just do that inline in the code.. Aug 29 12:20:15 s/well /well you / Aug 29 12:20:27 tapas: If I do that I normally end up with NoClassDefFoundError. Aug 29 12:21:02 Lachezar: there once was a good blog post about it.. Aug 29 12:21:19 tapas: I'd be a happy camper if you point it out. Aug 29 12:21:35 Lachezar: looking.. Aug 29 12:21:36 tapas: 'Cause that's what I was looking for. Aug 29 12:21:48 it was written by a regular here.. hmm, was it SimonVT ? Aug 29 12:21:53 hello all Aug 29 12:21:56 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Aug 29 12:22:19 it was :D Aug 29 12:22:27 how to put some Method in Activity Aug 29 12:22:34 by intent Aug 29 12:22:42 Scroll down to the code example Aug 29 12:22:58 bingelsc: you mean you want to have different methods executed depending on the intent extras? Aug 29 12:23:13 bingelsc: anyways you can always get the starting intent with getIntent() Aug 29 12:23:29 and the extras with getInten().getExtra() or something along that line.. Aug 29 12:23:47 yes Aug 29 12:24:50 like intent.put("foo",new SomeClass(){ @Override public void somemethod(){int iint=0}}) ? Aug 29 12:24:55 can i do that? Aug 29 12:25:02 No Aug 29 12:25:04 bingelsc: nope :D Aug 29 12:25:19 i guess if your class was serializable.. Aug 29 12:25:20 parcelable cant support overriding methods yes? Aug 29 12:25:28 hi, does the team still do office hours? Aug 29 12:25:53 seriliazible support overriding? Aug 29 12:26:01 "onfly" ? Aug 29 12:26:29 guys? Aug 29 12:27:50 how i can put in activity by intent method? Aug 29 12:27:53 bingelsc: i don't think so Aug 29 12:28:13 bingelsc: different question: why do you want to do that? Aug 29 12:28:17 SimonVT:that was useful, thanks. Aug 29 12:28:41 tapas activity must call method Aug 29 12:29:18 and getting by getIntent().get.... one class Aug 29 12:29:31 bingelsc: if the activity is in the same app then there's different ways to do that.. Aug 29 12:29:40 some "public static abstract ClassWithMethod" Aug 29 12:29:54 SimonVT:While the uses-sdk thing is helpful, it seems to break some margin values I've setup for a specific element, which break under Holo. Aug 29 12:30:01 SimonVT: tapas: 10x both. Aug 29 12:30:14 bingelsc: e.g. have a global singleton holding a reference to the base class and the calling activity puts in a derived object Aug 29 12:30:16 diki: That's the point of targetSdk Aug 29 12:30:29 static object Aug 29 12:30:31 bingelsc: the called activity then calls the method through that reference and polymorphism does its thing.. Aug 29 12:30:43 but i hope i can do that with intents Aug 29 12:30:46 Even though they changed to holo, it doesn't break old apps Aug 29 12:31:05 SimonVT:I've set target to 16(which should be ICS 4.0.3) and minsdk to 8 Aug 29 12:31:30 But I want to be sure that element position is the same under all Android versions Aug 29 12:32:16 bingelsc: if you can skip the "inline" version for creating an anonymous derived type and make it a "proper" class it itself could implement serializable or parceable Aug 29 12:32:29 diki: Then you need to fix your app Aug 29 12:32:30 bingelsc: and then you could serialize it through the intent Aug 29 12:32:49 bingelsc: anyways, when i asked you why you need to do that you just answered with "because i have to do it" Aug 29 12:32:55 bingelsc: which is not very helpful :D Aug 29 12:33:31 Guys, please help! How to make the same widget sizes like in builtin widgets, like here: https://dl.dropbox.com/u/28057478/5556Android4_2012-08-29_16-32-21.png Aug 29 12:33:34 can't understand Aug 29 12:33:36 :(((( Aug 29 12:33:51 SimonVT:Perhaps layouts are not my specialty, but it seems to be working great otherwise. Aug 29 12:33:51 I need same box (4x1) and same background sizes like in two top widgets Aug 29 12:34:18 In fact, all elements are the same, except a button I've positioned in a Dialog. Aug 29 12:34:38 is it possible? or how to do that would it work? http://pastebin.com/7kgGWdWn Aug 29 12:35:45 SimonVT: Hmmm... I have to support API 4 (legacy). Does that mean, that I have to extract (somehow) the API 9 code? Aug 29 12:35:51 bingelsc: like i said. make a non anonymous class out of it and make it implement serializable? Aug 29 12:36:08 tapas i try setting generated serializble version ID Aug 29 12:36:17 Lachezar: When you need to abstract the code out into static classes Aug 29 12:36:25 s/When/Then/ Aug 29 12:36:37 in "new Some.." body Aug 29 12:37:08 *"new Some..()" Aug 29 12:37:18 SimonVT: If my class refers to a class, that refers to a missing class will it work? Aug 29 12:38:10 Lachezar: Yes Aug 29 12:38:14 Lachezar: Look at the support library Aug 29 12:38:18 They use this pattern heavily Aug 29 12:41:08 tapas no affect Aug 29 12:41:28 Parcelable encountered IOException writing serializable object Aug 29 12:42:26 tapas you mean i can't do overriding methods? Aug 29 12:42:36 when do new Aug 29 12:43:35 bingelsc: class foo implements Serializable { .... @Override .... } intent.putExtra("foo", new Foo()); Aug 29 12:43:52 s/class foo/class Foo/ Aug 29 12:44:07 SimonVT: Yes, seems I'll have to actually use other classes, because I now get VeryfyError on my class at startup. Aug 29 12:44:27 how to disable in mIRC beeping computer's speaker? Aug 29 12:44:54 google that Aug 29 12:45:04 thanks Aug 29 12:45:08 :) Aug 29 12:45:17 i bet it's something with BELL Aug 29 12:45:26 i forget about google Aug 29 12:45:35 http://lmgtfy.com/?q=how+to+disable+beep+in+mirc Aug 29 12:45:39 oh yeah that happens to a lot of people Aug 29 12:49:52 So this is how my dialog looks like under ICS without any margins, http://i.imgur.com/SwLe4.png and this is how I would like to position a button, http://i.imgur.com/r63e0.png Aug 29 12:50:49 hi Aug 29 12:51:32 hey i have a layout which consists of an edittext followed by a listview and a footer Aug 29 12:51:57 when i click on the edittext the footer scrolls up and overlaps with the listview Aug 29 12:52:07 how can i avoid this Aug 29 12:52:15 i wan't the whole view to move up Aug 29 12:53:38 SimonVT: Weird... Now that I refactored out the downloading I get _NO_ warnings and errors for API mismatch?!? Aug 29 12:55:29 SimonVT: I did not need to add @TargetApi() anywhere... Aug 29 12:56:59 SimonVT: Hmmm... Seems it will NOT make API checks against static methods... Making the method non-static throws in the API requirement error. Aug 29 12:57:36 * Lachezar is feeling not well... Manual rebuilding shows the errors... Aug 29 12:59:30 Lachezar:you have it easy :). I have a lot of work left to do... Aug 29 12:59:43 Like building a nice arm-toolchain FOR Android. Aug 29 13:00:06 hi diki Aug 29 13:00:32 diki: You want to ditch your laptop and start using an Android Tablet as development station? Aug 29 13:00:32 hey SimonVT Aug 29 13:01:03 Lachezar:No, I want to have a development environment wherever I go. Though I have a phone, not a tablet. Aug 29 13:01:08 can you guys help me out with the issue i have mentioned above Aug 29 13:01:29 For instance, I was away for a while and found out my app, which uses a JNI library had a memory leak, I was unable to fix that. Aug 29 13:01:34 sunny_slls: It's not easy to fix that... Try setting minHeight on the list Aug 29 13:01:53 ok Aug 29 13:02:02 diki: do it on a remote computer :) Aug 29 13:02:08 I'm thinking of writing an app which involves file transfer from phone to PC. Would it be possible for the phone and PC to keep track of each other (IP addresses, online status etc.) without a server doing it for them? Aug 29 13:02:09 [14:04] what i`m thinking is connecting to my database, fetching some data, making an Object, and then carry that object whole time. Aug 29 13:02:09 [14:05] just make it available to all your activities Aug 29 13:02:22 when you said making it avaliable to all activities; i was thinking id connect to database only once, create the object and then carry it around Aug 29 13:02:32 but as far as i remember, you cant carry object through intent? Aug 29 13:03:00 blh: use a static variable, or a singleton class, or something. Aug 29 13:03:26 blh: This is a candidate for a custom Application sub-class. Aug 29 13:03:42 Since all activities have the same application, that can be yours. Aug 29 13:03:56 :o Aug 29 13:03:58 i`ll take a look Aug 29 13:04:02 hi lov Aug 29 13:04:04 blh: I would think twice about doing that for DB though. Aug 29 13:04:10 diki: every once in a while, every developer thinks "You know what would be great? Having an IDE on my phone." Aug 29 13:04:17 And then after five minutes they realize "this is not great at all :(" Aug 29 13:04:33 mind explaining why Lachezar ? :o Aug 29 13:04:39 have ide on phone Aug 29 13:04:41 its great Aug 29 13:04:58 for do small fixes Aug 29 13:04:58 xarxer: possibly Aug 29 13:05:02 blh: DB is a _VERY_ heavy object. Keeping it alive when not using it is a waste of resources. Aug 29 13:05:10 lov: What are you thinking? Aug 29 13:05:13 xarxer: you'd need some sort of discovery mechanism though Aug 29 13:05:19 you mean AIDE? Aug 29 13:05:31 bingelsc: I mean in general Aug 29 13:05:39 I've rarely encountered a fix so small that I wanted to fix it from my phone/tablet, without being able to SSH someplace Aug 29 13:05:49 blh: And your application might have bigger memory foot print, and Android might decide it's best to kill it first when resources are short. Aug 29 13:06:03 http://pastebin.com/7kgGWdWn Aug 29 13:06:03 Lachezar : i`d only connect to the remote database once, fetch all the information i need, fill the Object with the data, and then i`d close the connection. Aug 29 13:06:18 can i relize that? Aug 29 13:06:20 http://pastebin.com/7kgGWdWn Aug 29 13:06:23 xarxer: I'm not really sure what to suggest as far as discovery. If you're feeling saucy, you could use an NFC device on your computer to broadcast its ip to any device that connects to it Aug 29 13:06:46 xarxer: otherwise, you'd need to already be connected via bluetooth, or you'd need some mechanism for the phone/computer to determine what devices were locally available on the network Aug 29 13:06:53 which I'm sure is possible, but I honestly don't know how. Aug 29 13:06:55 i wonder if there's a way to determine if databas has a table with a given name and if so if it has a column with a given name Aug 29 13:07:12 xarxer: if you keep them constantly pinging each other, you could maintain a constant connection except if both change IPs at the same time... Aug 29 13:07:21 tapas: absolutely. Select * from table limit 1; does it poop out? Aug 29 13:07:23 blh: That's _NOT_ a good way to do that! Aug 29 13:07:25 :D Aug 29 13:07:34 blh:I've done a similar thing on Windows. My application allocated 700mb of ram for holding around a million entries in memory. Aug 29 13:07:36 blh: Consider pulling all the data from the remote DB into the local DB. Aug 29 13:07:46 lov: ok, i guess yeah, with raw queries.. hmm Aug 29 13:08:06 tapas: That's implementation agnostic. I know that sqlite has some mechanisms you can use to query this kind of info directly. Aug 29 13:08:22 well I say implementation agnostic but limit is done differently on different dbs Aug 29 13:08:32 blh: Keeping data for a long-run is supposed to be kept in the local DB. Aug 29 13:08:32 lov: also the table might be empty.. i guess i get to the tables with: SELECT name from sqlite_master WHERE type='table' Aug 29 13:08:41 you could always have an always false where clause :P Aug 29 13:08:43 go to sql Aug 29 13:08:59 its chan for android developers Aug 29 13:09:02 only Aug 29 13:09:11 Lachezar : One of the option i was thinking of was that aswell ;o Aug 29 13:09:15 bingelsc: Android uses sqlite databases, this is tangentally related. Aug 29 13:09:24 blh: Consider that option seriously. Aug 29 13:09:36 hm Aug 29 13:09:41 okey Aug 29 13:09:50 you can be there Aug 29 13:09:57 Lachezar : The thing is, i have survey creator webpage, where user can create a survey, which writes to database. The user on the android app, would then walk around doing surveys. Thats the basic goal i want to achieve. Aug 29 13:10:19 anybody know how i can realize that http://pastebin.com/7kgGWdWn? Aug 29 13:10:27 blh: ... And occasionally send the survey data back to the server... Aug 29 13:10:27 lov: PRAGMA table_info( your_table_name ); Aug 29 13:10:28 *http://pastebin.com/7kgGWdWn Aug 29 13:10:38 blh:Why not destroy the survery when you are done and fetch a new one when ready? Aug 29 13:10:41 bingelsc: someClassWithMethod needs to be parcelable. Aug 29 13:10:51 lov: it's very sqlite specific, but that's OK in my case.. Aug 29 13:10:57 *survey Aug 29 13:10:59 bingelsc: you generally can't pass raw objects around Aug 29 13:11:05 Lachezar : indeed, yep. Aug 29 13:11:14 you see "new someClassWithMethod(){ @Override}" ? Aug 29 13:11:14 what you can do is have your object w/ run method live in a static variable somewhere and reference it in the other application Aug 29 13:11:21 you could pass a key into a map or something Aug 29 13:11:24 blh: Download the survey data (texts, options, etc.), and upload the survey responses only. Aug 29 13:11:34 i tried do that parcelable Aug 29 13:11:46 but i anyway gotted errors Aug 29 13:11:49 blh: keep both in the Android's SQLite database. Aug 29 13:12:00 bingelsc: if you're creating an anonymous inner class, you can't really do this. Aug 29 13:12:01 if i tried use overriding Aug 29 13:12:10 Lachezar:and compress it as well, to reduce bandwith Aug 29 13:12:17 bingelsc: intents are meant to pass bits of data, not object references. Aug 29 13:12:18 hmmmm Aug 29 13:12:34 wouldnt that be a waste, considering ussualy user on android would only use one survey Aug 29 13:12:44 anonymous inner class ="new someClassWithMethod(){ @Override public void somemethod(){}}" ? Aug 29 13:12:47 i right? Aug 29 13:13:06 correct, you can't pass that in an intent. Aug 29 13:13:25 lov how i can put in intents (to activity) some one method Aug 29 13:13:26 ? Aug 29 13:13:28 SimonVT: I did all of that thing to use DownloadManager, just to find out at the end, that I can not download HTTPS with it! WTF! Aug 29 13:13:30 YOU CAN'T Aug 29 13:13:35 read what I wrote previously. Aug 29 13:13:38 hm Aug 29 13:13:40 its bad Aug 29 13:13:46 I gave you several suggestions to work around this Aug 29 13:13:51 blh: I did not say you need to download ALL surveys. Aug 29 13:13:57 you are more than welcome to read what I already wrote, because I don't want to re-write it 3 times Aug 29 13:13:58 i need handle OnActivityResult Aug 29 13:14:03 in dialog Aug 29 13:14:07 I don't really care :D Aug 29 13:14:24 and to activity puts methods Aug 29 13:14:25 blh: is the use case that one user does one survey on that device and that's it? Aug 29 13:14:28 *method Aug 29 13:14:37 blh: or do you want to download a survey and have multiple responses? Aug 29 13:14:43 2nd option yea. Aug 29 13:14:44 e.g. survey taker walks around with a tablet, has people fill out surveys Aug 29 13:14:48 yep Aug 29 13:14:53 thats the use case i want to achieve Aug 29 13:14:56 ok Aug 29 13:15:04 maybe then Lachezar option would really be best option Aug 29 13:15:13 guys, im trying to use a progressdialog in a fragment, http://www.fpaste.org/ybkm/ , but it's not working (NullPointerException) on line 124 Aug 29 13:15:21 how i can use Activites without they've declaration in Manifest? Aug 29 13:15:25 Yeah, i'd recommend that you download only the surveys that need to be downloaded. Aug 29 13:15:33 bingelsc: you can't. They need to be declared in the manifest, always, period. Aug 29 13:15:55 Then, for the surveys downloaded, in a database store all of the user responses for that survey Aug 29 13:15:59 :( Aug 29 13:16:01 You can probably think of a nice mapping Aug 29 13:16:21 Whenever you have network connectivity, upload the responses to the server and wipe your DB of user responses Aug 29 13:16:31 sounds like a brilliant plan Aug 29 13:16:34 guys, im trying to use a progressdialog in a fragment, http://www.fpaste.org/ybkm/ , but it's not working (NullPointerException) on line 124 Aug 29 13:16:46 java is flexible, but Android it's not Aug 29 13:16:47 :( Aug 29 13:16:51 you're going to have to figure out how to prevent any issues with sending multiple copies of the same response Aug 29 13:17:01 thats what i wanted, and ill add a survey control, that now and then i will check the surveys stored in database, and clear the older ones when the number of surveys is too big Aug 29 13:17:09 amazing, thanks guys Aug 29 13:17:12 bingelsc: you're unwilling to accept the solutions that we provided you. A poor workman blames his tools for his failings. Aug 29 13:17:33 gold words Aug 29 13:17:43 blh: How would you rate my performance between 1 and 10? Are there any other comments you'd like to give? Aug 29 13:19:40 Actually, poor workmen and good workmen blame tools for failures both. It just happens that the poor workmen is sometimes wrong about it. Aug 29 13:20:12 hello all Aug 29 13:20:18 Just because poor workmen wrongly blame tools doesn't automatically mean that only poor workmen blame tools. Aug 29 13:20:25 android is pushing for the use static references,more and more Aug 29 13:20:29 thanks pedant. Aug 29 13:20:45 ill try again Aug 29 13:20:46 ill try again Aug 29 13:20:48 guys, im trying to use a progressdialog in a fragment, http://www.fpaste.org/ybkm/ , but it's not working (NullPointerException) on line 124 Aug 29 13:21:00 That's not pedantry, it's a note of caution about trotting out that quote regularly. Aug 29 13:21:02 help pls? Aug 29 13:21:16 one question. If I define a component android:exported = false but I even define an intent filter - is then die intent filter ignored or the android:exported attribute ? Aug 29 13:21:28 taljurf beacuse pd=null Aug 29 13:21:28 Pinas: neither is ignored. Aug 29 13:21:52 bingelsc: then how should i do it? Aug 29 13:21:54 Pinas: you can have intent filters on elements which aren't exported; they'll just not be valid for intents created outside of your own app. Aug 29 13:21:59 taljurf: you don't initialize pd anywhere Aug 29 13:22:29 omg you do work with fragments Aug 29 13:22:34 wongk: something like ProgressDialog pd = ??? Aug 29 13:22:46 but you dont know about NullPointerException Aug 29 13:22:46 something like that Aug 29 13:22:54 omg its biggest fal Aug 29 13:22:56 fail Aug 29 13:22:56 lov: so when I dont export the component and I send an intent it is actually never transfered to the component ? Aug 29 13:22:58 lov: lol, i`d rate ur performance clear 10! :D Aug 29 13:23:14 learn java Aug 29 13:23:24 Pinas: the exported tag only specifies whether the component/filter is visible externally Aug 29 13:23:27 bingelsc: be helpful or shut it Aug 29 13:23:32 Pinas: any intent filter that you declare is always valid for your own activity Aug 29 13:23:35 er Aug 29 13:23:37 your own application Aug 29 13:23:39 shot him? Aug 29 13:23:40 isn't this the clown you had to ban the other day, lov? Aug 29 13:23:45 bingelsc: i know about nullpointerexceptions!!! but i wanted to know how to initialize a progress dialog without showing it right away Aug 29 13:23:49 wongk: Is it? Aug 29 13:23:54 lov: ok exzellent - thank you very much Aug 29 13:23:59 bah, i cna't remember Aug 29 13:24:09 <3 wongk :) Aug 29 13:24:19 Oh hey you're right it is Aug 29 13:24:27 taljurf rtfm Aug 29 13:24:34 developer.android.com Aug 29 13:24:50 taljurf: just dont call show method? :o Aug 29 13:24:53 you can initialize object by calling his constructor Aug 29 13:25:09 i put him on my ignore, but he changed his nick, tricksy hobitses! Aug 29 13:25:30 lol Aug 29 13:25:31 wongk: who? Aug 29 13:25:47 I came to help people Aug 29 13:25:51 bingelsc Aug 29 13:25:52 wongk stfu Aug 29 13:25:56 cyaaa Aug 29 13:26:06 bingelsc: i did rt*m Aug 29 13:26:08 wow Aug 29 13:26:13 taljurf: don't bother Aug 29 13:26:27 I THINK that's the right wildcards. Aug 29 13:26:30 we'll see. Aug 29 13:26:50 lov: you set the channel as invite only Aug 29 13:27:04 and i think registered users only (not sure on +r?) Aug 29 13:27:05 hot, that makes us exclusive! Aug 29 13:27:36 Eh, I'm just glad speakingcode never returned. Aug 29 13:27:36 irc has a bad habbit of eating every letter in the un-used arguments as extra single-letter modes Aug 29 13:27:38 or just invite only, and everybody make a msg to lov for invite :) Aug 29 13:27:50 argh Aug 29 13:27:55 lov: you want to do /mode #android-dev -ir Aug 29 13:28:37 I used the command /mode +b *!*bingel*@*.domolink.elcom.ru #android-dev Aug 29 13:28:44 I'm not quite sure where that went wrong? Aug 29 13:28:51 the channel is the first argument Aug 29 13:28:56 now the progressbar works okay, but it doesnt stop as it should on onPageFinished http://www.fpaste.org/6GtX/ Aug 29 13:29:00 channel, arguments Aug 29 13:29:02 :/ Aug 29 13:29:13 i can see nothing wrong with what i did Aug 29 13:29:16 lov: your irc client probly helped and inserted it where it belonged, causing your extra #android-dev to be treated as single-letter modes Aug 29 13:29:41 its always /mode target +modes-modes arguments Aug 29 13:29:41 and when the page is loaded the onPageFinish was called , but pd wasnt stopped Aug 29 13:30:24 hello all Aug 29 13:31:05 new ident, bingelsc? Aug 29 13:31:24 what you talking about sir? Aug 29 13:31:51 "sir" , lol revealed himself :) Aug 29 13:32:06 clever: thanks Aug 29 13:32:08 oh ffs. Aug 29 13:32:21 čpč Aug 29 13:32:23 lol* Aug 29 13:32:47 lov: ive ran a whole irc network for a few years, so i know a lot of the tricks, both to ban, and to evade bans Aug 29 13:32:52 who was that? Aug 29 13:32:58 clever: target being the channel? So it's /mode #android-dev +b user? Aug 29 13:33:04 lov: yeah Aug 29 13:33:07 yes Aug 29 13:33:11 I always get it confused and manage to put alphabet soup into the channel modes :P Aug 29 13:33:15 and the 'user' part would be nick!ident@host Aug 29 13:33:54 so you would ban his current ip with *!*@109-126-234-255.domolink.elcom.ru and his entire ISP with *!*@ yeah that Aug 29 13:34:03 this last ban a little hard :) Aug 29 13:34:16 simpler Aug 29 13:34:23 clever: thanks a bunch Aug 29 13:34:25 all banned from his isp Aug 29 13:34:47 my irc logs show he has had 3 IP's, so yeah, your only real choice is to ban the entire isp Aug 29 13:34:56 sometimes there's collateral damage Aug 29 13:34:58 those ones, you usualy remove after a few days Aug 29 13:35:12 usualy the guy goes away and you can give his neighbors a break Aug 29 13:35:34 Yeah Aug 29 13:35:42 in one extreme case, the network admins emailed my ISP and (falsely) claimed i was spreading virus's Aug 29 13:35:48 they shut my connection off :P Aug 29 13:36:05 thats one extreme solution, saves his neighbors Aug 29 13:36:11 h4x0r! Aug 29 13:36:21 I had an op in ##mac ban an entire university because of me; I was IRCing from a shell account there. Aug 29 13:36:28 He lost his ops shortly after. Aug 29 13:36:40 wongk: it was a single $decode thing, and it was for educational purposes Aug 29 13:36:42 i have installed Root.apk, with adb - no errors, in adnroid emulator but Root doesn't show-up in the applications list (through settings). is that normal, how do I know it is executed on boot? Aug 29 13:36:47 wongk: it was unable to even write to a single file Aug 29 13:37:04 wongk: the network admins claim it infected everything and took days to clean up Aug 29 13:37:10 he claimed it was 'ban evasion', which meant 'no other op in ##mac agreed with my bans and lifted them without being asked to'. Aug 29 13:37:27 wongk: every time i ask for proof, they claimed i could use the text to resume my evil deeds Aug 29 13:37:50 wongk: after pestering them enough, they told my ISP i was spreading virus's, and i lost all connectivity Aug 29 13:38:04 Hodapp: in all fairness, student-halls.leeds.ac.uk is banned because of a persistent troll. Aug 29 13:38:13 clever: geez, that is crappy. Aug 29 13:38:19 Hodapp: yep Aug 29 13:38:34 Hodapp: ive checked back every few years, the ban is still in place :P Aug 29 13:38:37 lov: Branes in ##mac banned basically *.uc.edu. Aug 29 13:38:43 opariti: perhaps that app doesn't have an activity with the launcher intent filter Aug 29 13:38:45 Hodapp: i think the admins are just trolling me for the fun of it :P Aug 29 13:39:11 opariti: does Root.apk have an activity that's visible in the launcher? Aug 29 13:39:16 hah, i have a degree from UC Aug 29 13:39:21 wongk: cinci? Aug 29 13:39:32 yes, we talked about this before :P Aug 29 13:39:37 i also taught there once Aug 29 13:39:48 I forget a lot of IRC convos. Aug 29 13:39:51 me too Aug 29 13:40:04 * Hodapp wonders if he ever had wongk for a class... Aug 29 13:40:13 lov: I have installed Root as apk file, so I don't know. seems to be a popular android app though Aug 29 13:40:17 i only taught one class Aug 29 13:40:42 opariti: Are you actually a developer? If not, consider going to #android-root Aug 29 13:40:48 Hodapp: i forget things too, so i log, my main log directory is up to ....... 11gig Aug 29 13:41:01 too much stress trying to work full time and teach Aug 29 13:41:01 clever: stick it on a compressed FS :P Aug 29 13:41:15 Hodapp: the only compressed fs i know well is read-only compressed Aug 29 13:41:19 lov: you mean for this question? i am a developer Aug 29 13:41:32 opariti: check the source Aug 29 13:41:45 opariti: in that case, yeah, check the source for the app, use aapt dump to look at the metadata, etc. Aug 29 13:41:50 clever: FUSE has some, and btrfs will do it too I think Aug 29 13:41:53 wongk: i don't have it Aug 29 13:42:00 opariti: then you're probably OT Aug 29 13:42:05 you can always use adb shell dumpsys package or something Aug 29 13:42:12 wongk: OT? Aug 29 13:42:15 off topic Aug 29 13:42:21 opariti: do you normally install random applications from the internet? :D Aug 29 13:42:25 wongk: thanks Aug 29 13:42:36 lov: thanks guys Aug 29 13:43:12 Hodapp: are you doing android development around here? Aug 29 13:45:26 wongk: I'm in Norwood and 'sorta'. It's a project as part of an AF contract Aug 29 13:45:55 gaaah, this is annoying. My photo-saving callback is not called... until I set a breakpoint in it to see if it's called. Aug 29 13:46:55 hmm, i wonder if anything has changed with progressbars from versions < 4.0 to versions >= 4.0 Aug 29 13:47:16 with versions < 4.0 progress gets updated, with versions >= 4.0 not Aug 29 13:55:12 wongk: now the progressbar works okay, but it doesnt stop as it should on onPageFinished http://www.fpaste.org/6GtX/ Aug 29 13:55:17 i can see nothing wrong with what i did Aug 29 13:55:21 and when the page is loaded the onPageFinish was called , but pd wasnt stopped Aug 29 13:55:43 so you set a break point and verified that pd.dismiss() is being called? Aug 29 13:56:33 no, i just made sure onPageFinish is being called Aug 29 13:56:35 hi all, I guess this is the right channel to ask Aug 29 13:56:50 http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android <-- I am trying to follow this Aug 29 13:56:50 taljurf: how did you verify that? Aug 29 13:57:12 printed something in onPageFinish , and it did at the right time :) Aug 29 13:57:16 but get an type error when trying to specify: android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" Aug 29 13:57:19 to the activity Aug 29 13:57:24 anyone an idea? Aug 29 13:57:43 note: this is not a phonegap thing, rather android native setting Aug 29 13:58:09 taljurf: i'm not sure, that's how you dismiss a dialog Aug 29 13:58:35 wongk: u mean how? or where? Aug 29 13:58:38 sivang: why are you trying to specify those for your activity? Aug 29 13:58:53 how Aug 29 13:59:37 i have a meeting Aug 29 14:00:07 wongk: to allow automatic handling of orientation changes, as per PHoneGap's tutorial instructions Aug 29 14:07:31 sivang I have never used configChanges but what problems you have with it? Aug 29 14:07:52 ArGGu^^: so I am trying to follow this phonegap tut, http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android Aug 29 14:07:57 i can't figure out why *sometimes* when i rotate the screen, so my loader is restarted, i get this exception: http://pastebin.com/bvXZNEtz Any idea? Aug 29 14:08:14 ArGGu^^: and they instruct you to use it to allow orientation changes to be handled automatically according to what's said on the tutorial Aug 29 14:09:07 ArGGu^^: so they say to add this android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" Aug 29 14:09:27 ArGGu^^: but when I add, the eclipse IDE yells the type is wrong, perhaps I can just disregard his yelling? Aug 29 14:09:49 alright, so, I need onPause to wait until some async call finishes... but I am not good enough with Java sync primitives to figure out how to do this Aug 29 14:10:10 oh interesting.. Aug 29 14:10:11 the AsyncTask that actually does this is called at some arbitrary time after so I can't just call .get() and wait for it Aug 29 14:10:18 it seems two asynctasks are one too many. Aug 29 14:11:11 and I can't just use a 'synchronized' call - when it's async, that just means I give the lock up immediately Aug 29 14:11:39 gah, so I don't know what I can do here besides spin until that async call is done Aug 29 14:11:50 sivang screenSize requires API level 13 so check you are not using lower API level Aug 29 14:13:24 why oh why does android make life so difficult :D Aug 29 14:13:42 Hodapp: blocking onPause would be bad, are you sure this design can't be rethought? Aug 29 14:13:45 good morning to everyone Aug 29 14:14:33 wongk: taking a picture causes (1) an async call to save the picture via Camera.takePicture(...) and (2) the activity to be switched to go to another screen to get some user data on the photo Aug 29 14:14:42 sivang thought they are using minimum API level 7 in that tutorial, so maybe It does not matter event it is not supported on lower API levels than 13 Aug 29 14:14:59 wongk: switching the activity causes onPause in the first and, so that other activities might share the camera, onPause should release the camera Aug 29 14:15:02 wongk: even when i try pd.isShowing() returns false Aug 29 14:15:04 I'm making an app that uses android 2.2+Google SDK and trying to debug it (USB) with a phone that has GingerBread in it.. but I keep on getting Exceptions on the android sdk (Can't see the code obviously) Aug 29 14:15:13 wongk: if I release the camera too early, the async call won't go through Aug 29 14:16:17 Hodapp: er, this caused by standard android APIs? Aug 29 14:16:31 wongk: yes. Aug 29 14:16:53 seems like someone would have had to have solved this by now, probably on stackoverflow Aug 29 14:17:11 didn't find anything? Aug 29 14:17:18 every attempt I make to articulate this to Google just ends up finding useless tutorials Aug 29 14:17:28 weird Aug 29 14:17:40 Hodapp: note that by calling .get() you basically defeat the whole notion of using asynctask in the first place. The only valid case is when you have proven that by now the task is finished and you need this way to get the value. Aug 29 14:18:16 sivang If I remember correctly when changing between portait and landscape your app restarts so I think you should make sure there is no threads running Aug 29 14:18:54 alankila: Well, this is what happens when async and statefulness meet. Aug 29 14:21:00 so can the app (for 2.2+google) be debugged in a GingerBread device? Aug 29 14:21:11 let's see if anyone complains if I just make it not async since it's, well, not async Aug 29 14:22:25 sivang forgot my last comment opened wrong url :D, but yeah I have no clue why Eclipse does not like that line in manifest Aug 29 14:23:09 ArGGu^^: yes, that makes sense Aug 29 14:23:13 Hodapp: why won't you start the other activity _after_ the camera callback finishes? Aug 29 14:23:16 ArGGu^^: I'll make sure of that now Aug 29 14:23:43 hrnt: How do you propose I determine that the camera callback is finished without just spinning? Aug 29 14:23:48 ArGGu^^: I think I am using a lower API, but that means that you cannot hjandke rotate events on <13 ? Aug 29 14:23:50 Hodapp: you can spend around 0.5 seconds safely without anybody noticing or caring Aug 29 14:24:04 Hodapp: well you make the camera callback call you when it's done Aug 29 14:24:09 that's the way things should be written Aug 29 14:24:36 sivang you can with the orientation Aug 29 14:24:53 alankila: So I have onPause in my activity and it needs to wait until onPictureTaken is done. Is there some straightforward, non-busy-loop way to do this? Aug 29 14:25:51 Hodapp: well, launch the activity for example after takePicture's jpeg callback is called? Aug 29 14:26:07 sivang If have not tried example android:configChanges="orientation" then try it Aug 29 14:26:09 I do not understand why you'd wait in onPause to begin with. Aug 29 14:26:24 Hodapp: so when you have the JPEG data, a) release camera b) start the other activity Aug 29 14:26:34 or just start the other activity and release the camera in onPause Aug 29 14:26:36 what hrnt suggests sounds like how it's supposed to be done Aug 29 14:26:45 the takePicture callback fires another activiity when it ahs the data or whatever Aug 29 14:27:10 basically take picture -> launch activity Aug 29 14:27:20 if it still does not like it with only one value I don't know what is wrong :S, but I need to goto groceries store-> Aug 29 14:27:34 not start processing the picture -> launch activity -> block in onPause until processing is done -> relase the camera Aug 29 14:27:34 ArGGu^^: thank you so much, you have been very helpful! Aug 29 14:27:37 or whatever ;P Aug 29 14:27:46 hmm, I beieve it's because I need some context that I have only in onClick(View view) { ... } to make that Intent to switch in the first place Aug 29 14:27:53 but I might have other ways of getting it Aug 29 14:28:02 Hodapp: of course Aug 29 14:28:08 Hodapp: for example, you can pass that data to the callback Aug 29 14:28:12 sivang: can you pastebin the manifest file? Aug 29 14:28:52 another meeting... Aug 29 14:29:16 wongk: yes, thank you as well! Aug 29 14:29:25 Hodapp: personally i would create the intent in onClick and pass the intent to the Camera.PictureCallback Aug 29 14:29:42 wongk: http://paste.ubuntu.com/1173899/ Aug 29 14:30:01 wongk: I'm trying to see how I can control the version of API my ADT inside eclipse is using Aug 29 14:32:11 wongk: going to try update the APIs now Aug 29 14:32:43 sivang I quickly checked the manifest you have line Aug 29 14:32:46 andoird:configChanges="android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" Aug 29 14:32:57 why there is two times android:configChanges? Aug 29 14:33:32 but I need to go now-> Aug 29 14:34:39 G'day all, can anyone point me towards the direction about finding out if the Motorola MB860 phone supports the camera torch mode? Aug 29 14:34:52 alright, now I need to figure out how to call startActivity from an Activity-unrelated class Aug 29 14:35:15 hrnt: insight on this? Aug 29 14:36:04 if you have a context you can start it Aug 29 14:36:05 * lov points Mechdave at #android and #android-root Aug 29 14:36:29 lov, Thanks :) Aug 29 14:36:41 Hodapp: you can pass the context to the callback as well Aug 29 14:36:57 Hodapp: although it shouldn't be necessary Aug 29 14:37:07 Hodapp: if your callback is an inner class, then you can refer to the enclosing scope Aug 29 14:37:09 ArGGu^^: good catch, I'm tired from this day that started very early I guess /me rechecks Aug 29 14:37:37 (which is Activity in this case I assume) Aug 29 14:37:56 sivang: this is pretty obvious, attention to detail is key :P Aug 29 14:38:11 Another class is handling the camera stuff; it seems like an unnecessary coupling to say this class must be a part of a GUI-specific one Aug 29 14:38:15 one of the "android"s is also mispelled Aug 29 14:39:23 Hodapp: if you don't want to pass a Context, then you pass a delegate to that another class Aug 29 14:39:48 Hodapp: let's say if you have a HelperCamera class with just one method: void doStuffWithCamera() Aug 29 14:40:02 Hodapp: you change that API to void doStuffWithCamera(OnFinishCallback cb); Aug 29 14:40:27 and then you pass a new OnFinishCallback() { void onfinish() { startActivity(intent); } } to it Aug 29 14:40:37 wongk: still how do I check the version of API I have support for in Eclipse? Aug 29 14:40:49 wongk: becuase it might not work even when I fix this :) Aug 29 14:41:01 check the project properties Aug 29 14:41:20 right Aug 29 14:41:21 target=android-8 Aug 29 14:41:30 dont target such a low version :( Aug 29 14:41:31 I'm stuck with trying to debug froyo app in gingerbread device Aug 29 14:41:38 so I should change this I guess, and I need to somehow make Eclipse find the android-13 target? Aug 29 14:41:50 wongk: oh, mispelling Aug 29 14:42:02 if you have that target, it will be in the list Aug 29 14:42:06 if not, download it Aug 29 14:42:25 teb_, what is "froyo app" Aug 29 14:42:32 wongk: download more targets now, thanks! Aug 29 14:43:06 canadiancow, I'm developing an app that targets 2.2+Google SDK but trying to debug it using a device that has GigerBread installed (4.1) Aug 29 14:43:17 heh Aug 29 14:43:20 gingerbread is not 4.1 Aug 29 14:43:31 sorry 'bout that I'm a bit confused about versioning Aug 29 14:43:33 and i would debate your definition of "froyo app" Aug 29 14:43:45 ooo, a debate Aug 29 14:43:48 Gigerbread Aug 29 14:43:48 I like debates Aug 29 14:43:52 * Hodapp hits wongk with a chair Aug 29 14:43:56 this sounds like the API level of nightmares Aug 29 14:44:03 that's less than friendly Aug 29 14:44:27 2.2+google is API level of nightmares? Aug 29 14:44:55 so gingerbread is 2.3 Aug 29 14:44:55 sigh Aug 29 14:44:56 your nightmares need an update, mine are targetting API 16 by now ;) Aug 29 14:45:09 i target 17 Aug 29 14:45:13 snap Aug 29 14:45:13 but im special like that Aug 29 14:45:24 you sure are "special" Aug 29 14:45:45 the thing is that I can't develop apps that target api's higher than 16 because I'm in Argentina.. so most people have low-price android devices Aug 29 14:46:10 teb_: sure you can, you just need to be careful with backwards compats Aug 29 14:46:16 you may also want to use the compatibility libraries Aug 29 14:46:31 omg WTF I'm targeting api 8 Aug 29 14:46:48 ... Aug 29 14:46:52 you said that like 10 minutes ago Aug 29 14:47:53 I'm still not understanding this versioning thing Aug 29 14:48:00 is it possible to access all the usb modes found in the usb init script from the android app layer? Aug 29 14:48:23 will my app work on 2.2 android devices if I target api 16? what does the "4.1" part stand for in api 16? Aug 29 14:48:45 4.1 == 16 == Jelly Bean Aug 29 14:48:50 2.2 == 8 == Froyo Aug 29 14:49:01 teb_: the API level you target is just what you're compiling against Aug 29 14:49:08 minSDK specifies the minimum level you'll support Aug 29 14:49:15 targetSdk specifies the maximum level you've tested on Aug 29 14:49:29 er, the API level that you specify in your project properties is what you're compiling against Aug 29 14:49:44 teb_: Read this: http://developer.android.com/design/patterns/compatibility.html Aug 29 14:50:02 also. http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html Aug 29 14:50:16 http://developer.android.com/tools/publishing/versioning.html#minsdkversion Aug 29 14:50:43 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#bc Aug 29 14:50:53 by using a high targetSdk you can benefit from the new features that version offers Aug 29 14:50:57 ^^ Aug 29 14:51:03 my target being 2.2+google, I can't debug the app using a device that has JellyBean installed Aug 29 14:51:10 YES, YOU CAN. Aug 29 14:51:17 lol Aug 29 14:51:26 Android apps are backwards and forwards compatible when properly designed Aug 29 14:51:31 read the links I gave you Aug 29 14:51:38 ok thanks Aug 29 14:58:47 stupid question, but does anyone has a screenshot of the cyanogenmod "revoke permissions" screen ?? Aug 29 14:59:53 lov: I had android:targetSdkVersion set to 15.. could this be my problem? Aug 29 15:00:14 Pinas, I've got MiniCM10-4.0.0 installed, if it suits you I can take any screenshot you need Aug 29 15:00:41 teb_ that would really be great :) Aug 29 15:01:05 ideally from an app that requests some permissions that look creepy :D Aug 29 15:01:18 Pinas, give me the path to the option you need to see 'cause I'm not familiar with this device and the menues Aug 29 15:02:05 teb_ sorry neither I am - i am just writing my master thesis and I know about this feature but I actually have never used cynaogenmod Aug 29 15:02:40 teb_ it is probably somewhere in the app list - where you can unistall the app, maybe there is a button to revoke permissions :) Aug 29 15:02:49 ok Aug 29 15:02:55 I'll check Aug 29 15:03:19 thx so much Aug 29 15:04:30 teb_: What exactly IS the problem you're having? Aug 29 15:05:42 My problem is that when I try to debug my app using the virtual 2.2+google device everything's ok (except my code but that's another topic), but when I go debug my app in android device with JellyBean in it, I get unhandled exceptions inside android sdk sources, which I can't see 'cause I didn't attach those to my IDE.. I'm using Eclipse Aug 29 15:06:16 teb_: pastebin your exceptions, and any relevant code. There should be no issues like that on the device. Aug 29 15:06:26 actually, if your target is 2.2+google, does your JB device actually have the google libraries? Aug 29 15:06:43 * SimonVT guesses networkonmainthreadexception Aug 29 15:07:12 yes, it does, the package I use for gapps is gapps-jb-20120813-signed Aug 29 15:09:06 hmm. Please pastebin your relevant code, stacktraces, etc. Aug 29 15:09:29 okk Aug 29 15:10:41 lov: I've got screenshot http://www.zimagez.com/zimage/capturadepantalla-290812-121043.php Aug 29 15:11:06 re people, so now I have an issue with the emulator Aug 29 15:11:19 I'm clearing the logs and relaunching for pastebin-ing Aug 29 15:11:20 it does not seem to run from Eclipse, nor does it let me choose and AVM Aug 29 15:11:27 or AVD Aug 29 15:11:35 (sorry for wrong termino.) Aug 29 15:13:32 lov, http://pastebin.com/fQrDteaR Aug 29 15:13:54 silvang, in which way are you launching your app for debug.. are you new to android development? Aug 29 15:18:11 teb_: er Aug 29 15:18:22 in a fragment, which is the best point for calling getLoaderManager.initLoader(..)? onActivityCreated? Aug 29 15:18:24 teb_: screenshots of your exceptions aren't helpful. Aug 29 15:18:34 teb_: let that exception fall through, then pastebin the stacktrace that results Aug 29 15:18:40 lov, i've attached the pastebin a min ago, did you see it? Aug 29 15:18:54 teb_: I saw it, but it doesn't actually have the stacktrace Aug 29 15:18:56 it really has nothing useful in it Aug 29 15:19:12 teb_: disconnect the debugger, let that exception fall through, pastebin the final output of that. Aug 29 15:19:21 I'm willing to bet that the final error message will be enlightening Aug 29 15:19:30 on the order of "couldn't find activity SomeGoogleStandardThing" Aug 29 15:20:36 what do you mean by "let the exception fall through"? just press the green button and the execution will continue? Aug 29 15:20:54 yes. Press the green button, or press the red zig-zag to disconnect the debugger. Aug 29 15:21:09 if you press the green button, just keep pressing it until you finish crashing. Aug 29 15:26:01 got the mofo Aug 29 15:27:32 lov, it's a null pointer exception :S Aug 29 15:27:36 pastebin right now Aug 29 15:28:23 http://pastebin.com/8Weg8vp9 Aug 29 15:28:25 hi, can anyone recommend anything to look stuff up offline? I'm still a noob and need to look up every 2nd command and might be offline for a week inwhich i need to continue working on my app... Aug 29 15:28:54 cougarten: download the docs via the sdk manager Aug 29 15:29:00 i got a beginners book, but no offline references Aug 29 15:29:11 ah, cool. thats possible through eclipse? Aug 29 15:29:18 teb_: looks like you have a null object... Aug 29 15:29:20 ah no, sdk manager you said Aug 29 15:29:28 cougarten: window -> sdk manager Aug 29 15:29:54 thx (: Aug 29 15:30:44 i think i gonna hack together the most unpolished thing I've ever written haha Aug 29 15:31:04 just got stuck doing it right Aug 29 15:32:56 evancharlton, Even if I do, why does the app debug fine in a 2.2+google virtual device? Aug 29 15:33:21 why wouldn't it? Aug 29 15:35:17 the problem is that the debug doesn't start in jellybean physical device Aug 29 15:35:53 lov, did you look at the latest pastebin i've put? Aug 29 15:36:13 teb_: com.fussionlab.carpool_droid.MainActivity.onCreate(MainActivity.java:84) Aug 29 15:36:19 look for "caused by" in your stacktraces Aug 29 15:36:24 your REAL error is there. Aug 29 15:37:18 so there is a null pointer exception in my onCreate function for my main activity Aug 29 15:37:31 why doesn't the 2.2 virtual device complain about the null pointer? Aug 29 15:37:31 Yes, look at your stacktrace. Aug 29 15:37:43 I don't know, what's on line 84 that's suddenly null? Aug 29 15:39:40 quick hint to show line numbers in eclipse? PLEASE? :D Aug 29 15:40:03 ctrl-l is go-to-line Aug 29 15:40:04 Gah... This DownloadManager has some weird requirements... Aug 29 15:40:17 teb_, google it Aug 29 15:40:29 also, the current line number : cursor column is showed in the lower right hand corner Aug 29 15:40:34 click around and watch it change Aug 29 15:41:01 done Aug 29 15:41:03 :D Aug 29 15:41:18 * Lachezar is dropping the use of DownloadManager in favour of Intents.ACTION_VIEW on the URL. Aug 29 15:41:48 cyanogen kicks ass Aug 29 15:42:12 teb_: right-click that area where you think the line numbers should be and hit "enable line numbers" or whatever the string is Aug 29 15:42:35 Preferences -> General -> Editors -> Text Editors -> Show Line Numbers Aug 29 15:44:26 thanks to both evancharlton and doogan :) Aug 29 15:49:06 I just got "android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117) Aug 29 15:49:07 " Aug 29 15:49:08 * lov coughs Aug 29 15:49:16 teb_: yeah, don't do networking on your UI thread. Aug 29 15:50:09 oh, so that's new, right? Aug 29 15:50:22 not really Aug 29 15:50:31 I see Aug 29 15:50:31 its been a warning since like december 2010 Aug 29 15:50:40 its been a crash condition since like feb 2011 Aug 29 15:51:03 as it should be Aug 29 15:51:10 it should be even in debug mode, imo Aug 29 15:51:47 It's a bit strange tho Aug 29 15:51:54 it crashes on 11+ if your targetSdk is 10 Aug 29 15:51:59 But doesn't crash on api10 Aug 29 15:52:55 So what would be the correct approach? to create a thread on start and use it for network stuff? Aug 29 15:53:21 oh god Aug 29 15:53:27 http://developer.android.com/training/basics/network-ops/index.html Aug 29 15:55:29 it's gonna be a long day -_- Aug 29 15:56:37 for a lot of people Aug 29 15:57:10 ugh, my attempt to write XML in a file has resulted in... a file with XML, but the filename has had all spaces changed to %20 Aug 29 15:57:53 alright, now which wonky-ass XML package caused this... Aug 29 15:58:05 * teb_ gets a rise this month, talking about %20 hehehe Aug 29 15:59:45 Hodapp, you need to rename the file so it doesn't have spaces in it Aug 29 15:59:57 use _ Aug 29 16:02:57 Mechdave: My file does not need to be renamed. Period. Aug 29 16:03:38 Hodapp, Ok, battle on then my friend :) Aug 29 16:03:47 Mechdave: It's a valid filename; StreamResult is just being stupid. Aug 29 16:04:03 Hodapp, Ok Aug 29 16:04:10 I can just use a FileOutputStream instead of passing it a filename Aug 29 16:06:13 "Failed to pull selection", ugh, great Aug 29 16:06:25 I am trying to use eglCreateImageKHR in an NDK app and cannot figure out how to create the android_native_buffer_t needed. How do I do it? Aug 29 16:07:18 oh, nevermind, it's just Eclipse being a buggy piece of crap again Aug 29 16:07:54 Hodapp, Have you tried cleaning and rebuilding? Aug 29 16:08:11 Usually it works for me after that :) Aug 29 16:08:59 Mechdave: It has nothing at all to do with my project or even whether there is a project loaded, so no Aug 29 16:09:06 Mechdave: I just had to restart Eclipse Aug 29 16:10:03 Hodapp, It is good you have found a solution :) Aug 29 16:11:13 Anyone else suffering from super slow download speeds for the SDK addons, particularly the Motorola ones? Aug 29 16:13:30 How hard would changing systemui.apk as a first project? Aug 29 16:17:58 <[twisti]> Mechdave: me, i barely get like 60kb/s Aug 29 16:18:29 [twisti], I am currently on 28kb/sec :( Aug 29 16:20:21 Is there a way to take a a site like workforceportal.elabor.com and make it an android app. I would like to make an app with input boxes that will submit the information I enter and post it to this site. Aug 29 16:24:47 <[twisti]> tave: not sure about your actual question. yes, its possible to make websites, and its possible to make android apps that send data to websites. Aug 29 16:26:10 twisti, I have to use this interface to enter my work hours everyday. I would like to send my hours data to the page and submit it. What do I need to accomplish this? Aug 29 16:26:58 <[twisti]> a rather basic understanding of how html forms work plus decent java skills, its really not all that complicated Aug 29 16:27:36 I know how html forms work. Would I use Java to parse the data? Aug 29 16:28:31 <[twisti]> what data would you want to parse ? Aug 29 16:28:44 <[twisti]> i thought you wanted to submit more data Aug 29 16:28:56 information on hours that were already entered previously Aug 29 16:29:13 <[twisti]> well, you could certainly parse that if you wanted to Aug 29 16:29:23 <[twisti]> theres even libraries specifically for dealing with html Aug 29 16:29:41 what library would you recommend Aug 29 16:30:27 tave: http://hc.apache.org/httpcomponents-client-ga/ Aug 29 16:30:36 thank you Aug 29 16:30:51 check out the quick start, specifically for POST Aug 29 16:31:12 will do Aug 29 16:37:09 hello Aug 29 16:40:28 hi there Aug 29 16:40:34 meh. starting with 4.1.1, there is nothing anymore in the radio section of logcat... Aug 29 16:50:00 Is there another piece to the android development environment? SDK, NDK and something else? I cannot find headers mentioned in a lot of examples like GraphicBuffer.h etc. Is this by design? Aug 29 16:58:36 <[twisti]> now i wish i never made a motodev account Aug 29 16:58:44 <[twisti]> these downloads are going to take all night Aug 29 17:06:30 can someone with android 4.1 please run an "adb logcat -d -b radio" and tell me if there is any output? Aug 29 17:06:55 Ge0rG: crap, I would but I think I left my micro-USB at home Aug 29 17:07:38 my app relies on the radio log, and the reports I get from users indicate that it is empty on 4.1 Aug 29 17:07:49 last known good was 4.0.4 Aug 29 17:08:28 hey guys Aug 29 17:08:47 just curious. which has a higher precedence: intent-filter or android:exported=false Aug 29 17:08:53 let's say they both exist in an activity Aug 29 17:09:14 * Ge0rG just flashing cm10 on his own gnexus Aug 29 17:13:47 Ge0rG, you mean minicm10? Aug 29 17:18:56 <[twisti]> hi, i cant figure out how to build my android project with ant. i set it all up the way im supposed to, and it runs fine, but it doesnt include any of my actual code. it includes libs, resources, xml files, it signs, but none of my own classes are included at all. the classes are compiled, but not put into classes.dex. i dont use proguard. ideas ? Aug 29 17:21:01 teb_: I mean cm-10-20120829-NIGHTLY Aug 29 17:22:01 ah! Aug 29 17:22:31 I'm using MiniCM10 but now I check, I see they are different things Aug 29 17:24:32 ok, in cm10 radio logcat is working... :( Aug 29 17:24:47 anyone there with a nexus7 / galaxy nexus and stock 4.1? Aug 29 17:25:35 [twisti]: clean and rebuild. That's strange. Aug 29 17:25:45 <[twisti]> lov: i always rebuild from scratch Aug 29 17:25:50 * lov shrugs Aug 29 17:25:54 I'm not really sure what to suggest, sorry. Aug 29 17:26:09 run ant with -v and try to figure out why that step is getting skipped? Aug 29 17:51:03 okay, when using the Graphical Layout editor in Eclipse, does anyone know of a way to keep it from deselecting everthing when I edit something in the Properties? Aug 29 17:56:31 is there a way to determine if an app has been obfuscated with proguard? Aug 29 17:56:53 decompile it :P Aug 29 17:57:05 Good afternoon all. Can someone point me to documentation of how to update an optionMenu icon resource without leaving an activity, for example the use case of a 'logout' item which cleans some prefs, etc, but doesn't switch activities, but the next time the menu is opened, the menu should be changed to include 'login'. It should be noted that I'm assembling the menu programatically, not inflating from an XML resource, if that makes a Aug 29 17:57:05 difference. Aug 29 17:57:24 wongk, so it will just look funny? Aug 29 17:57:33 i thin i remember noticing a TON of random directories Aug 29 17:57:37 aaa, aab, aac, etc. Aug 29 17:57:40 class names will be A, B, C, etc... Aug 29 17:57:43 yeah Aug 29 17:58:09 hillct: there is a method call to invalidate the menu, i don't recall its name off the top of my head Aug 29 17:58:26 this will force it to be rebuilt Aug 29 17:59:02 wongk: figured it's be something like that. I'll find it. Thanks. Just didn't want to spend the afternoon searching for something that doesn't exist Aug 29 18:00:54 Keep a reference to the menuitem.. change it Aug 29 18:01:52 hello all :) Aug 29 18:02:58 I'm currently reading something about SystemOrSignature permissions, and I wanted to ask if there is some kind of documentation on how to use this permissions, for example when my app (which of course needs to be under /system) is granted the RETRIEVE_WINDOW_CONTENT - how can I actually retrieve the content of active windows. ? Aug 29 18:04:10 wongk: Got it http://developer.android.com/guide/topics/ui/menus.html#ChangingTheMenu Thanks. SimonVT It seems there are very specific ways in which that's permitted Aug 29 18:04:18 Can you help me what might be the problem why the AlarmManager doesn't seem to be working? http://pastebin.com/SvQqqqJL Aug 29 18:05:20 hillct: yes, it seems i was thinking of the action bar specifically Aug 29 18:06:25 dr_traktor: you can't use a "local" intent with the AlarmManager Aug 29 18:09:31 wongk, local in what way? Aug 29 18:09:50 local to a method? Aug 29 18:10:05 dr_traktor: that for of intent constructor can only be used to start an activity or service inside your own app Aug 29 18:10:14 s/for/form/ Aug 29 18:10:46 read up on intents and intent filters Aug 29 18:11:16 can someone with android 4.1 please run an "adb logcat -d -b radio" and tell me if there is any output? Aug 29 18:13:26 Lots of output Aug 29 18:16:32 Question: can I edit an already free app, to include in-app billing or is that against the TOS ? Aug 29 18:18:24 tmoney: yes, you can Aug 29 18:19:09 awesome, thanks. Aug 29 18:20:01 anyone know how strict they are with the content of a monthly subscription? for instance, would it be acceptable to charge someone $0.99/month simply to have ads removed? Aug 29 18:20:37 <[twisti]> ok, im a bit closer to my actual problem. running ant release with -v shows that in -pre-compile, my classes are properly detected and scheduled to be compiled. adding compile errors to those classes properly throws a compile error. but if they compile fine, no .class files are ever created. how is that possible ? what could cause that ? Aug 29 18:26:47 tmoney: yes, that's fine. Aug 29 18:27:36 great. thanks. Aug 29 18:37:00 if I have an image that's going to be generated at run-time, and Intents don't look to be up to the task of holding a reasonable-size approximation, how should I go about getting this image to some Activity I start? Aug 29 18:38:50 Hodapp: maybe a statically accessible image "repository"? Aug 29 18:38:58 ^^ Aug 29 18:39:05 you don't need to embed the image, you can just embed a handle of some kind Aug 29 18:39:08 maybe that's a file uri! Aug 29 18:39:16 maybe its an index into your content provider? Aug 29 18:39:23 a file could be another way Aug 29 18:39:44 maybe you're feeling saucy, and you pass an int which is a pointer to a bitmap image at the NDK layer! Aug 29 18:39:53 oh, snap Aug 29 18:40:07 (you should probably never do that last one) Aug 29 18:40:11 there are scads of possibilities! Aug 29 18:40:41 hmm, I do have a filename, it just seems silly to get a byte array of JPEG data, save it to a file, and then read it back from a file elsewhere... 0.25 seconds later Aug 29 18:43:49 Hodapp: Not as silly as trying to jam several MB into an intent. Aug 29 18:44:14 Hodapp: regardless, it doesn't have to be a file; it can just be an index into a ContentProvider that your app exposes Aug 29 18:44:36 If you're sending an intent from your app to your app, you can pass an index into a static map that caches it Aug 29 18:50:59 lov: I wasn't even trying to cram several MB into an intent. I was trying to get enough for a preview, maybe 200x200. Aug 29 18:56:45 I just followed your advice and started trying with the threaded work for consuming network stuff (http request) Aug 29 18:57:37 The thing now is that I've set a breakpoint at the RETURN statement of doInBackground and it gets thru it.. but onPostExecute() never gets triggered Aug 29 18:57:57 Hodapp: that's probably fine to put into the intent, although it's on the upper limit of "fine" Aug 29 18:58:06 teb_: pastebin your code please. Aug 29 18:58:23 teb_: do you have the @Override annotation on your onPostExecute? Aug 29 18:58:57 @Override doesn't effect execution, but it does make typos into a compile error :P Aug 29 18:59:10 e.g. maybe you typed onPastExecute Aug 29 18:59:25 or have a mistyped parameter, easy to do with Asynctask Aug 29 18:59:25 nope, no typo Aug 29 18:59:31 i'm pastebin-ing Aug 29 18:59:52 wrongly typed Aug 29 19:00:36 http://pastebin.com/7g6gAV4F Aug 29 19:03:11 you may want to check out EntityUtils Aug 29 19:03:52 but this looks fine to me Aug 29 19:05:48 entityutils? Aug 29 19:13:59 I've been thinking, is it possible using a swype on my app, to display a new window(activity?) with content that is accociated with the previous activity? Aug 29 19:15:31 diki: why not just use ViewPager? Aug 29 19:32:54 well, that's weird... used an Intent with ACTION_VIEW and passed it a local URI to a JPG file and it refuses to open it because it's 'not a valid PDF file' Aug 29 19:33:00 SimonVT: sorry for the lag. are you running stock 4.1 or cyanogenmod? which device are you on? Aug 29 19:33:06 yes, as a general rule most JPEG files are not valid PDF files Aug 29 19:35:56 obviously you need to pass a PDF instead. Aug 29 19:38:44 lov: I'm just wondering why Adobe Reader is trying to open a JPEG file. Aug 29 19:39:02 Ge0rG: Stock gnexus Aug 29 19:39:25 s/is trying to open a JPEG file/exists/ Aug 29 19:39:55 lov says postscript of gtfo Aug 29 19:40:02 s/of/or/ Aug 29 19:40:10 I do like PostScript better. Aug 29 19:40:11 really adobe anything = gtfo. Aug 29 19:40:19 Adobe Lightroom is actually quite good. Aug 29 19:40:21 the third party apps do it all better and faster Aug 29 19:41:02 i love the 3rd party pdf viewers that ignore password protection =] Aug 29 19:41:23 and co-ops? Aug 29 19:41:27 er Aug 29 19:41:31 misfire\ Aug 29 19:42:15 okay, so if I take this same file and attempt to open it in a file manager, Gallery opens it up Aug 29 19:42:19 it ends in .jpg Aug 29 19:42:20 it is a JPEG Aug 29 19:42:29 ...ACTION_VIEW is trying to use Adobe Reader Aug 29 19:42:47 which we've already established is the wrong program even when you have a PDF Aug 29 19:43:05 So your intent is wrong Aug 29 19:43:57 it's what someone told me here yesterday, and reading the description of it, it looks reasonable Aug 29 19:44:23 If it doesn't match the gallerys intent filter, and you're trying to open the gallery, then it's wrong Aug 29 19:44:40 I'm not trying to open the gallery Aug 29 19:44:50 I'm trying to open _any damn program that can handle a JPEG_ Aug 29 19:49:50 Hodapp: odds are that you have to specify the datatype or something silly like that Aug 29 19:49:53 search stackoverflow Aug 29 19:50:16 lov: yeah, I just found it there Aug 29 19:51:09 now to figure out why opening more than one image - though the old ones should have no references remaining - causes an out of memory error... Aug 29 19:51:59 ah, the ole bitmaps aren't GC'd fast enough scenario Aug 29 19:53:04 wongk: is this a thing? Aug 29 19:53:20 i've heard a number of people complain about it Aug 29 19:53:29 i've never experienced it Aug 29 19:53:48 the first time I open the Bitmap, which happens to be a 5 MP image from the rear camera, it's fine Aug 29 19:54:01 it seems like a quick verification could be done by manually invoking the GC Aug 29 19:54:05 I use a reduced version of the image anyway Aug 29 19:54:49 Hodapp: if you're going to do a lot of work with images, you should manage their memory yourself as much as possible. use the recycle() method on your bitmaps when you know that you're done with them. Aug 29 19:57:27 that seems to help, I can now load two images without crash... Aug 29 19:58:08 <[twisti]> my "ant release" is still not generating .class files. ideas ? Aug 29 20:04:11 How do I create an android_native_buffer_t for use with EGL? Aug 29 20:07:17 A little song to keep us awake, http://www.youtube.com/watch?v=9bZkp7q19f0 Aug 29 20:23:20 First of please someone let me know if my questions are getting to the list. Second can anyone help me with how to efficiently get YUV data to the display from NDK app? Aug 29 20:28:48 jshanab_:from native to java? Aug 29 20:29:36 jshanab_: you could try put the yuv as opengl texture and write a shader to show it? or if you need very fast roundtrip times, sharing memory with gpu would be the way to go but I don't know if it's possible on android Aug 29 20:29:59 but it couldn't get better than have yuv arrive directly to gpu memory followed by gpu converting to display colorspace Aug 29 20:33:54 alankila: going through OpenGL technically gives you something close to that Aug 29 20:33:59 alankila. I have written the shaders, they compile and load. I can use the EGL functions that are needed but they all requuire a android_native_buffer_t and the only way I know to create one is to include ui/GraphicBuffer.h. But that is not anywhere on my HD from an SDK and NDK install Aug 29 20:34:36 MPlayer's vo gl:yuv=4 uses fragment shader to translate from yuv to rgb, works pretty nice Aug 29 20:36:14 It was a cinch on IOS. I just cannot seem to find the same functionality in Android's version of OPENGL es 2.0. The gl2.h and gl2ext.h have very minimal pixel formats. no way to create a luminace texture seperate from the UV texture? Aug 29 20:36:45 jshanab_: two textures both bound as inputs to fragment shader? Aug 29 20:37:41 right. How the heck do I set that up on android? It will not let me create them with anything other than RGB888 or RGB565 Aug 29 20:38:13 or 3 textures Y, U, V depends if you source is planer or interleaved Aug 29 20:39:25 I suppose, I could cheat? put the YUV data in an RGB texture and rework the shader a bit to sort it all out Aug 29 20:40:33 RGB is just a matrix transform away... Aug 29 20:41:29 jshanab_: RGB888 is just a matrix of 24bit values... Aug 29 20:41:47 it would be the job of your fragment shader to do anything with it Aug 29 20:43:29 So if I manually interleaved all the data in the RGB[] Y__,Y__,Y__...for the first row then Y__,YUV,Y__.... fort he next? seems like a waste Aug 29 20:44:20 the underscores are blank areas, YUV is subsampled Aug 29 20:45:01 i'm trying to understand custom listview with checkable items. i extended relativelayout and implemented checkable. may i use the checkable relativelayout inside another layout on a list item? Aug 29 20:45:42 jshanab_: my I interest you in MPlayer's -vo=gl source? Aug 29 20:47:06 yes! Aug 29 20:47:38 I'm planning on using a webview to display some text wrapped around an image, is it possible to insert a Bitmap into a webview? Aug 29 20:48:13 or, I could base64 encode it.. not sure if 350kb is too much data though Aug 29 20:48:15 jshanab_: it has few options that use fragment shaders, and which should be copyable Aug 29 20:48:52 since desktop cards often didn't have YUV family of formats available for textures Aug 29 20:50:08 I am on github now... What filename/directory... I am searching Aug 29 20:51:32 let me check Aug 29 20:52:08 vo_android.c I am guessing now Aug 29 20:52:27 Is ajeet's github the place? Aug 29 20:53:05 https://github.com/mplayer2/mplayer2/blob/master/libvo/vo_gl.c <--- start with this file and look for details of implementation - unfortunately it's a bit big Aug 29 20:53:47 thanks Aug 29 20:57:49 https://github.com/mplayer2/mplayer2/blob/master/libvo/gl_common.c <--- this seems to have elements of fragment shader Aug 29 20:58:50 in ICS, how do I change the EditTexts line that is under the text? Aug 29 21:00:23 It's the background Aug 29 21:05:48 I'm having problems with the downloadurl threaded thingie Aug 29 21:06:57 when inside doInBackground(String... params) I go return downloadUrl(params[0] AND the thing is that donloadUrl goes all right and returns the correct value, but still the try goes to return the IOException.. Aug 29 21:08:21 p_l. Do you know if the concept of a buffer that is locked, updated and then unlocked is used? Aug 29 21:08:43 jshanab_: in a way, it has to be, isn't that a bit how binding works in GL? Aug 29 21:08:51 * p_l is not that good of GL programmer Aug 29 21:09:48 p_l. That makes 2 of us... That code does a lot, works on many many platforms and GPU's it will be fun to figure out. Aug 29 21:10:44 ls Aug 29 21:10:49 doh... Aug 29 21:10:52 HAH! Aug 29 21:11:25 Apparently there are a few ways to update a texture of pixel data. The simplest ends up coping multiple times. I am trying for the FrameBuffer technique to reduce the copy by 1 Aug 29 21:12:30 meh. when I run "logcat -d -b radio" from an app on 4.1, it returns nothing Aug 29 21:15:02 jshanab_: well, you're doing video, right? Aug 29 21:15:24 Yes Aug 29 21:16:13 So I did a test. Aug 29 21:16:25 I was opening and closing my app very fast to check for problems. Aug 29 21:16:46 And after a few FAST closes, the app just freezes, and logcat is constantly spammed with this http://pastebin.com/hM8PKakv Aug 29 21:17:07 jshanab_: most video codecs will give a whole frame of output anyway. Just write that directly into a texture, and keep previously loaded lookup textures (if needed - it might be also done completely within fragment shader), and push a new texture to device, paint it with your fragment shader, then flip buffers Aug 29 21:17:34 jshanab_: if needed, "chunk" the data into blocks you'd then draw Aug 29 21:17:43 p_l I think the shader is simpler than I thought. I must just copy the U and V values so I alwasy have YUV avail for calculation. Aug 29 21:18:21 did OpenGL ES have 3D textures yet? The YUV->RGB conversion could be accomplished by one interpolated 3d texture lookup Aug 29 21:18:29 what can I use to make an app from this website workforceportal.elabor.com. Note: I do not have access to modify this website, the forms on this website use javascript, and I do not want to use webview Aug 29 21:18:29 going straight from (Y, U, V) triplet to (R, G, B) triplet Aug 29 21:19:04 free gamma, saturation, contrast, brightness, tint, etc. controls too. Aug 29 21:19:31 alankila: the individual device might not support them, afaik Aug 29 21:19:47 p_l. That is not the issue. It is that glSubTexImage2D uses CPU to copy into ram, then again to copy to Driver owned ram then to GPU. Or something to that effect. Normally ned to attach a FrameBuffer which is driver memory that you can then lock,update,unlock to save CPU. Aug 29 21:19:49 also, weren't 3D textures horrible on memory? Aug 29 21:20:15 alankila. ooo, sneaky Aug 29 21:20:48 hmm... I don't remember using that function, let me check the guide I was using on GL, okay? Aug 29 21:22:13 without 3D textures it's probably best to implement all those controls separately. It's just a matrix multiply per fragment followed by applying the contrast, brightness and inverse gamma Aug 29 21:22:29 the matrix does the raw YUV to RGB (linear) conversion Aug 29 21:22:55 iirc, YUV colorspace was typically linearly encoded so it needs that gamma step Aug 29 21:23:07 jshanab_: afaik the only cpu copy should be when you load data first... so it should already be there in buffer from the codec. Then the driver should use optimized dma transfer Aug 29 21:23:14 I have brightness and saturation as variables that augment the matrix values. Allows me to dim the screen Aug 29 21:24:04 p_l I didn't think we had PBO's on Android, and I thought you had to actually program that ourselfs Aug 29 21:24:09 I see. Terminology: luma = non-linear luminance, luminance = linear luminance. Oh boy. Aug 29 21:24:40 jshanab_: I'd have to test it, and I don't have GLES2 hw Aug 29 21:25:25 Id settle for anything that works at the moment. I have been fighting this for a while :-) Aug 29 21:27:00 from what I can see the framebuffer binding only allows 2 pixel formats and they must be 2D. So I think the copy YUV values will work, even if it is slower becuase it will be force to transfer more data. Aug 29 21:28:41 The fragment shader gets one tripplet for each pixel and converts it correct? I cannot reference other pixels. unless... multiple texture units. Aug 29 21:29:28 what can I use to make an app from this website workforceportal.elabor.com Note: I do not have access to modify this website, the forms on this website use javascript, and I do not want to use webview Aug 29 21:30:28 tave: why don't you ask a few more times Aug 29 21:31:02 sorry, didn't mean to double post. Was copying to post in another room Aug 29 21:31:20 tave: what do you mean "make an app from this website" Aug 29 21:31:52 unless you really feel like parsing all of the content yourself, including the JS engine, you're probably going to need to use a webview. Aug 29 21:32:37 how hard would it be to parse the data? What library could I use to do this? Aug 29 21:39:54 damnit I just can't get this example to work it's so ** frustrating! Aug 29 21:40:48 doInBackground(String... params) { try { return downloadUrl(urls[0]); ...... the downloadUrl function returns a string as spected but the try goes RIGHT into catch!!!! Aug 29 21:41:13 Hi, does anyone have this problem before? Aug 29 21:41:14 http://stackoverflow.com/questions/4830351/android-listview-background-image-shows-on-each-row-why Aug 29 21:41:31 even after I 've done that, the background image is still appearing on each row in my listview Aug 29 21:41:33 w Aug 29 21:41:44 <[twisti]> teb_: then downloadUrl is throwing an exception, not returning anything Aug 29 21:42:31 [twisti], when debugging I can see the returned value being a string but the try still goes to catch :S Aug 29 21:42:33 <[twisti]> a method cant both return a value and throw an exception Aug 29 21:42:45 <[twisti]> can you show some more of your code ? Aug 29 21:42:49 yes Aug 29 21:43:52 [twisti], http://pastebin.com/TaudaKDB Aug 29 21:43:58 that's all the code Aug 29 21:44:42 <[twisti]> then that method is not returning anything Aug 29 21:44:49 [twisti], I'm sure the function is returning the value because I've tried putting it into a string variable before doing the "return variable" and it goes to catch when trying to return the value Aug 29 21:44:51 <[twisti]> i dont know what youre seeing, but thats just not possible Aug 29 21:45:30 <[twisti]> the method either ends with "return bla;" or with "throw new Exception" Aug 29 21:45:33 <[twisti]> it cant end with both Aug 29 21:45:39 <[twisti]> and both end the method Aug 29 21:46:24 <[twisti]> oh, wait, actually, there might be some weird effect from the finally block Aug 29 21:46:39 <[twisti]> try to wrap line 95 in try { } catch Aug 29 21:47:11 <[twisti]> im not actually sure what javas policy on finally blocks with a return in the try block is Aug 29 21:47:29 debugging that now Aug 29 21:47:56 the finally puts itself right before the return block Aug 29 21:50:02 http://pastebin.com/r6xh68US Aug 29 21:50:12 check that one out [twisti] Aug 29 21:50:31 <[twisti]> and does that work ? Aug 29 21:51:05 if I put a breakpoint in line 107 Aug 29 21:51:14 it will stop in line 107 and let me see the value of lala Aug 29 21:51:28 but then it will fire the catch Aug 29 21:52:23 <[twisti]> are you sure it actually fires that catch Aug 29 21:52:38 <[twisti]> and youre not just looking at the stack trace output you just added in line 98 ? Aug 29 21:53:05 there's no stacktrace because it's an IOException Aug 29 21:53:16 I'd love to see a stacktrace lol Aug 29 21:53:48 <[twisti]> IOExceptions have stack traces too Aug 29 21:53:56 <[twisti]> e.printStackTrace(); Aug 29 21:54:14 I'll check right now Aug 29 21:55:39 naming should be cleaned up. for instance, the method setObject doesn't set a property called object, it adds it to a list. Aug 29 21:56:07 it also contains useless cast and naming of something as 'theobject' is not exactly smart either, I got to admit :-p Aug 29 21:56:29 also why the F would that throw? I think this code is cargo-culted to max Aug 29 21:57:27 <[twisti]> alankila: if you want to correct things like that, youll be here all day ;) Aug 29 21:57:34 I was just going to clean all that up when this problem appeared Aug 29 21:57:46 yeah I didn't even get to the actually interesting area because I puked on the first thing I saw :-p Aug 29 21:58:32 I just got AsyncTask (running) and my breakpoints won't work... Aug 29 21:58:33 :( Aug 29 22:00:09 <[twisti]> maybe you didnt start it as debug Aug 29 22:01:05 the 1E6 looks suspect to me also. If the points are given as integers, wouldn't multiplying by 1E-6 make more sense Aug 29 22:01:23 I assume it's something like fulldeg.partdeg as decimal value Aug 29 22:01:47 <[twisti]> i am never going to get my goddamn ant to make me some goddamn .class files Aug 29 22:02:05 no, that part is (WAS) working fine, it is because I had to convert from degrees to another (which I don't remember) unit Aug 29 22:02:14 [twisti]: why use ant? The problem is simple as javac -cp foo/\* *.java :-p Aug 29 22:02:41 <[twisti]> alankila: that seems to be a rather simple command to build, package and sign android applications Aug 29 22:02:46 * alankila is amazed at how much effort has been spent on compiling java code when you could literally do it in shell script and it happens very fast to boot Aug 29 22:03:01 [twisti]: that's not what you asked, what you wanted was .class files :-p Aug 29 22:03:18 <[twisti]> no, i said i dont know how to get my ant to build class files Aug 29 22:03:31 <[twisti]> it does the other things fine Aug 29 22:04:25 oh fine. You were the guy earlier today with the no-classes-in-classes.dex problem Aug 29 22:04:40 <[twisti]> yeah Aug 29 22:04:47 you're the guy Aug 29 22:04:52 ok people thanks a lot good night Aug 29 22:04:52 I know very little about the way android build system works because all I do is press play on eclipse Aug 29 22:04:53 <[twisti]> i have since found out that the problem is that javac never outputs any class files at all Aug 29 22:05:09 <[twisti]> yeah, that worked fine for me too Aug 29 22:05:24 <[twisti]> but we cant stick to it being a hobby project in some guys basement for the rest of our days Aug 29 22:05:54 I'm personally mildly surprised that ant is involved at all in android. I thought Makefiles were more their style. Aug 29 22:06:42 and it shouldn't be hard to provide command-line utilities that take a standard android application and in fact spits out unsigned apk out of that. There used to be tool like that. Seems like it might not even *need* a Makefile, which is even better Aug 29 22:06:57 <[twisti]> im not sure what would make you think that - as far as i know, makefiles are not at any point involved with android at all Aug 29 22:07:17 jni & actual android framework development Aug 29 22:07:27 I'm personally impressed by how far android has stretched gnu make Aug 29 22:07:45 <[twisti]> we seem to be dealing with different aspects of android Aug 29 22:08:01 all the other guys should take not. They don't *have* series of Makefiles that take around 30 seconds to parse and use 450 MB of memory but afterwards build *everything* from that. Aug 29 22:08:32 as far as I can tell the single make instance orchestrates the whole android system image build. Aug 29 22:10:13 even more amazingly, it's all hand-rolled. There isn't an autotools, cmake, or any other thing that spits out Makefiles in sight. Aug 29 22:11:15 if you want to say include a pre-built or standalone NDK library then (from my experience) it is easiest to use a GNU Makefile Aug 29 22:11:36 I guess none of this is particularly interesting to you, but I'm just saying that gnu make is far more capable than people think. Aug 29 22:12:12 e.g., make rule to compile the standalone and move the .so into the android project path, then a rule to do ndk-build and import the standalone library, then a rule that calls ant and produces the APK Aug 29 22:12:23 still you should end up with a very simple and basic Makefile Aug 29 22:12:53 alankila: the really nice thing is that creating a makefile for a new Java project is very simple Aug 29 22:13:26 and this only makes life easier if you are (1) used to make and don't know or like ant and/or (b) building a standalone lib that already has a makefile/configure script (e.g, porting a lib to android) Aug 29 22:14:11 ndk-build is a very simple wrapper around GNU make that works 99% of the time to do exactly what you want it to do and 1% of the time cannot do what you want it to do Aug 29 22:14:52 that 1% of the time you need to be clever and hack together your own Makefile (which is in some way a tiny wrapper around other Makefiles and ndk-build!) Aug 29 22:14:52 I definitely think Makefile was the right build system for android. Hell, it would be the right build system for linux in general. Aug 29 22:15:10 alankila: I agree but was worried that I will be crucified if I say that in here :P Aug 29 22:15:18 It's just that people have chewed on the sort of problem with build tools that always ruins the simple, beautiful world of just Makefile Aug 29 22:15:25 I also write all of my Android apps in Emacs Aug 29 22:15:43 Eclipse is the worst thing to happen to programming Aug 29 22:16:03 real programmers use a real text editor :P Aug 29 22:16:15 * grothendieck ducks Aug 29 22:16:25 I think I'm addicted to autocompletion, intelligent search, capability to build project, integrated hot code replace (which doesn't work on android, grr), ... Aug 29 22:16:31 i use emacs+ plugin for eclipse Aug 29 22:16:36 somewhat best of both worlds imo Aug 29 22:16:47 so I use eclipse and think it's a fairly good programmer productivity tool for the java environment Aug 29 22:17:02 alankila, doogan: I'm not saying it isn't good at what it does Aug 29 22:17:19 plus the default setup in eclipse is pretty good. All I have to do is to turn off the damned serialVersionUID warnings. Aug 29 22:18:03 my problem with it is that I think it is a crutch Aug 29 22:18:09 with vim, and no doubt with emacs, you'd build your own IDE from various scripts and stuff. It's yours, and you know how it works, but I rather adapt to tool, even if imperfect. Aug 29 22:18:20 and it weakens important parts of a programmer's skills Aug 29 22:18:25 yeah Aug 29 22:18:39 alankila: that is true, I do have emacs macros to do stuff for me Aug 29 22:19:12 maybe it is unreasonable but I don't consider taht to be a crutch, since I wrote them myself and know how they work (and fix them when they break) Aug 29 22:19:37 I label this kind of reasoning generally in the illusion of control bin Aug 29 22:19:40 <[twisti]> a crutch is a perfect analogy Aug 29 22:19:42 mainly I started to hate eclipse in school when they tried to make everybody use it to learn Java Aug 29 22:19:46 <[twisti]> without a crutch, injured people cant walk Aug 29 22:19:49 <[twisti]> a crutch isnt a bad thing Aug 29 22:19:49 pedogogically it was a terrible decision Aug 29 22:19:55 I have no idea if it's justified. My mind just doesn't really work that way, but I've seen that programmers are very picky about the tools they use in general. Aug 29 22:20:01 yeah Aug 29 22:20:33 if you are an experienced developer who already knows how to program with a basic text editor (vim or emacs) but prefer to use the features in eclipse or whatever Aug 29 22:20:56 I see no harm in that necessarily, if you're more comfortable and more productive -- then more power to you Aug 29 22:21:08 (I am more productive in emacs personally, so I don't use it) Aug 29 22:21:30 Hi, my list view is experiencing this problem Aug 29 22:21:31 http://stackoverflow.com/questions/4830351/android-listview-background-image-shows-on-each-row-why Aug 29 22:21:35 to use eclipse when teaching people how to program (like intro to data structures course or something) Aug 29 22:21:37 any ideas? Aug 29 22:21:45 I think that actually is harmful Aug 29 22:22:06 I gguess I'd say something along the lines "eclipse is good enough for me". And I think I'd have to learn a lot more stuff I don't really care about if I didn't use it. Like how to build APKs. I'm grateful that eclipse just spits them out, and even signs them for me, without needing to deal with jarsigner. Aug 29 22:22:07 because you end up teaching them how to use eclipse more than teaching them how to program Aug 29 22:22:15 grothendieck: my school was doing a course on microsoft office, one student put each slide in a seperate project Aug 29 22:22:21 grothendieck: the teacher couldnt fix it..... Aug 29 22:22:25 lol Aug 29 22:22:46 grothendieck: i walk over, 30 seconds, and figure out that you can drag&drop between projects Aug 29 22:23:05 that was my first time even seeing powerpoint Aug 29 22:23:12 lucky you ;) Aug 29 22:23:19 its just standard MDI interfaces Aug 29 22:23:24 windows->tile, drag&drop Aug 29 22:23:26 grothendieck: I guess a lot of people say something along the lines, usually summarized as 'newbies should not start with IDEs' Aug 29 22:23:31 nearly every windows app does that :P Aug 29 22:23:39 alankila: yes, that is really true Aug 29 22:23:41 how can the teacher not even know such basics? .... Aug 29 22:23:58 I'm not sure if that is true. At some point the idea about how the whole thing hangs together has to come clear, but is it really reasonable to force people to learn stuff from the basics and waste potentially lot of time doing that stuff Aug 29 22:23:59 clever: I think not even knowing such basics is part of definition of a teacher ;) Aug 29 22:24:12 couldn't they just read shit like that from some book, or bird's-eye overview, or whatever Aug 29 22:24:13 grothendieck: oh, and the eletrical teacher.... Aug 29 22:24:26 grothendieck: he claims the resistance of a wire goes down as it heats up.... Aug 29 22:24:28 romainguy, whats the best way to handl the usb modes in the usb init scripts from an application layer? like be able to switch to diag and mtp modes on the fly from development settings or something. Aug 29 22:24:29 alankila: what is more basic than writing a program from scratch in a text editor? Aug 29 22:24:48 how does one handle, say overriding methods in emacs Aug 29 22:24:59 do you actually have to bring up the api docs and see which methods you need to override? Aug 29 22:25:01 grothendieck: well that's alright. It's the "how do I find out what methods are in this class" and "how do I build this and package into jar" that I find sort of incidental complexity of working with just classic text editor Aug 29 22:25:04 Markos: lol Aug 29 22:25:18 also some people work without any syntax highlighting at all, which would help them to generate correct code from the outset Aug 29 22:25:19 anyone know? Aug 29 22:25:19 because i'm much too lazy for that ;> Aug 29 22:25:20 alankila: i always find grep -r is handy Aug 29 22:25:32 alankila: search for the class name blindly until you find its definition :P Aug 29 22:25:41 javadoc works in command line.. Aug 29 22:25:46 I personally think that eclipse is the best java editor there is, and to do its magic it actually has a reimplementation of the whole java compiler that is geared specifically for IDE usage Aug 29 22:25:56 just so that it can give awesome, real-time feedback and continuous build experience Aug 29 22:26:00 sure Aug 29 22:26:03 grothendieck, but you still need to reference the docs? Aug 29 22:26:09 Markos: No, not usually. Aug 29 22:26:11 ;) Aug 29 22:26:17 clever: I just press F3 myself :-p Aug 29 22:26:17 ;/ Aug 29 22:26:19 grep -r works on all programing languages, javadoc sounds like java only, and something i havent had to learn yet Aug 29 22:26:23 Depends on if it's a part of the API I'm familiar with or not. Aug 29 22:26:30 guess its more platform related ;( Aug 29 22:26:36 (F3 jumps to definition of symbol in eclipse) Aug 29 22:26:46 alankila: I figured. Aug 29 22:26:46 interesting, i used to use jed exclusively but i cant imagine using it for android development Aug 29 22:26:47 F2 shows the javadoc of the symbol if it has one Aug 29 22:26:57 alankila: yeah, thats one plus of eclipse, but does it work in a project as large as android? Aug 29 22:27:02 clever: sure Aug 29 22:27:06 i was digging thru the 30gig source of the entire android Aug 29 22:27:19 clever: I know, I do occasional grep -ir myself too Aug 29 22:27:22 eventualy traced my wifi problem down to the default interface name being '' Aug 29 22:27:28 ack ftw ! Aug 29 22:27:30 F3 will always be start-recording-macro to me ! Aug 29 22:27:32 usually either at libcore/luni or frameworks/base though Aug 29 22:27:40 so it tried to do 'ifconfig '+''+' ...' and failed hard Aug 29 22:27:47 and the logs where far from helpfull Aug 29 22:28:26 is there some make based build system for android? Aug 29 22:28:35 ant Aug 29 22:28:40 for the JAva stuff Aug 29 22:28:49 ndk-build (wrapper around GNU make) for the native stuff Aug 29 22:29:03 I have to admit that both eclipse and visual studio have sort of geared me towards integrated build systems. I noticed that in MVSC I was able to build and run a project *faster* than gnu make was able to parse the autotools-generated makefiles Aug 29 22:29:05 I mean the kernel is compiled the same way the kernel is usually compiled AFAIK Aug 29 22:29:13 the fact the IDE knows how to build everything means it can run stuff really, really fast Aug 29 22:29:37 alankila: the makefiles for building the android rom itself, make eats over 300mb of ram..... Aug 29 22:29:37 alankila: the otehr problem I have with IDEs is that they are platform specific Aug 29 22:29:42 because it already has its "makefiles" in memory and it knows by your edit history what changed since last time, and in case of eclipse already has it built before you hit run Aug 29 22:29:47 alankila: its massively recursive, within a single instance of make Aug 29 22:29:52 if you write Java and pretty much ntohing else besides Java then again, not a problem Aug 29 22:30:02 clever: I know. I have marvelled at it. Aug 29 22:30:17 alankila: ive cursed at it, i leave one rule out and it silently forgets core.jar Aug 29 22:30:24 alankila: leaving the entire rom useless Aug 29 22:30:37 clever: heh. Aug 29 22:30:39 I write programs in Java, C, Perl, Bash and docuements in LaTeX all the time Aug 29 22:30:54 easier to master Emacs and do all things in Emacs than an IDE for each platform I use regularly Aug 29 22:30:57 alankila: i fix that, then it loudly complains about font files, i never figured out which rule it was missing Aug 29 22:30:58 clever: I'm just impressed by the single-instance-that-builds-everything, and the fact all that stuff is apparently hand-rolled, not generated Aug 29 22:31:07 alankila: i gave up and modified an existing target Aug 29 22:31:27 clever: but granted, it is *large* and difficult to understand simultaneously, being so monolithic, or rather so I imagine. Aug 29 22:31:30 i'd prefer to stay ide-less but it seems like a pain for android development not to use eclipse Aug 29 22:31:35 for mac os x guys who do their icons in gimp :) http://www.petapixel.com/2012/08/29/gimp-is-now-a-self-contained-native-app-for-mac-os-x/ Aug 29 22:31:40 alankila: yeah, they need to document that mess better, it looks like it would be imposible to do any maintaince on the makefiles Aug 29 22:31:40 Markos: it is really not that bad Aug 29 22:32:14 edit your files, then 'ant debug' and 'adb push App-debug.apk' Aug 29 22:32:16 g00s: it's probably xquartz'ing? there should really be a cocoa build besides seashore of gimp Aug 29 22:32:29 or krita for os x. I'm still looking for a kickass free editor... Aug 29 22:32:37 alankila: no, i think they are using the gtk cocoa bindings Aug 29 22:32:45 g00s: awesome Aug 29 22:32:56 that means no GTK+ file selector hopefully. If so, I'm willing to use it. Aug 29 22:33:11 i mean things like eclipse run configurations, pushing to multiple devices/emulators simultaneously Aug 29 22:33:18 inkscape will hopefully get that in 0.49, but the inkscape project in general isn't very good at releases Aug 29 22:33:22 the ddms perspective and stuff like that Aug 29 22:33:36 all doable without eclipse, but a pain Aug 29 22:35:08 gtk+ file selector is the greatest travesty ever inflicted on mankind in name of usability Aug 29 22:35:11 here's a makefile I wrote that compiles a native library, builds an APK and installs it to the running emulator or connected device Aug 29 22:35:14 http://code.google.com/p/paridroid/source/browse/Makefile Aug 29 22:35:15 I've not yet worked out how to use it Aug 29 22:35:26 alankila: the java one isnt that much better (the one ive had the pain of using) Aug 29 22:35:42 alankila: if i select a directory and hit enter to open it, it selects the directory, and tries to open every file in it! Aug 29 22:35:45 so I run make ; make install then check my emulator/phone Aug 29 22:35:49 viola Aug 29 22:36:28 grothendieck: ive done similar with my firefox extension, i can just run 'make install' and firefox restarts with the new ver :) Aug 29 22:36:38 cool Aug 29 22:36:41 make is magic Aug 29 22:36:52 I need to take a look at the console build tools more closely, might not be a bad as I though Aug 29 22:36:53 t Aug 29 22:37:10 grothendieck: the key is actualy a second firefox extension, 'extension auto-installer' and a simple wget rule Aug 29 22:37:15 oh god, it is still forcing GTK+ file selector on me Aug 29 22:37:38 I really hoped that they would have used the native one. I'll try to deal with this for a while, though. Aug 29 22:38:31 also there is one-window mode, you need to do that in prefs Aug 29 22:40:06 ah finally Aug 29 22:40:09 enabling immediately Aug 29 22:43:37 I couldn't locate the setting to enable one-window mode Aug 29 22:43:58 (and jesus christ do these guys love useless options...) Aug 29 22:45:12 ah wasn't in prefs, was under windows-menu Aug 29 22:48:14 hi, does anyone experience with this problem before about list view? Aug 29 22:48:25 http://stackoverflow.com/questions/4830351/android-listview-background-image-shows-on-each-row-why Aug 29 22:48:39 I have tried the solution but do not work Aug 29 22:49:48 why dont you set a background image to a container and add the listview to that container and make it's background transparent Aug 29 22:50:25 background just keeps on appearing on each row Aug 29 22:51:30 are you setting the image on the listview itself or the container it's in? Aug 29 22:53:59 Markos: container Aug 29 22:54:12 I have an image view that handles the background image Aug 29 22:55:03 so I have image view with the background image, and a list view with a transparent background Aug 29 22:55:10 they are all inside a relativelayout Aug 29 22:55:49 i dont understand why you have an imageview Aug 29 22:56:01 set the background of the relativelayout to whatever image Aug 29 22:56:11 set cachecolorhint of the listview to transparent Aug 29 22:56:15 and it should work Aug 29 22:57:08 let me try Aug 29 22:57:24 even worse Aug 29 22:57:33 the rows are stretched Aug 29 22:58:16 so adjust your container size Aug 29 22:58:46 it is match parent Aug 29 22:59:04 should I adjust padding for my textview? Aug 29 23:00:36 hard to say i dont know what you are trying to do Aug 29 23:01:36 could it be because of this line in my code? Aug 29 23:02:06 listView.setAdapter(new ArrayAdapter(this, R.layout.main,R.id.scrollmenu,myArray)); Aug 29 23:02:24 I am adapting the whole layout Aug 29 23:02:47 and if the layout has a backgroundimage.png, then the rows in the list also adapt to it Aug 29 23:02:49 ?? Aug 29 23:03:07 i'm not sure, i've just extented listadapter myself Aug 29 23:03:26 if you want custom images in the rows, then you can set them in the children that you inflate in your list adapter Aug 29 23:03:36 in the getview method i believe Aug 29 23:04:34 basicaly, in your adapter, inflate a view, set it to whatever, then return that view Aug 29 23:06:28 take a look at http://developer.android.com/reference/android/widget/BaseAdapter.html Aug 29 23:06:59 <[twisti]> alankila: fixed it! apparently, the issue was with one of my annotations classes, and the issue of javac neither succeeding nor throwing an error is a known issue Aug 29 23:07:11 <[twisti]> err, one of my annotations libraries Aug 29 23:08:07 hmh. Poor showing, I guess. People should really fix javac to function properly. Aug 29 23:09:51 <[twisti]> as i understood it, its only in the edge case of compile time only libraries Aug 29 23:14:49 Markos: thanks Aug 29 23:14:57 still stuck, goddamn listiew Aug 29 23:17:11 so I'm having a slight issue with Expandable ListView Aug 29 23:17:29 what do I need to do to ensure that the chevron's don't over lap my view? Aug 29 23:17:55 i.e. the chevron is on top/obscured by my group items Aug 29 23:19:22 HorizonXP, set the margins of your group Aug 29 23:20:37 specifically, the left margin of your textview in your group view Aug 29 23:21:27 Markos: that seems to be obvious answer... lol. thanks :) Aug 29 23:21:56 haha no problemo Aug 29 23:28:39 my / is mounted ro, will anything explode if I try to remount rw? just rooted for the first time so be patient with me... Aug 29 23:28:58 on HTC Desire Aug 30 00:08:13 guys, I am writing an application which should run on android 2.3.4 through android 4.0. I notice that now some devices don't have a menu button - even though the galaxy S3 and note both do still have menu buttons. Can anyone recommend the best way to build an app to cover all these android versions - should I avoid using the menu button altogether and use an action bar? (getting an action bar on gingerbread is another hurdle...) Aug 30 00:09:30 Yes, use the action bar Aug 30 00:09:53 I am looking at ActionBarSherlock, it looks pretty nice Aug 30 00:10:02 It is Aug 30 00:10:09 does anyone know the licence details? I can't find them on the site Aug 30 00:10:31 apache Aug 30 00:10:31 There's a license file in the repo Aug 30 00:10:37 ok thanks Aug 30 00:10:46 But yeah, same as aosp Aug 30 00:14:40 menu buttons are the fail Aug 30 00:14:49 no one ever knows when its worth pressing it Aug 30 00:16:55 as a blackberry user I miss the menu button :) but it does make less sense on a full touchscreen device Aug 30 00:26:22 Hi all, I'm working on a simple app using WebViews, and for some reason the icons that I've made are being rendered weird by my phone. https://dl.dropbox.com/u/48498404/whatisgoingon.png The top is how it's being rendered, the bottom is how it appears in-browser. Aug 30 00:26:41 They're blurry as hell. Aug 30 00:26:53 they are in the wrong drawable- directory Aug 30 00:27:03 or you are not providing icons in the correct density Aug 30 00:27:25 Oh shit, I completely forgot about density. Aug 30 00:27:48 Is there any type of guide that could show PPI vs phone? Aug 30 00:28:30 Also, on a related note, would I need to create multiple icons for different densities? Aug 30 00:31:54 Anyone know how to set an adapater for a listview in a Widget? I belive I'm suppose to use setRemoteAdapter, but I'm so lost. Aug 30 00:33:34 HI, does anyone know how to fix this problem with list view? Aug 30 00:33:44 http://stackoverflow.com/questions/4830351/android-listview-background-image-shows-on-each-row-why Aug 30 00:33:56 the solution doesn't work for me Aug 30 00:36:38 I set my background image as an imageview Aug 30 00:38:42 LoveMHz: http://developer.android.com/guide/topics/appwidgets/index.html#collections Aug 30 00:47:17 LoveMHz: do you have the problem for row background image in your list view? Aug 30 00:48:48 How do I persist a value on orientation change in a DialogPreference? Aug 30 01:00:55 What's a good example of when you actually use "confirmCredentials" in an AuthenticatorService? Aug 30 01:01:02 Every example i've ever seen just returns null. Aug 30 01:01:07 code1: does this help? http://stackoverflow.com/questions/4505845/concise-way-of-writing-new-dialogpreference-classes Aug 30 01:01:36 Is it for like higher order security prodecures like re-authenticating or using RSA/TimeChanging/NFC secondary auth or something? Aug 30 01:03:13 code1: my android knowledge of UI is very limited, so I am just googling. Apologies if you have already googled and read the same thing. Aug 30 01:05:46 briswolf: Just taking a look now... Aug 30 01:15:42 briswolf: Thanks for the link. It looks like I need to override the onSave/RestoreInstanceState methods but not sure how to do it to save and restore an int. Aug 30 01:16:47 code1: are we talking save/restore to preferences or just temp while the orientation changes? Aug 30 01:17:15 just temp while the orientation changes. Aug 30 01:17:43 hmm. does the code here http://svn.jimblackler.net/jimblackler/trunk/workspace/NewsWidget/src/net/jimblackler/newswidget/NumberPreference.java help? Aug 30 01:18:05 code1: that is documented somewhere in the guide Aug 30 01:18:13 I forget where Aug 30 01:18:27 Just override onSaveInstanceState and onRestoreINstanceState Aug 30 01:18:28 http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) Aug 30 01:18:42 Look at how some of the other DialogPreferences does it Aug 30 01:18:47 Like EditTextPreference Aug 30 01:18:57 is a dialogpreference related to an activity? Aug 30 01:19:07 it isn't, is it... Aug 30 01:19:10 okay.. gross.. i just tried googling if its safe to eat rice thats been left out for a day.. i started typing "is it safe to eat rice" and autocomplete had "with bugs in it".. who the FUCK would eat rice after finding a bug in it? Aug 30 01:19:35 svchost: just eat around the big Aug 30 01:19:37 bug* Aug 30 01:19:45 ew Aug 30 01:20:00 depends on the bug I guess Aug 30 01:20:03 Was that a question for me, briswolf ? Aug 30 01:20:21 SimonVT: just in general Aug 30 01:20:51 SimonVT: I am familiar in passing with activity onSaveInstanceState Aug 30 01:21:24 I'm talking about Preference.onSaveInstanceState Aug 30 01:21:41 But yes, a Preference is within the context of an activity Aug 30 01:21:47 SimonVT: how does it relate to dialog preferences - I see it is a member of "Preference" - is this like a cousin of activity? Aug 30 01:21:59 sorry, method of Preferences Aug 30 01:22:01 Eh Aug 30 01:22:04 ugh keyboard skills Aug 30 01:22:19 You use a PreferenceActivity (and maybe PreferenceFragments) to display Preferences Aug 30 01:22:46 ok. great, I see where it comes back to activity now. Thanks Aug 30 01:23:12 briswolf: Thanks, that example has the solution. :) Aug 30 01:25:27 code1: finally, I'm helping ;) Aug 30 01:26:37 Ha, I imagined you saying that in Zoidberg's voice! Aug 30 01:29:13 code1: my day just got better ;) Aug 30 01:29:50 hah Aug 30 01:31:33 http://www.youtube.com/watch?v=le6Rvy5Ccb0 Aug 30 01:32:12 exactly! this is exactly how I feel Aug 30 01:32:14 bbl Aug 30 01:34:23 Well you're doing a great job! :D Aug 30 01:50:05 is it possible to set an Intent/data to return back to the parent activity, regardless of whether I call finish()? Aug 30 01:50:32 basically, i want to return updated user data between activities whether the user clicks the button that eventually causes finish() to be called Aug 30 01:50:40 or if they hit the back key Aug 30 01:51:07 The back key causes finish to be called as well Aug 30 01:53:36 SimonVT: with what result by default? Aug 30 01:53:47 SimonVT: because I'm using RESULT_OK to check that the data is actually there Aug 30 01:54:44 There's no difference between you calling finish() and a back press calling finish() Aug 30 01:55:02 But, by default the result is RESULT_CANCELED Aug 30 01:55:30 SimonVT: ok good, i think that'll work fine then. thanks! :) Aug 30 01:55:41 when i run the avd emulator on linux with the command "emulator -avd name" i get error: segmentation fault (core dumped) emulator Aug 30 01:55:49 anyone know what this means? Aug 30 01:57:55 it dosnt seem to run from eclipse's avd manager either Aug 30 02:04:29 Android noob: I am trying to migrate the HoneyComb sample to refactor my app to use Fragments. The only thing still red is all of the Gen stuff like R.java. Howto re-Gen? Aug 30 02:06:03 geezenslaw: R.java generates when you build your project Aug 30 02:06:57 geezenslaw, clean your code and then build it before you try and run it on any AVD or device Aug 30 02:16:32 OK all thnx much. will do... Aug 30 02:19:05 this is interesting; samsung's announcements at IFA - point to it competing on ecosystem; which includes mobile /tablet / pc form factors based on windows Aug 30 02:20:14 meanwhile sony comes up with a 20 inch tablet :O Aug 30 02:20:28 * g00s waits for the nexus 20 :) Aug 30 02:20:49 You misspelled table Aug 30 02:20:58 hehe Aug 30 02:21:05 yeah, like the /old/ MS Surface Aug 30 02:23:54 also looks like samsung announced the first wp8 phone Aug 30 02:24:09 sucks to be Nokia Aug 30 02:24:11 poor nokia Aug 30 02:24:13 hehe Aug 30 02:25:16 and MS blessed it by putting it on their website Aug 30 02:25:18 haha Aug 30 02:25:29 mobile + popcorn always go together Aug 30 02:26:35 What is the glowy animation that happens when you try to pull a scrolling widget past it's bounds called? Aug 30 02:27:12 that might be the arbitrary-overscroll-animation-that-avoid-patents animation Aug 30 02:27:37 heh Aug 30 02:28:03 I want to change the color for my app theme, but I'm at a loss for search terms Aug 30 02:29:33 overscroll was the term I was looing for, thanks g00s Aug 30 02:35:37 Ugh, hardcoded in AbsListView to drawables in framework-res Aug 30 02:38:14 tech1: you can run gdb on the coredump and find out what happened Aug 30 02:39:06 tech1: tell me output of 'file /path/to/emulator' and 'uname -m' ? Aug 30 02:39:53 dude, what the crap w\ not being able to remove footers from ListViews Aug 30 02:40:16 you can only add it before an adapter is set, and removing it causes a classcastexception Aug 30 02:41:24 Wavesonics: write a class that extends ListView to work around that? Aug 30 02:41:37 Or write a bug report for Android Aug 30 02:41:40 ya... Aug 30 02:42:05 "file path/emulator" returns: ELF 32-bit LSB executable, Intel 80386, versio 1(SYSV), dynamically linked (uses shared libs) for GNU Linux 2.6.8 not stripped Aug 30 02:42:24 uname -m Aug 30 02:44:08 file uname -m /path/emulator... returns 138 warnings: type invalid -and a bunch of weird characters Aug 30 02:44:29 and it also says file: could not find any magic files Aug 30 02:45:21 i got a couple of other errors before but chmod 755'd the whole tools directory, which fixed those errors but gave me the sefault error... but then maybe i messed up some permissions too Aug 30 02:45:31 ill try and download the sdk again Aug 30 02:45:41 nonono Aug 30 02:45:42 just Aug 30 02:45:44 uname -m Aug 30 02:45:46 that is it Aug 30 02:45:59 oh Aug 30 02:46:05 that returns x86_64 Aug 30 02:47:25 I don't think it is permissions Aug 30 02:47:40 try starting th emulator with the -verbose flag? Aug 30 02:47:53 oh damn Aug 30 02:47:56 i got it working Aug 30 02:48:16 cool Aug 30 02:48:17 how? Aug 30 02:48:49 i used "emulator-arm -avd name" before i was using "emulator -avd name" Aug 30 02:48:58 maybe because i have a 64 bit system? Aug 30 02:49:29 all the tutorials/guides i saw just used "emulator" without -arm Aug 30 02:49:33 yeah that is strange Aug 30 02:49:39 file emulator-arm Aug 30 02:49:52 just to see about that Aug 30 02:50:03 hi, does anyone have experience using a rooted kindle for ICS or JB dev? Aug 30 02:50:09 yeh in my androidsdk/tools/ , there are files emulator, emulator-arm, and emulator-x86 Aug 30 02:50:17 you can usually run 32-bit binaries (and emulate 32-bit systems) on a 64-bit host Aug 30 02:50:39 emulator-x86 dosnt work either... isnt that for 64 bit? Aug 30 02:50:50 x86 is 32-bit Aug 30 02:51:00 x86_64 is 64-bit Aug 30 02:51:19 (aka i386/486/686 and amd64, respectively) Aug 30 02:51:29 halo, just want to know if I can use translationanimation on a surface view? Aug 30 02:51:33 emulator and emulator-x86 must be 32 bit then, and "emulator-arm" 64 bit Aug 30 02:51:40 check it with Aug 30 02:51:40 grothendieck: only if you've got compatibility/multilib stuff installed Aug 30 02:51:41 file Aug 30 02:52:02 The android installation guide says specifically that you gotta install some 32bit libraries Aug 30 02:52:07 if you are on a 64 bit system Aug 30 02:52:19 and that is probably your problem Aug 30 02:52:33 that you are missing some dependencies Aug 30 02:52:35 oh yeh Aug 30 02:52:40 thats probably it Aug 30 02:52:46 why the emulator-arm is working, that's a mystery ;) Aug 30 02:52:49 ill check. thanks Aug 30 02:52:53 np Aug 30 02:52:55 emulator-arm must be 64 bit Aug 30 02:52:56 i guess Aug 30 02:53:03 or lacks a certain dependency Aug 30 02:53:31 yeh, at least one works. adb with my phone works too :) Aug 30 02:53:38 cool Aug 30 02:53:48 now i just have to work on compiling with ant Aug 30 02:53:51 just for tcompleteness Aug 30 02:54:51 emulator-arm emulates the android host running on an ARM processor (e.g., phone/tablet) Aug 30 02:55:09 emulator-x86 emulates the android guest runnong on an x86 processor (e.g., intel atom) Aug 30 02:55:20 I meant guest* where I said host earlier Aug 30 02:55:39 it shouldnt affect how apps run though should it? maybe speed wise, but not bug or graphic wise? Aug 30 02:55:56 can anybody give me some pointers with insamplesize and bitmaps Aug 30 02:55:57 and you can emulate 32 bit systems on a 64 bit host machine, but not the other way around Aug 30 02:56:22 i'm setting it to 2, which should halve the resoultion and passing the bitmap options to the bitmap factory Aug 30 02:56:23 tech1: x86 support is experimental Aug 30 02:56:28 yet the resoultion does not change Aug 30 02:56:36 so yes more likely to introduce bugs Aug 30 02:56:43 tech1, try adding "-qemu -disable-kvm" opts to emulator-x86 Aug 30 02:56:56 i see Aug 30 02:56:57 ok Aug 30 02:57:07 this is all in the docs somewhere Aug 30 02:57:16 I do not happen to know all of this by some magic ;) Aug 30 02:57:29 {{>:3[ Aug 30 02:57:36 ^ klingon smiley face Aug 30 02:57:46 i read the avd docs but ill take a deeper look around their site Aug 30 02:57:59 http://developer.android.com/tools/help/emulator.html Aug 30 02:58:42 also keep in mind that the Android emulator is really just QEMU Aug 30 02:58:43 http://wiki.qemu.org/Main_Page Aug 30 02:59:19 saki0 when i "emulator-x86 -qemu-disable-kvm -avd name" it says qemu is invalid option Aug 30 02:59:55 all opts after -qemu get passed to qemu, try appending it instead Aug 30 02:59:56 most of the android tools are hacked up versions of standard GNU/BSD tools **** ENDING LOGGING AT Thu Aug 30 03:00:01 2012